2f682cd69e1564ba37e4d73896c79658a29bd070
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-18 Pierre Muller <muller@sourceware.org>
2
3 * ui-file.h (tee_file_new): Add extern modifier in header declaration.
4
5 2012-12-20 Tom Tromey <tromey@redhat.com>
6
7 * serial.c (deprecated_serial_fd): Remove.
8 * serial.h (deprecated_serial_fd): Remove.
9
10 2012-12-20 Yao Qi <yao@codesourcery.com>
11
12 * maint.c (_initialize_maint_cmds): Move code ...
13 * symmisc.c (_initialize_symmisc): ... to here.
14 (maintenance_print_msymbols): Make it static.
15 (maintenance_print_objfiles): Likewise.
16 (maintenance_print_symbols): Likewise.
17 (maintenance_info_symtabs): Likewise.
18 * symtab.h (maintenance_print_msymbols): Remove declaration.
19 (maintenance_print_objfiles, maintenance_print_symbols): Likewise.
20 (maintenance_info_symtabs): Likewise.
21
22 2012-12-20 Yao Qi <yao@codesourcery.com>
23
24 * maint.c (_initialize_maint_cmds): Move code to ...
25 * psymtab.c (_initialize_psymtab): ... here. New.
26 Include "gdbcmd.h".
27 (maintenance_print_psymbols): Make it static.
28 (maintenance_info_psymtabs, maintenance_check_symtabs): Likewise.
29 * symtab.h (maintenance_print_psymbols): Remove declaration.
30 (maintenance_check_symtabs, maintenance_info_psymtabs): Likewise.
31
32 2012-12-19 Maxim Kuvyrkov <maxim@codesourcery.com>
33
34 * MAINTAINERS: Add myself to write-after-approval maintainers.
35
36 2012-12-19 Andreas Tobler <andreast@neon.andreas.nets>
37
38 * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
39 branch_bp to keep gcc happy.
40
41 2012-12-19 Joel Brobecker <brobecker@adacore.com>
42
43 * gdbarch.sh (copyright): Update copyright years.
44 * gdbarch.h, gdbarch.c: Regenerate.
45 * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
46 (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
47
48 2012-12-19 Joel Brobecker <brobecker@adacore.com>
49
50 * acinclude.m4: Update contact info in copyright notice.
51
52 2012-12-19 Yao Qi <yao@codesourcery.com>
53
54 * maint.c (maintenance_print_statistics): Make it static.
55 * symtab.h (maintenance_print_statistics): Remove declaration.
56
57 2012-12-19 Joel Brobecker <brobecker@adacore.com>
58
59 * NEWS: Add entry announcing ppc-lynx178 support.
60
61 2012-12-19 Joel Brobecker <brobecker@adacore.com>
62
63 Revert the following change (compatibility issues with libiconv):
64 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
65 * gnulib/import/errno.in.h: Import.
66 * gnulib/import/m4/errno_h.m4: Import.
67 * gnulib/aclocal.m4: Regenerate.
68 * gnulib/configure: Regenerate.
69 * gnulib/import/Makefile.am: Update.
70 * gnulib/import/Makefile.in: Update.
71 * gnulib/import/m4/gnulib-cache.m4: Update.
72 * gnulib/import/m4/gnulib-comp.m4: Update.
73
74 2012-12-18 Tom Tromey <tromey@redhat.com>
75
76 * defs.h (directory_command): Don't declare.
77 * source.c (directory_command): Now static.
78
79 2012-12-18 Tom Tromey <tromey@redhat.com>
80
81 * infcmd.c (all_registers_info, nexti_command, stepi_command)
82 (continue_command, interrupt_target_command): Now static.
83 (registers_info): Remove declaration.
84 * inferior.h (all_registers_info, nexti_command, stepi_command)
85 (continue_command, interrupt_target_command): Don't declare.
86
87 2012-12-18 Tom Tromey <tromey@redhat.com>
88
89 * cli/cli-cmds.c (apropos_command): Now static.
90
91 2012-12-18 Tom Tromey <tromey@redhat.com>
92
93 * breakpoint.c (dprintf_command): Now static.
94
95 2012-12-18 Tom Tromey <tromey@redhat.com>
96
97 * Makefile.in (init.c): Declare initialize_all_files;
98 don't include call-cmds.h.
99 * call-cmds.h: Remove.
100 * symtab.c: Don't include call-cmds.h.
101 * top.c: Don't include call-cmds.h. Declare
102 initialize_all_files.
103
104 2012-12-18 Tom Tromey <tromey@redhat.com>
105
106 * symfile.c (list_overlays_command, map_overlay_command)
107 (unmap_overlay_command): Now static.
108
109 2012-12-18 Tom Tromey <tromey@redhat.com>
110
111 * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
112 "define", "while", and "if" commands.
113 * cli/cli-script.c (while_command, if_command, define_command)
114 (document_command): Now static.
115 (_initialize_cli_script): New function.
116 * cli/cli-script.h (while_command, if_command, define_command)
117 (document_command): Don't declare.
118
119 2012-12-18 Tom Tromey <tromey@redhat.com>
120
121 * cli/cli-cmds.c (_initialize_cli_cmds): New function.
122 (init_cli_cmds): Move most code into new function.
123
124 2012-12-18 Tom Tromey <tromey@redhat.com>
125
126 * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
127 * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
128 declare.
129
130 2012-12-18 Joel Brobecker <brobecker@adacore.com>
131
132 * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
133 * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
134 * xcoffread.c (xcoff_get_core_n_import_files): New function.
135 (xcoff_get_n_import_files): New function.
136 * xcoffread.h (xcoffread.h): Add declaration.
137 * rs6000-aix-tdep.c: #include "xcoffread.h".
138 (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
139 XCOFF executables that do not depend on any shared library.
140 * rs6000-lynx178-tdep.c: New file.
141 * configure.tgt: Add powerpc-*-lynx*178 handling.
142 * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
143 (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
144
145 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
146
147 * ui-file.c (ui_file): Add to_fseek.
148 (ui_file_new): Call set_ui_file_fseek.
149 (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
150 stdio_file_fseek): New functions.
151 (stdio_file_new): Call set_ui_file_fseek.
152 * ui-file.h (ui_file_fseek_ftype): New typedef.
153 (set_ui_file_fseek, ui_file_fseek): New externs.
154
155 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
156
157 * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
158 (set_ui_file_isatty): Change isatty to isatty_ptr.
159 (set_ui_file_rewind): Change rewind to rewind_ptr.
160 (set_ui_file_put): Change put to put_ptr.
161 (set_ui_file_write): Change write to write_ptr.
162 (set_ui_file_write_async_safe): Change write_async_safe to
163 write_async_safe_ptr.
164 (set_ui_file_read): Change read to read_ptr.
165 (set_ui_file_fputs): Change fputs to fputs_ptr.
166 (set_ui_file_data): Change delete to delete_ptr.
167
168 2012-12-18 Joel Brobecker <brobecker@adacore.com>
169
170 * solib-darwin.c (darwin_current_sos): Fix indentation.
171 (darwin_read_exec_load_addr): New function.
172 (darwin_solib_create_inferior_hook): Rebase executable.
173 * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
174 * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
175
176 2012-12-18 Joel Brobecker <brobecker@adacore.com>
177
178 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
179 * gnulib/import/errno.in.h: Import.
180 * gnulib/import/m4/errno_h.m4: Import.
181 * gnulib/aclocal.m4: Regenerate.
182 * gnulib/configure: Regenerate.
183 * gnulib/import/Makefile.am: Update.
184 * gnulib/import/Makefile.in: Update.
185 * gnulib/import/m4/gnulib-cache.m4: Update.
186 * gnulib/import/m4/gnulib-comp.m4: Update.
187
188 2012-12-18 Joel Brobecker <brobecker@adacore.com>
189
190 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
191 8d5bd1402003bd0153984b138735adf537d960b0.
192 * gnulib/aclocal.m4, configure, config.in: Regenerate.
193 * gnulib/import/m4/extern-inline.m4: Import.
194 * gnulib/import/wctype-h.c: Import.
195 * gnulib/import/Makefile.am: Update.
196 * gnulib/import/Makefile.in: Update.
197 * gnulib/import/alloca.in.h: Update.
198 * gnulib/import/extra/snippet/warn-on-use.h: Update.
199 * gnulib/import/localcharset.c: Update.
200 * gnulib/import/m4/fcntl-o.m4: Update.
201 * gnulib/import/m4/gnulib-cache.m4: Update.
202 * gnulib/import/m4/gnulib-comp.m4: Update.
203 * gnulib/import/m4/wctype_h.m4: Update.
204 * gnulib/import/stdbool.in.h: Update.
205 * gnulib/import/verify.h: Update.
206 * gnulib/import/wctype.in.h: Update.
207
208 2012-12-18 Joel Brobecker <brobecker@adacore.com>
209
210 * gnulib/update-gnulib.sh: Add call to autoheader.
211
212 2012-12-17 Tom Tromey <tromey@redhat.com>
213
214 * top.c (xgdb_verbose): Remove.
215
216 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
217
218 Code cleanup.
219 * skip.c (skip_function_command, skip_file_command, skip_info): Remove
220 unused forward declarations.
221 (skip_file_command): Make variables symtab and filename targets const.
222 Use proper 0 vs. NULL constant everywhere.
223 (skip_function_command): Use proper 0 vs. NULL constant everywhere.
224 Include empty line after declarations. Use GNU spacing in a comment.
225 Do not use strlen for end of string check.
226 (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
227 comments.
228 (skip_enable_command, skip_disable_command, skip_delete_command)
229 (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
230 (function_pc_is_marked_for_skip): Make variable filename target const.
231 Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
232 comment formatting.
233 (skip_re_set): Add empty line after function comment. Use proper 0 vs.
234 NULL constant everywhere. Include empty line after declarations. Make
235 variable symtab target const. Do not use strlen for end of string
236 check.
237
238 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
239
240 Code cleanup.
241 * breakpoint.c (clear_command): Remove variable sal_name_len and its
242 initialization, remove it from the compare_filenames_for_search call.
243 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
244 name_len and its initialization, remove it from the
245 compare_filenames_for_search calls.
246 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
247 * symtab.c (compare_filenames_for_search): Remove the search_len
248 parameter, update the function comment, new variable search_len
249 initialized from SEARCH_NAME.
250 (iterate_over_some_symtabs): Remove variable name_len and its
251 initialization, remove it from the compare_filenames_for_search calls.
252 * symtab.h (compare_filenames_for_search): Remove the search_len
253 parameter,
254
255 2012-12-16 Joel Brobecker <brobecker@adacore.com>
256
257 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
258 (ALLDEPFILES): ... to there.
259
260 2012-12-15 Joel Brobecker <brobecker@adacore.com>
261
262 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
263
264 2012-12-15 Joel Brobecker <brobecker@adacore.com>
265
266 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
267 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
268 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
269 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
270 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
271 to gdb_target_obs for every target that uses rs6000-tdep.o.
272 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
273 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
274 or register_ppc_ravenscar_ops.
275
276 2012-12-15 Joel Brobecker <brobecker@adacore.com>
277
278 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
279 RAVENSCAR_SPARC_THREAD_H.
280 * sparc-ravenscar-thread.c: Rename all global entities
281 whose name is uses "ravenscar_sparc" as the prefix to use
282 "sparc_ravenscar" instead.
283
284 2012-12-15 Joel Brobecker <brobecker@adacore.com>
285
286 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
287 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
288 Adjust sparc-ravenscar-thread.h #include.
289 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
290 accordingly.
291 * Makefile.in: Replace ravenscar-sparc-thread with
292 sparc-ravenscar-thread throughout.
293 * configure.tgt: Likewise.
294
295 2012-12-15 Joel Brobecker <brobecker@adacore.com>
296
297 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
298 declaration.
299 (ravenscar_ops): New gdbarch variable.
300 * gdbarch.h, gdbarch.c: Regenerate.
301 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
302 * ravenscar-thread.c (current_arch_ops): Delete.
303 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
304 from the gdbarch.
305 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
306 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
307 (ravenscar_register_arch_ops): Delete.
308 * ravenscar-sparc-thread.h: New file.
309 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
310 (ravenscar_sparc_ops): Define value statically.
311 (_initialize_ravenscar_sparc): Delete.
312 (register_sparc_ravenscar_ops): New function.
313 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
314 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
315 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
316 ravenscar-sparc-thread.o.
317 (SFILES): Add ravenscar-thread.c.
318 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
319 (ALLDEPFILES): ravenscar-sparc-thread.c.
320 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
321 to gdb_target_obs
322 for all the targets that use sparc-tdep.o.
323
324 2012-12-15 Joel Brobecker <brobecker@adacore.com>
325
326 * ravenscar-thread.c (ravenscar_is_open): Delete.
327 (ravenscar_initialize): Move most of the code from here...
328 (ravenscar_inferior_created): ... to there. Invert logic.
329 (ravenscar_close): Delete.
330 (init_ravenscar_thread_ops): Remove setting of
331 ravenscar_ops.to_close.
332
333 2012-12-15 Joel Brobecker <brobecker@adacore.com>
334
335 * objfiles.c (init_entry_point_info): Move function from here...
336 * symfile.c (init_entry_point_info): ... to there. Make static.
337 * objfiles.h (objfiles.h): Delete declaration.
338
339 2012-12-15 Joel Brobecker <brobecker@adacore.com>
340
341 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
342 Remove call to init_entry_point_info. Add OBJFILE's
343 section_offsets and num_sections initialization. Add note
344 about entry info in the function documentation.
345 (syms_from_objfile): New function.
346 * coffread.c (coff_symfile_init): Remove call to
347 init_entry_point_info.
348 * machoread.c (macho_symfile_init): Likewise.
349 * xcoffread.c(xcoff_symfile_init): Likewise.
350
351 2012-12-15 Yao Qi <yao@codesourcery.com>
352
353 * remote-notif.c (_initialize_notif): Add new commands
354 'set debug notification' and 'show debug notification'.
355 * NEWS: Mention these new commands.
356
357 2012-12-15 Yao Qi <yao@codesourcery.com>
358
359 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
360 (SFILES): Add "remote-notif.c".
361 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
362 * remote-notif.c: New. Factored out from remote.c.
363 * remote-notif.h: New.
364 * remote.c: Include "remote-notif.h".
365 (stop_reply_xmalloc, do_stop_reply_xfree):
366 (remote_parse_stop_reply, remote_get_pending_stop_replies):
367 (remote_async_get_pending_events_handler): Remove declarations.
368 (remote_parse_stop_reply): Declare.
369 (pending_stop_reply): Remove.
370 (remote_async_get_pending_events_token): Move to
371 remote-notif.c.
372 (remote_close): Replace 'delete_async_event_handler' with
373 remote_notif_unregister_async_event_handler.
374 Don't call discard_pending_stop_replies.
375 (remote_start_remote): Replace code with remote_notif_parse
376 and remote_notif_get_pending_replies.
377 (remote_open_1): Replace 'create_async_event_handler' with
378 remote_notif_register_async_event_handler.
379 (extended_remote_attach_1): Call remote_notif_parse and
380 notif_stop_reply_push.
381 (struct stop_reply) <next>: Remove.
382 <base>: New field.
383 Callers update.
384 (stop_reply_queue): Change its type.
385 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
386 (remote_notif_remove_all): New.
387 (discard_pending_stop_replies): Update.
388 (remote_notif_stop_ack, stop_reply_dtr): New.
389 (remote_notif_stop_alloc_event): New.
390 (notif_client_stop): New variable.
391 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
392 (queued_stop_reply, peek_stop_reply): Adjust.
393 (remote_get_pending_stop_replies): Rename to
394 remote_notif_get_pending_events.
395 (handle_notification): Move to remote-notif.c.
396 (remote_async_get_pending_events_handler): Likewise.
397 (remote_wait_as): Adjust to call remote_notif_parse.
398 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
399 Return minus_one_ptid early if gets a notification.
400 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
401 (_initialize_remote): Call QUEUE_alloc. Update caller.
402 (remote_resume): Call 'remote_notif_process' in all-stop mode.
403 * remote.h: Include "remote-notif.h".
404 (remote_notif_get_pending_replies): Declare.
405
406 2012-12-15 Yao Qi <yao@codesourcery.com>
407
408 * remote.c (discard_pending_stop_replies): Update declaration.
409 (remote_detach_1, extended_remote_mourn_1): Likewise.
410 (discard_pending_stop_replies): Change parameter from PID to
411 INF.
412 (remote_close): Update caller.
413 (_initialize_remote): Attach discard_pending_stop_replies to
414 inferior_exit observer.
415
416 2012-12-15 Yao Qi <yao@codesourcery.com>
417
418 * remote.c (getpkt_or_notif_sane): Add one more argument in
419 its declaration.
420 (getpkt_or_notif_sane_1): Add one more argument.
421 (getpkt_sane): Update caller.
422 (getpkt_or_notif_sane): Likewise. Update call
423 togetpkt_or_notif_sane_1.
424 (remote_wait_ns): Update caller.
425
426 2012-12-15 Yao Qi <yao@codesourcery.com>
427 Doug Evans <dje@google.com>
428
429 * common/queue.h: New.
430
431 2012-12-15 Yao Qi <yao@codesourcery.com>
432
433 * breakpoint.c (print_one_breakpoint_location): Display the
434 state of 'installed' of each non-pending location of a tracepoint
435 in both CLI and MI.
436 (download_tracepoint_locations): Notify 'breakpoint-modified'
437 observer if any tracepoint location is downloaded.
438 * tracepoint.c (start_tracing): Likewise.
439 (merge_uploaded_tracepoints): Record all modified
440 tracepoints and notify 'breakpoint-modified' observer for them.
441
442 * NEWS: Mention the change for CLI and MI.
443
444 2012-12-15 Yao Qi <yao@codesourcery.com>
445
446 * breakpoint.c (download_tracepoint_locations): Iterate over
447 ALL_TRACEPOINTS first and then iterate over locations of
448 each tracepoint.
449
450 2012-12-14 Pierre Muller <muller@sourceware.org>
451 Pedro Alves <palves@redhat.com>
452
453 * solib-target.c (solib_target_current_sos): Remove 'const'
454 qualifier from type of library_document local variable to be
455 able to free it and avoid a memory leak.
456 Use cleanup chain to avoid leak even if exceptino is generated.
457
458 2012-12-14 Tom Tromey <tromey@redhat.com>
459
460 PR c++/8888:
461 * symtab.c (lookup_symbol_aux): If constructor is found, consider
462 returning the type instead.
463 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
464 found.
465
466 2012-12-14 Tom Tromey <tromey@redhat.com>
467
468 Partial fix for PR c++/14160:
469 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
470 * dwarf2read.c (dwarf2_is_constructor): New function.
471 (dwarf2_add_member_fn): Use it.
472 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
473 TYPE_FN_FIELD_CONSTRUCTOR.
474 * jv-typeprint.c (java_type_print_base): Use
475 TYPE_FN_FIELD_CONSTRUCTOR.
476 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
477 <dummy>: Shrink.
478 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
479
480 2012-12-14 Tom Tromey <tromey@redhat.com>
481
482 * c-exp.y (block, variable, name_not_typename, lex_one_token,
483 classify_name): Update.
484 * c-valprint.c (c_val_print): Update.
485 * f-exp.y (yylex): Update.
486 * go-exp.y (package_name_p, classify_packaged_name)
487 (classify_name): Update.
488 * jv-exp.y (push_variable): Update.
489 * m2-exp.y (variable): Update.
490 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
491 * p-exp.y (block, variable, yylex): Update.
492 * p-valprint.c (pascal_val_print): Update.
493 * parse.c (write_dollar_variable): Update.
494 * printcmd.c (address_info): Update.
495 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
496 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
497 (lookup_symbol): Change type of 'is_a_field_of_this'.
498 (check_field): Add 'is_a_field_of_this' argument.
499 * symtab.h (struct field_of_this_result): New.
500 (lookup_symbol, lookup_symbol_in_language): Update.
501
502 2012-12-14 Tom Tromey <tromey@redhat.com>
503
504 * symtab.c (check_field): Now static. Move from...
505 * valops.c (check_field): ... here. Remove.
506 * value.h (check_field): Don't declare.
507
508 2012-12-14 Tom Tromey <tromey@redhat.com>
509
510 * NEWS: Mention "info proc" and core files.
511 * corelow.c (core_info_proc): New function.
512 (init_core_ops): Set to_info_proc.
513 * gdbarch.c, gdbarch.h: Rebuild.
514 * gdbarch.sh (core_info_proc): New method.
515 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
516 * linux-tdep.c (linux_core_info_proc_mappings)
517 (linux_core_info_proc): New functions.
518 (linux_find_memory_region_ftype): New typedef.
519 (linux_find_memory_regions_full): New function, from
520 linux_find_memory_regions.
521 (struct linux_find_memory_regions_data): New.
522 (linux_find_memory_regions_thunk): New function.
523 (linux_find_memory_regions): Rewrite.
524 (struct linux_make_mappings_data): New.
525 (linux_make_mappings_callback)
526 (linux_make_mappings_corefile_notes): New functions.
527 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
528 (linux_init_abi): Call set_gdbarch_core_info_proc.
529 * target.c (target_info_proc): Return 'int'.
530 * target.h (target_info_proc): Update.
531
532 2012-12-14 Pierre Muller <muller@sourceware.org>
533
534 * windows-nat.c (windows_xfer_shared_libraries): Avoid
535 memory leak when OFFSET >= LEN_AVAIL.
536
537 2012-12-13 Tom Tromey <tromey@redhat.com>
538
539 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
540
541 2012-12-13 Tom Tromey <tromey@redhat.com>
542
543 * acinclude.m4 (CY_AC_C_WORKS): Remove.
544
545 2012-12-13 Pierre Muller <muller@sourceware.org>
546
547 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
548 local variable and zero terminate it to avoid possible problems
549 in strcmp.
550
551 2012-12-13 Pedro Alves <palves@redhat.com>
552
553 * coff-pe-read.c: Include coff/internal.h.
554 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
555 Null terminate buffer explicitly instead of memset the whole
556 buffer.
557
558 2012-12-13 Pierre Muller <muller@sourceware.org>
559
560 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
561 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
562 for already defined macros.
563
564 2012-12-13 Pierre Muller <muller@sourceware.org>
565
566 * coff-pe-read.h (pe_text_section_offset): Declare new function.
567 * coff-pe-read.c (debug_coff_pe_read): New static variable.
568 (struct read_pe_section_data): Add section_name field.
569 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
570 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
571 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
572 (get_pe_section_index): New function.
573 (struct pe_sections_info): New type.
574 (get_section_vmas): Use new struct pe_sections_info.
575 (add_pe_exported_sym): Handle unnamed exported function.
576 (add_pe_forwarded_sym): New function.
577 (read_pe_truncate_name): Truncate at last dot.
578 (pe_as16): New function.
579 (read_pe_exported_syms): Use ordinal of function to
580 retrieve correct RVA address of function and handle
581 forwarded symbol.
582 (pe_text_section_offset): New function.
583 (show_debug_coff_pe_read): New function.
584 (_initialize_coff_pe_read): New function adding
585 'set/show debug coff_pe_read' commands.
586
587 * windows-tdep.c (windows_xfer_shared_library): Use
588 pe_text_section_offset function instead of possibly wrong
589 0x1000 constant for .text sextion offset.
590
591 2012-12-13 Pedro Alves <palves@redhat.com>
592
593 * gdbarch.sh (do_read): Set IFS to blank.
594
595 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
596
597 * NEWS: Mention the -catch-load/-catch-unload MI commands.
598
599 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
600
601 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
602 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
603 * breakpoint.c (add_solib_catchpoint): New function that
604 can be used by both CLI and MI, factored out from
605 catch_load_or_unload.
606 (catch_load_or_unload): Strip it down and make it use the
607 new add_solib_catchpoint.
608 * breakpoint.h (add_solib_catchpoint): Declare it.
609 * mi/mi-cmd-break.h: New file.
610 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
611 (setup_breakpoint_reporting): New function used for both
612 catchpoints and breakpoints.
613 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
614 * mi/mi-cmd-catch.c: New file.
615 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
616 and -catch-unload.
617 * mi/mi-cmds.h: Declare the handlers for -catch-load and
618 -catch-unload.
619
620 2012-11-28 Tom Tromey <tromey@redhat.com>
621
622 * dbxread.c (read_dbx_symtab): Update.
623 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
624 (read_ofile_symtab): Add 'objfile' argument.
625 * dwarf2read.c (process_psymtab_comp_unit_reader)
626 (build_type_psymtabs_reader): Update.
627 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
628 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
629 argument.
630 (parse_procedure, parse_partial_symbols): Update.
631 (psymtab_to_symtab_1): Add 'objfile' argument.
632 * psympriv.h (struct partial_symtab) <objfile>: Remove.
633 <read_symtab>: Add 'objfile' argument.
634 (sort_pst_symbols, discard_psymtab): Update.
635 * psymtab.c (partial_map_expand_apply): Update.
636 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
637 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
638 (find_pc_sect_psymbol): Add 'objfile' argument.
639 (lookup_symbol_aux_psymtabs): Update.
640 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
641 Add 'objfile' argument.
642 (find_last_source_symtab_from_partial, dump_psymtab)
643 (dump_psymtabs_for_objfile, read_symtabs_for_function)
644 (expand_partial_symbol_tables, read_psymtabs_with_filename)
645 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
646 (expand_symtabs_matching_via_partial): Update.
647 (sort_pst_symbols): Add 'objfile' argument.
648 (allocate_psymtab): Update.
649 (discard_psymtab): Add 'objfile' argument.
650 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
651 * stabsread.h (end_psymtab): Update.
652 * xcoffread.c (this_symtab_objfile): New global.
653 (process_linenos, enter_line_range, xcoff_next_symbol_text):
654 Update.
655 (read_xcoff_symtab): Add 'objfile' argument.
656 (read_symbol, read_symbol_lineno): Update.
657 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
658 (xcoff_end_psymtab): Add 'objfile' argument.
659 (scan_xcoff_symtab): Update.
660
661 2012-12-12 Paul Koning <paul_koning@dell.com>
662
663 Add support for Python 3.
664 * NEWS: Mention Python 3 support.
665 * varobj.c (value_get_print_value): Use
666 python_string_to_target_string.
667 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
668 of type objects.
669 * python/py-breakpoint.c: Ditto.
670 * python/py-cmd.c: Ditto.
671 * python/py-event.c: Ditto.
672 * python/py-event.h: Ditto.
673 * python/py-evtregistry.c: Ditto.
674 * python/py-finishbreakpoint.c: Ditto.
675 * python/py-frame.c: Ditto.
676 * python/py-function.c: Ditto.
677 * python/py-infthread.c: Ditto.
678 * python/py-lazy-string.c: Ditto.
679 * python/py-progspace.c: Ditto.
680 * /python/py-symbol.c: Ditto.
681 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
682 initialization for Python 3.
683 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
684 of type objects.
685 (infpy_read_memory): Return memoryview object if Python 3.
686 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
687 (infpy_search_memory): Ditto.
688 (get_buffer): New function for Python 3.
689 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
690 of type objects.
691 (objfpy_dealloc): Use Py_TYPE to call tp_free.
692 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
693 of type objects.
694 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
695 (set_attr): Ditto.
696 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
697 instead of PyString methods if Python 3.
698 (print_children): Skip push_dummy_python_frame call if Python 3.
699 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
700 of type objects.
701 (salpy_dealloc): Use Py_TYPE to call tp_free.
702 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
703 of type objects.
704 (field_dealloc): Use Py_TYPE to call tp_free.
705 (typy_dealloc): Ditto.
706 (type_object_as_number): Adjust struct initializations for
707 differences in layout for Python 2 vs. Python 3.
708 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
709 string case for Python 3.
710 (unicode_to_encoded_python_string): Shorten code (no functional
711 change).
712 (python_string_to_target_python_string): Comment that in Python 3
713 returned value is a Python "bytes" type.
714 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
715 (gdb_py_object_from_longest): Omit non-long integer case in Python
716 3.
717 (gdb_py_object_from_ulongest): Ditto.
718 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
719 of type objects.
720 (valpy_dealloc): Use Py_TYPE to call tp_free.
721 (valpy_int): Omit function if Python 3.
722 (convert_value_from_python): Use "%S" format (Python object as a
723 string) if Python 3.
724 (value_object_as_number): Adjust struct initializations for
725 differences in layout for Python 2 vs. Python 3.
726 * python/python-config.py: Adjust syntax for Python 3
727 compatibility.
728 Include "sys.abiflags" string as part of python library name, if
729 that attribute exists (Python 3).
730 * python/python-internal.h (IS_PY3): Define if Python 3.
731 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
732 placeholder value if Python 3.
733 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
734 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
735 analogous Python 3 API function if Python 3.
736 (PyVarObject_HEAD_INIT): Define if not already defined.
737 (Py_TYPE): Ditto.
738 * python/python.c (eval_python_command): Omit Py_FlushLine call if
739 Python 3.
740 Check return values of all Python API calls for error.
741 Supply dummy "python" and "python-interactive" commands if Python
742 initialization failed.
743 (_initialize_python): Convert argc to wchar_t** if Python 3.
744 Add module initialization for Python 3.
745 (finish_python_initialization): Pass wchar_t * argument to
746 PySys_SetPath if Python 3.
747 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
748 (_GdbFile): New class for common output file behavior.
749 (GdbOutFile): Subclass from _GdbFile.
750 (GdbOutputErrorFile): Ditto.
751 (auto_load_packages): Adjust syntax for Python 3 compatibility.
752 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
753 * python/lib/gdb/prompt.py: Use sorted() function rather than
754 sort() method.
755 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
756 Adjust syntax for Python 3 compatibility.
757 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
758 rather than sort() method.
759 Adjust syntax for Python 3 compatibility.
760 * python/lib/gdb/command/type_printers.py: Ditto.
761 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
762 value is a memoryview object if Python 3.
763
764 2012-12-12 Tom Tromey <tromey@redhat.com>
765
766 * coffread.c (coff_objfile_data_key): New global.
767 (coff_symfile_init): Use set_objfile_data.
768 (coff_symfile_read): Use objfile_data.
769 (coff_symfile_finish): Don't free deprecated_sym_private.
770 (coff_free_info): New function.
771 (_initialize_coffread): Initialize coff_objfile_data_key.
772 * mdebugread.c (pending_list): Update comment.
773 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
774 * symfile.c (reread_symbols): Don't mention
775 deprecated_sym_private.
776 * xcoffread.c (xcoff_objfile_data_key): New global.
777 (XCOFF_DATA): New macro.
778 (process_linenos, enter_line_range, xcoff_next_symbol_text)
779 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
780 XCOFF_DATA.
781 (xcoff_new_init) Use set_objfile_data.
782 (xcoff_symfile_finish): Don't free deprecated_sym_private.
783 (init_stringtab, swap_sym, scan_xcoff_symtab)
784 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
785 (xcoff_free_info): New function.
786 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
787
788 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
789
790 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
791
792 2012-12-12 Tom Tromey <tromey@redhat.com>
793
794 * coffread.c (coff_symfile_init): Use set_objfile_data.
795 (coff_symfile_read): Use DBX_SYMFILE_INFO.
796 * dbxread.c (dbx_objfile_data_key): New global.
797 (dbx_symfile_init): Use set_objfile_data.
798 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
799 (dbx_free_symfile_info): New function.
800 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
801 DBX_SYMFILE_INFO.
802 (stabsect_build_psymtabs): Use set_objfile_data.
803 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
804 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
805 set_objfile_data.
806 (free_elfinfo): Use DBX_SYMFILE_INFO.
807 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
808 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
809 * gdb-stabs.h (dbx_objfile_data_key): Declare.
810 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
811 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
812 * somread.c (som_symfile_finish): Don't free
813 deprecated_sym_stab_info.
814
815 2012-12-12 Joel Brobecker <brobecker@adacore.com>
816
817 * gdbarch.sh (software_single_step): Remove trailing space in
818 comment (gdbarch.h is already correct).
819
820 2012-12-11 Tom Tromey <tromey@redhat.com>
821
822 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
823
824 2012-12-11 Tom Tromey <tromey@redhat.com>
825
826 * dsrec.c (report_transfer_performance): Don't declare.
827 (load_srec): Use gettimeofday, print_transfer_performance.
828 * symfile.c (report_transfer_performance): Remove.
829
830 2012-12-11 Pedro Alves <pedro@codesourcery.com>
831 Pedro Alves <palves@redhat.com>
832
833 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
834 NT_PSTATUS note.
835 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
836 differently from LWP IDs.
837
838 2012-12-11 Pedro Alves <palves@redhat.com>
839
840 * configure.ac (detect type of /proc): Remove Unixware handling.
841 * configure: Regenerate.
842 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
843 (ioctl_table) [PCRESET]: Remove entry.
844 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
845 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
846 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
847 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
848 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
849 Unixware in comments throughout.
850 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
851 and remove mention of Unixware.
852
853 2012-12-10 Doug Evans <dje@google.com>
854
855 * dwarf2read.c (dwarf2_cu): Enhance comment.
856 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
857 the DWO file.
858 (dwarf2_record_block_ranges): Ditto.
859
860 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
861
862 * symtab.c (find_pc_sect_symtab): Add comment.
863
864 2012-12-10 Tom Tromey <tromey@redhat.com>
865
866 * defs.h: Don't check for definition of LONGEST.
867 (min, max): Remove duplicates.
868
869 2012-12-10 Tom Tromey <tromey@redhat.com>
870
871 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
872 (dwarf2_fetch_die_loc_cu_off): Rename from
873 dwarf2_fetch_die_location_block. Rewrite to use
874 dwarf2_fetch_die_loc_sect_off.
875 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
876 (dwarf2_fetch_die_loc_cu_off): Rename.
877 * dwarf2loc.c (indirect_pieced_value): Use
878 dwarf2_fetch_die_loc_sect_off.
879 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
880 comment.
881 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
882 * dwarf2expr.c (add_piece): Update.
883 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
884
885 2012-12-10 Tom Tromey <tromey@redhat.com>
886
887 * buildsym.c (struct pending_block): Move from buildsym.h.
888 (pending_blocks): Likewise; now static.
889 (pending_block_obstack): New global.
890 (free_pending_blocks): Free blocks.
891 (record_pending_block): Use pending_block_obstack.
892 * buildsym.h (struct pending_block): Move definition to
893 buildsym.c.
894 (pending_blocks): Don't declare.
895
896 2012-12-10 Pedro Alves <palves@redhat.com>
897
898 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
899 dead SCO code, and adjust function description comment.
900
901 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
902
903 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
904 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
905 CC_HAS_LONG_LONG.
906 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
907 * dwarf2read.c (extract_cu_value): Remove the function.
908 (create_cus_from_index_list): Make the return type void, inline the
909 extract_cu_value caller, include new gdb_static_assert.
910 (create_cus_from_index): Make the return type void, update the function
911 comment, update the create_cus_from_index_list caller.
912 (create_signatured_type_table_from_index): Make the return type void,
913 inline the extract_cu_value caller, include new gdb_static_assert.
914 (dwarf2_read_index): Update the create_cus_from_index and
915 create_signatured_type_table_from_index caller.
916 * printcmd.c (ui_printf): Remove conditionalizations for
917 CC_HAS_LONG_LONG.
918 * config.in: Regenerate.
919 * configure: Regenerate.
920
921 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
924 Update the comment for checked_producer.
925 (check_producer): New forward declaration.
926 (producer_is_gcc_lt_4_3): New function.
927 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
928 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
929
930 2012-12-07 Tom Tromey <tromey@redhat.com>
931
932 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
933 argument, assertion.
934 * c-exp.y (typebase): Add completion productions.
935 * completer.c (expression_completer): Handle tag completion.
936 * expression.h (parse_expression_for_completion): Add argument.
937 * f-lang.c (f_make_symbol_completion_list): Add 'code'
938 argument.
939 * language.h (struct language_defn)
940 <la_make_symbol_completion_list>: Add 'code' argument.
941 * parse.c (expout_tag_completion_type, expout_completion_name):
942 New globals.
943 (mark_struct_expression): Add assertion.
944 (mark_completion_tag): New function.
945 (parse_exp_in_context): Initialize new globals.
946 (parse_expression_for_completion): Add 'code' argument. Handle
947 tag completion.
948 * parser-defs.h (mark_completion_tag): Declare.
949 * symtab.c (default_make_symbol_completion_list_break_on): Add
950 'code' argument. Update.
951 (default_make_symbol_completion_list): Add 'code' argument.
952 (make_symbol_completion_list): Update.
953 (make_symbol_completion_type): New function.
954 * symtab.h (default_make_symbol_completion_list_break_on)
955 (default_make_symbol_completion_list): Update.
956 (make_symbol_completion_type): Declare.
957
958 2012-12-07 Tom Tromey <tromey@redhat.com>
959
960 * expression.h (parse_expression_for_completion): Rename
961 from parse_field_expression.
962 (parse_completion): Rename from in_parse_field.
963 * c-exp.y (lex_one_token): Update.
964 * completer.c (expression_completer): Update.
965 * go-exp.y (lex_one_token): Update.
966 * p-exp.y (yylex): Update.
967 * parse.c (parse_completion): Rename from in_parse_field.
968 (parse_exp_in_context): Update.
969 (parse_expression_for_completion): Rename from
970 parse_field_expression. Update.
971
972 2012-12-07 Tom Tromey <tromey@redhat.com>
973
974 * typeprint.c (_initialize_typeprint): Set completer
975 for "whatis" and "ptype".
976
977 2012-12-07 Joel Brobecker <brobecker@adacore.com>
978
979 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
980 "sim/common/cgen-fpu.h". Remove invalid entries
981 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
982 which actually have an FSF copyright header.
983
984 2012-12-07 Joel Brobecker <brobecker@adacore.com>
985
986 * osf-share/AT386/cma_thread_io.h: Delete.
987 * osf-share/HP800/cma_thread_io.h: Delete.
988 * osf-share/README: Delete.
989 * osf-share/RIOS/cma_thread_io.h: Delete.
990 * osf-share/cma_attr.h: Delete.
991 * osf-share/cma_deb_core.h: Delete.
992 * osf-share/cma_debug_client.h: Delete.
993 * osf-share/cma_errors.h: Delete.
994 * osf-share/cma_handle.h: Delete.
995 * osf-share/cma_init.h: Delete.
996 * osf-share/cma_list.h: Delete.
997 * osf-share/cma_mutex.h: Delete.
998 * osf-share/cma_sched.h: Delete.
999 * osf-share/cma_semaphore_defs.h: Delete.
1000 * osf-share/cma_sequence.h: Delete.
1001 * osf-share/cma_stack.h: Delete.
1002 * osf-share/cma_stack_int.h: Delete.
1003 * osf-share/cma_tcb_defs.h: Delete.
1004 * osf-share/cma_util.h: Delete.
1005 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
1006 in osf-share.
1007 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
1008 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
1009 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
1010
1011 2012-12-06 Pedro Alves <palves@redhat.com>
1012 Tom Tromey <tromey@redhat.com>
1013
1014 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
1015
1016 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
1017
1018 PR mi/14741:
1019 * mi/mi-cmd-var.c (varobj_update_one): Take value of
1020 attribute "dynamic" and "displayhint" from printed child,
1021 not the root variable.
1022
1023 2012-12-06 Joel Brobecker <brobecker@adacore.com>
1024
1025 * aix-thread.c (getthrds): Fix type of 4th parameter.
1026 (get_signaled_thread): Change type of variable ktid to tid_t.
1027
1028 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
1029
1030 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
1031 value of get_frame_block.
1032
1033 2012-12-05 Pierre Muller <muller@sourceware.org>
1034
1035 Avoid memory leaks on struct cmd_list_element.doc field.
1036 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
1037 if flags contains DOC_ALLOCATED.
1038 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
1039 flags.
1040 (delete_cmd): Handle DOC_ALLOCATED flag.
1041 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
1042 in flags filed of struct cmd_list_element.
1043 (struct cmd_list_element): Document new flag item.
1044
1045 2012-12-04 Doug Evans <dje@google.com>
1046
1047 * symmisc.c: Whitespace fixes.
1048
1049 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
1050
1051 * i386-tdep.c (i386_skip_prologue): Using symbol table
1052 to find the end of prologue for clang compiled binaries.
1053 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1054 to find the end of prologue for clang compiled binaries.
1055
1056 2012-12-03 Doug Evans <dje@google.com>
1057
1058 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
1059 (dw2_find_symbol_file): Delete unused local file_data.
1060
1061 2012-12-03 Tom Tromey <tromey@redhat.com>
1062
1063 * ada-exp.y (write_object_renaming, write_var_or_type)
1064 (write_ambiguous_var, write_var_from_sym): Make blocks const.
1065 * ada-lang.c (replace_operator_with_call)
1066 (find_old_style_renaming_symbol): Make blocks const.
1067 * ada-lang.h (ada_find_renaming_symbol): Update.
1068 (struct ada_symbol_info) <block>: Now const.
1069 * breakpoint.c (watch_command_1): Update.
1070 * breakpoint.h (struct watchpoint) <exp_valid_block,
1071 cond_exp_valid_block>: Now const.
1072 * c-exp.y (classify_inner_name, classify_name): Make block
1073 argument const.
1074 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
1075 const.
1076 * expression.h (innermost_block, parse_exp_1): Update.
1077 (union exp_element) <block>: Now const.
1078 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
1079 (lookup_struct): Make block argument const.
1080 * gdbtypes.h (lookup_template_type): Update.
1081 * go-exp.y (classify_name, classify_packaged_name)
1082 (package_name_p): Make block argument const.
1083 * objc-lang.c (lookup_struct_typedef): Make block argument const.
1084 * objc-lang.h (lookup_struct_typedef): Update.
1085 * parse.c (parse_exp_in_context, parse_exp_1)
1086 (write_exp_elt_block): Make block arguments const.
1087 (expression_context_block, innermost_block): Now const.
1088 * parser-defs.h (write_exp_elt_block): Update.
1089 (expression_context_block, innermost_block, block_found): Now
1090 const.
1091 * printcmd.c (struct display) <block>: Now const.
1092 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1093 * valops.c (address_of_variable): Make block argument const.
1094 * value.h (value_of_variable): Update.
1095 * varobj.c (struct varobj_root) <valid_block>: Now const.
1096
1097 2012-11-30 Yao Qi <yao@codesourcery.com>
1098
1099 * breakpoint.c (print_one_breakpoint_location): Indent code.
1100
1101 2012-11-30 Yao Qi <yao@codesourcery.com>
1102
1103 * breakpoint.c (print_one_breakpoint_location): Combine two
1104 blocks handling 'hit count' together.
1105
1106 2012-11-30 Yao Qi <yao@codesourcery.com>
1107
1108 * infrun.c (error_is_running, ensure_not_running): Move them
1109 to ...
1110 * infcmd.c (error_is_running, ensure_not_running): ... here.
1111 Make them 'static'.
1112 * inferior.h: Remove declarations of error_is_running and
1113 ensure_not_running.
1114
1115 2012-11-30 Yao Qi <yao@codesourcery.com>
1116
1117 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
1118 check REGNUM >= 0.
1119
1120 2012-11-30 Yao Qi <yao@codesourcery.com>
1121
1122 * infrun.c: Make the declaration of 'init_infwait_state'
1123 static.
1124 (init_infwait_state): Make it 'static'.
1125
1126 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1127
1128 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1129 return value to void to avoid compiler warning.
1130
1131 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1132
1133 * opencl-lang.c (opencl_print_type): New function.
1134 (opencl_language_arch_info): Install it.
1135
1136 2012-11-29 Tom Tromey <tromey@redhat.com>
1137
1138 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1139 xvasprintf.
1140 * common/common-utils.c (xasprintf, xvasprintf): Remove.
1141 * common/common-utils.h (xasprintf, xvasprintf): Remove.
1142
1143 2012-11-29 Jerome Guitton <guitton@adacore.com>
1144
1145 * ada-lang.c (ada_is_interface_tag): New function.
1146 (ada_is_ignored_field): Add interface tags to the list
1147 of ignored fields.
1148
1149 2012-11-29 Jerome Guitton <guitton@adacore.com>
1150
1151 * ada-lang.h (ada_tag_value_at_base_address): New function
1152 declaration.
1153 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1154 New functions.
1155 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1156 relocate the class-wide value if need be.
1157 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1158 Let ada_tag_value_at_base_address relocate the class-wide access/ref
1159 before dereferencing it.
1160 * ada-valprint.c (ada_val_print_1): Relocate to base address
1161 before displaying the content of an interface-wide ref.
1162
1163 2012-11-29 Jerome Guitton <guitton@adacore.com>
1164
1165 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1166
1167 2012-11-29 Joel Brobecker <brobecker@adacore.com>
1168
1169 GDB 7.5.1 released.
1170
1171 2012-11-29 Yao Qi <yao@codesourcery.com>
1172 Tom Tromey <tromey@redhat.com>
1173
1174 * eval.c (evaluate_subexp_standard): Get the correct pointer
1175 type for TYPE_CODE_MEMBERPTR.
1176
1177 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
1178
1179 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1180 since now it is being done by binutils' powerpc_init_dialect().
1181
1182 2012-11-28 Tom Tromey <tromey@redhat.com>
1183
1184 PR gdb/14290:
1185 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1186 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1187 Use it.
1188 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1189 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1190 (gdb_bfd_openr_next_archived_file): Use it.
1191
1192 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
1193
1194 * configure.ac: Check for linux/perf_event.h.
1195 * config.in: Regenerated.
1196 * configure: Regenerated.
1197
1198 2012-11-28 Yao Qi <yao@codesourcery.com>
1199
1200 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1201 abbreviate 'delete tracepoints' to 'delete tr'.
1202 * corefile.c (_initialize_core): Call add_alias_cmd to
1203 abbreviate 'set gnutarget' to 'set g'.
1204 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1205 'show convenience' to 'show conv'.
1206
1207 2012-11-27 Joel Brobecker <brobecker@adacore.com>
1208
1209 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1210 call to sparc_supply_fpregset.
1211 (fill_fpregset): Fix first parameter in call to
1212 sparc_collect_fpregset.
1213
1214 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1215 Kazu Hirata <kazu@codesourcery.com>
1216 Yao Qi <yao@codesourcery.com>
1217
1218 * objfiles.c (init_entry_point_info): Call
1219 gdbarch_convert_from_func_ptr_addr and
1220 gdbarch_addr_bits_remove here ...
1221 (entry_point_address_query): ... instead of here.
1222 * solib-svr4.c (exec_entry_point): Call
1223 gdbarch_addr_bits_remove.
1224 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1225 the entry address.
1226
1227 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1228 Yao Qi <yao@codesourcery.com>
1229
1230 * eval.c (evaluate_subexp_standard): Add handling of
1231 TYPE_CODE_MEMBERPTR when calling functions. Correct the
1232 result of ptype for calling a TYPE_CODE_METHODPTR.
1233
1234 2012-11-27 Yao Qi <yao@codesourcery.com>
1235
1236 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1237 warning.
1238 Add i18n markup.
1239
1240 2012-11-26 Alexander Larsson <alexl@redhat.com>
1241 Jan Kratochvil <jan.kratochvil@redhat.com>
1242 Tom Tromey <tromey@redhat.com>
1243
1244 * NEWS: Mention mini debuginfo feature.
1245 * minidebug.c: New file.
1246 * configure.ac: Check for lzma.
1247 * configure, config.in: Rebuild.
1248 * Makefile.in (LIBLZMA): New variable.
1249 (CLIBS): Include LIBLZMA.
1250 (SFILES): Mention minidebug.c.
1251 (COMMON_OBS): Mention minidebug.o.
1252 * symfile.c (read_symbols): New function.
1253 (syms_from_objfile, reread_symbols): Call it.
1254 * symfile.h (find_separate_debug_file_in_section): Declare.
1255
1256 2012-11-26 Keith Seitz <keiths@redhat.com>
1257
1258 * exec.c (exec_file_attach): Move cleanup after verifying that
1259 memory has in fact been allocated.
1260
1261 2012-11-26 Tom Tromey <tromey@redhat.com>
1262
1263 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1264 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1265 SYMBOL_SYMTAB.
1266 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1267
1268 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1269 Pedro Alves <palves@redhat.com>
1270
1271 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1272 size parameter passed to readlink by one byte.
1273 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1274 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1275 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1276 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1277 size by one byte.
1278
1279 2012-11-26 Yao Qi <yao@codesourcery.com>
1280
1281 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1282 extraneous parentheses.
1283
1284 2012-11-26 Yao Qi <yao@codesourcery.com>
1285
1286 * remote.c (remote_start_remote): Typo fix.
1287
1288 2012-11-23 David S. Miller <davem@davemloft.net>
1289
1290 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1291 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1292 sparc32_sol2_fpregset): Declare new globals.
1293 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1294 'fpregset' argument.
1295 * sparc64-tdep.h (sparc64_supply_fpregset,
1296 sparc64_collect_fpregset): Likewise.
1297 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1298 globals.
1299 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1300 (sparc_fpregset): Declare new global.
1301 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1302 'fpregset' argument.
1303 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1304 into handler.
1305 (fill_fpregset): Likewise.
1306 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1307 sparc32_bsd_fpregset.
1308 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1309 sparc32_bsd_fpregset down into handler.
1310 (sparc32_linux_collect_core_fpregset): Likewise.
1311 * sparc-nat.c (sparc_fpregset): Define.
1312 (sparc_supply_fpregset): Add 'fpregset' argument.
1313 (sparc_collect_fpregset): Likewise.
1314 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1315 into fpregset handler.
1316 (sparc_store_inferior_registers): Likewise.
1317 (_initialize_sparc_nat): Set sparc_fpregset to
1318 sparc32_sunos4_fpregset if NULL.
1319 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1320 down into handler.
1321 (fill_fpregset): Likewise.
1322 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1323 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1324 use it to compute offsets.
1325 (sparc32_collect_fpregset): Likewise.
1326 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1327 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1328 down into handler.
1329 (fill_fpregset): Likewise.
1330 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1331 Likewise.
1332 (sparc64_linux_collect_core_fpregset): Likewise.
1333 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1334 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1335 use it to compute offsets.
1336 (sparc64_collect_fpregset): Likewise.
1337 (sparc64_bsd_fpregset): Define.
1338 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1339 sparc64_bsd_fpregset down into handler.
1340 (sparc64fbsd_collect_fpregset): Likewise.
1341 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1342 and pass sparc{32,64}_bsd_fpregset down into handler.
1343 (sparc64nbsd_collect_fpregset): Likewise.
1344 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1345 sparc64_bsd_fpregset down into handler.
1346 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1347 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1348 to sparc32_bsd_fpregset.
1349 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1350 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1351 (sparc32nbsd_supply_fpregset): Likewise.
1352
1353 2012-11-21 Tom Tromey <tromey@redhat.com>
1354
1355 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1356 field.
1357 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1358 Remove.
1359 * c-typeprint.c (c_type_print_base): Update.
1360
1361 2012-11-21 Yao Qi <yao@codesourcery.com>
1362
1363 PR tdep/7438
1364 * gdbarch.sh (smash_text_address): Remove.
1365 * gdbarch.c, gdbarch.h: Regenerate.
1366 * arm-tdep.c (arm_smash_text_address): Remove.
1367 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1368 * hppa-tdep.c (hppa_smash_text_address): Remove.
1369 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1370 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1371 Caller update.
1372 * coffread.c (coff_symtab_read): Caller update.
1373 * dbxread.c (process_one_symbol): Likewise.
1374 * elfread.c (record_minimal_symbol): Likewise.
1375 * somread.c (som_symtab_read): Likewise.
1376
1377 2012-11-20 Pierre Muller <muller@sourceware.org>
1378
1379 ARI fixes: sprintf rule.
1380 Replace sprintf function calls for char arrays by
1381 calls to xsnprintf calls.
1382 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1383 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1384 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1385 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1386 * breakpoint.c (condition_completer): Ditto.
1387 (create_tracepoint_from_upload): Ditto.
1388 * dwarf2read.c (file_full_name): Ditto.
1389 * gcore.c (gcore_command): Ditto.
1390 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1391 * go32-nat.c (go32_sysinfo): Ditto.
1392 * interps.c (interp_set): Ditto.
1393 * m32c-tdep.c (make_types): Ditto.
1394 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1395 * remote-m32r-sdi.c (m32r_open): Ditto.
1396 * sol-thread.c (td_err_string): Ditto.
1397 (td_state_string, solaris_pid_to_str): Ditto.
1398 * symtab.c (gdb_mangle_name): Ditto.
1399 * cli/cli-script.c (execute_control_command): Ditto.
1400 (define_command, document_command): Ditto.
1401 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1402 * tui/tui-stack.c (tui_make_status_line): Ditto.
1403 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1404
1405 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1406
1407 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1408 it when looking at ptr->func.
1409 * command.h (complete_on_cmdlist): Add a fourth arg.
1410 * completer.c (complete_line_internal): Add local ignore_help_classes,
1411 and set it to 1 when reason is not handle_help. Pass this down to
1412 lookup_cmd_1 and complete_on_cmdlist.
1413
1414 2012-11-20 Tom Tromey <tromey@redhat.com>
1415
1416 * completer.c (count_struct_fields): Remove.
1417 (expression_completer): Don't call count_struct_fields.
1418
1419 2012-11-20 Pedro Alves <palves@redhat.com>
1420
1421 * annotate.c (breakpoints_changed): Rename to ...
1422 (annotate_breakpoints_changed): ... this.
1423 (annotate_stopped, breakpoint_changed): Adjust caller.
1424 * annotate.h (breakpoints_changed): Rename to ...
1425 (annotate_breakpoints_changed): ... this.
1426 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1427 (do_map_commands_command, init_raw_breakpoint, clear_command)
1428 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1429
1430 2012-11-20 David S. Miller <davem@davemloft.net>
1431
1432 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1433 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1434 sysconf.
1435 (get_cores_used_by_process): Update comment.
1436
1437 2012-11-20 Yao Qi <yao@codesourcery.com>
1438
1439 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1440
1441 2012-11-20 Yao Qi <yao@codesourcery.com>
1442
1443 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1444 to deprecated_context_hook.
1445
1446 2012-11-19 Yao Qi <yao@codesourcery.com>
1447
1448 * infrun.c (infwait_state): Add static.
1449
1450 2012-11-16 Keith Seitz <keiths@redhat.com>
1451
1452 PR c++/13615
1453 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1454 parameter and pass it to lookup_symbol_file.
1455 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1456 to search base classes.
1457 (cp_lookup_symbol_namespace): Likewise.
1458 (lookup_namespace_scope): Likewise.
1459 (lookup_symbol_file): Add SEARCH parameter.
1460 If SEARCH is non-zero and no symbol is found, lookup the class
1461 and call cp_lookup_nested_symbol.
1462 (find_symbol_in_baseclass): New function.
1463 (cp_lookup_nested_symbol): Do not let
1464 cp_lookup_symbol_in_namespace search through base classes.
1465 Do that later when there is no global symbol match.
1466
1467 2012-11-16 Doug Evans <dje@google.com>
1468
1469 * main.c (gdb_datadir_provided): New static global.
1470 (get_init_files): If --data-directory is provided,
1471 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1472 * NEWS: Mention it.
1473
1474 2012-11-15 Pierre Muller <muller@sourceware.org>
1475
1476 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1477 * gdb_stat.h: Delete. Moved to common directory.
1478 * common/gdb_stat.h: New file.
1479 * gdb_wait.h: Delete. Moved to common directory.
1480 * common/gdb_wait.h: New file.
1481 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1482 location.
1483 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1484 location.
1485 (stat.h rule): Adapt to new gdb_stat.h location.
1486 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1487 <sys/stat.h> header.
1488 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1489 <sys/wait.h> header.
1490
1491 2012-11-15 Pierre Muller <muller@sourceware.org>
1492
1493 * configure.ac (AC_HEADER_STAT): Remove.
1494 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1495 and corresponding code.
1496 * configure: Regenerate.
1497 * config.in: Regenerate.
1498
1499 2012-11-15 Pierre Muller <muller@sourceware.org>
1500
1501 ARI xasprintf rule fixes.
1502 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1503 instead of xasprintf.
1504 (open_and_init_dwp_file): Ditto.
1505
1506 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1507
1508 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1509 target types.
1510
1511 2012-11-14 Tom Tromey <tromey@redhat.com>
1512
1513 * configure, config.in: Rebuild.
1514 * configure.ac: Don't check for ctype.h, time.h.
1515 * expprint.c: Don't use HAVE_CTYPE_H.
1516
1517 2012-11-13 Tom Tromey <tromey@redhat.com>
1518
1519 * gdbarch.h, gdbarch.c: Rebuild.
1520 * gdbarch.sh (set_target_gdbarch): Rename from
1521 deprecated_target_gdbarch_select_hack.
1522 * arch-utils.c (gdbarch_update_p): Update.
1523 (set_gdbarch_from_file): Update.
1524
1525 2012-11-14 Pierre Muller <muller@sourceware.org>
1526
1527 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1528 as responsible of contrib/ari directory.
1529
1530 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1531 Yao Qi <yao@codesourcery.com>
1532
1533 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1534 bit of EXC_RETURN.
1535 (arm_m_exception_cache, arm_m_exception_this_id)
1536 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1537 (arm_m_exception_unwind): New.
1538 (arm_gdbarch_init): Register arm_m_exception_unwind.
1539
1540 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1541
1542 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1543 parameter COUNT, for pattern filling of memory regions.
1544 * NEWS: Mention it.
1545
1546 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1547
1548 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1549 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1550 to print_source_lines ().
1551 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1552 flag.
1553 * source.c (print_source_lines_base): Prefix source line with
1554 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1555
1556 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1557
1558 * symtab.h (print_source_lines_flags): New enum.
1559 * source.c (print_source_lines_base): Change noerror to flags.
1560 (print_source_lines): Change noerror to flags.
1561
1562 2012-11-13 Pierre Muller <muller@sourceware.org>
1563
1564 ARI fixes: Avoid sprintf function use rule.
1565 * charset.c (convert_between_encodings): Use xsnprintf.
1566 * cli-out.c (cli_field_int): Likewise.
1567 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1568 * expprint.c (op_name_standard): Likewise.
1569 * frv-tdep.c (set_variant_num_gprs): Likewise.
1570 (set_variant_num_fprs): Likewise.
1571 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1572 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1573 (nto_init_solib_absolute_prefix): Likewise.
1574 * source.c (init_source_path): Likewise.
1575 (print_source_lines_base): Likewise.
1576 * valprint.c (print_wchar): Likewise.
1577 * mi/mi-out.c (mi_field_int): Likewise.
1578 windows-nat.c (windows_pid_to_exec_file): Likewise.
1579 (windows_create_inferior): Likewise.
1580 (_initialize_check_for_gdb_ini): Likewise.
1581
1582 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1583
1584 * frame.h (deprecated_frame_register_read): Renames
1585 frame_register_read.
1586 * frame.c (deprecated_frame_register_read): Renames
1587 frame_register_read. Update all callers.
1588 * i386-tdep.c: Update all callers of frame_register_read.
1589 * infcmd.c: Likewise.
1590 * jit.c: Likewise.
1591 * mips-tdep.c: Likewise.
1592 * mt-tdep.c: Likewise.
1593 * sh64-tdep.c: Likewise.
1594
1595 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1596
1597 * frame.h (frame_register_read): Remove FIXME comment.
1598 * frame.c (frame_register_read): Add suggestion explaining
1599 which function to use in place of this one.
1600
1601 2012-11-12 Tom Tromey <tromey@redhat.com>
1602
1603 * python/python.c (start_type_printers): Initialize 'result_obj'.
1604
1605 2012-11-12 Tom Tromey <tromey@redhat.com>
1606
1607 * NEWS: Update.
1608 * data-directory/Makefile.in (PYTHON_FILES): Add
1609 type_printers.py.
1610 * python/lib/gdb/command/type_printers.py: New file.
1611 * python/lib/gdb/command/types.py (TypePrinter): New class.
1612 (_get_some_type_recognizers, get_type_recognizers,
1613 apply_type_recognizers, register_type_printer): New
1614 functions.
1615 * python/py-objfile.c (objfile_object) <type_printers>: New
1616 field.
1617 (objfpy_dealloc): Decref new field.
1618 (objfpy_new): Set new field.
1619 (objfpy_get_type_printers, objfpy_set_type_printers): New
1620 functions.
1621 (objfile_to_objfile_object): Set new field.
1622 (objfile_getset): Add "type_printers".
1623 * python/py-progspace.c (pspace_object) <type_printers>: New
1624 field.
1625 (pspy_dealloc): Decref new field.
1626 (pspy_new): Set new field.
1627 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1628 (pspace_to_pspace_object): Set new field.
1629 (pspace_getset): Add "type_printers".
1630 * python/python.c (start_type_printers, apply_type_printers,
1631 free_type_printers): New functions.
1632 (_initialize_python): Set gdb.type_printers.
1633 * python/python.h (start_type_printers, apply_type_printers,
1634 free_type_printers): Declare.
1635 * typeprint.c (type_print_raw_options, default_ptype_flags):
1636 Update for new fields.
1637 (do_free_global_table, create_global_typedef_table,
1638 find_global_typedef): New functions.
1639 (find_typedef_in_hash): Use find_global_typedef.
1640 (whatis_exp): Use create_global_typedef_table. Change cleanup
1641 handling.
1642 * typeprint.h (struct type_print_options) <global_typedefs,
1643 global_printers>: New fields.
1644
1645 2012-11-12 Tom Tromey <tromey@redhat.com>
1646
1647 * c-typeprint.c (find_typedef_for_canonicalize,
1648 print_name_maybe_canonical): New functions.
1649 (c_print_type): Look up type name.
1650 (cp_type_print_derivation_info): Add flags argument. Use
1651 print_name_maybe_canonical.
1652 (cp_type_print_method_args): Add wrapping.
1653 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1654 (c_type_print_template_args): New function.
1655 (c_type_print_base): Change wrapping. Use
1656 print_name_maybe_canonical.
1657 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1658 type name lookups.
1659 * gdbtypes.c (types_equal): No longer static.
1660 * gdbtypes.h (types_equal): Declare.
1661 * typeprint.c (type_print_raw_options, default_ptype_flags):
1662 Update.
1663 (struct typedef_hash_table): New.
1664 (hash_typedef_field, eq_typedef_field,
1665 recursively_update_typedef_hash, add_template_parameters,
1666 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1667 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1668 copy_typedef_hash, find_typedef_in_hash): New functions.
1669 * typeprint.h (struct type_print_options) <local_typedefs>:
1670 New field.
1671 (recursively_update_typedef_hash, add_template_parameters,
1672 create_typedef_hash, free_typedef_hash,
1673 make_cleanup_free_typedef_hash, copy_typedef_hash,
1674 find_typedef_in_hash): Declare.
1675
1676 2012-11-12 Tom Tromey <tromey@redhat.com>
1677
1678 * cp-support.c (inspect_type,
1679 replace_typedefs_qualified_name, replace_typedefs): Add
1680 finder, data arguments. Call as needed.
1681 (cp_canonicalize_string_full): New function.
1682 (cp_canonicalize_string_no_typedefs): Rewrite.
1683 * cp-support.h (canonicalization_ftype): New typedef.
1684 (cp_canonicalize_string_full): Declare.
1685
1686 2012-11-12 Tom Tromey <tromey@redhat.com>
1687
1688 * NEWS: Update.
1689 * c-typeprint.c (c_type_print_base): Handle print_method and
1690 print_typedefs flags.
1691 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1692 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1693 options.
1694 * typeprint.c (type_print_raw_options, default_ptype_flags):
1695 Update for new field.s
1696 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1697 (setprinttypelist, showprinttypelist, print_methods,
1698 print_typedefs): New globals.
1699 (set_print_type, show_print_type, set_print_type_methods,
1700 show_print_type_methods, set_print_type_typedefs,
1701 show_print_type_typedefs): New functions.
1702 (_initialize_typeprint): Update documentation. Add "print
1703 type methods" and "print type typedefs" parameters.
1704 * typeprint.h (struct type_print_options) <print_methods,
1705 print_typedefs>: New fields.
1706
1707 2012-11-12 Tom Tromey <tromey@redhat.com>
1708
1709 * c-typeprint.c (cp_type_print_method_args): Add flags
1710 argument. Call c_print_type, not type_print.
1711 (c_type_print_base): Call c_print_type, not type_print.
1712 Update.
1713
1714 2012-11-12 Tom Tromey <tromey@redhat.com>
1715
1716 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1717 to type-printing functions.
1718 * ada-lang.h (ada_print_type): Add argument.
1719 * ada-typeprint.c (print_array_type, print_variant_clauses,
1720 print_variant_part, print_selected_record_field_types,
1721 print_record_field_types, print_unchecked_union_type,
1722 print_func_type, ada_print_type): Add flags argument.
1723 (ada_print_typedef): Update.
1724 * c-exp.y (OPERATOR conversion_type_id): Update.
1725 * c-lang.h (c_print_type, c_type_print_base): Update.
1726 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1727 c_type_print_modifier, c_type_print_args,
1728 c_type_print_varspec_suffix, c_type_print_base): Add flags
1729 argument.
1730 * cp-valprint.c (cp_print_class_member): Update.
1731 * dwarf2read.c (dwarf2_compute_name): Update.
1732 * f-lang.h (f_print_type): Add argument.
1733 * f-typeprint.c (f_print_type): Add flags argument.
1734 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1735 * go-lang.h (go_print_type): Add argument.
1736 * go-typeprint.c (go_print_type): Add flags argument.
1737 * jv-lang.h (java_print_type): Add argument.
1738 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1739 flags argument.
1740 * language.c (unk_lang_print_type): Add flags argument.
1741 * language.h (struct language_defn) <la_print_type>: Add flags
1742 argument.
1743 (LA_PRINT_TYPE): Likewise.
1744 * m2-lang.h (m2_print_type): Add argument.
1745 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1746 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1747 m2_unbounded_array, m2_record_fields): Add flags argument.
1748 * p-lang.h (pascal_print_type, pascal_type_print_base,
1749 pascal_type_print_varspec_prefix): Add argument.
1750 * p-typeprint.c (pascal_print_type,
1751 pascal_type_print_varspec_prefix, pascal_print_func_args,
1752 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1753 flags argument.
1754 * symmisc.c (print_symbol): Update.
1755 * typeprint.c (type_print_raw_options, default_ptype_flags):
1756 New globals.
1757 (type_print): Update.
1758 * typeprint.h (struct type_print_options): New.
1759 (type_print_raw_options): Declare.
1760 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1761
1762 2012-11-10 Keith Seitz <keiths@redhat.com>
1763
1764 * breakpoint.c (clear_command): Add cleanup for
1765 sals.sals if an argument is given.
1766
1767 * linespec.c (parse_linespec): Do cleanups after
1768 parsing a convenience variable.
1769
1770 2012-11-10 Keith Seitz <keiths@redhat.com>
1771
1772 PR gdb/14288
1773 * c-valprint.c (c_val_print): For character arrays
1774 with "print null" option on, print ellipses if
1775 the output is truncated and the next character is not \000.
1776 * valprint.c (MAX_WCHARS): Define.
1777 (WCHAR_BUFLEN): Likewise.
1778 (WCHAR_BUFLEN_MAX): Likewise.
1779 (struct converted_character): New structure.
1780 (count_next_character): New function.
1781 (print_converted_chars_to_obstack): New function.
1782 (generic_printstr): Rewrite using count_next_character
1783 and print_converted_chars_to_obstack.
1784
1785 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1786
1787 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1788 while executing the gdb command.
1789 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1790 are called from prompt_for_continue.
1791 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1792
1793 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1794
1795 PR tui/9584
1796
1797 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1798 but insert the command to execute in readline's buffer.
1799
1800 2012-11-09 Tom Tromey <tromey@redhat.com>
1801
1802 * gdbarch.sh (target_gdbarch): Remove macro.
1803 (get_target_gdbarch): Rename to target_gdbarch.
1804 * gdbarch.c, gdbarch.h: Rebuild.
1805 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1806 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1807 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1808 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1809 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1810 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1811 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1812 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1813 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1814 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1815 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1816 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1817 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1818 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1819 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1820 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1821 target-descriptions.c, target.c, target.h, tracepoint.c,
1822 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1823 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1824 python/py-inferior.c, python/python.c: Update.
1825
1826 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1827
1828 * source.c (print_source_lines_base): Add fullname field giving
1829 full path to file in mi output.
1830 * NEWS: Mention the new fullname field.
1831
1832 2012-11-09 Yao Qi <yao@codesourcery.com>
1833
1834 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1835
1836 2012-11-09 Pedro Alves <palves@redhat.com>
1837
1838 PR gdb/14306
1839
1840 * infrun.c: Include target-descriptions.h.
1841 (follow_exec): Fetch new target description.
1842
1843 2012-11-09 Yao Qi <yao@codesourcery.com>
1844
1845 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1846 0x8d (lea).
1847
1848 2012-11-09 Yao Qi <yao@codesourcery.com>
1849
1850 * breakpoint.c: Declare set_tracepoint_count.
1851 (install_breakpoint): Call set_tracepoint_count if B is a
1852 tracepoint.
1853 (trace_command): Don't call set_tracepoint_count. Re-indent.
1854 (strace_command, ftrace_command):
1855 (create_tracepoint_from_upload): Likewise.
1856
1857 2012-11-09 Pedro Alves <palves@redhat.com>
1858
1859 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1860 (get_target_gdbarch) <gdbarch.h>: New function.
1861 (startup_gdbarch) <gdbarch.h>: Declare.
1862 <gdbarch.c> (target_gdbarch): Delete.
1863 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1864 current inferior's gdbarch.
1865 <gdbarch.c> (get_target_gdbarch): New function.
1866 * inferior.c: Include target-descriptions.h.
1867 (free_inferior): Free target description info.
1868 (add_inferior_with_spaces): Set the inferior's initial
1869 architecture.
1870 (clone_inferior_command): Copy the original inferior's target
1871 description if it was user specified.
1872 (initialize_inferiors): Add comment.
1873 * inferior.h (struct target_desc_info): Forward declare.
1874 (struct inferior) <gdbarch>: New field.
1875 * linux-nat.c: Include target-descriptions.h.
1876 (linux_child_follow_fork): Copy the parent's architecture and
1877 target description to the child.
1878 * target-descriptions.c: Include inferior.h.
1879 (struct target_desc_info): New structure, holding the equivalents
1880 of ...
1881 (target_desc_fetched, current_target_desc)
1882 (target_description_filename): ... these removed globals.
1883 (get_tdesc_info, target_desc_info_from_user_p)
1884 (copy_inferior_target_desc_info, target_desc_info_free): New.
1885 (target_desc_fetched, current_target_desc)
1886 (target_description_filename): Reimplemented as convenience
1887 macros.
1888 (tdesc_filename_cmd_string): New global.
1889 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1890 tdescs filename ..." commands to the per-inferior equivalent.
1891 (show_tdesc_filename_cmd): Get the value to show from the
1892 per-inferior description filename.
1893 (_initilize_target_descriptions): Change the "set/show tdesc
1894 filename" commands' variable.
1895 * target-descriptions.h (struct target_desc, struct target_desc_info)
1896 (struct inferior): Forward declare.
1897 (target_find_description, target_clear_description)
1898 (target_current_description): Adjust comments.
1899 (copy_inferior_target_desc_info, target_desc_info_free)
1900 (target_desc_info_from_user_p). Declare.
1901
1902 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1903
1904 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1905 (tui_target_wait_hook): Remove.
1906 (tui_install_hooks): Install the about_to_proceed observer.
1907 (tui_remove_hooks): And remove it here.
1908
1909 2012-11-08 Tom Tromey <tromey@redhat.com>
1910
1911 * linux-tdep.c (linux_make_siginfo_note): New function.
1912 (linux_make_corefile_notes): Use it.
1913 * corelow.c (get_core_siginfo): New function.
1914 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1915
1916 2012-11-08 Tom Tromey <tromey@redhat.com>
1917
1918 PR gdb/14704:
1919 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1920 (zlib_decompress_section): Remove.
1921 (gdb_bfd_map_section): Only check for compressed section
1922 in mmap case. Use bfd_get_full_section_contents.
1923 * osabi.c (check_note): Add 'sectsize' argument. Read
1924 section data.
1925 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1926 section data. Update for check_note change.
1927 * xcoffread.c (xcoff_initial_scan): Use
1928 bfd_get_full_section_contents.
1929 * py-auto-load.c (auto_load_section_scripts): Use
1930 bfd_get_full_section_contents.
1931 * contrib/cc-with-tweaks.sh: Add -Z option.
1932
1933 2012-11-08 Tom Tromey <tromey@redhat.com>
1934
1935 * python/py-bpevent.c: Include defs.h.
1936 * python/py-continueevent.c: Include defs.h.
1937 * python/py-event.c: Include defs.h.
1938 * python/py-event.h: Don't include defs.h.
1939 * python/py-events.h: Don't include defs.h.
1940 * python/py-evts.c: Include defs.h.
1941 * python/py-exitedevent.c: Include defs.h.
1942 * python/py-newobjfileevent.c: Include defs.h.
1943 * python/py-signalevent.c: Include defs.h.
1944 * python/py-stopevent.c: Include defs.h.
1945 * python/py-threadevent.c: Include defs.h.
1946
1947 2012-11-08 Pierre Muller <muller@sourceware.org>
1948
1949 * update-web-ari.sh (print_heading): Add number of files
1950 checked.
1951 (nb_files): New variable counting the number of sources
1952 files found by gdb_find.sh script.
1953 (debug_awk): New variable to allow extra debug output.
1954 (indexes): Add more information if DEBUG_AWK is set.
1955
1956 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1957
1958 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1959 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1960 following the change in PLT call stubs on linker.
1961
1962 2012-11-08 Pierre Muller <muller@sourceware.org>
1963
1964 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1965 as default language.
1966 (AWK): Use = instead of == for sh test to avoid warning.
1967 (Linux rule): Correct [:digit] into [[:digit:]].
1968 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1969 (vasprintf rule): Adapt to common subdirectory moves.
1970 (xasprintf rule): Idem.
1971 (xvasprintf rule): Idem.
1972 (var_boolean rule): Accept occurence in == or != test.
1973
1974 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1975
1976 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1977
1978 * tui/tui-hooks.c (tui_inferior_exit): New function.
1979 (tui_detach_hook): Remove.
1980 (tui_install_hooks): Install the inferior exit observer.
1981 (tui_remove_hooks): Remove it.
1982
1983 2012-11-08 Yao Qi <yao@codesourcery.com>
1984
1985 PR gdb/14777.
1986 * source.c (_initialize_source): Call add_com_alias to abbreviate
1987 'forward-search' as 'fo'.
1988
1989 2012-11-07 Pedro Alves <palves@redhat.com>
1990
1991 * arm-tdep.c: Make defs.h be the first include.
1992 * coff-pe-read.c: Ditto.
1993 * gnu-nat.c: Ditto.
1994 * go32-nat.c: Ditto.
1995 * i386-nat.c: Ditto.
1996 * ppcnbsd-nat.c: Ditto.
1997 * ada-varobj.h: Don't include defs.h.
1998 * i386-darwin-tdep.h: Ditto.
1999 * i386-nat.h: Ditto.
2000
2001 2012-11-07 Pedro Alves <palves@redhat.com>
2002
2003 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
2004 Committee.
2005
2006 2012-11-07 Pierre Muller <muller@sourceware.org>
2007
2008 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
2009 File already uses "gdb_dirent.h" header.
2010
2011 2012-11-07 Yao Qi <yao@codesourcery.com>
2012
2013 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
2014 tracepoint_count'.
2015
2016 2012-11-06 Tom Tromey <tromey@redhat.com>
2017
2018 * target.h (inferior_has_forked, inferior_has_vforked)
2019 (inferior_has_execd, inferior_has_called_syscall): Remove
2020 declarations.
2021
2022 2012-11-06 Pierre Muller <muller@sourceware.org>
2023
2024 * remote.c (remote_insert_hw_breakpoint): ARI fix,
2025 add missing internalization markup.
2026
2027 2012-11-06 Pedro Alves <palves@redhat.com>
2028
2029 PR gdb/14810
2030
2031 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
2032
2033 2012-11-06 Pierre Muller <muller@sourceware.org>
2034
2035 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
2036 is not executable.
2037
2038 2012-11-05 Joel Brobecker <brobecker@adacore.com>
2039
2040 * gnulib/update-gnulib.sh: New script.
2041
2042 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
2043
2044 * MAINTAINERS: Update my email address.
2045
2046 2012-11-05 Tom Tromey <tromey@redhat.com>
2047
2048 * frame.c (put_frame_register): Don't use temporary buffer.
2049
2050 2012-11-05 Pedro Alves <palves@redhat.com>
2051
2052 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
2053 child. Clear 'pending_detach'.
2054 * infrun.c (handle_vfork_child_exec_or_exit): Clear
2055 'pending_detach' in the vfork parent.
2056
2057 2012-11-05 Doug Evans <dje@google.com>
2058
2059 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
2060 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
2061 * dwarf2read.c: #include "elf-bfd.h".
2062 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
2063 (dwop_section_names): Renamed from dwo_section names. All uses
2064 updated. Add entries for .debug_cu_index, .debug_tu_index.
2065 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
2066 All uses updated.
2067 (struct dwp_sections): New type.
2068 (struct virtual_dwo_sections): New type.
2069 (struct dwp_hash_table): New type.
2070 (struct dwp_file): New type.
2071 (init_cutu_and_read_dies): Ensure DWO info/types section has been
2072 read in. Handle DWOs coming from DWP files.
2073 (lookup_dwo_file_slot): New function.
2074 (dwarf2_locate_dwo_sections): Move definition closer to use.
2075 (create_dwo_debug_info_hash_table_reader): Renamed from
2076 create_debug_info_hash_table_reader. All callers updated.
2077 (create_dwo_debug_info_hash_table): Renamed from
2078 create_debug_info_hash_table. All callers updated.
2079 (create_dwp_hash_table): New function.
2080 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
2081 (lookup_dwo_in_dwp): New function.
2082 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
2083 is_dwp. All callers updated.
2084 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
2085 (open_and_init_dwo_file): Renamed from init_dwo_file.
2086 All callers updated.
2087 (lookup_dwo_file): Delete.
2088 (dwarf2_locate_dwp_sections): New function.
2089 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
2090 (allocate_dwp_loaded_cutus_table): New function.
2091 (open_and_init_dwp_file): New function.
2092 (lookup_dwo_cutu): New function.
2093 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
2094
2095 2012-11-03 Yao Qi <yao@codesourcery.com>
2096
2097 Fix PR gdb/14617.
2098 * breakpoint.c (trace_pass_set_count): Call
2099 observer_notify_breakpoint_modified instead of
2100 observer_notify_tracepoint_modified.
2101 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
2102
2103 2012-11-02 Tom Tromey <tromey@redhat.com>
2104
2105 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
2106 argument to complete_on_enum.
2107
2108 2012-11-02 Tom Tromey <tromey@redhat.com>
2109
2110 * configure: Rebuild.
2111 * configure.ac (build_warnings): Add -Wempty-body.
2112 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
2113 * remote.c (handle_notification): Use braces for empty 'else' body.
2114 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
2115 'else' body.
2116 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
2117 'else' body.
2118 * solib-som.c (som_relocate_section_addresses): Use braces
2119 for empty 'else' body.
2120 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
2121 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
2122
2123 2012-11-02 Pedro Alves <palves@redhat.com>
2124
2125 PR gdb/14766
2126
2127 * infrun.c (handle_inferior_event)
2128 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2129 null_ptid before handling a vfork child exec or exit. Switch to
2130 the event ptid afterwards.
2131
2132 2012-11-02 Yao Qi <yao@codesourcery.com>
2133
2134 * std-operator.def: Remove OP_LABELED.
2135 * eval.c: Remove the declaration of 'get_label'.
2136 (get_label): Remove.
2137 (evaluate_struct_tuple): Remove code handling OP_LABELED.
2138 Update comment.
2139 Remove local variable 'variantno' and related code.
2140 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
2141 with 'fieldno'.
2142 * expprint.c (print_subexp_standard): Likewise.
2143 (dump_subexp_body_standard): Likewise.
2144 * parse.c (operator_length_standard): Likewise.
2145
2146 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
2147
2148 Incorporate ARI web page generator into GDB sources.
2149 * contrib/ari/create-web-ari-in-src.sh: New file.
2150 * contrib/ari/gdb_ari.sh: New file.
2151 * contrib/ari/gdb_find.sh: New file.
2152 * contrib/ari/update-web-ari.sh: New file.
2153
2154 2012-10-31 Tom Tromey <tromey@redhat.com>
2155
2156 * gdbarch.c: Rebuild.
2157 * gdbarch.sh: Remove references to gdbarch_swap.
2158 * corelow.c (core_open): Remove obsolete comment.
2159
2160 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
2161
2162 PR cli/14772
2163 * c-typeprint.c (c_print_type): Don't print a space for vector
2164 types, this is handled within the suffix.
2165 (c_type_print_varspec_suffix): Add a space to vector suffix.
2166
2167 2012-10-26 Pedro Alves <palves@redhat.com>
2168
2169 * amd64-tdep.c (amd64_relocate_instruction): Use
2170 store_unsigned_integer instead of memcpy.
2171 * i386-tdep.c (i386_relocate_instruction): Ditto.
2172
2173 2012-10-26 Pedro Alves <palves@redhat.com>
2174
2175 * infrun.c (handle_inferior_event): Merge handling of
2176 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2177 switch case.
2178
2179 2012-10-26 Pedro Alves <palves@redhat.com>
2180
2181 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2182 Remove comment.
2183
2184 2012-10-26 Pedro Alves <palves@redhat.com>
2185
2186 * target.c (target_waitstatus_to_string): Handle
2187 TARGET_WAITKIND_VFORK_DONE.
2188
2189 2012-10-26 Pedro Alves <palves@redhat.com>
2190
2191 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2192 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2193
2194 2012-10-24 Tristan Gingold <gingold@adacore.com>
2195
2196 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2197 Add comments.
2198
2199 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2200
2201 * ravenscar-thread.c (ravenscar_wait): Only update the list
2202 of threads and inferior_ptid if the inferior is still alive.
2203
2204 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2205
2206 * ada-lang.c (is_known_support_routine): Use lbasename when
2207 matching the symtab's filename against
2208 known_runtime_file_name_patterns.
2209
2210 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2211
2212 * ada-lang.c (ada_same_array_size_p): New function.
2213 (ada_promote_array_of_integrals): New function.
2214 (coerce_for_assign): Add handling of arrays where the elements
2215 are integrals of a smaller size than the size of the target
2216 array element type.
2217
2218 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2219
2220 * doublest.c (convert_doublest_to_floatformat): Fix comparison
2221 against maximum exponent value.
2222
2223 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2224
2225 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2226 "unwind-seh.c".
2227
2228 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2229
2230 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2231 strip typedef layer when computing the fixed type's field type,
2232 only when computing its size.
2233
2234 2012-10-24 Mark Kettenis <kettenis@gnu.org>
2235
2236 PR gdb/12783
2237 * i386-tdep.c (i386_return_value): Handle complex double and long
2238 double.
2239
2240 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2241
2242 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2243 New local variable args_len.
2244 Quote the name of the executable when computing the command line.
2245
2246 2012-10-23 Mark Kettenis <kettenis@gnu.org>
2247
2248 PR gdb/12796
2249 PR gdb/12798
2250 PR gdb/12800
2251 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2252 AMD64_FTAG_REGNUM.
2253 * amd64-tdep.c (amd64_classify): Classify complex types.
2254 (amd64_return_value): Handle the COMPLEX_X87 class.
2255
2256 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2257
2258 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2259 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2260
2261 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2262
2263 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2264 function.
2265 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2266 to amd64_windows_auto_wide_charset.
2267
2268 2012-10-23 Yao Qi <yao@codesourcery.com>
2269
2270 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2271 * event-top.h: Remove its declaration.
2272 (async_request_quit): Call mark_async_signal_handler instead of
2273 mark_async_signal_handler_wrapper.
2274 (async_do_nothing, async_disconnect): Likewise.
2275 (async_stop_sig): Likewise.
2276 * remote.c (handle_remote_sigint): Likewise.
2277 (handle_remote_sigint_twice): Likewise.
2278
2279 2012-10-23 Yao Qi <yao@codesourcery.com>
2280
2281 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2282 with 'static struct async_signal_handler *'.
2283 (sighup_token, sigquit_token, sigstp_token): Likewise.
2284
2285 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2286
2287 * gdbarch.sh (function_list): Use 'pstring' when printing
2288 a variable which could return NULL.
2289 * gdbarch.c: Regenerate.
2290
2291 2012-10-10 Joel Brobecker <brobecker@adacore.com>
2292 Tom Tromey <tromey@redhat.com>
2293
2294 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2295 inneffective if condition by gdb assertion. Add function
2296 description comment.
2297
2298 2012-10-19 Joel Brobecker <brobecker@adacore.com>
2299
2300 * parser-defs.h (struct exp_descriptor): Document constraint
2301 on return value for "op_name" callbacks.
2302
2303 2012-10-18 Tom Tromey <tromey@redhat.com>
2304
2305 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2306 * symtab.c (iterate_over_some_symtabs): Constify.
2307 * source.h (symtab_to_fullname): Return 'const char *'.
2308 * source.c (symtab_to_fullname): Return 'const char *'.
2309 * python/py-symtab.c (stpy_fullname): Constify.
2310 * cli/cli-cmds.c (edit_command): Constify.
2311 * breakpoint.c (print_breakpoint_location)
2312 (update_static_tracepoint): Constify.
2313
2314 2012-10-18 Tom Tromey <tromey@redhat.com>
2315
2316 * breakpoint.c (compare_breakpoints): Fix comparison.
2317
2318 2012-10-18 Tom Tromey <tromey@redhat.com>
2319
2320 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2321 gdb_wchar_t to convert_between_encodings.
2322
2323 2012-10-17 Yao Qi <yao@codesourcery.com>
2324
2325 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2326 more parameter 'inferior'.
2327 * corefile.c (write_memory_with_notification): Caller update.
2328
2329 * mi/mi-cmd-var.c: Include "mi-main.h".
2330 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2331 to 1 and restore it later.
2332 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2333 and "data-write-memory-bytes.
2334 * mi/mi-interp.c: Include objfiles.h.
2335 (mi_interpreter_init): Call observer_attach_memory_changed.
2336 (mi_memory_changed): New.
2337 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2338 New field.
2339
2340 * NEWS: Mention new MI notification "memory-changed".
2341
2342 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2343
2344 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2345
2346 2012-10-15 Doug Evans <dje@google.com>
2347
2348 New option -nh: inhibit loading of ~/.gdbinit.
2349 * NEWS: Mention -nh.
2350 * main.c (captured_main): Recognize and process -nh.
2351 (print_gdb_help): Mention -nh.
2352 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2353
2354 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2355
2356 PR backtrace/14646
2357 PR gdb/14647
2358 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2359 pc_regnum_from_eax.
2360 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2361 nor pc_regnum_from_eax.
2362 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2363 nor pc_regnum_from_eax.
2364
2365 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2366
2367 Fix entry values resolving in inlined frames.
2368 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2369 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2370 entries of FRAME.
2371
2372 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2373
2374 * configure.ac: Build with -DMS_WIN64 if building with Python
2375 enabled using GCC on amd64-windows.
2376 * configure: Regenerate.
2377
2378 2012-10-15 Tom Tromey <tromey@redhat.com>
2379
2380 PR python/14635:
2381 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2382 to Py_None.
2383
2384 2012-10-15 Tom Tromey <tromey@redhat.com>
2385
2386 PR python/14634:
2387 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2388
2389 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2390
2391 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2392 reset thread numbering back to 1.
2393
2394 2012-10-11 Doug Evans <dje@google.com>
2395
2396 PR breakpoints/14643.
2397 * linespec.c (struct ls_parser): New member keyword_ok.
2398 (linespec_lexer_lex_string): Add comment.
2399 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2400 for one.
2401 (parse_linespec): Set keyword_ok.
2402
2403 2012-10-10 Doug Evans <dje@google.com>
2404
2405 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2406 "0x" prefix on address in log message.
2407
2408 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2409 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2410 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2411 (lookup_dwo_file): Add const to dwo_name parameter.
2412 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2413
2414 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2415
2416 Fix crash during stepping on ppc32.
2417 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2418 SYM.
2419
2420 2012-10-03 Doug Evans <dje@google.com>
2421
2422 PR symtab/14601
2423 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2424
2425 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2426
2427 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2428 output and use uint32_t not long to ensure 4 byte size.
2429
2430 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2431
2432 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2433 unref'ed it.
2434
2435 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2436
2437 * target.c (simple_search_memory): Include access length in
2438 warning message.
2439
2440 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2441 Edjunior Machado <emachado@linux.vnet.ibm.com>
2442
2443 PR gdb/13989
2444 * solib.c (solib_find): Prevent GDB from loading native libraries when
2445 debugging a cross-target corefile.
2446
2447 2012-09-28 selven <pcthegreat@gmail.com>
2448
2449 Make definition match declaration.
2450
2451 * regcache.c (regcache_register_status): Change return type to
2452 enum register_status.
2453
2454 2012-09-28 Yao Qi <yao@codesourcery.com>
2455
2456 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2457 write_memory_with_notification instead of write_memory.
2458 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2459 instead of target_write_memory.
2460
2461 2012-09-28 Yao Qi <yao@codesourcery.com>
2462
2463 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2464 when the length of content is not an even number.
2465
2466 2012-09-27 Tom Tromey <tromey@redhat.com>
2467
2468 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2469 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2470
2471 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2472
2473 * sol-thread.c (sol_thread_fetch_registers)
2474 (sol_thread_store_registers): Delete commented out code.
2475
2476 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2477
2478 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2479 Move these functions to sparc-sol-thread.c.
2480 * sparc-sol-thread.c: New file.
2481 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2482 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2483 configurations.
2484 * configure: Regenerate.
2485
2486 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2487
2488 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2489 Remove commented-out code.
2490
2491 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2492
2493 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2494 Enable this code for sparc hosts only.
2495
2496 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2497
2498 * procfs.h (procfs_find_LDT_entry): Add declaration.
2499 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2500 function procfs_find_LDT_entry.
2501
2502 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2503
2504 * procfs.c (proc_get_LDT_entry): Make static.
2505
2506 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2507
2508 * procfs.c (proc_find_memory_regions): Fix declaration.
2509
2510 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2511
2512 * amd64-tdep.c (amd64_return_value): Revert previous change
2513 that used TYPE_LENGTH directly.
2514 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2515 (bfin_store_return_value): Likewise.
2516 * cris-tdep.c (cris_store_return_value): Likewise.
2517 (cris_extract_return_value): Likewise.
2518 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2519 * hppa-tdep.c (hppa64_return_value): Likewise.
2520 * lm32-tdep.c (lm32_store_return_value): Likewise.
2521 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2522 * spu-tdep.c (spu_value_from_register): Likewise.
2523 * vax-tdep.c (vax_return_value): Likewise.
2524
2525 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2526
2527 * gdbtypes.c (lookup_array_range_type): Expand parameters
2528 LOW_BOUND and HIGH_BOUND to LONGEST.
2529 (lookup_string_range_type): Likewise.
2530 * gdbtypes.h (lookup_array_range_type): Likewise.
2531 (lookup_string_range_type): Likewise.
2532 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2533 Expand HIGHBOUND to ssize_t.
2534 (value_string): Likewise.
2535 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2536 (value_string): Likewise.
2537
2538 2012-09-27 Yao Qi <yao@codesourcery.com>
2539
2540 PR breakpoints/13898
2541 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2542 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2543 per breakpoint type.
2544
2545 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2546
2547 * procfs.c: Add gdb_bfd header.
2548 * rs6000-nat.c: Likewise.
2549 * solib-pa64.c: Likewise.
2550 * spu-linux-nat.c: Likewise.
2551 * windows-nat.c: Likewise.
2552
2553 2012-09-26 Tom Tromey <tromey@redhat.com>
2554
2555 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2556
2557 2012-09-26 Tom Tromey <tromey@redhat.com>
2558
2559 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2560 (read_common_block): Handle child DIEs with
2561 DW_AT_data_member_location.
2562 (new_symbol_full): Add special case for common blocks.
2563
2564 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2565 Tom Tromey <tromey@redhat.com>
2566
2567 * dwarf2read.c (read_common_block): Rewrite.
2568 (new_symbol_full): Handle DW_TAG_common_block.
2569 * f-lang.c (head_common_list, find_common_for_function):
2570 Remove.
2571 * f-lang.h (struct common_entry, struct saved_f77_common,
2572 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2573 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2574 BLANK_COMMON_NAME_LOCAL): Remove.
2575 (struct common_block): New.
2576 * f-valprint.c (list_all_visible_commons): Remove.
2577 (info_common_command_for_block): New function.
2578 (info_common_command): Use it.
2579 * stack.c (iterate_over_block_locals): Special case for
2580 COMMON_BLOCK_DOMAIN.
2581 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2582 constant.
2583 (struct general_symbol_info) <value.common_block>: New field.
2584 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2585
2586 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2587 Tom Tromey <tromey@redhat.com>
2588
2589 * f-lang.c (allocate_saved_bf_node,
2590 allocate_saved_function_node, allocate_saved_f77_common_node,
2591 allocate_common_entry_node, tail_common_list, current_common,
2592 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2593 tmp_bf_ptr, add_common_block, add_common_entry,
2594 find_first_common_named, patch_common_entries,
2595 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2596 global_remote_debug, get_bf_for_fcn, saved_function_list,
2597 saved_function_list_end, clear_function_list, struct saved_fcn,
2598 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2599 SAVED_BF, SAVED_BF_PTR): Remove.
2600 * f-lang.h (tail_common_list, current_common,
2601 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2602 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2603 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2604 real_main_c_value): Remove.
2605 * f-valprint.c (there_is_a_visible_common_named): Remove.
2606
2607 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2608
2609 * breakpoint.c (update_global_location_list): Ignore previous
2610 duplicate status of a breakpoint when starting a new scan for
2611 duplicate breakpoints.
2612
2613 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2614 PR breakpoints/14419
2615 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2616 support LLVM compiler.
2617
2618 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2619
2620 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2621 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2622 (bfin_store_return_value): Likewise.
2623 * cris-tdep.c (cris_store_return_value): Likewise.
2624 (cris_extract_return_value): Likewise.
2625 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2626 * hppa-tdep.c (hppa64_return_value): Likewise.
2627 * lm32-tdep.c (lm32_store_return_value): Likewise.
2628 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2629 * spu-tdep.c (spu_value_from_register): Likewise.
2630 * vax-tdep.c (vax_return_value): Likewise.
2631
2632 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2633
2634 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2635 parameter LEN to ssize_t.
2636
2637 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2638
2639 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2640 variable LEN.
2641 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2642 directly.
2643 (alpha_store_return_value): Likewise.
2644 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2645 (amd64_push_arguments): Likewise.
2646 * ax-gdb.c (gen_trace_static_fields): Likewise.
2647 (gen_traced_pop): Likewise.
2648 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2649 * breakpoint.c (update_watchpoint): Likewise.
2650 * findcmd.c (parse_find_args): Use local variable for type
2651 instead of length.
2652 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2653 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2654 (h8300_store_return_value): Likewise.
2655 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2656 Use i386_darwin_arg_type_alignment directly.
2657 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2658 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2659 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2660 (m68hc11_extract_return_value): Likewise.
2661 * mep-tdep.c (mep_push_dummy_call): Likewise.
2662 * printcmd.c (float_type_from_length): Likewise.
2663 * s390-tdep.c (s390_value_from_register): Likewise.
2664 * stack.c (read_frame_arg): Likewise.
2665 * tracepoint.c (encode_actions_1): Likewise.
2666 * valops.c (value_fetch_lazy): Use local variable for type
2667 instead of length. Use TYPE_LENGTH directly.
2668 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2669
2670 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2671
2672 * symtab.c (skip_prologue_sal): Fix typo in comment.
2673
2674 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2675
2676 * linespec.c (create_sals_line_offset): Fix typo in comment.
2677
2678 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2679
2680 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2681 use plongest to print the array size.
2682
2683 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2684
2685 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2686 * p-valprint.c (pascal_type_print_base): Likewise.
2687
2688 2012-09-22 Yao Qi <yao@codesourcery.com>
2689
2690 * remote.c (remote_get_trace_status): Remove setting default
2691 values of fields of 'ts'.
2692
2693 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2694
2695 Fix internal error on canonicalization of clang types.
2696 * cp-name-parser.y (operator): New comment at make_operator call for
2697 new, delete, new[] and delete[].
2698 (exp): Use "sizeof ". Add new comment at make_operator call.
2699
2700 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2701
2702 Fix disassemble without parameters in tailcall frame.
2703 * cli/cli-cmds.c (disassemble_current_function): Use
2704 get_frame_address_in_block.
2705
2706 2012-09-21 Tom Tromey <tromey@redhat.com>
2707
2708 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2709 TYPE_CODE_UNION>: Unify, removing a goto.
2710
2711 2012-09-21 Tom Tromey <tromey@redhat.com>
2712
2713 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2714
2715 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2716
2717 * findvar.c (read_frame_register_value): Mark the result value as
2718 optimized out if any of the input registers have been optimized out.
2719
2720 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2721
2722 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2723
2724 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2725
2726 * eval.c (evaluate_subexp_standard): Eliminate single-use
2727 variable LOWER.
2728
2729 2012-09-21 Yao Qi <yao@codesourcery.com>
2730
2731 * mi/mi-interp.c: Declare mi_record_changed.
2732 (mi_interpreter_init): Call observer_attach_record_changed.
2733 (mi_record_changed): New.
2734 * record.c (record_open): Call observer_notify_record_changed.
2735 (cmd_record_stop): Call observer_notify_record_changed.
2736 * NEWS: Mention it.
2737
2738 2012-09-20 Tom Tromey <tromey@redhat.com>
2739
2740 * NEWS: Update.
2741 * python/python.c (finalize_python): New function.
2742 (_initialize_python): Make a final cleanup.
2743
2744 2012-09-19 Doug Evans <dje@google.com>
2745
2746 * buildsym.h (param_symbols): Delete, unused.
2747 (context_stack): Delete member "params", unused.
2748 * buildsym.c (push_context): Update.
2749 * dwarf2read.c (read_func_scope): Update.
2750
2751 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2752
2753 * sh-tdep.c (sh_register_convert_to_virtual)
2754 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2755 all callers. Just do a memcpy if not the little-endian case.
2756
2757 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2758 set_gdbarch_double_format and set_gdbarch_long_double_format.
2759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2760 set_gdbarch_double_format.
2761 * sh-tdep.c (sh_gdbarch_init): Likewise.
2762
2763 * NEWS: Document the removal of SH's 'regs' command.
2764 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2765 command.
2766
2767 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2768
2769 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2770 `jump'.
2771
2772 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2773
2774 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2775 language when iterating over symbols.
2776
2777 2012-09-18 Yao Qi <yao@codesourcery.com>
2778
2779 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2780 (mi_interpreter_init): Call observer_attach_tsv_created and
2781 observer_attach_tsv_deleted.
2782 (mi_tsv_created, mi_tsv_deleted): New.
2783 * tracepoint.c (delete_trace_state_variable): Call
2784 observer_notify_tsv_deleted.
2785 (trace_variable_command): Call observer_notify_tsv_created.
2786 (delete_trace_variable_command): Call
2787 observer_notify_tsv_deleted.
2788 (create_tsv_from_upload): Call observer_notify_tsv_created.
2789 * NEWS: Mention it.
2790
2791 2012-09-18 Yao Qi <yao@codesourcery.com>
2792
2793 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2794 if traceframe changed.
2795 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2796 "trace-find".
2797 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2798 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2799 'traceframe_changed'.
2800 (mi_traceframe_changed): New.
2801 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2802 New field.
2803 * NEWS: Mention the new MI notification.
2804
2805 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2806
2807 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2808
2809 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2810
2811 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2812 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2813 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2814 Extend code also for PaX support. Convert all gdb_assert to warning
2815 calls.
2816
2817 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2818
2819 Implement auto-load user conveniences suggested by Doug Evans.
2820 * auto-load.c: Include top.h.
2821 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2822 (_initialize_auto_load): New variable scripts_directory_help. Mention
2823 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2824 scripts-directory. Document in online help one can use also files for
2825 set auto-load safe-path.
2826 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2827 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2828
2829 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2830
2831 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2832 of LEN.
2833
2834 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2835
2836 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2837 ELTLEN and use TYPE_LENGTH directly.
2838 (m2_val_print): Likewise.
2839 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2840 variable LEN and use TYPE_LENGTH directly.
2841 (m68k_svr4_store_return_value): Likewise.
2842 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2843 ARGLEN and use TYPE_LENGTH directly.
2844 (mips_o64_push_dummy_call): Likewise.
2845 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2846 variable LENGTH and use TYPE_LENGTH directly.
2847 (s390_function_arg_float): Likewise.
2848 (s390_function_arg_integer): Likewise.
2849 (s390_push_dummy_call): Likewise.
2850 (s390_return_value_convention): Likewise.
2851 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2852 TYPE_LENGTH directly.
2853
2854 2012-09-17 Yao Qi <yao@codesourcery.com>
2855
2856 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2857 Update comment to add_setshow_integer_cmd.
2858 * cli/cli-setshow.c (do_set_command): Handle case
2859 'var_zuinteger_unlimited'.
2860 (do_show_command): Likewise.
2861 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2862 for command 'remotetimeout'.
2863 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2864 to var_integer.
2865 * source.c (_initialize_source): Call
2866 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2867
2868 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2869
2870 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2871 variable LEN.
2872
2873 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2874
2875 PR 14119
2876 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2877 (frame_pop): Drop also TAILCALL_FRAME frames.
2878 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2879
2880 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2881 Pedro Alves <palves@redhat.com>
2882
2883 PR 14548
2884 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2885 function start if we are already at function start. Both for
2886 reverse-next and for reverse-step into function without line number
2887 info.
2888
2889 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2890
2891 Code cleanup - rename 'inline' depth to 'artificial' depth.
2892 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2893 frame_id_artificial_p, extend the comment.
2894 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2895 * frame.c (fprint_frame_id): Rename at a user, change debug output
2896 text to "artificial=".
2897 (skip_inlined_frames): Rename to ...
2898 (skip_artificial_frames): ... here. Extend the comment.
2899 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2900 (frame_id_inlined_p): Rename to ...
2901 (frame_id_artificial_p): ... here. Rename at a user.
2902 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2903 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2904 at a user.
2905 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2906 Extend the comment.
2907 (frame_id_inlined_p): Rename to ...
2908 (frame_id_artificial_p): ... here.
2909 * inline-frame.c (inline_frame_this_id): Rename at a user.
2910
2911 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2912
2913 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2914 vector variables using vector_size syntax rather than array
2915 syntax.
2916
2917 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2918
2919 * valarith.c (value_concat): Replace unsafe ALLOCA with
2920 XMALLOC/XFREE.
2921
2922 2012-09-14 Pedro Alves <palves@redhat.com>
2923
2924 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2925
2926 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2927
2928 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2929 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2930 data-directory as appropriate.
2931
2932 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2933
2934 * printcmd.c (ui_printf): Eliminate single-use variable
2935 PARAM_LEN.
2936
2937 2012-09-14 Yao Qi <yao@codesourcery.com>
2938 Pedro Alves <palves@redhat.com>
2939
2940 * valops.c (value_assign): Move observer_notify_target_changed
2941 below to replace reinit_frame_cache.
2942
2943 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2944
2945 Refactor Python "gdb" module into a proper Python package, by
2946 introducing a new "_gdb" module for code implemented in C, and
2947 using reload/__import__ instead of exec.
2948 * python/lib/gdb/__init__.py: Import * from _gdb.
2949 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2950 prompt_hook, sys.argv): Moved from finish_python_initialization.
2951 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2952 (packages, auto_load_packages): New list and function replacing
2953 module_dict and auto-loading code, using __file__ instead of
2954 gdb.PYTHONDIR and reload/__import__ instead of exec.
2955 (GdbSetPythonDirectory): Replacing function of the same name
2956 from finish_python_initialization, using reload/__import__ instead
2957 of exec, as well as call auto_load_packages.
2958 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2959 gdb_python_module and not gdb_module.
2960 * python/python-internal.h (gdb_python_module): Declare.
2961 * python/python.c (gdb_python_module): New global.
2962 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2963 (_initialize_python): Rename gdb module to _gdb.
2964 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2965 (finish_python_initialization): Move Python code to
2966 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2967 __main__.
2968
2969 2012-09-13 Pedro Alves <palves@redhat.com>
2970
2971 * Makefile.in (COMMON_OBS): Add registry.o.
2972 * registry.c: New file.
2973 * registry.h (struct registry_container): Declare.
2974 (registry_data_callback): New typedef.
2975 (struct registry_data, struct registry_data_registration, struct
2976 registry_data_registry): New type.
2977 (register_data_with_cleanup, registry_alloc_data)
2978 (registry_callback_adaptor, registry_clear_data)
2979 (registry_container_free_data, registry_set_data, registry_data):
2980 Declare.
2981 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2982 the new common structures and functions.
2983 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2984 callback typedefs.
2985
2986 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2987
2988 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2989 there is an error inserting hardware breakpoints and use the
2990 error message from the target.
2991
2992 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2993 Catch this exception and print the error message contained within.
2994 Do not print the default hardware error breakpoint message in this
2995 case.
2996
2997 2012-09-12 Doug Evans <dje@google.com>
2998
2999 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
3000 cu == NULL.
3001
3002 2012-09-11 Doug Evans <dje@google.com>
3003
3004 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
3005 .gdb_index symbol attributes if there are none.
3006
3007 2012-09-11 Joel Brobecker <brobecker@adacore.com>
3008
3009 * symtab.h (struct minimal_symbol) [has_size]: New field.
3010 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
3011 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
3012 * printcmd.c (build_address_symbolic): Only filter out zero-sized
3013 minimal symbols if the symbol's size is actually known.
3014 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
3015 of msymbol's size field. Add comment.
3016 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
3017 SET_MSYMBOL_SIZE to set the minimal symbol size.
3018
3019 2012-09-11 Joel Brobecker <brobecker@adacore.com>
3020
3021 * minsyms.c (install_minimal_symbols): Use memset to fill entire
3022 minimal_symbol struct object, rather than setting some of its
3023 fields one by one.
3024
3025 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
3026
3027 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
3028 passed_a_ptr flag when displaying typedef types.
3029
3030 2012-09-10 Joel Brobecker <brobecker@adacore.com>
3031
3032 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
3033 the optimized_out flag is preserved.
3034
3035 2012-09-10 Anthony Green <green@moxielogic.com>
3036
3037 * moxie-tdep.c (moxie_analyze_prologue): Update for function
3038 prologue changes in GCC.
3039
3040 2012-09-10 Keith Seitz <keiths@redhat.com>
3041
3042 PR gdb/13483
3043 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
3044 (BOOL_CONVERSION_BADNESS): ... this.
3045 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
3046 (rank_one_type): Allow all boolean conversions
3047 permitted by the standard.
3048
3049 2012-09-06 Tom Tromey <tromey@redhat.com>
3050
3051 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3052 Don't decref py_objfile.
3053
3054 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
3055
3056 Do not enable -lmcheck by default when Python is enabled with
3057 threading support.
3058 * configure.ac: (python_has_threads) New variable, by testing
3059 if WITH_THREAD is defined in Python.h.
3060 Move --enable-lmcheck after --with-python.
3061 Do not enable -lmcheck by default if python_has_threads=yes.
3062 Warn if --enable-lmcheck and python_has_threads=yes.
3063 * configure: Regenerate.
3064
3065 2012-08-31 Yao Qi <yao@codesourcery.com>
3066
3067 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
3068 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
3069 Update some commands.
3070 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
3071 * mi/mi-main.c (mi_cmd_execute): Set
3072 '*parse->cmd->suppress_notification' to 1.
3073
3074 2012-08-31 Yao Qi <yao@codesourcery.com>
3075
3076 * mi/mi-cmds.c (mi_cmds): Add 'static'.
3077
3078 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
3079
3080 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
3081
3082 2012-08-29 Doug Evans <dje@google.com>
3083
3084 * main.c (print_gdb_help): Remove reference to
3085 --use-deprecated-index-sections.
3086
3087 2012-08-28 Yao Qi <yao@codesourcery.com>
3088
3089 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
3090 (init_cmds): Call add_setshow_uinteger_cmd for command
3091 'max-user-call-depth'.
3092 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
3093 declaration of 'max_user_call_depth'.
3094 * frame.c (backtrace_limit): Add 'unsigned'.
3095 (_initialize_frame): Call add_setshow_uinteger_cmd for command
3096 'limit'.
3097 * remote.c (remoteaddresssize): Add 'unsigned'.
3098 (remote_address_masked): Change local var 'address_size' to
3099 'unsigned'.
3100 (_initialize_remote): Call add_setshow_uinteger_cmd for
3101 'remoteaddresssize'.
3102 * top.c (history_size): Add 'unsigned'.
3103 (show_commands): Change local variables to 'unsigned'.
3104 (set_history_size_command): Don't check history_size is negative.
3105 Adjust the condition to call unstifle_history and set history_size
3106 to UNIT_MAX.
3107
3108 2012-08-28 Pedro Alves <palves@redhat.com>
3109
3110 PR gdb/14428
3111
3112 * infcmd.c (default_print_one_register_info): New, factored out
3113 from default_print_registers_info.
3114 (default_print_registers_info): Use it. Mark value unavailable if
3115 necessary.
3116 (registers_info): Print user registers with
3117 default_print_one_register_info.
3118
3119 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
3120
3121 PR tui/14486
3122 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
3123 is not NULL before referencing it.
3124
3125 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3126
3127 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
3128 variable pc. Call find_pc_line instead of find_pc_overlay, restore
3129 original PC for it.
3130
3131 2012-08-27 Eli Zaretskii <eliz@gnu.org>
3132 Jan Kratochvil <jan.kratochvil@redhat.com>
3133
3134 * auto-load.c (auto_load_objfile_script): Rename to ...
3135 (auto_load_objfile_script_1): ... here, change variable realname to
3136 parameter realname, document it, add return value, add variable retval.
3137 (auto_load_objfile_script): New function.
3138
3139 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3140
3141 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3142 followed by a whitespace.
3143
3144 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3145
3146 PR gdb/14494.
3147 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3148 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3149 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3150 here.
3151
3152 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
3153
3154 * memattr.c (create_mem_region): Fix memory region overlapping
3155 checking.
3156
3157 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
3158
3159 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3160 with xmalloc/cleanup.
3161 * mt-tdep.c (mt_push_dummy_call): Likewise.
3162 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3163 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3164
3165 2012-08-24 Yao Qi <yao@codesourcery.com>
3166
3167 * jv-exp.y (push_expression_name): Add "." at the end of error
3168 message.
3169
3170 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
3171
3172 Document how to return from "python-interactive" to GDB.
3173 * python/python.c (_initialize_python): Update documentation.
3174
3175 2012-08-23 Pedro Alves <palves@redhat.com>
3176
3177 * infrun.c (_initialize_infrun) <handle command help text>:
3178 Mention that multiple signals are supported.
3179
3180 2012-08-23 Pedro Alves <palves@redhat.com>
3181
3182 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3183 string.
3184
3185 2012-08-23 Yao Qi <yao@codesourcery.com>
3186
3187 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3188 (tfind_1): Don't call registers_changed, set_traceframe_num,
3189 and clear_traceframe_info.
3190 Call set_current_traceframe.
3191 (set_current_traceframe): call set_traceframe_num.
3192
3193 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
3194
3195 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3196 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3197
3198 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3199
3200 Enable readline in Python in a GDB-specific way and block the
3201 standard Python readline module to prevent conflicts with GDB.
3202 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3203 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3204 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3205 * python/py-gdb-readline.c: New file.
3206 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3207 prototype.
3208 * python/python.c (_initialize_python): Call
3209 gdbpy_initialize_gdb_readline.
3210
3211 2012-08-22 Keith Seitz <keiths@redhat.com>
3212
3213 * defs.h: Include build-gnulib/config.h
3214
3215 2012-08-22 Joseph Myers <joseph@codesourcery.com>
3216
3217 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3218 and blx pc.
3219
3220 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3221
3222 Add a new "python-interactive" command that starts a standard
3223 Python interactive prompt with "pi" as alias, and add "py" as
3224 an alias to "python".
3225 * NEWS: Mention the new commands.
3226 * python/python.c (eval_python_command): New function.
3227 (python_interactive_command): For "python-interactive" with
3228 arguments, call eval_python_command. For "python-interactive"
3229 without arguments, call PyRun_InteractiveLoop.
3230 (_initialize_python): Add "python-interactive" command with
3231 "pi" as alias, and add "py" as an alias to "python".
3232
3233 2012-08-22 Tom Tromey <tromey@redhat.com>
3234
3235 * defs.h (quit_flag): Don't declare.
3236 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3237 (QUIT): Use new functions.
3238 * event-top.c (command_handler): Use clear_quit_flag.
3239 (handle_sigint): Use set_quit_flag.
3240 (async_request_quit): Use check_quit_flag. Don't check
3241 immediate_quit.
3242 * exceptions.c (throw_exception): Use clear_quit_flag.
3243 * main.c (captured_main): Use clear_quit_flag.
3244 * python/python.c (clear_quit_flag, set_quit_flag)
3245 (check_quit_flag): New functions.
3246 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3247 clear_quit_flag.
3248 * remote.c (remote_wait_as): Use check_quit_flag,
3249 clear_quit_flag.
3250 (remote_start_remote): Call QUIT.
3251 * symfile.c (load_progress): Use check_quit_flag.
3252 * top.c (command_loop): Use clear_quit_flag.
3253 (command_line_input): Call QUIT.
3254 * utils.c (quit_flag): Conditionally define.
3255 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3256 functions.
3257 (prompt_for_continue): Call QUIT. Use quit, not
3258 async_request_quit.
3259 * remote-mips.c (mips_expect_timeout): Call QUIT.
3260 * monitor.c (monitor_expect): Call QUIT.
3261
3262 2012-08-22 Tom Tromey <tromey@redhat.com>
3263
3264 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3265 (async_init_signals): Update.
3266 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3267 (SIGWINCH_HANDLER_BODY): Remove.
3268
3269 2012-08-22 Tom Tromey <tromey@redhat.com>
3270
3271 * jit.c (jit_object_close_impl): Don't malloc the objfile
3272 name.
3273 * objfiles.c (allocate_objfile): Don't malloc the objfile
3274 name.
3275 (free_objfile): Don't free the objfile name.
3276 * objfiles.h (struct objfile) <name>: Update comment.
3277 * symfile.c (reread_symbols): Fix reference counting. Don't
3278 malloc objfile name.
3279
3280 2012-08-22 Tom Tromey <tromey@redhat.com>
3281
3282 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3283 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3284 (symfile_bfd_open): Likewise.
3285 (generic_load): Likewise.
3286 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3287 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3288 gdb_bfd_open.
3289 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3290 Use gdb_bfd_open.
3291 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3292 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3293 (pmon_load_fast): Likewise.
3294 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3295 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3296 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3297 (macho_check_dsym): Likewise.
3298 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3299 (m32r_upload_command): Likewise.
3300 * gdb_bfd.h (gdb_bfd_cache): Declare.
3301 * gdb_bfd.c (struct gdb_bfd_data): New.
3302 (gdb_bfd_cache): New global.
3303 (struct gdb_bfd_cache_search): New.
3304 (hash_bfd): New function.
3305 (eq_bfd): Likewise.
3306 (gdb_bfd_open): Likewise.
3307 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3308 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3309 gdb_bfd_data.
3310 * exec.c (exec_file_attach): Use gdb_bfd_open.
3311 * dsrec.c (load_srec): Use gdb_bfd_open.
3312
3313 2012-08-22 Tom Tromey <tromey@redhat.com>
3314
3315 * dwarf2read.c (macro_start_file): Update.
3316 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3317 (free_objfile_per_bfd_storage): Destroy macro_cache.
3318 (allocate_objfile, free_objfile): Update.
3319 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3320 New field.
3321 (struct objfile) <macro_cache>: Remove.
3322 * symfile.c (reread_symbols): Update.
3323 * symmisc.c (print_symbol_bcache_statistics): Update.
3324 (print_objfile_statistics): Update.
3325
3326 2012-08-22 Tom Tromey <tromey@redhat.com>
3327
3328 * elfread.c (elf_symtab_read): Update.
3329 * objfiles.c (objfiles_bfd_data): New global.
3330 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3331 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3332 (allocate_objfile, free_objfile): Update.
3333 (_initialize_objfiles): Initialize objfiles_bfd_data.
3334 * objfiles.h (struct objfile_per_bfd_storage): New.
3335 (struct objfile) <per_bfd>: New field.
3336 <filename_cache>: Remove.
3337 (set_objfile_per_bfd): Declare.
3338 * symfile.c (reread_symbols): Update. Call
3339 set_objfile_per_bfd.
3340 (allocate_symtab): Update.
3341 * symmisc.c (print_symbol_bcache_statistics): Update.
3342 (print_objfile_statistics): Print the size of the BFD obstack.
3343
3344 2012-08-22 Tom Tromey <tromey@redhat.com>
3345
3346 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3347 * gdb_bfd.c: Use DEFINE_REGISTRY.
3348 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3349 (gdb_bfd_ref): Call bfd_alloc_data.
3350 (gdb_bfd_unref): Call bfd_free_data.
3351
3352 2012-08-22 Tom Tromey <tromey@redhat.com>
3353
3354 * registry.h (struct registry_fields): New.
3355 (REGISTRY_FIELDS): Redefine.
3356 (REGISTRY_ACCESS_FIELD): New macro.
3357 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3358 functions.
3359
3360 2012-08-22 Tom Tromey <tromey@redhat.com>
3361
3362 * auto-load.c (_initialize_auto_load): Update.
3363 * solib-svr4.c (_initialize_svr4_solib): Update
3364 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3365 * solib-darwin.c (_initialize_darwin_solib): Update.
3366 * registry.h: New file.
3367 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3368 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3369 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3370 (register_program_space_data_with_cleanup)
3371 (register_program_space_data, program_space_alloc_data)
3372 (clear_program_space_data, set_program_space_data)
3373 (program_space_data): Don't declare.
3374 * progspace.c: Use DEFINE_REGISTRY.
3375 (struct program_space_data, struct
3376 program_space_data_registration, struct
3377 program_space_data_registry, program_space_data_registry)
3378 (register_program_space_data_with_cleanup)
3379 (register_program_space_data, program_space_alloc_data)
3380 (program_space_free_data, clear_program_space_data)
3381 (set_program_space_data, program_space_data): Remove.
3382 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3383 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3384 (register_objfile_data_with_cleanup, register_objfile_data)
3385 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3386 declare.
3387 * objfiles.c: Use DEFINE_REGISTRY.
3388 (struct objfile_data, struct objfile_data_registration, struct
3389 objfile_data_registry, objfile_data_registry)
3390 (register_objfile_data_with_cleanup, register_objfile_data)
3391 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3392 (set_objfile_data, objfile_data): Remove.
3393 (_initialize_objfiles): Update.
3394 * jit.c (_initialize_jit): Update.
3395 * inflow.c (_initialize_inflow): Update.
3396 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3397 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3398 (register_inferior_data_with_cleanup, register_inferior_data)
3399 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3400 declare.
3401 * inferior.c: Use DEFINE_REGISTRY.
3402 (struct inferior_data, struct inferior_data_registration, struct
3403 inferior_data_registry, inferior_data_registry)
3404 (register_inferior_data_with_cleanup, register_inferior_data)
3405 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3406 (set_inferior_data, inferior_data): Remove.
3407 * auxv.c (_initialize_auxv): Update.
3408 * ada-lang.c (_initialize_ada_language): Update.
3409 * breakpoint.c (_initialize_breakpoint): Update.
3410 * i386-nat.c (i386_use_watchpoints): Update.
3411
3412 2012-08-22 Tom Tromey <tromey@redhat.com>
3413
3414 * exec.c (exec_close, exec_file_attach): Update.
3415 (add_to_section_table): Initialize 'key' field.
3416 (add_target_sections, remove_target_sections): Add 'key' argument.
3417 * exec.h (add_target_sections, remove_target_sections): Add
3418 'key' argument.
3419 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3420 (reload_shared_libraries_1): Update.
3421 * target.h (struct target_section) <key>: New field.
3422
3423 2012-08-22 Tom Tromey <tromey@redhat.com>
3424
3425 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3426
3427 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3428
3429 * symfile.c (allocate_symtab): Use host_address_to_string
3430 function instead of cast of pointer to long which is not
3431 compatible with x86_64-w64-mingw32 build.
3432
3433 2012-08-19 Andrew Pinski <apinski@cavium.com>
3434
3435 * mips-tdep.c (is_octeon): New function.
3436 (is_octeon_bbit_op): New function.
3437 (mips32_next_pc): Handle Octeon's bbit instructions.
3438 (mips32_instruction_has_delay_slot): Likewise.
3439
3440 2012-08-19 Andrew Pinski <apinski@cavium.com>
3441
3442 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3443 before the function.
3444
3445 2012-08-19 Andrew Pinski <apinski@cavium.com>
3446
3447 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3448
3449 2012-08-19 Keith Seitz <keiths@redhat.com>
3450
3451 PR c++/14365
3452 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3453 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3454
3455 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3456
3457 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3458 The typo broke "make TAGS".
3459
3460 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3461
3462 GDB 7.5 released.
3463
3464 2012-08-17 Keith Seitz <keiths@redhat.com>
3465
3466 PR c++/13356
3467 * gdbtypes.c (strict_type_checking): New variable.
3468 (show_strict_type_checking): New function.
3469 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3470 if strict type checking is disabled.
3471 (_initialize_gdbtypes): Add "check type" subcommand.
3472 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3473
3474 2012-08-17 Keith Seitz <keiths@redhat.com>
3475
3476 * language.h (type_mode): Remove.
3477 (type_check): Remove.
3478 (struct language_defn): Remove la_type_check.
3479 (STRICT_TYPE): Remove unused macro.
3480 (type_error): Remove.
3481 * language.c (set_type_range_case): Renamed to ...
3482 (set_range_case): ... this. Update all callers.
3483 Remove type_mode/type_check.
3484 (type_mode): Remove.
3485 (type_check): Remove.
3486 (show_type_command): Remove.
3487 (set_type_command): Remove.
3488 (language_info): Remove type checking output.
3489 (type_error): Remove unused function.
3490 (range_error): Update comment.
3491 (unknown_language_defn): Remove la_type_check.
3492 (auto_language_defn): Likewise.
3493 (local_language_defn): Likewise.
3494 (_initialize_language): Remove "check type" subcommand.
3495 * ada-lang.c (ada_language_defn): Remove la_type_check.
3496 * c-lang.c (c_language_defn): Likewise.
3497 (cplus_language_defn): Likewise.
3498 (asm_language_defn): Likewise.
3499 (minimal_language_defn): Likewise.
3500 * d-lang.c (d_language_defn): Likewise.
3501 * f-lang.c (f_language_defn): Likewise.
3502 * go-lang.c (go_language_defn): Likewise.
3503 * jv-lang.c (java_language_defn): Likewise.
3504 * m2-lang.c (m2_language_defn): Likewise.
3505 * objc-lang.c (objc_language_defn): Likewise.
3506 * opencl-lang.c (opencl_language_defn): Likewise.
3507 * p-lang.c (pascal_language_defn): Likewise.
3508
3509 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3510
3511 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3512
3513 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3514
3515 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3516 New function.
3517 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3518 using the regache. Use ia64_hpux_get_register_from_save_state_t
3519 to access the bsp and bspstore registers if not.
3520
3521 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3522
3523 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3524 * breakpoint.c (detach_breakpoints): Change pid parameter into
3525 a ptid. Adjust code accordingly.
3526 * infrun.c (handle_inferior_event): Delete variable child_pid.
3527 Update call to detach_breakpoints to pass the child ptid for
3528 fork events.
3529 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3530 assert that inferior_ptid's lwp is zero.
3531 (linux_handle_extended_wait): Update call to detach_breakpoints.
3532 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3533 detach_breakpoints.
3534
3535 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3536
3537 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3538 parent, only call detach_breakpoints if tts.tts_event ==
3539 TTEVT_VFORK.
3540
3541 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3542
3543 * dwarf2-frame.c (dwarf2_frame_cache): Use
3544 get_frame_address_in_block instead of get_frame_pc as
3545 the bound for executing the frame's FDE.
3546
3547 2012-08-16 Yao Qi <yao@codesourcery.com>
3548
3549 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3550 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3551 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3552 (c_type_print_varspec_suffix): Likewise.
3553 * eval.c (evaluate_subexp_standard): Likewise.
3554 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3555 (f_type_print_varspec_suffix): Likewise.
3556 * gdbtypes.c (is_scalar_type): Likewise.
3557 (recursive_dump_type): Likewise.
3558 * infcall.c (value_arg_coerce): Likewise.
3559 * m2-valprint.c (m2_val_print): Likewise.
3560 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3561 (pascal_type_print_varspec_suffix): Likewise.
3562 (pascal_type_print_base): Likewise.
3563 * p-valprint.c (pascal_val_print): Likewise.
3564 (pascal_val_print): Likewise.
3565 * valops.c (value_slice): Likewise.
3566 * valprint.c (scalar_type_p): Likewise.
3567 * valarith.c (value_bitstring_subscript): Remove.
3568 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3569 Remove comment on TYPE_CODE_BITSTRING.
3570
3571 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3572 TYPE_CODE_BITSTRING.
3573
3574 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3575 slot 0.
3576
3577 2012-08-16 Yao Qi <yao@codesourcery.com>
3578
3579 * tracepoint.c (trace_find_none_command): Remove.
3580 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3581
3582 2012-08-16 Yao Qi <yao@codesourcery.com>
3583
3584 * remote.c (handle_notification): Remove parameter 'length'.
3585 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3586
3587 2012-08-15 Keith Seitz <keiths@redhat.com>
3588
3589 * gdbtypes.c (opaque_type_resolution): Make static.
3590 Add missing comment.
3591 (overload_debug): Add missing comment.
3592 (show_opaque_type_resolution): Likewise.
3593 (show_overload_debug): Likewise.
3594 (print_bit_vector): Remove unnecessary forward declaration.
3595 (print_arg_types): Likewise.
3596 (dump_fn_fieldlists): Likewise.
3597 (print_cplus_stuff): Likewise.
3598
3599 2012-08-15 Tom Tromey <tromey@redhat.com>
3600
3601 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3602 (gdb_bfd_ref): Initialize new field.
3603 (gdb_bfd_unref): Unref the archive BFD.
3604 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3605 parent archive.
3606
3607 2012-08-15 Tom Tromey <tromey@redhat.com>
3608
3609 PR python/14387:
3610 * python/py-bpevent.c (create_breakpoint_event_object): Update
3611 comment.
3612 * python/py-event.c (evpy_add_attribute): Update comment.
3613 * python/py-exitedevent.c (create_exited_event_object): Fix
3614 reference counting and error handling.
3615 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3616 Fix reference counting.
3617 * python/py-signalevent.c (create_signal_event_object): Fix
3618 reference counting and error handling.
3619 * python/py-stopevent.c (emit_stop_event): Fix reference
3620 counting.
3621 * python/py-threadevent.c (get_event_thread): Return a
3622 borrowed reference.
3623 * python/py-type.c (convert_field): Fix reference counting.
3624
3625 2012-08-15 Tom Tromey <tromey@redhat.com>
3626
3627 * dwarf2read.c (dwarf_decode_macro_bytes)
3628 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3629 as hash key.
3630
3631 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3632
3633 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3634 stepi, nexti, finish, next, step, jump, and continue commands.
3635 * infrun.c (_initialize_infrun): Update help text for the handle
3636 command.
3637
3638 2012-08-14 Doug Evans <dje@google.com>
3639
3640 * gdbtypes.c (struct extra): Delete, unused.
3641
3642 * gdbtypes.c: Whitespace cleanup.
3643 (address_space_name_to_int): Remove "extern" from definition.
3644 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3645
3646 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3647 TYPE_POINTER_TYPE (type).
3648
3649 2012-08-14 Gary Benson <gbenson@redhat.com>
3650
3651 * solib-svr4.c (svr4_free_library_list): Use free_so.
3652
3653 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3654
3655 * .gitignore: Add go-exp.c.
3656
3657 2012-08-13 Doug Evans <dje@google.com>
3658
3659 * value.c (show_convenience): Tweak comment.
3660 (_initialize_values): Mention convenience functions in the help text
3661 for "show convenience".
3662
3663 2012-08-13 Yao Qi <yao@codesourcery.com>
3664
3665 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3666 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3667 TERNOP_SLICE_COUNT.
3668 * eval.c (evaluate_subexp_standard): Likewise.
3669 * expprint.c (print_subexp_standard): Likewise.
3670 (dump_subexp_body_standard): Likewise.
3671 * parse.c (operator_length_standard): Likewise.
3672
3673 2012-08-13 Yao Qi <yao@codesourcery.com>
3674
3675 * std-operator.def: Remove OP_BITSTRING.
3676 * breakpoint.c (watchpoint_exp_is_const): Update.
3677 * eval.c (evaluate_subexp_standard): Remove handling to
3678 OP_BITSTRING.
3679 * expprint.c (print_subexp_standard): Likewise.
3680 (dump_subexp_body_standard): Likewise.
3681 * parse.c (operator_length_standard): Likewise.
3682 * valops.c (value_bitstring): Remove.
3683 * value.h: Remove the declaration of 'value_bitstring'.
3684
3685 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3686
3687 * linespec.c (find_methods): Remove unused variables `i1' and
3688 `name_len'.
3689 (decode_line_full): Likewise for `arg_start'.
3690
3691 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3692
3693 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3694 (zlib_decompress_section): Likewise for `section_data'.
3695 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3696
3697 2012-08-10 Doug Evans <dje@google.com>
3698
3699 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3700 * NEWS: Document them.
3701 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3702 function/strfns.py.
3703 * python/py-type.c (typy_array_1): New function.
3704 (typy_array): Call it.
3705 (typy_vector): New function.
3706 (type_object_methods): Add "vector".
3707 * python/lib/gdb/function/__init__.py: New file.
3708 * python/lib/gdb/function/strfns.py: New file.
3709
3710 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3711
3712 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3713 for TYPE_FIELD_BITPOS.
3714 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3715
3716 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3717
3718 PR cli/10436:
3719 * common/vec.h (VEC_merge): Define.
3720 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3721 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3722 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3723 * completer.c: Include gdb_signals.h.
3724 (signal_completer): Define.
3725 * completer.h (signal_completer): Add prototype.
3726 * infcmd.c (_initialize_infcmd): Assign the command
3727 completer for "signal" to handle_completer.
3728 * infrun.c: Include completer.h.
3729 (handle_completer): Define.
3730 (_initialize_infrun): Declare a new local variable c. Store the
3731 result of add_com("handle") to it. Assign the command
3732 completer for "handle" to handle_completer.
3733
3734 2012-08-09 Yao Qi <yao@codesourcery.com>
3735
3736 * cli/cli-decode.c (set_cmd_prefix): New.
3737 (lookup_cmd_for_prefixlist): New.
3738 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3739 of each cmd_list_element in *prefixlist.
3740 (add_setshow_cmd_full): set_cmd_prefix.
3741 (add_alias_cmd): Likewise.
3742 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3743 Declare 'auto_boolean_enums'.
3744 * cli/cli-setshow.c: Include "observer.h".
3745 (notify_command_param_changed_p): New.
3746 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3747 Remove 'static'.
3748 (do_setshow_command): Split it to ...
3749 (do_set_command, do_show_command): ... them. New.
3750 (do_set_command): Call observer_notify_command_param_changed if
3751 notify_command_param_changed_p returns true.
3752 (cmd_show_list): Caller update.
3753 * auto-load.c (set_auto_load_cmd): Likewise.
3754 * remote.c (show_remote_cmd): Likewise.
3755 * cli/cli-setshow.h: Update declarations.
3756 * top.c (execute_command): Call do_set_command and do_show_command.
3757
3758 * NEWS: Mention new MI notification.
3759 * mi/mi-interp.c: Declare mi_command_param_changed.
3760 (mi_interpreter_init): Attach mi_command_param_changed to
3761 observer command_param_changed.
3762 (mi_command_param_changed): New.
3763 Remove mi_suppress_breakpoint_notifications.
3764 Define global variable mi_suppress_notification.
3765 (mi_breakpoint_created): Update.
3766 (mi_breakpoint_deleted): Likewise.
3767 (mi_breakpoint_modified): Likewise.
3768 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3769 'gdb-set' and set mi_suppress_notification.
3770 * mi/mi-main.h: (mi_suppress_notification): New struct.
3771
3772 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3773 Jan Kratochvil <jan.kratochvil@redhat.com>
3774
3775 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3776
3777 2012-08-09 Yao Qi <yao@codesourcery.com>
3778
3779 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3780 (skiplist): Move it to skip.c.
3781 (init_cmd_lists): Remove code setting enablebreaklist and
3782 skiplist to NULL.
3783 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3784 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3785 skiplist.
3786 * gdbcmd.h: Likewise.
3787 * skip.c (_initialize_step_skip): Move 'skiplist' from
3788 cli/cli-cmds.c.
3789
3790 2012-08-09 Yao Qi <yao@codesourcery.com>
3791
3792 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3793 * gnu-nat.c, symfile.c: Likewise.
3794
3795 2012-08-08 Aaron Gamble <agamble@google.com>
3796
3797 * utils.c (prompt_for_continue_wait_time): New static global.
3798 (make_command_stats_cleanup): Initialize it.
3799 (report_command_stats): Subtract time waiting for user.
3800 (prompt_for_continue): Track time waiting for user.
3801 (defaulted_query): Track time waiting for user.
3802
3803 2012-08-08 Doug Evans <dje@google.com>
3804
3805 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3806 UNOP_MEMVAL_TYPE.
3807 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3808 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3809 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3810 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3811 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3812 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3813 elt.
3814 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3815 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3816 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3817 (dump_prefix_expression): Handle OP_TYPE.
3818
3819 2012-08-08 Keith Seitz <keiths@redhat.com>
3820
3821 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3822 addr_start.
3823
3824 2012-08-08 Doug Evans <dje@google.com>
3825
3826 * linux-thread-db.c: #include "gdb_vecs.h".
3827 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3828 updated.
3829 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3830 (thread_db_load_search): Use a vector to iterate over path elements.
3831 Handle text appearing after "$pdir".
3832
3833 * gdb_string.h: Moved to ...
3834 * common/gdb_string.h: ... here.
3835 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3836 gdb_string.h and gdb_assert.h.
3837
3838 2012-08-08 Yao Qi <yao@codesourcery.com>
3839
3840 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3841 (tic6x_value_to_register): Likewise.
3842 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3843 and set_gdbarch_value_to_register.
3844
3845 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3846 Jean-Marc Saffroy <saffroy@gmail.com>
3847
3848 PR 11804
3849 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3850 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3851 * gcore.c (gcore_create_callback): New function comment. Add modified
3852 parameter. Only write modified regions. Set SEC_READONLY exactly
3853 according to MODIFIED.
3854 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3855 the passed modified value to FUNC.
3856 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3857 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3858 first. New variables modified and has_anonymous. Parse the lines of
3859 smaps file. Add the passed MODIFIED value to FUNC.
3860 * procfs.c (find_memory_regions_callback): Add the passed modified
3861 value.
3862
3863 2012-08-06 Tom Tromey <tromey@redhat.com>
3864
3865 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3866 (dwarf2_frame_cache): Use it.
3867 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3868 cache initialization constraint.
3869
3870 2012-08-06 Tom Tromey <tromey@redhat.com>
3871
3872 PR python/14386:
3873 * varobj.c (update_dynamic_varobj_children): Don't call
3874 PyIter_Check.
3875
3876 2012-08-06 Tom Tromey <tromey@redhat.com>
3877
3878 PR cli/14392:
3879 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3880
3881 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3882
3883 * NEWS: New entry for 'cd' default parameters.
3884 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3885
3886 2012-08-03 Tom Tromey <tromey@redhat.com>
3887
3888 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3889 return.
3890
3891 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3892
3893 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3894 to attempting lseek/write.
3895 (inf_child_fileio_pread): Likewise for pread.
3896
3897 2012-08-02 Yao Qi <yao@codesourcery.com>
3898
3899 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3900 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3901 add_setshow_zinteger_cmd.
3902 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3903 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3904 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3905 instead of add_setshow_zinteger_cmd.
3906 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3907 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3908 instead of add_setshow_zinteger_cmd.
3909 * frame.c (frame_debug): Add 'unsigned'.
3910 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3911 add_setshow_zinteger_cmd.
3912 * frame.h: Update the declaration of 'frame_debug'.
3913 * gdbtypes.c (overload_debug): Add 'unsigned'.
3914 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3915 add_setshow_zinteger_cmd.
3916 * inferior.h: Update declaration of 'debug_infrun'.
3917 * infrun.c (debug_infrun): Add 'unsigned'.
3918 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3919 add_setshow_zinteger_cmd.
3920 * jit.c (jit_debug): Add 'unsigned'.
3921 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3922 add_setshow_zinteger_cmd.
3923 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3924 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3925 instead of add_setshow_zinteger_cmd.
3926 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3927 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3928 add_setshow_zinteger_cmd.
3929 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3930 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3931 instead of add_setshow_zinteger_cmd.
3932 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3933 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3934 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3935 intead of add_setshow_zinteger_cmd.
3936 * mips-tdep.c (mips_debug): Add 'unsigned'.
3937 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3938 instead of add_setshow_zinteger_cmd.
3939 * monitor.c (monitor_debug): Add 'unsigned'.
3940 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3941 add_setshow_zinteger_cmd.
3942 * observer.c (observer_debug): Add 'unsigned'.
3943 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3944 add_setshow_zinteger_cmd.
3945 * parse.c (expressiondebug): Add 'unsigned'.
3946 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3947 add_setshow_zinteger_cmd.
3948 * record.c (record_debug): Add 'unsigned'.
3949 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3950 add_setshow_zinteger_cmd.
3951 * record.h: Update the declaration of 'record_debug'.
3952 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3953 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3954 add_setshow_zinteger_cmd.
3955 * serial.c (global_serial_debug_p): Add 'unsigned'.
3956 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3957 add_setshow_zinteger_cmd.
3958 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3959 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3960 add_setshow_zinteger_cmd.
3961 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3962 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3963 add_setshow_zinteger_cmd.
3964 * target.c (targetdebug): Add 'unsigned'.
3965 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3966 add_setshow_zinteger_cmd.
3967 * valops.c (overload_debug): Add 'unsigned'.
3968 * varobj.c (varobjdebug): Add 'unsigned'.
3969 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3970 add_setshow_zinteger_cmd.
3971 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3972 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3973 instead of add_setshow_zinteger_cmd.
3974
3975 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3976 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3977 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3978 instead of add_setshow_zinteger_cmd.
3979 * gdbarch.c, gdbarch.h: Re-generated.
3980
3981 2012-08-02 Yao Qi <yao@codesourcery.com>
3982
3983 * nto-tdep.c: Don't include cli/cli-decode.h and
3984 cli/cli-cmds.h.
3985 (_initialize_nto_tdep): Remove.
3986 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3987 Remove field.
3988 Remove macro nto_internal_debugging.
3989
3990 2012-08-01 Richard Henderson <rth@redhat.com>
3991
3992 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3993 (mep-*-*) [gdb_target_obs]: Likewise.
3994
3995 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3996
3997 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3998 linux_get_siginfo_type.
3999
4000 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4001
4002 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
4003 AT_ENTRY_POINT.
4004 (call_function_by_hand) <ON_STACK>: Call write_memory with
4005 gdbarch_breakpoint_from_pc, if possible.
4006 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
4007 here.
4008
4009 2012-07-31 Yao Qi <yao@codesourcery.com>
4010
4011 * tracepoint.c: Add 'static' for some variables.
4012
4013 2012-07-31 Yao Qi <yao@codesourcery.com>
4014
4015 * go32-nat.c: Declare _initialize_go32_nat.
4016 * ser-go32.c: Declare _initialize_ser_dos.
4017 * top.c (do_chdir_cleanup): Add 'static'.
4018
4019 2012-07-30 Keith Seitz <keiths@redhat.com>
4020
4021 * linespec.c (linespec_lex_number): A number followed
4022 by quotes is a valid number, too.
4023
4024 2012-07-30 Tom Tromey <tromey@redhat.com>
4025
4026 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
4027
4028 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
4029
4030 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
4031 attempt to 4-byte-align HW breakpoint addresses for Thumb.
4032
4033 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
4034
4035 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
4036 invalid or reevaluated to prevent prevent references to possibly
4037 delete'd type objects being left in the varobj.
4038
4039 2012-07-27 Tom Tromey <tromey@redhat.com>
4040 Jan Kratochvil <jan.kratochvil@redhat.com>
4041
4042 * copying.awk: Print buffer-read-only and vi ro markers.
4043 * copying.c: Rebuild.
4044 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
4045 * gdbarch.c, gdbarch.h: Rebuild.
4046 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
4047 buffer-read-only and vi ro markers.
4048 * features/arm-with-iwmmxt.c: Rebuild.
4049 * features/arm-with-m-fpa-layout.c: Rebuild.
4050 * features/arm-with-m-vfp-d16.c: Rebuild.
4051 * features/arm-with-m.c: Rebuild.
4052 * features/arm-with-neon.c: Rebuild.
4053 * features/arm-with-vfpv2.c: Rebuild.
4054 * features/arm-with-vfpv3.c: Rebuild.
4055 * features/i386/amd64-avx-linux.c: Rebuild.
4056 * features/i386/amd64-avx.c: Rebuild.
4057 * features/i386/amd64-linux.c: Rebuild.
4058 * features/i386/amd64.c: Rebuild.
4059 * features/i386/i386-avx-linux.c: Rebuild.
4060 * features/i386/i386-avx.c: Rebuild.
4061 * features/i386/i386-linux.c: Rebuild.
4062 * features/i386/i386-mmx-linux.c: Rebuild.
4063 * features/i386/i386-mmx.c: Rebuild.
4064 * features/i386/i386.c: Rebuild.
4065 * features/i386/x32-avx-linux.c: Rebuild.
4066 * features/i386/x32-avx.c: Rebuild.
4067 * features/i386/x32-linux.c: Rebuild.
4068 * features/i386/x32.c: Rebuild.
4069 * features/mips-dsp-linux.c: Rebuild.
4070 * features/mips-linux.c: Rebuild.
4071 * features/mips64-dsp-linux.c: Rebuild.
4072 * features/mips64-linux.c: Rebuild.
4073 * features/rs6000/powerpc-32.c: Rebuild.
4074 * features/rs6000/powerpc-32l.c: Rebuild.
4075 * features/rs6000/powerpc-403.c: Rebuild.
4076 * features/rs6000/powerpc-403gc.c: Rebuild.
4077 * features/rs6000/powerpc-405.c: Rebuild.
4078 * features/rs6000/powerpc-505.c: Rebuild.
4079 * features/rs6000/powerpc-601.c: Rebuild.
4080 * features/rs6000/powerpc-602.c: Rebuild.
4081 * features/rs6000/powerpc-603.c: Rebuild.
4082 * features/rs6000/powerpc-604.c: Rebuild.
4083 * features/rs6000/powerpc-64.c: Rebuild.
4084 * features/rs6000/powerpc-64l.c: Rebuild.
4085 * features/rs6000/powerpc-7400.c: Rebuild.
4086 * features/rs6000/powerpc-750.c: Rebuild.
4087 * features/rs6000/powerpc-860.c: Rebuild.
4088 * features/rs6000/powerpc-altivec32.c: Rebuild.
4089 * features/rs6000/powerpc-altivec32l.c: Rebuild.
4090 * features/rs6000/powerpc-altivec64.c: Rebuild.
4091 * features/rs6000/powerpc-altivec64l.c: Rebuild.
4092 * features/rs6000/powerpc-cell32l.c: Rebuild.
4093 * features/rs6000/powerpc-cell64l.c: Rebuild.
4094 * features/rs6000/powerpc-e500.c: Rebuild.
4095 * features/rs6000/powerpc-e500l.c: Rebuild.
4096 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
4097 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
4098 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
4099 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
4100 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
4101 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
4102 * features/rs6000/powerpc-vsx32.c: Rebuild.
4103 * features/rs6000/powerpc-vsx32l.c: Rebuild.
4104 * features/rs6000/powerpc-vsx64.c: Rebuild.
4105 * features/rs6000/powerpc-vsx64l.c: Rebuild.
4106 * features/rs6000/rs6000.c: Rebuild.
4107 * features/s390-linux32.c: Rebuild.
4108 * features/s390-linux32v1.c: Rebuild.
4109 * features/s390-linux32v2.c: Rebuild.
4110 * features/s390-linux64.c: Rebuild.
4111 * features/s390-linux64v1.c: Rebuild.
4112 * features/s390-linux64v2.c: Rebuild.
4113 * features/s390x-linux64.c: Rebuild.
4114 * features/s390x-linux64v1.c: Rebuild.
4115 * features/s390x-linux64v2.c: Rebuild.
4116 * features/tic6x-c62x-linux.c: Rebuild.
4117 * features/tic6x-c62x.c: Rebuild.
4118 * features/tic6x-c64x-linux.c: Rebuild.
4119 * features/tic6x-c64x.c: Rebuild.
4120 * features/tic6x-c64xp-linux.c: Rebuild.
4121 * features/tic6x-c64xp.c: Rebuild.
4122
4123 2012-07-27 Tom Tromey <tromey@redhat.com>
4124
4125 * c-exp.y (classify_name): Avoid assignment in condition.
4126
4127 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
4128
4129 * amd64-windows-tdep.c: Include "frame.h".
4130 (amd64_windows_skip_trampoline_code): New function.
4131 (amd64_windows_init_abi): Add trampoline registration.
4132
4133 2012-07-27 Yao Qi <yao@codesourcery.com>
4134
4135 * tracepoint.c (cur_traceframe_number): Remove.
4136 (set_tfile_traceframe): Remove.
4137 (tfile_trace_find, tfile_fetch_registers): Update callers.
4138 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4139 (tfile_open, tfile_trace_find): Likewise.
4140
4141 2012-07-27 Yao Qi <yao@codesourcery.com>
4142
4143 * thread.c (switch_to_thread): Don't call registers_changed.
4144
4145 2012-07-26 Tom Tromey <tromey@redhat.com>
4146
4147 * Makefile.in (SFILES): Remove objc-exp.y.
4148 (YYFILES): Remove objc-exp.c.
4149 (YYOBJ): Remove objc-exp.o.
4150 (local-maintainer-clean): Don't mention objc-exp.c.
4151 * c-exp.y: Include objc-lang.h.
4152 (%union) <class>: New field.
4153 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4154 (exp): Clone subscript production for OBJC_LBRAC. Add various
4155 Objective C productions.
4156 (msglist, msgarglist, msgarg): New productions.
4157 (array_mod, func_mod, operator): Clone productions for
4158 OBJC_LBRAC.
4159 (parse_string_or_char): Handle '@' strings.
4160 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
4161 (classify_name): Check la_name_of_this. Recognize ObjC class
4162 names.
4163 * objc-exp.y: Remove.
4164 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4165 * objc-lang.h (objc_parse, objc_error): Don't declare.
4166
4167 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
4168
4169 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4170
4171 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4172
4173 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4174 and decrement.
4175
4176 2012-07-26 Tom Tromey <tromey@redhat.com>
4177
4178 * copying.c: Rebuild.
4179 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
4180 'no_class'.
4181
4182 2012-07-26 Tom Tromey <tromey@redhat.com>
4183
4184 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4185 immediate_quit.
4186 (print_objfile_statistics): Likewise.
4187 (maintenance_print_symbols): Likewise.
4188 (maintenance_print_msymbols): Likewise.
4189 (maintenance_print_objfiles): Likewise.
4190 * psymtab.c (print_partial_symbols): Call QUIT.
4191 (maintenance_print_psymbols): Likewise. Don't modify
4192 immediate_quit.
4193 * copying.c (show_copying_command): Don't modify immediate_quit.
4194 (show_warranty_command): Likewise.
4195 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4196
4197 2012-07-26 Keith Seitz <keiths@redhat.com>
4198
4199 * linespec.c (linespec_lexer_lex_number): The input
4200 is also a valid number if the next character is a comma
4201 or colon.
4202
4203 2012-07-26 Joel Brobecker <brobecker@adacore.com>
4204
4205 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4206 configure options.
4207
4208 2012-07-26 Tristan Gingold <gingold@adacore.com>
4209
4210 * machoread.c: Include gdb_bfd.h.
4211
4212 2012-07-26 Tristan Gingold <gingold@adacore.com>
4213
4214 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4215 offset.
4216
4217 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
4218
4219 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4220 SIZE to size_t.
4221 (dwarf2_evaluate_loc_desc): Likewise.
4222 (dwarf2_loc_desc_needs_frame): Likewise.
4223 (locexpr_describe_location_1): Likewise.
4224 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4225 size_t.
4226 (struct dwarf2_loclist_baton): Likewise.
4227 * dwarf2read.c (struct dwarf_block): Likewise.
4228 (dump_die_shallow): Use pulongest to print dwarf_block.size.
4229 (decode_locdesc): Expand SIZE and I to size_t.
4230
4231 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
4233 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4234
4235 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4236
4237 * doublest.c (convert_doublest_to_floatformat): If the exponent
4238 is too small, treat the value as zero. If the exponent is too
4239 large, treat the value as infinity.
4240
4241 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4242
4243 * configure.ac: Add --enable-lmcheck configure option.
4244 * configure: Regenerate.
4245
4246 2012-07-25 Tom Tromey <tromey@redhat.com>
4247
4248 * NEWS: Mention maint info bfds.
4249 * gdb_bfd.c (all_bfds): New global.
4250 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4251 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4252 New functions.
4253
4254 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
4255
4256 * configure.tgt: Add v850*-*-rtems*.
4257
4258 2012-07-25 Tom Tromey <tromey@redhat.com>
4259
4260 * macrotab.c (macro_bcache_str): Remove cast.
4261
4262 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
4263
4264 * linespec.c (linespec_lexer_lex_number): Update comments,
4265 change the return and add check to make sure the input is
4266 the decimal numbers.
4267 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4268 false, call linespec_lexer_lex_string.
4269
4270 2012-07-24 Tom Tromey <tromey@redhat.com>
4271
4272 * symfile.c (symbol_file_add): Don't open BFD twice.
4273
4274 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
4275
4276 * breakpoint.c (create_breakpoint): Store condition for pending
4277 breakpoints.
4278
4279 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4280
4281 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4282 (m68k_return_value): Handle complex types like structures.
4283 (m68k_svr4_return_value): Likewise.
4284
4285 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4286
4287 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4288 parameters to bfd_get_section_name.
4289
4290 2012-07-24 Yao Qi <yao@codesourcery.com>
4291
4292 * cli/cli-setshow.c: Handle case 'var_uinteger'
4293 and 'var_zuninteger' together. Handle case 'var_integer' and
4294 'var_zinteger' together.
4295
4296 2012-07-23 Keith Seitz <keiths@redhat.com>
4297
4298 * linespec.c (convert_linespec_to_sal): Don't add
4299 any symbols to the result vector if symbol_to_sal
4300 returns zero.
4301
4302 2012-07-23 Keith Seitz <keiths@redhat.com>
4303
4304 * linespec.c (decode_objc): Record the function name
4305 in the linespec.
4306
4307 2012-07-23 Tom Tromey <tromey@redhat.com>
4308
4309 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4310 counting.
4311 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4312 (map_vmap): Acquire a reference to the BFD.
4313
4314 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4315
4316 * p-valprint.c (pascal_object_print_value): Replace potentially
4317 unsafe alloca with xmalloc/xfree.
4318 * valops.c (search_struct_method): Likewise.
4319
4320 2012-07-23 Tom Tromey <tromey@redhat.com>
4321
4322 * solib-svr4.c (enable_break): Update.
4323 * bfd-target.h (target_bfd_reopen): Update documentation.
4324
4325 2012-07-23 Tom Tromey <tromey@redhat.com>
4326
4327 * symfile.c (separate_debug_file_exists): Update.
4328 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4329 (reread_symbols): Update.
4330 * elfread.c (build_id_verify): Update.
4331 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4332 bfd_open_maybe_remote.
4333
4334 2012-07-23 Tom Tromey <tromey@redhat.com>
4335
4336 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4337
4338 2012-07-23 Tom Tromey <tromey@redhat.com>
4339
4340 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4341 and 'abfd'.
4342 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4343 and 'abfd'.
4344 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4345 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4346 'abfd'.
4347 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4348 * objfiles.c (allocate_objfile): Acquire a new reference.
4349 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4350 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4351 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4352 a cleanup for 'nbfd'.
4353 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4354 for 'nbfd'.
4355 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4356 make a cleanup for 'abfd'.
4357 (symbol_file_add): Make a BFD cleanup.
4358
4359 2012-07-23 Tom Tromey <tromey@redhat.com>
4360
4361 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4362 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4363 * corelow.c (core_open): Use gdb_bfd_fopen.
4364 * dsrec.c (load_srec): Use gdb_bfd_openr.
4365 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4366 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4367 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4368 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4369 (gdb_bfd_fdopenr): New functions.
4370 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4371 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4372 (gdb_bfd_fdopenr): Declare.
4373 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4374 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4375 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4376 gdb_bfd_openr_next_archived_file.
4377 (macho_check_dsym): Use gdb_bfd_openr.
4378 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4379 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4380 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4381 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4382 gdb_bfd_openr.
4383 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4384 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4385 gdb_bfd_openr_next_archived_file.
4386 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4387 Use gdb_bfd_openr.
4388 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4389 gdb_bfd_openr.
4390 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4391 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4392 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4393 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4394 (symfile_bfd_open): Use gdb_bfd_fopen.
4395 (generic_load): Use gdb_bfd_openr.
4396 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4397
4398 2012-07-23 Tom Tromey <tromey@redhat.com>
4399
4400 * bfd-target.c (target_bfd_reopen): Update.
4401 * cli/cli-dump.c (bfd_openr_with_cleanup)
4402 (bfd_openw_with_cleanup): Update.
4403 * corelow.c (core_open): Update.
4404 * dsrec.c (load_srec): Update.
4405 * exec.c (exec_file_attach): Update.
4406 * gcore.c (create_gcore_bfd): Update.
4407 * gdb_bfd.c (gdb_bfd_ref): Return void.
4408 (gdb_bfd_open): Update.
4409 * gdb_bfd.h (gdb_bfd_ref): Return void.
4410 Update comments.
4411 * jit.c (jit_bfd_try_read_symtab): Update.
4412 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4413 * machoread.c (macho_symfile_read_all_oso): Update.
4414 (macho_check_dsym): Update.
4415 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4416 * remote-m32r-sdi.c (m32r_load): Update.
4417 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4418 * rs6000-nat.c (add_vmap): Update.
4419 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4420 Update.
4421 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4422 * solib-spu.c (spu_bfd_open): Update.
4423 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4424 * spu-linux-nat.c (spu_bfd_open): Update.
4425 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4426 (generic_load): Update.
4427 * windows-nat.c (windows_make_so): Update.
4428
4429 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4430
4431 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4432
4433 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4434
4435 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4436 SIGTRAMP_FRAME unwinding.
4437
4438 2012-07-20 Doug Evans <dje@google.com>
4439
4440 * NEWS: Document new options "set/show use-deprecated-index-sections",
4441 and delete reference to --use-deprecated-index-sections.
4442 * symfile.h (use_deprecated_index_sections): Delete.
4443 * dwarf2read.c (use_deprecated_index_sections): Make static.
4444 (read_index_from_section): Update wording of how to load
4445 deprecated index sections.
4446 (_initialize_dwarf2_read): New options
4447 "set/show use-deprecated-index-sections".
4448 * main.c (captured_main): Delete --use-deprecated-index-sections.
4449
4450 2012-07-20 Pedro Alves <palves@redhat.com>
4451
4452 PR threads/11692
4453 PR gdb/12203
4454
4455 * infrun.c (handle_inferior_event) <new thread>: Don't special
4456 case minus_one_ptid.
4457 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4458 * linux-thread-db.c (thread_get_info_callback): Don't return early
4459 if the thread is zombie.
4460 (thread_from_lwp): Change return type to void. Rewrite stale
4461 comment.
4462 (attach_thread): Don't return early if the thread is zombie,
4463 instead set its "dying" flag.
4464 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4465 (find_new_threads_callback): Don't return early if the thread is
4466 zombie.
4467
4468 2012-07-20 Pedro Alves <palves@redhat.com>
4469
4470 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4471 * target.c (target_wait): Likewise.
4472 (str_comma_list_concat_elem, do_option, target_options_to_string):
4473 New functions.
4474 * target.h (target_options_to_string): Declare.
4475
4476 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4477 Tom Tromey <tromey@redhat.com>
4478
4479 * dwarf2read.c (dwarf_decode_macros)
4480 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4481 DW_MACRO_GNU_transparent_include_alt>: New cases.
4482 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4483 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4484
4485 2012-07-20 Tom Tromey <tromey@redhat.com>
4486
4487 * dwarf2read.c (try_open_dwo_file): Don't call
4488 gdb_bfd_stash_filename.
4489
4490 2012-07-20 Pedro Alves <palves@redhat.com>
4491
4492 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4493 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4494 (i386_process_record): Tweak description comments.
4495
4496 2012-07-20 Pedro Alves <palves@redhat.com>
4497
4498 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4499 (i386_process_record): Use record_read_memory.
4500 * record.c (record_read_memory): New function.
4501 (record_arch_list_add_mem, record_exec_insn): Use
4502 record_read_memory.
4503 * record.h (record_read_memory): Declare.
4504
4505 2012-07-20 Yao Qi <yao@codesourcery.com>
4506
4507 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4508 NULL for xfree.
4509
4510 2012-07-19 Pedro Alves <palves@redhat.com>
4511
4512 * record.c (record_resume): Ask the target beneath to report all
4513 signals.
4514
4515 2012-07-19 Doug Evans <dje@google.com>
4516
4517 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4518 there's no section at address zero.
4519 (dwarf2_record_block_ranges): Ditto.
4520
4521 2012-07-19 Yao Qi <yao@codesourcery.com>
4522
4523 * command.h, remote.c: Fix a typo in comment.
4524
4525 2012-07-19 Tom Tromey <tromey@redhat.com>
4526
4527 PR exp/13206:
4528 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4529 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4530 OP_DECLTYPE>: New cases.
4531 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4532 (type_exp): Add new productions.
4533 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4534 and decltype.
4535 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4536 New case.
4537 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4538 OP_DECLTYPE>: New case.
4539 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4540 New case.
4541 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4542 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4543
4544 2012-07-19 Tom Tromey <tromey@redhat.com>
4545
4546 * c-exp.y (enum token_flags): New.
4547 (struct token) <cxx_only>: Remove.
4548 <flags>: New field.
4549 (tokentab3, tokentab2, ident_tokens): Update.
4550 (lex_one_token): Update. Handle FLAG_SHADOW.
4551
4552 2012-07-19 Tom Tromey <tromey@redhat.com>
4553
4554 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4555 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4556 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4557 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4558 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4559 type_exp production where appropriate.
4560 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4561 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4562 <UNOP_MEMVAL_TYPE>: New case.
4563 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4564 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4565 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4566 <UNOP_MEMVAL_TYPE>: New case.
4567 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4568 UNOP_REINTERPRET_CAST>: Update.
4569 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4570 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4571 UNOP_REINTERPRET_CAST>: Update.
4572 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4573 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4574 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4575 constants.
4576
4577 2012-07-19 Yao Qi <yao@codesourcery.com>
4578 Jan Kratochvil <jan.kratochvil@redhat.com>
4579
4580 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4581 and case 'var_optional_filename' together.
4582 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4583 instead of add_setshow_optional_filename_cmd for setshow command
4584 'args'. Set completer for 'set args'.
4585
4586 2012-07-18 Doug Evans <dje@google.com>
4587
4588 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4589 * common/gdb_vecs.c: New file, contents from utils.c.
4590 * common/host-defs.h: New file, contents from defs.h.
4591 * utils.h: New file, contents from defs.h.
4592 * defs.h: Move all declarations of objects defined in utils.c
4593 to utils.h (except QUIT() and related).
4594 #include "utils.h", "host-defs.h".
4595 * probe.h (probe_p): Move here from gdb_vecs.h.
4596 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4597 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4598 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4599 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4600 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4601 (COMMON_OBS): Add gdb_vecs.o.
4602 (gdb_vecs.o): New rule.
4603
4604 2012-07-18 Keith Seitz <keiths@redhat.com>
4605
4606 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4607 parameter. If non-zero, use SYMNAME as the canonical name
4608 for the SaL.
4609 Update all callers.
4610 (convert_linespec_to_sals): Use add_sal_to_sals for
4611 expressions, too.
4612 (decode_line_full): No need to "fill in missing canonical names"
4613 anymore. Simply make cleanups for the allocated names.
4614
4615 2012-07-18 Keith Seitz <keiths@redhat.com>
4616
4617 * linespec.c (struct linespec): Constify expression,
4618 source_filename, function_name, and label_name.
4619 (symbol_not_found_error): Make all parameters const.
4620 (linespec_parser_delete): No need to check for NULL
4621 when using xfree. Cast const char * to char * for xfree.
4622
4623 2012-07-18 Keith Seitz <keiths@redhat.com>
4624
4625 * breakpoint.c (invalid_thread_id_error): New function.
4626 (find_condition_and_thread): Use invalid_thread_id_error.
4627 (watch_command_1): Likewise.
4628
4629 2012-07-18 Tom Tromey <tromey@redhat.com>
4630
4631 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4632 * contrib/cc-with-tweaks.sh: New file.
4633
4634 2012-07-18 Tom Tromey <tromey@redhat.com>
4635
4636 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4637 (locate_dwz_sections): Recognize .gdb_index.
4638 (create_cus_from_index_list): New function.
4639 (create_cus_from_index): Use it. Handle .dwz data.
4640 (read_index_from_section): New function, extracted from
4641 dwarf2_read_index.
4642 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4643 if needed.
4644
4645 2012-07-18 Tom Tromey <tromey@redhat.com>
4646
4647 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4648 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4649 <is_dwz>: New field.
4650 (struct dwz_file): New.
4651 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4652 (locate_dwz_sections, dwarf2_get_dwz_file)
4653 (get_abbrev_section_for_cu): New functions.
4654 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4655 (read_and_check_type_unit_head): Add abbrev_section argument.
4656 (create_debug_types_hash_table): Update.
4657 (init_cutu_and_read_dies): Use proper abbrev section.
4658 (init_cutu_and_read_dies_no_follow): Likewise.
4659 (set_partial_user): Do nothing if PST==NULL.
4660 (read_comp_units_from_section): New function.
4661 (create_all_comp_units): Use it.
4662 (scan_partial_symbols, partial_die_parent_scope): Update.
4663 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4664 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4665 (find_partial_die): Add offset_in_dwz argument. Update.
4666 (guess_partial_die_structure_name, fixup_partial_die): Update.
4667 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4668 DW_FORM_GNU_strp_alt.
4669 (read_indirect_string_from_dwz): New function.
4670 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4671 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4672 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4673 (follow_die_offset): Add offset_in_dwz argument.
4674 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4675 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4676 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4677 Handle new macro forms.
4678 (dwarf_decode_macros): Update.
4679 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4680 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4681 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4682 (create_debug_types_hash_table): Use correct abbrev section.
4683 (get_debug_line_section): New function.
4684 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4685 (process_full_comp_unit): Pass 'required' argument to
4686 end_symtab_get_static_block.
4687 * buildsym.h (end_symtab_get_static_block): Update.
4688 * buildsym.c (end_symtab_get_static_block): Add 'required'
4689 argument.
4690 (end_symtab, end_expandable_symtab): Update.
4691
4692 2012-07-18 Tom Tromey <tromey@redhat.com>
4693
4694 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4695 (pagesize): Remove.
4696 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4697 (zlib_decompress_section): Remove.
4698 (dwarf2_read_section): Use gdb_bfd_map_section.
4699 (munmap_section_buffer): Remove.
4700 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4701 munmap_section_buffer.
4702 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4703 (struct gdb_bfd_section_data): New.
4704 (free_one_bfd_section): New function.
4705 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4706 (get_section_descriptor, zlib_decompress_section)
4707 (gdb_bfd_map_section): New functions.
4708 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4709
4710 2012-07-18 Tom Tromey <tromey@redhat.com>
4711
4712 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4713
4714 2012-07-18 Tom Tromey <tromey@redhat.com>
4715
4716 * gdb_bfd.c (struct gdb_bfd_data): New.
4717 (gdb_bfd_cache): New global.
4718 (struct gdb_bfd_cache_search): New.
4719 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4720 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4721 * gdb_bfd.h (gdb_bfd_open): Declare.
4722
4723 2012-07-18 Tom Tromey <tromey@redhat.com>
4724
4725 * utils.c (make_cleanup_bfd_unref): Rename from
4726 make_cleanup_bfd_close.
4727 * defs.h (make_cleanup_bfd_unref): Rename from
4728 make_cleanup_bfd_close.
4729 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4730 (bfd_openw_with_cleanup): Update.
4731 * corelow.c (core_open): Update.
4732 * dsrec.c (load_srec): Update.
4733 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4734 * remote-m32r-sdi.c (m32r_load): Update.
4735 * remote-mips.c (mips_load_srec): Update.
4736 (pmon_load_fast): Update.
4737 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4738 Update.
4739 (darwin_bfd_open): Update.
4740 * solib.c (solib_bfd_fopen): Update.
4741 * symfile-mem.c (symbol_file_add_from_memory): Update.
4742 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4743 (symfile_bfd_open): Update.
4744 (generic_load): Update.
4745
4746 2012-07-18 Tom Tromey <tromey@redhat.com>
4747
4748 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4749 (pmon_load_fast): Likewise.
4750 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4751 (m32r_upload_command): Likewise.
4752 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4753 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4754 Use make_cleanup_bfd_close.
4755
4756 2012-07-18 Tom Tromey <tromey@redhat.com>
4757
4758 * symfile.c (symfile_bfd_open): Don't copy name. Call
4759 gdb_bfd_stash_filename.
4760 (load_command): Open the new BFD before freeing the old.
4761 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4762 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4763 Call gdb_bfd_stash_filename.
4764 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4765 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4766 gdb_bfd_stash_filename.
4767 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4768 Free found_pathname.
4769 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4770 gdb_bfd_stash_filename.
4771 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4772 * machoread.c (macho_add_oso_symfile): Call
4773 gdb_bfd_stash_filename.
4774 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4775 gdb_bfd_stash_filename.
4776 (macho_check_dsym): Don't copy filename. Call
4777 gdb_bfd_stash_filename.
4778 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4779 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4780 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4781 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4782 * exec.c (exec_close): Don't free the BFD's filename.
4783 (exec_file_attach): Don't copy the filename. Call
4784 gdb_bfd_stash_filename.
4785 * corelow.c (core_close): Don't free the BFD's filename.
4786 (core_open): Call gdb_bfd_stash_filename.
4787 * corefile.c (reopen_exec_file): Remove #if 0 code.
4788 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4789 pathname.
4790 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4791
4792 2012-07-18 Tom Tromey <tromey@redhat.com>
4793
4794 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4795 gdb_bfd_unref.
4796 (free_dwo_file): Use gdb_bfd_unref.
4797 * cli/cli-dump.c: Include gdb_bfd.h.
4798 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4799 (bfd_openr_with_cleanup): Likewise.
4800 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4801 gdb_bfd_unref.
4802 * utils.c: Include gdb_bfd.h.
4803 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4804 * symfile.c: Include gdb_bfd.h.
4805 (separate_debug_file_exists): Use gdb_bfd_unref.
4806 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4807 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4808 (generic_load): Use gdb_bfd_ref.
4809 (reread_symbols): Use gdb_bfd_unref.
4810 * symfile-mem.c: Include gdb_bfd.h.
4811 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4812 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4813 * solib.c: Include gdb_bfd.h.
4814 (solib_bfd_fopen): Use gdb_bfd_ref.
4815 (solib_bfd_open): Use gdb_bfd_unref.
4816 (free_so_symbols): Use gdb_bfd_unref.
4817 (reload_shared_libraries_1): Use gdb_bfd_unref.
4818 * solib-spu.c: Include gdb_bfd.h.
4819 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4820 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4821 gdb_bfd_unref.
4822 * solib-frv.c: Include gdb_bfd.h.
4823 (enable_break2): Use gdb_bfd_unref.
4824 * solib-dsbt.c: Include gdb_bfd.h.
4825 (enable_break2): Use gdb_bfd_unref.
4826 * solib-darwin.c: Include gdb_bfd.h.
4827 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4828 gdb_bfd_unref.
4829 (darwin_bfd_open): Use gdb_bfd_unref.
4830 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4831 * remote-mips.c: Include gdb_bfd.h.
4832 (mips_load_srec): Use gdb_bfd_ref.
4833 (pmon_load_fast): Use gdb_bfd_ref.
4834 * remote-m32r-sdi.c: Include gdb_bfd.h.
4835 (m32r_load): Use gdb_bfd_ref.
4836 * record.c: Include gdb_bfd.h.
4837 (record_save_cleanups): Use gdb_bfd_unref.
4838 (cmd_record_save): Use gdb_bfd_unref.
4839 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4840 gdb_bfd_unref.
4841 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4842 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4843 * objfiles.c: Include gdb_bfd.h.
4844 (free_objfile): Use gdb_bfd_unref.
4845 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4846 gdb_bfd.c.
4847 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4848 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4849 (macho_check_dsym): Likewise.
4850 * m32r-rom.c: Include gdb_bfd.h.
4851 (m32r_load): Use gdb_bfd_ref.
4852 (m32r_upload_command): Use gdb_bfd_ref.
4853 * jit.c: Include gdb_bfd.h.
4854 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4855 * gdb_bfd.h: New file.
4856 * gdb_bfd.c: New file.
4857 * gcore.c: Include gdb_bfd.h.
4858 (create_gcore_bfd): Use gdb_bfd_ref.
4859 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4860 (gcore_command): Use gdb_bfd_unref.
4861 * exec.c: Include gdb_bfd.h.
4862 (exec_close): Use gdb_bfd_unref.
4863 (exec_close_1): Use gdb_bfd_unref.
4864 (exec_file_attach): Use gdb_bfd_ref.
4865 * elfread.c: Include gdb_bfd.h.
4866 (build_id_verify): Use gdb_bfd_unref.
4867 * dsrec.c: Include gdb_bfd.h.
4868 (load_srec): Use gdb_bfd_ref.
4869 * corelow.c: Include gdb_bfd.h.
4870 (core_close): Use gdb_bfd_unref.
4871 (core_open): Use gdb_bfd_ref.
4872 * bfd-target.c: Include gdb_bfd.h.
4873 (target_bfd_xclose): Use gdb_bfd_unref.
4874 (target_bfd_reopen): Use gdb_bfd_ref.
4875 * Makefile.in (SFILES): Add gdb_bfd.c.
4876 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4877 (COMMON_OBS): Add gdb_bfd.o.
4878
4879 2012-07-18 Keith Seitz <keiths@redhat.com>
4880
4881 * breakpoint.c (find_condition_and_thread): Initialize
4882 TASK and REST.
4883 (create_breakpiont): find_condition_and_thread will now
4884 initialize COND_STRING, THREAD, and REST (and TASK).
4885 (addr_string_to_sals): Likewise.
4886
4887 2012-07-18 Pedro Alves <palves@redhat.com>
4888
4889 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4890 Pull the single step breakpoints out of the target.
4891
4892 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4893
4894 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4895 * stap-probe.c (compile_probe_arg): Likewise.
4896
4897 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4898
4899 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4900 (elf_compile_to_ax): Likewise.
4901 * infrun.c (insert_exception_resume_from_probe): Likewise.
4902 (check_exception_resume): Remove `objfile' variable.
4903 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4904 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4905 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4906 (compare_entries): Rename to...
4907 (compare_probes): ...this. Adjust function to work with
4908 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4909 respectively.
4910 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4911 `VEC (probe_p) *'.
4912 (print_ui_out_info): Adjust argument to be `struct probe *'.
4913 (info_probes_for_ops): Adjust internal computations to use
4914 `VEC (probe_p) *'.
4915 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4916 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4917 gen_info_probes_table_values>: Remove `objfile' argument.
4918 (struct probe) <objfile>: New field.
4919 (find_probe_by_pc): Remove `objfile' argument.
4920 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4921 (stap_get_probe_argument_count): Likewise.
4922 (stap_get_arg): Likewise.
4923 (stap_evaluate_probe_argument): Likewise.
4924 (stap_compile_to_ax): Likewise.
4925 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4926 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4927 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4928 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4929 sym_compile_to_ax>: Likewise.
4930
4931 2012-07-18 Terry Guo <terry.guo@arm.com>
4932
4933 PR 14329
4934 * defs.h (GDB_MI_MSG_WIDTH): New.
4935 * ser_base (ser_base_read_error_fd): New function.
4936 (do_ser_base_readchar): Poll error file descriptor as well as
4937 standard output.
4938 (generic_readchar): Refactor error handling.
4939
4940 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4941
4942 * NEWS: Create a new section for the next release branch.
4943 Rename the section of the current branch, now that it has
4944 been cut.
4945
4946 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4947
4948 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4949 * version.in: Bump version to 7.5.50.20120718-cvs.
4950
4951 2012-07-17 Keith Seitz <keiths@redhat.com>
4952
4953 * linespec.c (linespec_parse_line_offset): Make parameter
4954 const.
4955
4956 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4957
4958 PR 11914
4959 * f-valprint.c (info_common_command): New variable frame_id.
4960 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4961 * printcmd.c (print_variable_and_value): Extend function comment.
4962 Add comment for invalidated FRAME.
4963 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4964 FI form FRAME_ID after each print_frame_local_vars.
4965 (struct print_variable_and_value_data): Change frame to frame_id.
4966 (do_print_variable_and_value): New variable frame, initialize it from
4967 p->frame_id. Add comment for invalidated FRAME.
4968 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4969 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4970 for invalidated FRAME.
4971
4972 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4973 Pedro Alves <palves@redhat.com>
4974
4975 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4976 loop.
4977
4978 2012-07-16 Tom Tromey <tromey@redhat.com>
4979
4980 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4981
4982 2012-07-15 Doug Evans <dje@google.com>
4983
4984 * dwarf2read.c (stmt_list_hash): New struct.
4985 (type_unit_group): Embed "per_cu" member, remove pointer.
4986 New union member "t", move member "tus" into it, all uses updated.
4987 New member "hash", replaces member "line_offset, all uses updated.
4988 (quick_file_names): Replace member "offset" with "hash", all uses
4989 updated.
4990 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4991 (hash_file_name_entry, eq_file_name_entry): Call them.
4992 (hash_type_unit_group, eq_type_unit_group): Ditto.
4993 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4994 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4995 (dw2_get_file_names): Update.
4996 (create_type_unit_group): Replace "per_cu" arg with "cu".
4997 All callers updated. Fix "quick" (.gdb_index) handling.
4998 (get_type_unit_group): Replace "per_cu" arg with "cu".
4999 All callers updated.
5000 (build_type_unit_groups): Don't reset tu_stats.
5001
5002 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
5003 "tab_cur_size". Change member "tab" to be a htab_t.
5004 (create_filename_seen_cache): Update.
5005 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
5006 (filename_seen): Update.
5007
5008 2012-07-13 Doug Evans <dje@google.com>
5009
5010 * symtab.c (filename_seen): Update comment.
5011
5012 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5013 Doug Evans <dje@google.com>
5014
5015 * buildsym.c (end_symtab_1): Split it to ...
5016 (end_symtab_get_static_block): ... this ...
5017 (end_symtab_from_static_block): ... and this function.
5018 (end_symtab, end_expandable_symtab): Call them.
5019 * buildsym.h (end_symtab_get_static_block)
5020 (end_symtab_from_static_block): New declarations.
5021 * dwarf2read.c (process_full_comp_unit): New variable static_block.
5022 Set its valid CU ranges.
5023
5024 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5025
5026 * dwarf2loc.c (disassemble_dwarf_expression): Handle
5027 DW_OP_GNU_parameter_ref.
5028
5029 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5030
5031 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
5032 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
5033
5034 2012-07-13 Doug Evans <dje@google.com>
5035
5036 * symtab.c (output_source_filename): Delete unnecessary forward decl.
5037 (filename_seen_cache): New struct.
5038 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
5039 (create_filename_seen_cache): New function.
5040 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
5041 (filename_seen): Delete arg "first". New arg "cache". All callers
5042 updated.
5043 (output_source_filename_data): New struct.
5044 (output_source_filename): Delete arg "first". New arg "data".
5045 All callers updated.
5046 (sources_info): Delete local "first". New locals "data", "cleanups".
5047 Rewrite to use filename_seen_cache.
5048 (add_partial_filename_data): Delete member "first". New member
5049 "filename_seen_cache". All uses updated.
5050 (make_source_files_completion_list): Rewrite to use
5051 filename_seen_cache.
5052
5053 2012-07-12 Doug Evans <dje@google.com>
5054
5055 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
5056
5057 2012-07-10 Doug Evans <dje@google.com>
5058
5059 PR gdb/13498
5060 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
5061 all_type_unit_groups, type_unit_groups, tu_stats.
5062 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
5063 All uses updated. Add type_unit_group to union "s".
5064 (type_unit_group): New struct.
5065 (IS_TYPE_UNIT_GROUP): New macro.
5066 (abbrev_table): Delete unused member "section".
5067 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
5068 (dw2_get_cu): Assert not used with type_unit_group.
5069 (dw2_get_primary_cu): New function.
5070 (dw2_build_type_unit_groups_reader): New function.
5071 (dw2_build_type_unit_groups): New function.
5072 (dw2_get_file_names): Assert not called on type units.
5073 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
5074 Redo loop to iterate over type unit groups instead of type units.
5075 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
5076 (read_abbrev_offset): New function.
5077 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
5078 updated.
5079 (create_partial_symtab): New function.
5080 (process_psymtab_comp_unit_reader): Assert not used with type units.
5081 Call create_partial_symtab.
5082 (process_psymtab_type_unit): Delete.
5083 (hash_type_unit_group, eq_type_unit_group): New functions.
5084 (allocate_type_unit_groups_table): New function.
5085 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
5086 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
5087 (create_type_unit_group, get_type_unit_group): New functions.
5088 (tu_abbrev_offset): New struct.
5089 (sort_tu_by_abbrev_offset): New function.
5090 (add_type_unit_group_to_table): New function.
5091 (build_type_unit_groups): New function.
5092 (build_type_psymtabs_reader): New function.
5093 (build_type_psymtab_dependencies): New function.
5094 (build_type_psymtabs): Rewrite.
5095 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
5096 is seen in a type unit.
5097 (process_queue): Move symtab expansion debugging printfs here.
5098 Call process_full_type_unit for type units.
5099 (compute_symtab_includes): Assert not called for type units.
5100 (process_cu_includes): Don't call compute_symtab_includes for
5101 type units.
5102 (process_full_type_unit): New function.
5103 (process_imported_unit_die): Flag an error if called for type units.
5104 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
5105 updated. Assert not called for type units.
5106 (read_file_scope): Call dwarf2_start_symtab.
5107 (setup_type_unit_groups): New function.
5108 (read_type_unit_scope): Rewrite.
5109 (abbrev_table_read_table): Initialize abbrev_table->offset.
5110 (abbrev_table_free_cleanup): New function.
5111 (dwarf2_start_symtab): New function.
5112 (load_full_type_unit): Assert not called for type unit groups.
5113 * buildsym.c (finish_block_internal): New arg "expandable".
5114 All callers updated.
5115 (start_symtab): Move most contents to ...
5116 (restart_symtab): ... here. New function.
5117 (reset_symtab_globals): New function.
5118 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
5119 Call reset_symtab_globals.
5120 (end_symtab, end_expandable_symtab): New functions.
5121 (set_missing_symtab, augment_type_symtab): New functions.
5122 * buildsym.h (end_expandable_symtab): Declare.
5123 (augment_type_symtab, restart_symtab): Declare.
5124 * psympriv.h (struct partial_symtab): New member "anonymous".
5125 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
5126 anonymous psymtabs.
5127 (read_psymtabs_with_filename): Ditto.
5128 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5129 (expand_symtabs_matching_via_partial): Ditto.
5130 (dump_psymtab): Update.
5131 * dictionary.c (dict_add_pending): New function.
5132 * dictionary.h (dict_add_pending): Declare.
5133
5134 2012-07-09 Doug Evans <dje@google.com>
5135
5136 * buildsym.c (start_subfile): Remove unnecessary check for
5137 name == NULL.
5138
5139 * psymtab.c (allocate_psymtab): Use host_address_to_string.
5140
5141 * dwarf2read.c (load_full_type_unit): Simplify.
5142
5143 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5144 to struct signatured_type **. All uses updated.
5145
5146 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5147 All callers updated.
5148
5149 2012-07-09 Tom Tromey <tromey@redhat.com>
5150
5151 * c-exp.y (check_parameter_typelist): New function.
5152 (parameter_typelist): Call it.
5153 * eval.c (make_params): Handle '(void)' case.
5154 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5155 '(void)' case.
5156
5157 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5158
5159 * common/linux-ptrace.c: Include gdb_assert.h.
5160 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5161 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5162 stdint.h.
5163 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5164 functions.
5165 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5166 * linux-nat.c (linux_child_post_attach)
5167 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5168
5169 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5170
5171 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5172 nptl <2.7 bug workaround for core files.
5173
5174 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5175
5176 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5177 clearing.
5178 (save_siginfo): Remove.
5179 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5180 call.
5181 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5182 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5183 * linux-nat.h (struct lwp_info): Remove field siginfo.
5184
5185 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5186
5187 Code cleanup for the next patch.
5188 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5189 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5190 call for it.
5191 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5192 (ia64_linux_stopped_data_address):
5193 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5194 the return value.
5195 * linux-nat.h (linux_nat_get_siginfo): Likewise.
5196 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5197 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5198 call for it.
5199
5200 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5201
5202 PR 14321
5203 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5204 Increase buffer sizes to 2x we need, not just 2x of the previous size.
5205
5206 2012-07-06 Tom Tromey <tromey@redhat.com>
5207
5208 * c-exp.y (DOTDOTDOT): New token.
5209 (func_mod, exp): Use parameter_typelist.
5210 (parameter_typelist): New production.
5211 (tokentab3): Add "..." token.
5212 * eval.c (make_params): Handle varargs.
5213 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5214 varargs.
5215
5216 2012-07-06 Tom Tromey <tromey@redhat.com>
5217
5218 PR exp/9608:
5219 * c-exp.y (%union) <tvec>: Change type.
5220 (func_mod): Now uses <tvec> type.
5221 (exp): Update for tvec change.
5222 (direct_abs_decl): Push the typelist.
5223 (func_mod): Return a typelist.
5224 (nonempty_typelist): Update for tvec change.
5225 * gdbtypes.c (lookup_function_type_with_arguments): New function.
5226 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5227 * parse.c (pop_type_list): New function.
5228 (push_typelist): New function.
5229 (follow_types): Handle tp_function_with_arguments.
5230 * parser-defs.h (type_ptr): New typedef. Define a VEC.
5231 (enum type_pieces) <tp_function_with_arguments>: New constant.
5232 (union type_stack_elt) <typelist_val>: New field.
5233 (push_typelist): Declare.
5234
5235 2012-07-06 Tom Tromey <tromey@redhat.com>
5236
5237 * c-exp.y (%union) <type_stack>: New field.
5238 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5239 (ptr_operator_ts): New production.
5240 (ptype): Update.
5241 * parse.c (type_stack_reserve): New function.
5242 (check_type_stack_depth): Use it.
5243 (pop_type_stack, append_type_stack, push_type_stack)
5244 (get_type_stack, type_stack_cleanup): New functions.
5245 (follow_types): Handle tp_type_stack.
5246 (_initialize_parse): Simplify initialization.
5247 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5248 constant.
5249 (union type_stack_elt) <stack_val>: New field.
5250 (get_type_stack, append_type_stack, push_type_stack)
5251 (type_stack_cleanup): Declare.
5252
5253 2012-07-06 Tom Tromey <tromey@redhat.com>
5254
5255 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5256 Remove.
5257 (struct type_stack): New.
5258 * parse.c (type_stack, type_stack_size, type_stack_depth):
5259 Remove.
5260 (type_stack): New global.
5261 (parse_exp_in_context, check_type_stack_depth)
5262 (insert_into_type_stack, insert_type, push_type, push_type_int)
5263 (insert_type_address_space, pop_type, pop_type_int)
5264 (_initialize_parse): Update.
5265
5266 2012-07-06 Tom Tromey <tromey@redhat.com>
5267
5268 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5269 Remove %type.
5270
5271 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5272
5273 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5274
5275 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5276 Jan Kratochvil <jan.kratochvil@redhat.com>
5277
5278 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5279 alloca with xmalloc/xfree.
5280
5281 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5282
5283 * MAINTAINERS (Write After Approval): Add myself to the list.
5284
5285 2012-07-05 Doug Evans <dje@google.com>
5286
5287 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5288
5289 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5290
5291 * ax-gdb.c (cli/cli-utils.h): New include.
5292 (linespec.h): Ditto.
5293 (agent_eval_command_one): New function.
5294 (agent_command_1): Ditto.
5295 (agent_command): Call function agent_command_1.
5296 (agent_eval_command): Ditto.
5297 (_initialize_ax_gdb): Change help for "maint agent"
5298 and "maint agent-eval".
5299
5300 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5301
5302 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5303 * cli/cli-utils.c (check_for_argument): New function.
5304 * cli/cli-utils.h (check_for_argument): Ditto.
5305
5306 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5307
5308 * NEWS: Mention x32 ABI support.
5309
5310 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5311
5312 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5313 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5314
5315 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5316 and pc_regnum_from_eax to -1. Update SP regnum from
5317 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5318 needed.
5319
5320 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5321 pc_regnum_from_eax.
5322
5323 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5324
5325 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5326 * dwarf2expr.h: Include gdbtypes.h.
5327 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5328 these forward declarations.
5329 (cu_offset, sect_offset): Move these ...
5330 * gdbtypes.h: Remove include dwarf2expr.h.
5331 (cu_offset, sect_offset): ... here.
5332
5333 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5334
5335 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5336 (amd64_linux_sigtramp_code): This.
5337 (amd64_x32_linux_sigtramp_code): New.
5338 (LINUX_SIGTRAMP_LEN): Updated.
5339 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5340
5341 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5342
5343 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5344
5345 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5346
5347 * config.in: Regenerate.
5348 * configure: Regenerate.
5349 * configure.ac: Remove check for gnu/libc-version.h.
5350 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5351 gnu/libc-version.h.
5352 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5353 variables libc_version, libc_major and libc_minor. Replace sscanf by
5354 inferior_has_bug. Extend the comment.
5355
5356 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5357
5358 * linux-thread-db.c (inferior_has_bug): New function.
5359 (thread_db_find_new_threads_silently): Return boolean as checked by
5360 inferior_has_bug, describe it in the comments.
5361 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5362 earlier. Abort the initialization if it returned non-zero.
5363 (thread_db_new_objfile): Exclude debug files.
5364 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5365 if UNTIL_NO_NEW,
5366
5367 2012-07-02 Doug Evans <dje@google.com>
5368
5369 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5370 related to queue management.
5371
5372 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5373 instead of "debug dwarf2-die" in debugging printfs.
5374 (create_debug_info_hash_table_reader): Ditto.
5375 (create_debug_info_hash_table): Ditto.
5376 (init_dwo_file): Ditto.
5377 (init_cutu_and_read_dies): Add debugging printf.
5378 (init_cutu_and_read_dies_no_follow): Ditto.
5379 (process_psymtab_comp_unit_reader): Ditto.
5380
5381 2012-07-02 Stan Shebs <stan@codesourcery.com>
5382
5383 Add target-side support for dynamic printf.
5384 * NEWS: Mention the additional style.
5385 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5386 (struct bp_location): New field cmd_bytecode.
5387 * breakpoint.c: Include format.h.
5388 (disconnected_dprintf): New global.
5389 (parse_cmd_to_aexpr): New function.
5390 (build_target_command_list): New function.
5391 (insert_bp_location): Call it.
5392 (remove_breakpoints_pid): Skip dprintf breakpoints.
5393 (print_one_breakpoint_location): Ditto.
5394 (dprintf_style_agent): New global.
5395 (dprintf_style_enums): Add dprintf_style_agent.
5396 (update_dprintf_command_list): Add agent case.
5397 (agent_printf_command): New function.
5398 (_initialize_breakpoint): Add new commands.
5399 * common/ax.def (printf): New bytecode.
5400 * ax.h (ax_string): Declare.
5401 * ax-gdb.h (gen_printf): Declare.
5402 * ax-gdb.c: Include cli-utils.h, format.h.
5403 (gen_printf): New function.
5404 (maint_agent_print_command): New function.
5405 (_initialize_ax_gdb): Add maint agent-printf command.
5406 * ax-general.c (ax_string): New function.
5407 (ax_print): Add printf disassembly.
5408 * Makefile.in (SFILES): Add format.c
5409 (COMMON_OBS): Add format.o.
5410 * common/format.h: New file.
5411 * common/format.c: New file.
5412 * printcmd.c: Include format.h.
5413 (ui_printf): Call parse_format_string.
5414 * remote.c (remote_state): New field breakpoint_commands.
5415 (PACKET_BreakpointCommands): New enum.
5416 (remote_breakpoint_commands_feature): New function.
5417 (remote_protocol_features): Add new BreakpointCommands entry.
5418 (remote_can_run_breakpoint_commands): New function.
5419 (remote_add_target_side_commands): New function.
5420 (remote_insert_breakpoint): Call it.
5421 (remote_insert_hw_breakpoint): Ditto.
5422 (_initialize_remote): Add new packet configuration for
5423 target-side breakpoint commands.
5424 * target.h (struct target_ops): New field
5425 to_can_run_breakpoint_commands.
5426 (target_can_run_breakpoint_commands): New macro.
5427 * target.c (update_current_target): Handle
5428 to_can_run_breakpoint_commands.
5429
5430 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5431
5432 Execute -ix and -iex only after system and user gdbinit files.
5433 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5434 processing down after gdbinit files.
5435
5436 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5437
5438 Add fnmatch-gnu module.
5439 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5440 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5441 * gnulib/aclocal.m4: Regenerate.
5442 * gnulib/config.in: Regenerate.
5443 * gnulib/configure: Regenerate.
5444 * gnulib/import/dummy.c: Remove.
5445 * gnulib/import/Makefile.am: Regenerate.
5446 * gnulib/import/Makefile.in: Likewise.
5447 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5448 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5449 * gnulib/import/alloca.c: New file.
5450 * gnulib/import/alloca.in.h: Likewise.
5451 * gnulib/import/config.charset: Likewise.
5452 * gnulib/import/fnmatch.c: Likewise.
5453 * gnulib/import/fnmatch.in.h: Likewise.
5454 * gnulib/import/fnmatch_loop.c: Likewise.
5455 * gnulib/import/localcharset.c: Likewise.
5456 * gnulib/import/localcharset.h: Likewise.
5457 * gnulib/import/m4/alloca.m4: Likewise.
5458 * gnulib/import/m4/codeset.m4: Likewise.
5459 * gnulib/import/m4/configmake.m4: Likewise.
5460 * gnulib/import/m4/fcntl-o.m4: Likewise.
5461 * gnulib/import/m4/fnmatch.m4: Likewise.
5462 * gnulib/import/m4/glibc21.m4: Likewise.
5463 * gnulib/import/m4/localcharset.m4: Likewise.
5464 * gnulib/import/m4/locale-fr.m4: Likewise.
5465 * gnulib/import/m4/locale-ja.m4: Likewise.
5466 * gnulib/import/m4/locale-zh.m4: Likewise.
5467 * gnulib/import/m4/mbrtowc.m4: Likewise.
5468 * gnulib/import/m4/mbsinit.m4: Likewise.
5469 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5470 * gnulib/import/m4/mbstate_t.m4: Likewise.
5471 * gnulib/import/m4/stdbool.m4: Likewise.
5472 * gnulib/import/m4/wchar_h.m4: Likewise.
5473 * gnulib/import/m4/wctype_h.m4: Likewise.
5474 * gnulib/import/m4/wint_t.m4: Likewise.
5475 * gnulib/import/mbrtowc.c: Likewise.
5476 * gnulib/import/mbsinit.c: Likewise.
5477 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5478 * gnulib/import/mbsrtowcs-state.c: Likewise.
5479 * gnulib/import/mbsrtowcs.c: Likewise.
5480 * gnulib/import/ref-add.sin: Likewise.
5481 * gnulib/import/ref-del.sin: Likewise.
5482 * gnulib/import/stdbool.in.h: Likewise.
5483 * gnulib/import/streq.h: Likewise.
5484 * gnulib/import/strnlen1.c: Likewise.
5485 * gnulib/import/strnlen1.h: Likewise.
5486 * gnulib/import/verify.h: Likewise.
5487 * gnulib/import/wchar.in.h: Likewise.
5488 * gnulib/import/wctype.in.h: Likewise.
5489
5490 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5491
5492 Support shell wildcards for 'set auto-load safe-path'.
5493 * auto-load.c: Include fnmatch.h.
5494 (filename_is_in_dir): Rename to ...
5495 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5496 it. Update function comment. Rename dir_len to pattern_len. New
5497 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5498 messages. Use gdb_filename_fnmatch.
5499 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5500 pattern.
5501 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5502 * defs.h (gdb_filename_fnmatch): New declaration.
5503 * utils.c: Include fnmatch.h.
5504 (gdb_filename_fnmatch): New function.
5505
5506 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5507
5508 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5509 `-probe' and `-probe-stap' options.
5510
5511 2012-07-01 Yao Qi <yao@codesourcery.com>
5512
5513 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5514 always_inserted_off, and always_inserted_enums.
5515 Change always_inserted_mode's type to 'enum auto_boolean'.
5516 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5517 callers.
5518 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5519 of add_setshow_enum_cmd.
5520 * infrun.c: Remove can_use_displaced_stepping_auto,
5521 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5522 can_use_displaced_stepping_enum.
5523 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5524 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5525 callers.
5526 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5527 add_setshow_enum_cmd.
5528
5529 2012-06-30 Doug Evans <dje@google.com>
5530
5531 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5532 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5533 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5534
5535 2012-06-29 Doug Evans <dje@google.com>
5536
5537 * linespec.c: #include "stack.h".
5538 (decode_line_with_current_source): Moved here from symtab.c and
5539 renamed from decode_line_spec. All callers updated.
5540 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5541 renamed from decode_line_spec_1. All callers updated.
5542 * linespec.h (decode_line_with_current_source): Move declaration here
5543 from symtab.h and renamed from decode_line_spec.
5544 (decode_line_with_last_displayed): Move declaration here from symtab.h
5545 and renamed from decode_line_spec_1.
5546 * macrocmd.c: #include "linespec.h".
5547 * symtab.c: Remove #include "linespec.h".
5548
5549 2012-06-28 Doug Evans <dje@google.com>
5550
5551 * dwarf2read.c (get_cu_length): New function.
5552 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5553 (create_debug_types_hash_table): Ditto.
5554 (init_cutu_and_read_dies): Ditto.
5555 (init_cutu_and_read_dies_no_follow): Ditto.
5556
5557 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5558
5559 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5560 (struct abbrev_table): Define.
5561 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5562 abbrev_table.
5563 (init_cutu_and_read_dies): Update.
5564 (abbrev_table_alloc_abbrev): New function. Replaces
5565 dwarf_alloc_abbrev. All callers updated.
5566 (abbrev_table_add_abbrev): New function.
5567 (abbrev_table_lookup_abbrev): New function. Replaces
5568 dwarf2_lookup_abbrev. All callers updated.
5569 (abbrev_table_read_table): New function. Contents moved here from
5570 dwarf2_read_abbrevs.
5571 (dwarf2_read_abbrevs): Call it.
5572 (abbrev_table_free): New function.
5573 (dwarf2_free_abbrev_table): Call it.
5574
5575 2012-06-28 Stan Shebs <stan@codesourcery.com>
5576
5577 * osdata.c (info_osdata_command): Filter out "Title" columns
5578 from non-MI uses.
5579 * common/linux-osdata.c (struct osdata_type): Add title field.
5580 (osdata_table): Add titles to each entry.
5581 (linux_command_xfer_osdata): Add a column for title data.
5582
5583 2012-06-28 Stan Shebs <stan@codesourcery.com>
5584
5585 Make logging work for MI.
5586 * NEWS: Mention it.
5587 * interps.h (interp_set_logging_ftype): New typedef.
5588 (struct interp_procs): New field set_logging_proc.
5589 (current_interp_set_logging): Declare.
5590 * interps.c (current_interp_set_logging): New function.
5591 * cli/cli-logging.c: Include interps.h.
5592 (set_logging_redirect): Call current_interp_set_logging.
5593 (pop_output_files): Ditto.
5594 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5595 * mi/mi-console.h (mi_console_set_raw): Declare.
5596 * mi/mi-console.c (mi_console_set_raw): New function.
5597 * mi/mi-interp.c (saved_raw_stdout): New global.
5598 (mi_set_logging): New function.
5599 (_initialize_mi_interp): Add it to interp procs.
5600
5601 2012-06-28 Doug Evans <dje@google.com>
5602
5603 * symtab.c (lookup_symbol_aux_objfile): Use
5604 ALL_OBJFILE_PRIMARY_SYMTABS.
5605
5606 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5607
5608 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5609
5610 * common/buffer.c: Include inttypes.h and stdint.h.
5611 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5612
5613 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5614 Pedro Alves <palves@redhat.com>
5615
5616 * gdbthread.h (ALL_THREADS): New macro.
5617 (thread_list): Declare.
5618 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5619 going, but instead fall through to the stepping handling.
5620 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5621 the passed in signal. Adjust debug output.
5622 (resume_callback): Rename to ...
5623 (linux_nat_resume_callback): ... this. Pass the thread's last
5624 stop signal, if in "pass" state.
5625 (linux_nat_resume): Adjust to rename.
5626 (stop_wait_callback): New assertion. Don't respawn signals;
5627 instead let the LWP remain with SIGNALLED set.
5628 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5629 * remote.c (append_pending_thread_resumptions): New.
5630 (remote_vcont_resume): Call it.
5631 * target.h (target_resume): Extend comment.
5632
5633 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5634
5635 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5636
5637 2012-06-27 Doug Evans <dje@google.com>
5638
5639 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5640 Delete have_addr_base, unused. All uses updated.
5641 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5642 (dwarf2_get_pc_bounds): Add ranges_base.
5643 (dwarf2_record_block_ranges): Ditto.
5644
5645 2012-06-27 Tom Tromey <tromey@redhat.com>
5646
5647 PR macros/7961:
5648 * varobj.c (varobj_create): Update.
5649 (varobj_set_value): Update.
5650 * tracepoint.c (validate_actionline): Update.
5651 (encode_actions_1): Update.
5652 * parse.c (parse_exp_1): Add 'pc' argument.
5653 (parse_exp_in_context): Add 'pc' argument. Change how
5654 expression_context_pc is set.
5655 (parse_expression): Update.
5656 (parse_field_expression): Update.
5657 * expression.h (parse_exp_1): Update.
5658 * eval.c (parse_to_comma_and_eval): Update.
5659 * breakpoint.c (set_breakpoint_condition): Update.
5660 (update_watchpoint): Update.
5661 (init_breakpoint_sal): Update
5662 (find_condition_and_thread): Update.
5663 (watch_command_1): Update.
5664 (update_breakpoint_locations): Update.
5665 * ada-lang.c (ada_read_renaming_var_value): Update.
5666 (create_excep_cond_exprs): Update.
5667
5668 2012-06-27 Doug Evans <dje@google.com>
5669
5670 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5671 type units.
5672
5673 2012-06-26 Doug Evans <dje@google.com>
5674
5675 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5676 prototype.
5677 (error_check_comp_unit_head): New arg abbrev_section. All callers
5678 updated.
5679 (read_and_check_comp_unit_head): Ditto.
5680 (read_and_check_type_unit_head): Ditto.
5681
5682 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5683
5684 New attribute 'last' for gdb.Symtab_and_line.
5685 * NEWS (Python Scripting): Add entry about the new attribute.
5686 * python/py-symtab.c (salpy_get_last): New function which
5687 implements the get method for the 'last' attribute of
5688 gdb.Symtab_and_line.
5689 (sal_object_getset): Add entry for the 'last' attribute.
5690
5691 2012-06-26 Doug Evans <dje@google.com>
5692
5693 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5694 (dwo_sections): Add macinfo, macro.
5695 (dwarf2_locate_dwo_sections): Watch for macro sections.
5696 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5697 All callers updated. Handle DWO files.
5698
5699 * NEWS: Mention new options "set debug dwarf2-read" and
5700 "set debug symtab-create".
5701 * dwarf2read.c (dwarf2_read_debug): New static global.
5702 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5703 (process_queue): Ditto.
5704 (process_full_comp_unit): Ditto.
5705 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5706 * elfread.c (elf_symfile_read): Add debugging printf.
5707 * minsyms.c (install_minimal_symbols): Ditto.
5708 * psymtab.c (allocate_psymtab): Ditto.
5709 * symfile.c (allocate_symtab): Ditto.
5710 * symtab.c (symtab_create_debug): New global.
5711 (_initialize_symtab): Add new option "set debug symtab-create".
5712 * symtab.h (symtab_create_debug): Declare.
5713
5714 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5715 (lookup_dwo_type_unit): Ditto.
5716
5717 2012-06-26 Roland McGrath <roland@hack.frob.com>
5718 H.J. Lu <hongjiu.lu@intel.com>
5719
5720 * amd64-linux-nat.c: Include <sys/user.h>.
5721 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5722 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5723 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5724
5725 * configure.ac: Check if the fs_base and gs_base members of
5726 `struct user_regs_struct' exist.
5727 * config.in: Regenerated.
5728 * configure: Likewise.
5729
5730 2012-06-25 Michael Eager <eager@eagercon.com>
5731
5732 PR python/14291
5733 * python/python.c (gdbpy_write): Check for interrupted output.
5734
5735 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5736
5737 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5738 register as a stack alignment in ARM mode.
5739
5740 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5741
5742 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5743 * gnulib/config.in: Regenerate.
5744 * gnulib/configure: Likewise.
5745 * gnulib/import/m4/extensions.m4: Update it.
5746 * gnulib/import/m4/gnulib-common.m4: Likewise.
5747 * gnulib/import/m4/memmem.m4: Likewise.
5748 * gnulib/import/m4/mmap-anon.m4: Likewise.
5749 * gnulib/import/m4/multiarch.m4: Likewise.
5750 * gnulib/import/stdint.in.h: Likewise.
5751
5752 2012-06-24 Yao Qi <yao@codesourcery.com>
5753
5754 * corefile.c (write_memory_with_notification): New.
5755 * gdbcore.h: Declare write_memory_with_notification.
5756 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5757 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5758 * valops.c (value_assign): Likewise.
5759 * python/py-inferior.c (infpy_write_memory): Call
5760 'write_memory_with_notification'.
5761
5762 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5763
5764 * cc-with-index.sh: Use also -ex "set auto-load no".
5765
5766 2012-06-23 Doug Evans <dje@google.com>
5767
5768 PR 14125
5769 * NEWS: Document additions to .gdb_index.
5770 * dwarf2read.c: #include "gdb/gdb-index.h".
5771 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5772 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5773 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5774 (dwarf2_read_index): Recognize version 7.
5775 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5776 block_kind, domain): All callers updated.
5777 (dw2_find_symbol_file): Handle new index CU values.
5778 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5779 (add_index_entry): New args is_static, kind. All callers updated.
5780 (offset_type_compare, uniquify_cu_indices): New functions
5781 (symbol_kind): New function.
5782 (write_psymtabs_to_index): Remove duplicate CU values.
5783 (write_psymtabs_to_index): Write .gdb_index version 7.
5784
5785 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5786
5787 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5788 * configure: Regenerate.
5789
5790 2012-06-20 Yao Qi <yao@codesourcery.com>
5791
5792 * python/py-inferior.c: Update comments of infpy_read_memory
5793 and infpy_write_memory.
5794
5795 2012-06-19 Tom Tromey <tromey@redhat.com>
5796
5797 PR exp/9514:
5798 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5799 (push_type_address_space): Remove.
5800 * parse.c (insert_into_type_stack): New function.
5801 (insert_type): Likewise.
5802 (insert_type_address_space): Rename from push_type_address_space.
5803 Insert tp_space_identifier.
5804 * c-exp.y (ptr_operator): New production.
5805 (abs_decl): Use ptr_operator.
5806 (space_identifier): Call insert_type_address_space.
5807 (ptype): Don't use const_or_volatile_or_space_identifier.
5808 (const_or_volatile_noopt): Call insert_type.
5809 (conversion_type_id, conversion_declarator): New productions.
5810 (operator): Use conversion_type_id.
5811
5812 2012-06-18 Doug Evans <dje@google.com>
5813
5814 * symtab.h (minimal_symbol): New member created_by_gdb.
5815 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5816 created by gdb.
5817 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5818 (search_symbols): Call it instead of lookup_symbol.
5819 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5820
5821 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5822 Adjust address for DW_OP_GNU_addr_index.
5823 * dwarf2expr.h (dwarf_expr_context): Update comment.
5824 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5825 all callers updated. Handle TLS vars described with
5826 DW_OP_GNU_const_index.
5827 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5828 and DW_OP_GNU_const_index.
5829 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5830
5831 * block.c (find_block_in_blockvector): Make explicit the fact that we
5832 ignore GLOBAL_BLOCK.
5833
5834 2012-06-18 Tom Tromey <tromey@redhat.com>
5835
5836 * c-exp.y (operator): Remove trailing space after "delete" and
5837 "delete[]".
5838
5839 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5840 Jan Kratochvil <jan.kratochvil@redhat.com>
5841
5842 Switch i386 and derived targets to ON_STACK.
5843 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5844 (amd64_dicos_init_abi): Remove its installment.
5845 * dicos-tdep.c (dicos_init_abi): Remove the
5846 set_gdbarch_call_dummy_location call. Update the comment here.
5847 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5848 (i386_dicos_init_abi): Remove its installment.
5849 * i386-tdep.c (i386_push_dummy_code): New function.
5850 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5851 i386_push_dummy_code.
5852
5853 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5854
5855 Remove stale dummy frames.
5856 * breakpoint.c: Include dummy-frame.h.
5857 (longjmp_breakpoint_ops): New variable.
5858 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5859 bp_longjmp_call_dummy.
5860 (bpstat_what, bptype_string, print_one_breakpoint_location)
5861 (init_bp_location): Support bp_longjmp_call_dummy.
5862 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5863 (set_longjmp_breakpoint_for_call_dummy)
5864 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5865 functions.
5866 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5867 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5868 FIXME comment and extend the other comment for bp_call_dummy.
5869 (set_longjmp_breakpoint_for_call_dummy)
5870 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5871 * dummy-frame.c: Include gdbthread.h.
5872 (pop_dummy_frame_bpt): New function.
5873 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5874 (dummy_frame_discard): New function.
5875 (cleanup_dummy_frames): Update the comment about longjmps.
5876 * dummy-frame.h (dummy_frame_discard): New declaration.
5877 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5878 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5879 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5880 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5881 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5882 keep_going if IS_LONGJMP and there is no other reason to stop.
5883
5884 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5885
5886 * remote-sim.c (sim_command_completer): Initialize
5887 variable 'result'.
5888
5889 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5890
5891 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5892 * dwarf2loc.c (call_site_parameter_matches): Support
5893 CALL_SITE_PARAMETER_PARAM_OFFSET.
5894 (needs_dwarf_reg_entry_value): Push stub value.
5895 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5896 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5897 * gdbtypes.h (enum call_site_parameter_kind): New item
5898 CALL_SITE_PARAMETER_PARAM_OFFSET.
5899 (struct call_site.parameter.u): New field param_offset.
5900
5901 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5902
5903 Code cleanup: Generalize call_site.parameter key.
5904 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5905 variable dwarf_reg. New variable kind_u. Update parameters to
5906 push_dwarf_reg_entry_value.
5907 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5908 * dwarf2expr.h (enum call_site_parameter_kind)
5909 (union call_site_parameter_u): Forward declarations.
5910 (struct dwarf_expr_context_funcs): Update parameters and their
5911 description for push_dwarf_reg_entry_value.
5912 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5913 * dwarf2loc.c (call_site_parameter_matches): New function.
5914 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5915 description. Use call_site_parameter_matches.
5916 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5917 Update parameters and their description.
5918 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5919 New variable kind_u. Adjust the caller for updated parameters.
5920 (needs_dwarf_reg_entry_value): Update parameters.
5921 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5922 instead of attr. Update for the changed fields of struct
5923 call_site_parameter.
5924 * gdbtypes.h: Include dwarf2expr.h.
5925 (enum call_site_parameter_kind): New.
5926 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5927 fb_offset into new union u.
5928
5929 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5930
5931 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5932 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5933 for x32.
5934
5935 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5936
5937 * amd64-linux-nat.c (compat_x32_clock_t): New.
5938 (compat_x32_siginfo_t): Likewise.
5939 (compat_x32_siginfo_from_siginfo): Likewise.
5940 (siginfo_from_compat_x32_siginfo): Likewise.
5941 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5942 and siginfo_from_compat_x32_siginfo for x32.
5943
5944 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5945
5946 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5947
5948 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5949
5950 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5951 instead of gdbarch_ptr_bit.
5952 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5953 (amd64_supply_native_gregset): Likewise.
5954 (amd64_collect_native_gregset): Likewise.
5955 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5956 (amd64_supply_xsave): Likewise.
5957 (amd64_collect_fxsave): Likewise.
5958 (amd64_collect_xsave): Likewise.
5959
5960 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5961
5962 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5963 (amd64_linux_read_description): Check DS segment register for
5964 x32 process.
5965
5966 2012-06-15 Tom Tromey <tromey@redhat.com>
5967
5968 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5969 init_cutu_and_read_dies.
5970
5971 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5972
5973 * MAINTAINERS (Write After Approval): Add myself to the list.
5974
5975 2012-06-15 Tom Tromey <tromey@redhat.com>
5976
5977 * valops.c (value_find_oload_method_list): Now static.
5978 * value.h (value_find_oload_method_list): Don't declare.
5979
5980 2012-06-15 Tom Tromey <tromey@redhat.com>
5981
5982 * valops.c (find_overload_match): Use value_ind.
5983
5984 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5985
5986 * infrun.c (handle_inferior_event): Correct indentation.
5987
5988 2012-06-14 Doug Evans <dje@google.com>
5989
5990 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5991 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5992 All uses updated.
5993 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5994 updated. Handle DEBUG_LOC_START_LENGTH.
5995 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5996 (loclist_describe_location): Ditto.
5997
5998 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5999
6000 PR backtrace/13866
6001 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
6002 after hiding inline functions.
6003
6004 2012-06-13 Joel Brobecker <brobecker@adacore.com>
6005
6006 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
6007 _initialize_inf_ttrace.
6008
6009 2012-06-13 Joel Brobecker <brobecker@adacore.com>
6010
6011 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
6012 _initialize_hppa_hpux_nat.
6013
6014 2012-06-13 Joel Brobecker <brobecker@adacore.com>
6015
6016 * remote-sim.c (sim_command_completer): Change type of return
6017 value to "VEC (char_ptr) *". Adjust implementation accordingly.
6018
6019 2012-06-13 Mark Kettenis <kettenis@gnu.org>
6020 Jan Kratochvil <jan.kratochvil@redhat.com>
6021
6022 PR tdep/14222
6023 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
6024 stack on a 16-byte boundary.
6025
6026 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
6027
6028 * jit.c (finalize_symtab): Set function's return type to 'void' by
6029 default.
6030
6031 2012-06-13 Mark Kettenis <kettenis@gnu.org>
6032 H.J. Lu <hongjiu.lu@intel.com>
6033
6034 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
6035 Move bits common to both the classic LP64 and the new x32 ILP32
6036 ABI here.
6037 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
6038 (amd64_x32_linux_init_abi): New function.
6039 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
6040 subtype.
6041
6042 * i386-tdep.h (i386_pseudo_register_name): New prototype.
6043 * i386-tdep.c (i386_pseudo_register_name): Make public.
6044 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
6045 * amd64-tdep.c (amd64_dword_names): Add "eip".
6046 (amd64_x32_pseudo_register_type): New function
6047 (amd64_x32_init_abi): New function.
6048
6049 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6050
6051 PR build/14003
6052 * inferior.h (struct inferior_suspend_state): Comment out.
6053 (struct inferior): Comment out the field suspend.
6054 * infrun.c (struct infcall_suspend_state): Comment out the field
6055 inferior_suspend.
6056 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
6057 out its assignment.
6058
6059 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6060
6061 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
6062 * c-exp.y (classify_inner_name): Remove caller assumptions in the
6063 function comment. Return ERROR for unresolved cases. Implement
6064 returning proper NAME.
6065 (yylex): Accept also NAME from classify_inner_name.
6066 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
6067 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
6068 LOC_TYPEDEF type.
6069 * cp-support.h (cp_lookup_nested_type): Update its declaration.
6070
6071 2012-06-13 Tom Tromey <tromey@redhat.com>
6072
6073 * breakpoint.c (condition_completer): New function.
6074 (_initialize_breakpoint): Use it.
6075 * value.c (complete_internalvar): New function.
6076 * value.h (complete_internalvar): Declare.
6077
6078 2012-06-13 Tom Tromey <tromey@redhat.com>
6079
6080 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
6081 * breakpoint.c (catch_syscall_completer): Return a VEC.
6082 * cli/cli-cmds.c (complete_command): Update.
6083 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
6084 (complete_on_enum): Likewise.
6085 * command.h: Include gdb_vecs.h.
6086 (completer_ftype): Change return type.
6087 (complete_on_cmdlist, complete_on_enum): Likewise.
6088 * completer.c (noop_completer, filename_completer)
6089 (location_completer): Return a VEC.
6090 (add_struct_fields): Remove 'nextp' argument. Change 'output'
6091 to a VEC.
6092 (expression_completer, complete_line_internal, complete_line)
6093 (command_completer): Return a VEC.
6094 (gdb_completion_word_break_characters, line_completion_function):
6095 Update.
6096 * completer.h: Include gdb_vecs.h.
6097 (complete_line, noop_completer, filename_completer)
6098 (expression_completer, location_completer, command_completer):
6099 Update.
6100 * f-lang.c (f_word_break_characters): Return a VEC.
6101 * interps.c (interpreter_completer): Return a VEC.
6102 * language.h (struct language_defn)
6103 <la_make_symbol_completion_list>: Return a VEC.
6104 * python/py-cmd.c (cmdpy_completer): Return a VEC.
6105 * symtab.c (free_completion_list): Take a VEC.
6106 (return_val_size, return_val_index): Remove.
6107 (return_val): Now a VEC.
6108 (completion_list_add_name): Update.
6109 (default_make_symbol_completion_list_break_on)
6110 (default_make_symbol_completion_list, make_symbol_completion_list)
6111 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
6112 Return a VEC.
6113 (add_filename_to_list): Update.
6114 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
6115 <list>: Now a VEC.
6116 (maybe_add_partial_symtab_filename): Update.
6117 (make_source_files_completion_list): Return a VEC.
6118 * symtab.h (default_make_symbol_completion_list_break_on)
6119 (default_make_symbol_completion_list, make_symbol_completion_list)
6120 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
6121 (make_source_files_completion_list): Update.
6122
6123 2012-06-13 Tom Tromey <tromey@redhat.com>
6124
6125 * breakpoint.c (add_catch_command): Use completer_ftype.
6126 * breakpoint.h: Include command.h.
6127 (add_catch_command): Use completer_ftype.
6128 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6129 * cli/cli-decode.h (struct cmd_list_element) <completer>:
6130 Use completer_ftype.
6131 * command.h (completer_ftype): New typedef.
6132 (set_cmd_completer): Use it.
6133 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6134 completer_ftype.
6135
6136 2012-06-13 Pedro Alves <palves@redhat.com>
6137
6138 Partial revert of previous change.
6139
6140 * serial.c (scb_base): New global.
6141 (serial_for_fd): New.
6142 (serial_open, serial_fdopen_ops): Link new serial in open serials
6143 chain.
6144 (do_serial_close): Unlink serial from the open serials chain.
6145
6146 2012-06-12 Pedro Alves <palves@redhat.com>
6147
6148 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6149 threads here.
6150 (prepare_for_detach): No longer context switch here in non-stop
6151 mode.
6152 (fetch_inferior_event): Ditto.
6153 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6154 to the event thread before removing breakpoints. Switch to the
6155 event thread before inserting breakpoints and resuming.
6156 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6157 event thread before resuming.
6158 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6159 Switch to the event thread before removing breakpoints.
6160
6161 2012-06-12 Eli Zaretskii <eliz@gnu.org>
6162
6163 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6164 special characters correctly for the Windows shells. See
6165 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6166 report.
6167 [!__MINGW32__]: Remove extra double quote character from special
6168 characters.
6169
6170 2012-06-11 Stan Shebs <stan@codesourcery.com>
6171
6172 * ui-out.h: Remove #if 0 declarations.
6173 * ui-out.c: Remove #if 0 functions.
6174
6175 2012-06-11 Pedro Alves <palves@redhat.com>
6176
6177 * ser-base.c (run_async_handler_and_reschedule): New.
6178 (fd_event, push_event): Use it.
6179 * serial.c (serial_open, serial_fdopen_ops): Set the initial
6180 reference count to 1.
6181 (do_serial_close): Set the bufp field to NULL. Use serial_unref
6182 instead of xfree.
6183 (serial_is_open, serial_ref, serial_unref): New.
6184 * serial.h (serial_open): Adjust comment.
6185 (serial_is_open): Declare.
6186 (serial_close): Adjust comment.
6187 (serial_ref, serial_unref) Declare.
6188 (struct serial): New field 'refcnt'.
6189
6190 2012-06-11 Pedro Alves <palves@redhat.com>
6191
6192 Remove #if 0'd "connect" command, and unnecessary associated
6193 refcounting and serial reuse bits.
6194
6195 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6196 * serial.c (last_serial_opened): Delete.
6197 (scb_base): Delete.
6198 (serial_open): Adjust.
6199 (serial_for_fd): Delete.
6200 (serial_fdopen_ops, do_serial_close): Adjust.
6201 (serial_fdopen_ops): Adjust.
6202
6203 2012-06-11 Pedro Alves <palves@redhat.com>
6204
6205 * serial.c (do_serial_close): Remove early return when SCB is
6206 null.
6207
6208 2012-06-11 Tom Tromey <tromey@redhat.com>
6209
6210 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6211
6212 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6213
6214 Fix regression by the "ambiguous linespec" series.
6215 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
6216 get_last_displayed_symtab and get_last_displayed_line and depending
6217 on CURSAL.
6218
6219 2012-06-11 Tom Tromey <tromey@redhat.com>
6220
6221 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6222 (dw2_find_symbol_file): Use it.
6223
6224 2012-06-11 Michael Eager <eager@eagercon.com>
6225
6226 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6227 * mips-linux-tdep.h (mips_signals): New
6228
6229 2012-06-11 Tom Tromey <tromey@redhat.com>
6230
6231 * infrun.c (handle_inferior_event)
6232 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6233 breakpoint.
6234 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6235 exception logic in all cases. Update comments.
6236 (insert_longjmp_resume_breakpoint): Set the exception resume
6237 breakpoint.
6238
6239 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
6240
6241 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6242
6243 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
6244
6245 * valarith.c (binop_types_user_defined_p): Fix a typo.
6246
6247 2012-06-08 Yao Qi <yao@codesourcery.com>
6248 Chung-Lin Tang <cltang@codesourcery.com>
6249
6250 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6251 * arch-utils.h: Declare.
6252 * gdbarch.sh: Add return_in_first_hidden_param_p.
6253 * gdbarch.c, gdbarch.h: Regenerated.
6254 * infcall.c (call_function_by_hand): Call
6255 gdbarch_return_in_first_hidden_param_p instead of
6256 language_pass_by_reference.
6257
6258 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6259 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6260 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6261 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6262 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6263 `cplus_return_struct_by_reference'.
6264 (tic6x_return_value): Handle language cplusplus.
6265 (tic6x_return_in_first_hidden_param_p): New.
6266 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6267
6268 2012-06-07 Doug Evans <dje@google.com>
6269
6270 * dwarf2read.c (dwarf2_cu): Add comment.
6271
6272 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6273
6274 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6275 variable.
6276 (mips_eabi_push_dummy_call): Likewise.
6277 (mips_n32n64_push_dummy_call): Likewise.
6278 (mips_o32_push_dummy_call): Likewise.
6279 (mips_o64_push_dummy_call): Likewise.
6280
6281 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6282
6283 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6284
6285 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6286
6287 * mips-tdep.c (mips_pseudo_register_type): Use
6288 mips_float_register_p.
6289
6290 2012-06-06 Pedro Alves <palves@redhat.com>
6291
6292 * infrun.c (handle_inferior_event): Remove calls to
6293 reinit_frame_cache that follow a context_switch call.
6294
6295 2012-06-06 Pedro Alves <palves@redhat.com>
6296
6297 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6298 context_switch and remove stale comment.
6299
6300 2012-06-06 Pedro Alves <palves@redhat.com>
6301
6302 * infrun.c (struct execution_control_state): Remove
6303 `new_thread_event' field.
6304 (handle_inferior_event): Simplify new threads handling; don't
6305 resume the inferior if we find a new thread.
6306
6307 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6308
6309 * NEWS: Document the deprecation of SH's 'regs' command.
6310 * inferior.h (all_registers_info): Add function declaration.
6311 * sh-tdep.c (sh_show_regs): Remove variable.
6312 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6313 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6314 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6315 (sh_show_regs_command): Remove functions.
6316 (sh_gdbarch_init): Don't set sh_show_regs.
6317 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6318 'info all-registers'.
6319 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6320 (sh64_show_regs): Remove functions.
6321 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6322
6323 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6324
6325 * configure.ac: Move development=true below AC_INIT.
6326 * configure: Regenerate.
6327
6328 2012-06-05 Stan Shebs <stan@codesourcery.com>
6329
6330 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6331 gdb_stdout.
6332
6333 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6334
6335 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6336 argument as ssize_t.
6337 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6338 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6339 * target.c (target_read_stack, target_write_memory)
6340 (target_write_raw_memory): Likewise.
6341 * target.h (target_read_stack, target_write_memory)
6342 (target_write_raw_memory): Likewise.
6343
6344 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6345
6346 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6347 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6348 * target.c (target_read_memory): Change LEN to ssize_t.
6349 * target.h (target_read_memory): Change LEN to ssize_t.
6350
6351 2012-06-05 Pedro Alves <palves@redhat.com>
6352
6353 PR backtrace/13866
6354
6355 * breakpoint.c (until_break_command): Only fetch the selected
6356 frame after decode_line_1.
6357
6358 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6359
6360 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6361 event breakpoint at _start, __start or main if a program
6362 interpreter is not found.
6363
6364 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6365
6366 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6367 Add declaration.
6368 * windows-tdep.c: #include "objfiles.h".
6369 (windows_iterate_over_objfiles_in_search_order): New function.
6370 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6371 iterate_over_objfiles_in_search_order gdbarch method to
6372 windows_iterate_over_objfiles_in_search_order.
6373 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6374
6375 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6376
6377 * gdbarch.sh: Add generation of
6378 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6379 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6380 (iterate_over_objfiles_in_search_order): New gdbarch method.
6381 * gdbarch.h, gdbarch.c: Regenerate.
6382 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6383 Add declaration.
6384 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6385 New function.
6386 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6387 out of lookup_symbol_aux_symtabs.
6388 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6389 call to lookup_symbol_aux_objfile.
6390 (struct global_sym_lookup_data): New type.
6391 (lookup_symbol_global_iterator_cb): New function.
6392 (lookup_symbol_global): Search for symbol using
6393 gdbarch_iterate_over_objfiles_in_search_order and
6394 lookup_symbol_global_iterator_cb.
6395 * findvar.c (struct minsym_lookup_data): New type.
6396 (minsym_lookup_iterator_cb): New function.
6397 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6398 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6399 and minsym_lookup_iterator_cb.
6400
6401 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6402
6403 Revert the following patch:
6404 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6405 try locating the symbol in the symbol's own objfile first, before
6406 extending the search to all objfiles.
6407 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6408 out of lookup_symbol_aux_symtabs.
6409 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6410 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6411 Do not search EXCLUDE_OBJFILE.
6412 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6413 (lookup_symbol_global): Search for matches in the block's objfile
6414 first, before searching all other objfiles.
6415
6416 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6417
6418 * breakpoint.c (find_condition_and_thread): Stop parsing
6419 as soon as the first invalid keyword is found.
6420
6421 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6422
6423 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6424
6425 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6426
6427 * config/djgpp/djcheck.sh: Add copyright header.
6428
6429 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6430
6431 * copyright.py (update_files, main): Fix path to update-copyright
6432 script.
6433
6434 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6435
6436 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6437 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6438 for which a reminder to update by hand is printed.
6439
6440 2012-06-04 Doug Evans <dje@google.com>
6441
6442 * buildsym.c (make_blockvector): Add comment.
6443
6444 2012-06-04 Pedro Alves <palves@redhat.com>
6445
6446 * arch-utils.c (default_gdb_signal_from_target): Delete.
6447 * arch-utils.h (default_gdb_signal_from_target): Delete.
6448 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6449 gdbarch_gdb_signal_from_target_p.
6450 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6451 predicate).
6452 * gdbarch.h: Regenerate.
6453 * gdbarch.c: Regenerate.
6454
6455 2012-06-04 Pedro Alves <palves@redhat.com>
6456
6457 * gdbarch.sh (gdb_signal_from_target): Mention that the
6458 implementation of the method must be host independent.
6459 * gdbarch.h: Regenerate.
6460
6461 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6462
6463 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6464 parameters.
6465 (target_read_memory_bfd): New function.
6466 (symbol_file_add_from_memory): Use it.
6467
6468 2012-06-03 Doug Evans <dje@google.com>
6469
6470 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6471 of primary symtab.
6472 (basic_lookup_transparent_type): Ditto.
6473
6474 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6475 (ALL_PRIMARY_SYMTABS): Use it.
6476 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6477 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6478 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6479 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6480 (basic_lookup_transparent_type): Ditto.
6481
6482 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6483
6484 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6485 it to optimize resolution of demangled name.
6486
6487 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6488
6489 * configure.ac (development): Define new variable.
6490 Call AC_CHECK_LIB for mcheck if $development.
6491 (ERROR_ON_WARNING): Enable it by default only if $development.
6492 * config.in: Regenerate.
6493 * configure: Regenerate.
6494
6495 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6496
6497 * target.c (target_read_memory): Make LEN argument as size_t.
6498 * target.h (target_read_memory): Likewise.
6499
6500 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6501
6502 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6503
6504 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6505
6506 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6507 BookE interface for PowerPC server processors if not available
6508 in the Linux Kernel.
6509
6510 2012-05-31 Keith Seitz <keiths@redhat.com>
6511
6512 * linespec.c (decode_objc): Add cleanup to free
6513 INFO.FILE_SYMTABS.
6514 (find_linespec_symbols): Add cleanup to free CLASSES.
6515 * symfile.c (find_separate_debug_file_by_debuglink): Add
6516 cleanup to free DEBUGLINK.
6517 * ui-out.c (clear_header_list): No need to check if
6518 HEADER_NEXT.COLHDR is NULL.
6519 Free HEADER_NEXT.COL_NAME.
6520
6521 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6522
6523 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6524 warning.
6525
6526 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6527
6528 * configure.host (gdb_host_cpu): Handle tilegx*.
6529 (gdb_host): Handle tilegx-*-linux*.
6530 * tilegx-linux-nat.c: New file.
6531 * config/tilegx/linux.mh: New file.
6532
6533 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6534
6535 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6536 tilegx-linux-tdep.o.
6537 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6538 tilegx-linux-tdep.c.
6539 * configure.tgt: Handle tilegx-*-linux*.
6540 * tilegx-tdep.h: New file.
6541 * tilegx-tdep.c: New file.
6542 * tilegx-linux-tdep.c: New file.
6543 * regformats/reg-tilegx.dat: New file.
6544
6545 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6546
6547 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6548 accounting of hw watchpoints on ppc.
6549
6550 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6551
6552 * source.c (openp): Expand tilde in path entries.
6553
6554 2012-05-29 Doug Evans <dje@google.com>
6555
6556 * buildsym.c (block_compar): Fix comment.
6557 (end_symtab): Fix and clarify some comments.
6558
6559 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6560 cleanup_undefined_types.
6561 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6562 All callers updated.
6563
6564 2012-05-29 Tom Tromey <tromey@redhat.com>
6565
6566 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6567 fails.
6568 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6569 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6570 fails.
6571 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6572 fails.
6573
6574 2012-05-29 Tristan Gingold <gingold@adacore.com>
6575
6576 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6577 (struct darwin_info): ... New struct.
6578 (solib_darwin_pspace_data): New variable.
6579 (darwin_pspace_data_cleanup): New function.
6580 (get_darwin_info): Likewise.
6581 (darwin_dyld_version_ok, darwin_load_image_infos)
6582 (darwin_solib_get_all_image_info_addr_at_init)
6583 (darwin_solib_read_all_image_info_addr): Add info argument.
6584 Adjust code.
6585 (darwin_current_sos): Use per pspace structure.
6586 (darwin_solib_create_inferior_hook): Likewise.
6587 (darwin_clear_solib): Likewise.
6588 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6589
6590 2012-05-28 Pedro Alves <palves@redhat.com>
6591
6592 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6593 block that uses them. Clear ecss before handling each event.
6594
6595 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6596
6597 * solib-svr4.c (svr4_current_sos): New comment on
6598 svr4_current_sos_via_xfer_libraries fall back.
6599
6600 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6601
6602 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6603 it as a fallback for TYPE_IS_OPAQUE.
6604 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6605 symbols for lookup_symbol.
6606
6607 2012-05-24 John Steele Scott <toojays@toojays.net>
6608
6609 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6610 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6611 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6612 (check_producer): ... this new function, which also checks for ICC
6613 and caches the result.
6614 (producer_is_icc): New function.
6615 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6616 producer was ICC.
6617
6618 2012-05-24 Pedro Alves <palves@redhat.com>
6619
6620 PR gdb/7205
6621
6622 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6623 (default_gdb_signal_to_target): ... this. Add comment.
6624 (default_gdb_signal_from_host): Rename to ...
6625 (default_gdb_signal_from_target): ... this. Add comment.
6626 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6627 (default_gdb_signal_to_target): ... this.
6628 (default_gdb_signal_from_host): Rename to ...
6629 (default_gdb_signal_from_target): ... this.
6630 * corelow.c (core_open): Adjust to naming change. Replace comment.
6631 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6632 (gdb_signal_from_target): ... this. Adjust to
6633 default_gdb_signal_from_host naming change. Extend comment.
6634 (gdb_signal_to_host): Rename to ...
6635 (gdb_signal_to_target): ... this. Adjust to
6636 default_gdb_signal_to_host naming change.
6637 * gdbarch.h, gdbarch.c: Renegerate.
6638
6639 2012-05-24 Pedro Alves <palves@redhat.com>
6640
6641 PR gdb/7205
6642
6643 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6644
6645 2012-05-24 Pedro Alves <palves@redhat.com>
6646
6647 PR gdb/7205
6648
6649 Replace target_signal with gdb_signal throughout.
6650
6651 2012-05-24 Pedro Alves <palves@redhat.com>
6652
6653 PR tui/14159
6654
6655 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6656 string, instead of reusing the va_list argument.
6657
6658 2012-05-24 Tom Tromey <tromey@redhat.com>
6659
6660 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6661 Remove.
6662
6663 2012-05-23 Doug Evans <dje@google.com>
6664
6665 * symtab.c (search_symbols): Formatting fixes.
6666 (print_symbol_info): Formatting fixes.
6667
6668 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6669 int64_t change to leb128 API.
6670 (read_encoded_value, decode_frame_entry_1): Ditto.
6671 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6672 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6673 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6674 (execute_stack_op): Ditto.
6675 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6676 (safe_read_uleb128, safe_read_sleb128): Ditto.
6677 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6678 (dwarf2_compile_expr_to_ax): Ditto.
6679 (locexpr_describe_location_piece): Ditto.
6680 (disassemble_dwarf_expression): Ditto.
6681 (locexpr_describe_location_1): Ditto.
6682
6683 2012-05-23 Stan Shebs <stan@codesourcery.com>
6684 Kwok Cheung Yeung <kcy@codesourcery.com>
6685
6686 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6687 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6688 (mi-cmd-info.o): New rule.
6689 * osdata.h (info_osdata_command): New declaration.
6690 * osdata.c (info_osdata_command): Change to non-static.
6691 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6692 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6693 * mi/mi-cmd-info.c: New file.
6694
6695 2012-05-23 Doug Evans <dje@google.com>
6696
6697 * symtab.c (search_symbols): Pass NULL for file_matcher to
6698 expand_symtabs_matching if there are no files to match.
6699
6700 * gdbtypes.c (lookup_typename): Simplify.
6701
6702 2012-05-23 Pedro Alves <palves@redhat.com>
6703
6704 * arch-utils.h (default_target_signal_to_host): Delete.
6705 * arch-utils.c (default_target_signal_to_host): Delete.
6706 * gdbarch.sh (target_signal_to_host): Remove.
6707 * gdbarch.h, gdbarch.c: Regenerate.
6708
6709 2012-05-22 Doug Evans <dje@google.com>
6710
6711 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6712 "const gdb_byte *".
6713 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6714 (execute_cfa_program): Update to match API of leb128 functions.
6715 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6716 "const gdb_byte *".
6717 (read_unsigned_leb128, read_signed_leb128): Delete.
6718 (read_initial_length): Change type of buf argument to
6719 "const gdb_byte *".
6720 (read_encoded_value): Update to match API of leb128 functions.
6721 (decode_frame_entry): Change result to "const gdb_byte *", and
6722 similarly for "start" parameter.
6723 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6724 (dwarf2_build_frame_info): Change local frame_ptr to
6725 "const gdb_byte *".
6726 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6727 read_uleb128, read_sleb128. All callers updated.
6728 (safe_skip_leb128): New function.
6729 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6730 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6731 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6732 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6733 read_uleb128, read_sleb128.
6734 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6735 (execute_stack_op): Update to match API of leb128 functions.
6736 * dwarf2expr.h: #include "leb128.h".
6737 (read_uleb128, read_sleb128): Delete.
6738 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6739 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6740 * dwarf2loc.c (debug_loc_kind): New enum.
6741 (decode_debug_loc_addresses): New function.
6742 (decode_debug_loc_dwo_addresses): New function.
6743 (dwarf2_find_location_expression): Rewrite.
6744 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6745 (locexpr_describe_location_piece): Ditto.
6746 (disassemble_dwarf_expression): Ditto.
6747 (locexpr_describe_location_1): Ditto.
6748 (loclist_describe_location): Rewrite.
6749 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6750 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6751 (dwarf2_section_buffer_overflow_complaint): Renamed from
6752 dwarf2_macros_too_long_complaint. All callers updated.
6753 (skip_leb128): Delete.
6754 (init_cu_die_reader): Initialize reader->buffer_end.
6755 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6756 (skip_form_bytes): New arg buffer_end. All callers updated.
6757 Replace call to skip_leb128 with gdb_skip_leb128.
6758 (skip_unknown_opcode): New arg mac_end. All callers updated.
6759 (fill_in_loclist_baton): Initialize baton->from_dwo.
6760
6761 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6762
6763 * mips-linux-nat.c (mips_linux_read_description): Use a more
6764 verbose error message.
6765
6766 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6767
6768 * NEWS: Add MIPS/Linux DSP support.
6769 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6770 (SIGCONTEXT_DSPCTL): New macro.
6771 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6772 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6773 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6774 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6775 (N64_SIGCONTEXT_HI3): Likewise.
6776 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6777 (N64_SIGCONTEXT_LO3): Likewise.
6778 (N64_SIGCONTEXT_DSPCTL): Likewise.
6779 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6780 (mips_linux_o32_sigframe_init): Handle DSP registers.
6781 (mips_linux_n32n64_sigframe_init): Likewise.
6782
6783 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6784
6785 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6786 call to abort.
6787
6788 2012-05-22 Pedro Alves <palves@redhat.com>
6789
6790 * target.h (store_waitstatus): Move declaration ...
6791 * inf-child.h (store_waitstatus): ... here.
6792 * target.c: Move inclusion of gdb_wait.h, and ...
6793 (store_waitstatus): ... this ...
6794 * inf-child.c: ... here.
6795 * linux-nat.c: Include inf-child.h.
6796 * rs6000-nat.c: Include inf-child.h.
6797 * spu-linux-nat.c: Include inf-child.h.
6798
6799 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6800
6801 * tracepoint.c (start_tracing): Add missing i18n markup.
6802 (stop_tracing, set_trace_user): Ditto.
6803 (set_trace_notes, set_trace_stop_notes): Ditto.
6804
6805 2012-05-21 Tom Tromey <tromey@redhat.com>
6806
6807 PR c++/7173:
6808 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6809 types.
6810 * value.h (value_cast_pointers): Update.
6811 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6812 (value_cast): Update.
6813 (update_search_result): New function.
6814 (do_search_struct_field): New, from search_struct_field. Check
6815 for ambiguous results.
6816 (search_struct_field): Rewrite.
6817 * infcall.c (value_arg_coerce): Update.
6818 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6819 value_cast_pointers.
6820 * ada-lang.c (ada_convert_actual): Update.
6821
6822 2012-05-21 Tom Tromey <tromey@redhat.com>
6823
6824 * macroexp.c (macro_stringify): Terminate the string.
6825
6826 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6829 Describe it.
6830 * auto-load.c (auto_load_expand_dir_vars): New function.
6831 (auto_load_safe_path_vec_update): Use it, remove the
6832 substitute_path_component call thanks to it.
6833 (auto_load_objfile_script): Remove the debug_file_directory processing.
6834 Use auto_load_expand_dir_vars, remove the substitute_path_component
6835 call thanks to it.
6836 * configure: Regenerate.
6837 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6838 path. Escape $ also for $debugdir.
6839 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6840 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6841
6842 2012-05-20 Doug Evans <dje@google.com>
6843
6844 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6845 before use. Check for symtab->includes == NULL before scanning it.
6846
6847 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6848
6849 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6850
6851 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6852
6853 * NEWS: Add microMIPS support and "set mips compression",
6854 "show mips compression" commands.
6855 * mips-tdep.h (mips_isa): New enum.
6856 (gdbarch_tdep): Add mips_isa.
6857 (mips_pc_is_mips16): Update prototype.
6858 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6859 * mips-tdep.c (mips_compression_mips16): New variable.
6860 (mips_compression_micromips): Likewise.
6861 (mips_compression_strings): Likewise.
6862 (mips_compression_string): Likewise.
6863 (is_mips16_isa, is_micromips_isa): New functions.
6864 (is_mips16_addr): Rename to...
6865 (is_compact_addr): ... this.
6866 (unmake_mips16_addr): Likewise to...
6867 (unmake_compact_addr): ... this.
6868 (make_mips16_addr): Likewise to...
6869 (make_compact_addr): ... this.
6870 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6871 functions.
6872 (mips_elf_make_msymbol_special): Handle microMIPS code.
6873 (msymbol_is_special): Rename to...
6874 (msymbol_is_mips16): ... this.
6875 (mips_make_symbol_special, mips_pc_is_mips16): Update
6876 accordingly.
6877 (msymbol_is_mips, msymbol_is_micromips): New functions.
6878 (mips16_to_32_reg): Rename to...
6879 (mips_reg3_to_reg): ... this.
6880 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6881 (mips_pc_isa): Likewise.
6882 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6883 code.
6884 (mips_fetch_instruction): Pass return status instead of printing
6885 an error message if requested. Handle microMIPS code. Bail out
6886 on an invalid ISA.
6887 (micromips_op): New macro.
6888 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6889 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6890 (b6s4_op, b7s3_reg): Likewise.
6891 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6892 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6893 (mips_insn_size): New function.
6894 (mips32_next_pc): Update mips_fetch_instruction call.
6895 (micromips_relative_offset7): New function.
6896 (micromips_relative_offset10): Likewise.
6897 (micromips_relative_offset16): Likewise.
6898 (micromips_pc_insn_size): Likewise.
6899 (micromips_bc1_pc): Likewise.
6900 (micromips_next_pc): Likewise.
6901 (unpack_mips16): Update mips_fetch_instruction call.
6902 (extended_mips16_next_pc): Update according to change to
6903 mips16_to_32_reg.
6904 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6905 code.
6906 (mips16_scan_prologue): Update mips_fetch_instruction call.
6907 Update according to change to mips16_to_32_reg.
6908 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6909 (mips_insn16_frame_base_sniffer): Likewise.
6910 (micromips_decode_imm9): New function.
6911 (micromips_scan_prologue): Likewise.
6912 (mips_micro_frame_cache): Likewise.
6913 (mips_micro_frame_this_id): Likewise.
6914 (mips_micro_frame_prev_register): Likewise.
6915 (mips_micro_frame_sniffer): Likewise.
6916 (mips_micro_frame_unwind): New variable.
6917 (mips_micro_frame_base_address): New function.
6918 (mips_micro_frame_base): New variable.
6919 (mips_micro_frame_base_sniffer): New function.
6920 (mips32_scan_prologue): Update mips_fetch_instruction call.
6921 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6922 rather than for MIPS16.
6923 (mips_insn32_frame_base_sniffer): Likewise.
6924 (mips_addr_bits_remove): Handle microMIPS code.
6925 (deal_with_atomic_sequence): Rename to...
6926 (mips_deal_with_atomic_sequence): ... this. Update the type
6927 of the variable used to hold an instruction. Remove the ISA bit
6928 check. Update mips_fetch_instruction call.
6929 (micromips_deal_with_atomic_sequence): New function.
6930 (deal_with_atomic_sequence): Likewise.
6931 (mips_about_to_return): Handle microMIPS code. Update
6932 mips_fetch_instruction call.
6933 (heuristic_proc_start): Check for the standard MIPS ISA rather
6934 than for MIPS16. Update mips_pc_is_mips16 and
6935 mips_fetch_instruction calls. Handle microMIPS code.
6936 (mips_push_dummy_code): Handle microMIPS code.
6937 (mips_eabi_push_dummy_call): Likewise.
6938 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6939 (mips_o64_push_dummy_call): Handle microMIPS code.
6940 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6941 (is_delayed): Remove function.
6942 (mips_single_step_through_delay): Replace the call to is_delayed
6943 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6944 Handle microMIPS code.
6945 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6946 microMIPS code.
6947 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6948 call.
6949 (micromips_in_function_epilogue_p): New function.
6950 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6951 call.
6952 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6953 Handle microMIPS.
6954 (gdb_print_insn_mips): Likewise.
6955 (mips_breakpoint_from_pc): Likewise.
6956 (mips_remote_breakpoint_from_pc): New function.
6957 (mips32_instruction_has_delay_slot): Simplify making use of the
6958 updated mips_fetch_instruction interface.
6959 (micromips_instruction_has_delay_slot): New function.
6960 (mips16_instruction_has_delay_slot): Simplify making use of the
6961 updated mips_fetch_instruction interface.
6962 (mips_adjust_breakpoint_address): Check for the standard MIPS
6963 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6964 calls. Handle microMIPS code.
6965 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6966 (mips_skip_trampoline_code): Handle microMIPS code.
6967 (global_mips_compression): New function.
6968 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6969 file flags. Register the microMIPS remote breakpoint handler
6970 and heuristic frame unwinder.
6971 (show_mips_compression): New function.
6972 (_initialize_mips_tdep): Add the "set mips compression" and
6973 "show mips compression" commands.
6974
6975 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6976
6977 * ada-lang.c:
6978 * ada-tasks.c:
6979 * ada-varobj.c:
6980 * amd64-darwin-tdep.c:
6981 * arm-symbian-tdep.c:
6982 * arm-tdep.c:
6983 * avr-tdep.c:
6984 * ax-gdb.c:
6985 * bfin-linux-tdep.c:
6986 * breakpoint.c:
6987 * c-valprint.c:
6988 * cli/cli-cmds.c:
6989 * coffread.c:
6990 * cp-support.c:
6991 * cris-tdep.c:
6992 * dwarf2-frame-tailcall.c:
6993 * dwarf2-frame.c:
6994 * dwarf2expr.c:
6995 * dwarf2loc.c:
6996 * dwarf2read.c:
6997 * elfread.c:
6998 * eval.c:
6999 * expprint.c:
7000 * f-valprint.c:
7001 * frv-tdep.c:
7002 * h8300-tdep.c:
7003 * hppa-hpux-tdep.c:
7004 * hppa-tdep.c:
7005 * hppanbsd-tdep.c:
7006 * i386-nto-tdep.c:
7007 * i386-tdep.c:
7008 * i387-tdep.c:
7009 * ia64-tdep.c:
7010 * jit.c:
7011 * linespec.c:
7012 * linux-tdep.c:
7013 * lm32-tdep.c:
7014 * m2-valprint.c:
7015 * m32c-tdep.c:
7016 * m32r-rom.c:
7017 * m32r-tdep.c:
7018 * m68k-tdep.c:
7019 * m68klinux-tdep.c:
7020 * mi/mi-main.c:
7021 * microblaze-tdep.c:
7022 * mips-linux-tdep.c:
7023 * mips-tdep.c:
7024 * mn10300-tdep.c:
7025 * p-valprint.c:
7026 * parse.c:
7027 * ppc-linux-tdep.c:
7028 * ppc-sysv-tdep.c:
7029 * printcmd.c:
7030 * python/py-finishbreakpoint.c:
7031 * python/py-inferior.c:
7032 * python/py-infthread.c:
7033 * python/py-type.c:
7034 * python/python.c:
7035 * remote-fileio.c:
7036 * remote-m32r-sdi.c:
7037 * remote-mips.c:
7038 * reverse.c:
7039 * rl78-tdep.c:
7040 * rs6000-aix-tdep.c:
7041 * rs6000-tdep.c:
7042 * s390-tdep.c:
7043 * score-tdep.c:
7044 * sh64-tdep.c:
7045 * skip.c:
7046 * solib-darwin.c:
7047 * solib-dsbt.c:
7048 * solib-frv.c:
7049 * sparc-tdep.c:
7050 * spu-multiarch.c:
7051 * spu-tdep.c:
7052 * stack.c:
7053 * symfile.c:
7054 * symtab.c:
7055 * tic6x-tdep.c:
7056 * tracepoint.c:
7057 * v850-tdep.c:
7058 * valarith.c:
7059 * valprint.c:
7060 * value.c:
7061 * xcoffread.c:
7062 * xtensa-tdep.c:
7063 * ada-lang.c:
7064 * ada-tasks.c:
7065 * ada-varobj.c:
7066 * amd64-darwin-tdep.c:
7067 * arm-symbian-tdep.c:
7068 * arm-tdep.c: Delete unused variables.
7069
7070 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7071
7072 Rename $ddir to $datadir.
7073 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
7074 * auto-load.c (auto_load_safe_path_vec_update)
7075 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
7076 * configure: Regenerate.
7077 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
7078 Likewise. Remove the 'use $ddir' help string.
7079
7080 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7081
7082 * auto-load.c (show_auto_load_safe_path): Accept any combination of
7083 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
7084
7085 2012-05-18 Tom Tromey <tromey@redhat.com>
7086
7087 PR exp/13907:
7088 * valprint.h (struct value_print_options) <symbol_print>: New
7089 field.
7090 * valprint.c (user_print_options): Add default for symbol_print.
7091 (show_symbol_print): New function.
7092 (generic_val_print): Respect symbol_print.
7093 (_initialize_valprint): Add "print symbol" setting.
7094 * f-valprint.c (f_val_print): Respect symbol_print.
7095 * c-valprint.c (c_val_print): Respect symbol_print.
7096 * NEWS: Update.
7097 * printcmd.c (print_address_symbolic): Return int. Ignore some
7098 zero-size symbols.
7099 (print_address_demangle): Return int.
7100 * defs.h: (print_address_symbolic): Return int.
7101 * value.h (print_address_demangle): Return int.
7102
7103 2012-05-18 Tom Tromey <tromey@redhat.com>
7104
7105 * valprint.c (val_print_string): Don't print leading space.
7106 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
7107 print space before string or vtbl.
7108 * m2-valprint.c (print_unpacked_pointer): Optionally print space
7109 before string.
7110 * jv-valprint.c (java_value_print): Print space before string.
7111 * go-valprint.c (print_go_string): Print space before string.
7112 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
7113 space before string.
7114 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
7115 space before string or vtbl.
7116 * auxv.c (fprint_target_auxv): Print space after address.
7117
7118 2012-05-18 Tom Tromey <tromey@redhat.com>
7119
7120 * printcmd.c (print_address_demangle): Remove special case for 0.
7121
7122 2012-05-18 Tom Tromey <tromey@redhat.com>
7123
7124 * printcmd.c (print_address_demangle): Add 'opts' argument.
7125 * p-valprint.c (pascal_val_print): Update.
7126 * jv-valprint.c (java_val_print): Update.
7127 * value.h: Update.
7128 * valprint.c (generic_val_print): Update.
7129 (print_function_pointer_address): Add 'options' argument. Remove
7130 'addressprint' argument. Update.
7131 * m2-valprint.c (print_unpacked_pointer): Update.
7132 * gnu-v3-abi.c (print_one_vtable): Update.
7133 (gnuv3_print_method_ptr): Update.
7134 * f-valprint.c (f_val_print): Update.
7135 * cp-valprint.c (cp_print_value_fields): Update.
7136 * valprint.h (print_function_pointer_address): Update.
7137 * c-valprint.c (c_val_print): Update.
7138
7139 2012-05-18 Tom Tromey <tromey@redhat.com>
7140
7141 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7142 directly corresponding to the found psymtab.
7143 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7144 (dw2_find_pc_sect_symtab): Use it.
7145 * block.h (blockvector_contains_pc): Declare.
7146 * block.c (find_block_in_blockvector): New function.
7147 (blockvector_for_pc_sect): Use it.
7148 (blockvector_contains_pc): New function.
7149
7150 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7151
7152 * mips-tdep.h (mips_write_pc): New prototype.
7153 * mips-tdep.c (mips_write_pc): Make external, add description.
7154 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7155 add description.
7156
7157 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7158
7159 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7160 mips_regnum->pc.
7161 (mips_unwind_pc, mips_write_pc): Likewise.
7162 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7163 gdbarch_read_pc.
7164
7165 2012-05-17 Joel Brobecker <brobecker@adacore.com>
7166
7167 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7168 proc_warn, proc_error, proc_get_status, proc_flags,
7169 proc_why, proc_what, proc_nsysarg, proc_sysargs,
7170 proc_set_run_on_last_close, proc_unset_run_on_last_close,
7171 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7172 proc_stop_process, proc_wait_for_stop, proc_run_process,
7173 proc_set_traced_signals, proc_set_traced_faults,
7174 proc_set_traced_sysentry, proc_set_traced_sysexit,
7175 proc_set_held_signals, proc_get_held_signals,
7176 proc_get_traced_signals, proc_get_traced_faults,
7177 proc_get_traced_sysentry, proc_get_traced_sysexit,
7178 proc_clear_current_fault, proc_set_current_signal,
7179 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7180 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7181 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7182 proc_get_current_thread, proc_get_current_thread,
7183 proc_get_current_thread, proc_update_threads,
7184 proc_update_threads, proc_update_threads, proc_update_threads,
7185 proc_iterate_over_threads, procfs_find_new_threads,
7186 procfs_pid_to_str): Make static. Remove advance declaration.
7187 (proc_cursig): Make static. Conditionalized defintion on
7188 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7189 (proc_syscall, proc_set_kill_on_last_close,
7190 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7191 proc_get_pending_signals, proc_get_signal_actions,
7192 proc_trace_signal, proc_ignore_signal): Delete.
7193
7194 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7195
7196 * coffread.c (cs_section_address): Passing proper argument for
7197 `bfd_get_section_vma'.
7198 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7199 `bfd_get_section_flags'.
7200 * remote.c (remote_trace_set_readonly_regions): Likewise, for
7201 `bfd_get_section_vma'.
7202
7203 2012-05-16 Tom Tromey <tromey@redhat.com>
7204
7205 PR macros/13205:
7206 * macrotab.h: (macro_define_special): Declare.
7207 (enum macro_special_kind): New.
7208 (struct macro_definition) <argc, replacement>: Update comments.
7209 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7210 (macro_define_object_internal): New function.
7211 (macro_define_object): Use it.
7212 (macro_define_special): New function.
7213 (fixup_definition): New function.
7214 (macro_lookup_definition, foreach_macro_in_scope)
7215 (foreach_macro): Use fixup_definition.
7216 * macroexp.h (macro_stringify): Declare.
7217 * macroexp.c (free_buffer_return_text): New function.
7218 (stringify): Constify "arg".
7219 (macro_stringify): New function.
7220 * dwarf2read.c (macro_start_file): Call macro_define_special.
7221
7222 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
7223 Maciej W. Rozycki <macro@mips.com>
7224
7225 * breakpoint.h (bp_location): Add related_address member.
7226 * inferior.h (get_return_value): Take a pointer to struct value
7227 instead of struct type for the function requested.
7228 * value.h (using_struct_return): Likewise.
7229 * gdbarch.sh (return_value): Take a pointer to struct value
7230 instead of struct type for the function requested.
7231 * breakpoint.c (set_breakpoint_location_function): Initialize
7232 related_address for bp_gnu_ifunc_resolver breakpoints.
7233 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7234 requested function's address to gdbarch_return_value.
7235 * eval.c (evaluate_subexp_standard): Pass the requested
7236 function's address to using_struct_return.
7237 * infcall.c (call_function_by_hand): Pass the requested
7238 function's address to using_struct_return and
7239 gdbarch_return_value.
7240 * infcmd.c (get_return_value): Take a pointer to struct value
7241 instead of struct type for the function requested.
7242 (print_return_value): Update accordingly.
7243 (finish_command_continuation): Likewise.
7244 * stack.c (return_command): Pass the requested function's
7245 address to using_struct_return and gdbarch_return_value.
7246 * value.c (using_struct_return): Take a pointer to struct value
7247 instead of struct type for the function requested. Pass the
7248 requested function's address to gdbarch_return_value.
7249 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7250 New function_value member, replacing function_type.
7251 (bpfinishpy_dealloc): Update accordingly.
7252 (bpfinishpy_pre_stop_hook): Likewise.
7253 (bpfinishpy_init): Likewise. Record the requested function's
7254 address.
7255 * mips-tdep.c (mips_fval_reg): New enum.
7256 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7257 words put in GP registers.
7258 (mips_o64_push_dummy_call): Update a comment.
7259 (mips_o32_return_value): Take a pointer to struct value instead
7260 of struct type for the function requested and use it to check if
7261 using the MIPS16 calling convention. Return the designated
7262 general purpose registers for floating-point values returned in
7263 MIPS16 mode.
7264 (mips_o64_return_value): Likewise.
7265 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7266 (ppc_sysv_abi_broken_return_value): Likewise.
7267 (ppc64_sysv_abi_return_value): Likewise.
7268 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7269 value instead of struct type for the function requested.
7270 * amd64-tdep.c (amd64_return_value): Likewise.
7271 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7272 * arm-tdep.c (arm_return_value): Likewise.
7273 * avr-tdep.c (avr_return_value): Likewise.
7274 * bfin-tdep.c (bfin_return_value): Likewise.
7275 * cris-tdep.c (cris_return_value): Likewise.
7276 * frv-tdep.c (frv_return_value): Likewise.
7277 * h8300-tdep.c (h8300_return_value): Likewise.
7278 (h8300h_return_value): Likewise.
7279 * hppa-tdep.c (hppa32_return_value): Likewise.
7280 (hppa64_return_value): Likewise.
7281 * i386-tdep.c (i386_return_value): Likewise.
7282 * ia64-tdep.c (ia64_return_value): Likewise.
7283 * iq2000-tdep.c (iq2000_return_value): Likewise.
7284 * lm32-tdep.c (lm32_return_value): Likewise.
7285 * m32c-tdep.c (m32c_return_value): Likewise.
7286 * m32r-tdep.c (m32r_return_value): Likewise.
7287 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7288 * m68k-tdep.c (m68k_return_value): Likewise.
7289 (m68k_svr4_return_value): Likewise.
7290 * m88k-tdep.c (m88k_return_value): Likewise.
7291 * mep-tdep.c (mep_return_value): Likewise.
7292 * microblaze-tdep.c (microblaze_return_value): Likewise.
7293 * mn10300-tdep.c (mn10300_return_value): Likewise.
7294 * moxie-tdep.c (moxie_return_value): Likewise.
7295 * mt-tdep.c (mt_return_value): Likewise.
7296 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7297 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7298 (ppc_sysv_abi_broken_return_value): Likewise.
7299 (ppc64_sysv_abi_return_value): Likewise.
7300 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7301 * rl78-tdep.c (rl78_return_value): Likewise.
7302 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7303 * rx-tdep.c (rx_return_value): Likewise.
7304 * s390-tdep.c (s390_return_value): Likewise.
7305 * score-tdep.c (score_return_value): Likewise.
7306 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7307 (sh_return_value_fpu): Likewise.
7308 * sh64-tdep.c (sh64_return_value): Likewise.
7309 * sparc-tdep.c (sparc32_return_value): Likewise.
7310 * sparc64-tdep.c (sparc64_return_value): Likewise.
7311 * spu-tdep.c (spu_return_value): Likewise.
7312 * tic6x-tdep.c (tic6x_return_value): Likewise.
7313 * v850-tdep.c (v850_return_value): Likewise.
7314 * vax-tdep.c (vax_return_value): Likewise.
7315 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7316 * xtensa-tdep.c (xtensa_return_value): Likewise.
7317 * gdbarch.c: Regenerate.
7318 * gdbarch.h: Regenerate.
7319
7320 2012-05-15 Tom Tromey <tromey@redhat.com>
7321
7322 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7323
7324 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7325
7326 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7327 of command in two error message.
7328
7329 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7330
7331 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7332
7333 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7334
7335 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7336
7337 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7338
7339 * NEWS (show auto-load scripts-directory): Add forgotten command.
7340
7341 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7342
7343 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7344 parameters.
7345
7346 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7347
7348 * amd64-tdep.c: Include features/i386/x32.c and
7349 features/i386/x32-avx.c.
7350 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7351 initialize_tdesc_x32_avx.
7352
7353 2012-05-14 Stan Shebs <stan@codesourcery.com>
7354
7355 Add dynamic printf.
7356 * breakpoint.h (enum bptype): New type bp_dprintf.
7357 (struct breakpoint): New field extra_string.
7358 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7359 (create_breakpoint): Add extra_string arg.
7360 * breakpoint.c (dprintf_breakpoint_ops): New.
7361 (is_breakpoint): Add bp_dprintf.
7362 (bpstat_what): Add dprintf case.
7363 (bptype_string): Ditto.
7364 (print_one_breakpoint_location): Ditto.
7365 (init_bp_location): Ditto.
7366 (bkpt_print_mention): Ditto.
7367 (dprintf_style_enums): New array.
7368 (dprintf_style): New global.
7369 (dprintf_function): New global.
7370 (dprintf_channel): New global.
7371 (update_dprintf_command_list): New function.
7372 (update_dprintf_commands): New function.
7373 (init_breakpoint_sal): Add extra_string argument, handle it.
7374 (create_breakpoint_sal): Add extra_string argument.
7375 (create_breakpoints_sal): Add extra_string argument, update callers.
7376 (find_condition_and_thread): Add extra argument.
7377 (create_breakpoint): Add extra_string argument, record it.
7378 (dprintf_command): New function.
7379 (break_command_1): Add arg to create_breakpoint call.
7380 (handle_gnu_v3_exceptions): Ditto.
7381 (trace_command): Ditto.
7382 (ftrace_command): Ditto.
7383 (strace_command): Ditto.
7384 (bkpt_print_mention): Add dprintf case.
7385 (create_breakpoint_sal_default): Add extra_string argument.
7386 (_initialize_breakpoint): Add new commands.
7387 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7388 * python/py-breakpoint.c (bppy_init): Ditto.
7389 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7390
7391 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7392
7393 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7394
7395 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7396
7397 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7398 unsigned long long.
7399
7400 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7401
7402 Add a new function gdb.find_pc_line to the Python API.
7403 * NEWS (Python Scripting): Add entry about the new function.
7404 * python/python.c (gdbpy_find_pc_line): New function which
7405 implements gdb.find_pc_line.
7406 (GdbMethods): Add entry for the new function.
7407
7408 2012-05-12 Pedro Alves <palves@redhat.com>
7409
7410 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7411 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7412
7413 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7414
7415 * inferior.c: Include completer.h
7416 (initialize_inferiors): Set completer of add-inferior to
7417 filename_completer.
7418
7419 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7420
7421 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7422 gdbarch_ptr_bit for x32 core dump.
7423
7424 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7425
7426 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7427 and features/i386/x32-avx-linux.c.
7428
7429 2012-05-11 Stan Shebs <stan@codesourcery.com>
7430 Kwok Cheung Yeung <kcy@codesourcery.com>
7431
7432 * NEWS: Describe new info os commands.
7433 * common/linux-osdata.c (PID_T, TIME_T): Define.
7434 (MAX_PID_T_STRLEN): New.
7435 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7436 MAX_PID_T_STRLEN.
7437 (command_from_pid): Add comment. Change to use PID_T.
7438 (commandline_from_pid): Change to use PID_T.
7439 (user_from_pid): Add comment.
7440 (get_process_owner): Add comment. Change to use PID_T and
7441 MAX_PID_T_STRLEN.
7442 (get_number_of_cpu_cores): Add comment.
7443 (get_cores_used_by_process): Add comment. Change to use PID_T and
7444 MAX_PID_T_STRLEN.
7445 (linux_xfer_osdata_processes): Change to use PID_T and
7446 MAX_PID_T_STRLEN.
7447 (compare_processes): New function.
7448 (linux_xfer_osdata_processgroups): New function.
7449 (linux_xfer_osdata_threads): Change to use PID_T.
7450 (linux_xfer_osdata_fds): New function.
7451 (format_socket_state, print_sockets): New functions.
7452 (union socket_addr): New union.
7453 (linux_xfer_osdata_isockets): New function.
7454 (time_from_time_t, group_from_gid): New functions.
7455 (linux_xfer_osdata_shm): New function.
7456 (linux_xfer_osdata_sem): New function.
7457 (linux_xfer_osdata_msg): New function.
7458 (linux_xfer_osdata_modules): New function.
7459 (osdata_table): Add new entries.
7460 * common/buffer.c (buffer_xml_printf): Add support for long and
7461 long long format specifiers.
7462
7463 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7464
7465 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7466 (tdesc_x32_avx_linux): Likewise.
7467
7468 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7469
7470 Implement multi-component --with-auto-load-dir.
7471 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7472 entries.
7473 (--with-auto-load-safe-path): Update the default value description.
7474 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7475 New.
7476 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7477 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7478 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7479 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7480 "set auto-load scripts-directory".
7481 * config.in: Regenerate.
7482 * configure: Regenerate.
7483 * configure.ac (--with-auto-load-dir): New configure option.
7484 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7485
7486 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7487
7488 Provide $ddir substitution for --with-auto-load-safe-path.
7489 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7490 entries.
7491 * auto-load.c: Include observer.h.
7492 (auto_load_safe_path_vec_update): Call substitute_path_component for
7493 each component. New variable ddir_subst.
7494 (auto_load_gdb_datadir_changed): New function.
7495 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7496 AUTO_LOAD_SAFE_PATH. New comment.
7497 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7498 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7499 * config.in: Regenerate.
7500 * configure: Regenerate.
7501 * configure.ac (--auto-load-safe-path): Rename
7502 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7503 GDB_DATADIR/auto-load.
7504 * defs.h (substitute_path_component): New declaration.
7505 * top.c: Include observer.h.
7506 (set_gdb_datadir): New function.
7507 (init_main): Install it for "set data-directory".
7508 * utils.c (substitute_path_component): New function.
7509
7510 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7511
7512 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7513 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7514 DEBUG_FILE_DIRECTORY. Handle multiple components of
7515 DEBUG_FILE_DIRECTORY.
7516
7517 2012-05-10 Tom Tromey <tromey@redhat.com>
7518
7519 * dwarf2read.c (recursively_write_psymbols): New function.
7520 (write_psymtabs_to_index): Use it.
7521
7522 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7523 field.
7524 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7525 (load_partial_comp_unit): Update.
7526 (queue_comp_unit): Add argument 'pretend_language'.
7527 (process_queue): Update.
7528 (psymtab_to_symtab_1): Skip dependencies that have a user.
7529 (load_partial_comp_unit_reader): Give meaning to the 'data'
7530 argument.
7531 (load_full_comp_unit): Add 'pretend_language' argument.
7532 (process_full_comp_unit): Add 'pretend_language' argument. Set
7533 language on CU.
7534 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7535 Update.
7536 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7537 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7538 Update.
7539 (prepare_one_comp_unit): Add 'pretend_language' argument.
7540
7541 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7542 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7543 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7544 (dw2_do_instantiate_symtab): Check whether symtab was read in
7545 before queueing.
7546 (dw2_instantiate_symtab): Add assertion. Call
7547 process_cu_includes.
7548 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7549 (partial_symtab_p): New typedef.
7550 (set_partial_user): New function.
7551 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7552 (scan_partial_symbols): Add imported CU to imported_symtabs.
7553 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7554 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7555 (get_symtab, recursively_compute_inclusions)
7556 (compute_symtab_includes, process_cu_includes)
7557 (process_imported_unit_die): New functions.
7558 (process_die) <DW_TAG_imported_unit>: New case.
7559 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7560
7561 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7562 comment.
7563 (struct partial_die_info) <locdesc>: Remove.
7564 <d>: New field.
7565 (process_psymtab_comp_unit): Add 'read_partial' argument.
7566 Update.
7567 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7568 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7569 (add_partial_symbol): Update.
7570 (process_die): Handle DW_TAG_partial_unit.
7571 (read_file_scope): Update comment.
7572 (load_partial_dies): Handle DW_TAG_imported_unit.
7573 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7574 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7575
7576 2012-05-10 Tom Tromey <tromey@redhat.com>
7577
7578 * cc-with-dwz.sh: New file.
7579
7580 2012-05-10 Tom Tromey <tromey@redhat.com>
7581
7582 * symtab.h (struct symtab) <includes, user>: New fields.
7583 * block.h (struct block_iterator) <d, idx, which>: New fields.
7584 * block.c (initialize_block_iterator, find_iterator_symtab)
7585 (block_iterator_step, block_iter_name_step)
7586 (block_iter_match_step): New functions.
7587 (block_iterator_first, block_iterator_next)
7588 (block_iter_name_first, block_iter_name_next)
7589 (block_iter_match_first, block_iter_match_next): Rewrite.
7590 (get_block_symtab): New function.
7591
7592 2012-05-10 Tom Tromey <tromey@redhat.com>
7593
7594 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7595 set_block_symtab.
7596 * jit.c (finalize_symtab): Use allocate_global_block,
7597 set_block_symtab.
7598 * buildsym.c (finish_block_internal): New function, from old
7599 finish_block.
7600 (finish_block): Rewrite.
7601 (end_symtab): Use finish_block_internal, set_block_symtab.
7602 * block.h (struct global_block): New.
7603 (allocate_global_block, set_block_symtab): Declare.
7604 * block.c (allocate_global_block, set_block_symtab): New
7605 functions.
7606
7607 2012-05-10 Tom Tromey <tromey@redhat.com>
7608
7609 * psymtab.c (partial_map_expand_apply): Add assertion.
7610 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7611 (psymtab_to_symtab): Find unshared psymtab.
7612 (dump_psymtab): Print including psymtabs.
7613 (recursively_search_psymtabs): New function.
7614 (expand_symtabs_matching_via_partial): Use it.
7615 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7616 fields.
7617 (enum psymtab_search_status): New.
7618
7619 2012-05-10 Tom Tromey <tromey@redhat.com>
7620
7621 * tracepoint.c (scope_info): Update.
7622 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7623 (find_pc_sect_symtab, search_symbols)
7624 (default_make_symbol_completion_list_break_on)
7625 (make_file_symbol_completion_list): Update.
7626 * symmisc.c (dump_symtab_1): Update.
7627 * stack.c (print_frame_args, iterate_over_block_locals)
7628 (print_frame_labels, iterate_over_block_arg_vars): Update.
7629 * python/py-block.c (block_object) <dict>: Remove.
7630 <block>: New field.
7631 <iter>: Change type.
7632 (blpy_iter): Update.
7633 (blpy_block_syms_iternext): Update.
7634 * psymtab.c (map_block): Use block iterators.
7635 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7636 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7637 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7638 * infrun.c (check_exception_resume): Update.
7639 * cp-support.c (make_symbol_overload_list_block): Update.
7640 * coffread.c (patch_opaque_types): Update.
7641 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7642 * block.h (struct block_iterator): New.
7643 (block_iterator_first, block_iterator_next, block_iter_name_first)
7644 (block_iter_name_next, block_iter_match_first)
7645 (block_iter_match_next): Declare.
7646 (ALL_BLOCK_SYMBOLS): Redefine.
7647 * block.c (block_iterator_first, block_iterator_next)
7648 (block_iter_name_first, block_iter_name_next)
7649 (block_iter_match_first, block_iter_match_next): New functions.
7650 * ada-lang.c (ada_add_block_symbols)
7651 (ada_make_symbol_completion_list): Use block iterator.
7652
7653 2012-05-10 Tom Tromey <tromey@redhat.com>
7654
7655 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7656 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7657 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7658 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7659 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7660 Update.
7661
7662 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7663
7664 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7665 print-file-var-lib2.c, print-file-var-main.c and
7666 print-file-var.exp (located in gdb/testsuite/gdb.base).
7667
7668 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7669
7670 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7671 try locating the symbol in the symbol's own objfile first, before
7672 extending the search to all objfiles.
7673 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7674 out of lookup_symbol_aux_symtabs.
7675 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7676 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7677 Do not search EXCLUDE_OBJFILE.
7678 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7679 (lookup_symbol_global): Search for matches in the block's objfile
7680 first, before searching all other objfiles.
7681
7682 2012-05-10 Tristan Gingold <gingold@adacore.com>
7683
7684 * printcmd.c (set_command): Add pre/post inc/dec.
7685
7686 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7687
7688 * gdb.1: Document -ex option.
7689
7690 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7691
7692 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7693 * inferior.h (AT_SYMBOL): Delete.
7694
7695 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7696
7697 * mips-tdep.c (mips_push_dummy_code): New function.
7698 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7699 ON_STACK and install mips_push_dummy_code as our gdbarch
7700 push_dummy_code routine.
7701
7702 2012-05-09 Pedro Alves <palves@redhat.com>
7703
7704 * target.c (set_maintenance_target_async_permitted): Rename to ...
7705 (set_target_async_command): ... this.
7706 (show_maintenance_target_async_permitted): Rename to ...
7707 (show_target_async_command): ... this.
7708 (initialize_targets): Adjust.
7709
7710 2012-05-08 Doug Evans <dje@google.com>
7711
7712 * go-exp.y (classify_name): Add missing assignment of fields of
7713 yylval.ssym.
7714
7715 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7716
7717 Display the ">" prompt in interactive mode while reading canned
7718 commands, even when the current interpreter is MI.
7719
7720 * interps.c (interp_set_temp): New function.
7721
7722 * interps.h (interp_set_temp): Add prototype.
7723
7724 * cli/cli-script.c (restore_interp): New cleanup function.
7725 (read_command_lines): Temporarily override the current interpreter
7726 with CLI and arrange for restoring the original one.
7727
7728 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7729
7730 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7731
7732 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7733
7734 * probe.c (parse_probes): Move conditional to check for
7735 debuginfo files from here...
7736 * stap-probe.c (stap_get_probes): ... to here.
7737
7738 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7739 H.J. Lu <hongjiu.lu@intel.com>
7740
7741 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7742 `movl %esp, %ebp' for the X32 ABI.
7743
7744 2012-05-07 Tom Tromey <tromey@redhat.com>
7745
7746 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7747 get_DW_TAG_name.
7748 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7749 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7750 (dwarf_stack_op_name): Remove.
7751 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7752 (decode_locdesc): Use get_DW_OP_name.
7753 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7754 (dwarf2_compile_expr_to_ax): Likewise.
7755 (disassemble_dwarf_expression): Likewise.
7756 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7757
7758 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7759
7760 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7761 (sh_linux_sigtramp_cache): New function.
7762 (sh_linux_sigreturn_init): New function.
7763 (sh_linux_rt_sigreturn_init): New function.
7764 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7765 patterns.
7766 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7767 syscall codes.
7768 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7769 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7770 (sh_linux_init_abi): Add init calls to register new tramp_frame
7771 definitions under 32-bit SH, update comments.
7772
7773 2012-05-07 Pedro Alves <palves@redhat.com>
7774
7775 PR gdb/10952
7776
7777 * amd64-linux-tdep.c: Include glibc-tdep.h.
7778 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7779 gdbarch_skip_solib_resolver callback.
7780
7781 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7782
7783 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7784 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7785 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7786 (add_auto_load_safe_path): Change the error message.
7787 (_initialize_auto_load): Change the "safe-path" help text.
7788 * configure: Regenerate
7789 * configure.ac (--without-auto-load-safe-path): Set
7790 WITH_AUTO_LOAD_SAFE_PATH to /.
7791
7792 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7793
7794 * stap-probe.h: Do not include unecessary `probe.h'.
7795
7796 2012-05-05 Alan Modra <amodra@gmail.com>
7797
7798 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7799 bfd_und_section_ptr.
7800 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7801 and bfd_com_section_ptr.
7802
7803 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7804
7805 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7806
7807 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7808
7809 * windows-nat.h (segment_register_p_ftype): New typedef.
7810 (windows_set_segment_register_p): Add declaration.
7811 * windows-nat.c (segment_register_p): New static global.
7812 (windows_set_segment_register_p): New function.
7813 (do_windows_fetch_inferior_registers): Add special handling
7814 for segment registers.
7815 * amd64-windows-nat.c: #include "amd64-tdep.h".
7816 (amd64_windows_segment_register_p): New function.
7817 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7818 * i386-windows-nat.c: #include "i386-tdep.h".
7819 (i386_windows_segment_register_p): New function.
7820 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7821
7822 2012-05-04 Tristan Gingold <gingold@adacore.com>
7823
7824 * printcmd.c (set_command): Emit a warning if the expression is not
7825 an assignment.
7826
7827 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7828
7829 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7830 Make static.
7831
7832 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7833
7834 * stap-probe.c (stap_is_operator): Change declaration.
7835 (stap_get_opcode): Change return value.
7836 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7837 `stap_parse_argument_1'.
7838
7839 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7840
7841 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7842 debug log.
7843
7844 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7845
7846 Add two new methods global_block and static_block to gdb.Symtab
7847 objects.
7848 * NEWS (Python scripting): Add entry about the new methods.
7849 * python/py-symtab.c (stpy_global_block): New function which
7850 implements the gdb.Symtab.global_block() method.
7851 (stpy_static_block): New function which implements the
7852 gdb.Symtab.static_block() method.
7853 (symtab_object_methods): Add entries for the two new methods.
7854
7855 2012-05-03 Doug Evans <dje@google.com>
7856
7857 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7858 files.
7859
7860 2012-05-03 Yao Qi <yao@codesourcery.com>
7861
7862 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7863 space.
7864 (i386_process_record): Ditto.
7865
7866 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7867
7868 * infcall.c (unwind_on_signal_p): Make static.
7869
7870 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7871
7872 * sol-thread.c (solaris_pid_to_str): Make static.
7873 (_initialize_sol_thread): Add prototype.
7874
7875 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7876
7877 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7878
7879 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7880
7881 * MAINTAINERS: Remove myself.
7882
7883 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7884
7885 Fix --without-auto-load-safe-path for MS-Windows host platform.
7886 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7887
7888 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7889
7890 * gdb_curses.h: Undefine KEY_EVENT before including curses
7891 headers. Move "#undef MOUSE_MOVED" before any curses header
7892 inclusion.
7893
7894 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7895
7896 * features/i386/i386-mmx-linux.c: Regenerate.
7897 * features/rs6000/powerpc-32.c: Likewise.
7898 * features/rs6000/powerpc-32l.c: Likewise.
7899 * features/rs6000/powerpc-403.c: Likewise.
7900 * features/rs6000/powerpc-403gc.c: Likewise.
7901 * features/rs6000/powerpc-405.c: Likewise.
7902 * features/rs6000/powerpc-505.c: Likewise.
7903 * features/rs6000/powerpc-601.c: Likewise.
7904 * features/rs6000/powerpc-602.c: Likewise.
7905 * features/rs6000/powerpc-603.c: Likewise.
7906 * features/rs6000/powerpc-604.c: Likewise.
7907 * features/rs6000/powerpc-64.c: Likewise.
7908 * features/rs6000/powerpc-64l.c: Likewise.
7909 * features/rs6000/powerpc-750.c: Likewise.
7910 * features/rs6000/powerpc-860.c: Likewise.
7911 * features/rs6000/powerpc-e500.c: Likewise.
7912 * features/rs6000/powerpc-e500l.c: Likewise.
7913 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7914 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7915 * features/rs6000/rs6000.c: Likewise.
7916
7917 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7918
7919 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7920 variable.
7921 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7922 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7923 (stap_parse_argument) <e>: Likewise.
7924 (handle_stap_probe) <byte_order>: Likewise.
7925
7926 2012-04-30 Doug Evans <dje@google.com>
7927
7928 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7929 init_and_read_dies_worker. All callers updated.
7930 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7931 replaced with init_cutu_and_read_dies.
7932 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7933 (find_partial_die): Remove FIXME. Don't free current CU.
7934
7935 2012-04-30 Sterling Augustine <saugustine@google.com>
7936
7937 * contrib: New directory.
7938 * contrib/test_pubnames_and_indexes.py: New file.
7939
7940 2012-04-30 Doug Evans <dje@google.com>
7941
7942 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7943 All callers updated.
7944 (init_cu_die_reader): Verify the section is non-empty.
7945 (dwarf_decode_line_header): Don't dereference section->asection
7946 until we know the section is present.
7947
7948 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7949
7950 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7951 probes.
7952
7953 2012-04-29 Yao Qi <yao@codesourcery.com>
7954
7955 * gdb-code-style.el: New hook gdb-markup-hook
7956 and gdb-comment-hook.
7957
7958 2012-04-28 Doug Evans <dje@google.com>
7959
7960 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7961 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7962 objfile->obfd.
7963 * symfile.h (dwarf2_debug_sections): New member addr.
7964 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7965 (ctx_no_get_addr_index): New function.
7966 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7967 (ctx_no_get_addr_index): Declare.
7968 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7969 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7970 (dwarf_expr_ctx_funcs): Update.
7971 (needs_get_addr_index): New function.
7972 (needs_frame_ctx_funcs): Update.
7973 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7974 * dwarf2read.c: #include "gdbcore.h".
7975 (dwarf2_per_objfile): New members addr, dwo_files.
7976 (dwarf2_elf_names): Add entry for addr.
7977 (struct dwo_section_names): New type.
7978 (dwo_section_names): New static global.
7979 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7980 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7981 old debug_types_section member updated to use this.
7982 Rename member debug_types_section to info_or_types_section,
7983 all uses updated.
7984 (signatured_type): Rename member type_offset to type_offset_in_tu,
7985 all uses updated. New member type_offset_in_section.
7986 (struct dwo_sections): New type.
7987 (struct dwo_unit): New type.
7988 (struct dwo_file): New type.
7989 (die_reader_specs): New member dwo_file.
7990 (dwarf2_locate_sections): Watch for .debug_addr.
7991 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7992 (dwarf2_read_section): Get bfd of section from bfd's asection,
7993 instead of objfile.
7994 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7995 (create_signatured_type_table_from_index): Initialize
7996 sig_type->info_or_types_section.
7997 (dw2_get_file_names): Statement lists for type units with DWO files
7998 live in the DWO file.
7999 (create_debug_types_hash_table): New function.
8000 (create_all_type_units): Rewrite.
8001 (init_cu_die_reader): New arg dwo_file, all callers updated.
8002 (init_and_read_dies_worker): Get section from
8003 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
8004 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
8005 continue reading the CU/TU from there.
8006 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
8007 updated. Get section from this_cu->info_or_types_section.
8008 (create_all_comp_units): Initialize this_cu->info_or_types_section.
8009 (skip_one_die): New cases DW_FORM_GNU_addr_index,
8010 DW_FORM_GNU_str_index.
8011 (hash_dwo_file, eq_dwo_file): New functions.
8012 (allocate_dwo_file_hash_table): New function.
8013 (hash_dwo_unit, eq_dwo_unit): New functions.
8014 (allocate_dwo_unit_table): New function.
8015 (dwarf2_locate_dwo_sections): New function.
8016 (struct create_dwo_info_table_data): New type.
8017 (create_debug_info_hash_table_reader): New function.
8018 (create_debug_info_hash_table): New function.
8019 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
8020 (lookup_dwo_file): New function.
8021 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
8022 (free_dwo_file, free_dwo_file_cleanup): New functions.
8023 (free_dwo_file_from_slot, free_dwo_files): New functions.
8024 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
8025 (dwarf2_record_block_ranges): Ditto.
8026 (read_partial_die): Ditto.
8027 (process_enumeration_scope): Update to use type_offset_in_section.
8028 (read_full_die_1): New function.
8029 (read_full_die): Rewrite.
8030 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
8031 DW_FORM_GNU_str_index.
8032 (read_addr_index_1, read_addr_index): New functions.
8033 (read_addr_index_from_leb128): New function.
8034 (struct dwarf2_read_addr_index_data): New type.
8035 (dwarf2_read_addr_index_reader): New function.
8036 (dwarf2_read_addr_index): New function.
8037 (read_str_index): New function.
8038 (leb128_size): New function.
8039 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
8040 If processing a type unit from a DWO file, get the line section
8041 from the DWO file.
8042 (var_decode_location): Watch for DW_OP_GNU_addr_index.
8043 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
8044 DW_FORM_GNU_str_index.
8045 (lookup_die_type): Check whether section offset of type's die is
8046 known before looking it up. Remove assert. Condition can
8047 legimately happen for inter-cu type references.
8048 (dwarf_attr_name): Handle Fission attributes.
8049 (dwarf_form_name): Handle Fission forms.
8050 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
8051 DW_FORM_GNU_str_index.
8052 (follow_die_sig): Update to use type_offset_in_section.
8053 (decode_locdesc): New case DW_OP_GNU_addr_index.
8054 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
8055 DW_FORM_GNU_str_index.
8056 (cu_debug_loc_section): New function.
8057 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
8058 (dwarf2_per_objfile_free): Unmap .debug_addr section.
8059 Free DWO files if present.
8060 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
8061
8062 Refactor DIE reading.
8063 * dwarf2read.c (dwarf2_per_objfile): Replace members
8064 debug_info_type_hash and debug_types_type_hash with die_type_hash.
8065 (die_reader_specs): New member "die_section". Temporarily make
8066 member "buffer" non-const, pending constifying all info_ptr uses.
8067 (die_reader_func_ftype): New typedef.
8068 (dw2_get_file_names_reader): New function.
8069 (dw2_get_file_names): Rewrite.
8070 (read_and_check_type_unit_head): Rename arg type_offset to
8071 type_offset_in_tu.
8072 (create_all_type_units): Improve debugging message.
8073 Improve dummy type unit check.
8074 (init_cu_die_reader): New arg "section". All callers updated.
8075 (init_and_read_dies_worker): New function.
8076 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
8077 (init_cutu_and_read_dies_no_follow): New function.
8078 (init_cutu_and_read_dies_simple): New function.
8079 (process_psymtab_comp_unit_reader): New function.
8080 (process_psymtab_comp_unit): Delete args section,
8081 is_debug_types_section. Rewrite. All callers updated.
8082 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
8083 All callers updated. Rewrite.
8084 (load_partial_comp_unit_reader): New function.
8085 (load_partial_comp_unit): Rewrite.
8086 (skip_children): New arg reader. Delete args buffer, cu.
8087 All callers updated.
8088 (skip_one_die): New arg reader. Delete args buffer, cu.
8089 All callers updated.
8090 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
8091 All callers updated.
8092 (load_full_comp_unit_reader): New function.
8093 (load_full_comp_unit): Rewrite.
8094 (read_comp_unit): Delete.
8095 (read_die_and_children_1): Delete, contents moved ...
8096 (read_die_and_children): ... here.
8097 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
8098 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
8099 All callers updated.
8100 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
8101 All callers updated.
8102 (find_partial_die): Rewrite load_all_dies support.
8103 (read_attribute_value): New arg reader. Delete args abfd, cu.
8104 All callers updated.
8105 (read_attribute): New arg reader. Delete args abfd, cu.
8106 All callers updated.
8107 (load_full_type_unit): Add assert.
8108 (read_signatured_type_reader): New function.
8109 (read_signatured_type): Rewrite.
8110 (free_stack_comp_unit): Remove call to age_cached_comp_units.
8111 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
8112 All callers updated. Set per_cu->cu = NULL after freeing it.
8113 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
8114 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
8115 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
8116 (set_die_type): Update.
8117 (get_die_type_at_offset): Update.
8118 (read_file_scope): Call prepare_one_comp_unit.
8119 (read_type_unit_scope): Ditto.
8120 (prepare_one_comp_unit): Set producer if present.
8121
8122 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
8123
8124 * probe.c (compile_rx_or_error): Silence ARI warning about missing
8125 gettext function on `error'.
8126
8127 2012-04-27 Doug Evans <dje@google.com>
8128
8129 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8130 is empty.
8131
8132 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8133 Tom Tromey <tromey@redhat.com>
8134
8135 * breakpoint.c (struct breakpoint_objfile_data)
8136 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8137 <exception_probes>: New fields.
8138 (free_breakpoint_probes): New function.
8139 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8140 `_Unwind_DebugHook'.
8141 (create_exception_master_breakpoint): Likewise.
8142 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8143 * infrun.c: Including necessary header files for handling SystemTap
8144 probes.
8145 (handle_inferior_event): Handling longjmp breakpoint and exceptions
8146 via SystemTap probes.
8147 (check_exception_resume): Remove `func' argument. Handle exception
8148 unwinding breakpoint set via a SystemTap probe.
8149 (insert_exception_resume_from_probe): New function.
8150
8151 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8152 Tom Tromey <tromey@redhat.com>
8153 Jan Kratochvil <jan.kratochvil@redhat.com>
8154
8155 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8156 (COMMON_OBS): Likewise.
8157 (HFILES_NO_SRCDIR): Add `probe'.
8158 * NEWS: Mention support for static and SystemTap probes.
8159 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8160 SystemTap probes' arguments parser.
8161 * arm-linux-tdep.c: Including headers needed to perform the parsing
8162 of SystemTap probes' arguments.
8163 (arm_stap_is_single_operand): New function.
8164 (arm_stap_parse_special_token): Likewise.
8165 (arm_linux_init_abi): Initializing proper fields used by SystemTap
8166 probes' arguments parser.
8167 * ax-gdb.c (require_rvalue): Removing static declaration.
8168 (gen_expr): Likewise.
8169 * ax-gdb.h (gen_expr): Declaring function.
8170 (require_rvalue): Likewise.
8171 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8172 (bkpt_probe_breakpoint_ops): New variable.
8173 (momentary_breakpoint_from_master): Set the `probe' value.
8174 (add_location_to_breakpoint): Likewise.
8175 (break_command_1): Using proper breakpoint_ops according to the
8176 argument passed by the user in the command line.
8177 (bkpt_probe_insert_location): New function.
8178 (bkpt_probe_remove_location): Likewise.
8179 (bkpt_probe_create_sals_from_address): Likewise.
8180 (bkpt_probe_decode_linespec): Likewise.
8181 (tracepoint_probe_create_sals_from_address): Likewise.
8182 (tracepoint_probe_decode_linespec): Likewise.
8183 (tracepoint_probe_breakpoint_ops): New variable.
8184 (trace_command): Using proper breakpoint_ops according to the
8185 argument passed by the user in the command line.
8186 (initialize_breakpoint_ops): Initializing breakpoint_ops for
8187 static probes on breakpoints and tracepoints.
8188 * breakpoint.h (struct bp_location) <probe>: New field.
8189 * cli-utils.c (skip_spaces_const): New function.
8190 (extract_arg): Likewise.
8191 * cli-utils.h (skip_spaces_const): Likewise.
8192 (extract_arg): Likewise.
8193 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8194 * configure.ac: Append `stap-probe.o' to be generated when ELF
8195 support is present.
8196 * configure: Regenerate.
8197 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8198 * elfread.c: Include `probe.h' and `arch-utils.h'.
8199 (probe_key): New variable.
8200 (elf_get_probes): New function.
8201 (elf_get_probe_argument_count): Likewise.
8202 (elf_evaluate_probe_argument): Likewise.
8203 (elf_compile_to_ax): Likewise.
8204 (elf_symfile_relocate_probe): Likewise.
8205 (stap_probe_key_free): Likewise.
8206 (elf_probe_fns): New variable.
8207 (elf_sym_fns): Add `sym_probe_fns' value.
8208 (elf_sym_fns_lazy_psyms): Likewise.
8209 (elf_sym_fns_gdb_index): Likewise.
8210 (_initialize_elfread): Initialize objfile cache for static
8211 probes.
8212 * gdb_vecs.h (struct probe): New forward declaration.
8213 (probe_p): New VEC declaration.
8214 * gdbarch.c: Regenerate.
8215 * gdbarch.h: Regenerate.
8216 * gdbarch.sh (stap_integer_prefix): New variable.
8217 (stap_integer_suffix): Likewise.
8218 (stap_register_prefix): Likewise.
8219 (stap_register_suffix): Likewise.
8220 (stap_register_indirection_prefix): Likewise.
8221 (stap_register_indirection_suffix): Likewise.
8222 (stap_gdb_register_prefix): Likewise.
8223 (stap_gdb_register_suffix): Likewise.
8224 (stap_is_single_operand): New function.
8225 (stap_parse_special_token): Likewise.
8226 (struct stap_parse_info): Forward declaration.
8227 * i386-tdep.c: Including headers needed to perform the parsing
8228 of SystemTap probes' arguments.
8229 (i386_stap_is_single_operand): New function.
8230 (i386_stap_parse_special_token): Likewise.
8231 (i386_elf_init_abi): Initializing proper fields used by SystemTap
8232 probes' arguments parser.
8233 * i386-tdep.h (i386_stap_is_single_operand): New function.
8234 (i386_stap_parse_special_token): Likewise.
8235 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8236 * mipsread.c (ecoff_sym_fns): Likewise.
8237 * objfiles.c (objfile_relocate1): Support relocation for static
8238 probes.
8239 * parse.c (prefixify_expression): Remove static declaration.
8240 (initialize_expout): Likewise.
8241 (reallocate_expout): Likewise.
8242 * parser-defs.h (initialize_expout): Declare function.
8243 (reallocate_expout): Likewise.
8244 (prefixify_expression): Likewise.
8245 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8246 of SystemTap probes' arguments.
8247 (ppc_stap_is_single_operand): New function.
8248 (ppc_stap_parse_special_token): Likewise.
8249 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8250 probes' arguments parser.
8251 * probe.c: New file, for generic statically defined probe support.
8252 * probe.h: Likewise.
8253 * s390-tdep.c: Including headers needed to perform the parsing of
8254 SystemTap probes' arguments.
8255 (s390_stap_is_single_operand): New function.
8256 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8257 probes' arguments parser.
8258 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8259 * stap-probe.c: New file, for SystemTap probe support.
8260 * stap-probe.h: Likewise.
8261 * symfile.h: Include `gdb_vecs.h'.
8262 (struct sym_probe_fns): New struct.
8263 (struct sym_fns) <sym_probe_fns>: New field.
8264 * symtab.c (init_sal): Initialize `probe' field.
8265 * symtab.h (struct probe): Forward declaration.
8266 (struct symtab_and_line) <probe>: New field.
8267 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8268 locations.
8269 (stop_tracing): Likewise.
8270 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8271
8272 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8273 Tom Tromey <tromey@redhat.com>
8274
8275 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8276 and to compile agent expressions.
8277 * infrun.c (siginfo_make_value): New argument `ignore'.
8278 (siginfo_funcs): New struct.
8279 (_initialize_infrun): New argument when calling
8280 `create_internalvar_type_lazy'.
8281 * thread.c (thread_id_make_value): New argument `ignore'.
8282 (thread_funcs): New struct.
8283 (_initialize_thread): New argument when calling
8284 `create_internalvar_type_lazy'.
8285 * tracepoint.c (sdata_make_value): New argument `ignore'.
8286 (sdata_funcs): New struct.
8287 (_initialize_tracepoint): New argument when calling
8288 `create_internalvar_type_lazy'.
8289 * value.c (make_value): New struct.
8290 (create_internalvar_type_lazy): New argument `data'.
8291 (compile_internalvar_to_ax): New function.
8292 (value_of_internalvar): Properly handling `make_value' case.
8293 (clear_internalvar): Likewise.
8294 (show_convenience): Adding `TRY_CATCH' block.
8295 * value.h (internalvar_make_value): Delete, replace by...
8296 (struct internalvar_funcs): ... this.
8297 (create_internalvar_type_lazy) <fun>: Delete argument.
8298 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8299 (compile_internalvar_to_ax): New function.
8300 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8301 (tlb_funcs): New struct.
8302 (_initialize_windows_tdep): New argument when calling
8303 `create_internalvar_type_lazy'.
8304
8305 2012-04-27 Mark Wielaard <mjw@redhat.com>
8306
8307 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8308 see whether it is an address or a constant offset from DW_AT_low_pc.
8309 (dwarf2_record_block_ranges): Likewise.
8310 (read_partial_die): Likewise.
8311
8312 2012-04-26 Mark Wielaard <mjw@redhat.com>
8313
8314 * MAINTAINERS (Write After Approval): Add myself to the list.
8315
8316 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8317
8318 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8319 (proc_prettyprint_signal): Likewise.
8320 (proc_prettyprint_faultset): Likewise.
8321 (proc_prettyprint_fault): Likewise.
8322 (proc_prettyprint_actionset): Likewise.
8323 (proc_prettyprint_flags): Move to new proc-flags.c section.
8324 (proc_prettyfprint_flags): New prototype.
8325 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8326 (proc_syscall, proc_cursig): Likewise.
8327 (proc_set_kill_on_last_close): Likewise.
8328 (proc_unset_kill_on_last_close): Likewise.
8329 (proc_set_watchpoint): Make static.
8330 (proc_delete_dead_threads): Likewise.
8331 (procfs_set_watchpoint): Likewise.
8332 (_initialize_procfs): Add prototype.
8333 * proc-events.c: Include proc-utils.h.
8334 (init_syscall_table): Make static.
8335 * proc-api.c (_initialize_proc_api): Add prototype.
8336 * proc-flags.c: Include proc-utils.h.
8337
8338 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8339
8340 * configure.ac: Add AC_ARG_PROGRAM.
8341 * configure: Regenerate.
8342
8343 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8344
8345 Fix DW_AT_lower_bound defaults for DWARF-4+.
8346 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8347 high. New variable low_default_is_valid. Implement DWARF-4+
8348 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8349 no default by the DWARF standard.
8350
8351 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8352 Maciej W. Rozycki <macro@codesourcery.com>
8353
8354 * infrun.c (handle_inferior_event): Move the check for return
8355 trampolines ahead of the check for function trampolines.
8356 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8357 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8358 (mips_str_mips16_ret_stub): Likewise.
8359 (mips_str_call_fp_stub): Likewise.
8360 (mips_str_call_stub): Likewise.
8361 (mips_str_fn_stub): Likewise.
8362 (mips_str_pic): Likewise.
8363 (mips_in_frame_stub): New function.
8364 (mips_unwind_pc): Return the return address rather than the PC
8365 if the PC of an intermediate frame is inside a call thunk.
8366 (mips_is_stub_suffix): New function.
8367 (mips_is_stub_mode): Likewise.
8368 (mips_get_mips16_fn_stub_pc): Likewise.
8369 (mips_skip_mips16_trampoline_code): Update to handle all the
8370 currently generated stub types. Don't recurse into __fn_stub
8371 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8372 Use cooked register accesses.
8373 (mips_in_return_stub): Reintroduce function.
8374 (mips_skip_trampoline_code): Traverse trampolines recursively.
8375 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8376
8377 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8378
8379 GDB 7.4.1 released.
8380
8381 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8382
8383 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8384 * features/arm-with-m-vfp-d16.xml: New file. Describes
8385 Cortex-M with VFPv4-sp-d16 FPU register layout.
8386 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8387 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8388 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8389 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8390 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8391
8392 2012-04-25 Doug Evans <dje@google.com>
8393
8394 * cli/cli-decode.c (print_doc_line): Use stream instead of
8395 current_uiout.
8396
8397 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8398
8399 * features/arm-with-iwmmxt.c: Regenerate.
8400 * features/arm-with-m-fpa-layout.c: Likewise.
8401 * features/arm-with-m.c: Likewise.
8402 * features/arm-with-neon.c: Likewise.
8403 * features/arm-with-vfpv2.c: Likewise.
8404 * features/arm-with-vfpv3.c: Likewise.
8405 * features/mips-dsp-linux.c: Likewise.
8406 * features/mips-linux.c: Likewise.
8407 * features/mips64-dsp-linux.c: Likewise.
8408 * features/mips64-linux.c: Likewise.
8409 * features/s390-linux32.c: Likewise.
8410 * features/s390-linux32v1.c: Likewise.
8411 * features/s390-linux32v2.c: Likewise.
8412 * features/s390-linux64.c: Likewise.
8413 * features/s390-linux64v1.c: Likewise.
8414 * features/s390-linux64v2.c: Likewise.
8415 * features/s390x-linux64.c: Likewise.
8416 * features/s390x-linux64v1.c: Likewise.
8417 * features/s390x-linux64v2.c: Likewise.
8418 * features/tic6x-c62x-linux.c: Likewise.
8419 * features/tic6x-c62x.c: Likewise.
8420 * features/tic6x-c64x-linux.c: Likewise.
8421 * features/tic6x-c64x.c: Likewise.
8422 * features/tic6x-c64xp-linux.c: Likewise.
8423 * features/tic6x-c64xp.c: Likewise.
8424 * target-descriptions.c: Only generate `field_type' and `type'
8425 variables when needed.
8426
8427 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8428
8429 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8430
8431 2012-04-25 Doug Evans <dje@google.com>
8432
8433 Initial pass at Go language support.
8434 * NEWS: Mention Go.
8435 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8436 go-valprint.c.
8437 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8438 (YYFILES): Add go-exp.c.
8439 (YYOBJ): Add go-exp.o.
8440 (local-maintainer-clean): Delete go-exp.c.
8441 * defs.h (enum language): Add language_go.
8442 * dwarf2read.c: #include "go-lang.h".
8443 (fixup_go_packaging): New function.
8444 (process_full_comp_unit): Call it when processing Go CUs.
8445 (dwarf2_physname): Add Go support.
8446 (read_file_scope): Handle missing language spec for GNU Go.
8447 (set_cu_language): Handle DW_LANG_Go.
8448 * go-exp.y: New file.
8449 * go-lang.h: New file.
8450 * go-lang.c: New file.
8451 * go-typeprint.c: New file.
8452 * go-valprint.c: New file.
8453 * symtab.c: #include "go-lang.h".
8454 (symbol_set_language): Handle language_go.
8455 (symbol_find_demangled_name, symbol_set_names): Ditto.
8456 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8457
8458 2012-04-24 Jim Meyering <meyering@redhat.com>
8459
8460 avoid a few strncpy-induced buffer overruns
8461 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8462 fname and psargs before trying to concatenate.
8463 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8464 "name" before applying strchr.
8465
8466 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8467
8468 * CONTRIBUTE: Use unified diff instead of context diff when
8469 generating patches.
8470
8471 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8472
8473 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8474 code. Handle JR.HB correctly.
8475
8476 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8477
8478 * mips-tdep.c
8479 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8480 with the other MIPS16 helpers.
8481
8482 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8483
8484 * observer.sh: Conditionally declare `args', thus cleaning up
8485 unused instances of this variable.
8486
8487 2012-04-24 Yao Qi <yao@codesourcery.com>
8488
8489 Revert this patch to allow breakpoint always-inserted
8490 in record target.
8491 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8492 * breakpoint.c: Include record.h.
8493 (breakpoints_always_inserted_mode): Return false when the record
8494 target is in use.
8495
8496 * breakpoint.c (iterate_over_bp_locations): New.
8497 * breakpoint.h: Declare.
8498 New typedef walk_bp_location_callback.
8499 * record.c (record_open): Call record_init_record_breakpoints.
8500 (record_sync_record_breakpoints): New.
8501 (record_init_record_breakpoints): New.
8502 * NEWS: Mention supporting breakpoint always-inserted mode in
8503 record target.
8504
8505 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8506
8507 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8508 any thread.
8509
8510 2012-04-24 Yao Qi <yao@codesourcery.com>
8511
8512 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8513 (is_catchpoint): ... it.
8514 (print_one_breakpoint_location): Caller update.
8515 * breakpoint.h: Update declaration.
8516
8517 2012-04-23 David S. Miller <davem@davemloft.net>
8518
8519 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8520
8521 2012-04-23 Tom Tromey <tromey@redhat.com>
8522
8523 * buildsym.c (add_free_pendings): Remove.
8524 * buildsym.h (add_free_pendings): Remove.
8525
8526 2012-04-23 Doug Evans <dje@google.com>
8527
8528 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8529 attr.u.unsnd instead of attr.u.addr.
8530 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8531 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8532 DW_FORM_ref_udata.
8533 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8534 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8535 DW_FORM_ref_udata.
8536 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8537
8538 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8539
8540 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8541 (mips_o32_return_value): Likewise.
8542 (mips_o64_return_value): Likewise.
8543
8544 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8545
8546 * ada-lang.c (ada_evaluate_subexp): Add cases for
8547 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8548 their treatment in eval.c.
8549
8550 2012-04-21 David S. Miller <davem@davemloft.net>
8551
8552 * sparc-tdep.c (X_DISP10): Define.
8553 (sparc_analyze_control_transfer): Handle compare-and-branch.
8554
8555 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8556
8557 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8558 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8559
8560 2012-04-20 Nigel Stephens <nigel@mips.com>
8561 Maciej W. Rozycki <macro@codesourcery.com>
8562
8563 * mips-tdep.c (mips_float_register_p): New function.
8564 (mips_convert_register_float_case_p): Use mips_float_register_p.
8565 (mips_register_type): Likewise.
8566 (mips_print_register): Likewise.
8567 (print_gp_register_row): Likewise.
8568 (mips_print_registers_info): Likewise.
8569
8570 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8571
8572 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8573 of mips16 symbols.
8574
8575 2012-04-20 Andrew Pinski <apinski@cavium.com>
8576
8577 * MAINTAINERS (Write After Approval): Add myself to the list.
8578
8579 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8580
8581 * MAINTAINERS: Update my e-mail address.
8582
8583 2012-04-20 Pedro Alves <palves@redhat.com>
8584
8585 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8586 $srcdir.
8587 * configure: Regenerate.
8588
8589 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8590
8591 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8592 declaration.
8593 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8594
8595 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8596
8597 Fix compilation compatibility with python-2.4
8598 * python/py-type.c (convert_field): Cast ADDRSTRING for
8599 PyObject_SetAttrString as non-const. New comment.
8600
8601 2012-04-19 Tom Tromey <tromey@redhat.com>
8602
8603 * top.c (quit_target): Use all_cleanups.
8604 * main.c (captured_command_loop): Use all_cleanups.
8605 * exceptions.c (throw_exception): Use all_cleanups.
8606
8607 2012-04-19 Pedro Alves <palves@redhat.com>
8608
8609 * Makefile.in (GNULIB_BUILDDIR): New.
8610 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8611 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8612 (CLEANDIRS). Remove gnulib/import.
8613 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8614 (all-lib): Ditto.
8615 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8616 (gnulib/import/Makefile): Replace gnulib/import with
8617 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8618 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8619 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8620 acx_configure_dir.m4.
8621 * acinclude.m4: Include acx_configure_dir.m4.
8622 * acx_configure_dir.m4: New file.
8623 * aclocal.m4: Regenerate.
8624 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8625 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8626 (GNULIB): New variable.
8627 (GNULIB_STDINT_H): Adjust.
8628 (AC_OUTPUT): Don't output gnulib/Makefile.
8629 * gdb/defs.h: Include build-gnulib/config.h.
8630 * aclocal.m4: Regenerate.
8631 * config.in: Regenerate.
8632 * configure: Regenerate.
8633
8634 * gnulib/Makefile.in: New file.
8635 * gnulib/configure.ac: New file.
8636 * gnulib/aclocal.m4: New file.
8637 * gnulib/config.in: New file.
8638 * gnulib/configure: New file.
8639 * gnulib/: Re-run gnulib-tool to adjust.
8640
8641 2012-04-19 Doug Evans <dje@google.com>
8642
8643 * cleanups.h (struct cleanup): Move to cleanups.c.
8644 (make_cleanup_dtor_ftype): New typedef.
8645 (make_cleanup_dtor): Use it.
8646 (ALL_CLEANUPS): Replace with ...
8647 (all_cleanups): ... this. Declare. All uses updated.
8648 * cleanups.c: #include "gdb_assert.h".
8649 (sentinel_cleanup): New static global.
8650 (SENTINEL_CLEANUP): Define.
8651 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8652 (make_my_cleanup2): Assert result is non-NULL.
8653 (all_cleanups): New function.
8654 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8655 of NULL.
8656
8657 2012-04-19 Pedro Alves <palves@redhat.com>
8658
8659 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8660 Adjust paths to gnulib imported files.
8661
8662 2012-04-19 Pedro Alves <palves@redhat.com>
8663
8664 * gnulib/: Move whole directory ...
8665 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8666 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8667 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8668 (aclocal_m4_deps): Adjust.
8669 * aclocal.m4: Regenerate.
8670 * configure: Regenerate.
8671 * configure.ac: Adjust AC_OUTPUT output.
8672
8673 2012-04-19 Yao Qi <yao@codesourcery.com>
8674
8675 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8676 (vec.o): New rule.
8677 * vec.c: Move it ...
8678 * common/vec.c: ... here.
8679 * vec.h: Move it ...
8680 * common/vec.h: ... here.
8681
8682 2012-04-19 Yao Qi <yao@codesourcery.com>
8683
8684 * gdb-code-style.el: New.
8685
8686 2012-04-18 Pedro Alves <palves@redhat.com>
8687
8688 Update gnulib from latest git.
8689 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8690
8691 * gnulib/Makefile.am: Update.
8692 * gnulib/dummy.c: Update.
8693 * gnulib/extra/arg-nonnull.h: Update.
8694 * gnulib/extra/c++defs.h: Update.
8695 * gnulib/extra/update-copyright: Update.
8696 * gnulib/extra/warn-on-use.h: Update.
8697 * gnulib/inttypes.in.h: Update.
8698 * gnulib/m4/00gnulib.m4: Update.
8699 * gnulib/m4/extensions.m4: Update.
8700 * gnulib/m4/gnulib-cache.m4: Update.
8701 * gnulib/m4/gnulib-common.m4: Update.
8702 * gnulib/m4/gnulib-comp.m4: Update.
8703 * gnulib/m4/gnulib-tool.m4: Update.
8704 * gnulib/m4/include_next.m4: Update.
8705 * gnulib/m4/inttypes-pri.m4: Update.
8706 * gnulib/m4/inttypes.m4: Update.
8707 * gnulib/m4/longlong.m4: Update.
8708 * gnulib/m4/memchr.m4: Update.
8709 * gnulib/m4/memmem.m4: Update.
8710 * gnulib/m4/mmap-anon.m4: Update.
8711 * gnulib/m4/multiarch.m4: Update.
8712 * gnulib/m4/onceonly.m4: Update.
8713 * gnulib/m4/stddef_h.m4: Update.
8714 * gnulib/m4/stdint.m4: Update.
8715 * gnulib/m4/string_h.m4: Update.
8716 * gnulib/m4/warn-on-use.m4: Update.
8717 * gnulib/m4/wchar_h.m4: Update.
8718 * gnulib/m4/wchar_t.m4: Update.
8719 * gnulib/m4/wint_t.m4: Update.
8720 * gnulib/memchr.c: Update.
8721 * gnulib/memmem.c: Update.
8722 * gnulib/stddef.in.h: Update.
8723 * gnulib/stdint.in.h: Update.
8724 * gnulib/str-two-way.h: Update.
8725 * gnulib/string.in.h: Update.
8726 * gnulib/wchar.in.h: Update.
8727
8728 * gnulib/extra/arg-nonnull.h: Delete.
8729 * gnulib/extra/c++defs.h: Delete.
8730 * gnulib/extra/warn-on-use.h: Delete.
8731 * gnulib/m4/wchar_h.m4: Delete.
8732 * gnulib/m4/wint_t.m4: Delete.
8733 * gnulib/wchar.in.h: Delete.
8734
8735 * gnulib/extra/snippets/arg-nonnull.h: New.
8736 * gnulib/extra/snippets/c++defs.h: New.
8737 * gnulib/extra/snippets/warn-on-use.h: New.
8738
8739 * aclocal.m4: Regenerate.
8740 * config.in: Regenerate.
8741 * configure: Regenerate.
8742 * gnulib/Makefile.in: Regenerate.
8743
8744 2012-04-18 Pedro Alves <palves@redhat.com>
8745
8746 Reimport the update-copyright module from gnulib
8747 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8748
8749 * configure: Regenerate.
8750 * gnulib/Makefile.am: Update.
8751 * gnulib/Makefile.in: Regenerate.
8752 * gnulib/extra/update-copyright: Update.
8753 * gnulib/m4/gnulib-cache.m4: Update.
8754 * gnulib/m4/gnulib-comp.m4: Update.
8755
8756 2012-04-18 Tristan Gingold <gingold@adacore.com>
8757
8758 * configure.ac (aix): Put -lpthread into libs.
8759 * configure: Regenerate.
8760
8761 2012-04-18 Tom Tromey <tromey@redhat.com>
8762
8763 * linespec.c (convert_linespec_to_sals): Don't use
8764 SYMBOL_OBJ_SECTION.
8765 (compare_msymbols): Arguments are minsym_and_objfile, not
8766 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8767
8768 2012-04-18 Pedro Alves <palves@redhat.com>
8769
8770 Revert gnulib/ part of:
8771 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8772 Copyright year update in most files (performed by copyright.sh).
8773
8774 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8775
8776 Fix 64-bit constants on 32-bit hosts.
8777 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8778 from unsigned long to ULONGEST.
8779 (read_signed_leb128): Change declaration return type from long to
8780 LONGEST.
8781 (dwarf2_const_value_attr): Change declaration parameter value from long
8782 to LONGEST.
8783 (dwarf2_compute_name): Change variable value from long to LONGEST.
8784 (read_unsigned_leb128): Change return type, variable result and some
8785 casts from unsigned long to ULONGEST.
8786 (read_signed_leb128): Change return type, variable result and some
8787 casts from long to LONGEST.
8788 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8789 value from long to LONGEST.
8790 (dwarf2_const_value): Change variable value from long to LONGEST.
8791 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8792 plongest and hex_string.
8793 * symtab.h (struct general_symbol_info): Change ivalue from long to
8794 LONGEST, remove the comment.
8795 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8796 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8797
8798 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8799
8800 PR symtab/7259:
8801 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8802 * ada-lang.c (ada_discrete_type_high_bound)
8803 (ada_discrete_type_low_bound): Fix function comment. Use
8804 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8805 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8806 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8807 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8808 Use TYPE_FIELD_ENUMVAL.
8809 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8810 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8811 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8812 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8813 TYPE_CODE_ENUM.
8814 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8815 * dwarf2read.c (process_enumeration_scope): Likewise.
8816 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8817 field.bitpos.
8818 (class StructMainTypePrettyPrinter): Support also
8819 FIELD_LOC_KIND_ENUMVAL.
8820 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8821 TYPE_CODE_ENUM.
8822 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8823 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8824 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8825 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8826 field enumval.
8827 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8828 accommodate enumval.
8829 (struct call_site): Adjust loc_kind to accommodate enumval.
8830 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8831 (TYPE_FIELD_ENUMVAL): New macros.
8832 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8833 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8834 TYPE_CODE_ENUM.
8835 * p-typeprint.c (pascal_type_print_base): Likewise.
8836 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8837 enumval.
8838 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8839 * python/py-type.c (convert_field): New variable addrstring. Use
8840 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8841 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8842 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8843 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8844 TYPE_CODE_ENUM.
8845 * valprint.c (generic_val_print): Likewise.
8846
8847 2012-04-17 Doug Evans <dje@google.com>
8848
8849 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8850
8851 * dwarf2read.c: Whitespace fixes.
8852 (lookup_signatured_type): Tweak comment.
8853 (get_die_type_at_offset): Fix comment.
8854
8855 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8856
8857 * xcoffread.c (xcoff_secnum_to_sections): New function.
8858 (secnum_to_section, secnum_to_bfd_section): Reimplement
8859 using xcoff_secnum_to_sections. Rename "secnum" parameter
8860 into "n_scnum".
8861 (RECORD_MINIMAL_SYMBOL): Delete.
8862 (record_minimal_symbol): New function.
8863 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8864 by call to record_minimal_symbol and set misc_func_recorded
8865 to 1. Set last_csect_sec to the XCOFF section index instead
8866 of GDB's section_offset index. Update calls to
8867 prim_record_minimal_symbol_and_info to pass the BFD section
8868 as well.
8869
8870 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8871
8872 * xcoffread.c (read_xcoff_symtab): Delete variables
8873 last_csect_val and last_csect_sec and associated code.
8874
8875 2012-04-17 Doug Evans <dje@google.com>
8876
8877 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8878 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8879 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8880 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8881
8882 * cleanups.h: New file.
8883 * cleanups.c: New file.
8884 * Makefile.in (SFILES): Add cleanups.c.
8885 (HFILES_NO_SRCDIR): Add cleanups.h.
8886 (COMMON_OBS): Add cleanups.o.
8887 * defs.h (struct cleanup): Moved to cleanups.h.
8888 (do_cleanups,do_final_cleanups): Ditto.
8889 (discard_cleanups,discard_final_cleanups): Ditto
8890 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8891 (save_cleanups,save_final_cleanups): Ditto.
8892 (restore_cleanups,restore_final_cleanups): Ditto.
8893 (null_cleanup): Ditto.
8894 (make_my_cleanup,make_my_cleanup2): Ditto.
8895 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8896 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8897 (do_cleanups,do_final_cleanups): Ditto.
8898 (discard_cleanups,discard_final_cleanups): Ditto
8899 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8900 (save_cleanups,save_final_cleanups): Ditto.
8901 (restore_cleanups,restore_final_cleanups): Ditto.
8902 (null_cleanup): Ditto.
8903 (make_my_cleanup,make_my_cleanup2): Ditto.
8904 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8905
8906 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8907 make_my_cleanup.
8908 (make_cleanup_dyn_string_delete): Ditto.
8909 (make_cleanup_ui_file_delete): Ditto.
8910 (make_cleanup_ui_out_redirect_pop): Ditto.
8911 (make_cleanup_free_section_addr_info): Ditto.
8912 (make_cleanup_restore_integer): Ditto.
8913 (make_cleanup_unpush_target): Ditto.
8914 (make_cleanup_value_free_to_mark): Ditto.
8915 (make_cleanup_value_free): Ditto.
8916 (make_cleanup_free_so): Ditto.
8917
8918 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8919
8920 New option "set debug auto-load".
8921 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8922 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8923 (auto_load_safe_path_vec_update)
8924 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8925 if DEBUG_AUTO_LOAD.
8926 (file_is_auto_load_safe): New parameters debug_fmt and ....
8927 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8928 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8929 caller by explanatory string.
8930 (_initialize_auto_load): Register "set debug auto-load".
8931 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8932 and ....
8933 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8934 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8935 by explanatory string.
8936 * main.c (captured_main): Likewise.
8937 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8938 (source_section_scripts): Likewise.
8939
8940 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8941
8942 New option "set auto-load safe-path".
8943 * NEWS: New commands "set auto-load safe-path"
8944 and "show auto-load safe-path".
8945 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8946 (auto_load_safe_path, auto_load_safe_path_vec)
8947 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8948 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8949 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8950 (source_gdb_script_for_objfile): New variable is_safe. Call
8951 file_is_auto_load_safe. Return if it is not.
8952 (struct loaded_script): New field loaded.
8953 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8954 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8955 output "Missing" to "No".
8956 (_initialize_auto_load): New variable cmd. Initialize
8957 auto_load_safe_path. Register "set auto-load safe-path",
8958 "show auto-load safe-path" and "add-auto-load-safe-path".
8959 * auto-load.h (maybe_add_script): Add parameter loaded.
8960 (file_is_auto_load_safe): New declaration.
8961 * config.in: Regenerate.
8962 * configure: Regenerate.
8963 * configure.ac: New parameters --with-auto-load-safe-path
8964 and --without-auto-load-safe-path.
8965 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8966 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8967 * main.c (captured_main): Check file_is_auto_load_safe for
8968 LOCAL_GDBINIT.
8969 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8970 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8971 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8972 not.
8973
8974 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8975
8976 auto-load: Implementation.
8977 * NEWS: New descriptions for "info auto-load",
8978 "info auto-load gdb-scripts", "info auto-load python-scripts",
8979 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8980 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8981 and "show auto-load-scripts". New description for "set auto-load",
8982 "show auto-load", "set auto-load gdb-scripts",
8983 "show auto-load gdb-scripts", "set auto-load python-scripts",
8984 "show auto-load python-scripts", "set auto-load local-gdbinit",
8985 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8986 "show auto-load libthread-db".
8987 * auto-load.c: Remove include python/python-internal.h. Add includes
8988 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8989 cli/cli-setshow.h.
8990 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8991 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8992 (gdbpy_global_auto_load): Rename to ...
8993 (global_auto_load): ... here.
8994 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8995 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8996 (script_language_gdb, source_gdb_script_for_objfile): New.
8997 (struct loaded_script): New field language.
8998 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8999 LANGUAGE.
9000 (maybe_add_script): Add parameter language. Drop redundant
9001 entry.full_path initialization. Initialize entry.language and
9002 (*slot)->language.
9003 (auto_load_objfile_script): Change parameter suffix to language.
9004 Remove the call of maybe_add_script.
9005 Call language->source_script_for_objfile.
9006 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
9007 New.
9008 (collect_matching_scripts): Adjust it for
9009 struct collect_matching_scripts_data.
9010 (auto_load_info_scripts_pattern_nl): New variable.
9011 (info_auto_load_scripts): Rename to ...
9012 (auto_load_info_scripts): ... here, add parameter language. Adjust it
9013 for struct collect_matching_scripts_data.
9014 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
9015 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
9016 (auto_load_show_cmdlist_get, info_auto_load_cmd)
9017 (auto_load_info_cmdlist_get): New.
9018 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
9019 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
9020 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
9021 "info auto-load local-gdbinit".
9022 * auto-load.h (struct script_language): New.
9023 (gdbpy_global_auto_load): Rename to ...
9024 (global_auto_load): ... here.
9025 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
9026 (auto_load_local_gdbinit_loaded): New declarations.
9027 (maybe_add_script): New parameter language.
9028 (auto_load_objfile_script): Change parameter suffix to language.
9029 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
9030 (auto_load_info_scripts, auto_load_set_cmdlist_get)
9031 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
9032 declarations.
9033 * linux-thread-db.c: Include auto-load.h and ctype.h.
9034 (auto_load_thread_db, show_auto_load_thread_db): New.
9035 (struct thread_db_info): New field filename.
9036 (delete_thread_db_info): Call xfree for FILENAME.
9037 (try_thread_db_load): Initialize FILENAME.
9038 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
9039 if !AUTO_LOAD_THREAD_DB.
9040 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
9041 (_initialize_thread_db): Install auto_load_thread_db
9042 as "set auto-load libthread-db" and install info_auto_load_libthread_db
9043 as "info auto-load libthread-db".
9044 * main.c (captured_main): Rename gdbpy_global_auto_load to
9045 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
9046 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
9047 (print_gdb_help): Extend the help for 'local init file'.
9048 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
9049 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
9050 (auto_load_scripts): Rename to ...
9051 (auto_load_python_scripts): ... here, update the comment.
9052 (gdbpy_load_auto_script_for_objfile): New declaration.
9053 (show_auto_load_python_scripts, script_language_python)
9054 (gdbpy_load_auto_script_for_objfile): New.
9055 (source_section_scripts): Refactor the code.
9056 (load_auto_scripts_for_objfile): Rename to ...
9057 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
9058 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
9059 (info_auto_load_python_scripts): New.
9060 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
9061 Rename "set auto-load-scripts" to "set auto-load python-scripts".
9062 Register "set auto-load-scripts" as its deprecated alias. Register
9063 "info auto-load python-scripts". Register "info auto-load-scripts" as
9064 its deprecated alias.
9065 (load_auto_scripts_for_objfile): Rename to ...
9066 (gdbpy_load_auto_scripts_for_objfile): ... here.
9067 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
9068 (gdbpy_load_auto_scripts_for_objfile): ... here.
9069
9070 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9071
9072 auto-load: Move files.
9073 * Makefile.in (SFILES): Add auto-load.c.
9074 (HFILES_NO_SRCDIR): Add auto-load.h.
9075 (COMMON_OBS): Add auto-load.o.
9076 (distclean): Change .gdbinit for gdb-gdb.gdb.
9077 * auto-load.c: New file, with parts from python/py-auto-load.c.
9078 * auto-load.h: New file, with parts from python/python.h.
9079 * configure: Regenerate.
9080 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
9081 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
9082 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
9083 * main.c: Include auto-load.h.
9084 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
9085 command.h, observer.h and progspace.h to auto-load.c. Add include
9086 auto-load.h.
9087 (gdbpy_global_auto_load, struct auto_load_pspace_info)
9088 (struct loaded_script, auto_load_pspace_data)
9089 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
9090 (hash_loaded_script_entry, eq_loaded_script_entry)
9091 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
9092 (maybe_add_script): Move to auto-load.c.
9093 (source_section_scripts): Change maybe_add_script parameters passing,
9094 use script_not_found_warning_print.
9095 (clear_section_scripts, auto_load_objfile_script)
9096 (auto_load_new_objfile, loaded_script_ptr)
9097 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
9098 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
9099 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
9100 auto_load_new_objfile and info_auto_load_scripts initizations to
9101 auto-load.c.
9102 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
9103
9104 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9105
9106 Code cleanup.
9107 * charset.c (find_charset_names): Remove variables ix and elt.
9108 Use free_char_ptr_vec.
9109 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
9110 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9111 debugdir_end. New variable debugdir_len.
9112 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
9113 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
9114 declarations.
9115 * progspace.c (clear_program_space_solib_cache): Remove variables ix
9116 and elt. Use free_char_ptr_vec.
9117 * source.c (add_path): Remove variables argv, arg and argv_index.
9118 New variables dir_vec, back_to, ix and name.
9119 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
9120 make_cleanup_freeargv. Remove variable separator. Simplify the code
9121 no longer expecting DIRNAME_SEPARATOR.
9122 (openp): Remove variable p, p1 and len. New variables dir_vec,
9123 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
9124 no longer expecting DIRNAME_SEPARATOR.
9125 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
9126 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9127 debugdir_end.
9128 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9129 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9130 (dirnames_to_char_ptr_vec): New functions.
9131
9132 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9133
9134 Code cleanup.
9135 * source.c (add_path): Remove always true conditional 'p == 0' and
9136 unindent its code block.
9137
9138 2012-04-17 Pedro Alves <palves@redhat.com>
9139
9140 * gdbtypes.h (FIELD_BITPOS): Rename to ...
9141 (FIELD_BITPOS_LVAL): ... this.
9142 (FIELD_BITPOS): New.
9143 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9144 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9145 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9146 SET_FIELD_BITPOS.
9147 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9148 SET_FIELD_BITPOS.
9149 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9150 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9151 * target-descriptions.c (tdesc_gdb_type): Adjust to use
9152 SET_FIELD_BITPOS.
9153
9154 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9155
9156 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9157 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9158 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9159 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9160 * jv-lang.c (java_link_class_type): Likewise, once.
9161 * stabsread.c (read_enum_type): Likewise.
9162
9163 2012-04-16 Yao Qi <yao@codesourcery.com>
9164
9165 * common/agent.c (agent_run_command): Add one more parameter `len'.
9166 Update callers.
9167 * common/agent.h: Update declaration.
9168 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9169 Update.
9170 (linux_child_static_tracepoint_markers_by_strid): Ditto.
9171
9172 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
9173
9174 PR mi/13393
9175 * value.c (value_actual_type): New function.
9176 * value.h (value_actual_type): New declaration.
9177 * varobj.c (update_type_if_necessary): New function.
9178 (varobj_create): Call value_actual_type instead of
9179 value_type.
9180 (install_dynamic_child): distinct changed and type changed MI variable
9181 objects.
9182 (update_dynamic_varobj_children): Updated for install_dynamic_child
9183 change. All callers updated.
9184 (varobj_update): Support for MI variable object type change if
9185 the value changed and RTTI is used to determine the type.
9186 (create_child_with_value): Call value_actual_type instead of
9187 value_type.
9188 (adjust_value_for_child_access): Extended with a new parameter which
9189 specify whether the given value should be casted to enclosing type.
9190 All callers updated.
9191
9192 2012-04-14 Yao Qi <yao@codesourcery.com>
9193
9194 Import gnulib module inttypes from git
9195 (250b80067c1e1d8faa0c42fb572f721975b929c5)
9196 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
9197 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9198 gnulib/m4/inttypes-pri.m4
9199 * aclocal.m4, config.in, configure: Regenerated.
9200 * gnulib/Makefile.am: Update.
9201 * gnulib/Makefile.in: Update.
9202 * gnulib/m4/gnulib-cache.m4: Update.
9203 * gnulib/m4/gnulib-comp.m4: Update.
9204 * gnulib/inttypes.in.h: New.
9205 * gnulib/m4/inttypes-pri.m4: New.
9206 * gnulib/m4/inttypes.m4: New.
9207
9208 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
9209
9210 * infrun.c (resume): Update PC address to the real PC after
9211 preparing to do displaced stepping.
9212
9213 2012-04-12 Doug Evans <dje@google.com>
9214
9215 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9216 All callers updated.
9217
9218 2012-04-12 Mark Kettenis <kettenis@gnu.org>
9219
9220 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9221
9222 2012-04-12 Doug Evans <dje@google.com>
9223
9224 * dwarf2read.c (create_all_type_units): Renamed from
9225 create_debug_types_hash_table. All callers updated.
9226
9227 * dwarf2read.c (create_signatured_type_table_from_index): Rename
9228 local type_sig to sig_type, type_offset to type_offset_in_tu.
9229 (hash_signatured_type): Renamed from hash_type_signature,
9230 all callers updated.
9231 (eq_signatured_type): Renamed from eq_type_signature,
9232 all callers updated.
9233 (create_debug_types_hash_table): Rename local type_sig to sig_type.
9234 (process_enumeration_scope): Ditto.
9235 (lookup_signatured_type_at_offset): Ditto.
9236 (load_full_type_unit, read_signatured_type): Ditto.
9237
9238 2012-04-12 Yao Qi <yao@codesourcery.com>
9239
9240 * remote.c (async_remote_interrupt): Correct function name in
9241 debug message.
9242 (async_remote_interrupt_twice): Ditto.
9243
9244 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
9245
9246 * source.c (find_and_open_source): Consistently pass resulting
9247 full path through xfullpath.
9248
9249 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9250
9251 Provide more specific displaced-stepping memory error message.
9252 * infrun.c (displaced_step_prepare): New variable status. Call
9253 target_read_memory instead of read_memory, provide more specific
9254 error message.
9255
9256 2012-04-11 Tristan Gingold <gingold@adacore.com>
9257
9258 PR gdb/13901
9259 * darwin-nat.c (darwin_execvp): Revert previous patch.
9260
9261 2012-04-11 Tristan Gingold <gingold@adacore.com>
9262
9263 PR gdb/13901
9264 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9265 in case of change.
9266
9267 2012-04-11 Tristan Gingold <gingold@adacore.com>
9268
9269 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9270 warning.
9271
9272 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9273
9274 New command 'explore' which helps explore values and types in
9275 scope.
9276 * NEWS: Add an entry about the new 'explore' command.
9277 * data-directory/Makefile.in: Add gdb/command/explore.py
9278 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9279 command using the GDB Python API.
9280
9281 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9282
9283 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9284 extension in jump target calculation.
9285
9286 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9287
9288 * mips-tdep.c (mips32_next_pc): Handle JALX.
9289
9290 2012-04-10 Yao Qi <yao@codesourcery.com>
9291
9292 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9293
9294 2012-04-10 Yao Qi <yao@codesourcery.com>
9295
9296 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9297 and gnulib/m4/gnulib-tool.m4.
9298
9299 2012-04-10 Doug Evans <dje@google.com>
9300
9301 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9302 (load_partial_dies): Clarify comment.
9303 (find_partial_die): Support rereading type units.
9304 Clarify CU handling, if we know offset is in CU, don't search for the
9305 containing CU. Add comment regarding memory waste.
9306
9307 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9308
9309 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9310 i386/x32-avx and i386/x32-avx-linux.
9311 (i386/x32-expedite): New.
9312 (i386/x32-linux-expedite): Likewise.
9313 (i386/x32-avx-expedite): Likewise.
9314 (i386/x32-avx-linux-expedite): Likewise.
9315 ($(outdir)/i386/x32.dat): Likewise.
9316 ($(outdir)/i386/x32-linux.dat): Likewise.
9317 ($(outdir)/i386/x32-avx.dat): Likewise.
9318 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9319
9320 * features/i386/x32-avx-linux.xml: New file.
9321 * features/i386/x32-avx.xml: Likewise.
9322 * features/i386/x32-core.xml: Likewise.
9323 * features/i386/x32-linux.xml: Likewise.
9324 * features/i386/x32.xml: Likewise.
9325
9326 * features/i386/x32-avx-linux.c: New. Generated.
9327 * features/i386/x32-avx.c: Likewise.
9328 * features/i386/x32-linux.c: Likewise.
9329 * features/i386/x32.c: Likewise.
9330 * regformats/i386/x32-avx-linux.dat: Likewise.
9331 * regformats/i386/x32-avx.dat: Likewise.
9332 * regformats/i386/x32-linux.dat: Likewise.
9333 * regformats/i386/x32.dat: Likewise.
9334
9335 2012-04-10 Tristan Gingold <gingold@adacore.com>
9336
9337 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9338 code to kill the inferior.
9339
9340 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9341
9342 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9343 defines.
9344 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9345 defines.
9346 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9347 (yyvsp): New defines.
9348 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9349 defines.
9350 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9351 defines.
9352 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9353 defines.
9354 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9355 defines.
9356 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9357 defines.
9358
9359 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9360
9361 * sparc64-tdep.c (sparc64_store_arguments)
9362 (sparc64_store_arguments): Fix coding style.
9363
9364 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9365
9366 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9367 complex floats, adjust some related comments and tighten a related
9368 assertion.
9369 (sparc64_extract_return_value): Handle complex floats.
9370
9371 2012-04-07 Doug Evans <dje@google.com>
9372
9373 * dwarf2read.c (load_partial_dies): Change condition to assert.
9374
9375 2012-04-06 Doug Evans <dje@google.com>
9376
9377 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9378 "mov %rsp,%rbp".
9379
9380 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9381
9382 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9383 fencepost error.
9384 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9385 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9386 architecture.
9387
9388 2012-04-05 Keith Seitz <keiths@redhat.com>
9389
9390 * linespec.c (decode_compound): Remove.
9391 (enum offset_relative_sign): New enum.
9392 (struct line_offset): New struct.
9393 (struct linespec): New struct.
9394 (struct linespec_state): Move file_symtabs,
9395 user_filename, and user_function into struct linespec.
9396 Make result an anonymous struct holding vectors of
9397 symbolp and minsym_and_objfile_d.
9398 Add language member.
9399 (enum ls_token_type): New enum.
9400 (linespec_keywords): New array.
9401 (struct ls_token): New struct.
9402 (struct ls_parser): New struct.
9403 (linespec_lexer_lex_number): New function.
9404 (linespec_lexer_lex_keyword): New function.
9405 (is_ada_operator): New function.
9406 (skip_quote_char): New function.
9407 (copy_token_string): New function.
9408 (is_closing_quote_enclosed): New function.
9409 (find_parameter_list_end): New function.
9410 (linespec_lexer_lex_string): New function.
9411 (linespec_lexer_lex_one): New function.
9412 (linespec_lexer_consume_token): New function.
9413 (linespec_lexer_peek_token): New function.
9414 (cplusplus_error): Remove unused function.
9415 (find_methods): Update comment.
9416 (find_toplevel_char): Return const.
9417 (is_objc_method_format): Remove unused function.
9418 (find_toplevel_string): New function.
9419 (is_linespec_boundary): Remove.
9420 (symbol_not_found_error): New function.
9421 (find_method_overload_end): Remove function.
9422 (unexpected_linespec_error): New function.
9423 (keep_name_info): Remove.
9424 (linespec_parse_line_offset): New function.
9425 (linespec_parse_basic): New function.
9426 (canonicalize_linespec): New function.
9427 (decode_line_internal): Remove.
9428 (create_sals_line_offset): New function adapted from
9429 decode_all_digits.
9430 (convert_linespec_to_sals): New function.
9431 (parse_linespec): New function.
9432 (linespec_parser_new): New function.
9433 (linespec_state_destructor): Change parameter type to
9434 struct linespec_state *.
9435 Add language parameter.
9436 Remove freeing of moved members.
9437 (linespec_parser_delete): New function.
9438 (decode_line_full): Use parse_linespec and linespec_parser_new.
9439 (decode_line_1): Likewise.
9440 (decode_indirect): Rename to ...
9441 (linespec_expression_to_pc): ... this and rewrite
9442 to simply find CORE_ADDR, storing this result for later
9443 conversion to SALs.
9444 (locate_first_half): Remove.
9445 (deocde_objc): Add parameter LS.
9446 Initialize new struct collect_info members.
9447 Handle minimal symbols, too.
9448 (decode_compound): Delete.
9449 (lookup_prefix_sym): Rewrite.
9450 (compare_msymbols): New function.
9451 (find_method): Rewrite.
9452 Do not call cplusplus_error.
9453 (symtabs_from_filename): Rewrite.
9454 (collect_function_symbols): Delete.
9455 (find_function_symbols): Rewrite without ARGPTR-style
9456 processing.
9457 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9458 (decode_dollar): Adapted and renamed to ...
9459 (linespec_parse_variable): ... this.
9460 (find_linespec_symbols): New function.
9461 (decode_label): Adapted and renamed to ...
9462 (find_label_symbols): ... this.
9463 (decode_digits_list_mode): Add and use LS argument.
9464 (decode_digits_ordinary): Likewise.
9465 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9466 If in list mode, allow any symbol class. Otherwise, only
9467 permit LOC_BLOCK symbols.
9468 (minsym_found): Update comments.
9469 (search_minsyms_for_name): Do not convert the matching symbol
9470 into a SAL. Simply push the symbol and objfile into the
9471 result vector.
9472 (decode_variable): Delete. Contents adapted into
9473 find_linespec_symbols.
9474
9475 * cp-support.c (SKIP_SPACE): Remove.
9476 (operator_tokens): Remove unused global.
9477 (cp_validate_operator): Remove.
9478 * cp-support.h (cp_validate_operator): Remove declaration.
9479
9480 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9481
9482 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9483 for TYPE_VPTR_FIELDNO.
9484 * valprint.c (valprint_check_validity): Make it global, move the
9485 function comment ...
9486 * value.h (valprint_check_validity): ... to this new declaration.
9487
9488 2012-04-02 Tristan Gingold <gingold@adacore.com>
9489
9490 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9491 the STATE32 api for i386 state.
9492 (i386_darwin_store_inferior_registers): Likewise.
9493
9494 2012-04-02 Tristan Gingold <gingold@adacore.com>
9495
9496 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9497 SS offset.
9498 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9499 format_string.
9500
9501 2012-04-02 Tristan Gingold <gingold@adacore.com>
9502
9503 PR gdb/13901
9504 * darwin-nat.c (darwin_execvp): Set binary preference.
9505
9506 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9507
9508 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9509
9510 2012-03-30 Tom Tromey <tromey@redhat.com>
9511
9512 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9513 of TRY_CATCH. Fix error handling.
9514 * python/py-value.c (convert_value_from_python): Move 'old'
9515 declaration to innermost scope.
9516
9517 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9518 Andrey Smirnov <andrew.smirnov@gmail.com>
9519
9520 -Wshadow warning fix.
9521 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9522 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9523 Adjust code accordingly.
9524
9525 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9526
9527 * ada-lang.c (symbol_completion_add): Rename parameter
9528 "encoded" into "encoded_p". Ajust code and documentation
9529 accordingly.
9530
9531 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9532 Andrey Smirnov <andrew.smirnov@gmail.com>
9533
9534 -Wshadow warning fix.
9535 * ada-lang.c (symbol_completion_add): Rename parameter
9536 "wild_match" into wild_match_p. Update code and documentation
9537 accordingly.
9538
9539 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9540
9541 * ada-lang.c (symbol_completion_match): Rename parameter
9542 "encoded" into "encoded_p". Ajust code and documentation
9543 accordingly.
9544
9545 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9546 Andrey Smirnov <andrew.smirnov@gmail.com>
9547
9548 -Wshadow warning fix.
9549 * ada-lang.c (symbol_completion_match): Rename parameter
9550 "wild_match" into "wild_match_p". Adjust code and function
9551 documentation accordingly.
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_encoded_symbol): Rename parameter
9558 "symbol_info" into "info". Adjust code accordingly.
9559 (ada_lookup_symbol): Likewise.
9560
9561 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9562
9563 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9564 of this function's documentation.
9565
9566 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9567 Andrey Smirnov <andrew.smirnov@gmail.com>
9568
9569 -Wshadow warning fix.
9570 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9571 variable into "wild_match_p". Adjust code accordingly.
9572
9573 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9574 Andrey Smirnov <andrew.smirnov@gmail.com>
9575
9576 -Wshadow warning fix.
9577 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9578 parameter into "wild_match_p". Adjust code accordingly.
9579 Document this parameter in the function description.
9580
9581 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9582 Andrey Smirnov <andrew.smirnov@gmail.com>
9583
9584 -Wshadow warning fix.
9585 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9586 "wild_match" parameter to "wild_match_p" (-Wshadow).
9587
9588 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9589
9590 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9591 in function documentation.
9592
9593 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9594 Andrey Smirnov <andrew.smirnov@gmail.com>
9595
9596 -Wshadow warning fix.
9597 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9598 variable into wild_match_p. Adjust code accordingly.
9599
9600 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9601 Andrey Smirnov <andrew.smirnov@gmail.com>
9602
9603 * ada-valprint.c (ada_val_print_1): Move the code handling
9604 TYPE_CODE_ENUM inside its own lexical block. Declare
9605 variables len and val there, instead of in the function's
9606 top level block. Avoid declaring deref_val again in a way
9607 that shadows another variable of the same name declared
9608 in one of the up-level blocks. Just re-use the up-level
9609 variable instead.
9610
9611 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9612
9613 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9614 Replace block_found argument by symbol_info. Adjust
9615 implementation accordingly. Add function documentation.
9616 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9617 Fix documentation.
9618 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9619 * ada-exp.y (write_object_renaming): Adjust to new
9620 ada_lookup_encoded_symbol API.
9621
9622 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9623
9624 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9625 documentation.
9626
9627 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9628
9629 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9630 (v850_register_name): Add the mpu and fpu register names.
9631 (v850e_register_name): Add the mpu and fpu register names.
9632 (v850e2_register_name): New function.
9633 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9634 bfd_mach_v850e2v3.
9635
9636 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9637
9638 * NEWS: Add entry for Ada varobj support.
9639
9640 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9641
9642 * varobj.c (default_value_is_changeable_p): New function,
9643 extracted from varobj_value_is_changeable_p. Add declaration.
9644 (ada_value_is_changeable_p): New function, extracted from
9645 varobj_value_is_changeable_p. Add declaration.
9646 (struct language_specific): New field "value_is_changeable_p".
9647 (languages): Add entries for new field.
9648 (varobj_create): Set language before calling install_new_value.
9649 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9650 "value_is_changeable_p" language callback.
9651
9652 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9653
9654 * ada-varobj.h, ada-varobj.c: New files.
9655 * Makefile.in (SFILES): Add ada-varobj.c.
9656 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9657 (COMMON_OBS): Add ada-varobj.o.
9658
9659 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9660
9661 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9662 (struct language_specific): New field "value_has_mutated".
9663 (languages): Set field "value_has_mutated" in each entry of array.
9664 (varobj_value_has_mutated): New function.
9665 (varobj_udpdate): Add handling of type mutation.
9666 (value_of_root): Add handling of type mutation.
9667 (ada_value_has_mutated): New function.
9668
9669 2012-03-28 Pedro Alves <palves@redhat.com>
9670
9671 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9672 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9673
9674 2012-03-28 Tom Tromey <tromey@redhat.com>
9675
9676 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9677 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9678 before returning.
9679
9680 2012-03-28 Tom Tromey <tromey@redhat.com>
9681
9682 * .dir-locals.el: New file.
9683
9684 2012-03-28 Pedro Alves <palves@redhat.com>
9685
9686 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9687
9688 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9689
9690 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9691 handling for r0.
9692
9693 2012-03-27 Pedro Alves <palves@redhat.com>
9694
9695 Eliminate struct ui_stream.
9696
9697 * ui-out.h (struct ui_stream): Delete.
9698 (ui_out_field_stream): Adjust prototype.
9699 (ui_out_stream_new, ui_out_stream_delete)
9700 (make_cleanup_ui_out_stream_delete): Delete declarations.
9701 * ui-out.c (ui_out_field_stream): Change prototype to take a
9702 ui_file instead of a ui_stream. Adjust.
9703 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9704 (make_cleanup_ui_out_stream_delete): Delete.
9705 * breakpoint.c (print_breakpoint_location)
9706 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9707 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9708 * disasm.c (dump_insns): Ditto.
9709 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9710 prototype.
9711 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9712 ui_stream/ui_out_stream_new.
9713 * infcmd.c (print_return_value): Ditto.
9714 * osdata.c (info_osdata_command): Don't allocate a local
9715 ui_stream.
9716 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9717 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9718 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9719 allocate a local ui_stream.
9720 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9721 instead of ui_stream/ui_out_stream_new.
9722 (list_args_or_locals): Don't allocate a local ui_stream.
9723 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9724 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9725 ui_stream/ui_out_stream_new.
9726 * cli/cli-setshow.c (do_setshow_command): Ditto.
9727
9728 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9729
9730 * arm-linux-tdep.c (arm_linux_init_abi): Call
9731 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9732 * arm-tdep.c (arm_process_record): New function.
9733 (deallocate_reg_mem): New function.
9734 (decode_insn): New function.
9735 (thumb_record_branch): New function.
9736 (thumb_record_ldm_stm_swi(): New function.
9737 (thumb_record_misc): New function.
9738 (thumb_record_ld_st_stack): New function.
9739 (thumb_record_ld_st_imm_offset): New function.
9740 (thumb_record_ld_st_reg_offset(): New function.
9741 (thumb_record_add_sub_cmp_mov): New function.
9742 (thumb_record_shift_add_sub): New function.
9743 (arm_record_coproc_data_proc): New function.
9744 (arm_record_coproc): New function.
9745 (arm_record_b_bl): New function.
9746 (arm_record_ld_st_multiple): New function.
9747 (arm_record_ld_st_reg_offset): New function.
9748 (arm_record_ld_st_imm_offset): New function.
9749 (arm_record_data_proc_imm): New function.
9750 (arm_record_data_proc_misc_ld_str): New function.
9751 (arm_record_extension_space): New function.
9752 (arm_record_strx): New function.
9753 (sbo_sbz): New function.
9754 (struct insn_decode_record): New structure for arm insn record.
9755 (REG_ALLOC): New macro for reg allocations.
9756 (MEM_ALLOC): New macro for memory allocations.
9757 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9758
9759 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9760
9761 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9762 (store_register): Likewise.
9763
9764 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9765
9766 * MAINTAINERS (Write After Approval): Add myself to the list.
9767
9768 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9769
9770 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9771 Describe also the option "auto".
9772
9773 2012-03-22 Richard Henderson <rth@redhat.com>
9774
9775 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9776 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9777
9778 2012-03-22 Richard Henderson <rth@redhat.com>
9779
9780 * jit.c (jit_read_code_entry): Compute alignment and offset of
9781 int64_t member before computing entry_size.
9782
9783 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9784
9785 Python scripting: Add new method Value.referenced_value to
9786 gdb.Value which can dereference pointer as well as reference
9787 values.
9788 * NEWS: Add entry under 'Python scripting' about the new method
9789 Value.referenced_value on gdb.Value objects.
9790 * python/py-value.c (valpy_referenced_value): New function
9791 defining a new method on gdb.Value objects which can dereference
9792 pointer and reference values.
9793
9794 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9795
9796 * MAINTAINERS (Write After Approval): Add myself to the list.
9797
9798 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9799
9800 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9801 in addition to "main".
9802
9803 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9804
9805 * expression.h (op_name): Add declaration.
9806 * expprint.c (op_name): Remove declaration. Make non-static.
9807 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9808
9809 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9810
9811 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9812 of struct siginfo.
9813 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9814 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9815 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9816 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9817 (linux_nat_get_siginfo): Likewise.
9818 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9819 (linux_nat_get_siginfo): Likewise.
9820 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9821 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9822 * procfs.c (gdb_siginfo_t): Likewise.
9823
9824 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9825
9826 * .gitignore: Ignore more files.
9827
9828 2012-03-20 Pedro Alves <palves@redhat.com>
9829
9830 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9831 returns.
9832
9833 2012-03-20 Yao Qi <yao@codesourcery.com>
9834
9835 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9836 comment.
9837
9838 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9839
9840 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9841 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9842 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9843 sect_offset.
9844 * dwarf2expr.h (cu_offset, sect_offset): New types.
9845 (struct dwarf_expr_context_funcs) <dwarf_call>
9846 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9847 sect_offset.
9848 (struct dwarf_expr_context) <len>: Improve the comment.
9849 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9850 cu_offset and sect_offset.
9851 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9852 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9853 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9854 * dwarf2loc.h: Include dwarf2expr.h.
9855 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9856 and sect_offset.
9857 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9858 Improve the comment.
9859 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9860 (struct signatured_type, struct line_header, struct partial_die_info)
9861 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9862 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9863 (get_die_type_at_offset, create_cus_from_index)
9864 (create_signatured_type_table_from_index, dw2_get_file_names)
9865 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9866 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9867 (create_debug_types_hash_table, process_psymtab_comp_unit)
9868 (load_partial_comp_unit, create_all_comp_units)
9869 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9870 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9871 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9872 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9873 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9874 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9875 (find_partial_die, read_attribute_value, lookup_die_type)
9876 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9877 (is_ref_attr): New function comment.
9878 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9879 Use cu_offset and sect_offset.
9880 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9881 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9882 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9883 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9884 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9885 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9886 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9887 sect_offset.
9888
9889 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9890
9891 Code cleanup.
9892 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9893 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9894 with xfree.
9895 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9896
9897 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9898
9899 * NEWS: Describe new options --init-command=FILE, -ix and
9900 --init-eval-command=COMMAND, -iex.
9901 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9902 CMDARG_INIT_COMMAND.
9903 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9904 "init-command", "init-eval-command", "ix" and "iex" to the variable
9905 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9906 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9907 (print_gdb_help): Describe --init-command=FILE, -ix and
9908 --init-eval-command=COMMAND, -iex.
9909
9910 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9911
9912 Code cleanup.
9913 * main.c (struct cmdarg): Move it here from main. Add more comments.
9914 (cmdarg_s, VEC (cmdarg_s)): New.
9915 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9916 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9917 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9918 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9919 of CMDARG.
9920
9921 2012-03-19 Tom Tromey <tromey@redhat.com>
9922
9923 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9924
9925 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9926
9927 PR symtab/13777
9928 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9929 GCC >=4.5.
9930
9931 2012-03-16 Chris January <chris.january@allinea.com>
9932
9933 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9934 of clear.
9935
9936 2012-03-16 Chris January <chris.january@allinea.com>
9937
9938 * source.c (add_path): Use memmove instead of strcpy because the
9939 strings overlap.
9940
9941 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9942
9943 * value.h (set_value_parent): Add declaration.
9944 * value.c (set_value_parent): New function.
9945 (value_address): If VALUE->PARENT is not NULL, then use it as
9946 the base address instead of VALUE->LOCATION.address.
9947 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9948 the same as OBJ's address. Adjust V's offset accordingly.
9949 Set V's parent.
9950
9951 2012-03-16 Gary Benson <gbenson@redhat.com>
9952
9953 PR breakpoints/10738
9954 * dwarf2read.c (use_deprecated_index_sections): New global.
9955 (struct partial_die_info): New member may_be_inlined.
9956 (read_partial_die): Set may_be_inlined where appropriate.
9957 (add_partial_subprogram): Add partial symbols for partial
9958 DIEs that may be inlined.
9959 (new_symbol_full): Add inlined subroutines to the current
9960 scope.
9961 (write_psymtabs_to_index): Bump version number.
9962 (dwarf2_read_index): Read only version 6 indices unless
9963 use_deprecated_index_sections is set.
9964 * linespec.c (symbol_and_data_callback): New structure.
9965 (iterate_inline_only): New function.
9966 (iterate_over_all_matching_symtabs): New argument
9967 "include_inline". If nonzero, also call the callback for
9968 symbols representing inlined subroutines.
9969 (lookup_prefix_sym): Pass extra argument to the above.
9970 (find_function_symbols): Likewise.
9971 (add_matching_symbols_to_info): Likewise.
9972 * NEWS: Mention that GDB can now set breakpoints on inlined
9973 functions.
9974
9975 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9976
9977 * p-typeprint.c (pascal_type_print_method_args):
9978 Fix display of parameter of methods.
9979
9980 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9981
9982 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9983 Add missing prototype.
9984
9985 2012-03-16 Yao Qi <yao@codesourcery.com>
9986 Jan Kratochvil <jan.kratochvil@redhat.com>
9987
9988 Fix false compilation warning.
9989 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9990
9991 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9992 Pedro Alves <pedro@codesourcery.com>
9993
9994 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9995 (arm_register_g_packet_guesses): New function.
9996 (arm_gdbarch_init): Don't force a target description with
9997 registers when the executable is detected as M-profile. Instead
9998 set gdbarch->tdep->is_m. Register `g' packet guesses.
9999 (_initialize_arm_tdep): Initialize the new target description.
10000 * features/arm-with-m-fpa-layout.xml: New description.
10001 * features/arm-with-m-fpa-layout.c: New, generated.
10002
10003 2012-03-15 Joel Brobecker <brobecker@adacore.com>
10004
10005 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
10006 Update function description.
10007 (insert_bp_location): Do not wipe bl->target_info out.
10008 * mem-break.c: #include "gdb_string.h".
10009 (default_memory_insert_breakpoint): Do not call target_read_memory
10010 with a pointer to the breakpoint's shadow_contents buffer. Use
10011 a local buffer instead.
10012 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
10013
10014 2012-03-15 Tom Tromey <tromey@redhat.com>
10015
10016 * NEWS: Mention "info vtbl", not "info vtable".
10017 * cp-support.c (info_vtbl_command): Fix comment.
10018 (_initialize_cp_support): Fix text.
10019
10020 2012-03-15 Tom Tromey <tromey@redhat.com>
10021
10022 * cp-valprint.c (cp_print_value_fields): Use
10023 print_function_pointer_address for vtable slot.
10024
10025 2012-03-15 Tom Tromey <tromey@redhat.com>
10026
10027 * gnu-v3-abi.c (struct value_and_voffset): New.
10028 (hash_value_and_voffset, eq_value_and_voffset)
10029 (compare_value_and_voffset, compute_vtable_size)
10030 (print_one_vtable, gnuv3_print_vtable): New functions.
10031 (init_gnuv3_ops): Initialize 'print_vtable' field.
10032 * cp-support.c (info_vtbl_command): New function.
10033 (_initialize_cp_support): Add "info vtbl".
10034 * cp-abi.h (cplus_print_vtable): Declare.
10035 (struct cp_abi_ops) <print_vtable>: New field.
10036 * cp-abi.c (cplus_print_vtable): New function.
10037 * NEWS: Update.
10038
10039 2012-03-15 Tom Tromey <tromey@redhat.com>
10040
10041 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
10042 iterate_over_symbols.
10043
10044 2012-03-14 Doug Evans <dje@google.com>
10045
10046 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
10047 DW_OP_GNU_parameter_ref.
10048
10049 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10050
10051 Fix double prompt of 'interpreter-exec mi'.
10052 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
10053 (mi_interpreter_resume): use it.
10054 (mi_execute_command_input_handler): New function.
10055 * mi/mi-main.c (mi_execute_command): Move prompt printing to
10056 mi_execute_command_input_handler.
10057
10058 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
10059
10060 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
10061 prototype.
10062 (darwin_debug_port_info): Make static.
10063 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
10064 * machoread.c (_initialize_machoread): Add prototype.
10065 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
10066 (i386_darwin_set_control, i386_darwin_get_control)
10067 i386_darwin_dr_set_addr, i386_darwin_get_addr)
10068 i386_darwin_get_status, i386_darwin_get_control):
10069 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
10070
10071 2012-03-13 Joel Brobecker <brobecker@adacore.com>
10072
10073 * ax-gdb.c (gen_usual_unary): Remove special handling of
10074 enum and bool types.
10075
10076 2012-03-13 Joel Brobecker <brobecker@adacore.com>
10077
10078 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
10079
10080 2012-03-13 Joel Brobecker <brobecker@adacore.com>
10081
10082 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
10083
10084 2012-03-13 Chris January <chris.january@allinea.com>
10085
10086 * aix-thread.c (fill_sprs): Store the floating point registers
10087 at the correct offsets into vals.
10088
10089 2012-03-13 Doug Evans <dje@google.com>
10090
10091 * NEWS: Mention symbol-reloading has been deleted.
10092 * symfile.c (symbol_reloading): Delete.
10093 (show_symbol_reloading): Delete.
10094 (_initialize_symfile): Delete set/show symbol-reloading.
10095
10096 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
10097 read_in_chain until we have successfully read it in.
10098 (load_full_comp_unit): Ditto.
10099 (read_signatured_type): Add comment.
10100
10101 2012-03-13 Chris January <chris.january@allinea.com>
10102
10103 * stabsread.c (fix_common_block): Change type of valu argument
10104 to CORE_ADDR.
10105
10106 2012-03-13 Chris January <chris.january@allinea.com>
10107
10108 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
10109 instruction.
10110
10111 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10112
10113 * common/linux-procfs.c (linux_proc_get_int): New, from
10114 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
10115 field.
10116 (linux_proc_get_tgid): Only call linux_proc_get_int.
10117 (linux_proc_get_tracerpid): New.
10118 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
10119 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
10120 linux_proc_pid_has_state.
10121 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
10122 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
10123 (linux_ptrace_attach_warnings): New.
10124 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
10125 New declaration.
10126 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
10127 (linux_nat_attach): New variables ex, buffer, message and message_s.
10128 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10129
10130 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10131
10132 * Makefile.in (linux-ptrace.o): New.
10133 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10134 from linux-nat.c.
10135 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10136 * common/linux-ptrace.c: New file.
10137 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10138 * config/arm/linux.mh: Likewise.
10139 * config/i386/linux.mh: Likewise.
10140 * config/i386/linux64.mh: Likewise.
10141 * config/ia64/linux.mh: Likewise.
10142 * config/m32r/linux.mh: Likewise.
10143 * config/m68k/linux.mh: Likewise.
10144 * config/mips/linux.mh: Likewise.
10145 * config/pa/linux.mh: Likewise.
10146 * config/powerpc/linux.mh: Likewise.
10147 * config/powerpc/ppc64-linux.mh: Likewise.
10148 * config/powerpc/spu-linux.mh: Likewise.
10149 * config/s390/s390.mh: Likewise.
10150 * config/sparc/linux.mh: Likewise.
10151 * config/sparc/linux64.mh: Likewise.
10152 * config/xtensa/linux.mh: Likewise.
10153 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10154 common/linux-procfs.c.
10155 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10156
10157 2012-03-13 Hui Zhu <teawater@gmail.com>
10158 Pedro Alves <palves@redhat.com>
10159
10160 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
10161 CREATE_BREAKPOINT_FLAGS_INSERTED.
10162 (create_breakpoint_sal, create_breakpoints_sal)
10163 (base_breakpoint_create_breakpoints_sal)
10164 (tracepoint_create_breakpoints_sal)
10165 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
10166 down.
10167 (break_command_1, handle_gnu_v3_exceptions, trace_command)
10168 (ftrace_command, strace_command): Adjust.
10169 (create_tracepoint_from_upload): Pass
10170 CREATE_BREAKPOINT_FLAGS_INSERTED.
10171 * breakpoint.h (enum breakpoint_create_flags): New.
10172 (create_breakpoint): New flags parameter.
10173 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10174 * python/py-breakpoint.c (bppy_init): Adjust.
10175 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10176 * spu-tdep.c (spu_catch_start): Adjust.
10177
10178 2012-03-13 Pedro Alves <palves@redhat.com>
10179 Hui Zhu <teawater@gmail.com>
10180 Yao Qi <yao@codesourcery.com>
10181
10182 * remote.c (struct remote_state): New field `starting_up'.
10183 (remote_start_remote): Set and clear it.
10184 (remote_can_download_tracepoint): If starting up, return false.
10185
10186 2012-03-13 Yao Qi <yao@codesourcery.com>
10187
10188 * inferior.h (struct inferior): Remove fields any_syscall_count,
10189 syscalls_counts and total_syscalls_count. Move them to new
10190 struct catch_syscall_inferior_data in breakpoint.c.
10191 * breakpoint.c: Call DEF_VEC_I(int).
10192 (struct catch_syscall_inferior_data): New.
10193 (get_catch_syscall_inferior_data): New.
10194 (catch_syscall_inferior_data_cleanup): New.
10195 (insert_catch_syscall): Update to access data in
10196 struct catch_syscall_inferior_data.
10197 (insert_catch_syscall): Likewise.
10198 (remove_catch_syscall): Likewise.
10199 (remove_catch_syscall): Likewise.
10200 (is_syscall_catchpoint_enabled): Likewise.
10201 (add_catch_command): Likewise.
10202 (_initialize_breakpoint): Register cleanup.
10203 * breakpoint.h: Removed DEF_VEC_I(int).
10204 * dwarf2loc.c: Call DEF_VEC_I(int).
10205 * mi/mi-main.c: Likewise.
10206
10207 2012-03-12 Mark Kettenis <kettenis@gnu.org>
10208
10209 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10210
10211 2012-03-12 Chris January <chris.january@allinea.com>
10212
10213 * aix-thread.c (_initialize_aix_thread): Add prototype.
10214 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10215 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10216
10217 2012-03-12 Joel Brobecker <brobecker@adacore.com>
10218
10219 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10220 include of "amd64-nat.h".
10221
10222 2012-03-12 Tom Tromey <tromey@redhat.com>
10223
10224 * buildsym.c (record_pending_block): Now static.
10225 * buildsym.h: (record_pending_block): Remove.
10226
10227 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
10228
10229 * amd64bsd-nat.c: Include amd64bsd-nat.h.
10230
10231 2012-03-09 Tom Tromey <tromey@redhat.com>
10232
10233 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10234 producer_is_gxx_lt_4_6>: New fields.
10235 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10236
10237 2012-03-09 Tom Tromey <tromey@redhat.com>
10238
10239 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10240
10241 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10242
10243 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10244 prototype.
10245
10246 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10247
10248 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10249
10250 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10251
10252 Fix -Wmissing-prototypes build.
10253 * arm-linux-nat.c (get_thread_id): Make it static.
10254 * xtensa-linux-nat.c (get_thread_id): Likewise.
10255
10256 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10257
10258 * server.c (process_point_options): If a conditional expression
10259 is found, only print a message if remote_debug is nonzero.
10260
10261 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
10262
10263 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10264 of internal error for unknown/unsupported types.
10265
10266 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10267
10268 Fix CU relative vs. absolute DIE offsets.
10269 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10270 offset to offset_in_cu.
10271 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10272 TYPE_OFFSET.
10273 (dwarf2_fetch_die_location_block): Rename parameter offset to
10274 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10275
10276 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10277
10278 * libunwind-frame.c: Rename to ...
10279 * ia64-libunwind-tdep.c: ... here.
10280 * libunwind-frame.h: Rename to ...
10281 * ia64-libunwind-tdep.h: ... here.
10282 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10283 ia64-libunwind-tdep.h.
10284 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10285 * README (--with-libunwind): Rename to ...
10286 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10287 * config.in: Regenerate.
10288 * configure: Regenerate.
10289 * configure.ac: New option --with-libunwind-ia64, make the
10290 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10291 Remove AC_DEFINE for HAVE_LIBUNWIND.
10292 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10293 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10294 Rename libunwind-frame in the general comment.
10295 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10296 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10297 Move forward declarations inside #ifndef. Rename libunwind-frame in
10298 the general comment.
10299 * ia64-tdep.c: Rename libunwind-frame.h #include to
10300 ia64-libunwind-tdep.h.
10301 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10302 (ia64_libunwind_descr): Rename libunwind-frame to
10303 ia64-libunwind-tdep in these function comments.
10304 * ia64-tdep.h: Rename libunwind-frame.h #include to
10305 ia64-libunwind-tdep.h.
10306 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10307 ia64-libunwind-tdep in that data comment.
10308
10309 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10310
10311 * libunwind-frame.h (struct frame_unwind): New declaration.
10312
10313 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10314
10315 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10316 "set breakpoint condition-evaluation" command.
10317
10318 2012-03-08 Tristan Gingold <gingold@adacore.com>
10319
10320 * sparc-stub.c: Move to stubs/
10321 * sh-stub.c: Likewise.
10322 * m68k-stub.c: Likewise.
10323 * m32r-stub.c: Likewise.
10324 * i386-stub.c: Likewise.
10325
10326 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10327
10328 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10329 linux_get_siginfo_type.
10330
10331 * m68klinux-nat.c: Include "gdb_proc_service.h".
10332 (PTRACE_GET_THREAD_AREA): Define.
10333 (ps_get_thread_area): New function.
10334
10335 2012-03-08 Yao Qi <yao@codesourcery.com>
10336
10337 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10338 `xsnprintf'.
10339 (remote_query_attached): Likewise.
10340 (remote_static_tracepoint_marker_at): Likewise.
10341 (remote_set_permissions): Likewise.
10342 (remote_detach_1, extended_remote_attach_1): Likewise.
10343 (send_g_packet, remote_vkill): Likewise.
10344 (extended_remote_disable_randomization): Likewise.
10345 (remote_add_target_side_condition): Likewise.
10346 (remote_insert_breakpoint): Likewise.
10347 (remote_remove_breakpoint): Likewise.
10348 (remote_insert_watchpoint): Likewise.
10349 (remote_remove_watchpoint): Likewise.
10350 (remote_insert_hw_breakpoint): Likewise.
10351 (remote_insert_hw_breakpoint): Likewise.
10352 (remote_remove_hw_breakpoint): Likewise.
10353 (remote_download_command_source): Likewise.
10354 (remote_download_tracepoint): Likewise.
10355 (remote_download_trace_state_variable): Likewise.
10356 (remote_disable_tracepoint): Likewise.
10357 (remote_trace_set_readonly_regions): Likewise.
10358 (remote_get_tracepoint_status): Likewise.
10359 (remote_trace_find): Likewise.
10360 (remote_get_trace_state_variable_value): Likewise.
10361 (remote_set_disconnected_tracing): Likewise.
10362 (remote_set_circular_trace_buffer): Likewise.
10363 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10364 (remote_use_agent): Likewise.
10365 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10366 Update callers.
10367
10368 2012-03-07 Pedro Alves <palves@redhat.com>
10369
10370 * NEWS: Mention QProgramSignals.
10371 * inferior.h (update_signals_program_target): Declare.
10372 * infrun.c: (update_signals_program_target): New.
10373 (handle_command): Update the target of the new program signals
10374 array changes.
10375 * remote.c (PACKET_QProgramSignals): New enum.
10376 (last_program_signals_packet): New global.
10377 (remote_program_signals): New.
10378 (remote_start_remote): Update the target with the program signals
10379 list.
10380 (remote_protocol_features): Add entry for QPassSignals.
10381 (remote_open_1): Free anc clear last_program_signals_packet.
10382 (init_remote_ops): Install remote_program_signals.
10383 * target.c (update_current_target): Adjust.
10384 (target_program_signals): New.
10385 * target.h (struct target_ops) <to_program_signals>: New field.
10386 (target_program_signals): Declare.
10387
10388 2012-03-07 Pedro Alves <palves@redhat.com>
10389
10390 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10391 extensions.
10392
10393 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10394
10395 * m68klinux-nat.c (getregs_supplies): Make static.
10396 (getfpregs_supplies): Likewise.
10397 (have_ptrace_getregs): Likewise.
10398
10399 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10400
10401 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10402 in call to get_die_type_at_offset.
10403
10404 2012-03-06 Stan Shebs <stan@codesourcery.com>
10405
10406 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10407 * mi/mi-cmd-disas.c: Ditto.
10408 * mi/mi-cmd-env.c: Ditto.
10409 * mi/mi-cmd-file.c: Ditto.
10410 * mi/mi-cmd-stack.c: Ditto.
10411 * mi/mi-cmd-target.c: Ditto.
10412 * mi/mi-cmd-var.c: Ditto.
10413 * mi/mi-cmds.c: Ditto.
10414 * mi/mi-cmds.h: Ditto.
10415 * mi/mi-console.c: Ditto.
10416 * mi/mi-getopt.c: Ditto.
10417 * mi/mi-getopt.h: Ditto.
10418 * mi/mi-interp.c: Ditto.
10419 * mi/mi-main.c: Ditto.
10420 * mi/mi-out.c: Ditto.
10421 * mi/mi-parse.c: Ditto.
10422 * mi/mi-parse.h: Ditto.
10423 * mi/mi-symbol-cmds.c: Ditto.
10424
10425 * mi/mi-getopt.h: Move mi_opt struct up.
10426 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10427 return.
10428 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10429
10430 2012-03-06 Tom Tromey <tromey@redhat.com>
10431
10432 * proc-service.c (ps_pglobal_lookup): Set the current program
10433 space.
10434
10435 2012-03-06 Pedro Alves <palves@redhat.com>
10436
10437 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10438
10439 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10440
10441 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10442
10443 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10444
10445 Code cleanup.
10446 * common/linux-osdata.c (linux_common_core_of_thread): New function
10447 comment.
10448 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10449 call by linux_common_core_of_thread.
10450 (linux_nat_core_of_thread_1): Remove.
10451 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10452 * linux-thread-db.c: Include linux-osdata.h.
10453 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10454 linux_common_core_of_thread.
10455
10456 2012-03-05 Tom Tromey <tromey@redhat.com>
10457
10458 * value.c (value_primitive_field): Don't fetch contents for
10459 non-virtual bases.
10460
10461 2012-03-05 Tom Tromey <tromey@redhat.com>
10462
10463 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10464
10465 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10466
10467 * s390-nat.c: Include "gregset.h".
10468
10469 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10470
10471 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10472 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10473 (libunwind_load): New variable so_error, use it for dlerror. Try to
10474 load also LIBUNWIND_SO_7.
10475
10476 2012-03-05 Pedro Alves <palves@redhat.com>
10477
10478 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10479 is not NULL, and remove resulting dead code.
10480
10481 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10482
10483 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10484 prologue to sh_analyze_prologue.
10485 (sh_analyze_prologue): Make better use of such an upper limit, and
10486 generally be more cautious about accessing memory.
10487
10488 2012-03-05 Tom Tromey <tromey@redhat.com>
10489
10490 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10491 _initialize_ia64_hpux_tdep.
10492
10493 2012-03-05 Pedro Alves <palves@redhat.com>
10494
10495 PR gdb/13766
10496
10497 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10498 the register state is clear, supply explicit zero, instead of
10499 marking the register unavailable.
10500
10501 2012-03-05 Tristan Gingold <gingold@adacore.com>
10502
10503 * NEWS: Mention OpenVMS ia64 new target.
10504
10505 2012-03-05 Tristan Gingold <gingold@adacore.com>
10506
10507 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10508 (ia64_unw_accessors, ia64_unw_rse_accessors)
10509 (ia64_libunwind_descr): Declare.
10510 * ia64-vms-tdep.c: New file.
10511 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10512 (ia64_libunwind_descr): Make them public.
10513 * configure.tgt: Add ia64-*-*vms*.
10514 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10515 (ALLDEPFILES): Add ia64-vms-tdep.c
10516
10517 2012-03-05 Tristan Gingold <gingold@adacore.com>
10518
10519 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10520 * remote.c (PACKET_qXfer_uib): New enum value.
10521 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10522 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10523 (_initialize_remote): Call add_packet_config_cmd for
10524 xfer:uib packet.
10525
10526 2012-03-05 Tristan Gingold <gingold@adacore.com>
10527
10528 * osabi.c (gdb_osabi_names): Add OpenVMS.
10529 (generic_elf_osabi_sniffer): Likewise.
10530 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10531
10532 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10533
10534 Removed unused code.
10535 * libunwind-frame.c (libunwind_frame_unwind)
10536 (libunwind_frame_base_address): Remove.
10537 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10538
10539 2012-03-04 Yao Qi <yao@codesourcery.com>
10540
10541 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10542 remove trailing new line.
10543 (agent_run_command, agent_run_command): Add _ markup.
10544 (agent_capability_check): Likewise.
10545
10546 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10547
10548 * breakpoint.c (set_condition_evaluation_mode): Set
10549 CONDITION_EVALUATION_MODE unconditionally.
10550
10551 2012-03-03 Yao Qi <yao@codesourcery.com>
10552
10553 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10554 * common/agent.h: Update declaration.
10555 * inf-child.c (inf_child_use_agent): New.
10556 (inf_child_can_use_agent): New.
10557 (inf_child_target): Initialize fields `to_use_agent'
10558 and `to_can_use_agent'.
10559 * agent.c (agent_new_objfile): New.
10560 (_initialize_agent): Add agent_new_objfile to new_objfile
10561 observer.
10562
10563 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10564 New.
10565 (linux_target_install_ops): Initialize field
10566 `to_static_tracepoint_markers_by_strid'.
10567 * remote.c (free_current_marker): Move it to ...
10568 * tracepoint.c (free_current_marker): ... here. New.
10569 (cleanup_target_stop): New.
10570 * tracepoint.h: Declare free_current_marker.
10571 * NEWS: Add one entry about `info static-tracepoint-marker'.
10572
10573 2012-03-03 Yao Qi <yao@codesourcery.com>
10574
10575 * common/agent.c (agent_loaded_p): New.
10576 (agent_look_up_symbols): New global.
10577 * common/agent.h: Declare agent_loaded_p.
10578
10579 2012-03-03 Yao Qi <yao@codesourcery.com>
10580
10581 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10582 (agent_capability_check, agent_capability_invalidate): New.
10583 (symbol_list): New array element.
10584 * common/agent.h (enum agent_capa): New.
10585 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10586
10587 2012-03-03 Yao Qi <yao@codesourcery.com>
10588
10589 * target.h (struct target_ops) <to_use_agent>: New field.
10590 (struct target_ops) <to_can_use_agent>: New field.
10591 (target_use_agent, target_can_use_agent): New macro.
10592 * target.c (update_current_target): Update.
10593 * remote.c: New enum `PACKET_QAgent'.
10594 (remote_protocol_features): Add a new element.
10595 (remote_use_agent, remote_can_use_agent): New.
10596 (init_remote_ops): Initialize field `can_use_agent' with
10597 remote_can_use_agent. Intiailize field `use_agent' with
10598 remote_use_agent.
10599 * common/agent.c (use_agent): New global.
10600 * common/agent.h: Declare it.
10601 * tracepoint.c (info_static_tracepoint_markers_command): Add
10602 comment.
10603 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10604 (COMMON_OBS): Add common/agent.o and agent.o
10605 (common-agent.o): New rule.
10606 * agent.c: New.
10607
10608 2012-03-03 Yao Qi <yao@codesourcery.com>
10609
10610 * common/agent.c: New.
10611 * common/agent.h: New.
10612 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10613 AC_CHECK_HEADERS.
10614 * configure, configh.in: Regenerated.
10615
10616 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10617
10618 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10619 unless it exists for this architecture.
10620
10621 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10622
10623 * language.h (struct language_defn): New "method" la_read_var_value.
10624 * findvar.c: #include "language.h".
10625 (default_read_var_value): Renames read_var_value. Rewrite
10626 function description.
10627 (read_var_value): New function.
10628 * value.h (default_read_var_value): Add prototype.
10629 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10630 New functions.
10631 (ada_language_defn): Add entry for la_read_var_value.
10632 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10633 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10634 language_defn structures to add entry for new la_read_var_value
10635 field.
10636
10637 2012-03-02 Tom Tromey <tromey@redhat.com>
10638 Pedro Alves <palves@redhat.com>
10639
10640 PR breakpoints/13776:
10641 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10642 breakpoints.
10643 (delete_longjmp_breakpoint_at_next_stop): New.
10644 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10645 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10646 before deleting the inferior. Add comments.
10647 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10648 breakpoints immediately, but only on next stop. Move that code
10649 next to where we mark other breakpoints for deletion.
10650
10651 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10652
10653 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10654 marker.
10655 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10656 violation.
10657
10658 2012-03-02 Pedro Alves <palves@redhat.com>
10659
10660 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10661
10662 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10663
10664 Fix -Wmissing-prototypes build.
10665 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10666 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10667 (gdbsim_has_memory): Likewise.
10668
10669 2012-03-02 Yao Qi <yao@codesourcery.com>
10670
10671 Fix -Wmissing-prototypes build.
10672 * charset.c (phony_iconv_open): Make static.
10673 (phony_iconv_close, phony_iconv): Likewise.
10674 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10675 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10676 prototype.
10677 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10678 * ser-mingw.c (create_select_thread): Make static.
10679 * windows-termcap.c (tgetent): New prototype.
10680 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10681
10682 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10683
10684 Fix -Wmissing-prototypes build.
10685 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10686 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10687 (_initialize_loadable): New prototypes.
10688
10689 2012-03-02 Doug Evans <dje@google.com>
10690
10691 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10692 abbrev table, read_comp_unit will do it.
10693
10694 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10695
10696 Fix -Wmissing-prototypes build.
10697 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10698 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10699 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10700 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10701 (_initialize_arm_symbian_tdep): New prototype.
10702 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10703 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10704 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10705 static.
10706 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10707 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10708 prototype.
10709 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10710 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10711 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10712 static.
10713 * moxie-tdep.c (moxie_process_record): Likewise.
10714 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10715 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10716 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10717 (_initialize_rl78_tdep): New prototype.
10718 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10719 (_initialize_rx_tdep): New prototype.
10720 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10721 (_initialize_darwin_solib): New prototype.
10722 * solib-spu.c: Include solib-spu.h.
10723 (_initialize_spu_solib): New prototype.
10724 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10725 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10726 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10727 (tic6x_software_single_step): Make it static.
10728 (_initialize_tic6x_tdep): New prototype.
10729
10730 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10731
10732 Fix -Wmissing-prototypes build.
10733 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10734 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10735
10736 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10737
10738 Fix -Wmissing-prototypes build.
10739 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10740 (frv_have_stopped_data_address): Remove.
10741
10742 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10743
10744 Fix -Wmissing-prototypes build.
10745 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10746 * sh-tdep.c: Include sh64-tdep.h.
10747 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10748 * sh64-tdep.c: Include sh64-tdep.h.
10749 * sh64-tdep.h: New file.
10750
10751 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10752
10753 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10754
10755 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10756
10757 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10758 sp_regnum once the gdbarch_init_osabi hook has been called.
10759
10760 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10761
10762 * mips-tdep.c (mips32_bc1_pc): New function.
10763 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10764 BPOSGE32 and BPOSGE64 instructions.
10765 (deal_with_atomic_sequence): Likewise.
10766 (mips32_instruction_has_delay_slot): Likewise.
10767
10768 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10769 Chris Dearman <chris@mips.com>
10770 Maciej W. Rozycki <macro@codesourcery.com>
10771 Joseph Myers <joseph@codesourcery.com>
10772
10773 * features/mips-dsp.xml: New file.
10774 * features/mips64-dsp.xml: New file.
10775 * features/mips-dsp-linux.xml: New file.
10776 * features/mips64-dsp-linux.xml: New file.
10777 * features/Makefile (WHICH): Add mips-dsp-linux and
10778 mips64-dsp-linux.
10779 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10780 * features/mips-dsp-linux.c: New file.
10781 * features/mips64-dsp-linux.c: New file.
10782 * regformats/mips-dsp-linux.dat: New file.
10783 * regformats/mips64-dsp-linux.dat: New file.
10784 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10785 registers.
10786 (mips64_linux_register_addr): Likewise.
10787 (mips64_linux_regsets_fetch_registers): Likewise.
10788 (mips64_linux_regsets_store_registers): Likewise.
10789 (mips64_linux_fetch_registers): Update call to
10790 mips64_linux_regsets_fetch_registers.
10791 (mips64_linux_store_registers): Update call to
10792 mips64_linux_regsets_store_registers.
10793 (mips_linux_read_description): Probe for DSP registers.
10794 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10795 and initialize_tdesc_mips64_dsp_linux.
10796 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10797 Remove padding of no longer used embedded register slots.
10798 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10799 (MIPS_RESTART_REGNUM): Redefine enum value.
10800 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10801 strings.
10802 (mips_tx39_reg_names): Likewise.
10803 (mips_linux_reg_names): New array of register names for Linux
10804 targets.
10805 (mips_register_name): Check for a null pointer in
10806 mips_processor_reg_names and return an empty string.
10807 (mips_register_type): Exclude embedded registers for the IRIX
10808 and Linux ABIs.
10809 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10810 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10811 DSP registers.
10812 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10813 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10814 (mips_gdbarch_init): Likewise. Initialize internal register
10815 indices for the Linux ABI. Use dynamic numbers to refer to
10816 registers, as applicable, while parsing the target description.
10817 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10818
10819 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10820
10821 * frame.h (read_frame_register_unsigned): Fix typo in function
10822 description.
10823
10824 2012-03-01 Pedro Alves <palves@redhat.com>
10825
10826 * jit-reader.in [!__cplusplus]
10827 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10828
10829 2012-03-01 Pedro Alves <palves@redhat.com>
10830
10831 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10832 * configure: Regenerate.
10833
10834 2012-03-01 Pedro Alves <palves@redhat.com>
10835
10836 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10837 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10838 (ftrace_command, strace_command): Make static.
10839 * d-lang.c (_initialize_d_language): Declare.
10840 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10841 * dwarf2loc.c (_initialize_dwarf2loc):
10842 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10843 * exec.c (exec_get_section_table): Make static.
10844 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10845 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10846 * inferior.c (remove_inferior_command, add_inferior_command)
10847 (clone_inferior_command): Make static.
10848 * linux-nat.c (linux_nat_thread_address_space)
10849 (linux_nat_core_of_thread): Make static.
10850 * linux-tdep.c (_initialize_linux_tdep): Declare.
10851 * objc-lang.c (_initialize_objc_lang): Declare.
10852 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10853 Make static.
10854 (_initialize_opencl_language): Declare.
10855 * record.c (_initialize_record): Declare.
10856 * remote.c (demand_private_info, remote_get_tib_address)
10857 (remote_supports_cond_tracepoints)
10858 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10859 Make static.
10860 * skip.c (_initialize_step_skip): Declare.
10861 * symtab.c (skip_prologue_using_lineinfo): Make static.
10862 * tracepoint.c (delete_trace_state_variable)
10863 (trace_variable_command, delete_trace_variable_command)
10864 (get_uploaded_tsv, find_matching_tracepoint_location)
10865 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10866 Make static.
10867 * value.c (pack_unsigned_long): Make static.
10868 * varobj.c (varobj_ensure_python_env): Make static.
10869 * windows-tdep.c (_initialize_windows_tdep): Declare.
10870 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10871
10872 2012-03-01 Pedro Alves <palves@redhat.com>
10873
10874 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10875 gdbarch parameter.
10876 (linux_init_abi): Install it as has_shared_address_space gdbarch
10877 callback.
10878
10879 2012-03-01 Pedro Alves <palves@redhat.com>
10880
10881 * observer.c (observer_test_first_notification_function)
10882 (observer_test_second_notification_function)
10883 (observer_test_third_notification_function): Add declarations.
10884
10885 2012-03-01 Pedro Alves <palves@redhat.com>
10886
10887 * common/signals.c (default_target_signal_to_host)
10888 (default_target_signal_from_host): Move ...
10889 * arch-utils.c: ... here.
10890 * arch-utils.h (default_target_signal_to_host)
10891 (default_target_signal_from_host): Declare.
10892
10893 * common/signals.c (target_signal_from_command): Move ...
10894 * infrun.c: ... here.
10895 * inferior.h (target_signal_from_command): Declare.
10896 * target.h (target_signal_from_command)
10897 (default_target_signal_from_host, default_target_signal_to_host):
10898 Delete declarations.
10899
10900 * common/signals.c (_initialize_signals): Delete.
10901
10902 2012-03-01 Pedro Alves <palves@redhat.com>
10903
10904 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10905 both __cplusplus and !__cplusplus.
10906
10907 2012-03-01 Pedro Alves <palves@redhat.com>
10908
10909 * psymtab.c (find_and_open_source): Delete declaration.
10910 * source.c (find_and_open_source): Move comment ...
10911 * source.h (find_and_open_source): ... to this new declaration.
10912
10913 2012-03-01 Pedro Alves <palves@redhat.com>
10914
10915 * inline-frame.c: Include inline-frame.h.
10916
10917 2012-03-01 Pedro Alves <palves@redhat.com>
10918
10919 * tui/tui-data.c (set_gen_win_origin): Delete.
10920 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10921 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10922
10923 2012-03-01 Pedro Alves <palves@redhat.com>
10924
10925 * remote.c (encode_actions): Delete declaration.
10926 * tracepoint.c (encode_actions): Make extern.
10927 * tracepoint.h (encode_actions): Declare.
10928
10929 2012-03-01 Pedro Alves <palves@redhat.com>
10930
10931 * python/py-breakpoint.c: Include python.h.
10932 * python/py-continueevent.c (create_continue_event_object): Make
10933 static.
10934 * python/py-lazy-string.c (stpy_get_type): Make static.
10935 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10936 Make static.
10937 * python/py-utils.c (unicode_to_target_python_string): Make
10938 static.
10939 * python/py-value.c: Include python.h.
10940
10941 2012-03-01 Pedro Alves <palves@redhat.com>
10942
10943 * inferior.c (delete_threads_of_inferior): Delete.
10944
10945 2012-03-01 Pedro Alves <palves@redhat.com>
10946
10947 Import fallback definitions from glibc.
10948
10949 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10950 ps_prochandle): Forward declare.
10951 (ps_err_e): Use glibc's comments.
10952 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10953 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10954 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10955 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10956 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10957 (struct ps_prochandle): Adjust comment.
10958
10959 2012-03-01 Pedro Alves <palves@redhat.com>
10960
10961 * ada-lang.c (ada_modulus_from_name): Delete.
10962 * ada-lex.l (lexer_init): Make static.
10963
10964 2012-03-01 Pedro Alves <palves@redhat.com>
10965
10966 PR gdb/13767
10967
10968 * frame.c (read_frame_register_unsigned): New.
10969 * frame.h (read_frame_register_unsigned): Declare.
10970 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10971 Handle it.
10972 (print_i387_control_word): New parameter `control_p'. Handle it.
10973 (i387_print_float_info): Handle unavailable float registers.
10974
10975 2012-03-01 Keith Seitz <keiths@redhat.com>
10976
10977 * linespec.c (decode_line_2): Sort the list of methods
10978 alphabetically before presenting the user with a selection
10979 menu.
10980
10981 2012-03-01 Doug Evans <dje@google.com>
10982
10983 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10984 has_namespace_info.
10985 (dwarf2_read_abbrevs): Remove corresponding initialization.
10986
10987 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10988
10989 * NEWS: Mention new python command class gdb.COMMAND_USER.
10990 * cli/cli-cmds.c (show_user): Print error when used on a python
10991 command.
10992 (init_cli_cmds): Update documentation strings for "show user" and
10993 "set/show max-user-call-depth" to clarify that it does not apply to
10994 python commands.
10995 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10996 error check.
10997 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10998 gdb python api.
10999 * top.c (execute_command): Only execute a user-defined command as a
11000 legacy macro if c->user_commands is set.
11001
11002 2012-03-01 Tom Tromey <tromey@redhat.com>
11003
11004 * valprint.h (struct generic_val_print_decorations): New.
11005 (generic_val_print): Declare.
11006 * valprint.c (generic_val_print): New function.
11007 * p-valprint.c (p_decorations): New global.
11008 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
11009 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
11010 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
11011 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
11012 * m2-valprint.c (m2_decorations): New global.
11013 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
11014 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
11015 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
11016 TYPE_CODE_ERROR>: Call generic_val_print.
11017 * f-valprint.c (f_decorations): New global.
11018 (f_val_print): Use print_function_pointer_address.
11019 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
11020 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
11021 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
11022 generic_val_print.
11023 * c-valprint.c (c_decorations): New global.
11024 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
11025 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
11026 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
11027 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
11028 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
11029 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
11030 case.
11031
11032 2012-03-01 Tom Tromey <tromey@redhat.com>
11033
11034 * valprint.c (val_print): Update.
11035 * p-valprint (pascal_val_print): Return void.
11036 * p-lang.h (pascal_val_print): Return void.
11037 * m2-valprint.c (m2_val_print): Return void.
11038 * m2-lang.h (m2_val_print): Return void.
11039 * language.h (struct language_defn) <la_val_print>: Return void.
11040 * language.c (unk_lang_val_print): Return void.
11041 * jv-valprint.c (java_val_print): Return void.
11042 * jv-lang.h (java_val_print): Return void.
11043 * f-valprint.c (f_val_print): Return void.
11044 * f-lang.h (f_val_print): Return void.
11045 * d-valprint.c (d_val_print): Return void.
11046 (dynamic_array_type): Update.
11047 * d-lang.h (d_val_print): Return void.
11048 * c-valprint.c (c_val_print): Return void.
11049 * c-lang.h (c_val_print): Return void.
11050 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
11051 void.
11052 * ada-lang.h (ada_val_print): Return void.
11053
11054 2012-03-01 Tom Tromey <tromey@redhat.com>
11055
11056 * value.h (val_print): Return void.
11057 * valprint.c (val_print): Return void.
11058
11059 2012-03-01 Tom Tromey <tromey@redhat.com>
11060
11061 * value.h (common_val_print): Return void.
11062 * valprint.c (common_val_print): Return void.
11063
11064 2012-03-01 Tom Tromey <tromey@redhat.com>
11065
11066 * value.h (value_print): Return void.
11067 * valprint.c (value_print): Return void.
11068 * p-valprint.c (pascal_value_print): Return void.
11069 * p-lang.h (pascal_value_print): Return void.
11070 * language.h (struct language_defn) <la_value_print>: Return
11071 void.
11072 * language.c (unk_lang_value_print): Return void.
11073 * jv-valprint.c (java_value_print): Return void.
11074 * jv-lang.h (java_value_print): Return void.
11075 * f-valprint.c (c_value_print): Don't declare.
11076 Include c-lang.h.
11077 * c-valprint.c (c_value_print): Return void.
11078 * c-lang.h (c_value_print): Return void.
11079 * ada-valprint.c (ada_value_print): Return void.
11080 * ada-lang.h (ada_value_print): Return void.
11081
11082 2012-03-01 Tom Tromey <tromey@redhat.com>
11083
11084 * value.c (value_primitive_field): Handle virtual base classes.
11085
11086 2012-03-01 Tom Tromey <tromey@redhat.com>
11087
11088 * gdbtypes.h (struct vbase): Remove.
11089
11090 2012-03-01 Tom Tromey <tromey@redhat.com>
11091
11092 * c-valprint.c (print_function_pointer_address): Move...
11093 * valprint.c: ... here. Make non-static.
11094 * m2-valprint.c (print_function_pointer_address): Remove.
11095 * valprint.h (print_function_pointer_address): Declare.
11096
11097 2012-03-01 Joel Brobecker <brobecker@adacore.com>
11098
11099 * NEWS: Document the fact that one can provide a condition when
11100 creating an Ada exception catchpoint.
11101
11102 2012-03-01 Tom Tromey <tromey@redhat.com>
11103
11104 * valprint.c (val_print_type_code_flags): Fix placement of
11105 trailing brace.
11106
11107 2012-03-01 Joel Brobecker <brobecker@adacore.com>
11108
11109 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
11110 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
11111 environment variable before calling update-copyright.
11112
11113 2012-03-01 Joel Brobecker <brobecker@adacore.com>
11114
11115 * gnulib/extra/update-copyright: Update to the latest from
11116 gnulib's git repository.
11117 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
11118 variable to 2 instead of 1.
11119
11120 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11121
11122 * varobj.c (c_value_of_variable): Remove dead code.
11123
11124 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11125
11126 * ada-lex.p (processId): Do not modify already encoded IDs.
11127 Update function documentation.
11128
11129 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11130
11131 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11132 "name" with "struct symbol *name_sym".
11133 * ada-exp.y (write_var_or_type): Update call to
11134 ada_find_renaming_symbol.
11135 "name" with "struct symbol *name_sym". Adjust Implementation
11136 accordingly. Adjust the function documentation.
11137
11138 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11139
11140 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11141 * ada-lang.c (ada_find_any_type): Add advance declaration.
11142 Make static. Replace ada_find_any_symbol by
11143 ada_find_any_type_symbol.
11144 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11145 Improve function description. Make static.
11146 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11147 Replace ada_find_any_symbol by ada_find_any_type_symbol.
11148
11149 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11150
11151 * ada-lang.c (struct tag_args): Delete.
11152 (ada_get_tsd_type): Function body moved up in source file.
11153 (ada_tag_name_1, ada_tag_name_2): Delete.
11154 (ada_get_tsd_from_tag): New function.
11155 (ada_tag_name_from_tsd): New function.
11156 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11157 to determine the tag name.
11158
11159 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11160
11161 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11162 declaration.
11163 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11164 function.
11165
11166 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11167
11168 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11169
11170 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11171
11172 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11173 full searches.
11174
11175 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11176
11177 * ada-lang.c (constrained_packed_array_type): If there is a
11178 parallel XA type, use it to determine the array index type.
11179
11180 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11181
11182 * ada-valprint.c (ada_val_print_1): If our value is a reference
11183 to an array descriptor, dereference it before converting it
11184 to a simple array.
11185
11186 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11187
11188 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11189 creating fixed value.
11190 (ada_value_ind, ada_coerce_ref, assign_component)
11191 (ada_evaluate_subexp): Remove call to unwrap_value before
11192 call to ada_to_fixed_value.
11193
11194 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11195
11196 * ada-lang.c (to_fixed_array_type): Set result's type name.
11197
11198 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11199
11200 * ada-lang.c (catch_ada_exception_command_split): Add new
11201 argument cond_string. Add support for condition at end of
11202 "catch exception" commands.
11203 (ada_decode_exception_location): Add new argument cond_string.
11204 Update call to catch_ada_exception_command_split.
11205 (create_ada_exception_catchpoint): Add new argument cond_string.
11206 Set the breakpoint condition if needed.
11207 (catch_ada_exception_command): Update call to
11208 ada_decode_exception_location.
11209 (ada_decode_assert_location): Add function documentation.
11210 Add support for condition at end of "catch assert" command.
11211 (catch_assert_command): Update calls to ada_decode_assert_location
11212 and create_ada_exception_catchpoint.
11213
11214 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11215
11216 Fix disp-step-syscall.exp: fork: single step over fork.
11217 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11218 (i386_linux_get_syscall_number_from_regcache): ... here, new function
11219 comment, change parameters gdbarch and ptid to regcache. Remove
11220 parameter regcache, initialize gdbarch from regcache here.
11221 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11222 New functions.
11223 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11224 instead.
11225 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11226 'syscall'. Make the 'int' check more strict.
11227
11228 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11229
11230 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11231 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11232 (i386_linux_intx80_sysenter_syscall_record): ... here.
11233 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11234 Use the renamed function name.
11235
11236 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11237
11238 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11239 * breakpoint.c (until_break_command): Likewise.
11240 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11241 * infcall.c (call_function_by_hand): Likewise.
11242 * infcmd.c (finish_forward): Likewise.
11243 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11244
11245 2012-02-28 Tristan Gingold <gingold@adacore.com>
11246
11247 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11248 avoid variable assignments inside condition.
11249
11250 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11251
11252 Fix static analysis issue found by cppcheck.
11253 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11254 uninitialized BUF for size 2.
11255
11256 2012-02-27 Chris Dearman <chris@mips.com>
11257 Nathan Froyd <froydnj@codesourcery.com>
11258 Maciej W. Rozycki <macro@codesourcery.com>
11259
11260 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11261 (mips16_instruction_has_delay_slot): Likewise.
11262 (mips_segment_boundary): Likewise.
11263 (mips_adjust_breakpoint_address): Likewise.
11264 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11265
11266 2012-02-27 Maciej W. Rozycki <macro@mips.com>
11267 Maciej W. Rozycki <macro@codesourcery.com>
11268
11269 * infrun.c (handle_inferior_event): Don't proceed through
11270 shared library trampolines if stepping at the machine
11271 instruction level.
11272
11273 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11274
11275 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11276 too.
11277
11278 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11279
11280 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11281 (sh_stub_unwind_sniffer): New functions.
11282 (sh_stub_unwind): New variable.
11283 (sh_gdbarch_init): Wire everything.
11284
11285 2012-02-27 Pedro Alves <palves@redhat.com>
11286
11287 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11288 (linux_nat_post_attach_wait): Adjust to use
11289 linux_proc_pid_is_stopped.
11290 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11291 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11292 based on pid_is_stopped from both linux-nat.c and
11293 gdbserver/linux-low.c, and renamed.
11294
11295 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11296
11297 * remote.c (remote_watchpoint_addr_within_range): New function.
11298 (init_remote_ops): Use it.
11299
11300 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11301
11302 * target.h (target_watchpoint_addr_within_range): Document macro.
11303
11304 2012-02-24 Pedro Alves <palves@redhat.com>
11305
11306 * stack.c (set_last_displayed_sal): Issue internal_error instead
11307 of warning, and issue it after clearing the last displayed sal.
11308
11309 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11310 Pedro Alves <palves@redhat.com>
11311
11312 * breakpoint.c (until_break_command): Install breakpoints after
11313 all frame manipulations.
11314
11315 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11316
11317 * remote.c (remote_supports_cond_breakpoints): New forward
11318 declaration.
11319 (remote_add_target_side_condition): New function.
11320 (remote_insert_breakpoint): Add target-side breakpoint
11321 conditional if supported.
11322 (remote_insert_hw_breakpoint): Likewise.
11323 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11324 hook.
11325
11326 * target.c (update_current_target): Inherit
11327 to_supports_evaluation_of_breakpoint_conditions.
11328 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11329
11330 * target.h (struct target_ops)
11331 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11332 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11333
11334 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11335 (condition_evaluation_both, condition_evaluation_auto,
11336 condition_evaluation_host, condition_evaluation_target,
11337 condition_evaluation_enums, condition_evaluation_mode_1,
11338 condition_evaluation_mode): New static globals.
11339 (translate_condition_evaluation_mode): New function.
11340 (breakpoint_condition_evaluation_mode): New function.
11341 (gdb_evaluates_breakpoint_condition_p): New function.
11342 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11343 (mark_breakpoint_modified): New function.
11344 (mark_breakpoint_location_modified): New function.
11345 (set_condition_evaluation_mode): New function.
11346 (show_condition_evaluation_mode): New function.
11347 (bp_location_compare_addrs): New function.
11348 (get_first_location_gte_addr): New helper function.
11349 (set_breakpoint_condition): Free condition bytecode if locations
11350 has become unconditional. Call mark_breakpoint_modified (...).
11351 (condition_command): Call update_global_location_list (1) for
11352 breakpoints.
11353 (breakpoint_xfer_memory): Use is_breakpoint (...).
11354 (is_breakpoint): New function.
11355 (parse_cond_to_aexpr): New function.
11356 (build_target_condition_list): New function.
11357 (insert_bp_location): Handle target-side conditional
11358 breakpoints and call build_target_condition_list (...).
11359 (update_inserted_breakpoint_locations): New function.
11360 (insert_breakpoint_locations): Handle target-side conditional
11361 breakpoints.
11362 (bpstat_check_breakpoint_conditions): Add comment.
11363 (bp_condition_evaluator): New function.
11364 (bp_location_condition_evaluator): New function.
11365 (print_breakpoint_location): Print information on where the condition
11366 will be evaluated.
11367 (print_one_breakpoint_location): Likewise.
11368 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11369 breakpoint location.
11370 (force_breakpoint_reinsertion): New functions.
11371 (update_global_location_list): Handle target-side breakpoint
11372 conditions.
11373 Reinsert locations that are already inserted if conditions have
11374 changed.
11375 (bp_location_dtor): Free agent expression bytecode.
11376 (disable_breakpoint): Call mark_breakpoint_modified (...).
11377 Call update_global_location_list (...) with parameter 1 for breakpoints.
11378 (disable_command): Call mark_breakpoint_location_modified (...).
11379 Call update_global_location_list (...) with parameter 1 for breakpoints.
11380 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11381 (enable_command): mark_breakpoint_location_modified (...).
11382 (_initialize_breakpoint): Update documentation and add
11383 condition-evaluation breakpoint subcommand.
11384
11385 * breakpoint.h: Include ax.h.
11386 (condition_list): New data structure.
11387 (condition_status): New enum.
11388 (bp_target_info) <cond_list>: New field.
11389 (bp_location) <condition_changed, cond_bytecode>: New fields.
11390 (is_breakpoint): New prototype.
11391
11392 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11393
11394 * remote.c (remote_state) <cond_breakpoints>: New field.
11395 (PACKET_ConditionalBreakpoints): New enum.
11396 (remote_cond_breakpoint_feature): New function.
11397 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11398 (remote_supports_cond_breakpoints): New function.
11399 (_initialize_remote): Add new packet configuration for
11400 target-side conditional breakpoints.
11401
11402 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11403
11404 * NEWS: Mention target-side conditional breakpoint support,
11405 new condition-evaluation breakpoint subcommand and remote
11406 packet extensions.
11407
11408 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11409
11410 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11411 number.
11412
11413 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11414
11415 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11416 (after_prologue): Remove.
11417
11418 2012-02-23 Tom Tromey <tromey@redhat.com>
11419
11420 * jv-valprint.c (java_val_print): Remove dead code.
11421
11422 2012-02-23 Tristan Gingold <gingold@adacore.com>
11423
11424 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11425 known_tasks_element and known_tasks_length fields.
11426 (read_known_tasks_array): Change argument type. Use pointer type
11427 and number of elements from DATA. Adjust.
11428 (read_known_tasks_list): Likewise.
11429 (get_known_tasks_addr): Remove.
11430 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11431 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11432 type and array length. Merge former get_known_tasks_addr code.
11433
11434 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11435
11436 PR backtrace/13716
11437 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11438 it after set_momentary_breakpoint.
11439
11440 2012-02-22 Sterling Augustine <saugustine@google.com>
11441
11442 PR 13689:
11443 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11444
11445 2012-02-22 Gary Benson <gbenson@redhat.com>
11446
11447 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11448 (find_slot_in_mapped_hash): Likewise.
11449
11450 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11451
11452 PR build/13638
11453 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11454 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11455 * configure: Regenerate.
11456
11457 2012-02-21 Tristan Gingold <gingold@adacore.com>
11458 Pedro Alves <palves@redhat.com>
11459
11460 * ia64-tdep.c: Do not include libunwind-ia64.h.
11461 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11462 Include libunwind-ia64.h instead of libunwind.h.
11463 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11464 for libunwind.h existence.
11465 * configure, config.in: Regenerate.
11466
11467 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11468
11469 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11470 instead of value_rtti_target_type.
11471 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11472 instead of value_rtti_target_type.
11473 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11474 value_rtti_target_type.
11475 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11476 (value_rtti_target_type): Rename to ...
11477 (value_rtti_indirect_type): ... here and make it indirect. Update
11478 function comment.
11479 * value.c (readjust_indirect_value_type): New function.
11480 (coerce_ref): Support for enclosing type setting for references
11481 with readjust_indirect_value_type.
11482 * value.h (readjust_value_type): New declaration.
11483 (value_rtti_target_type): Rename to ...
11484 (value_rtti_indirect_type): ... here.
11485
11486 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11487
11488 * MAINTAINERS (Write After Approval): Add myself to the list.
11489
11490 2012-02-20 Doug Evans <dje@google.com>
11491
11492 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11493 Rename objfile_p_char parameter to objfilep.
11494 (build_objfile_section_table): Result is now void. All callers
11495 updated.
11496 * objfiles.h (struct objfile): Tweak comments, whitespace.
11497 (build_objfile_section_table): Update.
11498
11499 * elfread.c (elf_symfile_segments): Fix warning text.
11500
11501 2012-02-20 Tom Tromey <tromey@redhat.com>
11502
11503 PR gdb/13498:
11504 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11505 particular set of file names once.
11506 (dw2_map_symbol_filenames): Likewise.
11507
11508 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11509
11510 Code cleanup.
11511 * main.c (write_files): Remove the declaration.
11512 (external_editor_command): Move the declaration ...
11513 [GDBTK] (external_editor_command): ... here. Fix the comment.
11514
11515 2012-02-20 Tom Tromey <tromey@redhat.com>
11516
11517 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11518 extraneous block.
11519
11520 2012-02-20 Tristan Gingold <gingold@adacore.com>
11521
11522 * darwin-nat.h (enum darwin_msg_state): Add comments.
11523
11524 2012-02-20 Tristan Gingold <gingold@adacore.com>
11525
11526 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11527 value.
11528
11529 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11530
11531 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11532 between function description and implementation.
11533
11534 2012-02-17 Tom Tromey <tromey@redhat.com>
11535
11536 PR python/12070:
11537 * python/py-event.c (event_object_getset): New global.
11538 (event_object_type): Reference it.
11539 * python/py-type.c (field_object_getset): New global.
11540 (field_object_type): Reference it.
11541 * python/python-internal.h (gdb_py_generic_dict): Declare.
11542 * python/py-utils.c (gdb_py_generic_dict): New function.
11543
11544 2012-02-17 Tristan Gingold <gingold@adacore.com>
11545
11546 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11547
11548 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11549
11550 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11551 TYPE_CALLING_CONVENTION annotation.
11552
11553 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11554
11555 * MAINTAINERS: Add rx to target ISA section.
11556 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11557 (ALLDEPFILES): Add rx-tdep.c.
11558
11559 2012-02-16 Tom Tromey <tromey@redhat.com>
11560
11561 * symfile.c (symbol_file_add_main_1): Use inferior's
11562 symfile_flags.
11563 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11564 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11565 inferior.
11566 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11567 inferior.
11568 (follow_exec): Use inferior's symfile_flags.
11569 * inferior.h (struct inferior) <symfile_flags>: New field.
11570
11571 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11572
11573 PR gdb/9734:
11574 * remote-sim.c (gdbsim_create_inferior): Call error() when
11575 sim_create_inferior() fails.
11576
11577 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11578
11579 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11580
11581 2012-02-16 Tom Tromey <tromey@redhat.com>
11582
11583 PR c++/13653:
11584 * thread.c (struct current_thread_cleanup) <was_removable>: New
11585 field.
11586 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11587 (make_cleanup_restore_current_thread): Initialize new field.
11588
11589 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11590
11591 * MAINTAINERS: Add rl78 to target ISA section.
11592 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11593 (ALLDEPFILES): Add rl78-tdep.c.
11594 * NEWS: Mention rl78 as a new target.
11595
11596 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11597
11598 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11599 data.
11600 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11601
11602 2012-02-15 Tom Tromey <tromey@redhat.com>
11603
11604 PR gdb/12659:
11605 * infcmd.c (registers_info): Print just the current register's
11606 name.
11607
11608 2012-02-15 Tom Tromey <tromey@redhat.com>
11609
11610 * python/py-symbol.c (sympy_value): Use _().
11611
11612 2012-02-15 Pedro Alves <palves@redhat.com>
11613
11614 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11615 output to be like native targets'.
11616 (remote_pid_to_str): Special case the null ptid.
11617
11618 2012-02-14 Stan Shebs <stan@codesourcery.com>
11619
11620 * NEWS: Mention enable count command.
11621 * breakpoint.h (struct breakpoint): New field enable_count.
11622 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11623 (enable_breakpoint): Add arg to call.
11624 (struct disp_data): New struct.
11625 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11626 (do_map_enable_once_breakpoint): Create a struct and pass it.
11627 (do_map_enable_delete_breakpoint): Ditto.
11628 (do_map_enable_count_breakpoint): New function.
11629 (enable_count_command): New function.
11630 (bpstat_stop_status): Decrement enable_count.
11631 (print_one_breakpoint_location): Report enable count.
11632 (_initialize_breakpoint): Add enable count command.
11633
11634 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11635
11636 * rl78-tdep.c (reggroups.h): Include.
11637 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11638 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11639 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11640 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11641 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11642 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11643 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11644 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11645 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11646 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11647 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11648 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11649 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11650 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11651 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11652 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11653 beginning of register list.
11654 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11655 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11656 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11657 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11658 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11659 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11660 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11661 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11662 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11663 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11664 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11665 the pseudo registers. Rearrange other pseudo registers too so
11666 that the bank registers appear at the end.
11667 (rl78_register_type): Account for the fact that the byte sized
11668 bank registers are now pseudo-registers.
11669 (rl78_register_name): Rearrange the register name array. Make
11670 initial set of raw banked registers inaccessible.
11671 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11672 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11673 case for copying bytes back and forth between raw and pseudo
11674 versions of the banked registers. Update other cases to reflect
11675 the changed names.
11676 (rl78_return_value): Update to account for changed names of
11677 raw registers.
11678 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11679 rl78_register_sim_regno().
11680
11681 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11682
11683 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11684 the name parameter being passed to find_pc_partial_function().
11685
11686 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11687
11688 * MAINTAINERS: Step down from being ia64 target maintainer.
11689
11690 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11691
11692 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11693 compilation warning.
11694
11695 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11696
11697 Fix crash on loaded shlibs without loaded exec_bfd.
11698 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11699 (set_section_command): Replace exec_bfd by p->bfd.
11700
11701 2012-02-10 Tom Tromey <tromey@redhat.com>
11702
11703 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11704 when we have a C++ qualified name.
11705
11706 2012-02-10 Pedro Alves <palves@redhat.com>
11707
11708 * inferior.c (inferior_pid_to_str): New.
11709 (print_inferior, inferior_command): Use it.
11710
11711 2012-02-10 Pedro Alves <palves@redhat.com>
11712
11713 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11714 the test CFLAGS.
11715 * configure: Regenerate.
11716
11717 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11718
11719 * linespec.c (decode_line_internal): Fix comment correctness.
11720
11721 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11722
11723 PR gdb/12953
11724 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11725 * amd64bsd-nat.c: Add support for debug registers (adapted from
11726 i386bsd-nat.c).
11727 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11728 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11729 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11730 (amd64bsd_dr_get_control): New functions.
11731 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11732 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11733 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11734 watchpoints initialization.
11735 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11736
11737 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11738
11739 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11740 flds_bnds.fields.
11741 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11742
11743 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11744
11745 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11746
11747 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11748
11749 * language.h (symbol_name_cmp_ftype): Renames
11750 symbol_name_match_p_ftype.
11751 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11752 la_get_symbol_name_match_p.
11753 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11754 ada_get_symbol_name_match_p. Update comment.
11755 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11756 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11757 Renames symbol_name_match_p. Update field type.
11758 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11759 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11760 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11761 "la_get_symbol_name_cmp" in comments.
11762 * language.c: Likewise.
11763
11764 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11765
11766 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11767 %eflags offset.
11768 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11769 (amd64_sol2_gregset32_reg_offs): Likewise.
11770
11771 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11772
11773 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11774 of the returned BFD is allocated by GDB.
11775
11776 2012-02-07 Tom Tromey <tromey@redhat.com>
11777
11778 PR python/12027:
11779 * python/python-internal.h (frame_object_type): Declare.
11780 * python/py-symbol.c (sympy_needs_frame): New function.
11781 (sympy_value): New function.
11782 (symbol_object_getset): Add "needs_frame".
11783 (symbol_object_methods): Add "value".
11784 * python/py-frame.c (frame_object_type): No longer static.
11785
11786 2012-02-07 Tom Tromey <tromey@redhat.com>
11787
11788 PR python/13599:
11789 * python/py-symbol.c (sympy_line): New function.
11790 (symbol_object_getset): Add "line".
11791
11792 2012-02-07 Tom Tromey <tromey@redhat.com>
11793
11794 * charset.c (find_charset_names): Check 'in' against NULL.
11795
11796 2012-02-06 Doug Evans <dje@google.com>
11797
11798 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11799 and fields.name members from char * to const char *. All uses updated.
11800 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11801 from char * to const char *. All uses updated.
11802 (type_name_no_tag): Update.
11803 (lookup_unsigned_typename, lookup_signed_typename): Update.
11804 * gdbtypes.c (type_name_no_tag): Change result type
11805 from char * to const char *. All callers updated.
11806 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11807 name parameter from char * to const char *.
11808 * symtab.h (struct cplus_specific): Change type of demangled_name
11809 member from char * to const char *. All uses updated.
11810 (struct general_symbol_info): Change type of name and
11811 mangled_lang.demangled_name members from char * to const char *.
11812 All uses updated.
11813 (symbol_get_demangled_name, symbol_natural_name): Update.
11814 (symbol_demangled_name, symbol_search_name): Update.
11815 * symtab.c (symbol_get_demangled_name): Change result type
11816 from char * to const char *. All callers updated.
11817 (symbol_natural_name, symbol_demangled_name): Ditto.
11818 (symbol_search_name): Ditto.
11819 (completion_list_add_name): Change type of symname,sym_text,
11820 text,word parameters from char * to const char *.
11821 (completion_list_objc_symbol): Change type of sym_text,
11822 text,word parameters from char * to const char *.
11823 * ada-lang.c (find_struct_field): Change type of name parameter
11824 from char * to const char *.
11825 (encoded_ordered_before): Similarly for N0,N1 parameters.
11826 (old_renaming_is_invisible): Similarly for function_name parameter.
11827 (ada_type_name): Change result type from char * to const char *.
11828 All callers updated.
11829 * ada-lang.h (ada_type_name): Update.
11830 * buildsym.c (hashname): Change type of name parameter
11831 from char * to const char *.
11832 * buildsym.h (hashname): Update.
11833 * dbxread.c (end_psymtab): Change type of include_list parameter
11834 from char ** to const char **.
11835 * dwarf2read.c (determine_prefix): Change result type
11836 from char * to const char *. All callers updated.
11837 * f-lang.c (find_common_for_function): Change type of name, funcname
11838 parameters from char * to const char *.
11839 * f-lang.c (find_common_for_function): Update.
11840 * f-valprint.c (list_all_visible_commons): Change type of funcname
11841 parameters from char * to const char *.
11842 * gdbarch.sh (static_transform_name): Change type of name parameter
11843 and result from char * to const char *.
11844 * gdbarch.c: Regenerate.
11845 * gdbarch.h: Regenerate.
11846 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11847 of name parameter from char * to const char *.
11848 * jv-lang.c (java_primitive_type_from_name): Ditto.
11849 (java_demangled_signature_length): Similarly for signature parameter.
11850 (java_demangled_signature_copy): Ditto.
11851 (java_demangle_type_signature): Ditto.
11852 * jv-lang.h (java_primitive_type_from_name): Update.
11853 (java_demangle_type_signature): Update.
11854 * objc-lang.c (specialcmp): Change type of a,b parameters
11855 from char * to const char *.
11856 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11857 from char * to const char *. All callers updated.
11858 * p-lang.h (is_pascal_string_type): Update.
11859 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11860 of name parameter from char * to const char *.
11861 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11862 * utils.c (fprintf_symbol_filtered): Ditto.
11863 * defs.h (fprintf_symbol_filtered): Update.
11864 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11865 * stabsread.h (end_psymtab): Update.
11866 * stack.c (find_frame_funname): Change type of funname parameter
11867 from char ** to const char **.
11868 * stack.h (find_frame_funname): Update.
11869 * typeprint.c (type_print): Change type of varstring parameter
11870 from char * to const char *.
11871 * value.h (type_print): Update.
11872 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11873 from char * to const char *. All callers updated.
11874 (xcoff_end_psymtab): Change type of include_list parameter
11875 from char ** to const char **. All callers updated.
11876 (swap_sym): Similarly for name parameter. All callers updated.
11877 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11878 Use xstrdup.
11879 (process_coff_symbol): Use xstrdup.
11880 * stabsread.c (stabs_method_name_from_physname): Renamed from
11881 update_method_name_from_physname. Change result type from void
11882 to char *. All callers updated.
11883 (read_member_functions): In has_destructor case, store name in objfile
11884 obstack instead of malloc space. In !has_stub case, fix mem leak.
11885
11886 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11887
11888 * configure: Rebuild.
11889 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11890 LDFLAGS.
11891
11892 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11893
11894 * configure.tgt (rl78-*-elf): New target.
11895 * rl78-tdep.c: New file.
11896
11897 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11898
11899 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11900 and continue the loop. Add QUIT statement.
11901
11902 2012-02-03 Tom Tromey <tromey@redhat.com>
11903
11904 PR gdb/13596:
11905 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11906 bfd_lookup_symbol_from_symtab.
11907 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11908 gdb_bfd_lookup_symbol_from_symtab.
11909
11910 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11911
11912 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11913 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11914 symbol. Add assertion that sym2 is never NULL.
11915
11916 2012-02-02 Doug Evans <dje@google.com>
11917
11918 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11919 "name" parameter to const char ** from char **. All callers updated.
11920 (find_pc_partial_function): Ditto.
11921 (cache_pc_function_name): Change type to const char * from char *.
11922 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11923 (find_pc_partial_function): Update.
11924 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11925 type of "name" parameter to const char * from char *.
11926 All uses updated.
11927 * arch-utils.c (generic_in_solib_return_trampoline): Change
11928 type of "name" parameter to const char * from char *.
11929 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11930 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11931 type of "name" parameter to const char * from char *.
11932 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11933 * gdbarch.c: Regenerate.
11934 * gdbarch.h: Regenerate.
11935 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11936 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11937 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11938 type of "name" parameter to const char * from char *.
11939 * skip.c (skip_function_pc): Ditto.
11940 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11941 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11942 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11943 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11944 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11945 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11946 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11947 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11948 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11949
11950 2012-02-02 Pedro Alves <palves@redhat.com>
11951
11952 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11953 the current inferior has no execution. Make sure the current
11954 remote process matches gdb's current inferior.
11955
11956 2012-02-02 Tom Tromey <tromey@redhat.com>
11957
11958 PR gdb/13405:
11959 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11960 read-only memory.
11961
11962 2012-02-02 Tom Tromey <tromey@redhat.com>
11963
11964 PR gdb/9307:
11965 * symtab.c (lookup_language_this): Set block_found.
11966
11967 2012-02-01 Tom Tromey <tromey@redhat.com>
11968
11969 PR gdb/13431:
11970 * jit.c (struct jit_inferior_data): Rewrite.
11971 (struct jit_objfile_data): New.
11972 (get_jit_objfile_data): New function.
11973 (add_objfile_entry): Update.
11974 (jit_read_descriptor): Return int. Replace descriptor_addr
11975 argument with inf_data. Update. Don't call error.
11976 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11977 descriptor here.
11978 (jit_inferior_init): Don't look up descriptor. Don't call error.
11979 (jit_reset_inferior_data_and_breakpoints)
11980 (jit_inferior_created_observer): Remove.
11981 (jit_inferior_exit_hook): Update.
11982 (jit_executable_changed_observer): Remove.
11983 (jit_event_handler): Update.
11984 (free_objfile_data): Reset inferior data if needed.
11985 (_initialize_jit): Update.
11986
11987 2012-02-01 Tom Tromey <tromey@redhat.com>
11988
11989 * jit.c (bfd_open_from_target_memory): Move higher in file.
11990
11991 2012-02-01 Tristan Gingold <gingold@adacore.com>
11992
11993 * libunwind-frame.c (libunwind_load): Display message if dlopen
11994 failed.
11995
11996 2012-02-01 Gary Benson <gbenson@redhat.com>
11997
11998 * symtab.h (symbol_found_callback_ftype): New typedef.
11999 (iterate_over_symbols): Use the above.
12000 * symtab.c (iterate_over_symbols): Likewise.
12001 * language.h (language_defn->la_iterate_over_symbols): Likewise.
12002 * ada-lang.c (ada_iterate_over_symbols): Likewise.
12003 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
12004 (iterate_name_matcher): Document return values.
12005 (collect_one_symbol): Likewise.
12006 (collect_function_symbols): Likewise.
12007 (collect_symbols): Likewise.
12008
12009 2012-02-01 Tom Tromey <tromey@redhat.com>
12010
12011 * ada-lang.c (resolve_subexp): Update.
12012 (ada_lookup_symbol_list): Add 'full_search' argument.
12013 (ada_iterate_over_symbols): Pass 0 as full_search argument to
12014 ada_lookup_symbol_list.
12015 (ada_lookup_encoded_symbol): Update.
12016 (get_var_value): Update.
12017 * ada-exp.y (block_lookup): Update.
12018 (write_var_or_type): Update.
12019 (write_name_assoc): Update.
12020 * ada-lang.h (ada_lookup_symbol_list): Update.
12021
12022 2012-01-31 Tom Tromey <tromey@redhat.com>
12023
12024 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
12025 comment.
12026
12027 2012-01-31 Doug Evans <dje@google.com>
12028
12029 * symtab.h: Remove outdated comment.
12030 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
12031
12032 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
12033
12034 Fix build error in Darwin port.
12035 * i386-darwin-nat.c: Include i386-nat.h.
12036
12037 2012-01-30 Tom Tromey <tromey@redhat.com>
12038
12039 PR breakpoints/13568:
12040 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
12041 argument. Check for recursive includes.
12042 (dwarf_decode_macros): Create an include hash.
12043
12044 2012-01-30 Michael Eager <eager@eagercon.com>
12045
12046 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
12047 * ppc-linux-tdep.c: Include glibc-tdep.h.
12048 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
12049 (powerpc_linux_in_plt_stub): New function.
12050 (powerpc_linux_in_dynsym_resolve_code): New function.
12051 (ppc_skip_trampoline_code): New function.
12052 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
12053 Use glibc_skip_solib_resolver.
12054
12055 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12056
12057 Code cleanup: Make 1440 bytes of data segment read-only.
12058 * arch-utils.c (endian_enum): Make it const char *const [].
12059 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
12060 Likewise.
12061 * breakpoint.c (always_inserted_enums): Likewise.
12062 * cli/cli-cmds.c (script_ext_enums): Likewise.
12063 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
12064 enumlist parameter const char *const *.
12065 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
12066 const char *const *.
12067 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
12068 parameter const char *const *.
12069 * cris-tdep.c (cris_modes): Make it const char *const [].
12070 * filesystem.c (target_file_system_kinds): Likewise.
12071 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
12072 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
12073 (can_use_displaced_stepping_enum, scheduler_enums)
12074 (exec_direction_names): Likewise.
12075 * language.c (_initialize_language): Make the type_or_range_names and
12076 case_sensitive_names variables const char *const [].
12077 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
12078 * python/python.c (python_excp_enums): Likewise.
12079 * remote.c (interrupt_sequence_modes): Likewise.
12080 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
12081 * serial.c (logbase_enums): Likewise.
12082 * sh-tdep.c (sh_cc_enum): Likewise.
12083 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
12084 Likewise.
12085 * symtab.c (multiple_symbols_modes): Likewise.
12086 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
12087 Likewise.
12088 * utils.c (internal_problem_modes): Likewise.
12089
12090 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
12091
12092 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
12093 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
12094 result.
12095
12096 2012-01-27 Doug Evans <dje@google.com>
12097
12098 * configure.ac (with_python): Fix absolute path handling for win32.
12099 * configure: Regenerate.
12100
12101 2012-01-26 Doug Evans <dje@google.com>
12102
12103 * symtab.c: Whitespace cleanup, no code changes.
12104
12105 * symtab.c (lookup_symbol_in_language): Improve comment.
12106 (lookup_symbol_aux): Fix comment.
12107
12108 * psymtab.c (add_psymbol_to_list): Result is now "void".
12109 * psympriv.h (add_psymbol_to_list): Update.
12110
12111 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
12112
12113 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12114
12115 Do not open script filenames twice.
12116 * cli/cli-cmds.c (source_script_from_stream): Pass to
12117 source_python_script also STREAM.
12118 * python/py-auto-load.c (source_section_scripts): Pass to
12119 source_python_script_for_objfile also STREAM.
12120 (auto_load_objfile_script): Pass to source_python_script_for_objfile
12121 also INPUT.
12122 * python/python-internal.h (source_python_script_for_objfile): New
12123 parameter file, rename parameter file to filename.
12124 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
12125 instead if !_WIN32. Update the function comment.
12126 (source_python_script, source_python_script_for_objfile)
12127 (source_python_script): New parameter file, rename parameter file to
12128 filename. Pass FILENAME to python_run_simple_file.
12129 * python/python.h (source_python_script): New parameter file, rename
12130 parameter file to filename.
12131
12132 2012-01-26 Pedro Alves <palves@redhat.com>
12133
12134 * corelow.c (core_has_fake_pid): Delete.
12135 (core_close): Delete references to `core_has_fake_pid'.
12136 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12137 (core_open): Delete references to `core_has_fake_pid'.
12138 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12139 the removed global.
12140
12141 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12142
12143 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12144 Remove language parameter from name_matcher. Adjust the comment.
12145 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12146 Remove language parameter.
12147 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12148 * linespec.c (iterate_name_matcher): Likewise.
12149 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12150 name_matcher. Adjust call accordingly.
12151 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12152 (maintenance_check_symtabs): Adjust type of parameter "fun".
12153 * psymtab.h (maintenance_check_symtabs): Likewise.
12154
12155 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12156
12157 * language.h (symbol_name_match_p_ftype): New typedef.
12158 (struct language_defn): Replace field la_symbol_name_compare
12159 by la_get_symbol_name_match_p.
12160 * ada-lang.c (ada_get_symbol_name_match_p): New function.
12161 (ada_language_defn): Use it.
12162 * linespec.c (struct symbol_matcher_data): New type.
12163 (iterate_name_matcher): Rewrite.
12164 (iterate_over_all_matching_symtabs): Pass a pointer to
12165 a symbol_matcher_data struct to expand_symtabs_matching
12166 instead of just the lookup name.
12167 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12168 opencl-lang.c, p-lang.c, language.c: Delete field
12169 la_symbol_name_compare, and replace by NULL for new field
12170 la_get_symbol_name_match_p.
12171 * symfile.h (struct quick_symbol_functions): Update comment.
12172
12173 2012-01-25 Tom Tromey <tromey@redhat.com>
12174
12175 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12176 dereferencing.
12177
12178 2012-01-24 Tom Tromey <tromey@redhat.com>
12179
12180 PR symtab/12406:
12181 * solib.c (update_solib_list): Update the program space's
12182 added_solibs and deleted_solibs fields.
12183 * progspace.h (struct program_space) <added_solibs,
12184 deleted_solibs>: New fields.
12185 (clear_program_space_solib_cache): Declare.
12186 * progspace.c (release_program_space): Call
12187 clear_program_space_solib_cache.
12188 (clear_program_space_solib_cache): New function.
12189 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12190 bpstat_stop_status. Use handle_solib_event.
12191 * breakpoint.c: Include gdb_regex.h.
12192 (print_solib_event): New function.
12193 (bpstat_print): Use print_solib_event.
12194 (bpstat_stop_status): Add special case for bp_shlib_event.
12195 (handle_solib_event): New function.
12196 (bpstat_what): Use handle_solib_event.
12197 (struct solib_catchpoint): New.
12198 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12199 (breakpoint_hit_catch_solib, check_status_catch_solib)
12200 (print_it_catch_solib, print_one_catch_solib)
12201 (print_mention_catch_solib, print_recreate_catch_solib): New
12202 functions.
12203 (catch_solib_breakpoint_ops): New global.
12204 (catch_load_or_unload, catch_load_command_1)
12205 (catch_unload_command_1): New functions.
12206 (internal_bkpt_check_status): Add special case for
12207 bp_shlib_event.
12208 (internal_bkpt_print_it): Use print_solib_event.
12209 (initialize_breakpoint_ops): Initialize
12210 catch_solib_breakpoint_ops.
12211 (_initialize_breakpoint): Register "catch load" and "catch
12212 unload".
12213 * breakpoint.h (handle_solib_event): Declare.
12214 * NEWS: Add entry for "catch load" and "catch unload".
12215
12216 2012-01-24 Tom Tromey <tromey@redhat.com>
12217
12218 * ada-lang.c: Include gdb_vecs.h.
12219 * charset.c: Include gdb_vecs.h.
12220 * tracepoint.h: Include gdb_vecs.h.
12221 * gdb_vecs.h: New file.
12222
12223 2012-01-24 Pedro Alves <pedro@codesourcery.com>
12224
12225 * breakpoint.c (breakpoint_hit_catch_fork)
12226 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12227 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12228 * infrun.c (inferior_has_forked, inferior_has_vforked)
12229 (inferior_has_execd, inferior_has_called_syscall): Delete.
12230 (handle_syscall_event): Get syscall_number from the execution
12231 control state's wait status.
12232 (wait_for_inferior): Don't clear syscall_number.
12233
12234 2012-01-24 Pedro Alves <palves@redhat.com>
12235
12236 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12237 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12238 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12239 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12240 `ws' parameter.
12241 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12242 false for events other than TARGET_SIGNAL_TRAP.
12243 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12244 Add `ws' parameter.
12245 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12246 events other than TARGET_SIGNAL_TRAP.
12247 (tracepoint_breakpoint_hit): Add `ws' parameter.
12248 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12249 parameter.
12250 (bpstat_stop_status): Same.
12251 (pc_at_non_inline_function): Same.
12252 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12253 to pass the current event's waitstatus to bpstat_stop_status
12254 and pc_at_non_inline_function.
12255
12256 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12257
12258 Code cleanup.
12259 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12260 Update the function comment for it.
12261 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12262 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12263 for STREAM.
12264
12265 2012-01-24 Pedro Alves <palves@redhat.com>
12266
12267 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12268 outside `bs->stop' block.
12269 (bpstat_what): Rework bp_shlib_event handling.
12270 (internal_bkpt_check_status): If the breakpoint is a
12271 bp_shlib_event, then set bs->stop and bs->print if
12272 stop_on_solib_events is set.
12273
12274 2012-01-24 Gary Benson <gbenson@redhat.com>
12275
12276 Delete #if 0'd out code.
12277 * stack.c (print_frame_label_vars): Remove.
12278 (catch_info): Likewise.
12279 (_initialize_stack): Remove "info catch" command.
12280 * NEWS: Mention the above.
12281
12282 2012-01-24 Pedro Alves <palves@redhat.com>
12283
12284 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12285 it.
12286 (remote_notice_new_inferior): If the remote end doesn't support
12287 the multiprocess extensions, then the PID is fake.
12288 (add_current_inferior_and_thread): New.
12289 (remote_start_remote): Use it.
12290 (extended_remote_attach_1): Adjust.
12291 (extended_remote_create_inferior_1): Use
12292 add_current_inferior_and_thread.
12293
12294 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12295
12296 Fix watchpoints to be specific for each inferior.
12297 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12298 current_program_space.
12299 * i386-nat.c (i386_inferior_data_cleanup): New.
12300 (i386_inferior_data_get): Replace variable inf_data_local by an
12301 inferior_data call.
12302 (i386_use_watchpoints): Initialize i386_inferior_data.
12303 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12304 specific iterate_over_lwps.
12305
12306 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12307
12308 Fix watchpoints across inferior fork.
12309 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12310 comment for linux_nat_iterate_watchpoint_lwps.
12311 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12312 linux_nat_iterate_watchpoint_lwps.
12313 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12314 * i386-linux-nat.c (update_debug_registers_callback): Update the
12315 comment for linux_nat_iterate_watchpoint_lwps.
12316 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12317 linux_nat_iterate_watchpoint_lwps.
12318 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12319 * i386-nat.c: Include inferior.h.
12320 (dr_mirror): Remove.
12321 (i386_inferior_data, struct i386_inferior_data)
12322 (i386_inferior_data_get): New.
12323 (i386_debug_reg_state): Use i386_inferior_data_get.
12324 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12325 (i386_insert_watchpoint, i386_remove_watchpoint)
12326 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12327 (i386_remove_hw_breakpoint): New variable state, use
12328 i386_debug_reg_state instead of DR_MIRROR.
12329 * linux-nat.c (delete_lwp): New declaration.
12330 (num_lwps): Move here from downwards.
12331 (delete_lwp_cleanup): New.
12332 (linux_child_follow_fork): Create new child_lp, call
12333 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12334 PTRACE_DETACH.
12335 (num_lwps): Move upwards.
12336 (linux_nat_iterate_watchpoint_lwps): New.
12337 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12338 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12339
12340 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12341
12342 GDB 7.4 released.
12343
12344 2012-01-23 Pedro Alves <palves@redhat.com>
12345
12346 * top.c (caution): Rename to ...
12347 (confirm): ... this.
12348 (show_caution): Rename to ...
12349 (show_confirm): ... this.
12350 (quit_cover): Adjust.
12351 (init_main): Adjust.
12352 * top.h (caution): Rename to ...
12353 (confirm): ... this.
12354 * utils.c (internal_vproblem, defaulted_query): Adjust.
12355
12356 2012-01-23 Pedro Alves <palves@redhat.com>
12357
12358 * top.c (caution): Update comment.
12359 (execute_command): Don't consider the current value of `caution'.
12360
12361 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12362
12363 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12364
12365 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12366
12367 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12368 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12369 * target.c (target_fileio_pwrite): Remove buffer address from
12370 debug output.
12371 (target_fileio_pread): Likewise.
12372
12373 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12374
12375 * NEWS: Document remote "info proc" and "generate-core-file".
12376
12377 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12378
12379 * gdbarch.sh (find_memory_regions): New callback.
12380 * gdbarch.c, gdbarch.h: Regenerate.
12381
12382 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12383 callback before falling back to target method.
12384
12385 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12386 (linux_target_install_ops): No longer install it.
12387
12388 * linux-tdep.c (linux_find_memory_regions): New function.
12389 (linux_init_abi): Install it.
12390
12391 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12392
12393 * gdbarch.sh (make_corefile_notes): New architecture callback.
12394 * gdbarch.c: Regenerate.
12395 * gdbarch.h: Likewise.
12396
12397 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12398 before target_make_corefile_notes. If NULL is returned, the
12399 target does not support core file generation.
12400
12401 * linux-nat.c: Include "linux-tdep.h".
12402 (find_signalled_thread, find_stop_signal): Remove.
12403 (linux_nat_do_thread_registers): Likewise.
12404 (struct linux_nat_corefile_thread_data): Likewise.
12405 (linux_nat_corefile_thread_callback): Likewise.
12406 (iterate_over_spus): Likewise.
12407 (struct linux_spu_corefile_data): Likewise.
12408 (linux_spu_corefile_callback): Likewise.
12409 (linux_spu_make_corefile_notes): Likewise.
12410 (linux_nat_collect_thread_registers): New function.
12411 (linux_nat_make_corefile_notes): Replace contents by call to
12412 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12413 as native-only callback.
12414
12415 * linux-tdep.h: Include "bfd.h".
12416 (struct regcache): Add forward declaration.
12417 (linux_collect_thread_registers_ftype): New typedef.
12418 (linux_make_corefile_notes): Add prototype.
12419 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12420 "regset.h", and "elf-bfd.h".
12421 (find_signalled_thread, find_stop_signal): New functions.
12422 (linux_spu_make_corefile_notes): Likewise.
12423 (linux_collect_thread_registers): Likewise.
12424 (struct linux_corefile_thread_data): New data structure.
12425 (linux_corefile_thread_callback): New funcion.
12426 (linux_make_corefile_notes): Likewise.
12427 (linux_make_corefile_notes_1): Likewise.
12428 (linux_init_abi): Install it.
12429
12430 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12431
12432 * gdbarch.sh (info_proc): New callback.
12433 * gdbarch.c, gdbarch.h: Regenerate.
12434
12435 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12436 before falling back to the target info_proc callback.
12437
12438 * linux-nat.c: Do not include "cli/cli-utils.h".
12439 (linux_nat_info_proc): Remove.
12440 (linux_target_install_ops): No longer install it.
12441
12442 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12443 (read_mapping): New function.
12444 (linux_info_proc): Likewise.
12445 (linux_init_abi): Install it.
12446
12447 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12448
12449 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12450 * infcmd.c: (info_proc_cmd_1): New function.
12451 (info_proc_cmd): New function, moved here from equivalent routine
12452 orignally in linux-nat.c.
12453 (info_proc_cmd_mappings): Likewise.
12454 (info_proc_cmd_stat): Likewise.
12455 (info_proc_cmd_status): Likewise.
12456 (info_proc_cmd_cwd): Likewise.
12457 (info_proc_cmd_cmdline): Likewise.
12458 (info_proc_cmd_exe): Likewise.
12459 (info_proc_cmd_all): Likewise.
12460 (_initialize_infcmd): Install "info proc" command and subcommands.
12461
12462 * target.h (struct target_ops): Add to_info_proc.
12463 (target_info_proc): Add prototype.
12464 * target.c (target_info_proc): New function.
12465
12466 * procfs.c (procfs_info_proc): Add prototype.
12467 (info_proc_cmd): Rename into ...
12468 (procfs_info_proc): ... this. Update argument types as appropriate
12469 for a to_info_proc implementation. Handle "what" argument.
12470 (procfs_target): Install procfs_info_proc.
12471 (_initialize_procfs): No longer install "info proc" command.
12472
12473 * linux-nat.c: (enum info_proc_what): Remove.
12474 (linux_nat_info_proc_cmd_1): Rename into ...
12475 (linux_nat_info_proc): ... this. Update argument types as appropriate
12476 for a to_info_proc implementation.
12477 (linux_nat_info_proc_cmd): Remove.
12478 (linux_nat_info_proc_cmd_mappings): Likewise.
12479 (linux_nat_info_proc_cmd_stat): Likewise.
12480 (linux_nat_info_proc_cmd_status): Likewise.
12481 (linux_nat_info_proc_cmd_cwd): Likewise.
12482 (linux_nat_info_proc_cmd_cmdline): Likewise.
12483 (linux_nat_info_proc_cmd_exe): Likewise.
12484 (linux_nat_info_proc_cmd_all): Likewise.
12485 (linux_target_install_ops): Install linux_nat_info_proc.
12486 (_initialize_linux_nat): No longer install "info proc" command
12487 and subcommands.
12488
12489 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12490
12491 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12492 * config.in, configure: Regenerate.
12493
12494 * target.h (struct target_ops): Add to_fileio_readlink.
12495 (target_fileio_readlink): Add prototype.
12496 * target.c (target_fileio_readlink): New function.
12497
12498 * inf-child.c: Conditionally include <sys/param.h>.
12499 (inf_child_fileio_readlink): New function.
12500 (inf_child_target): Install it.
12501
12502 * remote.c (PACKET_vFile_readlink): New enum value.
12503 (remote_hostio_readlink): New function.
12504 (init_remote_ops): Install it.
12505 (_initialize_remote): Handle vFile:readlink packet type.
12506
12507 2012-01-20 Pedro Alves <palves@redhat.com>
12508 Ulrich Weigand <ulrich.weigand@linaro.org>
12509
12510 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12511 * config.in, configure: Regenerate.
12512
12513 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12514 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12515 (target_fileio_open): Add prototype.
12516 (target_fileio_pwrite): Likewise.
12517 (target_fileio_pread): Likewise.
12518 (target_fileio_close): Likewise.
12519 (target_fileio_unlink): Likewise.
12520 (target_fileio_read_alloc): Likewise.
12521 (target_fileio_read_stralloc): Likewise.
12522
12523 * target.c: Include "gdb/fileio.h".
12524 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12525 (default_fileio_target): New function.
12526 (target_fileio_open): Likewise.
12527 (target_fileio_pwrite): Likewise.
12528 (target_fileio_pread): Likewise.
12529 (target_fileio_close): Likewise.
12530 (target_fileio_unlink): Likewise.
12531 (target_fileio_close_cleanup): Likewise.
12532 (target_fileio_read_alloc_1): Likewise.
12533 (target_fileio_read_alloc): Likewise.
12534 (target_fileio_read_stralloc): Likewise.
12535
12536 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12537 <fcntl.h>, and <unistd.h>.
12538 (inf_child_fileio_open_flags_to_host): New function.
12539 (inf_child_errno_to_fileio_error): Likewise.
12540 (inf_child_fileio_open): Likewise.
12541 (inf_child_fileio_pwrite): Likewise.
12542 (inf_child_fileio_pread): Likewise.
12543 (inf_child_fileio_close): Likewise.
12544 (inf_child_fileio_unlink): Likewise.
12545 (inf_child_target): Install to_fileio routines.
12546
12547 * remote.c (init_remote_ops): Install to_fileio routines.
12548
12549 2012-01-20 Pedro Alves <palves@redhat.com>
12550 Ulrich Weigand <ulrich.weigand@linaro.org>
12551
12552 * remote.c (remote_multi_process_p): Only check for multi-process
12553 protocol feature, do not check for extended protocol.
12554 (remote_supports_multi_process): Check for extended protocol here.
12555 (set_general_process): Likewise.
12556 (extended_remote_kill): Likewise.
12557 (remote_pid_to_str): Likewise.
12558 (remote_query_supported): Always query multiprocess mode.
12559
12560 2012-01-20 Pedro Alves <palves@redhat.com>
12561 Ulrich Weigand <ulrich.weigand@linaro.org>
12562
12563 * inferior.h (struct inferior): Add fake_pid_p.
12564 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12565 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12566 magic_null_ptid since the remote side doesn't provide a real PID.
12567
12568 2012-01-19 Tom Tromey <tromey@redhat.com>
12569
12570 * NEWS: Combine the two Python sections.
12571
12572 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12573
12574 * target.h (target_close): Update comment on the target's unpush state.
12575
12576 2012-01-19 Pedro Alves <palves@redhat.com>
12577
12578 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12579 linux_nat_async directly instead of going through the target
12580 vector.
12581 * target.c (unpush_target): Close target after unpushing it, not
12582 before.
12583
12584 2012-01-19 Gary Benson <gbenson@redhat.com>
12585
12586 * mdebugread.c (sort_blocks): Replace integer constants with ones
12587 derived from FIRST_LOCAL_BLOCK.
12588
12589 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12590 Jan Kratochvil <jan.kratochvil@redhat.com>
12591
12592 PR gdb/9538
12593 * symfile.c (find_separate_debug_file): New function.
12594 (terminate_after_last_dir_separator): Likewise.
12595 (find_separate_debug_file_by_debuglink): Also try realpath.
12596 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12597 * configure: Regenerate.
12598 * config.in: Regenerate.
12599
12600 2012-01-18 Doug Evans <dje@google.com>
12601
12602 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12603 (main.o): Remove rule.
12604 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12605 (--with-sysroot): Rewrite.
12606 * configure: Regenerate.
12607 * config.in: Regenerate.
12608
12609 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12610
12611 * parse.c (initialize_expout): New function.
12612 (reallocate_expout): Likewise.
12613 (parse_exp_in_context): Use `initialize_expout' and
12614 `reallocate_expout' when appropriate.
12615
12616 2012-01-18 Pedro Alves <palves@redhat.com>
12617
12618 * record.c (struct record_breakpoint, record_breakpoint_p)
12619 (record_breakpoints): New.
12620 (record_insert_breakpoint, record_remove_breakpoint): Manage
12621 record breakpoints list. Only remove breakpoints from the
12622 inferior if they had been inserted there in the first place.
12623
12624 2012-01-17 Doug Evans <dje@google.com>
12625
12626 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12627 if we know we don't have a file name to look for.
12628
12629 2012-01-17 Pedro Alves <palves@redhat.com>
12630
12631 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12632 the frame's stop reason is UNWIND_UNAVAILABLE.
12633
12634 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12635
12636 Fix compilation error.
12637 * m2-exp.y (yyerror): Use ANSI C prototype.
12638
12639 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12640
12641 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12642 (growbuf_by_size): Likewise.
12643 (yyerror): Likewise.
12644 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12645 (modblock): Remove variable (was #if 0'ed).
12646 (parse_number): Convert prototype from K&R to ANSI C.
12647 (yyerror): Likewise.
12648 * objc-exp.y (parse_number): Likewise.
12649 (yyerror): Likewise.
12650 (yylex): Remove #if 0'ed code.
12651 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12652 (yyerror): Likewise.
12653
12654 2012-01-16 Tom Tromey <tromey@redhat.com>
12655
12656 * NEWS: Add item.
12657 * symtab.h (compare_filenames_for_search): Declare.
12658 * symtab.c (compare_filenames_for_search): New function.
12659 (iterate_over_some_symtabs): Use it.
12660 * symfile.h (struct quick_symbol_functions)
12661 <map_symtabs_matching_filename>: Change spec.
12662 * psymtab.c (partial_map_symtabs_matching_filename): Use
12663 compare_filenames_for_search. Update for new spec.
12664 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12665 compare_filenames_for_search. Update for new spec.
12666 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12667
12668 2012-01-16 Tom Tromey <tromey@redhat.com>
12669
12670 PR python/13281:
12671 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12672 (struct main_type) <flag_flag_enum>: New field.
12673 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12674 * NEWS: Add entries.
12675 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12676 enums.
12677 * python/lib/gdb/printing.py (_EnumInstance): New class.
12678 (FlagEnumerationPrinter): Likewise.
12679
12680 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12681
12682 * breakpoint.c (create_sals_from_address_default): New function.
12683 (create_breakpoints_sal_default): Likewise.
12684 (decode_linespec_default): Likewise.
12685 (is_marker_spec): Removed.
12686 (strace_marker_p): New function.
12687 (init_breakpoint_sal): Using `strace_marker_p' instead of
12688 `is_marker_spec'.
12689 (create_breakpoint): Call method `create_sals_from_address' from
12690 breakpoint_ops, replacing code that created SALs conditionally
12691 on the type of the breakpoint. Call method `create_breakpoints_sal',
12692 replacing code that created breakpoints conditionally on the type
12693 wanted.
12694 (base_breakpoint_create_sals_from_address): New function.
12695 (base_breakpoint_create_breakpoints_sal): Likewise.
12696 (base_breakpoint_decode_linespec): Likewise.
12697 (base_breakpoint_ops): Add methods
12698 `base_breakpoint_create_sals_from_address',
12699 `base_breakpoint_create_breakpoints_sal' and
12700 `base_breakpoint_decode_linespec'.
12701 (bkpt_create_sals_from_address): New function.
12702 (bkpt_create_breakpoints_sal): Likewise.
12703 (bkpt_decode_linespec): Likewise.
12704 (tracepoint_create_sals_from_address): Likewise.
12705 (tracepoint_create_breakpoints_sal): Likewise.
12706 (tracepoint_decode_linespec): Likewise.
12707 (strace_marker_create_sals_from_address): Likewise.
12708 (strace_marker_create_breakpoints_sal): Likewise.
12709 (strace_marker_decode_linespec): Likewise.
12710 (strace_marker_breakpoint_ops): New variable.
12711 (addr_string_to_sals): Remove `marker_spec'. Call method
12712 `decode_linespec' from breakpoint_ops, replacing code that decoded
12713 an address string into a SAL. Use `strace_marker_p' instead of
12714 `marker_spec'.
12715 (strace_command): Decide whether we are dealing with a static
12716 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12717 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12718 * breakpoint.h (linespec_result, linespec_sals): New forward
12719 declarations.
12720 (breakpoint_ops) <create_sals_from_address>,
12721 <create_breakpoints_sal>, <decode_linespec>: New methods.
12722
12723 2012-01-14 Doug Evans <dje@google.com>
12724
12725 * NEWS: Update text for "maint set python print-stack".
12726 It is deprecated in gdb 7.4 and deleted in 7.5.
12727
12728 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12729
12730 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12731 including curses.h.
12732
12733 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12734
12735 * configure: Regenerate.
12736 * config.in: Regenerate.
12737
12738 2012-01-12 Keith Seitz <keiths@redhat.com>
12739
12740 PR mi/10586
12741 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12742 (ANONYMOUS_UNION_NAME): Define.
12743 (is_path_expr_parent): New function.
12744 (get_path_expr_parent): New function.
12745 (is_anonymous_child): New function.
12746 (create_child_with_value): If the child is anonymous and without
12747 a name, assign an object name to it.
12748 (c_describe_child): Use get_path_expr_parent to determine
12749 the parent expression.
12750 If there field represents an anonymous struct or union and
12751 has no name, set an appropriate display name and expression.
12752 (cplus_describe_child): Likewise.
12753
12754 2012-01-12 Pedro Alves <palves@redhat.com>
12755
12756 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12757 available when %ebp is found to be zero (outermost).
12758
12759 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12760
12761 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12762 an internal gdb_static_assert.
12763 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12764
12765 2012-01-11 Tom Tromey <tromey@redhat.com>
12766
12767 PR gdb/9598:
12768 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12769 catch" and "catch throw".
12770
12771 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12772
12773 * blockframe.c (block_innermost_frame): Start search from selected
12774 frame, if present, or otherwise the current frame.
12775
12776 * c-exp.y (variable): Update innermost_block for
12777 'block COLONCOLON NAME' clause.
12778 * m2-exp.y (variable): Ditto.
12779 * objc-exp.y (variable): Ditto.
12780
12781 2012-01-10 Tom Tromey <tromey@redhat.com>
12782
12783 PR python/13199:
12784 * python/python.c (finish_python_initialization): Set sys.argv.
12785
12786 2012-01-10 Doug Evans <dje@google.com>
12787
12788 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12789 "want_line_info". All callers updated.
12790 (dwarf_decode_lines_1): New function.
12791 (handle_DW_AT_stmt_list): Add function comment.
12792 New arg "want_line_info". All callers updated.
12793 (read_file_scope,read_type_unit_scope): Move comment from
12794 handle_DW_AT_stmt_list to here.
12795
12796 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12797
12798 Fix regression after libiberty/ update for GCC PR 6057 and others.
12799 * c-exp.y (operator) <OPERATOR DELETE>
12800 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12801 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12802 (make_builtin_type, make_name): New variable i, add gdb_assert.
12803 (operator) <OPERATOR NEW>: Update ARGS to 3.
12804 (operator) <OPERATOR DELETE>: Add trailing space.
12805 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12806 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12807 * cp-support.c (cp_canonicalize_string): Check NULL from
12808 cp_comp_to_string, call warning and return.
12809
12810 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12811
12812 Fix duplicate .o files after omitting libbfd.a.
12813 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12814 (SFILES): Add corelow.c.
12815 (COMMON_OBS): Add corelow.o.
12816 (ALLDEPFILES): Remove corelow.c.
12817 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12818 * config/alpha/alpha-osf3.mh: Likewise.
12819 * config/alpha/fbsd.mh: Likewise.
12820 * config/arm/nbsdaout.mh: Likewise.
12821 * config/arm/nbsdelf.mh: Likewise.
12822 * config/i386/i386gnu.mh: Likewise.
12823 * config/ia64/hpux.mh: Likewise.
12824 * config/ia64/linux.mh: Likewise.
12825 * config/m32r/linux.mh: Likewise.
12826 * config/m68k/linux.mh: Likewise.
12827 * config/mips/irix5.mh: Likewise.
12828 * config/mips/irix6.mh: Likewise.
12829 * config/pa/hpux.mh: Likewise.
12830 * config/pa/linux.mh: Likewise.
12831 * config/powerpc/aix.mh: Likewise.
12832 * config/sparc/linux.mh: Likewise.
12833 * config/sparc/linux64.mh: Likewise.
12834 * config/sparc/sol2.mh: Likewise.
12835 * config/vax/vax.mh: Likewise.
12836 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12837 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12838 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12839 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12840 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12841 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12842 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12843 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12844 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12845 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12846 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12847 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12848 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12849 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12850 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12851 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12852 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12853 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12854 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12855 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12856 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12857 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12858 corelow.o from gdb_target_obs.
12859 * corefile.c (core_target): Update the comment on NULL value.
12860 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12861 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12862 MATCHES. Drop YUMMY set on NULL.
12863 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12864 reclaim CORE_DATA if it is already NULL.
12865
12866 2012-01-09 Doug Evans <dje@google.com>
12867
12868 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12869 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12870
12871 2012-01-09 Keith Seitz <keiths@redhat.com>
12872
12873 * breakpoint.c (wrapper.h): Don't include.
12874
12875 2012-01-09 Keith Seitz <keiths@redhat.com>
12876
12877 * Makefile.in (SFILES): Remove wrapper.c.
12878 (HFILES_NO_SRCDIR): Remove wrapper.h.
12879 (COMMON_OBS): Remove wrapper.o.
12880 * cli/cli-interp.c: Don't inlude wrapper.h.
12881 * corelow.c: Likewise.
12882 (core_open): Replace gdb_target_find_new_threads with
12883 TRY_CATCH around target_find_new_threads.
12884 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12885 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12886 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12887 evaluate_expression.
12888 (varobj_set_value): Likewise for evaluate_expression and
12889 value_assign.
12890 (install_new_variable): Likewise for value_fetch_lazy.
12891 (adjust_value_for_child_access): Likewise for value_ind.
12892 (c_describe_child): Likewise for value_subscript and
12893 value_ind.
12894 (c_value_of_root): Likewise for evaluate_expression.
12895 * wrapper.c: Remove.
12896 * wrapper.h: Remove.
12897
12898 2012-01-09 Doug Evans <dje@google.com>
12899
12900 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12901 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12902 "abfd" args with "section". All callers updated.
12903 Error checking code moved ...
12904 (error_check_comp_unit_head): ... here. New function.
12905 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12906 Delete arg "abfd". New arg "type_offset". All callers updated.
12907 (create_debug_types_hash_table): Simplify by using
12908 read_and_check_type_unit_head.
12909
12910 * parser-defs.h (namecopy): Delete.
12911 * parse.c (namecopy, namecopy_size): Move into copy_name.
12912
12913 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12914
12915 Partially fix duplicate .o files after omitting libbfd.a.
12916 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12917 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12918 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12919 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12920 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12921 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12922 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12923
12924 2012-01-09 Pedro Alves <palves@redhat.com>
12925
12926 * MAINTAINERS: Update my email address.
12927
12928 2012-01-08 Doug Evans <dje@google.com>
12929
12930 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12931 n_type_units. Rename type_comp_units to all_type_units.
12932 All uses updated.
12933 (add_signatured_type_cu_to_table): Renamed from
12934 add_signatured_type_cu_to_list. All callers updated.
12935
12936 * gdbtypes.h (struct cplus_struct_type): Delete member
12937 nfn_fields_total. All uses removed.
12938
12939 2012-01-06 Doug Evans <dje@google.com>
12940
12941 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12942 to top of file.
12943 (dwarf2_find_comp_unit): Delete.
12944 (process_psymtab_comp_unit): Make result "void".
12945 Delete args buffer, info_ptr, buffer_size, and replace with
12946 "section". All callers updated.
12947 (dwarf2_build_psymtabs_hard): Simplify.
12948
12949 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12950 Thiago Jung Bauermann <bauerman@br.ibm.com>
12951
12952 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12953 before `struct gdb_exception'.
12954 * breakpoint.c (update_global_location_list_nothrow)
12955 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12956 * cp-abi.c (value_rtti_type): Likewise.
12957 * cp-support.c (cp_validate_operator): Likewise.
12958 * infrun.c (insert_exception_resume_breakpoint)
12959 (check_exception_resume, keep_going): Likewise.
12960 * mi-interp.c (mi_breakpoint_created)
12961 (mi_breakpoint_modified): Likewise.
12962 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12963 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12964 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12965
12966 2012-01-05 Doug Evans <dje@google.com>
12967
12968 * dwarf2read.c (statement_prologue): Delete, unused.
12969
12970 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12971 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12972
12973 * dwarf2read.c (comp_unit_header): Delete, unused.
12974
12975 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12976
12977 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12978 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12979
12980 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12981
12982 * infrun.c (normal_stop): Don't skip calling the normal_stop
12983 observers if the thread was doing a multi-step, but stopped for
12984 some reason other than stepping.
12985
12986 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12987
12988 * cli/cli-decode.h: Add comments.
12989 (CMD_LIST_AMBIGUOUS): Moved to command.h
12990 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12991 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12992 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12993 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12994 (add_com, add_com_alias, add_info, add_info_alias)
12995 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12996 declarations.
12997 * command.h: Add and adjust comments.
12998 (CMD_LIST_AMBIGUOUS): Moved here.
12999 (help_cmd, help_cmd_list): Delete declarations.
13000
13001 2012-01-04 Doug Evans <dje@google.com>
13002
13003 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
13004 All callers updated.
13005 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
13006 Replace all arguments with "per_cu". All callers updated.
13007
13008 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
13009
13010 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
13011 New arg "per_cu". All callers updated.
13012
13013 Delete #if 0'd out code.
13014 * language.c (binop_result_type): Delete.
13015 (simple_type, ordered_type, same_type, integral_type): Delete.
13016 (numeric_type, character_type, string_type, boolean_type): Delete.
13017 (float_type, structured_type): Delete.
13018 * language.h: Update.
13019
13020 2012-01-04 Tom Tromey <tromey@redhat.com>
13021
13022 * python/py-value.c (valpy_binop): Initialize 'res_val'.
13023
13024 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13025
13026 * corefile.c (close_exec_file): Delete.
13027 (reopen_exec_file): Remove commented out code that seems related
13028 to close_exec_file, which is being deleted here.
13029 * inferior.h (close_exec_file): Delete.
13030 * fork-child.c (fork_inferior): Remove call to fork_inferior.
13031
13032 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13033
13034 * ada-lang.c: #include "cli/cli-utils.h".
13035 (get_selections): Use skip_spaces.
13036 (ada_get_next_arg): Use skip_spaces and skip_to_space.
13037 (catch_ada_exception_command_split): Use skip_spaces.
13038 (ada_decode_assert_location): Likewise.
13039
13040 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13041
13042 * linespec.c (decode_line_internal): Check for C++ or Java
13043 compound constructs only if the current language is C, C++
13044 or Java.
13045
13046 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
13047
13048 Revert:
13049 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13050 Joel Brobecker <brobecker@adacore.com>
13051 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13052 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13053 3 times.
13054 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13055 fall through into AT_ENTRY_POINT.
13056 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13057 DUMMY_ADDR with it.
13058 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13059 PPC_INSN_SIZE skip to 3 times.
13060
13061 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13062
13063 * linespec.c (add_minsym): Preserve function descriptors.
13064
13065 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
13066
13067 * breakpoint.c (all_locations_are_pending): Consider locations
13068 in program spaces executing during startup pending as well.
13069
13070 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13071
13072 Copyright year update in most files of the GDB Project.
13073
13074 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13075
13076 * copyright.sh: Delete.
13077 * copyright.py: Rewrite.
13078
13079 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13080
13081 * gnulib/extra/update-copyright: New file, imported from gnulib.
13082
13083 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13084
13085 * README (Copyright and License Notices): New section.
13086
13087 2012-01-03 Tom Tromey <tromey@redhat.com>
13088
13089 PR python/12533:
13090 * python/py-value.c (valpy_dereference, valpy_get_address
13091 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13092 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
13093 (valpy_absolute, valpy_richcompare): Free intermediate values.
13094
13095 2011-01-03 Joel Brobecker <brobecker@adacore.com>
13096
13097 * ada-lang.c: Reformat the copyright notice.
13098
13099 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13100
13101 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
13102 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
13103 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
13104 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
13105 Revert this part of:
13106 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13107 Build gdb directly from *.o files not using libgdb.a.
13108 * Makefile.in (COMMON_OBS): Remove solib-target.o.
13109
13110 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13111
13112 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
13113 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
13114 Reformat the copyright header.
13115
13116 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13117
13118 Revert this part of:
13119 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13120 Remove the gdbtui binary.
13121 * gdb.c (main): Remove args.interpreter_p initialization.
13122 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13123 * main.h (struct captured_main_args): Remove interpreter_p.
13124
13125 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13126
13127 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
13128
13129 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13130
13131 * top.c (print_gdb_version): Update copyright year.
13132
13133 2012-01-02 Yao Qi <yao@codesourcery.com>
13134
13135 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13136
13137 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13138 Joel Brobecker <brobecker@adacore.com>
13139
13140 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13141 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13142 3 times.
13143 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13144 fall through into AT_ENTRY_POINT.
13145 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13146 DUMMY_ADDR with it.
13147 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13148 PPC_INSN_SIZE skip to 3 times.
13149
13150 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13151
13152 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13153 the return value.
13154 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13155
13156 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13157
13158 Build gdb directly from *.o files not using libgdb.a.
13159 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13160 (COMMON_OBS): Remove solib-target.o.
13161 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13162 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13163 (LIBGDB_OBS, libgdb.a): Move it above.
13164 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13165 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13166 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13167 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13168 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13169 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13170 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13171 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13172 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13173 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13174 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13175 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13176 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13177 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13178 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13179 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13180 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13181 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13182 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13183 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13184 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13185 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13186 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13187 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13188 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13189 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13190 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13191
13192 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13193
13194 Remove the gdbtui binary.
13195 * .gitignore (/gdbtui): Remove.
13196 * Makefile.in (TUI): Remove.
13197 (SUBDIR_TUI_OBS): Remove tui-main.o.
13198 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13199 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13200 (tui-main.o): Remove.
13201 (all_object_files): Remove tui-main.o.
13202 * NEWS: New note for the gdbtui removal.
13203 * configure: Rebuilt.
13204 * configure.ac: No longer add all-tui, clean-tui, install-tui and
13205 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13206 CONFIG_UNINSTALL respectively.
13207 * gdb.c (main): Remove args.interpreter_p initialization.
13208 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13209 * main.h (struct captured_main_args): Remove interpreter_p.
13210 * tui/tui-main.c: Remove.
13211
13212 2012-01-01 Doug Evans <dje@google.com>
13213
13214 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13215 (dwarf2_physname, read_import_statement): Ditto.
13216 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13217 (process_structure_scope read_subroutine_type): Ditto.
13218 (read_typedef, load_partial_dies, read_partial_die): Ditto.
13219 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13220 (dwarf2_fetch_die_location_block): Ditto.
13221 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13222
13223 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13224 All callers updated.
13225 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13226 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13227 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13228
13229 * dwarf2read.c (load_cu): Move assert to more useful location.
13230
13231 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13232 All callers updated.
13233
13234 * dwarf2read.c (dwarf2_per_objfile): Add comment.
13235 (dwarf2_elf_names): Minor reformat.
13236 (dwarf2_per_cu_data): Tweak comment.
13237 (dwarf2_read_section): Fix comment.
13238 (create_all_comp_units): Fix comment.
13239 (load_full_comp_unit): Fix comment.
13240 (process_full_comp_unit): Fix comment.
13241 (read_signatured_type): Fix comment.
13242
13243 For older changes see ChangeLog-2011.
13244 \f
13245 Local Variables:
13246 mode: change-log
13247 left-margin: 8
13248 fill-column: 74
13249 version-control: never
13250 coding: utf-8
13251 End:
This page took 0.312352 seconds and 4 git commands to generate.