gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Code cleanup.
4 * dwarf2read.c (fixup_go_packaging): Do not check symtab->FILENAME for
5 NULL.
6 * linespec.c (add_sal_to_sals): Likewise.
7 * psympriv.h (allocate_psymtab): Add ATTRIBUTE_NONNULL.
8 * stack.c (print_frame): Do not check symtab->FILENAME for NULL.
9 * symfile.h (allocate_symtab): Add ATTRIBUTE_NONNULL.
10 * symtab.h (struct symtab): Add comment it is never NULL for filename.
11 * tracepoint.c (set_traceframe_context): Do not check symtab->FILENAME
12 for NULL.
13 * tui/tui-source.c (tui_set_source_content): Likewise.
14
15 2012-12-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16
17 * breakpoint.c (breakpoint_re_set): Remove the skip_re_set call.
18 * infrun.c (handle_inferior_event): Rename the called function to
19 function_name_is_marked_for_skip, pass it TMP_SAL.
20 * skip.c (struct skiplist_entry): Update function_name comment. Remove
21 fields pc, gdbarch and pending.
22 (skip_function_pc): Rename this forward declaration to ...
23 (skip_function): ... here.
24 (skip_file_command): Remove variable pending and its use, remove
25 initialization of E fields pending and gdbarch. Do not use SYMTAB
26 filename, use the specified one.
27 (skip_function_command): Remove variable func_pc, do not set it.
28 Update the caller of skip_function. Replace decode_line_1 call by
29 a lookup_symbol call. Remove variables orig_arg, decode_exception and
30 sals. Update the caller of skip_function.
31 (skip_info): Remove variable address_width and its use. Do not print
32 address (PC). Renumber column 5 to 4.
33 (skip_function_pc): Rename to ...
34 (skip_function): ... here and remove its parameters pc, arch and
35 pending. Update the function comment and no longer use those
36 parameters.
37 (function_pc_is_marked_for_skip): Rename to ...
38 (function_name_is_marked_for_skip): ... here, update function comment
39 just to a skip.h reference, replace pc parameter by function_name and
40 function_sal. No longer use E field pending and pc. Remove variables
41 searched_for_sal, sal and filename. Call compare_filenames_for_search
42 instead of just strcmp.
43 (skip_re_set): Remove the function.
44 * skip.h (struct symtab_and_line): New declaration.
45 (function_pc_is_marked_for_skip): Rename to ...
46 (function_name_is_marked_for_skip): ... here, replace pc parameter by
47 function_name and function_sal, update the function comment.
48
49 2012-12-18 Pierre Muller <muller@sourceware.org>
50
51 * ui-file.h (tee_file_new): Add extern modifier in header declaration.
52
53 2012-12-20 Tom Tromey <tromey@redhat.com>
54
55 * serial.c (deprecated_serial_fd): Remove.
56 * serial.h (deprecated_serial_fd): Remove.
57
58 2012-12-20 Yao Qi <yao@codesourcery.com>
59
60 * maint.c (_initialize_maint_cmds): Move code ...
61 * symmisc.c (_initialize_symmisc): ... to here.
62 (maintenance_print_msymbols): Make it static.
63 (maintenance_print_objfiles): Likewise.
64 (maintenance_print_symbols): Likewise.
65 (maintenance_info_symtabs): Likewise.
66 * symtab.h (maintenance_print_msymbols): Remove declaration.
67 (maintenance_print_objfiles, maintenance_print_symbols): Likewise.
68 (maintenance_info_symtabs): Likewise.
69
70 2012-12-20 Yao Qi <yao@codesourcery.com>
71
72 * maint.c (_initialize_maint_cmds): Move code to ...
73 * psymtab.c (_initialize_psymtab): ... here. New.
74 Include "gdbcmd.h".
75 (maintenance_print_psymbols): Make it static.
76 (maintenance_info_psymtabs, maintenance_check_symtabs): Likewise.
77 * symtab.h (maintenance_print_psymbols): Remove declaration.
78 (maintenance_check_symtabs, maintenance_info_psymtabs): Likewise.
79
80 2012-12-19 Maxim Kuvyrkov <maxim@codesourcery.com>
81
82 * MAINTAINERS: Add myself to write-after-approval maintainers.
83
84 2012-12-19 Andreas Tobler <andreast@neon.andreas.nets>
85
86 * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
87 branch_bp to keep gcc happy.
88
89 2012-12-19 Joel Brobecker <brobecker@adacore.com>
90
91 * gdbarch.sh (copyright): Update copyright years.
92 * gdbarch.h, gdbarch.c: Regenerate.
93 * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
94 (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
95
96 2012-12-19 Joel Brobecker <brobecker@adacore.com>
97
98 * acinclude.m4: Update contact info in copyright notice.
99
100 2012-12-19 Yao Qi <yao@codesourcery.com>
101
102 * maint.c (maintenance_print_statistics): Make it static.
103 * symtab.h (maintenance_print_statistics): Remove declaration.
104
105 2012-12-19 Joel Brobecker <brobecker@adacore.com>
106
107 * NEWS: Add entry announcing ppc-lynx178 support.
108
109 2012-12-19 Joel Brobecker <brobecker@adacore.com>
110
111 Revert the following change (compatibility issues with libiconv):
112 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
113 * gnulib/import/errno.in.h: Import.
114 * gnulib/import/m4/errno_h.m4: Import.
115 * gnulib/aclocal.m4: Regenerate.
116 * gnulib/configure: Regenerate.
117 * gnulib/import/Makefile.am: Update.
118 * gnulib/import/Makefile.in: Update.
119 * gnulib/import/m4/gnulib-cache.m4: Update.
120 * gnulib/import/m4/gnulib-comp.m4: Update.
121
122 2012-12-18 Tom Tromey <tromey@redhat.com>
123
124 * defs.h (directory_command): Don't declare.
125 * source.c (directory_command): Now static.
126
127 2012-12-18 Tom Tromey <tromey@redhat.com>
128
129 * infcmd.c (all_registers_info, nexti_command, stepi_command)
130 (continue_command, interrupt_target_command): Now static.
131 (registers_info): Remove declaration.
132 * inferior.h (all_registers_info, nexti_command, stepi_command)
133 (continue_command, interrupt_target_command): Don't declare.
134
135 2012-12-18 Tom Tromey <tromey@redhat.com>
136
137 * cli/cli-cmds.c (apropos_command): Now static.
138
139 2012-12-18 Tom Tromey <tromey@redhat.com>
140
141 * breakpoint.c (dprintf_command): Now static.
142
143 2012-12-18 Tom Tromey <tromey@redhat.com>
144
145 * Makefile.in (init.c): Declare initialize_all_files;
146 don't include call-cmds.h.
147 * call-cmds.h: Remove.
148 * symtab.c: Don't include call-cmds.h.
149 * top.c: Don't include call-cmds.h. Declare
150 initialize_all_files.
151
152 2012-12-18 Tom Tromey <tromey@redhat.com>
153
154 * symfile.c (list_overlays_command, map_overlay_command)
155 (unmap_overlay_command): Now static.
156
157 2012-12-18 Tom Tromey <tromey@redhat.com>
158
159 * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
160 "define", "while", and "if" commands.
161 * cli/cli-script.c (while_command, if_command, define_command)
162 (document_command): Now static.
163 (_initialize_cli_script): New function.
164 * cli/cli-script.h (while_command, if_command, define_command)
165 (document_command): Don't declare.
166
167 2012-12-18 Tom Tromey <tromey@redhat.com>
168
169 * cli/cli-cmds.c (_initialize_cli_cmds): New function.
170 (init_cli_cmds): Move most code into new function.
171
172 2012-12-18 Tom Tromey <tromey@redhat.com>
173
174 * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
175 * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
176 declare.
177
178 2012-12-18 Joel Brobecker <brobecker@adacore.com>
179
180 * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
181 * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
182 * xcoffread.c (xcoff_get_core_n_import_files): New function.
183 (xcoff_get_n_import_files): New function.
184 * xcoffread.h (xcoffread.h): Add declaration.
185 * rs6000-aix-tdep.c: #include "xcoffread.h".
186 (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
187 XCOFF executables that do not depend on any shared library.
188 * rs6000-lynx178-tdep.c: New file.
189 * configure.tgt: Add powerpc-*-lynx*178 handling.
190 * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
191 (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
192
193 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
194
195 * ui-file.c (ui_file): Add to_fseek.
196 (ui_file_new): Call set_ui_file_fseek.
197 (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
198 stdio_file_fseek): New functions.
199 (stdio_file_new): Call set_ui_file_fseek.
200 * ui-file.h (ui_file_fseek_ftype): New typedef.
201 (set_ui_file_fseek, ui_file_fseek): New externs.
202
203 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
204
205 * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
206 (set_ui_file_isatty): Change isatty to isatty_ptr.
207 (set_ui_file_rewind): Change rewind to rewind_ptr.
208 (set_ui_file_put): Change put to put_ptr.
209 (set_ui_file_write): Change write to write_ptr.
210 (set_ui_file_write_async_safe): Change write_async_safe to
211 write_async_safe_ptr.
212 (set_ui_file_read): Change read to read_ptr.
213 (set_ui_file_fputs): Change fputs to fputs_ptr.
214 (set_ui_file_data): Change delete to delete_ptr.
215
216 2012-12-18 Joel Brobecker <brobecker@adacore.com>
217
218 * solib-darwin.c (darwin_current_sos): Fix indentation.
219 (darwin_read_exec_load_addr): New function.
220 (darwin_solib_create_inferior_hook): Rebase executable.
221 * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
222 * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
223
224 2012-12-18 Joel Brobecker <brobecker@adacore.com>
225
226 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
227 * gnulib/import/errno.in.h: Import.
228 * gnulib/import/m4/errno_h.m4: Import.
229 * gnulib/aclocal.m4: Regenerate.
230 * gnulib/configure: Regenerate.
231 * gnulib/import/Makefile.am: Update.
232 * gnulib/import/Makefile.in: Update.
233 * gnulib/import/m4/gnulib-cache.m4: Update.
234 * gnulib/import/m4/gnulib-comp.m4: Update.
235
236 2012-12-18 Joel Brobecker <brobecker@adacore.com>
237
238 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
239 8d5bd1402003bd0153984b138735adf537d960b0.
240 * gnulib/aclocal.m4, configure, config.in: Regenerate.
241 * gnulib/import/m4/extern-inline.m4: Import.
242 * gnulib/import/wctype-h.c: Import.
243 * gnulib/import/Makefile.am: Update.
244 * gnulib/import/Makefile.in: Update.
245 * gnulib/import/alloca.in.h: Update.
246 * gnulib/import/extra/snippet/warn-on-use.h: Update.
247 * gnulib/import/localcharset.c: Update.
248 * gnulib/import/m4/fcntl-o.m4: Update.
249 * gnulib/import/m4/gnulib-cache.m4: Update.
250 * gnulib/import/m4/gnulib-comp.m4: Update.
251 * gnulib/import/m4/wctype_h.m4: Update.
252 * gnulib/import/stdbool.in.h: Update.
253 * gnulib/import/verify.h: Update.
254 * gnulib/import/wctype.in.h: Update.
255
256 2012-12-18 Joel Brobecker <brobecker@adacore.com>
257
258 * gnulib/update-gnulib.sh: Add call to autoheader.
259
260 2012-12-17 Tom Tromey <tromey@redhat.com>
261
262 * top.c (xgdb_verbose): Remove.
263
264 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
265
266 Code cleanup.
267 * skip.c (skip_function_command, skip_file_command, skip_info): Remove
268 unused forward declarations.
269 (skip_file_command): Make variables symtab and filename targets const.
270 Use proper 0 vs. NULL constant everywhere.
271 (skip_function_command): Use proper 0 vs. NULL constant everywhere.
272 Include empty line after declarations. Use GNU spacing in a comment.
273 Do not use strlen for end of string check.
274 (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
275 comments.
276 (skip_enable_command, skip_disable_command, skip_delete_command)
277 (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
278 (function_pc_is_marked_for_skip): Make variable filename target const.
279 Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
280 comment formatting.
281 (skip_re_set): Add empty line after function comment. Use proper 0 vs.
282 NULL constant everywhere. Include empty line after declarations. Make
283 variable symtab target const. Do not use strlen for end of string
284 check.
285
286 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
287
288 Code cleanup.
289 * breakpoint.c (clear_command): Remove variable sal_name_len and its
290 initialization, remove it from the compare_filenames_for_search call.
291 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
292 name_len and its initialization, remove it from the
293 compare_filenames_for_search calls.
294 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
295 * symtab.c (compare_filenames_for_search): Remove the search_len
296 parameter, update the function comment, new variable search_len
297 initialized from SEARCH_NAME.
298 (iterate_over_some_symtabs): Remove variable name_len and its
299 initialization, remove it from the compare_filenames_for_search calls.
300 * symtab.h (compare_filenames_for_search): Remove the search_len
301 parameter,
302
303 2012-12-16 Joel Brobecker <brobecker@adacore.com>
304
305 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
306 (ALLDEPFILES): ... to there.
307
308 2012-12-15 Joel Brobecker <brobecker@adacore.com>
309
310 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
311
312 2012-12-15 Joel Brobecker <brobecker@adacore.com>
313
314 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
315 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
316 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
317 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
318 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
319 to gdb_target_obs for every target that uses rs6000-tdep.o.
320 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
321 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
322 or register_ppc_ravenscar_ops.
323
324 2012-12-15 Joel Brobecker <brobecker@adacore.com>
325
326 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
327 RAVENSCAR_SPARC_THREAD_H.
328 * sparc-ravenscar-thread.c: Rename all global entities
329 whose name is uses "ravenscar_sparc" as the prefix to use
330 "sparc_ravenscar" instead.
331
332 2012-12-15 Joel Brobecker <brobecker@adacore.com>
333
334 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
335 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
336 Adjust sparc-ravenscar-thread.h #include.
337 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
338 accordingly.
339 * Makefile.in: Replace ravenscar-sparc-thread with
340 sparc-ravenscar-thread throughout.
341 * configure.tgt: Likewise.
342
343 2012-12-15 Joel Brobecker <brobecker@adacore.com>
344
345 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
346 declaration.
347 (ravenscar_ops): New gdbarch variable.
348 * gdbarch.h, gdbarch.c: Regenerate.
349 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
350 * ravenscar-thread.c (current_arch_ops): Delete.
351 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
352 from the gdbarch.
353 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
354 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
355 (ravenscar_register_arch_ops): Delete.
356 * ravenscar-sparc-thread.h: New file.
357 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
358 (ravenscar_sparc_ops): Define value statically.
359 (_initialize_ravenscar_sparc): Delete.
360 (register_sparc_ravenscar_ops): New function.
361 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
362 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
363 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
364 ravenscar-sparc-thread.o.
365 (SFILES): Add ravenscar-thread.c.
366 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
367 (ALLDEPFILES): ravenscar-sparc-thread.c.
368 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
369 to gdb_target_obs
370 for all the targets that use sparc-tdep.o.
371
372 2012-12-15 Joel Brobecker <brobecker@adacore.com>
373
374 * ravenscar-thread.c (ravenscar_is_open): Delete.
375 (ravenscar_initialize): Move most of the code from here...
376 (ravenscar_inferior_created): ... to there. Invert logic.
377 (ravenscar_close): Delete.
378 (init_ravenscar_thread_ops): Remove setting of
379 ravenscar_ops.to_close.
380
381 2012-12-15 Joel Brobecker <brobecker@adacore.com>
382
383 * objfiles.c (init_entry_point_info): Move function from here...
384 * symfile.c (init_entry_point_info): ... to there. Make static.
385 * objfiles.h (objfiles.h): Delete declaration.
386
387 2012-12-15 Joel Brobecker <brobecker@adacore.com>
388
389 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
390 Remove call to init_entry_point_info. Add OBJFILE's
391 section_offsets and num_sections initialization. Add note
392 about entry info in the function documentation.
393 (syms_from_objfile): New function.
394 * coffread.c (coff_symfile_init): Remove call to
395 init_entry_point_info.
396 * machoread.c (macho_symfile_init): Likewise.
397 * xcoffread.c(xcoff_symfile_init): Likewise.
398
399 2012-12-15 Yao Qi <yao@codesourcery.com>
400
401 * remote-notif.c (_initialize_notif): Add new commands
402 'set debug notification' and 'show debug notification'.
403 * NEWS: Mention these new commands.
404
405 2012-12-15 Yao Qi <yao@codesourcery.com>
406
407 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
408 (SFILES): Add "remote-notif.c".
409 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
410 * remote-notif.c: New. Factored out from remote.c.
411 * remote-notif.h: New.
412 * remote.c: Include "remote-notif.h".
413 (stop_reply_xmalloc, do_stop_reply_xfree):
414 (remote_parse_stop_reply, remote_get_pending_stop_replies):
415 (remote_async_get_pending_events_handler): Remove declarations.
416 (remote_parse_stop_reply): Declare.
417 (pending_stop_reply): Remove.
418 (remote_async_get_pending_events_token): Move to
419 remote-notif.c.
420 (remote_close): Replace 'delete_async_event_handler' with
421 remote_notif_unregister_async_event_handler.
422 Don't call discard_pending_stop_replies.
423 (remote_start_remote): Replace code with remote_notif_parse
424 and remote_notif_get_pending_replies.
425 (remote_open_1): Replace 'create_async_event_handler' with
426 remote_notif_register_async_event_handler.
427 (extended_remote_attach_1): Call remote_notif_parse and
428 notif_stop_reply_push.
429 (struct stop_reply) <next>: Remove.
430 <base>: New field.
431 Callers update.
432 (stop_reply_queue): Change its type.
433 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
434 (remote_notif_remove_all): New.
435 (discard_pending_stop_replies): Update.
436 (remote_notif_stop_ack, stop_reply_dtr): New.
437 (remote_notif_stop_alloc_event): New.
438 (notif_client_stop): New variable.
439 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
440 (queued_stop_reply, peek_stop_reply): Adjust.
441 (remote_get_pending_stop_replies): Rename to
442 remote_notif_get_pending_events.
443 (handle_notification): Move to remote-notif.c.
444 (remote_async_get_pending_events_handler): Likewise.
445 (remote_wait_as): Adjust to call remote_notif_parse.
446 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
447 Return minus_one_ptid early if gets a notification.
448 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
449 (_initialize_remote): Call QUEUE_alloc. Update caller.
450 (remote_resume): Call 'remote_notif_process' in all-stop mode.
451 * remote.h: Include "remote-notif.h".
452 (remote_notif_get_pending_replies): Declare.
453
454 2012-12-15 Yao Qi <yao@codesourcery.com>
455
456 * remote.c (discard_pending_stop_replies): Update declaration.
457 (remote_detach_1, extended_remote_mourn_1): Likewise.
458 (discard_pending_stop_replies): Change parameter from PID to
459 INF.
460 (remote_close): Update caller.
461 (_initialize_remote): Attach discard_pending_stop_replies to
462 inferior_exit observer.
463
464 2012-12-15 Yao Qi <yao@codesourcery.com>
465
466 * remote.c (getpkt_or_notif_sane): Add one more argument in
467 its declaration.
468 (getpkt_or_notif_sane_1): Add one more argument.
469 (getpkt_sane): Update caller.
470 (getpkt_or_notif_sane): Likewise. Update call
471 togetpkt_or_notif_sane_1.
472 (remote_wait_ns): Update caller.
473
474 2012-12-15 Yao Qi <yao@codesourcery.com>
475 Doug Evans <dje@google.com>
476
477 * common/queue.h: New.
478
479 2012-12-15 Yao Qi <yao@codesourcery.com>
480
481 * breakpoint.c (print_one_breakpoint_location): Display the
482 state of 'installed' of each non-pending location of a tracepoint
483 in both CLI and MI.
484 (download_tracepoint_locations): Notify 'breakpoint-modified'
485 observer if any tracepoint location is downloaded.
486 * tracepoint.c (start_tracing): Likewise.
487 (merge_uploaded_tracepoints): Record all modified
488 tracepoints and notify 'breakpoint-modified' observer for them.
489
490 * NEWS: Mention the change for CLI and MI.
491
492 2012-12-15 Yao Qi <yao@codesourcery.com>
493
494 * breakpoint.c (download_tracepoint_locations): Iterate over
495 ALL_TRACEPOINTS first and then iterate over locations of
496 each tracepoint.
497
498 2012-12-14 Pierre Muller <muller@sourceware.org>
499 Pedro Alves <palves@redhat.com>
500
501 * solib-target.c (solib_target_current_sos): Remove 'const'
502 qualifier from type of library_document local variable to be
503 able to free it and avoid a memory leak.
504 Use cleanup chain to avoid leak even if exceptino is generated.
505
506 2012-12-14 Tom Tromey <tromey@redhat.com>
507
508 PR c++/8888:
509 * symtab.c (lookup_symbol_aux): If constructor is found, consider
510 returning the type instead.
511 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
512 found.
513
514 2012-12-14 Tom Tromey <tromey@redhat.com>
515
516 Partial fix for PR c++/14160:
517 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
518 * dwarf2read.c (dwarf2_is_constructor): New function.
519 (dwarf2_add_member_fn): Use it.
520 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
521 TYPE_FN_FIELD_CONSTRUCTOR.
522 * jv-typeprint.c (java_type_print_base): Use
523 TYPE_FN_FIELD_CONSTRUCTOR.
524 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
525 <dummy>: Shrink.
526 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
527
528 2012-12-14 Tom Tromey <tromey@redhat.com>
529
530 * c-exp.y (block, variable, name_not_typename, lex_one_token,
531 classify_name): Update.
532 * c-valprint.c (c_val_print): Update.
533 * f-exp.y (yylex): Update.
534 * go-exp.y (package_name_p, classify_packaged_name)
535 (classify_name): Update.
536 * jv-exp.y (push_variable): Update.
537 * m2-exp.y (variable): Update.
538 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
539 * p-exp.y (block, variable, yylex): Update.
540 * p-valprint.c (pascal_val_print): Update.
541 * parse.c (write_dollar_variable): Update.
542 * printcmd.c (address_info): Update.
543 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
544 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
545 (lookup_symbol): Change type of 'is_a_field_of_this'.
546 (check_field): Add 'is_a_field_of_this' argument.
547 * symtab.h (struct field_of_this_result): New.
548 (lookup_symbol, lookup_symbol_in_language): Update.
549
550 2012-12-14 Tom Tromey <tromey@redhat.com>
551
552 * symtab.c (check_field): Now static. Move from...
553 * valops.c (check_field): ... here. Remove.
554 * value.h (check_field): Don't declare.
555
556 2012-12-14 Tom Tromey <tromey@redhat.com>
557
558 * NEWS: Mention "info proc" and core files.
559 * corelow.c (core_info_proc): New function.
560 (init_core_ops): Set to_info_proc.
561 * gdbarch.c, gdbarch.h: Rebuild.
562 * gdbarch.sh (core_info_proc): New method.
563 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
564 * linux-tdep.c (linux_core_info_proc_mappings)
565 (linux_core_info_proc): New functions.
566 (linux_find_memory_region_ftype): New typedef.
567 (linux_find_memory_regions_full): New function, from
568 linux_find_memory_regions.
569 (struct linux_find_memory_regions_data): New.
570 (linux_find_memory_regions_thunk): New function.
571 (linux_find_memory_regions): Rewrite.
572 (struct linux_make_mappings_data): New.
573 (linux_make_mappings_callback)
574 (linux_make_mappings_corefile_notes): New functions.
575 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
576 (linux_init_abi): Call set_gdbarch_core_info_proc.
577 * target.c (target_info_proc): Return 'int'.
578 * target.h (target_info_proc): Update.
579
580 2012-12-14 Pierre Muller <muller@sourceware.org>
581
582 * windows-nat.c (windows_xfer_shared_libraries): Avoid
583 memory leak when OFFSET >= LEN_AVAIL.
584
585 2012-12-13 Tom Tromey <tromey@redhat.com>
586
587 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
588
589 2012-12-13 Tom Tromey <tromey@redhat.com>
590
591 * acinclude.m4 (CY_AC_C_WORKS): Remove.
592
593 2012-12-13 Pierre Muller <muller@sourceware.org>
594
595 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
596 local variable and zero terminate it to avoid possible problems
597 in strcmp.
598
599 2012-12-13 Pedro Alves <palves@redhat.com>
600
601 * coff-pe-read.c: Include coff/internal.h.
602 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
603 Null terminate buffer explicitly instead of memset the whole
604 buffer.
605
606 2012-12-13 Pierre Muller <muller@sourceware.org>
607
608 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
609 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
610 for already defined macros.
611
612 2012-12-13 Pierre Muller <muller@sourceware.org>
613
614 * coff-pe-read.h (pe_text_section_offset): Declare new function.
615 * coff-pe-read.c (debug_coff_pe_read): New static variable.
616 (struct read_pe_section_data): Add section_name field.
617 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
618 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
619 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
620 (get_pe_section_index): New function.
621 (struct pe_sections_info): New type.
622 (get_section_vmas): Use new struct pe_sections_info.
623 (add_pe_exported_sym): Handle unnamed exported function.
624 (add_pe_forwarded_sym): New function.
625 (read_pe_truncate_name): Truncate at last dot.
626 (pe_as16): New function.
627 (read_pe_exported_syms): Use ordinal of function to
628 retrieve correct RVA address of function and handle
629 forwarded symbol.
630 (pe_text_section_offset): New function.
631 (show_debug_coff_pe_read): New function.
632 (_initialize_coff_pe_read): New function adding
633 'set/show debug coff_pe_read' commands.
634
635 * windows-tdep.c (windows_xfer_shared_library): Use
636 pe_text_section_offset function instead of possibly wrong
637 0x1000 constant for .text sextion offset.
638
639 2012-12-13 Pedro Alves <palves@redhat.com>
640
641 * gdbarch.sh (do_read): Set IFS to blank.
642
643 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
644
645 * NEWS: Mention the -catch-load/-catch-unload MI commands.
646
647 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
648
649 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
650 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
651 * breakpoint.c (add_solib_catchpoint): New function that
652 can be used by both CLI and MI, factored out from
653 catch_load_or_unload.
654 (catch_load_or_unload): Strip it down and make it use the
655 new add_solib_catchpoint.
656 * breakpoint.h (add_solib_catchpoint): Declare it.
657 * mi/mi-cmd-break.h: New file.
658 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
659 (setup_breakpoint_reporting): New function used for both
660 catchpoints and breakpoints.
661 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
662 * mi/mi-cmd-catch.c: New file.
663 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
664 and -catch-unload.
665 * mi/mi-cmds.h: Declare the handlers for -catch-load and
666 -catch-unload.
667
668 2012-11-28 Tom Tromey <tromey@redhat.com>
669
670 * dbxread.c (read_dbx_symtab): Update.
671 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
672 (read_ofile_symtab): Add 'objfile' argument.
673 * dwarf2read.c (process_psymtab_comp_unit_reader)
674 (build_type_psymtabs_reader): Update.
675 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
676 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
677 argument.
678 (parse_procedure, parse_partial_symbols): Update.
679 (psymtab_to_symtab_1): Add 'objfile' argument.
680 * psympriv.h (struct partial_symtab) <objfile>: Remove.
681 <read_symtab>: Add 'objfile' argument.
682 (sort_pst_symbols, discard_psymtab): Update.
683 * psymtab.c (partial_map_expand_apply): Update.
684 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
685 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
686 (find_pc_sect_psymbol): Add 'objfile' argument.
687 (lookup_symbol_aux_psymtabs): Update.
688 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
689 Add 'objfile' argument.
690 (find_last_source_symtab_from_partial, dump_psymtab)
691 (dump_psymtabs_for_objfile, read_symtabs_for_function)
692 (expand_partial_symbol_tables, read_psymtabs_with_filename)
693 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
694 (expand_symtabs_matching_via_partial): Update.
695 (sort_pst_symbols): Add 'objfile' argument.
696 (allocate_psymtab): Update.
697 (discard_psymtab): Add 'objfile' argument.
698 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
699 * stabsread.h (end_psymtab): Update.
700 * xcoffread.c (this_symtab_objfile): New global.
701 (process_linenos, enter_line_range, xcoff_next_symbol_text):
702 Update.
703 (read_xcoff_symtab): Add 'objfile' argument.
704 (read_symbol, read_symbol_lineno): Update.
705 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
706 (xcoff_end_psymtab): Add 'objfile' argument.
707 (scan_xcoff_symtab): Update.
708
709 2012-12-12 Paul Koning <paul_koning@dell.com>
710
711 Add support for Python 3.
712 * NEWS: Mention Python 3 support.
713 * varobj.c (value_get_print_value): Use
714 python_string_to_target_string.
715 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
716 of type objects.
717 * python/py-breakpoint.c: Ditto.
718 * python/py-cmd.c: Ditto.
719 * python/py-event.c: Ditto.
720 * python/py-event.h: Ditto.
721 * python/py-evtregistry.c: Ditto.
722 * python/py-finishbreakpoint.c: Ditto.
723 * python/py-frame.c: Ditto.
724 * python/py-function.c: Ditto.
725 * python/py-infthread.c: Ditto.
726 * python/py-lazy-string.c: Ditto.
727 * python/py-progspace.c: Ditto.
728 * /python/py-symbol.c: Ditto.
729 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
730 initialization for Python 3.
731 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
732 of type objects.
733 (infpy_read_memory): Return memoryview object if Python 3.
734 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
735 (infpy_search_memory): Ditto.
736 (get_buffer): New function for Python 3.
737 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
738 of type objects.
739 (objfpy_dealloc): Use Py_TYPE to call tp_free.
740 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
741 of type objects.
742 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
743 (set_attr): Ditto.
744 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
745 instead of PyString methods if Python 3.
746 (print_children): Skip push_dummy_python_frame call if Python 3.
747 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
748 of type objects.
749 (salpy_dealloc): Use Py_TYPE to call tp_free.
750 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
751 of type objects.
752 (field_dealloc): Use Py_TYPE to call tp_free.
753 (typy_dealloc): Ditto.
754 (type_object_as_number): Adjust struct initializations for
755 differences in layout for Python 2 vs. Python 3.
756 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
757 string case for Python 3.
758 (unicode_to_encoded_python_string): Shorten code (no functional
759 change).
760 (python_string_to_target_python_string): Comment that in Python 3
761 returned value is a Python "bytes" type.
762 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
763 (gdb_py_object_from_longest): Omit non-long integer case in Python
764 3.
765 (gdb_py_object_from_ulongest): Ditto.
766 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
767 of type objects.
768 (valpy_dealloc): Use Py_TYPE to call tp_free.
769 (valpy_int): Omit function if Python 3.
770 (convert_value_from_python): Use "%S" format (Python object as a
771 string) if Python 3.
772 (value_object_as_number): Adjust struct initializations for
773 differences in layout for Python 2 vs. Python 3.
774 * python/python-config.py: Adjust syntax for Python 3
775 compatibility.
776 Include "sys.abiflags" string as part of python library name, if
777 that attribute exists (Python 3).
778 * python/python-internal.h (IS_PY3): Define if Python 3.
779 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
780 placeholder value if Python 3.
781 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
782 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
783 analogous Python 3 API function if Python 3.
784 (PyVarObject_HEAD_INIT): Define if not already defined.
785 (Py_TYPE): Ditto.
786 * python/python.c (eval_python_command): Omit Py_FlushLine call if
787 Python 3.
788 Check return values of all Python API calls for error.
789 Supply dummy "python" and "python-interactive" commands if Python
790 initialization failed.
791 (_initialize_python): Convert argc to wchar_t** if Python 3.
792 Add module initialization for Python 3.
793 (finish_python_initialization): Pass wchar_t * argument to
794 PySys_SetPath if Python 3.
795 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
796 (_GdbFile): New class for common output file behavior.
797 (GdbOutFile): Subclass from _GdbFile.
798 (GdbOutputErrorFile): Ditto.
799 (auto_load_packages): Adjust syntax for Python 3 compatibility.
800 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
801 * python/lib/gdb/prompt.py: Use sorted() function rather than
802 sort() method.
803 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
804 Adjust syntax for Python 3 compatibility.
805 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
806 rather than sort() method.
807 Adjust syntax for Python 3 compatibility.
808 * python/lib/gdb/command/type_printers.py: Ditto.
809 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
810 value is a memoryview object if Python 3.
811
812 2012-12-12 Tom Tromey <tromey@redhat.com>
813
814 * coffread.c (coff_objfile_data_key): New global.
815 (coff_symfile_init): Use set_objfile_data.
816 (coff_symfile_read): Use objfile_data.
817 (coff_symfile_finish): Don't free deprecated_sym_private.
818 (coff_free_info): New function.
819 (_initialize_coffread): Initialize coff_objfile_data_key.
820 * mdebugread.c (pending_list): Update comment.
821 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
822 * symfile.c (reread_symbols): Don't mention
823 deprecated_sym_private.
824 * xcoffread.c (xcoff_objfile_data_key): New global.
825 (XCOFF_DATA): New macro.
826 (process_linenos, enter_line_range, xcoff_next_symbol_text)
827 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
828 XCOFF_DATA.
829 (xcoff_new_init) Use set_objfile_data.
830 (xcoff_symfile_finish): Don't free deprecated_sym_private.
831 (init_stringtab, swap_sym, scan_xcoff_symtab)
832 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
833 (xcoff_free_info): New function.
834 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
835
836 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
837
838 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
839
840 2012-12-12 Tom Tromey <tromey@redhat.com>
841
842 * coffread.c (coff_symfile_init): Use set_objfile_data.
843 (coff_symfile_read): Use DBX_SYMFILE_INFO.
844 * dbxread.c (dbx_objfile_data_key): New global.
845 (dbx_symfile_init): Use set_objfile_data.
846 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
847 (dbx_free_symfile_info): New function.
848 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
849 DBX_SYMFILE_INFO.
850 (stabsect_build_psymtabs): Use set_objfile_data.
851 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
852 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
853 set_objfile_data.
854 (free_elfinfo): Use DBX_SYMFILE_INFO.
855 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
856 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
857 * gdb-stabs.h (dbx_objfile_data_key): Declare.
858 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
859 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
860 * somread.c (som_symfile_finish): Don't free
861 deprecated_sym_stab_info.
862
863 2012-12-12 Joel Brobecker <brobecker@adacore.com>
864
865 * gdbarch.sh (software_single_step): Remove trailing space in
866 comment (gdbarch.h is already correct).
867
868 2012-12-11 Tom Tromey <tromey@redhat.com>
869
870 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
871
872 2012-12-11 Tom Tromey <tromey@redhat.com>
873
874 * dsrec.c (report_transfer_performance): Don't declare.
875 (load_srec): Use gettimeofday, print_transfer_performance.
876 * symfile.c (report_transfer_performance): Remove.
877
878 2012-12-11 Pedro Alves <pedro@codesourcery.com>
879 Pedro Alves <palves@redhat.com>
880
881 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
882 NT_PSTATUS note.
883 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
884 differently from LWP IDs.
885
886 2012-12-11 Pedro Alves <palves@redhat.com>
887
888 * configure.ac (detect type of /proc): Remove Unixware handling.
889 * configure: Regenerate.
890 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
891 (ioctl_table) [PCRESET]: Remove entry.
892 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
893 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
894 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
895 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
896 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
897 Unixware in comments throughout.
898 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
899 and remove mention of Unixware.
900
901 2012-12-10 Doug Evans <dje@google.com>
902
903 * dwarf2read.c (dwarf2_cu): Enhance comment.
904 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
905 the DWO file.
906 (dwarf2_record_block_ranges): Ditto.
907
908 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
909
910 * symtab.c (find_pc_sect_symtab): Add comment.
911
912 2012-12-10 Tom Tromey <tromey@redhat.com>
913
914 * defs.h: Don't check for definition of LONGEST.
915 (min, max): Remove duplicates.
916
917 2012-12-10 Tom Tromey <tromey@redhat.com>
918
919 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
920 (dwarf2_fetch_die_loc_cu_off): Rename from
921 dwarf2_fetch_die_location_block. Rewrite to use
922 dwarf2_fetch_die_loc_sect_off.
923 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
924 (dwarf2_fetch_die_loc_cu_off): Rename.
925 * dwarf2loc.c (indirect_pieced_value): Use
926 dwarf2_fetch_die_loc_sect_off.
927 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
928 comment.
929 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
930 * dwarf2expr.c (add_piece): Update.
931 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
932
933 2012-12-10 Tom Tromey <tromey@redhat.com>
934
935 * buildsym.c (struct pending_block): Move from buildsym.h.
936 (pending_blocks): Likewise; now static.
937 (pending_block_obstack): New global.
938 (free_pending_blocks): Free blocks.
939 (record_pending_block): Use pending_block_obstack.
940 * buildsym.h (struct pending_block): Move definition to
941 buildsym.c.
942 (pending_blocks): Don't declare.
943
944 2012-12-10 Pedro Alves <palves@redhat.com>
945
946 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
947 dead SCO code, and adjust function description comment.
948
949 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
950
951 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
952 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
953 CC_HAS_LONG_LONG.
954 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
955 * dwarf2read.c (extract_cu_value): Remove the function.
956 (create_cus_from_index_list): Make the return type void, inline the
957 extract_cu_value caller, include new gdb_static_assert.
958 (create_cus_from_index): Make the return type void, update the function
959 comment, update the create_cus_from_index_list caller.
960 (create_signatured_type_table_from_index): Make the return type void,
961 inline the extract_cu_value caller, include new gdb_static_assert.
962 (dwarf2_read_index): Update the create_cus_from_index and
963 create_signatured_type_table_from_index caller.
964 * printcmd.c (ui_printf): Remove conditionalizations for
965 CC_HAS_LONG_LONG.
966 * config.in: Regenerate.
967 * configure: Regenerate.
968
969 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
970
971 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
972 Update the comment for checked_producer.
973 (check_producer): New forward declaration.
974 (producer_is_gcc_lt_4_3): New function.
975 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
976 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
977
978 2012-12-07 Tom Tromey <tromey@redhat.com>
979
980 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
981 argument, assertion.
982 * c-exp.y (typebase): Add completion productions.
983 * completer.c (expression_completer): Handle tag completion.
984 * expression.h (parse_expression_for_completion): Add argument.
985 * f-lang.c (f_make_symbol_completion_list): Add 'code'
986 argument.
987 * language.h (struct language_defn)
988 <la_make_symbol_completion_list>: Add 'code' argument.
989 * parse.c (expout_tag_completion_type, expout_completion_name):
990 New globals.
991 (mark_struct_expression): Add assertion.
992 (mark_completion_tag): New function.
993 (parse_exp_in_context): Initialize new globals.
994 (parse_expression_for_completion): Add 'code' argument. Handle
995 tag completion.
996 * parser-defs.h (mark_completion_tag): Declare.
997 * symtab.c (default_make_symbol_completion_list_break_on): Add
998 'code' argument. Update.
999 (default_make_symbol_completion_list): Add 'code' argument.
1000 (make_symbol_completion_list): Update.
1001 (make_symbol_completion_type): New function.
1002 * symtab.h (default_make_symbol_completion_list_break_on)
1003 (default_make_symbol_completion_list): Update.
1004 (make_symbol_completion_type): Declare.
1005
1006 2012-12-07 Tom Tromey <tromey@redhat.com>
1007
1008 * expression.h (parse_expression_for_completion): Rename
1009 from parse_field_expression.
1010 (parse_completion): Rename from in_parse_field.
1011 * c-exp.y (lex_one_token): Update.
1012 * completer.c (expression_completer): Update.
1013 * go-exp.y (lex_one_token): Update.
1014 * p-exp.y (yylex): Update.
1015 * parse.c (parse_completion): Rename from in_parse_field.
1016 (parse_exp_in_context): Update.
1017 (parse_expression_for_completion): Rename from
1018 parse_field_expression. Update.
1019
1020 2012-12-07 Tom Tromey <tromey@redhat.com>
1021
1022 * typeprint.c (_initialize_typeprint): Set completer
1023 for "whatis" and "ptype".
1024
1025 2012-12-07 Joel Brobecker <brobecker@adacore.com>
1026
1027 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
1028 "sim/common/cgen-fpu.h". Remove invalid entries
1029 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
1030 which actually have an FSF copyright header.
1031
1032 2012-12-07 Joel Brobecker <brobecker@adacore.com>
1033
1034 * osf-share/AT386/cma_thread_io.h: Delete.
1035 * osf-share/HP800/cma_thread_io.h: Delete.
1036 * osf-share/README: Delete.
1037 * osf-share/RIOS/cma_thread_io.h: Delete.
1038 * osf-share/cma_attr.h: Delete.
1039 * osf-share/cma_deb_core.h: Delete.
1040 * osf-share/cma_debug_client.h: Delete.
1041 * osf-share/cma_errors.h: Delete.
1042 * osf-share/cma_handle.h: Delete.
1043 * osf-share/cma_init.h: Delete.
1044 * osf-share/cma_list.h: Delete.
1045 * osf-share/cma_mutex.h: Delete.
1046 * osf-share/cma_sched.h: Delete.
1047 * osf-share/cma_semaphore_defs.h: Delete.
1048 * osf-share/cma_sequence.h: Delete.
1049 * osf-share/cma_stack.h: Delete.
1050 * osf-share/cma_stack_int.h: Delete.
1051 * osf-share/cma_tcb_defs.h: Delete.
1052 * osf-share/cma_util.h: Delete.
1053 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
1054 in osf-share.
1055 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
1056 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
1057 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
1058
1059 2012-12-06 Pedro Alves <palves@redhat.com>
1060 Tom Tromey <tromey@redhat.com>
1061
1062 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
1063
1064 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
1065
1066 PR mi/14741:
1067 * mi/mi-cmd-var.c (varobj_update_one): Take value of
1068 attribute "dynamic" and "displayhint" from printed child,
1069 not the root variable.
1070
1071 2012-12-06 Joel Brobecker <brobecker@adacore.com>
1072
1073 * aix-thread.c (getthrds): Fix type of 4th parameter.
1074 (get_signaled_thread): Change type of variable ktid to tid_t.
1075
1076 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
1077
1078 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
1079 value of get_frame_block.
1080
1081 2012-12-05 Pierre Muller <muller@sourceware.org>
1082
1083 Avoid memory leaks on struct cmd_list_element.doc field.
1084 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
1085 if flags contains DOC_ALLOCATED.
1086 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
1087 flags.
1088 (delete_cmd): Handle DOC_ALLOCATED flag.
1089 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
1090 in flags filed of struct cmd_list_element.
1091 (struct cmd_list_element): Document new flag item.
1092
1093 2012-12-04 Doug Evans <dje@google.com>
1094
1095 * symmisc.c: Whitespace fixes.
1096
1097 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
1098
1099 * i386-tdep.c (i386_skip_prologue): Using symbol table
1100 to find the end of prologue for clang compiled binaries.
1101 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1102 to find the end of prologue for clang compiled binaries.
1103
1104 2012-12-03 Doug Evans <dje@google.com>
1105
1106 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
1107 (dw2_find_symbol_file): Delete unused local file_data.
1108
1109 2012-12-03 Tom Tromey <tromey@redhat.com>
1110
1111 * ada-exp.y (write_object_renaming, write_var_or_type)
1112 (write_ambiguous_var, write_var_from_sym): Make blocks const.
1113 * ada-lang.c (replace_operator_with_call)
1114 (find_old_style_renaming_symbol): Make blocks const.
1115 * ada-lang.h (ada_find_renaming_symbol): Update.
1116 (struct ada_symbol_info) <block>: Now const.
1117 * breakpoint.c (watch_command_1): Update.
1118 * breakpoint.h (struct watchpoint) <exp_valid_block,
1119 cond_exp_valid_block>: Now const.
1120 * c-exp.y (classify_inner_name, classify_name): Make block
1121 argument const.
1122 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
1123 const.
1124 * expression.h (innermost_block, parse_exp_1): Update.
1125 (union exp_element) <block>: Now const.
1126 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
1127 (lookup_struct): Make block argument const.
1128 * gdbtypes.h (lookup_template_type): Update.
1129 * go-exp.y (classify_name, classify_packaged_name)
1130 (package_name_p): Make block argument const.
1131 * objc-lang.c (lookup_struct_typedef): Make block argument const.
1132 * objc-lang.h (lookup_struct_typedef): Update.
1133 * parse.c (parse_exp_in_context, parse_exp_1)
1134 (write_exp_elt_block): Make block arguments const.
1135 (expression_context_block, innermost_block): Now const.
1136 * parser-defs.h (write_exp_elt_block): Update.
1137 (expression_context_block, innermost_block, block_found): Now
1138 const.
1139 * printcmd.c (struct display) <block>: Now const.
1140 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1141 * valops.c (address_of_variable): Make block argument const.
1142 * value.h (value_of_variable): Update.
1143 * varobj.c (struct varobj_root) <valid_block>: Now const.
1144
1145 2012-11-30 Yao Qi <yao@codesourcery.com>
1146
1147 * breakpoint.c (print_one_breakpoint_location): Indent code.
1148
1149 2012-11-30 Yao Qi <yao@codesourcery.com>
1150
1151 * breakpoint.c (print_one_breakpoint_location): Combine two
1152 blocks handling 'hit count' together.
1153
1154 2012-11-30 Yao Qi <yao@codesourcery.com>
1155
1156 * infrun.c (error_is_running, ensure_not_running): Move them
1157 to ...
1158 * infcmd.c (error_is_running, ensure_not_running): ... here.
1159 Make them 'static'.
1160 * inferior.h: Remove declarations of error_is_running and
1161 ensure_not_running.
1162
1163 2012-11-30 Yao Qi <yao@codesourcery.com>
1164
1165 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
1166 check REGNUM >= 0.
1167
1168 2012-11-30 Yao Qi <yao@codesourcery.com>
1169
1170 * infrun.c: Make the declaration of 'init_infwait_state'
1171 static.
1172 (init_infwait_state): Make it 'static'.
1173
1174 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1175
1176 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1177 return value to void to avoid compiler warning.
1178
1179 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1180
1181 * opencl-lang.c (opencl_print_type): New function.
1182 (opencl_language_arch_info): Install it.
1183
1184 2012-11-29 Tom Tromey <tromey@redhat.com>
1185
1186 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1187 xvasprintf.
1188 * common/common-utils.c (xasprintf, xvasprintf): Remove.
1189 * common/common-utils.h (xasprintf, xvasprintf): Remove.
1190
1191 2012-11-29 Jerome Guitton <guitton@adacore.com>
1192
1193 * ada-lang.c (ada_is_interface_tag): New function.
1194 (ada_is_ignored_field): Add interface tags to the list
1195 of ignored fields.
1196
1197 2012-11-29 Jerome Guitton <guitton@adacore.com>
1198
1199 * ada-lang.h (ada_tag_value_at_base_address): New function
1200 declaration.
1201 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1202 New functions.
1203 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1204 relocate the class-wide value if need be.
1205 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1206 Let ada_tag_value_at_base_address relocate the class-wide access/ref
1207 before dereferencing it.
1208 * ada-valprint.c (ada_val_print_1): Relocate to base address
1209 before displaying the content of an interface-wide ref.
1210
1211 2012-11-29 Jerome Guitton <guitton@adacore.com>
1212
1213 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1214
1215 2012-11-29 Joel Brobecker <brobecker@adacore.com>
1216
1217 GDB 7.5.1 released.
1218
1219 2012-11-29 Yao Qi <yao@codesourcery.com>
1220 Tom Tromey <tromey@redhat.com>
1221
1222 * eval.c (evaluate_subexp_standard): Get the correct pointer
1223 type for TYPE_CODE_MEMBERPTR.
1224
1225 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
1226
1227 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1228 since now it is being done by binutils' powerpc_init_dialect().
1229
1230 2012-11-28 Tom Tromey <tromey@redhat.com>
1231
1232 PR gdb/14290:
1233 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1234 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1235 Use it.
1236 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1237 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1238 (gdb_bfd_openr_next_archived_file): Use it.
1239
1240 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
1241
1242 * configure.ac: Check for linux/perf_event.h.
1243 * config.in: Regenerated.
1244 * configure: Regenerated.
1245
1246 2012-11-28 Yao Qi <yao@codesourcery.com>
1247
1248 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1249 abbreviate 'delete tracepoints' to 'delete tr'.
1250 * corefile.c (_initialize_core): Call add_alias_cmd to
1251 abbreviate 'set gnutarget' to 'set g'.
1252 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1253 'show convenience' to 'show conv'.
1254
1255 2012-11-27 Joel Brobecker <brobecker@adacore.com>
1256
1257 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1258 call to sparc_supply_fpregset.
1259 (fill_fpregset): Fix first parameter in call to
1260 sparc_collect_fpregset.
1261
1262 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1263 Kazu Hirata <kazu@codesourcery.com>
1264 Yao Qi <yao@codesourcery.com>
1265
1266 * objfiles.c (init_entry_point_info): Call
1267 gdbarch_convert_from_func_ptr_addr and
1268 gdbarch_addr_bits_remove here ...
1269 (entry_point_address_query): ... instead of here.
1270 * solib-svr4.c (exec_entry_point): Call
1271 gdbarch_addr_bits_remove.
1272 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1273 the entry address.
1274
1275 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1276 Yao Qi <yao@codesourcery.com>
1277
1278 * eval.c (evaluate_subexp_standard): Add handling of
1279 TYPE_CODE_MEMBERPTR when calling functions. Correct the
1280 result of ptype for calling a TYPE_CODE_METHODPTR.
1281
1282 2012-11-27 Yao Qi <yao@codesourcery.com>
1283
1284 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1285 warning.
1286 Add i18n markup.
1287
1288 2012-11-26 Alexander Larsson <alexl@redhat.com>
1289 Jan Kratochvil <jan.kratochvil@redhat.com>
1290 Tom Tromey <tromey@redhat.com>
1291
1292 * NEWS: Mention mini debuginfo feature.
1293 * minidebug.c: New file.
1294 * configure.ac: Check for lzma.
1295 * configure, config.in: Rebuild.
1296 * Makefile.in (LIBLZMA): New variable.
1297 (CLIBS): Include LIBLZMA.
1298 (SFILES): Mention minidebug.c.
1299 (COMMON_OBS): Mention minidebug.o.
1300 * symfile.c (read_symbols): New function.
1301 (syms_from_objfile, reread_symbols): Call it.
1302 * symfile.h (find_separate_debug_file_in_section): Declare.
1303
1304 2012-11-26 Keith Seitz <keiths@redhat.com>
1305
1306 * exec.c (exec_file_attach): Move cleanup after verifying that
1307 memory has in fact been allocated.
1308
1309 2012-11-26 Tom Tromey <tromey@redhat.com>
1310
1311 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1312 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1313 SYMBOL_SYMTAB.
1314 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1315
1316 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1317 Pedro Alves <palves@redhat.com>
1318
1319 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1320 size parameter passed to readlink by one byte.
1321 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1322 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1323 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1324 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1325 size by one byte.
1326
1327 2012-11-26 Yao Qi <yao@codesourcery.com>
1328
1329 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1330 extraneous parentheses.
1331
1332 2012-11-26 Yao Qi <yao@codesourcery.com>
1333
1334 * remote.c (remote_start_remote): Typo fix.
1335
1336 2012-11-23 David S. Miller <davem@davemloft.net>
1337
1338 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1339 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1340 sparc32_sol2_fpregset): Declare new globals.
1341 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1342 'fpregset' argument.
1343 * sparc64-tdep.h (sparc64_supply_fpregset,
1344 sparc64_collect_fpregset): Likewise.
1345 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1346 globals.
1347 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1348 (sparc_fpregset): Declare new global.
1349 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1350 'fpregset' argument.
1351 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1352 into handler.
1353 (fill_fpregset): Likewise.
1354 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1355 sparc32_bsd_fpregset.
1356 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1357 sparc32_bsd_fpregset down into handler.
1358 (sparc32_linux_collect_core_fpregset): Likewise.
1359 * sparc-nat.c (sparc_fpregset): Define.
1360 (sparc_supply_fpregset): Add 'fpregset' argument.
1361 (sparc_collect_fpregset): Likewise.
1362 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1363 into fpregset handler.
1364 (sparc_store_inferior_registers): Likewise.
1365 (_initialize_sparc_nat): Set sparc_fpregset to
1366 sparc32_sunos4_fpregset if NULL.
1367 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1368 down into handler.
1369 (fill_fpregset): Likewise.
1370 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1371 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1372 use it to compute offsets.
1373 (sparc32_collect_fpregset): Likewise.
1374 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1375 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1376 down into handler.
1377 (fill_fpregset): Likewise.
1378 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1379 Likewise.
1380 (sparc64_linux_collect_core_fpregset): Likewise.
1381 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1382 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1383 use it to compute offsets.
1384 (sparc64_collect_fpregset): Likewise.
1385 (sparc64_bsd_fpregset): Define.
1386 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1387 sparc64_bsd_fpregset down into handler.
1388 (sparc64fbsd_collect_fpregset): Likewise.
1389 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1390 and pass sparc{32,64}_bsd_fpregset down into handler.
1391 (sparc64nbsd_collect_fpregset): Likewise.
1392 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1393 sparc64_bsd_fpregset down into handler.
1394 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1395 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1396 to sparc32_bsd_fpregset.
1397 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1398 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1399 (sparc32nbsd_supply_fpregset): Likewise.
1400
1401 2012-11-21 Tom Tromey <tromey@redhat.com>
1402
1403 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1404 field.
1405 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1406 Remove.
1407 * c-typeprint.c (c_type_print_base): Update.
1408
1409 2012-11-21 Yao Qi <yao@codesourcery.com>
1410
1411 PR tdep/7438
1412 * gdbarch.sh (smash_text_address): Remove.
1413 * gdbarch.c, gdbarch.h: Regenerate.
1414 * arm-tdep.c (arm_smash_text_address): Remove.
1415 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1416 * hppa-tdep.c (hppa_smash_text_address): Remove.
1417 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1418 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1419 Caller update.
1420 * coffread.c (coff_symtab_read): Caller update.
1421 * dbxread.c (process_one_symbol): Likewise.
1422 * elfread.c (record_minimal_symbol): Likewise.
1423 * somread.c (som_symtab_read): Likewise.
1424
1425 2012-11-20 Pierre Muller <muller@sourceware.org>
1426
1427 ARI fixes: sprintf rule.
1428 Replace sprintf function calls for char arrays by
1429 calls to xsnprintf calls.
1430 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1431 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1432 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1433 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1434 * breakpoint.c (condition_completer): Ditto.
1435 (create_tracepoint_from_upload): Ditto.
1436 * dwarf2read.c (file_full_name): Ditto.
1437 * gcore.c (gcore_command): Ditto.
1438 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1439 * go32-nat.c (go32_sysinfo): Ditto.
1440 * interps.c (interp_set): Ditto.
1441 * m32c-tdep.c (make_types): Ditto.
1442 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1443 * remote-m32r-sdi.c (m32r_open): Ditto.
1444 * sol-thread.c (td_err_string): Ditto.
1445 (td_state_string, solaris_pid_to_str): Ditto.
1446 * symtab.c (gdb_mangle_name): Ditto.
1447 * cli/cli-script.c (execute_control_command): Ditto.
1448 (define_command, document_command): Ditto.
1449 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1450 * tui/tui-stack.c (tui_make_status_line): Ditto.
1451 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1452
1453 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1454
1455 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1456 it when looking at ptr->func.
1457 * command.h (complete_on_cmdlist): Add a fourth arg.
1458 * completer.c (complete_line_internal): Add local ignore_help_classes,
1459 and set it to 1 when reason is not handle_help. Pass this down to
1460 lookup_cmd_1 and complete_on_cmdlist.
1461
1462 2012-11-20 Tom Tromey <tromey@redhat.com>
1463
1464 * completer.c (count_struct_fields): Remove.
1465 (expression_completer): Don't call count_struct_fields.
1466
1467 2012-11-20 Pedro Alves <palves@redhat.com>
1468
1469 * annotate.c (breakpoints_changed): Rename to ...
1470 (annotate_breakpoints_changed): ... this.
1471 (annotate_stopped, breakpoint_changed): Adjust caller.
1472 * annotate.h (breakpoints_changed): Rename to ...
1473 (annotate_breakpoints_changed): ... this.
1474 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1475 (do_map_commands_command, init_raw_breakpoint, clear_command)
1476 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1477
1478 2012-11-20 David S. Miller <davem@davemloft.net>
1479
1480 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1481 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1482 sysconf.
1483 (get_cores_used_by_process): Update comment.
1484
1485 2012-11-20 Yao Qi <yao@codesourcery.com>
1486
1487 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1488
1489 2012-11-20 Yao Qi <yao@codesourcery.com>
1490
1491 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1492 to deprecated_context_hook.
1493
1494 2012-11-19 Yao Qi <yao@codesourcery.com>
1495
1496 * infrun.c (infwait_state): Add static.
1497
1498 2012-11-16 Keith Seitz <keiths@redhat.com>
1499
1500 PR c++/13615
1501 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1502 parameter and pass it to lookup_symbol_file.
1503 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1504 to search base classes.
1505 (cp_lookup_symbol_namespace): Likewise.
1506 (lookup_namespace_scope): Likewise.
1507 (lookup_symbol_file): Add SEARCH parameter.
1508 If SEARCH is non-zero and no symbol is found, lookup the class
1509 and call cp_lookup_nested_symbol.
1510 (find_symbol_in_baseclass): New function.
1511 (cp_lookup_nested_symbol): Do not let
1512 cp_lookup_symbol_in_namespace search through base classes.
1513 Do that later when there is no global symbol match.
1514
1515 2012-11-16 Doug Evans <dje@google.com>
1516
1517 * main.c (gdb_datadir_provided): New static global.
1518 (get_init_files): If --data-directory is provided,
1519 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1520 * NEWS: Mention it.
1521
1522 2012-11-15 Pierre Muller <muller@sourceware.org>
1523
1524 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1525 * gdb_stat.h: Delete. Moved to common directory.
1526 * common/gdb_stat.h: New file.
1527 * gdb_wait.h: Delete. Moved to common directory.
1528 * common/gdb_wait.h: New file.
1529 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1530 location.
1531 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1532 location.
1533 (stat.h rule): Adapt to new gdb_stat.h location.
1534 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1535 <sys/stat.h> header.
1536 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1537 <sys/wait.h> header.
1538
1539 2012-11-15 Pierre Muller <muller@sourceware.org>
1540
1541 * configure.ac (AC_HEADER_STAT): Remove.
1542 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1543 and corresponding code.
1544 * configure: Regenerate.
1545 * config.in: Regenerate.
1546
1547 2012-11-15 Pierre Muller <muller@sourceware.org>
1548
1549 ARI xasprintf rule fixes.
1550 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1551 instead of xasprintf.
1552 (open_and_init_dwp_file): Ditto.
1553
1554 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1555
1556 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1557 target types.
1558
1559 2012-11-14 Tom Tromey <tromey@redhat.com>
1560
1561 * configure, config.in: Rebuild.
1562 * configure.ac: Don't check for ctype.h, time.h.
1563 * expprint.c: Don't use HAVE_CTYPE_H.
1564
1565 2012-11-13 Tom Tromey <tromey@redhat.com>
1566
1567 * gdbarch.h, gdbarch.c: Rebuild.
1568 * gdbarch.sh (set_target_gdbarch): Rename from
1569 deprecated_target_gdbarch_select_hack.
1570 * arch-utils.c (gdbarch_update_p): Update.
1571 (set_gdbarch_from_file): Update.
1572
1573 2012-11-14 Pierre Muller <muller@sourceware.org>
1574
1575 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1576 as responsible of contrib/ari directory.
1577
1578 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1579 Yao Qi <yao@codesourcery.com>
1580
1581 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1582 bit of EXC_RETURN.
1583 (arm_m_exception_cache, arm_m_exception_this_id)
1584 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1585 (arm_m_exception_unwind): New.
1586 (arm_gdbarch_init): Register arm_m_exception_unwind.
1587
1588 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1589
1590 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1591 parameter COUNT, for pattern filling of memory regions.
1592 * NEWS: Mention it.
1593
1594 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1595
1596 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1597 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1598 to print_source_lines ().
1599 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1600 flag.
1601 * source.c (print_source_lines_base): Prefix source line with
1602 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1603
1604 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1605
1606 * symtab.h (print_source_lines_flags): New enum.
1607 * source.c (print_source_lines_base): Change noerror to flags.
1608 (print_source_lines): Change noerror to flags.
1609
1610 2012-11-13 Pierre Muller <muller@sourceware.org>
1611
1612 ARI fixes: Avoid sprintf function use rule.
1613 * charset.c (convert_between_encodings): Use xsnprintf.
1614 * cli-out.c (cli_field_int): Likewise.
1615 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1616 * expprint.c (op_name_standard): Likewise.
1617 * frv-tdep.c (set_variant_num_gprs): Likewise.
1618 (set_variant_num_fprs): Likewise.
1619 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1620 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1621 (nto_init_solib_absolute_prefix): Likewise.
1622 * source.c (init_source_path): Likewise.
1623 (print_source_lines_base): Likewise.
1624 * valprint.c (print_wchar): Likewise.
1625 * mi/mi-out.c (mi_field_int): Likewise.
1626 windows-nat.c (windows_pid_to_exec_file): Likewise.
1627 (windows_create_inferior): Likewise.
1628 (_initialize_check_for_gdb_ini): Likewise.
1629
1630 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1631
1632 * frame.h (deprecated_frame_register_read): Renames
1633 frame_register_read.
1634 * frame.c (deprecated_frame_register_read): Renames
1635 frame_register_read. Update all callers.
1636 * i386-tdep.c: Update all callers of frame_register_read.
1637 * infcmd.c: Likewise.
1638 * jit.c: Likewise.
1639 * mips-tdep.c: Likewise.
1640 * mt-tdep.c: Likewise.
1641 * sh64-tdep.c: Likewise.
1642
1643 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1644
1645 * frame.h (frame_register_read): Remove FIXME comment.
1646 * frame.c (frame_register_read): Add suggestion explaining
1647 which function to use in place of this one.
1648
1649 2012-11-12 Tom Tromey <tromey@redhat.com>
1650
1651 * python/python.c (start_type_printers): Initialize 'result_obj'.
1652
1653 2012-11-12 Tom Tromey <tromey@redhat.com>
1654
1655 * NEWS: Update.
1656 * data-directory/Makefile.in (PYTHON_FILES): Add
1657 type_printers.py.
1658 * python/lib/gdb/command/type_printers.py: New file.
1659 * python/lib/gdb/command/types.py (TypePrinter): New class.
1660 (_get_some_type_recognizers, get_type_recognizers,
1661 apply_type_recognizers, register_type_printer): New
1662 functions.
1663 * python/py-objfile.c (objfile_object) <type_printers>: New
1664 field.
1665 (objfpy_dealloc): Decref new field.
1666 (objfpy_new): Set new field.
1667 (objfpy_get_type_printers, objfpy_set_type_printers): New
1668 functions.
1669 (objfile_to_objfile_object): Set new field.
1670 (objfile_getset): Add "type_printers".
1671 * python/py-progspace.c (pspace_object) <type_printers>: New
1672 field.
1673 (pspy_dealloc): Decref new field.
1674 (pspy_new): Set new field.
1675 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1676 (pspace_to_pspace_object): Set new field.
1677 (pspace_getset): Add "type_printers".
1678 * python/python.c (start_type_printers, apply_type_printers,
1679 free_type_printers): New functions.
1680 (_initialize_python): Set gdb.type_printers.
1681 * python/python.h (start_type_printers, apply_type_printers,
1682 free_type_printers): Declare.
1683 * typeprint.c (type_print_raw_options, default_ptype_flags):
1684 Update for new fields.
1685 (do_free_global_table, create_global_typedef_table,
1686 find_global_typedef): New functions.
1687 (find_typedef_in_hash): Use find_global_typedef.
1688 (whatis_exp): Use create_global_typedef_table. Change cleanup
1689 handling.
1690 * typeprint.h (struct type_print_options) <global_typedefs,
1691 global_printers>: New fields.
1692
1693 2012-11-12 Tom Tromey <tromey@redhat.com>
1694
1695 * c-typeprint.c (find_typedef_for_canonicalize,
1696 print_name_maybe_canonical): New functions.
1697 (c_print_type): Look up type name.
1698 (cp_type_print_derivation_info): Add flags argument. Use
1699 print_name_maybe_canonical.
1700 (cp_type_print_method_args): Add wrapping.
1701 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1702 (c_type_print_template_args): New function.
1703 (c_type_print_base): Change wrapping. Use
1704 print_name_maybe_canonical.
1705 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1706 type name lookups.
1707 * gdbtypes.c (types_equal): No longer static.
1708 * gdbtypes.h (types_equal): Declare.
1709 * typeprint.c (type_print_raw_options, default_ptype_flags):
1710 Update.
1711 (struct typedef_hash_table): New.
1712 (hash_typedef_field, eq_typedef_field,
1713 recursively_update_typedef_hash, add_template_parameters,
1714 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1715 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1716 copy_typedef_hash, find_typedef_in_hash): New functions.
1717 * typeprint.h (struct type_print_options) <local_typedefs>:
1718 New field.
1719 (recursively_update_typedef_hash, add_template_parameters,
1720 create_typedef_hash, free_typedef_hash,
1721 make_cleanup_free_typedef_hash, copy_typedef_hash,
1722 find_typedef_in_hash): Declare.
1723
1724 2012-11-12 Tom Tromey <tromey@redhat.com>
1725
1726 * cp-support.c (inspect_type,
1727 replace_typedefs_qualified_name, replace_typedefs): Add
1728 finder, data arguments. Call as needed.
1729 (cp_canonicalize_string_full): New function.
1730 (cp_canonicalize_string_no_typedefs): Rewrite.
1731 * cp-support.h (canonicalization_ftype): New typedef.
1732 (cp_canonicalize_string_full): Declare.
1733
1734 2012-11-12 Tom Tromey <tromey@redhat.com>
1735
1736 * NEWS: Update.
1737 * c-typeprint.c (c_type_print_base): Handle print_method and
1738 print_typedefs flags.
1739 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1740 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1741 options.
1742 * typeprint.c (type_print_raw_options, default_ptype_flags):
1743 Update for new field.s
1744 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1745 (setprinttypelist, showprinttypelist, print_methods,
1746 print_typedefs): New globals.
1747 (set_print_type, show_print_type, set_print_type_methods,
1748 show_print_type_methods, set_print_type_typedefs,
1749 show_print_type_typedefs): New functions.
1750 (_initialize_typeprint): Update documentation. Add "print
1751 type methods" and "print type typedefs" parameters.
1752 * typeprint.h (struct type_print_options) <print_methods,
1753 print_typedefs>: New fields.
1754
1755 2012-11-12 Tom Tromey <tromey@redhat.com>
1756
1757 * c-typeprint.c (cp_type_print_method_args): Add flags
1758 argument. Call c_print_type, not type_print.
1759 (c_type_print_base): Call c_print_type, not type_print.
1760 Update.
1761
1762 2012-11-12 Tom Tromey <tromey@redhat.com>
1763
1764 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1765 to type-printing functions.
1766 * ada-lang.h (ada_print_type): Add argument.
1767 * ada-typeprint.c (print_array_type, print_variant_clauses,
1768 print_variant_part, print_selected_record_field_types,
1769 print_record_field_types, print_unchecked_union_type,
1770 print_func_type, ada_print_type): Add flags argument.
1771 (ada_print_typedef): Update.
1772 * c-exp.y (OPERATOR conversion_type_id): Update.
1773 * c-lang.h (c_print_type, c_type_print_base): Update.
1774 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1775 c_type_print_modifier, c_type_print_args,
1776 c_type_print_varspec_suffix, c_type_print_base): Add flags
1777 argument.
1778 * cp-valprint.c (cp_print_class_member): Update.
1779 * dwarf2read.c (dwarf2_compute_name): Update.
1780 * f-lang.h (f_print_type): Add argument.
1781 * f-typeprint.c (f_print_type): Add flags argument.
1782 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1783 * go-lang.h (go_print_type): Add argument.
1784 * go-typeprint.c (go_print_type): Add flags argument.
1785 * jv-lang.h (java_print_type): Add argument.
1786 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1787 flags argument.
1788 * language.c (unk_lang_print_type): Add flags argument.
1789 * language.h (struct language_defn) <la_print_type>: Add flags
1790 argument.
1791 (LA_PRINT_TYPE): Likewise.
1792 * m2-lang.h (m2_print_type): Add argument.
1793 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1794 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1795 m2_unbounded_array, m2_record_fields): Add flags argument.
1796 * p-lang.h (pascal_print_type, pascal_type_print_base,
1797 pascal_type_print_varspec_prefix): Add argument.
1798 * p-typeprint.c (pascal_print_type,
1799 pascal_type_print_varspec_prefix, pascal_print_func_args,
1800 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1801 flags argument.
1802 * symmisc.c (print_symbol): Update.
1803 * typeprint.c (type_print_raw_options, default_ptype_flags):
1804 New globals.
1805 (type_print): Update.
1806 * typeprint.h (struct type_print_options): New.
1807 (type_print_raw_options): Declare.
1808 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1809
1810 2012-11-10 Keith Seitz <keiths@redhat.com>
1811
1812 * breakpoint.c (clear_command): Add cleanup for
1813 sals.sals if an argument is given.
1814
1815 * linespec.c (parse_linespec): Do cleanups after
1816 parsing a convenience variable.
1817
1818 2012-11-10 Keith Seitz <keiths@redhat.com>
1819
1820 PR gdb/14288
1821 * c-valprint.c (c_val_print): For character arrays
1822 with "print null" option on, print ellipses if
1823 the output is truncated and the next character is not \000.
1824 * valprint.c (MAX_WCHARS): Define.
1825 (WCHAR_BUFLEN): Likewise.
1826 (WCHAR_BUFLEN_MAX): Likewise.
1827 (struct converted_character): New structure.
1828 (count_next_character): New function.
1829 (print_converted_chars_to_obstack): New function.
1830 (generic_printstr): Rewrite using count_next_character
1831 and print_converted_chars_to_obstack.
1832
1833 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1834
1835 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1836 while executing the gdb command.
1837 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1838 are called from prompt_for_continue.
1839 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1840
1841 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1842
1843 PR tui/9584
1844
1845 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1846 but insert the command to execute in readline's buffer.
1847
1848 2012-11-09 Tom Tromey <tromey@redhat.com>
1849
1850 * gdbarch.sh (target_gdbarch): Remove macro.
1851 (get_target_gdbarch): Rename to target_gdbarch.
1852 * gdbarch.c, gdbarch.h: Rebuild.
1853 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1854 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1855 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1856 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1857 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1858 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1859 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1860 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1861 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1862 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1863 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1864 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1865 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1866 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1867 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1868 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1869 target-descriptions.c, target.c, target.h, tracepoint.c,
1870 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1871 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1872 python/py-inferior.c, python/python.c: Update.
1873
1874 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1875
1876 * source.c (print_source_lines_base): Add fullname field giving
1877 full path to file in mi output.
1878 * NEWS: Mention the new fullname field.
1879
1880 2012-11-09 Yao Qi <yao@codesourcery.com>
1881
1882 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1883
1884 2012-11-09 Pedro Alves <palves@redhat.com>
1885
1886 PR gdb/14306
1887
1888 * infrun.c: Include target-descriptions.h.
1889 (follow_exec): Fetch new target description.
1890
1891 2012-11-09 Yao Qi <yao@codesourcery.com>
1892
1893 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1894 0x8d (lea).
1895
1896 2012-11-09 Yao Qi <yao@codesourcery.com>
1897
1898 * breakpoint.c: Declare set_tracepoint_count.
1899 (install_breakpoint): Call set_tracepoint_count if B is a
1900 tracepoint.
1901 (trace_command): Don't call set_tracepoint_count. Re-indent.
1902 (strace_command, ftrace_command):
1903 (create_tracepoint_from_upload): Likewise.
1904
1905 2012-11-09 Pedro Alves <palves@redhat.com>
1906
1907 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1908 (get_target_gdbarch) <gdbarch.h>: New function.
1909 (startup_gdbarch) <gdbarch.h>: Declare.
1910 <gdbarch.c> (target_gdbarch): Delete.
1911 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1912 current inferior's gdbarch.
1913 <gdbarch.c> (get_target_gdbarch): New function.
1914 * inferior.c: Include target-descriptions.h.
1915 (free_inferior): Free target description info.
1916 (add_inferior_with_spaces): Set the inferior's initial
1917 architecture.
1918 (clone_inferior_command): Copy the original inferior's target
1919 description if it was user specified.
1920 (initialize_inferiors): Add comment.
1921 * inferior.h (struct target_desc_info): Forward declare.
1922 (struct inferior) <gdbarch>: New field.
1923 * linux-nat.c: Include target-descriptions.h.
1924 (linux_child_follow_fork): Copy the parent's architecture and
1925 target description to the child.
1926 * target-descriptions.c: Include inferior.h.
1927 (struct target_desc_info): New structure, holding the equivalents
1928 of ...
1929 (target_desc_fetched, current_target_desc)
1930 (target_description_filename): ... these removed globals.
1931 (get_tdesc_info, target_desc_info_from_user_p)
1932 (copy_inferior_target_desc_info, target_desc_info_free): New.
1933 (target_desc_fetched, current_target_desc)
1934 (target_description_filename): Reimplemented as convenience
1935 macros.
1936 (tdesc_filename_cmd_string): New global.
1937 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1938 tdescs filename ..." commands to the per-inferior equivalent.
1939 (show_tdesc_filename_cmd): Get the value to show from the
1940 per-inferior description filename.
1941 (_initilize_target_descriptions): Change the "set/show tdesc
1942 filename" commands' variable.
1943 * target-descriptions.h (struct target_desc, struct target_desc_info)
1944 (struct inferior): Forward declare.
1945 (target_find_description, target_clear_description)
1946 (target_current_description): Adjust comments.
1947 (copy_inferior_target_desc_info, target_desc_info_free)
1948 (target_desc_info_from_user_p). Declare.
1949
1950 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1951
1952 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1953 (tui_target_wait_hook): Remove.
1954 (tui_install_hooks): Install the about_to_proceed observer.
1955 (tui_remove_hooks): And remove it here.
1956
1957 2012-11-08 Tom Tromey <tromey@redhat.com>
1958
1959 * linux-tdep.c (linux_make_siginfo_note): New function.
1960 (linux_make_corefile_notes): Use it.
1961 * corelow.c (get_core_siginfo): New function.
1962 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1963
1964 2012-11-08 Tom Tromey <tromey@redhat.com>
1965
1966 PR gdb/14704:
1967 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1968 (zlib_decompress_section): Remove.
1969 (gdb_bfd_map_section): Only check for compressed section
1970 in mmap case. Use bfd_get_full_section_contents.
1971 * osabi.c (check_note): Add 'sectsize' argument. Read
1972 section data.
1973 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1974 section data. Update for check_note change.
1975 * xcoffread.c (xcoff_initial_scan): Use
1976 bfd_get_full_section_contents.
1977 * py-auto-load.c (auto_load_section_scripts): Use
1978 bfd_get_full_section_contents.
1979 * contrib/cc-with-tweaks.sh: Add -Z option.
1980
1981 2012-11-08 Tom Tromey <tromey@redhat.com>
1982
1983 * python/py-bpevent.c: Include defs.h.
1984 * python/py-continueevent.c: Include defs.h.
1985 * python/py-event.c: Include defs.h.
1986 * python/py-event.h: Don't include defs.h.
1987 * python/py-events.h: Don't include defs.h.
1988 * python/py-evts.c: Include defs.h.
1989 * python/py-exitedevent.c: Include defs.h.
1990 * python/py-newobjfileevent.c: Include defs.h.
1991 * python/py-signalevent.c: Include defs.h.
1992 * python/py-stopevent.c: Include defs.h.
1993 * python/py-threadevent.c: Include defs.h.
1994
1995 2012-11-08 Pierre Muller <muller@sourceware.org>
1996
1997 * update-web-ari.sh (print_heading): Add number of files
1998 checked.
1999 (nb_files): New variable counting the number of sources
2000 files found by gdb_find.sh script.
2001 (debug_awk): New variable to allow extra debug output.
2002 (indexes): Add more information if DEBUG_AWK is set.
2003
2004 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
2005
2006 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
2007 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
2008 following the change in PLT call stubs on linker.
2009
2010 2012-11-08 Pierre Muller <muller@sourceware.org>
2011
2012 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
2013 as default language.
2014 (AWK): Use = instead of == for sh test to avoid warning.
2015 (Linux rule): Correct [:digit] into [[:digit:]].
2016 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
2017 (vasprintf rule): Adapt to common subdirectory moves.
2018 (xasprintf rule): Idem.
2019 (xvasprintf rule): Idem.
2020 (var_boolean rule): Accept occurence in == or != test.
2021
2022 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
2023
2024 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
2025
2026 * tui/tui-hooks.c (tui_inferior_exit): New function.
2027 (tui_detach_hook): Remove.
2028 (tui_install_hooks): Install the inferior exit observer.
2029 (tui_remove_hooks): Remove it.
2030
2031 2012-11-08 Yao Qi <yao@codesourcery.com>
2032
2033 PR gdb/14777.
2034 * source.c (_initialize_source): Call add_com_alias to abbreviate
2035 'forward-search' as 'fo'.
2036
2037 2012-11-07 Pedro Alves <palves@redhat.com>
2038
2039 * arm-tdep.c: Make defs.h be the first include.
2040 * coff-pe-read.c: Ditto.
2041 * gnu-nat.c: Ditto.
2042 * go32-nat.c: Ditto.
2043 * i386-nat.c: Ditto.
2044 * ppcnbsd-nat.c: Ditto.
2045 * ada-varobj.h: Don't include defs.h.
2046 * i386-darwin-tdep.h: Ditto.
2047 * i386-nat.h: Ditto.
2048
2049 2012-11-07 Pedro Alves <palves@redhat.com>
2050
2051 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
2052 Committee.
2053
2054 2012-11-07 Pierre Muller <muller@sourceware.org>
2055
2056 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
2057 File already uses "gdb_dirent.h" header.
2058
2059 2012-11-07 Yao Qi <yao@codesourcery.com>
2060
2061 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
2062 tracepoint_count'.
2063
2064 2012-11-06 Tom Tromey <tromey@redhat.com>
2065
2066 * target.h (inferior_has_forked, inferior_has_vforked)
2067 (inferior_has_execd, inferior_has_called_syscall): Remove
2068 declarations.
2069
2070 2012-11-06 Pierre Muller <muller@sourceware.org>
2071
2072 * remote.c (remote_insert_hw_breakpoint): ARI fix,
2073 add missing internalization markup.
2074
2075 2012-11-06 Pedro Alves <palves@redhat.com>
2076
2077 PR gdb/14810
2078
2079 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
2080
2081 2012-11-06 Pierre Muller <muller@sourceware.org>
2082
2083 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
2084 is not executable.
2085
2086 2012-11-05 Joel Brobecker <brobecker@adacore.com>
2087
2088 * gnulib/update-gnulib.sh: New script.
2089
2090 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
2091
2092 * MAINTAINERS: Update my email address.
2093
2094 2012-11-05 Tom Tromey <tromey@redhat.com>
2095
2096 * frame.c (put_frame_register): Don't use temporary buffer.
2097
2098 2012-11-05 Pedro Alves <palves@redhat.com>
2099
2100 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
2101 child. Clear 'pending_detach'.
2102 * infrun.c (handle_vfork_child_exec_or_exit): Clear
2103 'pending_detach' in the vfork parent.
2104
2105 2012-11-05 Doug Evans <dje@google.com>
2106
2107 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
2108 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
2109 * dwarf2read.c: #include "elf-bfd.h".
2110 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
2111 (dwop_section_names): Renamed from dwo_section names. All uses
2112 updated. Add entries for .debug_cu_index, .debug_tu_index.
2113 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
2114 All uses updated.
2115 (struct dwp_sections): New type.
2116 (struct virtual_dwo_sections): New type.
2117 (struct dwp_hash_table): New type.
2118 (struct dwp_file): New type.
2119 (init_cutu_and_read_dies): Ensure DWO info/types section has been
2120 read in. Handle DWOs coming from DWP files.
2121 (lookup_dwo_file_slot): New function.
2122 (dwarf2_locate_dwo_sections): Move definition closer to use.
2123 (create_dwo_debug_info_hash_table_reader): Renamed from
2124 create_debug_info_hash_table_reader. All callers updated.
2125 (create_dwo_debug_info_hash_table): Renamed from
2126 create_debug_info_hash_table. All callers updated.
2127 (create_dwp_hash_table): New function.
2128 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
2129 (lookup_dwo_in_dwp): New function.
2130 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
2131 is_dwp. All callers updated.
2132 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
2133 (open_and_init_dwo_file): Renamed from init_dwo_file.
2134 All callers updated.
2135 (lookup_dwo_file): Delete.
2136 (dwarf2_locate_dwp_sections): New function.
2137 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
2138 (allocate_dwp_loaded_cutus_table): New function.
2139 (open_and_init_dwp_file): New function.
2140 (lookup_dwo_cutu): New function.
2141 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
2142
2143 2012-11-03 Yao Qi <yao@codesourcery.com>
2144
2145 Fix PR gdb/14617.
2146 * breakpoint.c (trace_pass_set_count): Call
2147 observer_notify_breakpoint_modified instead of
2148 observer_notify_tracepoint_modified.
2149 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
2150
2151 2012-11-02 Tom Tromey <tromey@redhat.com>
2152
2153 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
2154 argument to complete_on_enum.
2155
2156 2012-11-02 Tom Tromey <tromey@redhat.com>
2157
2158 * configure: Rebuild.
2159 * configure.ac (build_warnings): Add -Wempty-body.
2160 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
2161 * remote.c (handle_notification): Use braces for empty 'else' body.
2162 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
2163 'else' body.
2164 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
2165 'else' body.
2166 * solib-som.c (som_relocate_section_addresses): Use braces
2167 for empty 'else' body.
2168 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
2169 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
2170
2171 2012-11-02 Pedro Alves <palves@redhat.com>
2172
2173 PR gdb/14766
2174
2175 * infrun.c (handle_inferior_event)
2176 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2177 null_ptid before handling a vfork child exec or exit. Switch to
2178 the event ptid afterwards.
2179
2180 2012-11-02 Yao Qi <yao@codesourcery.com>
2181
2182 * std-operator.def: Remove OP_LABELED.
2183 * eval.c: Remove the declaration of 'get_label'.
2184 (get_label): Remove.
2185 (evaluate_struct_tuple): Remove code handling OP_LABELED.
2186 Update comment.
2187 Remove local variable 'variantno' and related code.
2188 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
2189 with 'fieldno'.
2190 * expprint.c (print_subexp_standard): Likewise.
2191 (dump_subexp_body_standard): Likewise.
2192 * parse.c (operator_length_standard): Likewise.
2193
2194 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
2195
2196 Incorporate ARI web page generator into GDB sources.
2197 * contrib/ari/create-web-ari-in-src.sh: New file.
2198 * contrib/ari/gdb_ari.sh: New file.
2199 * contrib/ari/gdb_find.sh: New file.
2200 * contrib/ari/update-web-ari.sh: New file.
2201
2202 2012-10-31 Tom Tromey <tromey@redhat.com>
2203
2204 * gdbarch.c: Rebuild.
2205 * gdbarch.sh: Remove references to gdbarch_swap.
2206 * corelow.c (core_open): Remove obsolete comment.
2207
2208 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
2209
2210 PR cli/14772
2211 * c-typeprint.c (c_print_type): Don't print a space for vector
2212 types, this is handled within the suffix.
2213 (c_type_print_varspec_suffix): Add a space to vector suffix.
2214
2215 2012-10-26 Pedro Alves <palves@redhat.com>
2216
2217 * amd64-tdep.c (amd64_relocate_instruction): Use
2218 store_unsigned_integer instead of memcpy.
2219 * i386-tdep.c (i386_relocate_instruction): Ditto.
2220
2221 2012-10-26 Pedro Alves <palves@redhat.com>
2222
2223 * infrun.c (handle_inferior_event): Merge handling of
2224 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2225 switch case.
2226
2227 2012-10-26 Pedro Alves <palves@redhat.com>
2228
2229 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2230 Remove comment.
2231
2232 2012-10-26 Pedro Alves <palves@redhat.com>
2233
2234 * target.c (target_waitstatus_to_string): Handle
2235 TARGET_WAITKIND_VFORK_DONE.
2236
2237 2012-10-26 Pedro Alves <palves@redhat.com>
2238
2239 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2240 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2241
2242 2012-10-24 Tristan Gingold <gingold@adacore.com>
2243
2244 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2245 Add comments.
2246
2247 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2248
2249 * ravenscar-thread.c (ravenscar_wait): Only update the list
2250 of threads and inferior_ptid if the inferior is still alive.
2251
2252 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2253
2254 * ada-lang.c (is_known_support_routine): Use lbasename when
2255 matching the symtab's filename against
2256 known_runtime_file_name_patterns.
2257
2258 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2259
2260 * ada-lang.c (ada_same_array_size_p): New function.
2261 (ada_promote_array_of_integrals): New function.
2262 (coerce_for_assign): Add handling of arrays where the elements
2263 are integrals of a smaller size than the size of the target
2264 array element type.
2265
2266 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2267
2268 * doublest.c (convert_doublest_to_floatformat): Fix comparison
2269 against maximum exponent value.
2270
2271 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2272
2273 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2274 "unwind-seh.c".
2275
2276 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2277
2278 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2279 strip typedef layer when computing the fixed type's field type,
2280 only when computing its size.
2281
2282 2012-10-24 Mark Kettenis <kettenis@gnu.org>
2283
2284 PR gdb/12783
2285 * i386-tdep.c (i386_return_value): Handle complex double and long
2286 double.
2287
2288 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2289
2290 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2291 New local variable args_len.
2292 Quote the name of the executable when computing the command line.
2293
2294 2012-10-23 Mark Kettenis <kettenis@gnu.org>
2295
2296 PR gdb/12796
2297 PR gdb/12798
2298 PR gdb/12800
2299 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2300 AMD64_FTAG_REGNUM.
2301 * amd64-tdep.c (amd64_classify): Classify complex types.
2302 (amd64_return_value): Handle the COMPLEX_X87 class.
2303
2304 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2305
2306 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2307 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2308
2309 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2310
2311 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2312 function.
2313 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2314 to amd64_windows_auto_wide_charset.
2315
2316 2012-10-23 Yao Qi <yao@codesourcery.com>
2317
2318 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2319 * event-top.h: Remove its declaration.
2320 (async_request_quit): Call mark_async_signal_handler instead of
2321 mark_async_signal_handler_wrapper.
2322 (async_do_nothing, async_disconnect): Likewise.
2323 (async_stop_sig): Likewise.
2324 * remote.c (handle_remote_sigint): Likewise.
2325 (handle_remote_sigint_twice): Likewise.
2326
2327 2012-10-23 Yao Qi <yao@codesourcery.com>
2328
2329 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2330 with 'static struct async_signal_handler *'.
2331 (sighup_token, sigquit_token, sigstp_token): Likewise.
2332
2333 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2334
2335 * gdbarch.sh (function_list): Use 'pstring' when printing
2336 a variable which could return NULL.
2337 * gdbarch.c: Regenerate.
2338
2339 2012-10-10 Joel Brobecker <brobecker@adacore.com>
2340 Tom Tromey <tromey@redhat.com>
2341
2342 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2343 inneffective if condition by gdb assertion. Add function
2344 description comment.
2345
2346 2012-10-19 Joel Brobecker <brobecker@adacore.com>
2347
2348 * parser-defs.h (struct exp_descriptor): Document constraint
2349 on return value for "op_name" callbacks.
2350
2351 2012-10-18 Tom Tromey <tromey@redhat.com>
2352
2353 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2354 * symtab.c (iterate_over_some_symtabs): Constify.
2355 * source.h (symtab_to_fullname): Return 'const char *'.
2356 * source.c (symtab_to_fullname): Return 'const char *'.
2357 * python/py-symtab.c (stpy_fullname): Constify.
2358 * cli/cli-cmds.c (edit_command): Constify.
2359 * breakpoint.c (print_breakpoint_location)
2360 (update_static_tracepoint): Constify.
2361
2362 2012-10-18 Tom Tromey <tromey@redhat.com>
2363
2364 * breakpoint.c (compare_breakpoints): Fix comparison.
2365
2366 2012-10-18 Tom Tromey <tromey@redhat.com>
2367
2368 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2369 gdb_wchar_t to convert_between_encodings.
2370
2371 2012-10-17 Yao Qi <yao@codesourcery.com>
2372
2373 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2374 more parameter 'inferior'.
2375 * corefile.c (write_memory_with_notification): Caller update.
2376
2377 * mi/mi-cmd-var.c: Include "mi-main.h".
2378 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2379 to 1 and restore it later.
2380 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2381 and "data-write-memory-bytes.
2382 * mi/mi-interp.c: Include objfiles.h.
2383 (mi_interpreter_init): Call observer_attach_memory_changed.
2384 (mi_memory_changed): New.
2385 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2386 New field.
2387
2388 * NEWS: Mention new MI notification "memory-changed".
2389
2390 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2391
2392 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2393
2394 2012-10-15 Doug Evans <dje@google.com>
2395
2396 New option -nh: inhibit loading of ~/.gdbinit.
2397 * NEWS: Mention -nh.
2398 * main.c (captured_main): Recognize and process -nh.
2399 (print_gdb_help): Mention -nh.
2400 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2401
2402 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2403
2404 PR backtrace/14646
2405 PR gdb/14647
2406 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2407 pc_regnum_from_eax.
2408 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2409 nor pc_regnum_from_eax.
2410 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2411 nor pc_regnum_from_eax.
2412
2413 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2414
2415 Fix entry values resolving in inlined frames.
2416 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2417 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2418 entries of FRAME.
2419
2420 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2421
2422 * configure.ac: Build with -DMS_WIN64 if building with Python
2423 enabled using GCC on amd64-windows.
2424 * configure: Regenerate.
2425
2426 2012-10-15 Tom Tromey <tromey@redhat.com>
2427
2428 PR python/14635:
2429 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2430 to Py_None.
2431
2432 2012-10-15 Tom Tromey <tromey@redhat.com>
2433
2434 PR python/14634:
2435 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2436
2437 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2438
2439 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2440 reset thread numbering back to 1.
2441
2442 2012-10-11 Doug Evans <dje@google.com>
2443
2444 PR breakpoints/14643.
2445 * linespec.c (struct ls_parser): New member keyword_ok.
2446 (linespec_lexer_lex_string): Add comment.
2447 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2448 for one.
2449 (parse_linespec): Set keyword_ok.
2450
2451 2012-10-10 Doug Evans <dje@google.com>
2452
2453 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2454 "0x" prefix on address in log message.
2455
2456 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2457 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2458 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2459 (lookup_dwo_file): Add const to dwo_name parameter.
2460 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2461
2462 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2463
2464 Fix crash during stepping on ppc32.
2465 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2466 SYM.
2467
2468 2012-10-03 Doug Evans <dje@google.com>
2469
2470 PR symtab/14601
2471 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2472
2473 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2474
2475 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2476 output and use uint32_t not long to ensure 4 byte size.
2477
2478 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2479
2480 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2481 unref'ed it.
2482
2483 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2484
2485 * target.c (simple_search_memory): Include access length in
2486 warning message.
2487
2488 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2489 Edjunior Machado <emachado@linux.vnet.ibm.com>
2490
2491 PR gdb/13989
2492 * solib.c (solib_find): Prevent GDB from loading native libraries when
2493 debugging a cross-target corefile.
2494
2495 2012-09-28 selven <pcthegreat@gmail.com>
2496
2497 Make definition match declaration.
2498
2499 * regcache.c (regcache_register_status): Change return type to
2500 enum register_status.
2501
2502 2012-09-28 Yao Qi <yao@codesourcery.com>
2503
2504 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2505 write_memory_with_notification instead of write_memory.
2506 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2507 instead of target_write_memory.
2508
2509 2012-09-28 Yao Qi <yao@codesourcery.com>
2510
2511 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2512 when the length of content is not an even number.
2513
2514 2012-09-27 Tom Tromey <tromey@redhat.com>
2515
2516 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2517 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2518
2519 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2520
2521 * sol-thread.c (sol_thread_fetch_registers)
2522 (sol_thread_store_registers): Delete commented out code.
2523
2524 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2525
2526 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2527 Move these functions to sparc-sol-thread.c.
2528 * sparc-sol-thread.c: New file.
2529 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2530 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2531 configurations.
2532 * configure: Regenerate.
2533
2534 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2535
2536 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2537 Remove commented-out code.
2538
2539 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2540
2541 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2542 Enable this code for sparc hosts only.
2543
2544 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2545
2546 * procfs.h (procfs_find_LDT_entry): Add declaration.
2547 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2548 function procfs_find_LDT_entry.
2549
2550 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2551
2552 * procfs.c (proc_get_LDT_entry): Make static.
2553
2554 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2555
2556 * procfs.c (proc_find_memory_regions): Fix declaration.
2557
2558 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2559
2560 * amd64-tdep.c (amd64_return_value): Revert previous change
2561 that used TYPE_LENGTH directly.
2562 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2563 (bfin_store_return_value): Likewise.
2564 * cris-tdep.c (cris_store_return_value): Likewise.
2565 (cris_extract_return_value): Likewise.
2566 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2567 * hppa-tdep.c (hppa64_return_value): Likewise.
2568 * lm32-tdep.c (lm32_store_return_value): Likewise.
2569 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2570 * spu-tdep.c (spu_value_from_register): Likewise.
2571 * vax-tdep.c (vax_return_value): Likewise.
2572
2573 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2574
2575 * gdbtypes.c (lookup_array_range_type): Expand parameters
2576 LOW_BOUND and HIGH_BOUND to LONGEST.
2577 (lookup_string_range_type): Likewise.
2578 * gdbtypes.h (lookup_array_range_type): Likewise.
2579 (lookup_string_range_type): Likewise.
2580 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2581 Expand HIGHBOUND to ssize_t.
2582 (value_string): Likewise.
2583 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2584 (value_string): Likewise.
2585
2586 2012-09-27 Yao Qi <yao@codesourcery.com>
2587
2588 PR breakpoints/13898
2589 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2590 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2591 per breakpoint type.
2592
2593 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2594
2595 * procfs.c: Add gdb_bfd header.
2596 * rs6000-nat.c: Likewise.
2597 * solib-pa64.c: Likewise.
2598 * spu-linux-nat.c: Likewise.
2599 * windows-nat.c: Likewise.
2600
2601 2012-09-26 Tom Tromey <tromey@redhat.com>
2602
2603 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2604
2605 2012-09-26 Tom Tromey <tromey@redhat.com>
2606
2607 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2608 (read_common_block): Handle child DIEs with
2609 DW_AT_data_member_location.
2610 (new_symbol_full): Add special case for common blocks.
2611
2612 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2613 Tom Tromey <tromey@redhat.com>
2614
2615 * dwarf2read.c (read_common_block): Rewrite.
2616 (new_symbol_full): Handle DW_TAG_common_block.
2617 * f-lang.c (head_common_list, find_common_for_function):
2618 Remove.
2619 * f-lang.h (struct common_entry, struct saved_f77_common,
2620 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2621 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2622 BLANK_COMMON_NAME_LOCAL): Remove.
2623 (struct common_block): New.
2624 * f-valprint.c (list_all_visible_commons): Remove.
2625 (info_common_command_for_block): New function.
2626 (info_common_command): Use it.
2627 * stack.c (iterate_over_block_locals): Special case for
2628 COMMON_BLOCK_DOMAIN.
2629 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2630 constant.
2631 (struct general_symbol_info) <value.common_block>: New field.
2632 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2633
2634 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2635 Tom Tromey <tromey@redhat.com>
2636
2637 * f-lang.c (allocate_saved_bf_node,
2638 allocate_saved_function_node, allocate_saved_f77_common_node,
2639 allocate_common_entry_node, tail_common_list, current_common,
2640 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2641 tmp_bf_ptr, add_common_block, add_common_entry,
2642 find_first_common_named, patch_common_entries,
2643 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2644 global_remote_debug, get_bf_for_fcn, saved_function_list,
2645 saved_function_list_end, clear_function_list, struct saved_fcn,
2646 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2647 SAVED_BF, SAVED_BF_PTR): Remove.
2648 * f-lang.h (tail_common_list, current_common,
2649 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2650 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2651 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2652 real_main_c_value): Remove.
2653 * f-valprint.c (there_is_a_visible_common_named): Remove.
2654
2655 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2656
2657 * breakpoint.c (update_global_location_list): Ignore previous
2658 duplicate status of a breakpoint when starting a new scan for
2659 duplicate breakpoints.
2660
2661 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2662 PR breakpoints/14419
2663 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2664 support LLVM compiler.
2665
2666 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2667
2668 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2669 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2670 (bfin_store_return_value): Likewise.
2671 * cris-tdep.c (cris_store_return_value): Likewise.
2672 (cris_extract_return_value): Likewise.
2673 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2674 * hppa-tdep.c (hppa64_return_value): Likewise.
2675 * lm32-tdep.c (lm32_store_return_value): Likewise.
2676 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2677 * spu-tdep.c (spu_value_from_register): Likewise.
2678 * vax-tdep.c (vax_return_value): Likewise.
2679
2680 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2681
2682 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2683 parameter LEN to ssize_t.
2684
2685 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2686
2687 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2688 variable LEN.
2689 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2690 directly.
2691 (alpha_store_return_value): Likewise.
2692 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2693 (amd64_push_arguments): Likewise.
2694 * ax-gdb.c (gen_trace_static_fields): Likewise.
2695 (gen_traced_pop): Likewise.
2696 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2697 * breakpoint.c (update_watchpoint): Likewise.
2698 * findcmd.c (parse_find_args): Use local variable for type
2699 instead of length.
2700 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2701 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2702 (h8300_store_return_value): Likewise.
2703 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2704 Use i386_darwin_arg_type_alignment directly.
2705 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2706 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2707 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2708 (m68hc11_extract_return_value): Likewise.
2709 * mep-tdep.c (mep_push_dummy_call): Likewise.
2710 * printcmd.c (float_type_from_length): Likewise.
2711 * s390-tdep.c (s390_value_from_register): Likewise.
2712 * stack.c (read_frame_arg): Likewise.
2713 * tracepoint.c (encode_actions_1): Likewise.
2714 * valops.c (value_fetch_lazy): Use local variable for type
2715 instead of length. Use TYPE_LENGTH directly.
2716 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2717
2718 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2719
2720 * symtab.c (skip_prologue_sal): Fix typo in comment.
2721
2722 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2723
2724 * linespec.c (create_sals_line_offset): Fix typo in comment.
2725
2726 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2727
2728 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2729 use plongest to print the array size.
2730
2731 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2732
2733 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2734 * p-valprint.c (pascal_type_print_base): Likewise.
2735
2736 2012-09-22 Yao Qi <yao@codesourcery.com>
2737
2738 * remote.c (remote_get_trace_status): Remove setting default
2739 values of fields of 'ts'.
2740
2741 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2742
2743 Fix internal error on canonicalization of clang types.
2744 * cp-name-parser.y (operator): New comment at make_operator call for
2745 new, delete, new[] and delete[].
2746 (exp): Use "sizeof ". Add new comment at make_operator call.
2747
2748 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2749
2750 Fix disassemble without parameters in tailcall frame.
2751 * cli/cli-cmds.c (disassemble_current_function): Use
2752 get_frame_address_in_block.
2753
2754 2012-09-21 Tom Tromey <tromey@redhat.com>
2755
2756 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2757 TYPE_CODE_UNION>: Unify, removing a goto.
2758
2759 2012-09-21 Tom Tromey <tromey@redhat.com>
2760
2761 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2762
2763 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2764
2765 * findvar.c (read_frame_register_value): Mark the result value as
2766 optimized out if any of the input registers have been optimized out.
2767
2768 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2769
2770 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2771
2772 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2773
2774 * eval.c (evaluate_subexp_standard): Eliminate single-use
2775 variable LOWER.
2776
2777 2012-09-21 Yao Qi <yao@codesourcery.com>
2778
2779 * mi/mi-interp.c: Declare mi_record_changed.
2780 (mi_interpreter_init): Call observer_attach_record_changed.
2781 (mi_record_changed): New.
2782 * record.c (record_open): Call observer_notify_record_changed.
2783 (cmd_record_stop): Call observer_notify_record_changed.
2784 * NEWS: Mention it.
2785
2786 2012-09-20 Tom Tromey <tromey@redhat.com>
2787
2788 * NEWS: Update.
2789 * python/python.c (finalize_python): New function.
2790 (_initialize_python): Make a final cleanup.
2791
2792 2012-09-19 Doug Evans <dje@google.com>
2793
2794 * buildsym.h (param_symbols): Delete, unused.
2795 (context_stack): Delete member "params", unused.
2796 * buildsym.c (push_context): Update.
2797 * dwarf2read.c (read_func_scope): Update.
2798
2799 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2800
2801 * sh-tdep.c (sh_register_convert_to_virtual)
2802 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2803 all callers. Just do a memcpy if not the little-endian case.
2804
2805 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2806 set_gdbarch_double_format and set_gdbarch_long_double_format.
2807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2808 set_gdbarch_double_format.
2809 * sh-tdep.c (sh_gdbarch_init): Likewise.
2810
2811 * NEWS: Document the removal of SH's 'regs' command.
2812 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2813 command.
2814
2815 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2816
2817 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2818 `jump'.
2819
2820 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2821
2822 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2823 language when iterating over symbols.
2824
2825 2012-09-18 Yao Qi <yao@codesourcery.com>
2826
2827 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2828 (mi_interpreter_init): Call observer_attach_tsv_created and
2829 observer_attach_tsv_deleted.
2830 (mi_tsv_created, mi_tsv_deleted): New.
2831 * tracepoint.c (delete_trace_state_variable): Call
2832 observer_notify_tsv_deleted.
2833 (trace_variable_command): Call observer_notify_tsv_created.
2834 (delete_trace_variable_command): Call
2835 observer_notify_tsv_deleted.
2836 (create_tsv_from_upload): Call observer_notify_tsv_created.
2837 * NEWS: Mention it.
2838
2839 2012-09-18 Yao Qi <yao@codesourcery.com>
2840
2841 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2842 if traceframe changed.
2843 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2844 "trace-find".
2845 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2846 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2847 'traceframe_changed'.
2848 (mi_traceframe_changed): New.
2849 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2850 New field.
2851 * NEWS: Mention the new MI notification.
2852
2853 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2854
2855 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2856
2857 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2858
2859 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2860 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2861 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2862 Extend code also for PaX support. Convert all gdb_assert to warning
2863 calls.
2864
2865 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2866
2867 Implement auto-load user conveniences suggested by Doug Evans.
2868 * auto-load.c: Include top.h.
2869 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2870 (_initialize_auto_load): New variable scripts_directory_help. Mention
2871 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2872 scripts-directory. Document in online help one can use also files for
2873 set auto-load safe-path.
2874 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2875 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2876
2877 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2878
2879 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2880 of LEN.
2881
2882 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2883
2884 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2885 ELTLEN and use TYPE_LENGTH directly.
2886 (m2_val_print): Likewise.
2887 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2888 variable LEN and use TYPE_LENGTH directly.
2889 (m68k_svr4_store_return_value): Likewise.
2890 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2891 ARGLEN and use TYPE_LENGTH directly.
2892 (mips_o64_push_dummy_call): Likewise.
2893 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2894 variable LENGTH and use TYPE_LENGTH directly.
2895 (s390_function_arg_float): Likewise.
2896 (s390_function_arg_integer): Likewise.
2897 (s390_push_dummy_call): Likewise.
2898 (s390_return_value_convention): Likewise.
2899 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2900 TYPE_LENGTH directly.
2901
2902 2012-09-17 Yao Qi <yao@codesourcery.com>
2903
2904 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2905 Update comment to add_setshow_integer_cmd.
2906 * cli/cli-setshow.c (do_set_command): Handle case
2907 'var_zuinteger_unlimited'.
2908 (do_show_command): Likewise.
2909 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2910 for command 'remotetimeout'.
2911 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2912 to var_integer.
2913 * source.c (_initialize_source): Call
2914 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2915
2916 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2917
2918 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2919 variable LEN.
2920
2921 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2922
2923 PR 14119
2924 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2925 (frame_pop): Drop also TAILCALL_FRAME frames.
2926 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2927
2928 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2929 Pedro Alves <palves@redhat.com>
2930
2931 PR 14548
2932 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2933 function start if we are already at function start. Both for
2934 reverse-next and for reverse-step into function without line number
2935 info.
2936
2937 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2938
2939 Code cleanup - rename 'inline' depth to 'artificial' depth.
2940 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2941 frame_id_artificial_p, extend the comment.
2942 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2943 * frame.c (fprint_frame_id): Rename at a user, change debug output
2944 text to "artificial=".
2945 (skip_inlined_frames): Rename to ...
2946 (skip_artificial_frames): ... here. Extend the comment.
2947 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2948 (frame_id_inlined_p): Rename to ...
2949 (frame_id_artificial_p): ... here. Rename at a user.
2950 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2951 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2952 at a user.
2953 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2954 Extend the comment.
2955 (frame_id_inlined_p): Rename to ...
2956 (frame_id_artificial_p): ... here.
2957 * inline-frame.c (inline_frame_this_id): Rename at a user.
2958
2959 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2960
2961 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2962 vector variables using vector_size syntax rather than array
2963 syntax.
2964
2965 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2966
2967 * valarith.c (value_concat): Replace unsafe ALLOCA with
2968 XMALLOC/XFREE.
2969
2970 2012-09-14 Pedro Alves <palves@redhat.com>
2971
2972 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2973
2974 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2975
2976 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2977 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2978 data-directory as appropriate.
2979
2980 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2981
2982 * printcmd.c (ui_printf): Eliminate single-use variable
2983 PARAM_LEN.
2984
2985 2012-09-14 Yao Qi <yao@codesourcery.com>
2986 Pedro Alves <palves@redhat.com>
2987
2988 * valops.c (value_assign): Move observer_notify_target_changed
2989 below to replace reinit_frame_cache.
2990
2991 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2992
2993 Refactor Python "gdb" module into a proper Python package, by
2994 introducing a new "_gdb" module for code implemented in C, and
2995 using reload/__import__ instead of exec.
2996 * python/lib/gdb/__init__.py: Import * from _gdb.
2997 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2998 prompt_hook, sys.argv): Moved from finish_python_initialization.
2999 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
3000 (packages, auto_load_packages): New list and function replacing
3001 module_dict and auto-loading code, using __file__ instead of
3002 gdb.PYTHONDIR and reload/__import__ instead of exec.
3003 (GdbSetPythonDirectory): Replacing function of the same name
3004 from finish_python_initialization, using reload/__import__ instead
3005 of exec, as well as call auto_load_packages.
3006 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
3007 gdb_python_module and not gdb_module.
3008 * python/python-internal.h (gdb_python_module): Declare.
3009 * python/python.c (gdb_python_module): New global.
3010 (before_prompt_hook): Check gdb_python_module and not gdb_module.
3011 (_initialize_python): Rename gdb module to _gdb.
3012 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
3013 (finish_python_initialization): Move Python code to
3014 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
3015 __main__.
3016
3017 2012-09-13 Pedro Alves <palves@redhat.com>
3018
3019 * Makefile.in (COMMON_OBS): Add registry.o.
3020 * registry.c: New file.
3021 * registry.h (struct registry_container): Declare.
3022 (registry_data_callback): New typedef.
3023 (struct registry_data, struct registry_data_registration, struct
3024 registry_data_registry): New type.
3025 (register_data_with_cleanup, registry_alloc_data)
3026 (registry_callback_adaptor, registry_clear_data)
3027 (registry_container_free_data, registry_set_data, registry_data):
3028 Declare.
3029 (DEFINE_REGISTRY): Refactor structures and functions as shims over
3030 the new common structures and functions.
3031 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
3032 callback typedefs.
3033
3034 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
3035
3036 * remote.c (remote_insert_hw_breakpoint): Throw exception if
3037 there is an error inserting hardware breakpoints and use the
3038 error message from the target.
3039
3040 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
3041 Catch this exception and print the error message contained within.
3042 Do not print the default hardware error breakpoint message in this
3043 case.
3044
3045 2012-09-12 Doug Evans <dje@google.com>
3046
3047 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
3048 cu == NULL.
3049
3050 2012-09-11 Doug Evans <dje@google.com>
3051
3052 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
3053 .gdb_index symbol attributes if there are none.
3054
3055 2012-09-11 Joel Brobecker <brobecker@adacore.com>
3056
3057 * symtab.h (struct minimal_symbol) [has_size]: New field.
3058 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
3059 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
3060 * printcmd.c (build_address_symbolic): Only filter out zero-sized
3061 minimal symbols if the symbol's size is actually known.
3062 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
3063 of msymbol's size field. Add comment.
3064 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
3065 SET_MSYMBOL_SIZE to set the minimal symbol size.
3066
3067 2012-09-11 Joel Brobecker <brobecker@adacore.com>
3068
3069 * minsyms.c (install_minimal_symbols): Use memset to fill entire
3070 minimal_symbol struct object, rather than setting some of its
3071 fields one by one.
3072
3073 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
3074
3075 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
3076 passed_a_ptr flag when displaying typedef types.
3077
3078 2012-09-10 Joel Brobecker <brobecker@adacore.com>
3079
3080 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
3081 the optimized_out flag is preserved.
3082
3083 2012-09-10 Anthony Green <green@moxielogic.com>
3084
3085 * moxie-tdep.c (moxie_analyze_prologue): Update for function
3086 prologue changes in GCC.
3087
3088 2012-09-10 Keith Seitz <keiths@redhat.com>
3089
3090 PR gdb/13483
3091 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
3092 (BOOL_CONVERSION_BADNESS): ... this.
3093 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
3094 (rank_one_type): Allow all boolean conversions
3095 permitted by the standard.
3096
3097 2012-09-06 Tom Tromey <tromey@redhat.com>
3098
3099 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3100 Don't decref py_objfile.
3101
3102 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
3103
3104 Do not enable -lmcheck by default when Python is enabled with
3105 threading support.
3106 * configure.ac: (python_has_threads) New variable, by testing
3107 if WITH_THREAD is defined in Python.h.
3108 Move --enable-lmcheck after --with-python.
3109 Do not enable -lmcheck by default if python_has_threads=yes.
3110 Warn if --enable-lmcheck and python_has_threads=yes.
3111 * configure: Regenerate.
3112
3113 2012-08-31 Yao Qi <yao@codesourcery.com>
3114
3115 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
3116 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
3117 Update some commands.
3118 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
3119 * mi/mi-main.c (mi_cmd_execute): Set
3120 '*parse->cmd->suppress_notification' to 1.
3121
3122 2012-08-31 Yao Qi <yao@codesourcery.com>
3123
3124 * mi/mi-cmds.c (mi_cmds): Add 'static'.
3125
3126 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
3127
3128 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
3129
3130 2012-08-29 Doug Evans <dje@google.com>
3131
3132 * main.c (print_gdb_help): Remove reference to
3133 --use-deprecated-index-sections.
3134
3135 2012-08-28 Yao Qi <yao@codesourcery.com>
3136
3137 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
3138 (init_cmds): Call add_setshow_uinteger_cmd for command
3139 'max-user-call-depth'.
3140 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
3141 declaration of 'max_user_call_depth'.
3142 * frame.c (backtrace_limit): Add 'unsigned'.
3143 (_initialize_frame): Call add_setshow_uinteger_cmd for command
3144 'limit'.
3145 * remote.c (remoteaddresssize): Add 'unsigned'.
3146 (remote_address_masked): Change local var 'address_size' to
3147 'unsigned'.
3148 (_initialize_remote): Call add_setshow_uinteger_cmd for
3149 'remoteaddresssize'.
3150 * top.c (history_size): Add 'unsigned'.
3151 (show_commands): Change local variables to 'unsigned'.
3152 (set_history_size_command): Don't check history_size is negative.
3153 Adjust the condition to call unstifle_history and set history_size
3154 to UNIT_MAX.
3155
3156 2012-08-28 Pedro Alves <palves@redhat.com>
3157
3158 PR gdb/14428
3159
3160 * infcmd.c (default_print_one_register_info): New, factored out
3161 from default_print_registers_info.
3162 (default_print_registers_info): Use it. Mark value unavailable if
3163 necessary.
3164 (registers_info): Print user registers with
3165 default_print_one_register_info.
3166
3167 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
3168
3169 PR tui/14486
3170 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
3171 is not NULL before referencing it.
3172
3173 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3174
3175 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
3176 variable pc. Call find_pc_line instead of find_pc_overlay, restore
3177 original PC for it.
3178
3179 2012-08-27 Eli Zaretskii <eliz@gnu.org>
3180 Jan Kratochvil <jan.kratochvil@redhat.com>
3181
3182 * auto-load.c (auto_load_objfile_script): Rename to ...
3183 (auto_load_objfile_script_1): ... here, change variable realname to
3184 parameter realname, document it, add return value, add variable retval.
3185 (auto_load_objfile_script): New function.
3186
3187 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3188
3189 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3190 followed by a whitespace.
3191
3192 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3193
3194 PR gdb/14494.
3195 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3196 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3197 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3198 here.
3199
3200 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
3201
3202 * memattr.c (create_mem_region): Fix memory region overlapping
3203 checking.
3204
3205 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
3206
3207 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3208 with xmalloc/cleanup.
3209 * mt-tdep.c (mt_push_dummy_call): Likewise.
3210 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3211 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3212
3213 2012-08-24 Yao Qi <yao@codesourcery.com>
3214
3215 * jv-exp.y (push_expression_name): Add "." at the end of error
3216 message.
3217
3218 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
3219
3220 Document how to return from "python-interactive" to GDB.
3221 * python/python.c (_initialize_python): Update documentation.
3222
3223 2012-08-23 Pedro Alves <palves@redhat.com>
3224
3225 * infrun.c (_initialize_infrun) <handle command help text>:
3226 Mention that multiple signals are supported.
3227
3228 2012-08-23 Pedro Alves <palves@redhat.com>
3229
3230 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3231 string.
3232
3233 2012-08-23 Yao Qi <yao@codesourcery.com>
3234
3235 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3236 (tfind_1): Don't call registers_changed, set_traceframe_num,
3237 and clear_traceframe_info.
3238 Call set_current_traceframe.
3239 (set_current_traceframe): call set_traceframe_num.
3240
3241 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
3242
3243 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3244 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3245
3246 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3247
3248 Enable readline in Python in a GDB-specific way and block the
3249 standard Python readline module to prevent conflicts with GDB.
3250 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3251 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3252 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3253 * python/py-gdb-readline.c: New file.
3254 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3255 prototype.
3256 * python/python.c (_initialize_python): Call
3257 gdbpy_initialize_gdb_readline.
3258
3259 2012-08-22 Keith Seitz <keiths@redhat.com>
3260
3261 * defs.h: Include build-gnulib/config.h
3262
3263 2012-08-22 Joseph Myers <joseph@codesourcery.com>
3264
3265 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3266 and blx pc.
3267
3268 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3269
3270 Add a new "python-interactive" command that starts a standard
3271 Python interactive prompt with "pi" as alias, and add "py" as
3272 an alias to "python".
3273 * NEWS: Mention the new commands.
3274 * python/python.c (eval_python_command): New function.
3275 (python_interactive_command): For "python-interactive" with
3276 arguments, call eval_python_command. For "python-interactive"
3277 without arguments, call PyRun_InteractiveLoop.
3278 (_initialize_python): Add "python-interactive" command with
3279 "pi" as alias, and add "py" as an alias to "python".
3280
3281 2012-08-22 Tom Tromey <tromey@redhat.com>
3282
3283 * defs.h (quit_flag): Don't declare.
3284 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3285 (QUIT): Use new functions.
3286 * event-top.c (command_handler): Use clear_quit_flag.
3287 (handle_sigint): Use set_quit_flag.
3288 (async_request_quit): Use check_quit_flag. Don't check
3289 immediate_quit.
3290 * exceptions.c (throw_exception): Use clear_quit_flag.
3291 * main.c (captured_main): Use clear_quit_flag.
3292 * python/python.c (clear_quit_flag, set_quit_flag)
3293 (check_quit_flag): New functions.
3294 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3295 clear_quit_flag.
3296 * remote.c (remote_wait_as): Use check_quit_flag,
3297 clear_quit_flag.
3298 (remote_start_remote): Call QUIT.
3299 * symfile.c (load_progress): Use check_quit_flag.
3300 * top.c (command_loop): Use clear_quit_flag.
3301 (command_line_input): Call QUIT.
3302 * utils.c (quit_flag): Conditionally define.
3303 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3304 functions.
3305 (prompt_for_continue): Call QUIT. Use quit, not
3306 async_request_quit.
3307 * remote-mips.c (mips_expect_timeout): Call QUIT.
3308 * monitor.c (monitor_expect): Call QUIT.
3309
3310 2012-08-22 Tom Tromey <tromey@redhat.com>
3311
3312 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3313 (async_init_signals): Update.
3314 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3315 (SIGWINCH_HANDLER_BODY): Remove.
3316
3317 2012-08-22 Tom Tromey <tromey@redhat.com>
3318
3319 * jit.c (jit_object_close_impl): Don't malloc the objfile
3320 name.
3321 * objfiles.c (allocate_objfile): Don't malloc the objfile
3322 name.
3323 (free_objfile): Don't free the objfile name.
3324 * objfiles.h (struct objfile) <name>: Update comment.
3325 * symfile.c (reread_symbols): Fix reference counting. Don't
3326 malloc objfile name.
3327
3328 2012-08-22 Tom Tromey <tromey@redhat.com>
3329
3330 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3331 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3332 (symfile_bfd_open): Likewise.
3333 (generic_load): Likewise.
3334 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3335 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3336 gdb_bfd_open.
3337 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3338 Use gdb_bfd_open.
3339 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3340 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3341 (pmon_load_fast): Likewise.
3342 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3343 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3344 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3345 (macho_check_dsym): Likewise.
3346 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3347 (m32r_upload_command): Likewise.
3348 * gdb_bfd.h (gdb_bfd_cache): Declare.
3349 * gdb_bfd.c (struct gdb_bfd_data): New.
3350 (gdb_bfd_cache): New global.
3351 (struct gdb_bfd_cache_search): New.
3352 (hash_bfd): New function.
3353 (eq_bfd): Likewise.
3354 (gdb_bfd_open): Likewise.
3355 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3356 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3357 gdb_bfd_data.
3358 * exec.c (exec_file_attach): Use gdb_bfd_open.
3359 * dsrec.c (load_srec): Use gdb_bfd_open.
3360
3361 2012-08-22 Tom Tromey <tromey@redhat.com>
3362
3363 * dwarf2read.c (macro_start_file): Update.
3364 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3365 (free_objfile_per_bfd_storage): Destroy macro_cache.
3366 (allocate_objfile, free_objfile): Update.
3367 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3368 New field.
3369 (struct objfile) <macro_cache>: Remove.
3370 * symfile.c (reread_symbols): Update.
3371 * symmisc.c (print_symbol_bcache_statistics): Update.
3372 (print_objfile_statistics): Update.
3373
3374 2012-08-22 Tom Tromey <tromey@redhat.com>
3375
3376 * elfread.c (elf_symtab_read): Update.
3377 * objfiles.c (objfiles_bfd_data): New global.
3378 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3379 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3380 (allocate_objfile, free_objfile): Update.
3381 (_initialize_objfiles): Initialize objfiles_bfd_data.
3382 * objfiles.h (struct objfile_per_bfd_storage): New.
3383 (struct objfile) <per_bfd>: New field.
3384 <filename_cache>: Remove.
3385 (set_objfile_per_bfd): Declare.
3386 * symfile.c (reread_symbols): Update. Call
3387 set_objfile_per_bfd.
3388 (allocate_symtab): Update.
3389 * symmisc.c (print_symbol_bcache_statistics): Update.
3390 (print_objfile_statistics): Print the size of the BFD obstack.
3391
3392 2012-08-22 Tom Tromey <tromey@redhat.com>
3393
3394 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3395 * gdb_bfd.c: Use DEFINE_REGISTRY.
3396 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3397 (gdb_bfd_ref): Call bfd_alloc_data.
3398 (gdb_bfd_unref): Call bfd_free_data.
3399
3400 2012-08-22 Tom Tromey <tromey@redhat.com>
3401
3402 * registry.h (struct registry_fields): New.
3403 (REGISTRY_FIELDS): Redefine.
3404 (REGISTRY_ACCESS_FIELD): New macro.
3405 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3406 functions.
3407
3408 2012-08-22 Tom Tromey <tromey@redhat.com>
3409
3410 * auto-load.c (_initialize_auto_load): Update.
3411 * solib-svr4.c (_initialize_svr4_solib): Update
3412 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3413 * solib-darwin.c (_initialize_darwin_solib): Update.
3414 * registry.h: New file.
3415 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3416 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3417 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3418 (register_program_space_data_with_cleanup)
3419 (register_program_space_data, program_space_alloc_data)
3420 (clear_program_space_data, set_program_space_data)
3421 (program_space_data): Don't declare.
3422 * progspace.c: Use DEFINE_REGISTRY.
3423 (struct program_space_data, struct
3424 program_space_data_registration, struct
3425 program_space_data_registry, program_space_data_registry)
3426 (register_program_space_data_with_cleanup)
3427 (register_program_space_data, program_space_alloc_data)
3428 (program_space_free_data, clear_program_space_data)
3429 (set_program_space_data, program_space_data): Remove.
3430 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3431 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3432 (register_objfile_data_with_cleanup, register_objfile_data)
3433 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3434 declare.
3435 * objfiles.c: Use DEFINE_REGISTRY.
3436 (struct objfile_data, struct objfile_data_registration, struct
3437 objfile_data_registry, objfile_data_registry)
3438 (register_objfile_data_with_cleanup, register_objfile_data)
3439 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3440 (set_objfile_data, objfile_data): Remove.
3441 (_initialize_objfiles): Update.
3442 * jit.c (_initialize_jit): Update.
3443 * inflow.c (_initialize_inflow): Update.
3444 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3445 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3446 (register_inferior_data_with_cleanup, register_inferior_data)
3447 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3448 declare.
3449 * inferior.c: Use DEFINE_REGISTRY.
3450 (struct inferior_data, struct inferior_data_registration, struct
3451 inferior_data_registry, inferior_data_registry)
3452 (register_inferior_data_with_cleanup, register_inferior_data)
3453 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3454 (set_inferior_data, inferior_data): Remove.
3455 * auxv.c (_initialize_auxv): Update.
3456 * ada-lang.c (_initialize_ada_language): Update.
3457 * breakpoint.c (_initialize_breakpoint): Update.
3458 * i386-nat.c (i386_use_watchpoints): Update.
3459
3460 2012-08-22 Tom Tromey <tromey@redhat.com>
3461
3462 * exec.c (exec_close, exec_file_attach): Update.
3463 (add_to_section_table): Initialize 'key' field.
3464 (add_target_sections, remove_target_sections): Add 'key' argument.
3465 * exec.h (add_target_sections, remove_target_sections): Add
3466 'key' argument.
3467 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3468 (reload_shared_libraries_1): Update.
3469 * target.h (struct target_section) <key>: New field.
3470
3471 2012-08-22 Tom Tromey <tromey@redhat.com>
3472
3473 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3474
3475 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3476
3477 * symfile.c (allocate_symtab): Use host_address_to_string
3478 function instead of cast of pointer to long which is not
3479 compatible with x86_64-w64-mingw32 build.
3480
3481 2012-08-19 Andrew Pinski <apinski@cavium.com>
3482
3483 * mips-tdep.c (is_octeon): New function.
3484 (is_octeon_bbit_op): New function.
3485 (mips32_next_pc): Handle Octeon's bbit instructions.
3486 (mips32_instruction_has_delay_slot): Likewise.
3487
3488 2012-08-19 Andrew Pinski <apinski@cavium.com>
3489
3490 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3491 before the function.
3492
3493 2012-08-19 Andrew Pinski <apinski@cavium.com>
3494
3495 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3496
3497 2012-08-19 Keith Seitz <keiths@redhat.com>
3498
3499 PR c++/14365
3500 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3501 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3502
3503 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3504
3505 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3506 The typo broke "make TAGS".
3507
3508 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3509
3510 GDB 7.5 released.
3511
3512 2012-08-17 Keith Seitz <keiths@redhat.com>
3513
3514 PR c++/13356
3515 * gdbtypes.c (strict_type_checking): New variable.
3516 (show_strict_type_checking): New function.
3517 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3518 if strict type checking is disabled.
3519 (_initialize_gdbtypes): Add "check type" subcommand.
3520 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3521
3522 2012-08-17 Keith Seitz <keiths@redhat.com>
3523
3524 * language.h (type_mode): Remove.
3525 (type_check): Remove.
3526 (struct language_defn): Remove la_type_check.
3527 (STRICT_TYPE): Remove unused macro.
3528 (type_error): Remove.
3529 * language.c (set_type_range_case): Renamed to ...
3530 (set_range_case): ... this. Update all callers.
3531 Remove type_mode/type_check.
3532 (type_mode): Remove.
3533 (type_check): Remove.
3534 (show_type_command): Remove.
3535 (set_type_command): Remove.
3536 (language_info): Remove type checking output.
3537 (type_error): Remove unused function.
3538 (range_error): Update comment.
3539 (unknown_language_defn): Remove la_type_check.
3540 (auto_language_defn): Likewise.
3541 (local_language_defn): Likewise.
3542 (_initialize_language): Remove "check type" subcommand.
3543 * ada-lang.c (ada_language_defn): Remove la_type_check.
3544 * c-lang.c (c_language_defn): Likewise.
3545 (cplus_language_defn): Likewise.
3546 (asm_language_defn): Likewise.
3547 (minimal_language_defn): Likewise.
3548 * d-lang.c (d_language_defn): Likewise.
3549 * f-lang.c (f_language_defn): Likewise.
3550 * go-lang.c (go_language_defn): Likewise.
3551 * jv-lang.c (java_language_defn): Likewise.
3552 * m2-lang.c (m2_language_defn): Likewise.
3553 * objc-lang.c (objc_language_defn): Likewise.
3554 * opencl-lang.c (opencl_language_defn): Likewise.
3555 * p-lang.c (pascal_language_defn): Likewise.
3556
3557 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3558
3559 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3560
3561 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3562
3563 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3564 New function.
3565 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3566 using the regache. Use ia64_hpux_get_register_from_save_state_t
3567 to access the bsp and bspstore registers if not.
3568
3569 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3570
3571 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3572 * breakpoint.c (detach_breakpoints): Change pid parameter into
3573 a ptid. Adjust code accordingly.
3574 * infrun.c (handle_inferior_event): Delete variable child_pid.
3575 Update call to detach_breakpoints to pass the child ptid for
3576 fork events.
3577 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3578 assert that inferior_ptid's lwp is zero.
3579 (linux_handle_extended_wait): Update call to detach_breakpoints.
3580 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3581 detach_breakpoints.
3582
3583 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3584
3585 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3586 parent, only call detach_breakpoints if tts.tts_event ==
3587 TTEVT_VFORK.
3588
3589 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3590
3591 * dwarf2-frame.c (dwarf2_frame_cache): Use
3592 get_frame_address_in_block instead of get_frame_pc as
3593 the bound for executing the frame's FDE.
3594
3595 2012-08-16 Yao Qi <yao@codesourcery.com>
3596
3597 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3598 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3599 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3600 (c_type_print_varspec_suffix): Likewise.
3601 * eval.c (evaluate_subexp_standard): Likewise.
3602 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3603 (f_type_print_varspec_suffix): Likewise.
3604 * gdbtypes.c (is_scalar_type): Likewise.
3605 (recursive_dump_type): Likewise.
3606 * infcall.c (value_arg_coerce): Likewise.
3607 * m2-valprint.c (m2_val_print): Likewise.
3608 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3609 (pascal_type_print_varspec_suffix): Likewise.
3610 (pascal_type_print_base): Likewise.
3611 * p-valprint.c (pascal_val_print): Likewise.
3612 (pascal_val_print): Likewise.
3613 * valops.c (value_slice): Likewise.
3614 * valprint.c (scalar_type_p): Likewise.
3615 * valarith.c (value_bitstring_subscript): Remove.
3616 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3617 Remove comment on TYPE_CODE_BITSTRING.
3618
3619 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3620 TYPE_CODE_BITSTRING.
3621
3622 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3623 slot 0.
3624
3625 2012-08-16 Yao Qi <yao@codesourcery.com>
3626
3627 * tracepoint.c (trace_find_none_command): Remove.
3628 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3629
3630 2012-08-16 Yao Qi <yao@codesourcery.com>
3631
3632 * remote.c (handle_notification): Remove parameter 'length'.
3633 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3634
3635 2012-08-15 Keith Seitz <keiths@redhat.com>
3636
3637 * gdbtypes.c (opaque_type_resolution): Make static.
3638 Add missing comment.
3639 (overload_debug): Add missing comment.
3640 (show_opaque_type_resolution): Likewise.
3641 (show_overload_debug): Likewise.
3642 (print_bit_vector): Remove unnecessary forward declaration.
3643 (print_arg_types): Likewise.
3644 (dump_fn_fieldlists): Likewise.
3645 (print_cplus_stuff): Likewise.
3646
3647 2012-08-15 Tom Tromey <tromey@redhat.com>
3648
3649 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3650 (gdb_bfd_ref): Initialize new field.
3651 (gdb_bfd_unref): Unref the archive BFD.
3652 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3653 parent archive.
3654
3655 2012-08-15 Tom Tromey <tromey@redhat.com>
3656
3657 PR python/14387:
3658 * python/py-bpevent.c (create_breakpoint_event_object): Update
3659 comment.
3660 * python/py-event.c (evpy_add_attribute): Update comment.
3661 * python/py-exitedevent.c (create_exited_event_object): Fix
3662 reference counting and error handling.
3663 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3664 Fix reference counting.
3665 * python/py-signalevent.c (create_signal_event_object): Fix
3666 reference counting and error handling.
3667 * python/py-stopevent.c (emit_stop_event): Fix reference
3668 counting.
3669 * python/py-threadevent.c (get_event_thread): Return a
3670 borrowed reference.
3671 * python/py-type.c (convert_field): Fix reference counting.
3672
3673 2012-08-15 Tom Tromey <tromey@redhat.com>
3674
3675 * dwarf2read.c (dwarf_decode_macro_bytes)
3676 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3677 as hash key.
3678
3679 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3680
3681 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3682 stepi, nexti, finish, next, step, jump, and continue commands.
3683 * infrun.c (_initialize_infrun): Update help text for the handle
3684 command.
3685
3686 2012-08-14 Doug Evans <dje@google.com>
3687
3688 * gdbtypes.c (struct extra): Delete, unused.
3689
3690 * gdbtypes.c: Whitespace cleanup.
3691 (address_space_name_to_int): Remove "extern" from definition.
3692 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3693
3694 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3695 TYPE_POINTER_TYPE (type).
3696
3697 2012-08-14 Gary Benson <gbenson@redhat.com>
3698
3699 * solib-svr4.c (svr4_free_library_list): Use free_so.
3700
3701 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3702
3703 * .gitignore: Add go-exp.c.
3704
3705 2012-08-13 Doug Evans <dje@google.com>
3706
3707 * value.c (show_convenience): Tweak comment.
3708 (_initialize_values): Mention convenience functions in the help text
3709 for "show convenience".
3710
3711 2012-08-13 Yao Qi <yao@codesourcery.com>
3712
3713 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3714 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3715 TERNOP_SLICE_COUNT.
3716 * eval.c (evaluate_subexp_standard): Likewise.
3717 * expprint.c (print_subexp_standard): Likewise.
3718 (dump_subexp_body_standard): Likewise.
3719 * parse.c (operator_length_standard): Likewise.
3720
3721 2012-08-13 Yao Qi <yao@codesourcery.com>
3722
3723 * std-operator.def: Remove OP_BITSTRING.
3724 * breakpoint.c (watchpoint_exp_is_const): Update.
3725 * eval.c (evaluate_subexp_standard): Remove handling to
3726 OP_BITSTRING.
3727 * expprint.c (print_subexp_standard): Likewise.
3728 (dump_subexp_body_standard): Likewise.
3729 * parse.c (operator_length_standard): Likewise.
3730 * valops.c (value_bitstring): Remove.
3731 * value.h: Remove the declaration of 'value_bitstring'.
3732
3733 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3734
3735 * linespec.c (find_methods): Remove unused variables `i1' and
3736 `name_len'.
3737 (decode_line_full): Likewise for `arg_start'.
3738
3739 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3740
3741 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3742 (zlib_decompress_section): Likewise for `section_data'.
3743 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3744
3745 2012-08-10 Doug Evans <dje@google.com>
3746
3747 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3748 * NEWS: Document them.
3749 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3750 function/strfns.py.
3751 * python/py-type.c (typy_array_1): New function.
3752 (typy_array): Call it.
3753 (typy_vector): New function.
3754 (type_object_methods): Add "vector".
3755 * python/lib/gdb/function/__init__.py: New file.
3756 * python/lib/gdb/function/strfns.py: New file.
3757
3758 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3759
3760 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3761 for TYPE_FIELD_BITPOS.
3762 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3763
3764 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3765
3766 PR cli/10436:
3767 * common/vec.h (VEC_merge): Define.
3768 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3769 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3770 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3771 * completer.c: Include gdb_signals.h.
3772 (signal_completer): Define.
3773 * completer.h (signal_completer): Add prototype.
3774 * infcmd.c (_initialize_infcmd): Assign the command
3775 completer for "signal" to handle_completer.
3776 * infrun.c: Include completer.h.
3777 (handle_completer): Define.
3778 (_initialize_infrun): Declare a new local variable c. Store the
3779 result of add_com("handle") to it. Assign the command
3780 completer for "handle" to handle_completer.
3781
3782 2012-08-09 Yao Qi <yao@codesourcery.com>
3783
3784 * cli/cli-decode.c (set_cmd_prefix): New.
3785 (lookup_cmd_for_prefixlist): New.
3786 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3787 of each cmd_list_element in *prefixlist.
3788 (add_setshow_cmd_full): set_cmd_prefix.
3789 (add_alias_cmd): Likewise.
3790 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3791 Declare 'auto_boolean_enums'.
3792 * cli/cli-setshow.c: Include "observer.h".
3793 (notify_command_param_changed_p): New.
3794 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3795 Remove 'static'.
3796 (do_setshow_command): Split it to ...
3797 (do_set_command, do_show_command): ... them. New.
3798 (do_set_command): Call observer_notify_command_param_changed if
3799 notify_command_param_changed_p returns true.
3800 (cmd_show_list): Caller update.
3801 * auto-load.c (set_auto_load_cmd): Likewise.
3802 * remote.c (show_remote_cmd): Likewise.
3803 * cli/cli-setshow.h: Update declarations.
3804 * top.c (execute_command): Call do_set_command and do_show_command.
3805
3806 * NEWS: Mention new MI notification.
3807 * mi/mi-interp.c: Declare mi_command_param_changed.
3808 (mi_interpreter_init): Attach mi_command_param_changed to
3809 observer command_param_changed.
3810 (mi_command_param_changed): New.
3811 Remove mi_suppress_breakpoint_notifications.
3812 Define global variable mi_suppress_notification.
3813 (mi_breakpoint_created): Update.
3814 (mi_breakpoint_deleted): Likewise.
3815 (mi_breakpoint_modified): Likewise.
3816 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3817 'gdb-set' and set mi_suppress_notification.
3818 * mi/mi-main.h: (mi_suppress_notification): New struct.
3819
3820 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3821 Jan Kratochvil <jan.kratochvil@redhat.com>
3822
3823 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3824
3825 2012-08-09 Yao Qi <yao@codesourcery.com>
3826
3827 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3828 (skiplist): Move it to skip.c.
3829 (init_cmd_lists): Remove code setting enablebreaklist and
3830 skiplist to NULL.
3831 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3832 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3833 skiplist.
3834 * gdbcmd.h: Likewise.
3835 * skip.c (_initialize_step_skip): Move 'skiplist' from
3836 cli/cli-cmds.c.
3837
3838 2012-08-09 Yao Qi <yao@codesourcery.com>
3839
3840 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3841 * gnu-nat.c, symfile.c: Likewise.
3842
3843 2012-08-08 Aaron Gamble <agamble@google.com>
3844
3845 * utils.c (prompt_for_continue_wait_time): New static global.
3846 (make_command_stats_cleanup): Initialize it.
3847 (report_command_stats): Subtract time waiting for user.
3848 (prompt_for_continue): Track time waiting for user.
3849 (defaulted_query): Track time waiting for user.
3850
3851 2012-08-08 Doug Evans <dje@google.com>
3852
3853 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3854 UNOP_MEMVAL_TYPE.
3855 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3856 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3857 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3858 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3859 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3860 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3861 elt.
3862 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3863 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3864 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3865 (dump_prefix_expression): Handle OP_TYPE.
3866
3867 2012-08-08 Keith Seitz <keiths@redhat.com>
3868
3869 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3870 addr_start.
3871
3872 2012-08-08 Doug Evans <dje@google.com>
3873
3874 * linux-thread-db.c: #include "gdb_vecs.h".
3875 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3876 updated.
3877 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3878 (thread_db_load_search): Use a vector to iterate over path elements.
3879 Handle text appearing after "$pdir".
3880
3881 * gdb_string.h: Moved to ...
3882 * common/gdb_string.h: ... here.
3883 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3884 gdb_string.h and gdb_assert.h.
3885
3886 2012-08-08 Yao Qi <yao@codesourcery.com>
3887
3888 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3889 (tic6x_value_to_register): Likewise.
3890 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3891 and set_gdbarch_value_to_register.
3892
3893 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3894 Jean-Marc Saffroy <saffroy@gmail.com>
3895
3896 PR 11804
3897 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3898 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3899 * gcore.c (gcore_create_callback): New function comment. Add modified
3900 parameter. Only write modified regions. Set SEC_READONLY exactly
3901 according to MODIFIED.
3902 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3903 the passed modified value to FUNC.
3904 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3905 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3906 first. New variables modified and has_anonymous. Parse the lines of
3907 smaps file. Add the passed MODIFIED value to FUNC.
3908 * procfs.c (find_memory_regions_callback): Add the passed modified
3909 value.
3910
3911 2012-08-06 Tom Tromey <tromey@redhat.com>
3912
3913 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3914 (dwarf2_frame_cache): Use it.
3915 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3916 cache initialization constraint.
3917
3918 2012-08-06 Tom Tromey <tromey@redhat.com>
3919
3920 PR python/14386:
3921 * varobj.c (update_dynamic_varobj_children): Don't call
3922 PyIter_Check.
3923
3924 2012-08-06 Tom Tromey <tromey@redhat.com>
3925
3926 PR cli/14392:
3927 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3928
3929 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3930
3931 * NEWS: New entry for 'cd' default parameters.
3932 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3933
3934 2012-08-03 Tom Tromey <tromey@redhat.com>
3935
3936 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3937 return.
3938
3939 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3940
3941 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3942 to attempting lseek/write.
3943 (inf_child_fileio_pread): Likewise for pread.
3944
3945 2012-08-02 Yao Qi <yao@codesourcery.com>
3946
3947 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3948 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3949 add_setshow_zinteger_cmd.
3950 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3951 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3952 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3953 instead of add_setshow_zinteger_cmd.
3954 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3955 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3956 instead of add_setshow_zinteger_cmd.
3957 * frame.c (frame_debug): Add 'unsigned'.
3958 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3959 add_setshow_zinteger_cmd.
3960 * frame.h: Update the declaration of 'frame_debug'.
3961 * gdbtypes.c (overload_debug): Add 'unsigned'.
3962 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3963 add_setshow_zinteger_cmd.
3964 * inferior.h: Update declaration of 'debug_infrun'.
3965 * infrun.c (debug_infrun): Add 'unsigned'.
3966 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3967 add_setshow_zinteger_cmd.
3968 * jit.c (jit_debug): Add 'unsigned'.
3969 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3970 add_setshow_zinteger_cmd.
3971 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3972 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3973 instead of add_setshow_zinteger_cmd.
3974 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3975 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3976 add_setshow_zinteger_cmd.
3977 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3978 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3979 instead of add_setshow_zinteger_cmd.
3980 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3981 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3982 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3983 intead of add_setshow_zinteger_cmd.
3984 * mips-tdep.c (mips_debug): Add 'unsigned'.
3985 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3986 instead of add_setshow_zinteger_cmd.
3987 * monitor.c (monitor_debug): Add 'unsigned'.
3988 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3989 add_setshow_zinteger_cmd.
3990 * observer.c (observer_debug): Add 'unsigned'.
3991 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3992 add_setshow_zinteger_cmd.
3993 * parse.c (expressiondebug): Add 'unsigned'.
3994 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3995 add_setshow_zinteger_cmd.
3996 * record.c (record_debug): Add 'unsigned'.
3997 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3998 add_setshow_zinteger_cmd.
3999 * record.h: Update the declaration of 'record_debug'.
4000 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
4001 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
4002 add_setshow_zinteger_cmd.
4003 * serial.c (global_serial_debug_p): Add 'unsigned'.
4004 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
4005 add_setshow_zinteger_cmd.
4006 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
4007 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
4008 add_setshow_zinteger_cmd.
4009 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
4010 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
4011 add_setshow_zinteger_cmd.
4012 * target.c (targetdebug): Add 'unsigned'.
4013 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
4014 add_setshow_zinteger_cmd.
4015 * valops.c (overload_debug): Add 'unsigned'.
4016 * varobj.c (varobjdebug): Add 'unsigned'.
4017 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
4018 add_setshow_zinteger_cmd.
4019 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
4020 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
4021 instead of add_setshow_zinteger_cmd.
4022
4023 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
4024 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
4025 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
4026 instead of add_setshow_zinteger_cmd.
4027 * gdbarch.c, gdbarch.h: Re-generated.
4028
4029 2012-08-02 Yao Qi <yao@codesourcery.com>
4030
4031 * nto-tdep.c: Don't include cli/cli-decode.h and
4032 cli/cli-cmds.h.
4033 (_initialize_nto_tdep): Remove.
4034 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
4035 Remove field.
4036 Remove macro nto_internal_debugging.
4037
4038 2012-08-01 Richard Henderson <rth@redhat.com>
4039
4040 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
4041 (mep-*-*) [gdb_target_obs]: Likewise.
4042
4043 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
4044
4045 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4046 linux_get_siginfo_type.
4047
4048 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4049
4050 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
4051 AT_ENTRY_POINT.
4052 (call_function_by_hand) <ON_STACK>: Call write_memory with
4053 gdbarch_breakpoint_from_pc, if possible.
4054 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
4055 here.
4056
4057 2012-07-31 Yao Qi <yao@codesourcery.com>
4058
4059 * tracepoint.c: Add 'static' for some variables.
4060
4061 2012-07-31 Yao Qi <yao@codesourcery.com>
4062
4063 * go32-nat.c: Declare _initialize_go32_nat.
4064 * ser-go32.c: Declare _initialize_ser_dos.
4065 * top.c (do_chdir_cleanup): Add 'static'.
4066
4067 2012-07-30 Keith Seitz <keiths@redhat.com>
4068
4069 * linespec.c (linespec_lex_number): A number followed
4070 by quotes is a valid number, too.
4071
4072 2012-07-30 Tom Tromey <tromey@redhat.com>
4073
4074 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
4075
4076 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
4077
4078 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
4079 attempt to 4-byte-align HW breakpoint addresses for Thumb.
4080
4081 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
4082
4083 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
4084 invalid or reevaluated to prevent prevent references to possibly
4085 delete'd type objects being left in the varobj.
4086
4087 2012-07-27 Tom Tromey <tromey@redhat.com>
4088 Jan Kratochvil <jan.kratochvil@redhat.com>
4089
4090 * copying.awk: Print buffer-read-only and vi ro markers.
4091 * copying.c: Rebuild.
4092 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
4093 * gdbarch.c, gdbarch.h: Rebuild.
4094 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
4095 buffer-read-only and vi ro markers.
4096 * features/arm-with-iwmmxt.c: Rebuild.
4097 * features/arm-with-m-fpa-layout.c: Rebuild.
4098 * features/arm-with-m-vfp-d16.c: Rebuild.
4099 * features/arm-with-m.c: Rebuild.
4100 * features/arm-with-neon.c: Rebuild.
4101 * features/arm-with-vfpv2.c: Rebuild.
4102 * features/arm-with-vfpv3.c: Rebuild.
4103 * features/i386/amd64-avx-linux.c: Rebuild.
4104 * features/i386/amd64-avx.c: Rebuild.
4105 * features/i386/amd64-linux.c: Rebuild.
4106 * features/i386/amd64.c: Rebuild.
4107 * features/i386/i386-avx-linux.c: Rebuild.
4108 * features/i386/i386-avx.c: Rebuild.
4109 * features/i386/i386-linux.c: Rebuild.
4110 * features/i386/i386-mmx-linux.c: Rebuild.
4111 * features/i386/i386-mmx.c: Rebuild.
4112 * features/i386/i386.c: Rebuild.
4113 * features/i386/x32-avx-linux.c: Rebuild.
4114 * features/i386/x32-avx.c: Rebuild.
4115 * features/i386/x32-linux.c: Rebuild.
4116 * features/i386/x32.c: Rebuild.
4117 * features/mips-dsp-linux.c: Rebuild.
4118 * features/mips-linux.c: Rebuild.
4119 * features/mips64-dsp-linux.c: Rebuild.
4120 * features/mips64-linux.c: Rebuild.
4121 * features/rs6000/powerpc-32.c: Rebuild.
4122 * features/rs6000/powerpc-32l.c: Rebuild.
4123 * features/rs6000/powerpc-403.c: Rebuild.
4124 * features/rs6000/powerpc-403gc.c: Rebuild.
4125 * features/rs6000/powerpc-405.c: Rebuild.
4126 * features/rs6000/powerpc-505.c: Rebuild.
4127 * features/rs6000/powerpc-601.c: Rebuild.
4128 * features/rs6000/powerpc-602.c: Rebuild.
4129 * features/rs6000/powerpc-603.c: Rebuild.
4130 * features/rs6000/powerpc-604.c: Rebuild.
4131 * features/rs6000/powerpc-64.c: Rebuild.
4132 * features/rs6000/powerpc-64l.c: Rebuild.
4133 * features/rs6000/powerpc-7400.c: Rebuild.
4134 * features/rs6000/powerpc-750.c: Rebuild.
4135 * features/rs6000/powerpc-860.c: Rebuild.
4136 * features/rs6000/powerpc-altivec32.c: Rebuild.
4137 * features/rs6000/powerpc-altivec32l.c: Rebuild.
4138 * features/rs6000/powerpc-altivec64.c: Rebuild.
4139 * features/rs6000/powerpc-altivec64l.c: Rebuild.
4140 * features/rs6000/powerpc-cell32l.c: Rebuild.
4141 * features/rs6000/powerpc-cell64l.c: Rebuild.
4142 * features/rs6000/powerpc-e500.c: Rebuild.
4143 * features/rs6000/powerpc-e500l.c: Rebuild.
4144 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
4145 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
4146 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
4147 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
4148 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
4149 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
4150 * features/rs6000/powerpc-vsx32.c: Rebuild.
4151 * features/rs6000/powerpc-vsx32l.c: Rebuild.
4152 * features/rs6000/powerpc-vsx64.c: Rebuild.
4153 * features/rs6000/powerpc-vsx64l.c: Rebuild.
4154 * features/rs6000/rs6000.c: Rebuild.
4155 * features/s390-linux32.c: Rebuild.
4156 * features/s390-linux32v1.c: Rebuild.
4157 * features/s390-linux32v2.c: Rebuild.
4158 * features/s390-linux64.c: Rebuild.
4159 * features/s390-linux64v1.c: Rebuild.
4160 * features/s390-linux64v2.c: Rebuild.
4161 * features/s390x-linux64.c: Rebuild.
4162 * features/s390x-linux64v1.c: Rebuild.
4163 * features/s390x-linux64v2.c: Rebuild.
4164 * features/tic6x-c62x-linux.c: Rebuild.
4165 * features/tic6x-c62x.c: Rebuild.
4166 * features/tic6x-c64x-linux.c: Rebuild.
4167 * features/tic6x-c64x.c: Rebuild.
4168 * features/tic6x-c64xp-linux.c: Rebuild.
4169 * features/tic6x-c64xp.c: Rebuild.
4170
4171 2012-07-27 Tom Tromey <tromey@redhat.com>
4172
4173 * c-exp.y (classify_name): Avoid assignment in condition.
4174
4175 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
4176
4177 * amd64-windows-tdep.c: Include "frame.h".
4178 (amd64_windows_skip_trampoline_code): New function.
4179 (amd64_windows_init_abi): Add trampoline registration.
4180
4181 2012-07-27 Yao Qi <yao@codesourcery.com>
4182
4183 * tracepoint.c (cur_traceframe_number): Remove.
4184 (set_tfile_traceframe): Remove.
4185 (tfile_trace_find, tfile_fetch_registers): Update callers.
4186 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4187 (tfile_open, tfile_trace_find): Likewise.
4188
4189 2012-07-27 Yao Qi <yao@codesourcery.com>
4190
4191 * thread.c (switch_to_thread): Don't call registers_changed.
4192
4193 2012-07-26 Tom Tromey <tromey@redhat.com>
4194
4195 * Makefile.in (SFILES): Remove objc-exp.y.
4196 (YYFILES): Remove objc-exp.c.
4197 (YYOBJ): Remove objc-exp.o.
4198 (local-maintainer-clean): Don't mention objc-exp.c.
4199 * c-exp.y: Include objc-lang.h.
4200 (%union) <class>: New field.
4201 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4202 (exp): Clone subscript production for OBJC_LBRAC. Add various
4203 Objective C productions.
4204 (msglist, msgarglist, msgarg): New productions.
4205 (array_mod, func_mod, operator): Clone productions for
4206 OBJC_LBRAC.
4207 (parse_string_or_char): Handle '@' strings.
4208 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
4209 (classify_name): Check la_name_of_this. Recognize ObjC class
4210 names.
4211 * objc-exp.y: Remove.
4212 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4213 * objc-lang.h (objc_parse, objc_error): Don't declare.
4214
4215 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
4216
4217 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4218
4219 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4220
4221 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4222 and decrement.
4223
4224 2012-07-26 Tom Tromey <tromey@redhat.com>
4225
4226 * copying.c: Rebuild.
4227 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
4228 'no_class'.
4229
4230 2012-07-26 Tom Tromey <tromey@redhat.com>
4231
4232 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4233 immediate_quit.
4234 (print_objfile_statistics): Likewise.
4235 (maintenance_print_symbols): Likewise.
4236 (maintenance_print_msymbols): Likewise.
4237 (maintenance_print_objfiles): Likewise.
4238 * psymtab.c (print_partial_symbols): Call QUIT.
4239 (maintenance_print_psymbols): Likewise. Don't modify
4240 immediate_quit.
4241 * copying.c (show_copying_command): Don't modify immediate_quit.
4242 (show_warranty_command): Likewise.
4243 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4244
4245 2012-07-26 Keith Seitz <keiths@redhat.com>
4246
4247 * linespec.c (linespec_lexer_lex_number): The input
4248 is also a valid number if the next character is a comma
4249 or colon.
4250
4251 2012-07-26 Joel Brobecker <brobecker@adacore.com>
4252
4253 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4254 configure options.
4255
4256 2012-07-26 Tristan Gingold <gingold@adacore.com>
4257
4258 * machoread.c: Include gdb_bfd.h.
4259
4260 2012-07-26 Tristan Gingold <gingold@adacore.com>
4261
4262 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4263 offset.
4264
4265 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
4266
4267 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4268 SIZE to size_t.
4269 (dwarf2_evaluate_loc_desc): Likewise.
4270 (dwarf2_loc_desc_needs_frame): Likewise.
4271 (locexpr_describe_location_1): Likewise.
4272 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4273 size_t.
4274 (struct dwarf2_loclist_baton): Likewise.
4275 * dwarf2read.c (struct dwarf_block): Likewise.
4276 (dump_die_shallow): Use pulongest to print dwarf_block.size.
4277 (decode_locdesc): Expand SIZE and I to size_t.
4278
4279 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4280
4281 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4282
4283 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4284
4285 * doublest.c (convert_doublest_to_floatformat): If the exponent
4286 is too small, treat the value as zero. If the exponent is too
4287 large, treat the value as infinity.
4288
4289 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4290
4291 * configure.ac: Add --enable-lmcheck configure option.
4292 * configure: Regenerate.
4293
4294 2012-07-25 Tom Tromey <tromey@redhat.com>
4295
4296 * NEWS: Mention maint info bfds.
4297 * gdb_bfd.c (all_bfds): New global.
4298 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4299 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4300 New functions.
4301
4302 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
4303
4304 * configure.tgt: Add v850*-*-rtems*.
4305
4306 2012-07-25 Tom Tromey <tromey@redhat.com>
4307
4308 * macrotab.c (macro_bcache_str): Remove cast.
4309
4310 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
4311
4312 * linespec.c (linespec_lexer_lex_number): Update comments,
4313 change the return and add check to make sure the input is
4314 the decimal numbers.
4315 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4316 false, call linespec_lexer_lex_string.
4317
4318 2012-07-24 Tom Tromey <tromey@redhat.com>
4319
4320 * symfile.c (symbol_file_add): Don't open BFD twice.
4321
4322 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
4323
4324 * breakpoint.c (create_breakpoint): Store condition for pending
4325 breakpoints.
4326
4327 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4328
4329 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4330 (m68k_return_value): Handle complex types like structures.
4331 (m68k_svr4_return_value): Likewise.
4332
4333 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4334
4335 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4336 parameters to bfd_get_section_name.
4337
4338 2012-07-24 Yao Qi <yao@codesourcery.com>
4339
4340 * cli/cli-setshow.c: Handle case 'var_uinteger'
4341 and 'var_zuninteger' together. Handle case 'var_integer' and
4342 'var_zinteger' together.
4343
4344 2012-07-23 Keith Seitz <keiths@redhat.com>
4345
4346 * linespec.c (convert_linespec_to_sal): Don't add
4347 any symbols to the result vector if symbol_to_sal
4348 returns zero.
4349
4350 2012-07-23 Keith Seitz <keiths@redhat.com>
4351
4352 * linespec.c (decode_objc): Record the function name
4353 in the linespec.
4354
4355 2012-07-23 Tom Tromey <tromey@redhat.com>
4356
4357 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4358 counting.
4359 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4360 (map_vmap): Acquire a reference to the BFD.
4361
4362 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4363
4364 * p-valprint.c (pascal_object_print_value): Replace potentially
4365 unsafe alloca with xmalloc/xfree.
4366 * valops.c (search_struct_method): Likewise.
4367
4368 2012-07-23 Tom Tromey <tromey@redhat.com>
4369
4370 * solib-svr4.c (enable_break): Update.
4371 * bfd-target.h (target_bfd_reopen): Update documentation.
4372
4373 2012-07-23 Tom Tromey <tromey@redhat.com>
4374
4375 * symfile.c (separate_debug_file_exists): Update.
4376 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4377 (reread_symbols): Update.
4378 * elfread.c (build_id_verify): Update.
4379 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4380 bfd_open_maybe_remote.
4381
4382 2012-07-23 Tom Tromey <tromey@redhat.com>
4383
4384 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4385
4386 2012-07-23 Tom Tromey <tromey@redhat.com>
4387
4388 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4389 and 'abfd'.
4390 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4391 and 'abfd'.
4392 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4393 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4394 'abfd'.
4395 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4396 * objfiles.c (allocate_objfile): Acquire a new reference.
4397 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4398 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4399 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4400 a cleanup for 'nbfd'.
4401 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4402 for 'nbfd'.
4403 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4404 make a cleanup for 'abfd'.
4405 (symbol_file_add): Make a BFD cleanup.
4406
4407 2012-07-23 Tom Tromey <tromey@redhat.com>
4408
4409 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4410 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4411 * corelow.c (core_open): Use gdb_bfd_fopen.
4412 * dsrec.c (load_srec): Use gdb_bfd_openr.
4413 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4414 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4415 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4416 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4417 (gdb_bfd_fdopenr): New functions.
4418 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4419 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4420 (gdb_bfd_fdopenr): Declare.
4421 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4422 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4423 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4424 gdb_bfd_openr_next_archived_file.
4425 (macho_check_dsym): Use gdb_bfd_openr.
4426 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4427 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4428 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4429 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4430 gdb_bfd_openr.
4431 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4432 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4433 gdb_bfd_openr_next_archived_file.
4434 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4435 Use gdb_bfd_openr.
4436 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4437 gdb_bfd_openr.
4438 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4439 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4440 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4441 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4442 (symfile_bfd_open): Use gdb_bfd_fopen.
4443 (generic_load): Use gdb_bfd_openr.
4444 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4445
4446 2012-07-23 Tom Tromey <tromey@redhat.com>
4447
4448 * bfd-target.c (target_bfd_reopen): Update.
4449 * cli/cli-dump.c (bfd_openr_with_cleanup)
4450 (bfd_openw_with_cleanup): Update.
4451 * corelow.c (core_open): Update.
4452 * dsrec.c (load_srec): Update.
4453 * exec.c (exec_file_attach): Update.
4454 * gcore.c (create_gcore_bfd): Update.
4455 * gdb_bfd.c (gdb_bfd_ref): Return void.
4456 (gdb_bfd_open): Update.
4457 * gdb_bfd.h (gdb_bfd_ref): Return void.
4458 Update comments.
4459 * jit.c (jit_bfd_try_read_symtab): Update.
4460 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4461 * machoread.c (macho_symfile_read_all_oso): Update.
4462 (macho_check_dsym): Update.
4463 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4464 * remote-m32r-sdi.c (m32r_load): Update.
4465 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4466 * rs6000-nat.c (add_vmap): Update.
4467 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4468 Update.
4469 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4470 * solib-spu.c (spu_bfd_open): Update.
4471 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4472 * spu-linux-nat.c (spu_bfd_open): Update.
4473 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4474 (generic_load): Update.
4475 * windows-nat.c (windows_make_so): Update.
4476
4477 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4478
4479 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4480
4481 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4482
4483 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4484 SIGTRAMP_FRAME unwinding.
4485
4486 2012-07-20 Doug Evans <dje@google.com>
4487
4488 * NEWS: Document new options "set/show use-deprecated-index-sections",
4489 and delete reference to --use-deprecated-index-sections.
4490 * symfile.h (use_deprecated_index_sections): Delete.
4491 * dwarf2read.c (use_deprecated_index_sections): Make static.
4492 (read_index_from_section): Update wording of how to load
4493 deprecated index sections.
4494 (_initialize_dwarf2_read): New options
4495 "set/show use-deprecated-index-sections".
4496 * main.c (captured_main): Delete --use-deprecated-index-sections.
4497
4498 2012-07-20 Pedro Alves <palves@redhat.com>
4499
4500 PR threads/11692
4501 PR gdb/12203
4502
4503 * infrun.c (handle_inferior_event) <new thread>: Don't special
4504 case minus_one_ptid.
4505 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4506 * linux-thread-db.c (thread_get_info_callback): Don't return early
4507 if the thread is zombie.
4508 (thread_from_lwp): Change return type to void. Rewrite stale
4509 comment.
4510 (attach_thread): Don't return early if the thread is zombie,
4511 instead set its "dying" flag.
4512 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4513 (find_new_threads_callback): Don't return early if the thread is
4514 zombie.
4515
4516 2012-07-20 Pedro Alves <palves@redhat.com>
4517
4518 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4519 * target.c (target_wait): Likewise.
4520 (str_comma_list_concat_elem, do_option, target_options_to_string):
4521 New functions.
4522 * target.h (target_options_to_string): Declare.
4523
4524 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4525 Tom Tromey <tromey@redhat.com>
4526
4527 * dwarf2read.c (dwarf_decode_macros)
4528 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4529 DW_MACRO_GNU_transparent_include_alt>: New cases.
4530 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4531 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4532
4533 2012-07-20 Tom Tromey <tromey@redhat.com>
4534
4535 * dwarf2read.c (try_open_dwo_file): Don't call
4536 gdb_bfd_stash_filename.
4537
4538 2012-07-20 Pedro Alves <palves@redhat.com>
4539
4540 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4541 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4542 (i386_process_record): Tweak description comments.
4543
4544 2012-07-20 Pedro Alves <palves@redhat.com>
4545
4546 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4547 (i386_process_record): Use record_read_memory.
4548 * record.c (record_read_memory): New function.
4549 (record_arch_list_add_mem, record_exec_insn): Use
4550 record_read_memory.
4551 * record.h (record_read_memory): Declare.
4552
4553 2012-07-20 Yao Qi <yao@codesourcery.com>
4554
4555 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4556 NULL for xfree.
4557
4558 2012-07-19 Pedro Alves <palves@redhat.com>
4559
4560 * record.c (record_resume): Ask the target beneath to report all
4561 signals.
4562
4563 2012-07-19 Doug Evans <dje@google.com>
4564
4565 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4566 there's no section at address zero.
4567 (dwarf2_record_block_ranges): Ditto.
4568
4569 2012-07-19 Yao Qi <yao@codesourcery.com>
4570
4571 * command.h, remote.c: Fix a typo in comment.
4572
4573 2012-07-19 Tom Tromey <tromey@redhat.com>
4574
4575 PR exp/13206:
4576 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4577 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4578 OP_DECLTYPE>: New cases.
4579 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4580 (type_exp): Add new productions.
4581 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4582 and decltype.
4583 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4584 New case.
4585 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4586 OP_DECLTYPE>: New case.
4587 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4588 New case.
4589 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4590 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4591
4592 2012-07-19 Tom Tromey <tromey@redhat.com>
4593
4594 * c-exp.y (enum token_flags): New.
4595 (struct token) <cxx_only>: Remove.
4596 <flags>: New field.
4597 (tokentab3, tokentab2, ident_tokens): Update.
4598 (lex_one_token): Update. Handle FLAG_SHADOW.
4599
4600 2012-07-19 Tom Tromey <tromey@redhat.com>
4601
4602 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4603 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4604 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4605 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4606 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4607 type_exp production where appropriate.
4608 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4609 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4610 <UNOP_MEMVAL_TYPE>: New case.
4611 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4612 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4613 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4614 <UNOP_MEMVAL_TYPE>: New case.
4615 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4616 UNOP_REINTERPRET_CAST>: Update.
4617 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4618 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4619 UNOP_REINTERPRET_CAST>: Update.
4620 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4621 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4622 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4623 constants.
4624
4625 2012-07-19 Yao Qi <yao@codesourcery.com>
4626 Jan Kratochvil <jan.kratochvil@redhat.com>
4627
4628 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4629 and case 'var_optional_filename' together.
4630 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4631 instead of add_setshow_optional_filename_cmd for setshow command
4632 'args'. Set completer for 'set args'.
4633
4634 2012-07-18 Doug Evans <dje@google.com>
4635
4636 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4637 * common/gdb_vecs.c: New file, contents from utils.c.
4638 * common/host-defs.h: New file, contents from defs.h.
4639 * utils.h: New file, contents from defs.h.
4640 * defs.h: Move all declarations of objects defined in utils.c
4641 to utils.h (except QUIT() and related).
4642 #include "utils.h", "host-defs.h".
4643 * probe.h (probe_p): Move here from gdb_vecs.h.
4644 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4645 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4646 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4647 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4648 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4649 (COMMON_OBS): Add gdb_vecs.o.
4650 (gdb_vecs.o): New rule.
4651
4652 2012-07-18 Keith Seitz <keiths@redhat.com>
4653
4654 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4655 parameter. If non-zero, use SYMNAME as the canonical name
4656 for the SaL.
4657 Update all callers.
4658 (convert_linespec_to_sals): Use add_sal_to_sals for
4659 expressions, too.
4660 (decode_line_full): No need to "fill in missing canonical names"
4661 anymore. Simply make cleanups for the allocated names.
4662
4663 2012-07-18 Keith Seitz <keiths@redhat.com>
4664
4665 * linespec.c (struct linespec): Constify expression,
4666 source_filename, function_name, and label_name.
4667 (symbol_not_found_error): Make all parameters const.
4668 (linespec_parser_delete): No need to check for NULL
4669 when using xfree. Cast const char * to char * for xfree.
4670
4671 2012-07-18 Keith Seitz <keiths@redhat.com>
4672
4673 * breakpoint.c (invalid_thread_id_error): New function.
4674 (find_condition_and_thread): Use invalid_thread_id_error.
4675 (watch_command_1): Likewise.
4676
4677 2012-07-18 Tom Tromey <tromey@redhat.com>
4678
4679 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4680 * contrib/cc-with-tweaks.sh: New file.
4681
4682 2012-07-18 Tom Tromey <tromey@redhat.com>
4683
4684 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4685 (locate_dwz_sections): Recognize .gdb_index.
4686 (create_cus_from_index_list): New function.
4687 (create_cus_from_index): Use it. Handle .dwz data.
4688 (read_index_from_section): New function, extracted from
4689 dwarf2_read_index.
4690 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4691 if needed.
4692
4693 2012-07-18 Tom Tromey <tromey@redhat.com>
4694
4695 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4696 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4697 <is_dwz>: New field.
4698 (struct dwz_file): New.
4699 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4700 (locate_dwz_sections, dwarf2_get_dwz_file)
4701 (get_abbrev_section_for_cu): New functions.
4702 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4703 (read_and_check_type_unit_head): Add abbrev_section argument.
4704 (create_debug_types_hash_table): Update.
4705 (init_cutu_and_read_dies): Use proper abbrev section.
4706 (init_cutu_and_read_dies_no_follow): Likewise.
4707 (set_partial_user): Do nothing if PST==NULL.
4708 (read_comp_units_from_section): New function.
4709 (create_all_comp_units): Use it.
4710 (scan_partial_symbols, partial_die_parent_scope): Update.
4711 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4712 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4713 (find_partial_die): Add offset_in_dwz argument. Update.
4714 (guess_partial_die_structure_name, fixup_partial_die): Update.
4715 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4716 DW_FORM_GNU_strp_alt.
4717 (read_indirect_string_from_dwz): New function.
4718 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4719 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4720 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4721 (follow_die_offset): Add offset_in_dwz argument.
4722 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4723 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4724 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4725 Handle new macro forms.
4726 (dwarf_decode_macros): Update.
4727 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4728 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4729 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4730 (create_debug_types_hash_table): Use correct abbrev section.
4731 (get_debug_line_section): New function.
4732 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4733 (process_full_comp_unit): Pass 'required' argument to
4734 end_symtab_get_static_block.
4735 * buildsym.h (end_symtab_get_static_block): Update.
4736 * buildsym.c (end_symtab_get_static_block): Add 'required'
4737 argument.
4738 (end_symtab, end_expandable_symtab): Update.
4739
4740 2012-07-18 Tom Tromey <tromey@redhat.com>
4741
4742 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4743 (pagesize): Remove.
4744 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4745 (zlib_decompress_section): Remove.
4746 (dwarf2_read_section): Use gdb_bfd_map_section.
4747 (munmap_section_buffer): Remove.
4748 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4749 munmap_section_buffer.
4750 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4751 (struct gdb_bfd_section_data): New.
4752 (free_one_bfd_section): New function.
4753 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4754 (get_section_descriptor, zlib_decompress_section)
4755 (gdb_bfd_map_section): New functions.
4756 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4757
4758 2012-07-18 Tom Tromey <tromey@redhat.com>
4759
4760 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4761
4762 2012-07-18 Tom Tromey <tromey@redhat.com>
4763
4764 * gdb_bfd.c (struct gdb_bfd_data): New.
4765 (gdb_bfd_cache): New global.
4766 (struct gdb_bfd_cache_search): New.
4767 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4768 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4769 * gdb_bfd.h (gdb_bfd_open): Declare.
4770
4771 2012-07-18 Tom Tromey <tromey@redhat.com>
4772
4773 * utils.c (make_cleanup_bfd_unref): Rename from
4774 make_cleanup_bfd_close.
4775 * defs.h (make_cleanup_bfd_unref): Rename from
4776 make_cleanup_bfd_close.
4777 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4778 (bfd_openw_with_cleanup): Update.
4779 * corelow.c (core_open): Update.
4780 * dsrec.c (load_srec): Update.
4781 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4782 * remote-m32r-sdi.c (m32r_load): Update.
4783 * remote-mips.c (mips_load_srec): Update.
4784 (pmon_load_fast): Update.
4785 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4786 Update.
4787 (darwin_bfd_open): Update.
4788 * solib.c (solib_bfd_fopen): Update.
4789 * symfile-mem.c (symbol_file_add_from_memory): Update.
4790 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4791 (symfile_bfd_open): Update.
4792 (generic_load): Update.
4793
4794 2012-07-18 Tom Tromey <tromey@redhat.com>
4795
4796 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4797 (pmon_load_fast): Likewise.
4798 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4799 (m32r_upload_command): Likewise.
4800 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4801 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4802 Use make_cleanup_bfd_close.
4803
4804 2012-07-18 Tom Tromey <tromey@redhat.com>
4805
4806 * symfile.c (symfile_bfd_open): Don't copy name. Call
4807 gdb_bfd_stash_filename.
4808 (load_command): Open the new BFD before freeing the old.
4809 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4810 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4811 Call gdb_bfd_stash_filename.
4812 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4813 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4814 gdb_bfd_stash_filename.
4815 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4816 Free found_pathname.
4817 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4818 gdb_bfd_stash_filename.
4819 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4820 * machoread.c (macho_add_oso_symfile): Call
4821 gdb_bfd_stash_filename.
4822 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4823 gdb_bfd_stash_filename.
4824 (macho_check_dsym): Don't copy filename. Call
4825 gdb_bfd_stash_filename.
4826 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4827 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4828 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4829 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4830 * exec.c (exec_close): Don't free the BFD's filename.
4831 (exec_file_attach): Don't copy the filename. Call
4832 gdb_bfd_stash_filename.
4833 * corelow.c (core_close): Don't free the BFD's filename.
4834 (core_open): Call gdb_bfd_stash_filename.
4835 * corefile.c (reopen_exec_file): Remove #if 0 code.
4836 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4837 pathname.
4838 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4839
4840 2012-07-18 Tom Tromey <tromey@redhat.com>
4841
4842 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4843 gdb_bfd_unref.
4844 (free_dwo_file): Use gdb_bfd_unref.
4845 * cli/cli-dump.c: Include gdb_bfd.h.
4846 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4847 (bfd_openr_with_cleanup): Likewise.
4848 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4849 gdb_bfd_unref.
4850 * utils.c: Include gdb_bfd.h.
4851 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4852 * symfile.c: Include gdb_bfd.h.
4853 (separate_debug_file_exists): Use gdb_bfd_unref.
4854 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4855 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4856 (generic_load): Use gdb_bfd_ref.
4857 (reread_symbols): Use gdb_bfd_unref.
4858 * symfile-mem.c: Include gdb_bfd.h.
4859 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4860 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4861 * solib.c: Include gdb_bfd.h.
4862 (solib_bfd_fopen): Use gdb_bfd_ref.
4863 (solib_bfd_open): Use gdb_bfd_unref.
4864 (free_so_symbols): Use gdb_bfd_unref.
4865 (reload_shared_libraries_1): Use gdb_bfd_unref.
4866 * solib-spu.c: Include gdb_bfd.h.
4867 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4868 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4869 gdb_bfd_unref.
4870 * solib-frv.c: Include gdb_bfd.h.
4871 (enable_break2): Use gdb_bfd_unref.
4872 * solib-dsbt.c: Include gdb_bfd.h.
4873 (enable_break2): Use gdb_bfd_unref.
4874 * solib-darwin.c: Include gdb_bfd.h.
4875 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4876 gdb_bfd_unref.
4877 (darwin_bfd_open): Use gdb_bfd_unref.
4878 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4879 * remote-mips.c: Include gdb_bfd.h.
4880 (mips_load_srec): Use gdb_bfd_ref.
4881 (pmon_load_fast): Use gdb_bfd_ref.
4882 * remote-m32r-sdi.c: Include gdb_bfd.h.
4883 (m32r_load): Use gdb_bfd_ref.
4884 * record.c: Include gdb_bfd.h.
4885 (record_save_cleanups): Use gdb_bfd_unref.
4886 (cmd_record_save): Use gdb_bfd_unref.
4887 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4888 gdb_bfd_unref.
4889 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4890 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4891 * objfiles.c: Include gdb_bfd.h.
4892 (free_objfile): Use gdb_bfd_unref.
4893 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4894 gdb_bfd.c.
4895 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4896 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4897 (macho_check_dsym): Likewise.
4898 * m32r-rom.c: Include gdb_bfd.h.
4899 (m32r_load): Use gdb_bfd_ref.
4900 (m32r_upload_command): Use gdb_bfd_ref.
4901 * jit.c: Include gdb_bfd.h.
4902 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4903 * gdb_bfd.h: New file.
4904 * gdb_bfd.c: New file.
4905 * gcore.c: Include gdb_bfd.h.
4906 (create_gcore_bfd): Use gdb_bfd_ref.
4907 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4908 (gcore_command): Use gdb_bfd_unref.
4909 * exec.c: Include gdb_bfd.h.
4910 (exec_close): Use gdb_bfd_unref.
4911 (exec_close_1): Use gdb_bfd_unref.
4912 (exec_file_attach): Use gdb_bfd_ref.
4913 * elfread.c: Include gdb_bfd.h.
4914 (build_id_verify): Use gdb_bfd_unref.
4915 * dsrec.c: Include gdb_bfd.h.
4916 (load_srec): Use gdb_bfd_ref.
4917 * corelow.c: Include gdb_bfd.h.
4918 (core_close): Use gdb_bfd_unref.
4919 (core_open): Use gdb_bfd_ref.
4920 * bfd-target.c: Include gdb_bfd.h.
4921 (target_bfd_xclose): Use gdb_bfd_unref.
4922 (target_bfd_reopen): Use gdb_bfd_ref.
4923 * Makefile.in (SFILES): Add gdb_bfd.c.
4924 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4925 (COMMON_OBS): Add gdb_bfd.o.
4926
4927 2012-07-18 Keith Seitz <keiths@redhat.com>
4928
4929 * breakpoint.c (find_condition_and_thread): Initialize
4930 TASK and REST.
4931 (create_breakpiont): find_condition_and_thread will now
4932 initialize COND_STRING, THREAD, and REST (and TASK).
4933 (addr_string_to_sals): Likewise.
4934
4935 2012-07-18 Pedro Alves <palves@redhat.com>
4936
4937 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4938 Pull the single step breakpoints out of the target.
4939
4940 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4941
4942 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4943 * stap-probe.c (compile_probe_arg): Likewise.
4944
4945 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4946
4947 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4948 (elf_compile_to_ax): Likewise.
4949 * infrun.c (insert_exception_resume_from_probe): Likewise.
4950 (check_exception_resume): Remove `objfile' variable.
4951 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4952 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4953 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4954 (compare_entries): Rename to...
4955 (compare_probes): ...this. Adjust function to work with
4956 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4957 respectively.
4958 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4959 `VEC (probe_p) *'.
4960 (print_ui_out_info): Adjust argument to be `struct probe *'.
4961 (info_probes_for_ops): Adjust internal computations to use
4962 `VEC (probe_p) *'.
4963 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4964 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4965 gen_info_probes_table_values>: Remove `objfile' argument.
4966 (struct probe) <objfile>: New field.
4967 (find_probe_by_pc): Remove `objfile' argument.
4968 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4969 (stap_get_probe_argument_count): Likewise.
4970 (stap_get_arg): Likewise.
4971 (stap_evaluate_probe_argument): Likewise.
4972 (stap_compile_to_ax): Likewise.
4973 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4974 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4975 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4976 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4977 sym_compile_to_ax>: Likewise.
4978
4979 2012-07-18 Terry Guo <terry.guo@arm.com>
4980
4981 PR 14329
4982 * defs.h (GDB_MI_MSG_WIDTH): New.
4983 * ser_base (ser_base_read_error_fd): New function.
4984 (do_ser_base_readchar): Poll error file descriptor as well as
4985 standard output.
4986 (generic_readchar): Refactor error handling.
4987
4988 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4989
4990 * NEWS: Create a new section for the next release branch.
4991 Rename the section of the current branch, now that it has
4992 been cut.
4993
4994 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4995
4996 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4997 * version.in: Bump version to 7.5.50.20120718-cvs.
4998
4999 2012-07-17 Keith Seitz <keiths@redhat.com>
5000
5001 * linespec.c (linespec_parse_line_offset): Make parameter
5002 const.
5003
5004 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5005
5006 PR 11914
5007 * f-valprint.c (info_common_command): New variable frame_id.
5008 Reinitialize FI form FRAME_ID after each print_variable_and_value.
5009 * printcmd.c (print_variable_and_value): Extend function comment.
5010 Add comment for invalidated FRAME.
5011 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
5012 FI form FRAME_ID after each print_frame_local_vars.
5013 (struct print_variable_and_value_data): Change frame to frame_id.
5014 (do_print_variable_and_value): New variable frame, initialize it from
5015 p->frame_id. Add comment for invalidated FRAME.
5016 (print_frame_local_vars, print_frame_arg_vars): New function comment.
5017 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
5018 for invalidated FRAME.
5019
5020 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
5021 Pedro Alves <palves@redhat.com>
5022
5023 * linux-nat.c (linux_nat_detach): Don't unregister from the event
5024 loop.
5025
5026 2012-07-16 Tom Tromey <tromey@redhat.com>
5027
5028 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
5029
5030 2012-07-15 Doug Evans <dje@google.com>
5031
5032 * dwarf2read.c (stmt_list_hash): New struct.
5033 (type_unit_group): Embed "per_cu" member, remove pointer.
5034 New union member "t", move member "tus" into it, all uses updated.
5035 New member "hash", replaces member "line_offset, all uses updated.
5036 (quick_file_names): Replace member "offset" with "hash", all uses
5037 updated.
5038 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
5039 (hash_file_name_entry, eq_file_name_entry): Call them.
5040 (hash_type_unit_group, eq_type_unit_group): Ditto.
5041 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
5042 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
5043 (dw2_get_file_names): Update.
5044 (create_type_unit_group): Replace "per_cu" arg with "cu".
5045 All callers updated. Fix "quick" (.gdb_index) handling.
5046 (get_type_unit_group): Replace "per_cu" arg with "cu".
5047 All callers updated.
5048 (build_type_unit_groups): Don't reset tu_stats.
5049
5050 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
5051 "tab_cur_size". Change member "tab" to be a htab_t.
5052 (create_filename_seen_cache): Update.
5053 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
5054 (filename_seen): Update.
5055
5056 2012-07-13 Doug Evans <dje@google.com>
5057
5058 * symtab.c (filename_seen): Update comment.
5059
5060 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5061 Doug Evans <dje@google.com>
5062
5063 * buildsym.c (end_symtab_1): Split it to ...
5064 (end_symtab_get_static_block): ... this ...
5065 (end_symtab_from_static_block): ... and this function.
5066 (end_symtab, end_expandable_symtab): Call them.
5067 * buildsym.h (end_symtab_get_static_block)
5068 (end_symtab_from_static_block): New declarations.
5069 * dwarf2read.c (process_full_comp_unit): New variable static_block.
5070 Set its valid CU ranges.
5071
5072 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5073
5074 * dwarf2loc.c (disassemble_dwarf_expression): Handle
5075 DW_OP_GNU_parameter_ref.
5076
5077 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5078
5079 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
5080 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
5081
5082 2012-07-13 Doug Evans <dje@google.com>
5083
5084 * symtab.c (output_source_filename): Delete unnecessary forward decl.
5085 (filename_seen_cache): New struct.
5086 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
5087 (create_filename_seen_cache): New function.
5088 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
5089 (filename_seen): Delete arg "first". New arg "cache". All callers
5090 updated.
5091 (output_source_filename_data): New struct.
5092 (output_source_filename): Delete arg "first". New arg "data".
5093 All callers updated.
5094 (sources_info): Delete local "first". New locals "data", "cleanups".
5095 Rewrite to use filename_seen_cache.
5096 (add_partial_filename_data): Delete member "first". New member
5097 "filename_seen_cache". All uses updated.
5098 (make_source_files_completion_list): Rewrite to use
5099 filename_seen_cache.
5100
5101 2012-07-12 Doug Evans <dje@google.com>
5102
5103 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
5104
5105 2012-07-10 Doug Evans <dje@google.com>
5106
5107 PR gdb/13498
5108 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
5109 all_type_unit_groups, type_unit_groups, tu_stats.
5110 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
5111 All uses updated. Add type_unit_group to union "s".
5112 (type_unit_group): New struct.
5113 (IS_TYPE_UNIT_GROUP): New macro.
5114 (abbrev_table): Delete unused member "section".
5115 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
5116 (dw2_get_cu): Assert not used with type_unit_group.
5117 (dw2_get_primary_cu): New function.
5118 (dw2_build_type_unit_groups_reader): New function.
5119 (dw2_build_type_unit_groups): New function.
5120 (dw2_get_file_names): Assert not called on type units.
5121 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
5122 Redo loop to iterate over type unit groups instead of type units.
5123 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
5124 (read_abbrev_offset): New function.
5125 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
5126 updated.
5127 (create_partial_symtab): New function.
5128 (process_psymtab_comp_unit_reader): Assert not used with type units.
5129 Call create_partial_symtab.
5130 (process_psymtab_type_unit): Delete.
5131 (hash_type_unit_group, eq_type_unit_group): New functions.
5132 (allocate_type_unit_groups_table): New function.
5133 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
5134 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
5135 (create_type_unit_group, get_type_unit_group): New functions.
5136 (tu_abbrev_offset): New struct.
5137 (sort_tu_by_abbrev_offset): New function.
5138 (add_type_unit_group_to_table): New function.
5139 (build_type_unit_groups): New function.
5140 (build_type_psymtabs_reader): New function.
5141 (build_type_psymtab_dependencies): New function.
5142 (build_type_psymtabs): Rewrite.
5143 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
5144 is seen in a type unit.
5145 (process_queue): Move symtab expansion debugging printfs here.
5146 Call process_full_type_unit for type units.
5147 (compute_symtab_includes): Assert not called for type units.
5148 (process_cu_includes): Don't call compute_symtab_includes for
5149 type units.
5150 (process_full_type_unit): New function.
5151 (process_imported_unit_die): Flag an error if called for type units.
5152 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
5153 updated. Assert not called for type units.
5154 (read_file_scope): Call dwarf2_start_symtab.
5155 (setup_type_unit_groups): New function.
5156 (read_type_unit_scope): Rewrite.
5157 (abbrev_table_read_table): Initialize abbrev_table->offset.
5158 (abbrev_table_free_cleanup): New function.
5159 (dwarf2_start_symtab): New function.
5160 (load_full_type_unit): Assert not called for type unit groups.
5161 * buildsym.c (finish_block_internal): New arg "expandable".
5162 All callers updated.
5163 (start_symtab): Move most contents to ...
5164 (restart_symtab): ... here. New function.
5165 (reset_symtab_globals): New function.
5166 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
5167 Call reset_symtab_globals.
5168 (end_symtab, end_expandable_symtab): New functions.
5169 (set_missing_symtab, augment_type_symtab): New functions.
5170 * buildsym.h (end_expandable_symtab): Declare.
5171 (augment_type_symtab, restart_symtab): Declare.
5172 * psympriv.h (struct partial_symtab): New member "anonymous".
5173 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
5174 anonymous psymtabs.
5175 (read_psymtabs_with_filename): Ditto.
5176 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5177 (expand_symtabs_matching_via_partial): Ditto.
5178 (dump_psymtab): Update.
5179 * dictionary.c (dict_add_pending): New function.
5180 * dictionary.h (dict_add_pending): Declare.
5181
5182 2012-07-09 Doug Evans <dje@google.com>
5183
5184 * buildsym.c (start_subfile): Remove unnecessary check for
5185 name == NULL.
5186
5187 * psymtab.c (allocate_psymtab): Use host_address_to_string.
5188
5189 * dwarf2read.c (load_full_type_unit): Simplify.
5190
5191 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5192 to struct signatured_type **. All uses updated.
5193
5194 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5195 All callers updated.
5196
5197 2012-07-09 Tom Tromey <tromey@redhat.com>
5198
5199 * c-exp.y (check_parameter_typelist): New function.
5200 (parameter_typelist): Call it.
5201 * eval.c (make_params): Handle '(void)' case.
5202 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5203 '(void)' case.
5204
5205 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5206
5207 * common/linux-ptrace.c: Include gdb_assert.h.
5208 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5209 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5210 stdint.h.
5211 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5212 functions.
5213 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5214 * linux-nat.c (linux_child_post_attach)
5215 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5216
5217 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5218
5219 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5220 nptl <2.7 bug workaround for core files.
5221
5222 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5223
5224 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5225 clearing.
5226 (save_siginfo): Remove.
5227 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5228 call.
5229 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5230 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5231 * linux-nat.h (struct lwp_info): Remove field siginfo.
5232
5233 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5234
5235 Code cleanup for the next patch.
5236 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5237 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5238 call for it.
5239 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5240 (ia64_linux_stopped_data_address):
5241 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5242 the return value.
5243 * linux-nat.h (linux_nat_get_siginfo): Likewise.
5244 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5245 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5246 call for it.
5247
5248 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5249
5250 PR 14321
5251 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5252 Increase buffer sizes to 2x we need, not just 2x of the previous size.
5253
5254 2012-07-06 Tom Tromey <tromey@redhat.com>
5255
5256 * c-exp.y (DOTDOTDOT): New token.
5257 (func_mod, exp): Use parameter_typelist.
5258 (parameter_typelist): New production.
5259 (tokentab3): Add "..." token.
5260 * eval.c (make_params): Handle varargs.
5261 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5262 varargs.
5263
5264 2012-07-06 Tom Tromey <tromey@redhat.com>
5265
5266 PR exp/9608:
5267 * c-exp.y (%union) <tvec>: Change type.
5268 (func_mod): Now uses <tvec> type.
5269 (exp): Update for tvec change.
5270 (direct_abs_decl): Push the typelist.
5271 (func_mod): Return a typelist.
5272 (nonempty_typelist): Update for tvec change.
5273 * gdbtypes.c (lookup_function_type_with_arguments): New function.
5274 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5275 * parse.c (pop_type_list): New function.
5276 (push_typelist): New function.
5277 (follow_types): Handle tp_function_with_arguments.
5278 * parser-defs.h (type_ptr): New typedef. Define a VEC.
5279 (enum type_pieces) <tp_function_with_arguments>: New constant.
5280 (union type_stack_elt) <typelist_val>: New field.
5281 (push_typelist): Declare.
5282
5283 2012-07-06 Tom Tromey <tromey@redhat.com>
5284
5285 * c-exp.y (%union) <type_stack>: New field.
5286 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5287 (ptr_operator_ts): New production.
5288 (ptype): Update.
5289 * parse.c (type_stack_reserve): New function.
5290 (check_type_stack_depth): Use it.
5291 (pop_type_stack, append_type_stack, push_type_stack)
5292 (get_type_stack, type_stack_cleanup): New functions.
5293 (follow_types): Handle tp_type_stack.
5294 (_initialize_parse): Simplify initialization.
5295 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5296 constant.
5297 (union type_stack_elt) <stack_val>: New field.
5298 (get_type_stack, append_type_stack, push_type_stack)
5299 (type_stack_cleanup): Declare.
5300
5301 2012-07-06 Tom Tromey <tromey@redhat.com>
5302
5303 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5304 Remove.
5305 (struct type_stack): New.
5306 * parse.c (type_stack, type_stack_size, type_stack_depth):
5307 Remove.
5308 (type_stack): New global.
5309 (parse_exp_in_context, check_type_stack_depth)
5310 (insert_into_type_stack, insert_type, push_type, push_type_int)
5311 (insert_type_address_space, pop_type, pop_type_int)
5312 (_initialize_parse): Update.
5313
5314 2012-07-06 Tom Tromey <tromey@redhat.com>
5315
5316 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5317 Remove %type.
5318
5319 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5320
5321 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5322
5323 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5324 Jan Kratochvil <jan.kratochvil@redhat.com>
5325
5326 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5327 alloca with xmalloc/xfree.
5328
5329 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5330
5331 * MAINTAINERS (Write After Approval): Add myself to the list.
5332
5333 2012-07-05 Doug Evans <dje@google.com>
5334
5335 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5336
5337 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5338
5339 * ax-gdb.c (cli/cli-utils.h): New include.
5340 (linespec.h): Ditto.
5341 (agent_eval_command_one): New function.
5342 (agent_command_1): Ditto.
5343 (agent_command): Call function agent_command_1.
5344 (agent_eval_command): Ditto.
5345 (_initialize_ax_gdb): Change help for "maint agent"
5346 and "maint agent-eval".
5347
5348 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5349
5350 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5351 * cli/cli-utils.c (check_for_argument): New function.
5352 * cli/cli-utils.h (check_for_argument): Ditto.
5353
5354 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5355
5356 * NEWS: Mention x32 ABI support.
5357
5358 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5359
5360 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5361 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5362
5363 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5364 and pc_regnum_from_eax to -1. Update SP regnum from
5365 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5366 needed.
5367
5368 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5369 pc_regnum_from_eax.
5370
5371 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5372
5373 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5374 * dwarf2expr.h: Include gdbtypes.h.
5375 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5376 these forward declarations.
5377 (cu_offset, sect_offset): Move these ...
5378 * gdbtypes.h: Remove include dwarf2expr.h.
5379 (cu_offset, sect_offset): ... here.
5380
5381 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5382
5383 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5384 (amd64_linux_sigtramp_code): This.
5385 (amd64_x32_linux_sigtramp_code): New.
5386 (LINUX_SIGTRAMP_LEN): Updated.
5387 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5388
5389 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5390
5391 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5392
5393 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 * config.in: Regenerate.
5396 * configure: Regenerate.
5397 * configure.ac: Remove check for gnu/libc-version.h.
5398 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5399 gnu/libc-version.h.
5400 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5401 variables libc_version, libc_major and libc_minor. Replace sscanf by
5402 inferior_has_bug. Extend the comment.
5403
5404 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5405
5406 * linux-thread-db.c (inferior_has_bug): New function.
5407 (thread_db_find_new_threads_silently): Return boolean as checked by
5408 inferior_has_bug, describe it in the comments.
5409 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5410 earlier. Abort the initialization if it returned non-zero.
5411 (thread_db_new_objfile): Exclude debug files.
5412 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5413 if UNTIL_NO_NEW,
5414
5415 2012-07-02 Doug Evans <dje@google.com>
5416
5417 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5418 related to queue management.
5419
5420 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5421 instead of "debug dwarf2-die" in debugging printfs.
5422 (create_debug_info_hash_table_reader): Ditto.
5423 (create_debug_info_hash_table): Ditto.
5424 (init_dwo_file): Ditto.
5425 (init_cutu_and_read_dies): Add debugging printf.
5426 (init_cutu_and_read_dies_no_follow): Ditto.
5427 (process_psymtab_comp_unit_reader): Ditto.
5428
5429 2012-07-02 Stan Shebs <stan@codesourcery.com>
5430
5431 Add target-side support for dynamic printf.
5432 * NEWS: Mention the additional style.
5433 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5434 (struct bp_location): New field cmd_bytecode.
5435 * breakpoint.c: Include format.h.
5436 (disconnected_dprintf): New global.
5437 (parse_cmd_to_aexpr): New function.
5438 (build_target_command_list): New function.
5439 (insert_bp_location): Call it.
5440 (remove_breakpoints_pid): Skip dprintf breakpoints.
5441 (print_one_breakpoint_location): Ditto.
5442 (dprintf_style_agent): New global.
5443 (dprintf_style_enums): Add dprintf_style_agent.
5444 (update_dprintf_command_list): Add agent case.
5445 (agent_printf_command): New function.
5446 (_initialize_breakpoint): Add new commands.
5447 * common/ax.def (printf): New bytecode.
5448 * ax.h (ax_string): Declare.
5449 * ax-gdb.h (gen_printf): Declare.
5450 * ax-gdb.c: Include cli-utils.h, format.h.
5451 (gen_printf): New function.
5452 (maint_agent_print_command): New function.
5453 (_initialize_ax_gdb): Add maint agent-printf command.
5454 * ax-general.c (ax_string): New function.
5455 (ax_print): Add printf disassembly.
5456 * Makefile.in (SFILES): Add format.c
5457 (COMMON_OBS): Add format.o.
5458 * common/format.h: New file.
5459 * common/format.c: New file.
5460 * printcmd.c: Include format.h.
5461 (ui_printf): Call parse_format_string.
5462 * remote.c (remote_state): New field breakpoint_commands.
5463 (PACKET_BreakpointCommands): New enum.
5464 (remote_breakpoint_commands_feature): New function.
5465 (remote_protocol_features): Add new BreakpointCommands entry.
5466 (remote_can_run_breakpoint_commands): New function.
5467 (remote_add_target_side_commands): New function.
5468 (remote_insert_breakpoint): Call it.
5469 (remote_insert_hw_breakpoint): Ditto.
5470 (_initialize_remote): Add new packet configuration for
5471 target-side breakpoint commands.
5472 * target.h (struct target_ops): New field
5473 to_can_run_breakpoint_commands.
5474 (target_can_run_breakpoint_commands): New macro.
5475 * target.c (update_current_target): Handle
5476 to_can_run_breakpoint_commands.
5477
5478 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5479
5480 Execute -ix and -iex only after system and user gdbinit files.
5481 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5482 processing down after gdbinit files.
5483
5484 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5485
5486 Add fnmatch-gnu module.
5487 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5488 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5489 * gnulib/aclocal.m4: Regenerate.
5490 * gnulib/config.in: Regenerate.
5491 * gnulib/configure: Regenerate.
5492 * gnulib/import/dummy.c: Remove.
5493 * gnulib/import/Makefile.am: Regenerate.
5494 * gnulib/import/Makefile.in: Likewise.
5495 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5496 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5497 * gnulib/import/alloca.c: New file.
5498 * gnulib/import/alloca.in.h: Likewise.
5499 * gnulib/import/config.charset: Likewise.
5500 * gnulib/import/fnmatch.c: Likewise.
5501 * gnulib/import/fnmatch.in.h: Likewise.
5502 * gnulib/import/fnmatch_loop.c: Likewise.
5503 * gnulib/import/localcharset.c: Likewise.
5504 * gnulib/import/localcharset.h: Likewise.
5505 * gnulib/import/m4/alloca.m4: Likewise.
5506 * gnulib/import/m4/codeset.m4: Likewise.
5507 * gnulib/import/m4/configmake.m4: Likewise.
5508 * gnulib/import/m4/fcntl-o.m4: Likewise.
5509 * gnulib/import/m4/fnmatch.m4: Likewise.
5510 * gnulib/import/m4/glibc21.m4: Likewise.
5511 * gnulib/import/m4/localcharset.m4: Likewise.
5512 * gnulib/import/m4/locale-fr.m4: Likewise.
5513 * gnulib/import/m4/locale-ja.m4: Likewise.
5514 * gnulib/import/m4/locale-zh.m4: Likewise.
5515 * gnulib/import/m4/mbrtowc.m4: Likewise.
5516 * gnulib/import/m4/mbsinit.m4: Likewise.
5517 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5518 * gnulib/import/m4/mbstate_t.m4: Likewise.
5519 * gnulib/import/m4/stdbool.m4: Likewise.
5520 * gnulib/import/m4/wchar_h.m4: Likewise.
5521 * gnulib/import/m4/wctype_h.m4: Likewise.
5522 * gnulib/import/m4/wint_t.m4: Likewise.
5523 * gnulib/import/mbrtowc.c: Likewise.
5524 * gnulib/import/mbsinit.c: Likewise.
5525 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5526 * gnulib/import/mbsrtowcs-state.c: Likewise.
5527 * gnulib/import/mbsrtowcs.c: Likewise.
5528 * gnulib/import/ref-add.sin: Likewise.
5529 * gnulib/import/ref-del.sin: Likewise.
5530 * gnulib/import/stdbool.in.h: Likewise.
5531 * gnulib/import/streq.h: Likewise.
5532 * gnulib/import/strnlen1.c: Likewise.
5533 * gnulib/import/strnlen1.h: Likewise.
5534 * gnulib/import/verify.h: Likewise.
5535 * gnulib/import/wchar.in.h: Likewise.
5536 * gnulib/import/wctype.in.h: Likewise.
5537
5538 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5539
5540 Support shell wildcards for 'set auto-load safe-path'.
5541 * auto-load.c: Include fnmatch.h.
5542 (filename_is_in_dir): Rename to ...
5543 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5544 it. Update function comment. Rename dir_len to pattern_len. New
5545 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5546 messages. Use gdb_filename_fnmatch.
5547 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5548 pattern.
5549 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5550 * defs.h (gdb_filename_fnmatch): New declaration.
5551 * utils.c: Include fnmatch.h.
5552 (gdb_filename_fnmatch): New function.
5553
5554 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5555
5556 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5557 `-probe' and `-probe-stap' options.
5558
5559 2012-07-01 Yao Qi <yao@codesourcery.com>
5560
5561 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5562 always_inserted_off, and always_inserted_enums.
5563 Change always_inserted_mode's type to 'enum auto_boolean'.
5564 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5565 callers.
5566 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5567 of add_setshow_enum_cmd.
5568 * infrun.c: Remove can_use_displaced_stepping_auto,
5569 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5570 can_use_displaced_stepping_enum.
5571 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5572 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5573 callers.
5574 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5575 add_setshow_enum_cmd.
5576
5577 2012-06-30 Doug Evans <dje@google.com>
5578
5579 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5580 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5581 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5582
5583 2012-06-29 Doug Evans <dje@google.com>
5584
5585 * linespec.c: #include "stack.h".
5586 (decode_line_with_current_source): Moved here from symtab.c and
5587 renamed from decode_line_spec. All callers updated.
5588 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5589 renamed from decode_line_spec_1. All callers updated.
5590 * linespec.h (decode_line_with_current_source): Move declaration here
5591 from symtab.h and renamed from decode_line_spec.
5592 (decode_line_with_last_displayed): Move declaration here from symtab.h
5593 and renamed from decode_line_spec_1.
5594 * macrocmd.c: #include "linespec.h".
5595 * symtab.c: Remove #include "linespec.h".
5596
5597 2012-06-28 Doug Evans <dje@google.com>
5598
5599 * dwarf2read.c (get_cu_length): New function.
5600 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5601 (create_debug_types_hash_table): Ditto.
5602 (init_cutu_and_read_dies): Ditto.
5603 (init_cutu_and_read_dies_no_follow): Ditto.
5604
5605 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5606
5607 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5608 (struct abbrev_table): Define.
5609 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5610 abbrev_table.
5611 (init_cutu_and_read_dies): Update.
5612 (abbrev_table_alloc_abbrev): New function. Replaces
5613 dwarf_alloc_abbrev. All callers updated.
5614 (abbrev_table_add_abbrev): New function.
5615 (abbrev_table_lookup_abbrev): New function. Replaces
5616 dwarf2_lookup_abbrev. All callers updated.
5617 (abbrev_table_read_table): New function. Contents moved here from
5618 dwarf2_read_abbrevs.
5619 (dwarf2_read_abbrevs): Call it.
5620 (abbrev_table_free): New function.
5621 (dwarf2_free_abbrev_table): Call it.
5622
5623 2012-06-28 Stan Shebs <stan@codesourcery.com>
5624
5625 * osdata.c (info_osdata_command): Filter out "Title" columns
5626 from non-MI uses.
5627 * common/linux-osdata.c (struct osdata_type): Add title field.
5628 (osdata_table): Add titles to each entry.
5629 (linux_command_xfer_osdata): Add a column for title data.
5630
5631 2012-06-28 Stan Shebs <stan@codesourcery.com>
5632
5633 Make logging work for MI.
5634 * NEWS: Mention it.
5635 * interps.h (interp_set_logging_ftype): New typedef.
5636 (struct interp_procs): New field set_logging_proc.
5637 (current_interp_set_logging): Declare.
5638 * interps.c (current_interp_set_logging): New function.
5639 * cli/cli-logging.c: Include interps.h.
5640 (set_logging_redirect): Call current_interp_set_logging.
5641 (pop_output_files): Ditto.
5642 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5643 * mi/mi-console.h (mi_console_set_raw): Declare.
5644 * mi/mi-console.c (mi_console_set_raw): New function.
5645 * mi/mi-interp.c (saved_raw_stdout): New global.
5646 (mi_set_logging): New function.
5647 (_initialize_mi_interp): Add it to interp procs.
5648
5649 2012-06-28 Doug Evans <dje@google.com>
5650
5651 * symtab.c (lookup_symbol_aux_objfile): Use
5652 ALL_OBJFILE_PRIMARY_SYMTABS.
5653
5654 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5655
5656 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5657
5658 * common/buffer.c: Include inttypes.h and stdint.h.
5659 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5660
5661 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5662 Pedro Alves <palves@redhat.com>
5663
5664 * gdbthread.h (ALL_THREADS): New macro.
5665 (thread_list): Declare.
5666 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5667 going, but instead fall through to the stepping handling.
5668 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5669 the passed in signal. Adjust debug output.
5670 (resume_callback): Rename to ...
5671 (linux_nat_resume_callback): ... this. Pass the thread's last
5672 stop signal, if in "pass" state.
5673 (linux_nat_resume): Adjust to rename.
5674 (stop_wait_callback): New assertion. Don't respawn signals;
5675 instead let the LWP remain with SIGNALLED set.
5676 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5677 * remote.c (append_pending_thread_resumptions): New.
5678 (remote_vcont_resume): Call it.
5679 * target.h (target_resume): Extend comment.
5680
5681 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5682
5683 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5684
5685 2012-06-27 Doug Evans <dje@google.com>
5686
5687 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5688 Delete have_addr_base, unused. All uses updated.
5689 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5690 (dwarf2_get_pc_bounds): Add ranges_base.
5691 (dwarf2_record_block_ranges): Ditto.
5692
5693 2012-06-27 Tom Tromey <tromey@redhat.com>
5694
5695 PR macros/7961:
5696 * varobj.c (varobj_create): Update.
5697 (varobj_set_value): Update.
5698 * tracepoint.c (validate_actionline): Update.
5699 (encode_actions_1): Update.
5700 * parse.c (parse_exp_1): Add 'pc' argument.
5701 (parse_exp_in_context): Add 'pc' argument. Change how
5702 expression_context_pc is set.
5703 (parse_expression): Update.
5704 (parse_field_expression): Update.
5705 * expression.h (parse_exp_1): Update.
5706 * eval.c (parse_to_comma_and_eval): Update.
5707 * breakpoint.c (set_breakpoint_condition): Update.
5708 (update_watchpoint): Update.
5709 (init_breakpoint_sal): Update
5710 (find_condition_and_thread): Update.
5711 (watch_command_1): Update.
5712 (update_breakpoint_locations): Update.
5713 * ada-lang.c (ada_read_renaming_var_value): Update.
5714 (create_excep_cond_exprs): Update.
5715
5716 2012-06-27 Doug Evans <dje@google.com>
5717
5718 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5719 type units.
5720
5721 2012-06-26 Doug Evans <dje@google.com>
5722
5723 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5724 prototype.
5725 (error_check_comp_unit_head): New arg abbrev_section. All callers
5726 updated.
5727 (read_and_check_comp_unit_head): Ditto.
5728 (read_and_check_type_unit_head): Ditto.
5729
5730 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5731
5732 New attribute 'last' for gdb.Symtab_and_line.
5733 * NEWS (Python Scripting): Add entry about the new attribute.
5734 * python/py-symtab.c (salpy_get_last): New function which
5735 implements the get method for the 'last' attribute of
5736 gdb.Symtab_and_line.
5737 (sal_object_getset): Add entry for the 'last' attribute.
5738
5739 2012-06-26 Doug Evans <dje@google.com>
5740
5741 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5742 (dwo_sections): Add macinfo, macro.
5743 (dwarf2_locate_dwo_sections): Watch for macro sections.
5744 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5745 All callers updated. Handle DWO files.
5746
5747 * NEWS: Mention new options "set debug dwarf2-read" and
5748 "set debug symtab-create".
5749 * dwarf2read.c (dwarf2_read_debug): New static global.
5750 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5751 (process_queue): Ditto.
5752 (process_full_comp_unit): Ditto.
5753 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5754 * elfread.c (elf_symfile_read): Add debugging printf.
5755 * minsyms.c (install_minimal_symbols): Ditto.
5756 * psymtab.c (allocate_psymtab): Ditto.
5757 * symfile.c (allocate_symtab): Ditto.
5758 * symtab.c (symtab_create_debug): New global.
5759 (_initialize_symtab): Add new option "set debug symtab-create".
5760 * symtab.h (symtab_create_debug): Declare.
5761
5762 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5763 (lookup_dwo_type_unit): Ditto.
5764
5765 2012-06-26 Roland McGrath <roland@hack.frob.com>
5766 H.J. Lu <hongjiu.lu@intel.com>
5767
5768 * amd64-linux-nat.c: Include <sys/user.h>.
5769 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5770 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5771 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5772
5773 * configure.ac: Check if the fs_base and gs_base members of
5774 `struct user_regs_struct' exist.
5775 * config.in: Regenerated.
5776 * configure: Likewise.
5777
5778 2012-06-25 Michael Eager <eager@eagercon.com>
5779
5780 PR python/14291
5781 * python/python.c (gdbpy_write): Check for interrupted output.
5782
5783 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5784
5785 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5786 register as a stack alignment in ARM mode.
5787
5788 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5789
5790 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5791 * gnulib/config.in: Regenerate.
5792 * gnulib/configure: Likewise.
5793 * gnulib/import/m4/extensions.m4: Update it.
5794 * gnulib/import/m4/gnulib-common.m4: Likewise.
5795 * gnulib/import/m4/memmem.m4: Likewise.
5796 * gnulib/import/m4/mmap-anon.m4: Likewise.
5797 * gnulib/import/m4/multiarch.m4: Likewise.
5798 * gnulib/import/stdint.in.h: Likewise.
5799
5800 2012-06-24 Yao Qi <yao@codesourcery.com>
5801
5802 * corefile.c (write_memory_with_notification): New.
5803 * gdbcore.h: Declare write_memory_with_notification.
5804 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5805 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5806 * valops.c (value_assign): Likewise.
5807 * python/py-inferior.c (infpy_write_memory): Call
5808 'write_memory_with_notification'.
5809
5810 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5811
5812 * cc-with-index.sh: Use also -ex "set auto-load no".
5813
5814 2012-06-23 Doug Evans <dje@google.com>
5815
5816 PR 14125
5817 * NEWS: Document additions to .gdb_index.
5818 * dwarf2read.c: #include "gdb/gdb-index.h".
5819 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5820 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5821 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5822 (dwarf2_read_index): Recognize version 7.
5823 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5824 block_kind, domain): All callers updated.
5825 (dw2_find_symbol_file): Handle new index CU values.
5826 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5827 (add_index_entry): New args is_static, kind. All callers updated.
5828 (offset_type_compare, uniquify_cu_indices): New functions
5829 (symbol_kind): New function.
5830 (write_psymtabs_to_index): Remove duplicate CU values.
5831 (write_psymtabs_to_index): Write .gdb_index version 7.
5832
5833 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5834
5835 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5836 * configure: Regenerate.
5837
5838 2012-06-20 Yao Qi <yao@codesourcery.com>
5839
5840 * python/py-inferior.c: Update comments of infpy_read_memory
5841 and infpy_write_memory.
5842
5843 2012-06-19 Tom Tromey <tromey@redhat.com>
5844
5845 PR exp/9514:
5846 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5847 (push_type_address_space): Remove.
5848 * parse.c (insert_into_type_stack): New function.
5849 (insert_type): Likewise.
5850 (insert_type_address_space): Rename from push_type_address_space.
5851 Insert tp_space_identifier.
5852 * c-exp.y (ptr_operator): New production.
5853 (abs_decl): Use ptr_operator.
5854 (space_identifier): Call insert_type_address_space.
5855 (ptype): Don't use const_or_volatile_or_space_identifier.
5856 (const_or_volatile_noopt): Call insert_type.
5857 (conversion_type_id, conversion_declarator): New productions.
5858 (operator): Use conversion_type_id.
5859
5860 2012-06-18 Doug Evans <dje@google.com>
5861
5862 * symtab.h (minimal_symbol): New member created_by_gdb.
5863 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5864 created by gdb.
5865 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5866 (search_symbols): Call it instead of lookup_symbol.
5867 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5868
5869 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5870 Adjust address for DW_OP_GNU_addr_index.
5871 * dwarf2expr.h (dwarf_expr_context): Update comment.
5872 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5873 all callers updated. Handle TLS vars described with
5874 DW_OP_GNU_const_index.
5875 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5876 and DW_OP_GNU_const_index.
5877 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5878
5879 * block.c (find_block_in_blockvector): Make explicit the fact that we
5880 ignore GLOBAL_BLOCK.
5881
5882 2012-06-18 Tom Tromey <tromey@redhat.com>
5883
5884 * c-exp.y (operator): Remove trailing space after "delete" and
5885 "delete[]".
5886
5887 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5888 Jan Kratochvil <jan.kratochvil@redhat.com>
5889
5890 Switch i386 and derived targets to ON_STACK.
5891 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5892 (amd64_dicos_init_abi): Remove its installment.
5893 * dicos-tdep.c (dicos_init_abi): Remove the
5894 set_gdbarch_call_dummy_location call. Update the comment here.
5895 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5896 (i386_dicos_init_abi): Remove its installment.
5897 * i386-tdep.c (i386_push_dummy_code): New function.
5898 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5899 i386_push_dummy_code.
5900
5901 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5902
5903 Remove stale dummy frames.
5904 * breakpoint.c: Include dummy-frame.h.
5905 (longjmp_breakpoint_ops): New variable.
5906 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5907 bp_longjmp_call_dummy.
5908 (bpstat_what, bptype_string, print_one_breakpoint_location)
5909 (init_bp_location): Support bp_longjmp_call_dummy.
5910 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5911 (set_longjmp_breakpoint_for_call_dummy)
5912 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5913 functions.
5914 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5915 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5916 FIXME comment and extend the other comment for bp_call_dummy.
5917 (set_longjmp_breakpoint_for_call_dummy)
5918 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5919 * dummy-frame.c: Include gdbthread.h.
5920 (pop_dummy_frame_bpt): New function.
5921 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5922 (dummy_frame_discard): New function.
5923 (cleanup_dummy_frames): Update the comment about longjmps.
5924 * dummy-frame.h (dummy_frame_discard): New declaration.
5925 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5926 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5927 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5928 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5929 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5930 keep_going if IS_LONGJMP and there is no other reason to stop.
5931
5932 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5933
5934 * remote-sim.c (sim_command_completer): Initialize
5935 variable 'result'.
5936
5937 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5938
5939 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5940 * dwarf2loc.c (call_site_parameter_matches): Support
5941 CALL_SITE_PARAMETER_PARAM_OFFSET.
5942 (needs_dwarf_reg_entry_value): Push stub value.
5943 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5944 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5945 * gdbtypes.h (enum call_site_parameter_kind): New item
5946 CALL_SITE_PARAMETER_PARAM_OFFSET.
5947 (struct call_site.parameter.u): New field param_offset.
5948
5949 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5950
5951 Code cleanup: Generalize call_site.parameter key.
5952 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5953 variable dwarf_reg. New variable kind_u. Update parameters to
5954 push_dwarf_reg_entry_value.
5955 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5956 * dwarf2expr.h (enum call_site_parameter_kind)
5957 (union call_site_parameter_u): Forward declarations.
5958 (struct dwarf_expr_context_funcs): Update parameters and their
5959 description for push_dwarf_reg_entry_value.
5960 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5961 * dwarf2loc.c (call_site_parameter_matches): New function.
5962 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5963 description. Use call_site_parameter_matches.
5964 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5965 Update parameters and their description.
5966 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5967 New variable kind_u. Adjust the caller for updated parameters.
5968 (needs_dwarf_reg_entry_value): Update parameters.
5969 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5970 instead of attr. Update for the changed fields of struct
5971 call_site_parameter.
5972 * gdbtypes.h: Include dwarf2expr.h.
5973 (enum call_site_parameter_kind): New.
5974 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5975 fb_offset into new union u.
5976
5977 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5978
5979 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5980 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5981 for x32.
5982
5983 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5984
5985 * amd64-linux-nat.c (compat_x32_clock_t): New.
5986 (compat_x32_siginfo_t): Likewise.
5987 (compat_x32_siginfo_from_siginfo): Likewise.
5988 (siginfo_from_compat_x32_siginfo): Likewise.
5989 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5990 and siginfo_from_compat_x32_siginfo for x32.
5991
5992 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5993
5994 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5995
5996 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5997
5998 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5999 instead of gdbarch_ptr_bit.
6000 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
6001 (amd64_supply_native_gregset): Likewise.
6002 (amd64_collect_native_gregset): Likewise.
6003 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
6004 (amd64_supply_xsave): Likewise.
6005 (amd64_collect_fxsave): Likewise.
6006 (amd64_collect_xsave): Likewise.
6007
6008 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
6009
6010 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
6011 (amd64_linux_read_description): Check DS segment register for
6012 x32 process.
6013
6014 2012-06-15 Tom Tromey <tromey@redhat.com>
6015
6016 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
6017 init_cutu_and_read_dies.
6018
6019 2012-06-15 Iain Sandoe <iain@codesourcery.com>
6020
6021 * MAINTAINERS (Write After Approval): Add myself to the list.
6022
6023 2012-06-15 Tom Tromey <tromey@redhat.com>
6024
6025 * valops.c (value_find_oload_method_list): Now static.
6026 * value.h (value_find_oload_method_list): Don't declare.
6027
6028 2012-06-15 Tom Tromey <tromey@redhat.com>
6029
6030 * valops.c (find_overload_match): Use value_ind.
6031
6032 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
6033
6034 * infrun.c (handle_inferior_event): Correct indentation.
6035
6036 2012-06-14 Doug Evans <dje@google.com>
6037
6038 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
6039 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
6040 All uses updated.
6041 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
6042 updated. Handle DEBUG_LOC_START_LENGTH.
6043 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
6044 (loclist_describe_location): Ditto.
6045
6046 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
6047
6048 PR backtrace/13866
6049 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
6050 after hiding inline functions.
6051
6052 2012-06-13 Joel Brobecker <brobecker@adacore.com>
6053
6054 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
6055 _initialize_inf_ttrace.
6056
6057 2012-06-13 Joel Brobecker <brobecker@adacore.com>
6058
6059 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
6060 _initialize_hppa_hpux_nat.
6061
6062 2012-06-13 Joel Brobecker <brobecker@adacore.com>
6063
6064 * remote-sim.c (sim_command_completer): Change type of return
6065 value to "VEC (char_ptr) *". Adjust implementation accordingly.
6066
6067 2012-06-13 Mark Kettenis <kettenis@gnu.org>
6068 Jan Kratochvil <jan.kratochvil@redhat.com>
6069
6070 PR tdep/14222
6071 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
6072 stack on a 16-byte boundary.
6073
6074 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
6075
6076 * jit.c (finalize_symtab): Set function's return type to 'void' by
6077 default.
6078
6079 2012-06-13 Mark Kettenis <kettenis@gnu.org>
6080 H.J. Lu <hongjiu.lu@intel.com>
6081
6082 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
6083 Move bits common to both the classic LP64 and the new x32 ILP32
6084 ABI here.
6085 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
6086 (amd64_x32_linux_init_abi): New function.
6087 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
6088 subtype.
6089
6090 * i386-tdep.h (i386_pseudo_register_name): New prototype.
6091 * i386-tdep.c (i386_pseudo_register_name): Make public.
6092 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
6093 * amd64-tdep.c (amd64_dword_names): Add "eip".
6094 (amd64_x32_pseudo_register_type): New function
6095 (amd64_x32_init_abi): New function.
6096
6097 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6098
6099 PR build/14003
6100 * inferior.h (struct inferior_suspend_state): Comment out.
6101 (struct inferior): Comment out the field suspend.
6102 * infrun.c (struct infcall_suspend_state): Comment out the field
6103 inferior_suspend.
6104 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
6105 out its assignment.
6106
6107 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6108
6109 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
6110 * c-exp.y (classify_inner_name): Remove caller assumptions in the
6111 function comment. Return ERROR for unresolved cases. Implement
6112 returning proper NAME.
6113 (yylex): Accept also NAME from classify_inner_name.
6114 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
6115 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
6116 LOC_TYPEDEF type.
6117 * cp-support.h (cp_lookup_nested_type): Update its declaration.
6118
6119 2012-06-13 Tom Tromey <tromey@redhat.com>
6120
6121 * breakpoint.c (condition_completer): New function.
6122 (_initialize_breakpoint): Use it.
6123 * value.c (complete_internalvar): New function.
6124 * value.h (complete_internalvar): Declare.
6125
6126 2012-06-13 Tom Tromey <tromey@redhat.com>
6127
6128 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
6129 * breakpoint.c (catch_syscall_completer): Return a VEC.
6130 * cli/cli-cmds.c (complete_command): Update.
6131 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
6132 (complete_on_enum): Likewise.
6133 * command.h: Include gdb_vecs.h.
6134 (completer_ftype): Change return type.
6135 (complete_on_cmdlist, complete_on_enum): Likewise.
6136 * completer.c (noop_completer, filename_completer)
6137 (location_completer): Return a VEC.
6138 (add_struct_fields): Remove 'nextp' argument. Change 'output'
6139 to a VEC.
6140 (expression_completer, complete_line_internal, complete_line)
6141 (command_completer): Return a VEC.
6142 (gdb_completion_word_break_characters, line_completion_function):
6143 Update.
6144 * completer.h: Include gdb_vecs.h.
6145 (complete_line, noop_completer, filename_completer)
6146 (expression_completer, location_completer, command_completer):
6147 Update.
6148 * f-lang.c (f_word_break_characters): Return a VEC.
6149 * interps.c (interpreter_completer): Return a VEC.
6150 * language.h (struct language_defn)
6151 <la_make_symbol_completion_list>: Return a VEC.
6152 * python/py-cmd.c (cmdpy_completer): Return a VEC.
6153 * symtab.c (free_completion_list): Take a VEC.
6154 (return_val_size, return_val_index): Remove.
6155 (return_val): Now a VEC.
6156 (completion_list_add_name): Update.
6157 (default_make_symbol_completion_list_break_on)
6158 (default_make_symbol_completion_list, make_symbol_completion_list)
6159 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
6160 Return a VEC.
6161 (add_filename_to_list): Update.
6162 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
6163 <list>: Now a VEC.
6164 (maybe_add_partial_symtab_filename): Update.
6165 (make_source_files_completion_list): Return a VEC.
6166 * symtab.h (default_make_symbol_completion_list_break_on)
6167 (default_make_symbol_completion_list, make_symbol_completion_list)
6168 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
6169 (make_source_files_completion_list): Update.
6170
6171 2012-06-13 Tom Tromey <tromey@redhat.com>
6172
6173 * breakpoint.c (add_catch_command): Use completer_ftype.
6174 * breakpoint.h: Include command.h.
6175 (add_catch_command): Use completer_ftype.
6176 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6177 * cli/cli-decode.h (struct cmd_list_element) <completer>:
6178 Use completer_ftype.
6179 * command.h (completer_ftype): New typedef.
6180 (set_cmd_completer): Use it.
6181 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6182 completer_ftype.
6183
6184 2012-06-13 Pedro Alves <palves@redhat.com>
6185
6186 Partial revert of previous change.
6187
6188 * serial.c (scb_base): New global.
6189 (serial_for_fd): New.
6190 (serial_open, serial_fdopen_ops): Link new serial in open serials
6191 chain.
6192 (do_serial_close): Unlink serial from the open serials chain.
6193
6194 2012-06-12 Pedro Alves <palves@redhat.com>
6195
6196 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6197 threads here.
6198 (prepare_for_detach): No longer context switch here in non-stop
6199 mode.
6200 (fetch_inferior_event): Ditto.
6201 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6202 to the event thread before removing breakpoints. Switch to the
6203 event thread before inserting breakpoints and resuming.
6204 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6205 event thread before resuming.
6206 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6207 Switch to the event thread before removing breakpoints.
6208
6209 2012-06-12 Eli Zaretskii <eliz@gnu.org>
6210
6211 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6212 special characters correctly for the Windows shells. See
6213 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6214 report.
6215 [!__MINGW32__]: Remove extra double quote character from special
6216 characters.
6217
6218 2012-06-11 Stan Shebs <stan@codesourcery.com>
6219
6220 * ui-out.h: Remove #if 0 declarations.
6221 * ui-out.c: Remove #if 0 functions.
6222
6223 2012-06-11 Pedro Alves <palves@redhat.com>
6224
6225 * ser-base.c (run_async_handler_and_reschedule): New.
6226 (fd_event, push_event): Use it.
6227 * serial.c (serial_open, serial_fdopen_ops): Set the initial
6228 reference count to 1.
6229 (do_serial_close): Set the bufp field to NULL. Use serial_unref
6230 instead of xfree.
6231 (serial_is_open, serial_ref, serial_unref): New.
6232 * serial.h (serial_open): Adjust comment.
6233 (serial_is_open): Declare.
6234 (serial_close): Adjust comment.
6235 (serial_ref, serial_unref) Declare.
6236 (struct serial): New field 'refcnt'.
6237
6238 2012-06-11 Pedro Alves <palves@redhat.com>
6239
6240 Remove #if 0'd "connect" command, and unnecessary associated
6241 refcounting and serial reuse bits.
6242
6243 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6244 * serial.c (last_serial_opened): Delete.
6245 (scb_base): Delete.
6246 (serial_open): Adjust.
6247 (serial_for_fd): Delete.
6248 (serial_fdopen_ops, do_serial_close): Adjust.
6249 (serial_fdopen_ops): Adjust.
6250
6251 2012-06-11 Pedro Alves <palves@redhat.com>
6252
6253 * serial.c (do_serial_close): Remove early return when SCB is
6254 null.
6255
6256 2012-06-11 Tom Tromey <tromey@redhat.com>
6257
6258 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6259
6260 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6261
6262 Fix regression by the "ambiguous linespec" series.
6263 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
6264 get_last_displayed_symtab and get_last_displayed_line and depending
6265 on CURSAL.
6266
6267 2012-06-11 Tom Tromey <tromey@redhat.com>
6268
6269 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6270 (dw2_find_symbol_file): Use it.
6271
6272 2012-06-11 Michael Eager <eager@eagercon.com>
6273
6274 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6275 * mips-linux-tdep.h (mips_signals): New
6276
6277 2012-06-11 Tom Tromey <tromey@redhat.com>
6278
6279 * infrun.c (handle_inferior_event)
6280 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6281 breakpoint.
6282 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6283 exception logic in all cases. Update comments.
6284 (insert_longjmp_resume_breakpoint): Set the exception resume
6285 breakpoint.
6286
6287 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
6288
6289 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6290
6291 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
6292
6293 * valarith.c (binop_types_user_defined_p): Fix a typo.
6294
6295 2012-06-08 Yao Qi <yao@codesourcery.com>
6296 Chung-Lin Tang <cltang@codesourcery.com>
6297
6298 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6299 * arch-utils.h: Declare.
6300 * gdbarch.sh: Add return_in_first_hidden_param_p.
6301 * gdbarch.c, gdbarch.h: Regenerated.
6302 * infcall.c (call_function_by_hand): Call
6303 gdbarch_return_in_first_hidden_param_p instead of
6304 language_pass_by_reference.
6305
6306 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6307 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6308 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6309 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6310 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6311 `cplus_return_struct_by_reference'.
6312 (tic6x_return_value): Handle language cplusplus.
6313 (tic6x_return_in_first_hidden_param_p): New.
6314 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6315
6316 2012-06-07 Doug Evans <dje@google.com>
6317
6318 * dwarf2read.c (dwarf2_cu): Add comment.
6319
6320 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6321
6322 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6323 variable.
6324 (mips_eabi_push_dummy_call): Likewise.
6325 (mips_n32n64_push_dummy_call): Likewise.
6326 (mips_o32_push_dummy_call): Likewise.
6327 (mips_o64_push_dummy_call): Likewise.
6328
6329 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6330
6331 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6332
6333 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6334
6335 * mips-tdep.c (mips_pseudo_register_type): Use
6336 mips_float_register_p.
6337
6338 2012-06-06 Pedro Alves <palves@redhat.com>
6339
6340 * infrun.c (handle_inferior_event): Remove calls to
6341 reinit_frame_cache that follow a context_switch call.
6342
6343 2012-06-06 Pedro Alves <palves@redhat.com>
6344
6345 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6346 context_switch and remove stale comment.
6347
6348 2012-06-06 Pedro Alves <palves@redhat.com>
6349
6350 * infrun.c (struct execution_control_state): Remove
6351 `new_thread_event' field.
6352 (handle_inferior_event): Simplify new threads handling; don't
6353 resume the inferior if we find a new thread.
6354
6355 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6356
6357 * NEWS: Document the deprecation of SH's 'regs' command.
6358 * inferior.h (all_registers_info): Add function declaration.
6359 * sh-tdep.c (sh_show_regs): Remove variable.
6360 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6361 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6362 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6363 (sh_show_regs_command): Remove functions.
6364 (sh_gdbarch_init): Don't set sh_show_regs.
6365 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6366 'info all-registers'.
6367 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6368 (sh64_show_regs): Remove functions.
6369 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6370
6371 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6372
6373 * configure.ac: Move development=true below AC_INIT.
6374 * configure: Regenerate.
6375
6376 2012-06-05 Stan Shebs <stan@codesourcery.com>
6377
6378 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6379 gdb_stdout.
6380
6381 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6382
6383 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6384 argument as ssize_t.
6385 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6386 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6387 * target.c (target_read_stack, target_write_memory)
6388 (target_write_raw_memory): Likewise.
6389 * target.h (target_read_stack, target_write_memory)
6390 (target_write_raw_memory): Likewise.
6391
6392 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6393
6394 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6395 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6396 * target.c (target_read_memory): Change LEN to ssize_t.
6397 * target.h (target_read_memory): Change LEN to ssize_t.
6398
6399 2012-06-05 Pedro Alves <palves@redhat.com>
6400
6401 PR backtrace/13866
6402
6403 * breakpoint.c (until_break_command): Only fetch the selected
6404 frame after decode_line_1.
6405
6406 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6407
6408 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6409 event breakpoint at _start, __start or main if a program
6410 interpreter is not found.
6411
6412 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6413
6414 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6415 Add declaration.
6416 * windows-tdep.c: #include "objfiles.h".
6417 (windows_iterate_over_objfiles_in_search_order): New function.
6418 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6419 iterate_over_objfiles_in_search_order gdbarch method to
6420 windows_iterate_over_objfiles_in_search_order.
6421 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6422
6423 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6424
6425 * gdbarch.sh: Add generation of
6426 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6427 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6428 (iterate_over_objfiles_in_search_order): New gdbarch method.
6429 * gdbarch.h, gdbarch.c: Regenerate.
6430 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6431 Add declaration.
6432 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6433 New function.
6434 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6435 out of lookup_symbol_aux_symtabs.
6436 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6437 call to lookup_symbol_aux_objfile.
6438 (struct global_sym_lookup_data): New type.
6439 (lookup_symbol_global_iterator_cb): New function.
6440 (lookup_symbol_global): Search for symbol using
6441 gdbarch_iterate_over_objfiles_in_search_order and
6442 lookup_symbol_global_iterator_cb.
6443 * findvar.c (struct minsym_lookup_data): New type.
6444 (minsym_lookup_iterator_cb): New function.
6445 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6446 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6447 and minsym_lookup_iterator_cb.
6448
6449 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6450
6451 Revert the following patch:
6452 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6453 try locating the symbol in the symbol's own objfile first, before
6454 extending the search to all objfiles.
6455 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6456 out of lookup_symbol_aux_symtabs.
6457 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6458 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6459 Do not search EXCLUDE_OBJFILE.
6460 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6461 (lookup_symbol_global): Search for matches in the block's objfile
6462 first, before searching all other objfiles.
6463
6464 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6465
6466 * breakpoint.c (find_condition_and_thread): Stop parsing
6467 as soon as the first invalid keyword is found.
6468
6469 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6470
6471 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6472
6473 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6474
6475 * config/djgpp/djcheck.sh: Add copyright header.
6476
6477 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6478
6479 * copyright.py (update_files, main): Fix path to update-copyright
6480 script.
6481
6482 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6483
6484 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6485 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6486 for which a reminder to update by hand is printed.
6487
6488 2012-06-04 Doug Evans <dje@google.com>
6489
6490 * buildsym.c (make_blockvector): Add comment.
6491
6492 2012-06-04 Pedro Alves <palves@redhat.com>
6493
6494 * arch-utils.c (default_gdb_signal_from_target): Delete.
6495 * arch-utils.h (default_gdb_signal_from_target): Delete.
6496 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6497 gdbarch_gdb_signal_from_target_p.
6498 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6499 predicate).
6500 * gdbarch.h: Regenerate.
6501 * gdbarch.c: Regenerate.
6502
6503 2012-06-04 Pedro Alves <palves@redhat.com>
6504
6505 * gdbarch.sh (gdb_signal_from_target): Mention that the
6506 implementation of the method must be host independent.
6507 * gdbarch.h: Regenerate.
6508
6509 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6510
6511 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6512 parameters.
6513 (target_read_memory_bfd): New function.
6514 (symbol_file_add_from_memory): Use it.
6515
6516 2012-06-03 Doug Evans <dje@google.com>
6517
6518 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6519 of primary symtab.
6520 (basic_lookup_transparent_type): Ditto.
6521
6522 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6523 (ALL_PRIMARY_SYMTABS): Use it.
6524 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6525 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6526 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6527 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6528 (basic_lookup_transparent_type): Ditto.
6529
6530 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6531
6532 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6533 it to optimize resolution of demangled name.
6534
6535 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6536
6537 * configure.ac (development): Define new variable.
6538 Call AC_CHECK_LIB for mcheck if $development.
6539 (ERROR_ON_WARNING): Enable it by default only if $development.
6540 * config.in: Regenerate.
6541 * configure: Regenerate.
6542
6543 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6544
6545 * target.c (target_read_memory): Make LEN argument as size_t.
6546 * target.h (target_read_memory): Likewise.
6547
6548 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6549
6550 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6551
6552 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6553
6554 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6555 BookE interface for PowerPC server processors if not available
6556 in the Linux Kernel.
6557
6558 2012-05-31 Keith Seitz <keiths@redhat.com>
6559
6560 * linespec.c (decode_objc): Add cleanup to free
6561 INFO.FILE_SYMTABS.
6562 (find_linespec_symbols): Add cleanup to free CLASSES.
6563 * symfile.c (find_separate_debug_file_by_debuglink): Add
6564 cleanup to free DEBUGLINK.
6565 * ui-out.c (clear_header_list): No need to check if
6566 HEADER_NEXT.COLHDR is NULL.
6567 Free HEADER_NEXT.COL_NAME.
6568
6569 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6570
6571 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6572 warning.
6573
6574 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6575
6576 * configure.host (gdb_host_cpu): Handle tilegx*.
6577 (gdb_host): Handle tilegx-*-linux*.
6578 * tilegx-linux-nat.c: New file.
6579 * config/tilegx/linux.mh: New file.
6580
6581 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6582
6583 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6584 tilegx-linux-tdep.o.
6585 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6586 tilegx-linux-tdep.c.
6587 * configure.tgt: Handle tilegx-*-linux*.
6588 * tilegx-tdep.h: New file.
6589 * tilegx-tdep.c: New file.
6590 * tilegx-linux-tdep.c: New file.
6591 * regformats/reg-tilegx.dat: New file.
6592
6593 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6594
6595 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6596 accounting of hw watchpoints on ppc.
6597
6598 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6599
6600 * source.c (openp): Expand tilde in path entries.
6601
6602 2012-05-29 Doug Evans <dje@google.com>
6603
6604 * buildsym.c (block_compar): Fix comment.
6605 (end_symtab): Fix and clarify some comments.
6606
6607 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6608 cleanup_undefined_types.
6609 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6610 All callers updated.
6611
6612 2012-05-29 Tom Tromey <tromey@redhat.com>
6613
6614 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6615 fails.
6616 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6617 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6618 fails.
6619 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6620 fails.
6621
6622 2012-05-29 Tristan Gingold <gingold@adacore.com>
6623
6624 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6625 (struct darwin_info): ... New struct.
6626 (solib_darwin_pspace_data): New variable.
6627 (darwin_pspace_data_cleanup): New function.
6628 (get_darwin_info): Likewise.
6629 (darwin_dyld_version_ok, darwin_load_image_infos)
6630 (darwin_solib_get_all_image_info_addr_at_init)
6631 (darwin_solib_read_all_image_info_addr): Add info argument.
6632 Adjust code.
6633 (darwin_current_sos): Use per pspace structure.
6634 (darwin_solib_create_inferior_hook): Likewise.
6635 (darwin_clear_solib): Likewise.
6636 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6637
6638 2012-05-28 Pedro Alves <palves@redhat.com>
6639
6640 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6641 block that uses them. Clear ecss before handling each event.
6642
6643 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6644
6645 * solib-svr4.c (svr4_current_sos): New comment on
6646 svr4_current_sos_via_xfer_libraries fall back.
6647
6648 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6649
6650 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6651 it as a fallback for TYPE_IS_OPAQUE.
6652 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6653 symbols for lookup_symbol.
6654
6655 2012-05-24 John Steele Scott <toojays@toojays.net>
6656
6657 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6658 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6659 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6660 (check_producer): ... this new function, which also checks for ICC
6661 and caches the result.
6662 (producer_is_icc): New function.
6663 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6664 producer was ICC.
6665
6666 2012-05-24 Pedro Alves <palves@redhat.com>
6667
6668 PR gdb/7205
6669
6670 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6671 (default_gdb_signal_to_target): ... this. Add comment.
6672 (default_gdb_signal_from_host): Rename to ...
6673 (default_gdb_signal_from_target): ... this. Add comment.
6674 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6675 (default_gdb_signal_to_target): ... this.
6676 (default_gdb_signal_from_host): Rename to ...
6677 (default_gdb_signal_from_target): ... this.
6678 * corelow.c (core_open): Adjust to naming change. Replace comment.
6679 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6680 (gdb_signal_from_target): ... this. Adjust to
6681 default_gdb_signal_from_host naming change. Extend comment.
6682 (gdb_signal_to_host): Rename to ...
6683 (gdb_signal_to_target): ... this. Adjust to
6684 default_gdb_signal_to_host naming change.
6685 * gdbarch.h, gdbarch.c: Renegerate.
6686
6687 2012-05-24 Pedro Alves <palves@redhat.com>
6688
6689 PR gdb/7205
6690
6691 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6692
6693 2012-05-24 Pedro Alves <palves@redhat.com>
6694
6695 PR gdb/7205
6696
6697 Replace target_signal with gdb_signal throughout.
6698
6699 2012-05-24 Pedro Alves <palves@redhat.com>
6700
6701 PR tui/14159
6702
6703 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6704 string, instead of reusing the va_list argument.
6705
6706 2012-05-24 Tom Tromey <tromey@redhat.com>
6707
6708 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6709 Remove.
6710
6711 2012-05-23 Doug Evans <dje@google.com>
6712
6713 * symtab.c (search_symbols): Formatting fixes.
6714 (print_symbol_info): Formatting fixes.
6715
6716 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6717 int64_t change to leb128 API.
6718 (read_encoded_value, decode_frame_entry_1): Ditto.
6719 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6720 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6721 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6722 (execute_stack_op): Ditto.
6723 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6724 (safe_read_uleb128, safe_read_sleb128): Ditto.
6725 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6726 (dwarf2_compile_expr_to_ax): Ditto.
6727 (locexpr_describe_location_piece): Ditto.
6728 (disassemble_dwarf_expression): Ditto.
6729 (locexpr_describe_location_1): Ditto.
6730
6731 2012-05-23 Stan Shebs <stan@codesourcery.com>
6732 Kwok Cheung Yeung <kcy@codesourcery.com>
6733
6734 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6735 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6736 (mi-cmd-info.o): New rule.
6737 * osdata.h (info_osdata_command): New declaration.
6738 * osdata.c (info_osdata_command): Change to non-static.
6739 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6740 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6741 * mi/mi-cmd-info.c: New file.
6742
6743 2012-05-23 Doug Evans <dje@google.com>
6744
6745 * symtab.c (search_symbols): Pass NULL for file_matcher to
6746 expand_symtabs_matching if there are no files to match.
6747
6748 * gdbtypes.c (lookup_typename): Simplify.
6749
6750 2012-05-23 Pedro Alves <palves@redhat.com>
6751
6752 * arch-utils.h (default_target_signal_to_host): Delete.
6753 * arch-utils.c (default_target_signal_to_host): Delete.
6754 * gdbarch.sh (target_signal_to_host): Remove.
6755 * gdbarch.h, gdbarch.c: Regenerate.
6756
6757 2012-05-22 Doug Evans <dje@google.com>
6758
6759 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6760 "const gdb_byte *".
6761 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6762 (execute_cfa_program): Update to match API of leb128 functions.
6763 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6764 "const gdb_byte *".
6765 (read_unsigned_leb128, read_signed_leb128): Delete.
6766 (read_initial_length): Change type of buf argument to
6767 "const gdb_byte *".
6768 (read_encoded_value): Update to match API of leb128 functions.
6769 (decode_frame_entry): Change result to "const gdb_byte *", and
6770 similarly for "start" parameter.
6771 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6772 (dwarf2_build_frame_info): Change local frame_ptr to
6773 "const gdb_byte *".
6774 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6775 read_uleb128, read_sleb128. All callers updated.
6776 (safe_skip_leb128): New function.
6777 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6778 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6779 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6780 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6781 read_uleb128, read_sleb128.
6782 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6783 (execute_stack_op): Update to match API of leb128 functions.
6784 * dwarf2expr.h: #include "leb128.h".
6785 (read_uleb128, read_sleb128): Delete.
6786 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6787 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6788 * dwarf2loc.c (debug_loc_kind): New enum.
6789 (decode_debug_loc_addresses): New function.
6790 (decode_debug_loc_dwo_addresses): New function.
6791 (dwarf2_find_location_expression): Rewrite.
6792 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6793 (locexpr_describe_location_piece): Ditto.
6794 (disassemble_dwarf_expression): Ditto.
6795 (locexpr_describe_location_1): Ditto.
6796 (loclist_describe_location): Rewrite.
6797 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6798 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6799 (dwarf2_section_buffer_overflow_complaint): Renamed from
6800 dwarf2_macros_too_long_complaint. All callers updated.
6801 (skip_leb128): Delete.
6802 (init_cu_die_reader): Initialize reader->buffer_end.
6803 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6804 (skip_form_bytes): New arg buffer_end. All callers updated.
6805 Replace call to skip_leb128 with gdb_skip_leb128.
6806 (skip_unknown_opcode): New arg mac_end. All callers updated.
6807 (fill_in_loclist_baton): Initialize baton->from_dwo.
6808
6809 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6810
6811 * mips-linux-nat.c (mips_linux_read_description): Use a more
6812 verbose error message.
6813
6814 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6815
6816 * NEWS: Add MIPS/Linux DSP support.
6817 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6818 (SIGCONTEXT_DSPCTL): New macro.
6819 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6820 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6821 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6822 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6823 (N64_SIGCONTEXT_HI3): Likewise.
6824 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6825 (N64_SIGCONTEXT_LO3): Likewise.
6826 (N64_SIGCONTEXT_DSPCTL): Likewise.
6827 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6828 (mips_linux_o32_sigframe_init): Handle DSP registers.
6829 (mips_linux_n32n64_sigframe_init): Likewise.
6830
6831 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6832
6833 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6834 call to abort.
6835
6836 2012-05-22 Pedro Alves <palves@redhat.com>
6837
6838 * target.h (store_waitstatus): Move declaration ...
6839 * inf-child.h (store_waitstatus): ... here.
6840 * target.c: Move inclusion of gdb_wait.h, and ...
6841 (store_waitstatus): ... this ...
6842 * inf-child.c: ... here.
6843 * linux-nat.c: Include inf-child.h.
6844 * rs6000-nat.c: Include inf-child.h.
6845 * spu-linux-nat.c: Include inf-child.h.
6846
6847 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6848
6849 * tracepoint.c (start_tracing): Add missing i18n markup.
6850 (stop_tracing, set_trace_user): Ditto.
6851 (set_trace_notes, set_trace_stop_notes): Ditto.
6852
6853 2012-05-21 Tom Tromey <tromey@redhat.com>
6854
6855 PR c++/7173:
6856 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6857 types.
6858 * value.h (value_cast_pointers): Update.
6859 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6860 (value_cast): Update.
6861 (update_search_result): New function.
6862 (do_search_struct_field): New, from search_struct_field. Check
6863 for ambiguous results.
6864 (search_struct_field): Rewrite.
6865 * infcall.c (value_arg_coerce): Update.
6866 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6867 value_cast_pointers.
6868 * ada-lang.c (ada_convert_actual): Update.
6869
6870 2012-05-21 Tom Tromey <tromey@redhat.com>
6871
6872 * macroexp.c (macro_stringify): Terminate the string.
6873
6874 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6875
6876 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6877 Describe it.
6878 * auto-load.c (auto_load_expand_dir_vars): New function.
6879 (auto_load_safe_path_vec_update): Use it, remove the
6880 substitute_path_component call thanks to it.
6881 (auto_load_objfile_script): Remove the debug_file_directory processing.
6882 Use auto_load_expand_dir_vars, remove the substitute_path_component
6883 call thanks to it.
6884 * configure: Regenerate.
6885 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6886 path. Escape $ also for $debugdir.
6887 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6888 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6889
6890 2012-05-20 Doug Evans <dje@google.com>
6891
6892 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6893 before use. Check for symtab->includes == NULL before scanning it.
6894
6895 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6896
6897 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6898
6899 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6900
6901 * NEWS: Add microMIPS support and "set mips compression",
6902 "show mips compression" commands.
6903 * mips-tdep.h (mips_isa): New enum.
6904 (gdbarch_tdep): Add mips_isa.
6905 (mips_pc_is_mips16): Update prototype.
6906 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6907 * mips-tdep.c (mips_compression_mips16): New variable.
6908 (mips_compression_micromips): Likewise.
6909 (mips_compression_strings): Likewise.
6910 (mips_compression_string): Likewise.
6911 (is_mips16_isa, is_micromips_isa): New functions.
6912 (is_mips16_addr): Rename to...
6913 (is_compact_addr): ... this.
6914 (unmake_mips16_addr): Likewise to...
6915 (unmake_compact_addr): ... this.
6916 (make_mips16_addr): Likewise to...
6917 (make_compact_addr): ... this.
6918 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6919 functions.
6920 (mips_elf_make_msymbol_special): Handle microMIPS code.
6921 (msymbol_is_special): Rename to...
6922 (msymbol_is_mips16): ... this.
6923 (mips_make_symbol_special, mips_pc_is_mips16): Update
6924 accordingly.
6925 (msymbol_is_mips, msymbol_is_micromips): New functions.
6926 (mips16_to_32_reg): Rename to...
6927 (mips_reg3_to_reg): ... this.
6928 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6929 (mips_pc_isa): Likewise.
6930 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6931 code.
6932 (mips_fetch_instruction): Pass return status instead of printing
6933 an error message if requested. Handle microMIPS code. Bail out
6934 on an invalid ISA.
6935 (micromips_op): New macro.
6936 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6937 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6938 (b6s4_op, b7s3_reg): Likewise.
6939 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6940 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6941 (mips_insn_size): New function.
6942 (mips32_next_pc): Update mips_fetch_instruction call.
6943 (micromips_relative_offset7): New function.
6944 (micromips_relative_offset10): Likewise.
6945 (micromips_relative_offset16): Likewise.
6946 (micromips_pc_insn_size): Likewise.
6947 (micromips_bc1_pc): Likewise.
6948 (micromips_next_pc): Likewise.
6949 (unpack_mips16): Update mips_fetch_instruction call.
6950 (extended_mips16_next_pc): Update according to change to
6951 mips16_to_32_reg.
6952 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6953 code.
6954 (mips16_scan_prologue): Update mips_fetch_instruction call.
6955 Update according to change to mips16_to_32_reg.
6956 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6957 (mips_insn16_frame_base_sniffer): Likewise.
6958 (micromips_decode_imm9): New function.
6959 (micromips_scan_prologue): Likewise.
6960 (mips_micro_frame_cache): Likewise.
6961 (mips_micro_frame_this_id): Likewise.
6962 (mips_micro_frame_prev_register): Likewise.
6963 (mips_micro_frame_sniffer): Likewise.
6964 (mips_micro_frame_unwind): New variable.
6965 (mips_micro_frame_base_address): New function.
6966 (mips_micro_frame_base): New variable.
6967 (mips_micro_frame_base_sniffer): New function.
6968 (mips32_scan_prologue): Update mips_fetch_instruction call.
6969 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6970 rather than for MIPS16.
6971 (mips_insn32_frame_base_sniffer): Likewise.
6972 (mips_addr_bits_remove): Handle microMIPS code.
6973 (deal_with_atomic_sequence): Rename to...
6974 (mips_deal_with_atomic_sequence): ... this. Update the type
6975 of the variable used to hold an instruction. Remove the ISA bit
6976 check. Update mips_fetch_instruction call.
6977 (micromips_deal_with_atomic_sequence): New function.
6978 (deal_with_atomic_sequence): Likewise.
6979 (mips_about_to_return): Handle microMIPS code. Update
6980 mips_fetch_instruction call.
6981 (heuristic_proc_start): Check for the standard MIPS ISA rather
6982 than for MIPS16. Update mips_pc_is_mips16 and
6983 mips_fetch_instruction calls. Handle microMIPS code.
6984 (mips_push_dummy_code): Handle microMIPS code.
6985 (mips_eabi_push_dummy_call): Likewise.
6986 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6987 (mips_o64_push_dummy_call): Handle microMIPS code.
6988 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6989 (is_delayed): Remove function.
6990 (mips_single_step_through_delay): Replace the call to is_delayed
6991 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6992 Handle microMIPS code.
6993 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6994 microMIPS code.
6995 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6996 call.
6997 (micromips_in_function_epilogue_p): New function.
6998 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6999 call.
7000 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
7001 Handle microMIPS.
7002 (gdb_print_insn_mips): Likewise.
7003 (mips_breakpoint_from_pc): Likewise.
7004 (mips_remote_breakpoint_from_pc): New function.
7005 (mips32_instruction_has_delay_slot): Simplify making use of the
7006 updated mips_fetch_instruction interface.
7007 (micromips_instruction_has_delay_slot): New function.
7008 (mips16_instruction_has_delay_slot): Simplify making use of the
7009 updated mips_fetch_instruction interface.
7010 (mips_adjust_breakpoint_address): Check for the standard MIPS
7011 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
7012 calls. Handle microMIPS code.
7013 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
7014 (mips_skip_trampoline_code): Handle microMIPS code.
7015 (global_mips_compression): New function.
7016 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
7017 file flags. Register the microMIPS remote breakpoint handler
7018 and heuristic frame unwinder.
7019 (show_mips_compression): New function.
7020 (_initialize_mips_tdep): Add the "set mips compression" and
7021 "show mips compression" commands.
7022
7023 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
7024
7025 * ada-lang.c:
7026 * ada-tasks.c:
7027 * ada-varobj.c:
7028 * amd64-darwin-tdep.c:
7029 * arm-symbian-tdep.c:
7030 * arm-tdep.c:
7031 * avr-tdep.c:
7032 * ax-gdb.c:
7033 * bfin-linux-tdep.c:
7034 * breakpoint.c:
7035 * c-valprint.c:
7036 * cli/cli-cmds.c:
7037 * coffread.c:
7038 * cp-support.c:
7039 * cris-tdep.c:
7040 * dwarf2-frame-tailcall.c:
7041 * dwarf2-frame.c:
7042 * dwarf2expr.c:
7043 * dwarf2loc.c:
7044 * dwarf2read.c:
7045 * elfread.c:
7046 * eval.c:
7047 * expprint.c:
7048 * f-valprint.c:
7049 * frv-tdep.c:
7050 * h8300-tdep.c:
7051 * hppa-hpux-tdep.c:
7052 * hppa-tdep.c:
7053 * hppanbsd-tdep.c:
7054 * i386-nto-tdep.c:
7055 * i386-tdep.c:
7056 * i387-tdep.c:
7057 * ia64-tdep.c:
7058 * jit.c:
7059 * linespec.c:
7060 * linux-tdep.c:
7061 * lm32-tdep.c:
7062 * m2-valprint.c:
7063 * m32c-tdep.c:
7064 * m32r-rom.c:
7065 * m32r-tdep.c:
7066 * m68k-tdep.c:
7067 * m68klinux-tdep.c:
7068 * mi/mi-main.c:
7069 * microblaze-tdep.c:
7070 * mips-linux-tdep.c:
7071 * mips-tdep.c:
7072 * mn10300-tdep.c:
7073 * p-valprint.c:
7074 * parse.c:
7075 * ppc-linux-tdep.c:
7076 * ppc-sysv-tdep.c:
7077 * printcmd.c:
7078 * python/py-finishbreakpoint.c:
7079 * python/py-inferior.c:
7080 * python/py-infthread.c:
7081 * python/py-type.c:
7082 * python/python.c:
7083 * remote-fileio.c:
7084 * remote-m32r-sdi.c:
7085 * remote-mips.c:
7086 * reverse.c:
7087 * rl78-tdep.c:
7088 * rs6000-aix-tdep.c:
7089 * rs6000-tdep.c:
7090 * s390-tdep.c:
7091 * score-tdep.c:
7092 * sh64-tdep.c:
7093 * skip.c:
7094 * solib-darwin.c:
7095 * solib-dsbt.c:
7096 * solib-frv.c:
7097 * sparc-tdep.c:
7098 * spu-multiarch.c:
7099 * spu-tdep.c:
7100 * stack.c:
7101 * symfile.c:
7102 * symtab.c:
7103 * tic6x-tdep.c:
7104 * tracepoint.c:
7105 * v850-tdep.c:
7106 * valarith.c:
7107 * valprint.c:
7108 * value.c:
7109 * xcoffread.c:
7110 * xtensa-tdep.c:
7111 * ada-lang.c:
7112 * ada-tasks.c:
7113 * ada-varobj.c:
7114 * amd64-darwin-tdep.c:
7115 * arm-symbian-tdep.c:
7116 * arm-tdep.c: Delete unused variables.
7117
7118 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7119
7120 Rename $ddir to $datadir.
7121 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
7122 * auto-load.c (auto_load_safe_path_vec_update)
7123 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
7124 * configure: Regenerate.
7125 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
7126 Likewise. Remove the 'use $ddir' help string.
7127
7128 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7129
7130 * auto-load.c (show_auto_load_safe_path): Accept any combination of
7131 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
7132
7133 2012-05-18 Tom Tromey <tromey@redhat.com>
7134
7135 PR exp/13907:
7136 * valprint.h (struct value_print_options) <symbol_print>: New
7137 field.
7138 * valprint.c (user_print_options): Add default for symbol_print.
7139 (show_symbol_print): New function.
7140 (generic_val_print): Respect symbol_print.
7141 (_initialize_valprint): Add "print symbol" setting.
7142 * f-valprint.c (f_val_print): Respect symbol_print.
7143 * c-valprint.c (c_val_print): Respect symbol_print.
7144 * NEWS: Update.
7145 * printcmd.c (print_address_symbolic): Return int. Ignore some
7146 zero-size symbols.
7147 (print_address_demangle): Return int.
7148 * defs.h: (print_address_symbolic): Return int.
7149 * value.h (print_address_demangle): Return int.
7150
7151 2012-05-18 Tom Tromey <tromey@redhat.com>
7152
7153 * valprint.c (val_print_string): Don't print leading space.
7154 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
7155 print space before string or vtbl.
7156 * m2-valprint.c (print_unpacked_pointer): Optionally print space
7157 before string.
7158 * jv-valprint.c (java_value_print): Print space before string.
7159 * go-valprint.c (print_go_string): Print space before string.
7160 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
7161 space before string.
7162 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
7163 space before string or vtbl.
7164 * auxv.c (fprint_target_auxv): Print space after address.
7165
7166 2012-05-18 Tom Tromey <tromey@redhat.com>
7167
7168 * printcmd.c (print_address_demangle): Remove special case for 0.
7169
7170 2012-05-18 Tom Tromey <tromey@redhat.com>
7171
7172 * printcmd.c (print_address_demangle): Add 'opts' argument.
7173 * p-valprint.c (pascal_val_print): Update.
7174 * jv-valprint.c (java_val_print): Update.
7175 * value.h: Update.
7176 * valprint.c (generic_val_print): Update.
7177 (print_function_pointer_address): Add 'options' argument. Remove
7178 'addressprint' argument. Update.
7179 * m2-valprint.c (print_unpacked_pointer): Update.
7180 * gnu-v3-abi.c (print_one_vtable): Update.
7181 (gnuv3_print_method_ptr): Update.
7182 * f-valprint.c (f_val_print): Update.
7183 * cp-valprint.c (cp_print_value_fields): Update.
7184 * valprint.h (print_function_pointer_address): Update.
7185 * c-valprint.c (c_val_print): Update.
7186
7187 2012-05-18 Tom Tromey <tromey@redhat.com>
7188
7189 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7190 directly corresponding to the found psymtab.
7191 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7192 (dw2_find_pc_sect_symtab): Use it.
7193 * block.h (blockvector_contains_pc): Declare.
7194 * block.c (find_block_in_blockvector): New function.
7195 (blockvector_for_pc_sect): Use it.
7196 (blockvector_contains_pc): New function.
7197
7198 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7199
7200 * mips-tdep.h (mips_write_pc): New prototype.
7201 * mips-tdep.c (mips_write_pc): Make external, add description.
7202 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7203 add description.
7204
7205 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7206
7207 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7208 mips_regnum->pc.
7209 (mips_unwind_pc, mips_write_pc): Likewise.
7210 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7211 gdbarch_read_pc.
7212
7213 2012-05-17 Joel Brobecker <brobecker@adacore.com>
7214
7215 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7216 proc_warn, proc_error, proc_get_status, proc_flags,
7217 proc_why, proc_what, proc_nsysarg, proc_sysargs,
7218 proc_set_run_on_last_close, proc_unset_run_on_last_close,
7219 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7220 proc_stop_process, proc_wait_for_stop, proc_run_process,
7221 proc_set_traced_signals, proc_set_traced_faults,
7222 proc_set_traced_sysentry, proc_set_traced_sysexit,
7223 proc_set_held_signals, proc_get_held_signals,
7224 proc_get_traced_signals, proc_get_traced_faults,
7225 proc_get_traced_sysentry, proc_get_traced_sysexit,
7226 proc_clear_current_fault, proc_set_current_signal,
7227 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7228 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7229 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7230 proc_get_current_thread, proc_get_current_thread,
7231 proc_get_current_thread, proc_update_threads,
7232 proc_update_threads, proc_update_threads, proc_update_threads,
7233 proc_iterate_over_threads, procfs_find_new_threads,
7234 procfs_pid_to_str): Make static. Remove advance declaration.
7235 (proc_cursig): Make static. Conditionalized defintion on
7236 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7237 (proc_syscall, proc_set_kill_on_last_close,
7238 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7239 proc_get_pending_signals, proc_get_signal_actions,
7240 proc_trace_signal, proc_ignore_signal): Delete.
7241
7242 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7243
7244 * coffread.c (cs_section_address): Passing proper argument for
7245 `bfd_get_section_vma'.
7246 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7247 `bfd_get_section_flags'.
7248 * remote.c (remote_trace_set_readonly_regions): Likewise, for
7249 `bfd_get_section_vma'.
7250
7251 2012-05-16 Tom Tromey <tromey@redhat.com>
7252
7253 PR macros/13205:
7254 * macrotab.h: (macro_define_special): Declare.
7255 (enum macro_special_kind): New.
7256 (struct macro_definition) <argc, replacement>: Update comments.
7257 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7258 (macro_define_object_internal): New function.
7259 (macro_define_object): Use it.
7260 (macro_define_special): New function.
7261 (fixup_definition): New function.
7262 (macro_lookup_definition, foreach_macro_in_scope)
7263 (foreach_macro): Use fixup_definition.
7264 * macroexp.h (macro_stringify): Declare.
7265 * macroexp.c (free_buffer_return_text): New function.
7266 (stringify): Constify "arg".
7267 (macro_stringify): New function.
7268 * dwarf2read.c (macro_start_file): Call macro_define_special.
7269
7270 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
7271 Maciej W. Rozycki <macro@mips.com>
7272
7273 * breakpoint.h (bp_location): Add related_address member.
7274 * inferior.h (get_return_value): Take a pointer to struct value
7275 instead of struct type for the function requested.
7276 * value.h (using_struct_return): Likewise.
7277 * gdbarch.sh (return_value): Take a pointer to struct value
7278 instead of struct type for the function requested.
7279 * breakpoint.c (set_breakpoint_location_function): Initialize
7280 related_address for bp_gnu_ifunc_resolver breakpoints.
7281 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7282 requested function's address to gdbarch_return_value.
7283 * eval.c (evaluate_subexp_standard): Pass the requested
7284 function's address to using_struct_return.
7285 * infcall.c (call_function_by_hand): Pass the requested
7286 function's address to using_struct_return and
7287 gdbarch_return_value.
7288 * infcmd.c (get_return_value): Take a pointer to struct value
7289 instead of struct type for the function requested.
7290 (print_return_value): Update accordingly.
7291 (finish_command_continuation): Likewise.
7292 * stack.c (return_command): Pass the requested function's
7293 address to using_struct_return and gdbarch_return_value.
7294 * value.c (using_struct_return): Take a pointer to struct value
7295 instead of struct type for the function requested. Pass the
7296 requested function's address to gdbarch_return_value.
7297 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7298 New function_value member, replacing function_type.
7299 (bpfinishpy_dealloc): Update accordingly.
7300 (bpfinishpy_pre_stop_hook): Likewise.
7301 (bpfinishpy_init): Likewise. Record the requested function's
7302 address.
7303 * mips-tdep.c (mips_fval_reg): New enum.
7304 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7305 words put in GP registers.
7306 (mips_o64_push_dummy_call): Update a comment.
7307 (mips_o32_return_value): Take a pointer to struct value instead
7308 of struct type for the function requested and use it to check if
7309 using the MIPS16 calling convention. Return the designated
7310 general purpose registers for floating-point values returned in
7311 MIPS16 mode.
7312 (mips_o64_return_value): Likewise.
7313 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7314 (ppc_sysv_abi_broken_return_value): Likewise.
7315 (ppc64_sysv_abi_return_value): Likewise.
7316 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7317 value instead of struct type for the function requested.
7318 * amd64-tdep.c (amd64_return_value): Likewise.
7319 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7320 * arm-tdep.c (arm_return_value): Likewise.
7321 * avr-tdep.c (avr_return_value): Likewise.
7322 * bfin-tdep.c (bfin_return_value): Likewise.
7323 * cris-tdep.c (cris_return_value): Likewise.
7324 * frv-tdep.c (frv_return_value): Likewise.
7325 * h8300-tdep.c (h8300_return_value): Likewise.
7326 (h8300h_return_value): Likewise.
7327 * hppa-tdep.c (hppa32_return_value): Likewise.
7328 (hppa64_return_value): Likewise.
7329 * i386-tdep.c (i386_return_value): Likewise.
7330 * ia64-tdep.c (ia64_return_value): Likewise.
7331 * iq2000-tdep.c (iq2000_return_value): Likewise.
7332 * lm32-tdep.c (lm32_return_value): Likewise.
7333 * m32c-tdep.c (m32c_return_value): Likewise.
7334 * m32r-tdep.c (m32r_return_value): Likewise.
7335 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7336 * m68k-tdep.c (m68k_return_value): Likewise.
7337 (m68k_svr4_return_value): Likewise.
7338 * m88k-tdep.c (m88k_return_value): Likewise.
7339 * mep-tdep.c (mep_return_value): Likewise.
7340 * microblaze-tdep.c (microblaze_return_value): Likewise.
7341 * mn10300-tdep.c (mn10300_return_value): Likewise.
7342 * moxie-tdep.c (moxie_return_value): Likewise.
7343 * mt-tdep.c (mt_return_value): Likewise.
7344 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7345 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7346 (ppc_sysv_abi_broken_return_value): Likewise.
7347 (ppc64_sysv_abi_return_value): Likewise.
7348 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7349 * rl78-tdep.c (rl78_return_value): Likewise.
7350 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7351 * rx-tdep.c (rx_return_value): Likewise.
7352 * s390-tdep.c (s390_return_value): Likewise.
7353 * score-tdep.c (score_return_value): Likewise.
7354 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7355 (sh_return_value_fpu): Likewise.
7356 * sh64-tdep.c (sh64_return_value): Likewise.
7357 * sparc-tdep.c (sparc32_return_value): Likewise.
7358 * sparc64-tdep.c (sparc64_return_value): Likewise.
7359 * spu-tdep.c (spu_return_value): Likewise.
7360 * tic6x-tdep.c (tic6x_return_value): Likewise.
7361 * v850-tdep.c (v850_return_value): Likewise.
7362 * vax-tdep.c (vax_return_value): Likewise.
7363 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7364 * xtensa-tdep.c (xtensa_return_value): Likewise.
7365 * gdbarch.c: Regenerate.
7366 * gdbarch.h: Regenerate.
7367
7368 2012-05-15 Tom Tromey <tromey@redhat.com>
7369
7370 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7371
7372 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7373
7374 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7375 of command in two error message.
7376
7377 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7378
7379 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7380
7381 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7382
7383 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7384
7385 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7386
7387 * NEWS (show auto-load scripts-directory): Add forgotten command.
7388
7389 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7390
7391 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7392 parameters.
7393
7394 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7395
7396 * amd64-tdep.c: Include features/i386/x32.c and
7397 features/i386/x32-avx.c.
7398 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7399 initialize_tdesc_x32_avx.
7400
7401 2012-05-14 Stan Shebs <stan@codesourcery.com>
7402
7403 Add dynamic printf.
7404 * breakpoint.h (enum bptype): New type bp_dprintf.
7405 (struct breakpoint): New field extra_string.
7406 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7407 (create_breakpoint): Add extra_string arg.
7408 * breakpoint.c (dprintf_breakpoint_ops): New.
7409 (is_breakpoint): Add bp_dprintf.
7410 (bpstat_what): Add dprintf case.
7411 (bptype_string): Ditto.
7412 (print_one_breakpoint_location): Ditto.
7413 (init_bp_location): Ditto.
7414 (bkpt_print_mention): Ditto.
7415 (dprintf_style_enums): New array.
7416 (dprintf_style): New global.
7417 (dprintf_function): New global.
7418 (dprintf_channel): New global.
7419 (update_dprintf_command_list): New function.
7420 (update_dprintf_commands): New function.
7421 (init_breakpoint_sal): Add extra_string argument, handle it.
7422 (create_breakpoint_sal): Add extra_string argument.
7423 (create_breakpoints_sal): Add extra_string argument, update callers.
7424 (find_condition_and_thread): Add extra argument.
7425 (create_breakpoint): Add extra_string argument, record it.
7426 (dprintf_command): New function.
7427 (break_command_1): Add arg to create_breakpoint call.
7428 (handle_gnu_v3_exceptions): Ditto.
7429 (trace_command): Ditto.
7430 (ftrace_command): Ditto.
7431 (strace_command): Ditto.
7432 (bkpt_print_mention): Add dprintf case.
7433 (create_breakpoint_sal_default): Add extra_string argument.
7434 (_initialize_breakpoint): Add new commands.
7435 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7436 * python/py-breakpoint.c (bppy_init): Ditto.
7437 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7438
7439 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7440
7441 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7442
7443 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7444
7445 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7446 unsigned long long.
7447
7448 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7449
7450 Add a new function gdb.find_pc_line to the Python API.
7451 * NEWS (Python Scripting): Add entry about the new function.
7452 * python/python.c (gdbpy_find_pc_line): New function which
7453 implements gdb.find_pc_line.
7454 (GdbMethods): Add entry for the new function.
7455
7456 2012-05-12 Pedro Alves <palves@redhat.com>
7457
7458 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7459 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7460
7461 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7462
7463 * inferior.c: Include completer.h
7464 (initialize_inferiors): Set completer of add-inferior to
7465 filename_completer.
7466
7467 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7468
7469 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7470 gdbarch_ptr_bit for x32 core dump.
7471
7472 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7473
7474 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7475 and features/i386/x32-avx-linux.c.
7476
7477 2012-05-11 Stan Shebs <stan@codesourcery.com>
7478 Kwok Cheung Yeung <kcy@codesourcery.com>
7479
7480 * NEWS: Describe new info os commands.
7481 * common/linux-osdata.c (PID_T, TIME_T): Define.
7482 (MAX_PID_T_STRLEN): New.
7483 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7484 MAX_PID_T_STRLEN.
7485 (command_from_pid): Add comment. Change to use PID_T.
7486 (commandline_from_pid): Change to use PID_T.
7487 (user_from_pid): Add comment.
7488 (get_process_owner): Add comment. Change to use PID_T and
7489 MAX_PID_T_STRLEN.
7490 (get_number_of_cpu_cores): Add comment.
7491 (get_cores_used_by_process): Add comment. Change to use PID_T and
7492 MAX_PID_T_STRLEN.
7493 (linux_xfer_osdata_processes): Change to use PID_T and
7494 MAX_PID_T_STRLEN.
7495 (compare_processes): New function.
7496 (linux_xfer_osdata_processgroups): New function.
7497 (linux_xfer_osdata_threads): Change to use PID_T.
7498 (linux_xfer_osdata_fds): New function.
7499 (format_socket_state, print_sockets): New functions.
7500 (union socket_addr): New union.
7501 (linux_xfer_osdata_isockets): New function.
7502 (time_from_time_t, group_from_gid): New functions.
7503 (linux_xfer_osdata_shm): New function.
7504 (linux_xfer_osdata_sem): New function.
7505 (linux_xfer_osdata_msg): New function.
7506 (linux_xfer_osdata_modules): New function.
7507 (osdata_table): Add new entries.
7508 * common/buffer.c (buffer_xml_printf): Add support for long and
7509 long long format specifiers.
7510
7511 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7512
7513 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7514 (tdesc_x32_avx_linux): Likewise.
7515
7516 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7517
7518 Implement multi-component --with-auto-load-dir.
7519 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7520 entries.
7521 (--with-auto-load-safe-path): Update the default value description.
7522 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7523 New.
7524 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7525 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7526 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7527 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7528 "set auto-load scripts-directory".
7529 * config.in: Regenerate.
7530 * configure: Regenerate.
7531 * configure.ac (--with-auto-load-dir): New configure option.
7532 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7533
7534 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7535
7536 Provide $ddir substitution for --with-auto-load-safe-path.
7537 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7538 entries.
7539 * auto-load.c: Include observer.h.
7540 (auto_load_safe_path_vec_update): Call substitute_path_component for
7541 each component. New variable ddir_subst.
7542 (auto_load_gdb_datadir_changed): New function.
7543 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7544 AUTO_LOAD_SAFE_PATH. New comment.
7545 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7546 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7547 * config.in: Regenerate.
7548 * configure: Regenerate.
7549 * configure.ac (--auto-load-safe-path): Rename
7550 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7551 GDB_DATADIR/auto-load.
7552 * defs.h (substitute_path_component): New declaration.
7553 * top.c: Include observer.h.
7554 (set_gdb_datadir): New function.
7555 (init_main): Install it for "set data-directory".
7556 * utils.c (substitute_path_component): New function.
7557
7558 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7559
7560 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7561 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7562 DEBUG_FILE_DIRECTORY. Handle multiple components of
7563 DEBUG_FILE_DIRECTORY.
7564
7565 2012-05-10 Tom Tromey <tromey@redhat.com>
7566
7567 * dwarf2read.c (recursively_write_psymbols): New function.
7568 (write_psymtabs_to_index): Use it.
7569
7570 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7571 field.
7572 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7573 (load_partial_comp_unit): Update.
7574 (queue_comp_unit): Add argument 'pretend_language'.
7575 (process_queue): Update.
7576 (psymtab_to_symtab_1): Skip dependencies that have a user.
7577 (load_partial_comp_unit_reader): Give meaning to the 'data'
7578 argument.
7579 (load_full_comp_unit): Add 'pretend_language' argument.
7580 (process_full_comp_unit): Add 'pretend_language' argument. Set
7581 language on CU.
7582 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7583 Update.
7584 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7585 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7586 Update.
7587 (prepare_one_comp_unit): Add 'pretend_language' argument.
7588
7589 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7590 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7591 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7592 (dw2_do_instantiate_symtab): Check whether symtab was read in
7593 before queueing.
7594 (dw2_instantiate_symtab): Add assertion. Call
7595 process_cu_includes.
7596 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7597 (partial_symtab_p): New typedef.
7598 (set_partial_user): New function.
7599 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7600 (scan_partial_symbols): Add imported CU to imported_symtabs.
7601 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7602 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7603 (get_symtab, recursively_compute_inclusions)
7604 (compute_symtab_includes, process_cu_includes)
7605 (process_imported_unit_die): New functions.
7606 (process_die) <DW_TAG_imported_unit>: New case.
7607 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7608
7609 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7610 comment.
7611 (struct partial_die_info) <locdesc>: Remove.
7612 <d>: New field.
7613 (process_psymtab_comp_unit): Add 'read_partial' argument.
7614 Update.
7615 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7616 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7617 (add_partial_symbol): Update.
7618 (process_die): Handle DW_TAG_partial_unit.
7619 (read_file_scope): Update comment.
7620 (load_partial_dies): Handle DW_TAG_imported_unit.
7621 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7622 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7623
7624 2012-05-10 Tom Tromey <tromey@redhat.com>
7625
7626 * cc-with-dwz.sh: New file.
7627
7628 2012-05-10 Tom Tromey <tromey@redhat.com>
7629
7630 * symtab.h (struct symtab) <includes, user>: New fields.
7631 * block.h (struct block_iterator) <d, idx, which>: New fields.
7632 * block.c (initialize_block_iterator, find_iterator_symtab)
7633 (block_iterator_step, block_iter_name_step)
7634 (block_iter_match_step): New functions.
7635 (block_iterator_first, block_iterator_next)
7636 (block_iter_name_first, block_iter_name_next)
7637 (block_iter_match_first, block_iter_match_next): Rewrite.
7638 (get_block_symtab): New function.
7639
7640 2012-05-10 Tom Tromey <tromey@redhat.com>
7641
7642 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7643 set_block_symtab.
7644 * jit.c (finalize_symtab): Use allocate_global_block,
7645 set_block_symtab.
7646 * buildsym.c (finish_block_internal): New function, from old
7647 finish_block.
7648 (finish_block): Rewrite.
7649 (end_symtab): Use finish_block_internal, set_block_symtab.
7650 * block.h (struct global_block): New.
7651 (allocate_global_block, set_block_symtab): Declare.
7652 * block.c (allocate_global_block, set_block_symtab): New
7653 functions.
7654
7655 2012-05-10 Tom Tromey <tromey@redhat.com>
7656
7657 * psymtab.c (partial_map_expand_apply): Add assertion.
7658 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7659 (psymtab_to_symtab): Find unshared psymtab.
7660 (dump_psymtab): Print including psymtabs.
7661 (recursively_search_psymtabs): New function.
7662 (expand_symtabs_matching_via_partial): Use it.
7663 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7664 fields.
7665 (enum psymtab_search_status): New.
7666
7667 2012-05-10 Tom Tromey <tromey@redhat.com>
7668
7669 * tracepoint.c (scope_info): Update.
7670 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7671 (find_pc_sect_symtab, search_symbols)
7672 (default_make_symbol_completion_list_break_on)
7673 (make_file_symbol_completion_list): Update.
7674 * symmisc.c (dump_symtab_1): Update.
7675 * stack.c (print_frame_args, iterate_over_block_locals)
7676 (print_frame_labels, iterate_over_block_arg_vars): Update.
7677 * python/py-block.c (block_object) <dict>: Remove.
7678 <block>: New field.
7679 <iter>: Change type.
7680 (blpy_iter): Update.
7681 (blpy_block_syms_iternext): Update.
7682 * psymtab.c (map_block): Use block iterators.
7683 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7684 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7685 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7686 * infrun.c (check_exception_resume): Update.
7687 * cp-support.c (make_symbol_overload_list_block): Update.
7688 * coffread.c (patch_opaque_types): Update.
7689 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7690 * block.h (struct block_iterator): New.
7691 (block_iterator_first, block_iterator_next, block_iter_name_first)
7692 (block_iter_name_next, block_iter_match_first)
7693 (block_iter_match_next): Declare.
7694 (ALL_BLOCK_SYMBOLS): Redefine.
7695 * block.c (block_iterator_first, block_iterator_next)
7696 (block_iter_name_first, block_iter_name_next)
7697 (block_iter_match_first, block_iter_match_next): New functions.
7698 * ada-lang.c (ada_add_block_symbols)
7699 (ada_make_symbol_completion_list): Use block iterator.
7700
7701 2012-05-10 Tom Tromey <tromey@redhat.com>
7702
7703 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7704 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7705 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7706 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7707 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7708 Update.
7709
7710 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7711
7712 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7713 print-file-var-lib2.c, print-file-var-main.c and
7714 print-file-var.exp (located in gdb/testsuite/gdb.base).
7715
7716 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7717
7718 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7719 try locating the symbol in the symbol's own objfile first, before
7720 extending the search to all objfiles.
7721 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7722 out of lookup_symbol_aux_symtabs.
7723 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7724 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7725 Do not search EXCLUDE_OBJFILE.
7726 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7727 (lookup_symbol_global): Search for matches in the block's objfile
7728 first, before searching all other objfiles.
7729
7730 2012-05-10 Tristan Gingold <gingold@adacore.com>
7731
7732 * printcmd.c (set_command): Add pre/post inc/dec.
7733
7734 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7735
7736 * gdb.1: Document -ex option.
7737
7738 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7739
7740 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7741 * inferior.h (AT_SYMBOL): Delete.
7742
7743 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7744
7745 * mips-tdep.c (mips_push_dummy_code): New function.
7746 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7747 ON_STACK and install mips_push_dummy_code as our gdbarch
7748 push_dummy_code routine.
7749
7750 2012-05-09 Pedro Alves <palves@redhat.com>
7751
7752 * target.c (set_maintenance_target_async_permitted): Rename to ...
7753 (set_target_async_command): ... this.
7754 (show_maintenance_target_async_permitted): Rename to ...
7755 (show_target_async_command): ... this.
7756 (initialize_targets): Adjust.
7757
7758 2012-05-08 Doug Evans <dje@google.com>
7759
7760 * go-exp.y (classify_name): Add missing assignment of fields of
7761 yylval.ssym.
7762
7763 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7764
7765 Display the ">" prompt in interactive mode while reading canned
7766 commands, even when the current interpreter is MI.
7767
7768 * interps.c (interp_set_temp): New function.
7769
7770 * interps.h (interp_set_temp): Add prototype.
7771
7772 * cli/cli-script.c (restore_interp): New cleanup function.
7773 (read_command_lines): Temporarily override the current interpreter
7774 with CLI and arrange for restoring the original one.
7775
7776 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7777
7778 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7779
7780 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7781
7782 * probe.c (parse_probes): Move conditional to check for
7783 debuginfo files from here...
7784 * stap-probe.c (stap_get_probes): ... to here.
7785
7786 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7787 H.J. Lu <hongjiu.lu@intel.com>
7788
7789 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7790 `movl %esp, %ebp' for the X32 ABI.
7791
7792 2012-05-07 Tom Tromey <tromey@redhat.com>
7793
7794 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7795 get_DW_TAG_name.
7796 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7797 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7798 (dwarf_stack_op_name): Remove.
7799 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7800 (decode_locdesc): Use get_DW_OP_name.
7801 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7802 (dwarf2_compile_expr_to_ax): Likewise.
7803 (disassemble_dwarf_expression): Likewise.
7804 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7805
7806 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7807
7808 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7809 (sh_linux_sigtramp_cache): New function.
7810 (sh_linux_sigreturn_init): New function.
7811 (sh_linux_rt_sigreturn_init): New function.
7812 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7813 patterns.
7814 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7815 syscall codes.
7816 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7817 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7818 (sh_linux_init_abi): Add init calls to register new tramp_frame
7819 definitions under 32-bit SH, update comments.
7820
7821 2012-05-07 Pedro Alves <palves@redhat.com>
7822
7823 PR gdb/10952
7824
7825 * amd64-linux-tdep.c: Include glibc-tdep.h.
7826 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7827 gdbarch_skip_solib_resolver callback.
7828
7829 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7830
7831 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7832 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7833 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7834 (add_auto_load_safe_path): Change the error message.
7835 (_initialize_auto_load): Change the "safe-path" help text.
7836 * configure: Regenerate
7837 * configure.ac (--without-auto-load-safe-path): Set
7838 WITH_AUTO_LOAD_SAFE_PATH to /.
7839
7840 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7841
7842 * stap-probe.h: Do not include unecessary `probe.h'.
7843
7844 2012-05-05 Alan Modra <amodra@gmail.com>
7845
7846 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7847 bfd_und_section_ptr.
7848 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7849 and bfd_com_section_ptr.
7850
7851 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7852
7853 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7854
7855 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7856
7857 * windows-nat.h (segment_register_p_ftype): New typedef.
7858 (windows_set_segment_register_p): Add declaration.
7859 * windows-nat.c (segment_register_p): New static global.
7860 (windows_set_segment_register_p): New function.
7861 (do_windows_fetch_inferior_registers): Add special handling
7862 for segment registers.
7863 * amd64-windows-nat.c: #include "amd64-tdep.h".
7864 (amd64_windows_segment_register_p): New function.
7865 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7866 * i386-windows-nat.c: #include "i386-tdep.h".
7867 (i386_windows_segment_register_p): New function.
7868 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7869
7870 2012-05-04 Tristan Gingold <gingold@adacore.com>
7871
7872 * printcmd.c (set_command): Emit a warning if the expression is not
7873 an assignment.
7874
7875 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7876
7877 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7878 Make static.
7879
7880 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7881
7882 * stap-probe.c (stap_is_operator): Change declaration.
7883 (stap_get_opcode): Change return value.
7884 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7885 `stap_parse_argument_1'.
7886
7887 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7888
7889 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7890 debug log.
7891
7892 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7893
7894 Add two new methods global_block and static_block to gdb.Symtab
7895 objects.
7896 * NEWS (Python scripting): Add entry about the new methods.
7897 * python/py-symtab.c (stpy_global_block): New function which
7898 implements the gdb.Symtab.global_block() method.
7899 (stpy_static_block): New function which implements the
7900 gdb.Symtab.static_block() method.
7901 (symtab_object_methods): Add entries for the two new methods.
7902
7903 2012-05-03 Doug Evans <dje@google.com>
7904
7905 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7906 files.
7907
7908 2012-05-03 Yao Qi <yao@codesourcery.com>
7909
7910 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7911 space.
7912 (i386_process_record): Ditto.
7913
7914 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7915
7916 * infcall.c (unwind_on_signal_p): Make static.
7917
7918 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7919
7920 * sol-thread.c (solaris_pid_to_str): Make static.
7921 (_initialize_sol_thread): Add prototype.
7922
7923 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7924
7925 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7926
7927 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7928
7929 * MAINTAINERS: Remove myself.
7930
7931 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7932
7933 Fix --without-auto-load-safe-path for MS-Windows host platform.
7934 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7935
7936 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7937
7938 * gdb_curses.h: Undefine KEY_EVENT before including curses
7939 headers. Move "#undef MOUSE_MOVED" before any curses header
7940 inclusion.
7941
7942 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7943
7944 * features/i386/i386-mmx-linux.c: Regenerate.
7945 * features/rs6000/powerpc-32.c: Likewise.
7946 * features/rs6000/powerpc-32l.c: Likewise.
7947 * features/rs6000/powerpc-403.c: Likewise.
7948 * features/rs6000/powerpc-403gc.c: Likewise.
7949 * features/rs6000/powerpc-405.c: Likewise.
7950 * features/rs6000/powerpc-505.c: Likewise.
7951 * features/rs6000/powerpc-601.c: Likewise.
7952 * features/rs6000/powerpc-602.c: Likewise.
7953 * features/rs6000/powerpc-603.c: Likewise.
7954 * features/rs6000/powerpc-604.c: Likewise.
7955 * features/rs6000/powerpc-64.c: Likewise.
7956 * features/rs6000/powerpc-64l.c: Likewise.
7957 * features/rs6000/powerpc-750.c: Likewise.
7958 * features/rs6000/powerpc-860.c: Likewise.
7959 * features/rs6000/powerpc-e500.c: Likewise.
7960 * features/rs6000/powerpc-e500l.c: Likewise.
7961 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7962 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7963 * features/rs6000/rs6000.c: Likewise.
7964
7965 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7966
7967 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7968 variable.
7969 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7970 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7971 (stap_parse_argument) <e>: Likewise.
7972 (handle_stap_probe) <byte_order>: Likewise.
7973
7974 2012-04-30 Doug Evans <dje@google.com>
7975
7976 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7977 init_and_read_dies_worker. All callers updated.
7978 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7979 replaced with init_cutu_and_read_dies.
7980 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7981 (find_partial_die): Remove FIXME. Don't free current CU.
7982
7983 2012-04-30 Sterling Augustine <saugustine@google.com>
7984
7985 * contrib: New directory.
7986 * contrib/test_pubnames_and_indexes.py: New file.
7987
7988 2012-04-30 Doug Evans <dje@google.com>
7989
7990 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7991 All callers updated.
7992 (init_cu_die_reader): Verify the section is non-empty.
7993 (dwarf_decode_line_header): Don't dereference section->asection
7994 until we know the section is present.
7995
7996 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7997
7998 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7999 probes.
8000
8001 2012-04-29 Yao Qi <yao@codesourcery.com>
8002
8003 * gdb-code-style.el: New hook gdb-markup-hook
8004 and gdb-comment-hook.
8005
8006 2012-04-28 Doug Evans <dje@google.com>
8007
8008 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
8009 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
8010 objfile->obfd.
8011 * symfile.h (dwarf2_debug_sections): New member addr.
8012 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
8013 (ctx_no_get_addr_index): New function.
8014 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
8015 (ctx_no_get_addr_index): Declare.
8016 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
8017 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
8018 (dwarf_expr_ctx_funcs): Update.
8019 (needs_get_addr_index): New function.
8020 (needs_frame_ctx_funcs): Update.
8021 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
8022 * dwarf2read.c: #include "gdbcore.h".
8023 (dwarf2_per_objfile): New members addr, dwo_files.
8024 (dwarf2_elf_names): Add entry for addr.
8025 (struct dwo_section_names): New type.
8026 (dwo_section_names): New static global.
8027 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
8028 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
8029 old debug_types_section member updated to use this.
8030 Rename member debug_types_section to info_or_types_section,
8031 all uses updated.
8032 (signatured_type): Rename member type_offset to type_offset_in_tu,
8033 all uses updated. New member type_offset_in_section.
8034 (struct dwo_sections): New type.
8035 (struct dwo_unit): New type.
8036 (struct dwo_file): New type.
8037 (die_reader_specs): New member dwo_file.
8038 (dwarf2_locate_sections): Watch for .debug_addr.
8039 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
8040 (dwarf2_read_section): Get bfd of section from bfd's asection,
8041 instead of objfile.
8042 (create_cus_from_index): Initialize the_cu->info_or_types_section.
8043 (create_signatured_type_table_from_index): Initialize
8044 sig_type->info_or_types_section.
8045 (dw2_get_file_names): Statement lists for type units with DWO files
8046 live in the DWO file.
8047 (create_debug_types_hash_table): New function.
8048 (create_all_type_units): Rewrite.
8049 (init_cu_die_reader): New arg dwo_file, all callers updated.
8050 (init_and_read_dies_worker): Get section from
8051 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
8052 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
8053 continue reading the CU/TU from there.
8054 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
8055 updated. Get section from this_cu->info_or_types_section.
8056 (create_all_comp_units): Initialize this_cu->info_or_types_section.
8057 (skip_one_die): New cases DW_FORM_GNU_addr_index,
8058 DW_FORM_GNU_str_index.
8059 (hash_dwo_file, eq_dwo_file): New functions.
8060 (allocate_dwo_file_hash_table): New function.
8061 (hash_dwo_unit, eq_dwo_unit): New functions.
8062 (allocate_dwo_unit_table): New function.
8063 (dwarf2_locate_dwo_sections): New function.
8064 (struct create_dwo_info_table_data): New type.
8065 (create_debug_info_hash_table_reader): New function.
8066 (create_debug_info_hash_table): New function.
8067 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
8068 (lookup_dwo_file): New function.
8069 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
8070 (free_dwo_file, free_dwo_file_cleanup): New functions.
8071 (free_dwo_file_from_slot, free_dwo_files): New functions.
8072 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
8073 (dwarf2_record_block_ranges): Ditto.
8074 (read_partial_die): Ditto.
8075 (process_enumeration_scope): Update to use type_offset_in_section.
8076 (read_full_die_1): New function.
8077 (read_full_die): Rewrite.
8078 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
8079 DW_FORM_GNU_str_index.
8080 (read_addr_index_1, read_addr_index): New functions.
8081 (read_addr_index_from_leb128): New function.
8082 (struct dwarf2_read_addr_index_data): New type.
8083 (dwarf2_read_addr_index_reader): New function.
8084 (dwarf2_read_addr_index): New function.
8085 (read_str_index): New function.
8086 (leb128_size): New function.
8087 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
8088 If processing a type unit from a DWO file, get the line section
8089 from the DWO file.
8090 (var_decode_location): Watch for DW_OP_GNU_addr_index.
8091 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
8092 DW_FORM_GNU_str_index.
8093 (lookup_die_type): Check whether section offset of type's die is
8094 known before looking it up. Remove assert. Condition can
8095 legimately happen for inter-cu type references.
8096 (dwarf_attr_name): Handle Fission attributes.
8097 (dwarf_form_name): Handle Fission forms.
8098 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
8099 DW_FORM_GNU_str_index.
8100 (follow_die_sig): Update to use type_offset_in_section.
8101 (decode_locdesc): New case DW_OP_GNU_addr_index.
8102 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
8103 DW_FORM_GNU_str_index.
8104 (cu_debug_loc_section): New function.
8105 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
8106 (dwarf2_per_objfile_free): Unmap .debug_addr section.
8107 Free DWO files if present.
8108 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
8109
8110 Refactor DIE reading.
8111 * dwarf2read.c (dwarf2_per_objfile): Replace members
8112 debug_info_type_hash and debug_types_type_hash with die_type_hash.
8113 (die_reader_specs): New member "die_section". Temporarily make
8114 member "buffer" non-const, pending constifying all info_ptr uses.
8115 (die_reader_func_ftype): New typedef.
8116 (dw2_get_file_names_reader): New function.
8117 (dw2_get_file_names): Rewrite.
8118 (read_and_check_type_unit_head): Rename arg type_offset to
8119 type_offset_in_tu.
8120 (create_all_type_units): Improve debugging message.
8121 Improve dummy type unit check.
8122 (init_cu_die_reader): New arg "section". All callers updated.
8123 (init_and_read_dies_worker): New function.
8124 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
8125 (init_cutu_and_read_dies_no_follow): New function.
8126 (init_cutu_and_read_dies_simple): New function.
8127 (process_psymtab_comp_unit_reader): New function.
8128 (process_psymtab_comp_unit): Delete args section,
8129 is_debug_types_section. Rewrite. All callers updated.
8130 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
8131 All callers updated. Rewrite.
8132 (load_partial_comp_unit_reader): New function.
8133 (load_partial_comp_unit): Rewrite.
8134 (skip_children): New arg reader. Delete args buffer, cu.
8135 All callers updated.
8136 (skip_one_die): New arg reader. Delete args buffer, cu.
8137 All callers updated.
8138 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
8139 All callers updated.
8140 (load_full_comp_unit_reader): New function.
8141 (load_full_comp_unit): Rewrite.
8142 (read_comp_unit): Delete.
8143 (read_die_and_children_1): Delete, contents moved ...
8144 (read_die_and_children): ... here.
8145 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
8146 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
8147 All callers updated.
8148 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
8149 All callers updated.
8150 (find_partial_die): Rewrite load_all_dies support.
8151 (read_attribute_value): New arg reader. Delete args abfd, cu.
8152 All callers updated.
8153 (read_attribute): New arg reader. Delete args abfd, cu.
8154 All callers updated.
8155 (load_full_type_unit): Add assert.
8156 (read_signatured_type_reader): New function.
8157 (read_signatured_type): Rewrite.
8158 (free_stack_comp_unit): Remove call to age_cached_comp_units.
8159 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
8160 All callers updated. Set per_cu->cu = NULL after freeing it.
8161 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
8162 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
8163 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
8164 (set_die_type): Update.
8165 (get_die_type_at_offset): Update.
8166 (read_file_scope): Call prepare_one_comp_unit.
8167 (read_type_unit_scope): Ditto.
8168 (prepare_one_comp_unit): Set producer if present.
8169
8170 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
8171
8172 * probe.c (compile_rx_or_error): Silence ARI warning about missing
8173 gettext function on `error'.
8174
8175 2012-04-27 Doug Evans <dje@google.com>
8176
8177 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8178 is empty.
8179
8180 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8181 Tom Tromey <tromey@redhat.com>
8182
8183 * breakpoint.c (struct breakpoint_objfile_data)
8184 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8185 <exception_probes>: New fields.
8186 (free_breakpoint_probes): New function.
8187 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8188 `_Unwind_DebugHook'.
8189 (create_exception_master_breakpoint): Likewise.
8190 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8191 * infrun.c: Including necessary header files for handling SystemTap
8192 probes.
8193 (handle_inferior_event): Handling longjmp breakpoint and exceptions
8194 via SystemTap probes.
8195 (check_exception_resume): Remove `func' argument. Handle exception
8196 unwinding breakpoint set via a SystemTap probe.
8197 (insert_exception_resume_from_probe): New function.
8198
8199 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8200 Tom Tromey <tromey@redhat.com>
8201 Jan Kratochvil <jan.kratochvil@redhat.com>
8202
8203 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8204 (COMMON_OBS): Likewise.
8205 (HFILES_NO_SRCDIR): Add `probe'.
8206 * NEWS: Mention support for static and SystemTap probes.
8207 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8208 SystemTap probes' arguments parser.
8209 * arm-linux-tdep.c: Including headers needed to perform the parsing
8210 of SystemTap probes' arguments.
8211 (arm_stap_is_single_operand): New function.
8212 (arm_stap_parse_special_token): Likewise.
8213 (arm_linux_init_abi): Initializing proper fields used by SystemTap
8214 probes' arguments parser.
8215 * ax-gdb.c (require_rvalue): Removing static declaration.
8216 (gen_expr): Likewise.
8217 * ax-gdb.h (gen_expr): Declaring function.
8218 (require_rvalue): Likewise.
8219 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8220 (bkpt_probe_breakpoint_ops): New variable.
8221 (momentary_breakpoint_from_master): Set the `probe' value.
8222 (add_location_to_breakpoint): Likewise.
8223 (break_command_1): Using proper breakpoint_ops according to the
8224 argument passed by the user in the command line.
8225 (bkpt_probe_insert_location): New function.
8226 (bkpt_probe_remove_location): Likewise.
8227 (bkpt_probe_create_sals_from_address): Likewise.
8228 (bkpt_probe_decode_linespec): Likewise.
8229 (tracepoint_probe_create_sals_from_address): Likewise.
8230 (tracepoint_probe_decode_linespec): Likewise.
8231 (tracepoint_probe_breakpoint_ops): New variable.
8232 (trace_command): Using proper breakpoint_ops according to the
8233 argument passed by the user in the command line.
8234 (initialize_breakpoint_ops): Initializing breakpoint_ops for
8235 static probes on breakpoints and tracepoints.
8236 * breakpoint.h (struct bp_location) <probe>: New field.
8237 * cli-utils.c (skip_spaces_const): New function.
8238 (extract_arg): Likewise.
8239 * cli-utils.h (skip_spaces_const): Likewise.
8240 (extract_arg): Likewise.
8241 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8242 * configure.ac: Append `stap-probe.o' to be generated when ELF
8243 support is present.
8244 * configure: Regenerate.
8245 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8246 * elfread.c: Include `probe.h' and `arch-utils.h'.
8247 (probe_key): New variable.
8248 (elf_get_probes): New function.
8249 (elf_get_probe_argument_count): Likewise.
8250 (elf_evaluate_probe_argument): Likewise.
8251 (elf_compile_to_ax): Likewise.
8252 (elf_symfile_relocate_probe): Likewise.
8253 (stap_probe_key_free): Likewise.
8254 (elf_probe_fns): New variable.
8255 (elf_sym_fns): Add `sym_probe_fns' value.
8256 (elf_sym_fns_lazy_psyms): Likewise.
8257 (elf_sym_fns_gdb_index): Likewise.
8258 (_initialize_elfread): Initialize objfile cache for static
8259 probes.
8260 * gdb_vecs.h (struct probe): New forward declaration.
8261 (probe_p): New VEC declaration.
8262 * gdbarch.c: Regenerate.
8263 * gdbarch.h: Regenerate.
8264 * gdbarch.sh (stap_integer_prefix): New variable.
8265 (stap_integer_suffix): Likewise.
8266 (stap_register_prefix): Likewise.
8267 (stap_register_suffix): Likewise.
8268 (stap_register_indirection_prefix): Likewise.
8269 (stap_register_indirection_suffix): Likewise.
8270 (stap_gdb_register_prefix): Likewise.
8271 (stap_gdb_register_suffix): Likewise.
8272 (stap_is_single_operand): New function.
8273 (stap_parse_special_token): Likewise.
8274 (struct stap_parse_info): Forward declaration.
8275 * i386-tdep.c: Including headers needed to perform the parsing
8276 of SystemTap probes' arguments.
8277 (i386_stap_is_single_operand): New function.
8278 (i386_stap_parse_special_token): Likewise.
8279 (i386_elf_init_abi): Initializing proper fields used by SystemTap
8280 probes' arguments parser.
8281 * i386-tdep.h (i386_stap_is_single_operand): New function.
8282 (i386_stap_parse_special_token): Likewise.
8283 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8284 * mipsread.c (ecoff_sym_fns): Likewise.
8285 * objfiles.c (objfile_relocate1): Support relocation for static
8286 probes.
8287 * parse.c (prefixify_expression): Remove static declaration.
8288 (initialize_expout): Likewise.
8289 (reallocate_expout): Likewise.
8290 * parser-defs.h (initialize_expout): Declare function.
8291 (reallocate_expout): Likewise.
8292 (prefixify_expression): Likewise.
8293 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8294 of SystemTap probes' arguments.
8295 (ppc_stap_is_single_operand): New function.
8296 (ppc_stap_parse_special_token): Likewise.
8297 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8298 probes' arguments parser.
8299 * probe.c: New file, for generic statically defined probe support.
8300 * probe.h: Likewise.
8301 * s390-tdep.c: Including headers needed to perform the parsing of
8302 SystemTap probes' arguments.
8303 (s390_stap_is_single_operand): New function.
8304 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8305 probes' arguments parser.
8306 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8307 * stap-probe.c: New file, for SystemTap probe support.
8308 * stap-probe.h: Likewise.
8309 * symfile.h: Include `gdb_vecs.h'.
8310 (struct sym_probe_fns): New struct.
8311 (struct sym_fns) <sym_probe_fns>: New field.
8312 * symtab.c (init_sal): Initialize `probe' field.
8313 * symtab.h (struct probe): Forward declaration.
8314 (struct symtab_and_line) <probe>: New field.
8315 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8316 locations.
8317 (stop_tracing): Likewise.
8318 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8319
8320 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8321 Tom Tromey <tromey@redhat.com>
8322
8323 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8324 and to compile agent expressions.
8325 * infrun.c (siginfo_make_value): New argument `ignore'.
8326 (siginfo_funcs): New struct.
8327 (_initialize_infrun): New argument when calling
8328 `create_internalvar_type_lazy'.
8329 * thread.c (thread_id_make_value): New argument `ignore'.
8330 (thread_funcs): New struct.
8331 (_initialize_thread): New argument when calling
8332 `create_internalvar_type_lazy'.
8333 * tracepoint.c (sdata_make_value): New argument `ignore'.
8334 (sdata_funcs): New struct.
8335 (_initialize_tracepoint): New argument when calling
8336 `create_internalvar_type_lazy'.
8337 * value.c (make_value): New struct.
8338 (create_internalvar_type_lazy): New argument `data'.
8339 (compile_internalvar_to_ax): New function.
8340 (value_of_internalvar): Properly handling `make_value' case.
8341 (clear_internalvar): Likewise.
8342 (show_convenience): Adding `TRY_CATCH' block.
8343 * value.h (internalvar_make_value): Delete, replace by...
8344 (struct internalvar_funcs): ... this.
8345 (create_internalvar_type_lazy) <fun>: Delete argument.
8346 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8347 (compile_internalvar_to_ax): New function.
8348 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8349 (tlb_funcs): New struct.
8350 (_initialize_windows_tdep): New argument when calling
8351 `create_internalvar_type_lazy'.
8352
8353 2012-04-27 Mark Wielaard <mjw@redhat.com>
8354
8355 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8356 see whether it is an address or a constant offset from DW_AT_low_pc.
8357 (dwarf2_record_block_ranges): Likewise.
8358 (read_partial_die): Likewise.
8359
8360 2012-04-26 Mark Wielaard <mjw@redhat.com>
8361
8362 * MAINTAINERS (Write After Approval): Add myself to the list.
8363
8364 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8365
8366 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8367 (proc_prettyprint_signal): Likewise.
8368 (proc_prettyprint_faultset): Likewise.
8369 (proc_prettyprint_fault): Likewise.
8370 (proc_prettyprint_actionset): Likewise.
8371 (proc_prettyprint_flags): Move to new proc-flags.c section.
8372 (proc_prettyfprint_flags): New prototype.
8373 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8374 (proc_syscall, proc_cursig): Likewise.
8375 (proc_set_kill_on_last_close): Likewise.
8376 (proc_unset_kill_on_last_close): Likewise.
8377 (proc_set_watchpoint): Make static.
8378 (proc_delete_dead_threads): Likewise.
8379 (procfs_set_watchpoint): Likewise.
8380 (_initialize_procfs): Add prototype.
8381 * proc-events.c: Include proc-utils.h.
8382 (init_syscall_table): Make static.
8383 * proc-api.c (_initialize_proc_api): Add prototype.
8384 * proc-flags.c: Include proc-utils.h.
8385
8386 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8387
8388 * configure.ac: Add AC_ARG_PROGRAM.
8389 * configure: Regenerate.
8390
8391 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8392
8393 Fix DW_AT_lower_bound defaults for DWARF-4+.
8394 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8395 high. New variable low_default_is_valid. Implement DWARF-4+
8396 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8397 no default by the DWARF standard.
8398
8399 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8400 Maciej W. Rozycki <macro@codesourcery.com>
8401
8402 * infrun.c (handle_inferior_event): Move the check for return
8403 trampolines ahead of the check for function trampolines.
8404 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8405 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8406 (mips_str_mips16_ret_stub): Likewise.
8407 (mips_str_call_fp_stub): Likewise.
8408 (mips_str_call_stub): Likewise.
8409 (mips_str_fn_stub): Likewise.
8410 (mips_str_pic): Likewise.
8411 (mips_in_frame_stub): New function.
8412 (mips_unwind_pc): Return the return address rather than the PC
8413 if the PC of an intermediate frame is inside a call thunk.
8414 (mips_is_stub_suffix): New function.
8415 (mips_is_stub_mode): Likewise.
8416 (mips_get_mips16_fn_stub_pc): Likewise.
8417 (mips_skip_mips16_trampoline_code): Update to handle all the
8418 currently generated stub types. Don't recurse into __fn_stub
8419 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8420 Use cooked register accesses.
8421 (mips_in_return_stub): Reintroduce function.
8422 (mips_skip_trampoline_code): Traverse trampolines recursively.
8423 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8424
8425 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8426
8427 GDB 7.4.1 released.
8428
8429 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8430
8431 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8432 * features/arm-with-m-vfp-d16.xml: New file. Describes
8433 Cortex-M with VFPv4-sp-d16 FPU register layout.
8434 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8435 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8436 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8437 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8438 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8439
8440 2012-04-25 Doug Evans <dje@google.com>
8441
8442 * cli/cli-decode.c (print_doc_line): Use stream instead of
8443 current_uiout.
8444
8445 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8446
8447 * features/arm-with-iwmmxt.c: Regenerate.
8448 * features/arm-with-m-fpa-layout.c: Likewise.
8449 * features/arm-with-m.c: Likewise.
8450 * features/arm-with-neon.c: Likewise.
8451 * features/arm-with-vfpv2.c: Likewise.
8452 * features/arm-with-vfpv3.c: Likewise.
8453 * features/mips-dsp-linux.c: Likewise.
8454 * features/mips-linux.c: Likewise.
8455 * features/mips64-dsp-linux.c: Likewise.
8456 * features/mips64-linux.c: Likewise.
8457 * features/s390-linux32.c: Likewise.
8458 * features/s390-linux32v1.c: Likewise.
8459 * features/s390-linux32v2.c: Likewise.
8460 * features/s390-linux64.c: Likewise.
8461 * features/s390-linux64v1.c: Likewise.
8462 * features/s390-linux64v2.c: Likewise.
8463 * features/s390x-linux64.c: Likewise.
8464 * features/s390x-linux64v1.c: Likewise.
8465 * features/s390x-linux64v2.c: Likewise.
8466 * features/tic6x-c62x-linux.c: Likewise.
8467 * features/tic6x-c62x.c: Likewise.
8468 * features/tic6x-c64x-linux.c: Likewise.
8469 * features/tic6x-c64x.c: Likewise.
8470 * features/tic6x-c64xp-linux.c: Likewise.
8471 * features/tic6x-c64xp.c: Likewise.
8472 * target-descriptions.c: Only generate `field_type' and `type'
8473 variables when needed.
8474
8475 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8476
8477 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8478
8479 2012-04-25 Doug Evans <dje@google.com>
8480
8481 Initial pass at Go language support.
8482 * NEWS: Mention Go.
8483 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8484 go-valprint.c.
8485 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8486 (YYFILES): Add go-exp.c.
8487 (YYOBJ): Add go-exp.o.
8488 (local-maintainer-clean): Delete go-exp.c.
8489 * defs.h (enum language): Add language_go.
8490 * dwarf2read.c: #include "go-lang.h".
8491 (fixup_go_packaging): New function.
8492 (process_full_comp_unit): Call it when processing Go CUs.
8493 (dwarf2_physname): Add Go support.
8494 (read_file_scope): Handle missing language spec for GNU Go.
8495 (set_cu_language): Handle DW_LANG_Go.
8496 * go-exp.y: New file.
8497 * go-lang.h: New file.
8498 * go-lang.c: New file.
8499 * go-typeprint.c: New file.
8500 * go-valprint.c: New file.
8501 * symtab.c: #include "go-lang.h".
8502 (symbol_set_language): Handle language_go.
8503 (symbol_find_demangled_name, symbol_set_names): Ditto.
8504 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8505
8506 2012-04-24 Jim Meyering <meyering@redhat.com>
8507
8508 avoid a few strncpy-induced buffer overruns
8509 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8510 fname and psargs before trying to concatenate.
8511 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8512 "name" before applying strchr.
8513
8514 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8515
8516 * CONTRIBUTE: Use unified diff instead of context diff when
8517 generating patches.
8518
8519 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8520
8521 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8522 code. Handle JR.HB correctly.
8523
8524 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8525
8526 * mips-tdep.c
8527 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8528 with the other MIPS16 helpers.
8529
8530 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8531
8532 * observer.sh: Conditionally declare `args', thus cleaning up
8533 unused instances of this variable.
8534
8535 2012-04-24 Yao Qi <yao@codesourcery.com>
8536
8537 Revert this patch to allow breakpoint always-inserted
8538 in record target.
8539 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8540 * breakpoint.c: Include record.h.
8541 (breakpoints_always_inserted_mode): Return false when the record
8542 target is in use.
8543
8544 * breakpoint.c (iterate_over_bp_locations): New.
8545 * breakpoint.h: Declare.
8546 New typedef walk_bp_location_callback.
8547 * record.c (record_open): Call record_init_record_breakpoints.
8548 (record_sync_record_breakpoints): New.
8549 (record_init_record_breakpoints): New.
8550 * NEWS: Mention supporting breakpoint always-inserted mode in
8551 record target.
8552
8553 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8554
8555 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8556 any thread.
8557
8558 2012-04-24 Yao Qi <yao@codesourcery.com>
8559
8560 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8561 (is_catchpoint): ... it.
8562 (print_one_breakpoint_location): Caller update.
8563 * breakpoint.h: Update declaration.
8564
8565 2012-04-23 David S. Miller <davem@davemloft.net>
8566
8567 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8568
8569 2012-04-23 Tom Tromey <tromey@redhat.com>
8570
8571 * buildsym.c (add_free_pendings): Remove.
8572 * buildsym.h (add_free_pendings): Remove.
8573
8574 2012-04-23 Doug Evans <dje@google.com>
8575
8576 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8577 attr.u.unsnd instead of attr.u.addr.
8578 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8579 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8580 DW_FORM_ref_udata.
8581 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8582 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8583 DW_FORM_ref_udata.
8584 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8585
8586 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8587
8588 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8589 (mips_o32_return_value): Likewise.
8590 (mips_o64_return_value): Likewise.
8591
8592 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8593
8594 * ada-lang.c (ada_evaluate_subexp): Add cases for
8595 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8596 their treatment in eval.c.
8597
8598 2012-04-21 David S. Miller <davem@davemloft.net>
8599
8600 * sparc-tdep.c (X_DISP10): Define.
8601 (sparc_analyze_control_transfer): Handle compare-and-branch.
8602
8603 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8604
8605 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8606 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8607
8608 2012-04-20 Nigel Stephens <nigel@mips.com>
8609 Maciej W. Rozycki <macro@codesourcery.com>
8610
8611 * mips-tdep.c (mips_float_register_p): New function.
8612 (mips_convert_register_float_case_p): Use mips_float_register_p.
8613 (mips_register_type): Likewise.
8614 (mips_print_register): Likewise.
8615 (print_gp_register_row): Likewise.
8616 (mips_print_registers_info): Likewise.
8617
8618 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8619
8620 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8621 of mips16 symbols.
8622
8623 2012-04-20 Andrew Pinski <apinski@cavium.com>
8624
8625 * MAINTAINERS (Write After Approval): Add myself to the list.
8626
8627 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8628
8629 * MAINTAINERS: Update my e-mail address.
8630
8631 2012-04-20 Pedro Alves <palves@redhat.com>
8632
8633 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8634 $srcdir.
8635 * configure: Regenerate.
8636
8637 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8638
8639 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8640 declaration.
8641 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8642
8643 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8644
8645 Fix compilation compatibility with python-2.4
8646 * python/py-type.c (convert_field): Cast ADDRSTRING for
8647 PyObject_SetAttrString as non-const. New comment.
8648
8649 2012-04-19 Tom Tromey <tromey@redhat.com>
8650
8651 * top.c (quit_target): Use all_cleanups.
8652 * main.c (captured_command_loop): Use all_cleanups.
8653 * exceptions.c (throw_exception): Use all_cleanups.
8654
8655 2012-04-19 Pedro Alves <palves@redhat.com>
8656
8657 * Makefile.in (GNULIB_BUILDDIR): New.
8658 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8659 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8660 (CLEANDIRS). Remove gnulib/import.
8661 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8662 (all-lib): Ditto.
8663 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8664 (gnulib/import/Makefile): Replace gnulib/import with
8665 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8666 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8667 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8668 acx_configure_dir.m4.
8669 * acinclude.m4: Include acx_configure_dir.m4.
8670 * acx_configure_dir.m4: New file.
8671 * aclocal.m4: Regenerate.
8672 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8673 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8674 (GNULIB): New variable.
8675 (GNULIB_STDINT_H): Adjust.
8676 (AC_OUTPUT): Don't output gnulib/Makefile.
8677 * gdb/defs.h: Include build-gnulib/config.h.
8678 * aclocal.m4: Regenerate.
8679 * config.in: Regenerate.
8680 * configure: Regenerate.
8681
8682 * gnulib/Makefile.in: New file.
8683 * gnulib/configure.ac: New file.
8684 * gnulib/aclocal.m4: New file.
8685 * gnulib/config.in: New file.
8686 * gnulib/configure: New file.
8687 * gnulib/: Re-run gnulib-tool to adjust.
8688
8689 2012-04-19 Doug Evans <dje@google.com>
8690
8691 * cleanups.h (struct cleanup): Move to cleanups.c.
8692 (make_cleanup_dtor_ftype): New typedef.
8693 (make_cleanup_dtor): Use it.
8694 (ALL_CLEANUPS): Replace with ...
8695 (all_cleanups): ... this. Declare. All uses updated.
8696 * cleanups.c: #include "gdb_assert.h".
8697 (sentinel_cleanup): New static global.
8698 (SENTINEL_CLEANUP): Define.
8699 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8700 (make_my_cleanup2): Assert result is non-NULL.
8701 (all_cleanups): New function.
8702 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8703 of NULL.
8704
8705 2012-04-19 Pedro Alves <palves@redhat.com>
8706
8707 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8708 Adjust paths to gnulib imported files.
8709
8710 2012-04-19 Pedro Alves <palves@redhat.com>
8711
8712 * gnulib/: Move whole directory ...
8713 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8714 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8715 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8716 (aclocal_m4_deps): Adjust.
8717 * aclocal.m4: Regenerate.
8718 * configure: Regenerate.
8719 * configure.ac: Adjust AC_OUTPUT output.
8720
8721 2012-04-19 Yao Qi <yao@codesourcery.com>
8722
8723 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8724 (vec.o): New rule.
8725 * vec.c: Move it ...
8726 * common/vec.c: ... here.
8727 * vec.h: Move it ...
8728 * common/vec.h: ... here.
8729
8730 2012-04-19 Yao Qi <yao@codesourcery.com>
8731
8732 * gdb-code-style.el: New.
8733
8734 2012-04-18 Pedro Alves <palves@redhat.com>
8735
8736 Update gnulib from latest git.
8737 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8738
8739 * gnulib/Makefile.am: Update.
8740 * gnulib/dummy.c: Update.
8741 * gnulib/extra/arg-nonnull.h: Update.
8742 * gnulib/extra/c++defs.h: Update.
8743 * gnulib/extra/update-copyright: Update.
8744 * gnulib/extra/warn-on-use.h: Update.
8745 * gnulib/inttypes.in.h: Update.
8746 * gnulib/m4/00gnulib.m4: Update.
8747 * gnulib/m4/extensions.m4: Update.
8748 * gnulib/m4/gnulib-cache.m4: Update.
8749 * gnulib/m4/gnulib-common.m4: Update.
8750 * gnulib/m4/gnulib-comp.m4: Update.
8751 * gnulib/m4/gnulib-tool.m4: Update.
8752 * gnulib/m4/include_next.m4: Update.
8753 * gnulib/m4/inttypes-pri.m4: Update.
8754 * gnulib/m4/inttypes.m4: Update.
8755 * gnulib/m4/longlong.m4: Update.
8756 * gnulib/m4/memchr.m4: Update.
8757 * gnulib/m4/memmem.m4: Update.
8758 * gnulib/m4/mmap-anon.m4: Update.
8759 * gnulib/m4/multiarch.m4: Update.
8760 * gnulib/m4/onceonly.m4: Update.
8761 * gnulib/m4/stddef_h.m4: Update.
8762 * gnulib/m4/stdint.m4: Update.
8763 * gnulib/m4/string_h.m4: Update.
8764 * gnulib/m4/warn-on-use.m4: Update.
8765 * gnulib/m4/wchar_h.m4: Update.
8766 * gnulib/m4/wchar_t.m4: Update.
8767 * gnulib/m4/wint_t.m4: Update.
8768 * gnulib/memchr.c: Update.
8769 * gnulib/memmem.c: Update.
8770 * gnulib/stddef.in.h: Update.
8771 * gnulib/stdint.in.h: Update.
8772 * gnulib/str-two-way.h: Update.
8773 * gnulib/string.in.h: Update.
8774 * gnulib/wchar.in.h: Update.
8775
8776 * gnulib/extra/arg-nonnull.h: Delete.
8777 * gnulib/extra/c++defs.h: Delete.
8778 * gnulib/extra/warn-on-use.h: Delete.
8779 * gnulib/m4/wchar_h.m4: Delete.
8780 * gnulib/m4/wint_t.m4: Delete.
8781 * gnulib/wchar.in.h: Delete.
8782
8783 * gnulib/extra/snippets/arg-nonnull.h: New.
8784 * gnulib/extra/snippets/c++defs.h: New.
8785 * gnulib/extra/snippets/warn-on-use.h: New.
8786
8787 * aclocal.m4: Regenerate.
8788 * config.in: Regenerate.
8789 * configure: Regenerate.
8790 * gnulib/Makefile.in: Regenerate.
8791
8792 2012-04-18 Pedro Alves <palves@redhat.com>
8793
8794 Reimport the update-copyright module from gnulib
8795 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8796
8797 * configure: Regenerate.
8798 * gnulib/Makefile.am: Update.
8799 * gnulib/Makefile.in: Regenerate.
8800 * gnulib/extra/update-copyright: Update.
8801 * gnulib/m4/gnulib-cache.m4: Update.
8802 * gnulib/m4/gnulib-comp.m4: Update.
8803
8804 2012-04-18 Tristan Gingold <gingold@adacore.com>
8805
8806 * configure.ac (aix): Put -lpthread into libs.
8807 * configure: Regenerate.
8808
8809 2012-04-18 Tom Tromey <tromey@redhat.com>
8810
8811 * linespec.c (convert_linespec_to_sals): Don't use
8812 SYMBOL_OBJ_SECTION.
8813 (compare_msymbols): Arguments are minsym_and_objfile, not
8814 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8815
8816 2012-04-18 Pedro Alves <palves@redhat.com>
8817
8818 Revert gnulib/ part of:
8819 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8820 Copyright year update in most files (performed by copyright.sh).
8821
8822 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8823
8824 Fix 64-bit constants on 32-bit hosts.
8825 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8826 from unsigned long to ULONGEST.
8827 (read_signed_leb128): Change declaration return type from long to
8828 LONGEST.
8829 (dwarf2_const_value_attr): Change declaration parameter value from long
8830 to LONGEST.
8831 (dwarf2_compute_name): Change variable value from long to LONGEST.
8832 (read_unsigned_leb128): Change return type, variable result and some
8833 casts from unsigned long to ULONGEST.
8834 (read_signed_leb128): Change return type, variable result and some
8835 casts from long to LONGEST.
8836 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8837 value from long to LONGEST.
8838 (dwarf2_const_value): Change variable value from long to LONGEST.
8839 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8840 plongest and hex_string.
8841 * symtab.h (struct general_symbol_info): Change ivalue from long to
8842 LONGEST, remove the comment.
8843 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8844 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8845
8846 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8847
8848 PR symtab/7259:
8849 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8850 * ada-lang.c (ada_discrete_type_high_bound)
8851 (ada_discrete_type_low_bound): Fix function comment. Use
8852 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8853 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8854 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8855 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8856 Use TYPE_FIELD_ENUMVAL.
8857 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8858 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8859 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8860 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8861 TYPE_CODE_ENUM.
8862 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8863 * dwarf2read.c (process_enumeration_scope): Likewise.
8864 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8865 field.bitpos.
8866 (class StructMainTypePrettyPrinter): Support also
8867 FIELD_LOC_KIND_ENUMVAL.
8868 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8869 TYPE_CODE_ENUM.
8870 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8871 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8872 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8873 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8874 field enumval.
8875 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8876 accommodate enumval.
8877 (struct call_site): Adjust loc_kind to accommodate enumval.
8878 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8879 (TYPE_FIELD_ENUMVAL): New macros.
8880 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8881 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8882 TYPE_CODE_ENUM.
8883 * p-typeprint.c (pascal_type_print_base): Likewise.
8884 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8885 enumval.
8886 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8887 * python/py-type.c (convert_field): New variable addrstring. Use
8888 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8889 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8890 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8891 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8892 TYPE_CODE_ENUM.
8893 * valprint.c (generic_val_print): Likewise.
8894
8895 2012-04-17 Doug Evans <dje@google.com>
8896
8897 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8898
8899 * dwarf2read.c: Whitespace fixes.
8900 (lookup_signatured_type): Tweak comment.
8901 (get_die_type_at_offset): Fix comment.
8902
8903 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8904
8905 * xcoffread.c (xcoff_secnum_to_sections): New function.
8906 (secnum_to_section, secnum_to_bfd_section): Reimplement
8907 using xcoff_secnum_to_sections. Rename "secnum" parameter
8908 into "n_scnum".
8909 (RECORD_MINIMAL_SYMBOL): Delete.
8910 (record_minimal_symbol): New function.
8911 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8912 by call to record_minimal_symbol and set misc_func_recorded
8913 to 1. Set last_csect_sec to the XCOFF section index instead
8914 of GDB's section_offset index. Update calls to
8915 prim_record_minimal_symbol_and_info to pass the BFD section
8916 as well.
8917
8918 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8919
8920 * xcoffread.c (read_xcoff_symtab): Delete variables
8921 last_csect_val and last_csect_sec and associated code.
8922
8923 2012-04-17 Doug Evans <dje@google.com>
8924
8925 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8926 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8927 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8928 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8929
8930 * cleanups.h: New file.
8931 * cleanups.c: New file.
8932 * Makefile.in (SFILES): Add cleanups.c.
8933 (HFILES_NO_SRCDIR): Add cleanups.h.
8934 (COMMON_OBS): Add cleanups.o.
8935 * defs.h (struct cleanup): Moved to cleanups.h.
8936 (do_cleanups,do_final_cleanups): Ditto.
8937 (discard_cleanups,discard_final_cleanups): Ditto
8938 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8939 (save_cleanups,save_final_cleanups): Ditto.
8940 (restore_cleanups,restore_final_cleanups): Ditto.
8941 (null_cleanup): Ditto.
8942 (make_my_cleanup,make_my_cleanup2): Ditto.
8943 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8944 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8945 (do_cleanups,do_final_cleanups): Ditto.
8946 (discard_cleanups,discard_final_cleanups): Ditto
8947 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8948 (save_cleanups,save_final_cleanups): Ditto.
8949 (restore_cleanups,restore_final_cleanups): Ditto.
8950 (null_cleanup): Ditto.
8951 (make_my_cleanup,make_my_cleanup2): Ditto.
8952 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8953
8954 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8955 make_my_cleanup.
8956 (make_cleanup_dyn_string_delete): Ditto.
8957 (make_cleanup_ui_file_delete): Ditto.
8958 (make_cleanup_ui_out_redirect_pop): Ditto.
8959 (make_cleanup_free_section_addr_info): Ditto.
8960 (make_cleanup_restore_integer): Ditto.
8961 (make_cleanup_unpush_target): Ditto.
8962 (make_cleanup_value_free_to_mark): Ditto.
8963 (make_cleanup_value_free): Ditto.
8964 (make_cleanup_free_so): Ditto.
8965
8966 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8967
8968 New option "set debug auto-load".
8969 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8970 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8971 (auto_load_safe_path_vec_update)
8972 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8973 if DEBUG_AUTO_LOAD.
8974 (file_is_auto_load_safe): New parameters debug_fmt and ....
8975 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8976 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8977 caller by explanatory string.
8978 (_initialize_auto_load): Register "set debug auto-load".
8979 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8980 and ....
8981 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8982 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8983 by explanatory string.
8984 * main.c (captured_main): Likewise.
8985 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8986 (source_section_scripts): Likewise.
8987
8988 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8989
8990 New option "set auto-load safe-path".
8991 * NEWS: New commands "set auto-load safe-path"
8992 and "show auto-load safe-path".
8993 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8994 (auto_load_safe_path, auto_load_safe_path_vec)
8995 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8996 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8997 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8998 (source_gdb_script_for_objfile): New variable is_safe. Call
8999 file_is_auto_load_safe. Return if it is not.
9000 (struct loaded_script): New field loaded.
9001 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
9002 (print_script): Use LOADED indicator instead of FULL_PATH. Change
9003 output "Missing" to "No".
9004 (_initialize_auto_load): New variable cmd. Initialize
9005 auto_load_safe_path. Register "set auto-load safe-path",
9006 "show auto-load safe-path" and "add-auto-load-safe-path".
9007 * auto-load.h (maybe_add_script): Add parameter loaded.
9008 (file_is_auto_load_safe): New declaration.
9009 * config.in: Regenerate.
9010 * configure: Regenerate.
9011 * configure.ac: New parameters --with-auto-load-safe-path
9012 and --without-auto-load-safe-path.
9013 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9014 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
9015 * main.c (captured_main): Check file_is_auto_load_safe for
9016 LOCAL_GDBINIT.
9017 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
9018 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
9019 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
9020 not.
9021
9022 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9023
9024 auto-load: Implementation.
9025 * NEWS: New descriptions for "info auto-load",
9026 "info auto-load gdb-scripts", "info auto-load python-scripts",
9027 "info auto-load local-gdbinit" and "info auto-load libthread-db".
9028 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
9029 and "show auto-load-scripts". New description for "set auto-load",
9030 "show auto-load", "set auto-load gdb-scripts",
9031 "show auto-load gdb-scripts", "set auto-load python-scripts",
9032 "show auto-load python-scripts", "set auto-load local-gdbinit",
9033 "show auto-load local-gdbinit", "set auto-load libthread-db" and
9034 "show auto-load libthread-db".
9035 * auto-load.c: Remove include python/python-internal.h. Add includes
9036 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
9037 cli/cli-setshow.h.
9038 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
9039 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
9040 (gdbpy_global_auto_load): Rename to ...
9041 (global_auto_load): ... here.
9042 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
9043 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
9044 (script_language_gdb, source_gdb_script_for_objfile): New.
9045 (struct loaded_script): New field language.
9046 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
9047 LANGUAGE.
9048 (maybe_add_script): Add parameter language. Drop redundant
9049 entry.full_path initialization. Initialize entry.language and
9050 (*slot)->language.
9051 (auto_load_objfile_script): Change parameter suffix to language.
9052 Remove the call of maybe_add_script.
9053 Call language->source_script_for_objfile.
9054 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
9055 New.
9056 (collect_matching_scripts): Adjust it for
9057 struct collect_matching_scripts_data.
9058 (auto_load_info_scripts_pattern_nl): New variable.
9059 (info_auto_load_scripts): Rename to ...
9060 (auto_load_info_scripts): ... here, add parameter language. Adjust it
9061 for struct collect_matching_scripts_data.
9062 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
9063 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
9064 (auto_load_show_cmdlist_get, info_auto_load_cmd)
9065 (auto_load_info_cmdlist_get): New.
9066 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
9067 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
9068 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
9069 "info auto-load local-gdbinit".
9070 * auto-load.h (struct script_language): New.
9071 (gdbpy_global_auto_load): Rename to ...
9072 (global_auto_load): ... here.
9073 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
9074 (auto_load_local_gdbinit_loaded): New declarations.
9075 (maybe_add_script): New parameter language.
9076 (auto_load_objfile_script): Change parameter suffix to language.
9077 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
9078 (auto_load_info_scripts, auto_load_set_cmdlist_get)
9079 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
9080 declarations.
9081 * linux-thread-db.c: Include auto-load.h and ctype.h.
9082 (auto_load_thread_db, show_auto_load_thread_db): New.
9083 (struct thread_db_info): New field filename.
9084 (delete_thread_db_info): Call xfree for FILENAME.
9085 (try_thread_db_load): Initialize FILENAME.
9086 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
9087 if !AUTO_LOAD_THREAD_DB.
9088 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
9089 (_initialize_thread_db): Install auto_load_thread_db
9090 as "set auto-load libthread-db" and install info_auto_load_libthread_db
9091 as "info auto-load libthread-db".
9092 * main.c (captured_main): Rename gdbpy_global_auto_load to
9093 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
9094 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
9095 (print_gdb_help): Extend the help for 'local init file'.
9096 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
9097 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
9098 (auto_load_scripts): Rename to ...
9099 (auto_load_python_scripts): ... here, update the comment.
9100 (gdbpy_load_auto_script_for_objfile): New declaration.
9101 (show_auto_load_python_scripts, script_language_python)
9102 (gdbpy_load_auto_script_for_objfile): New.
9103 (source_section_scripts): Refactor the code.
9104 (load_auto_scripts_for_objfile): Rename to ...
9105 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
9106 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
9107 (info_auto_load_python_scripts): New.
9108 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
9109 Rename "set auto-load-scripts" to "set auto-load python-scripts".
9110 Register "set auto-load-scripts" as its deprecated alias. Register
9111 "info auto-load python-scripts". Register "info auto-load-scripts" as
9112 its deprecated alias.
9113 (load_auto_scripts_for_objfile): Rename to ...
9114 (gdbpy_load_auto_scripts_for_objfile): ... here.
9115 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
9116 (gdbpy_load_auto_scripts_for_objfile): ... here.
9117
9118 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9119
9120 auto-load: Move files.
9121 * Makefile.in (SFILES): Add auto-load.c.
9122 (HFILES_NO_SRCDIR): Add auto-load.h.
9123 (COMMON_OBS): Add auto-load.o.
9124 (distclean): Change .gdbinit for gdb-gdb.gdb.
9125 * auto-load.c: New file, with parts from python/py-auto-load.c.
9126 * auto-load.h: New file, with parts from python/python.h.
9127 * configure: Regenerate.
9128 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
9129 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
9130 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
9131 * main.c: Include auto-load.h.
9132 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
9133 command.h, observer.h and progspace.h to auto-load.c. Add include
9134 auto-load.h.
9135 (gdbpy_global_auto_load, struct auto_load_pspace_info)
9136 (struct loaded_script, auto_load_pspace_data)
9137 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
9138 (hash_loaded_script_entry, eq_loaded_script_entry)
9139 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
9140 (maybe_add_script): Move to auto-load.c.
9141 (source_section_scripts): Change maybe_add_script parameters passing,
9142 use script_not_found_warning_print.
9143 (clear_section_scripts, auto_load_objfile_script)
9144 (auto_load_new_objfile, loaded_script_ptr)
9145 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
9146 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
9147 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
9148 auto_load_new_objfile and info_auto_load_scripts initizations to
9149 auto-load.c.
9150 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
9151
9152 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9153
9154 Code cleanup.
9155 * charset.c (find_charset_names): Remove variables ix and elt.
9156 Use free_char_ptr_vec.
9157 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
9158 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9159 debugdir_end. New variable debugdir_len.
9160 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
9161 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
9162 declarations.
9163 * progspace.c (clear_program_space_solib_cache): Remove variables ix
9164 and elt. Use free_char_ptr_vec.
9165 * source.c (add_path): Remove variables argv, arg and argv_index.
9166 New variables dir_vec, back_to, ix and name.
9167 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
9168 make_cleanup_freeargv. Remove variable separator. Simplify the code
9169 no longer expecting DIRNAME_SEPARATOR.
9170 (openp): Remove variable p, p1 and len. New variables dir_vec,
9171 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
9172 no longer expecting DIRNAME_SEPARATOR.
9173 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
9174 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9175 debugdir_end.
9176 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9177 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9178 (dirnames_to_char_ptr_vec): New functions.
9179
9180 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9181
9182 Code cleanup.
9183 * source.c (add_path): Remove always true conditional 'p == 0' and
9184 unindent its code block.
9185
9186 2012-04-17 Pedro Alves <palves@redhat.com>
9187
9188 * gdbtypes.h (FIELD_BITPOS): Rename to ...
9189 (FIELD_BITPOS_LVAL): ... this.
9190 (FIELD_BITPOS): New.
9191 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9192 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9193 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9194 SET_FIELD_BITPOS.
9195 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9196 SET_FIELD_BITPOS.
9197 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9198 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9199 * target-descriptions.c (tdesc_gdb_type): Adjust to use
9200 SET_FIELD_BITPOS.
9201
9202 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9203
9204 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9205 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9206 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9207 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9208 * jv-lang.c (java_link_class_type): Likewise, once.
9209 * stabsread.c (read_enum_type): Likewise.
9210
9211 2012-04-16 Yao Qi <yao@codesourcery.com>
9212
9213 * common/agent.c (agent_run_command): Add one more parameter `len'.
9214 Update callers.
9215 * common/agent.h: Update declaration.
9216 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9217 Update.
9218 (linux_child_static_tracepoint_markers_by_strid): Ditto.
9219
9220 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
9221
9222 PR mi/13393
9223 * value.c (value_actual_type): New function.
9224 * value.h (value_actual_type): New declaration.
9225 * varobj.c (update_type_if_necessary): New function.
9226 (varobj_create): Call value_actual_type instead of
9227 value_type.
9228 (install_dynamic_child): distinct changed and type changed MI variable
9229 objects.
9230 (update_dynamic_varobj_children): Updated for install_dynamic_child
9231 change. All callers updated.
9232 (varobj_update): Support for MI variable object type change if
9233 the value changed and RTTI is used to determine the type.
9234 (create_child_with_value): Call value_actual_type instead of
9235 value_type.
9236 (adjust_value_for_child_access): Extended with a new parameter which
9237 specify whether the given value should be casted to enclosing type.
9238 All callers updated.
9239
9240 2012-04-14 Yao Qi <yao@codesourcery.com>
9241
9242 Import gnulib module inttypes from git
9243 (250b80067c1e1d8faa0c42fb572f721975b929c5)
9244 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
9245 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9246 gnulib/m4/inttypes-pri.m4
9247 * aclocal.m4, config.in, configure: Regenerated.
9248 * gnulib/Makefile.am: Update.
9249 * gnulib/Makefile.in: Update.
9250 * gnulib/m4/gnulib-cache.m4: Update.
9251 * gnulib/m4/gnulib-comp.m4: Update.
9252 * gnulib/inttypes.in.h: New.
9253 * gnulib/m4/inttypes-pri.m4: New.
9254 * gnulib/m4/inttypes.m4: New.
9255
9256 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
9257
9258 * infrun.c (resume): Update PC address to the real PC after
9259 preparing to do displaced stepping.
9260
9261 2012-04-12 Doug Evans <dje@google.com>
9262
9263 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9264 All callers updated.
9265
9266 2012-04-12 Mark Kettenis <kettenis@gnu.org>
9267
9268 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9269
9270 2012-04-12 Doug Evans <dje@google.com>
9271
9272 * dwarf2read.c (create_all_type_units): Renamed from
9273 create_debug_types_hash_table. All callers updated.
9274
9275 * dwarf2read.c (create_signatured_type_table_from_index): Rename
9276 local type_sig to sig_type, type_offset to type_offset_in_tu.
9277 (hash_signatured_type): Renamed from hash_type_signature,
9278 all callers updated.
9279 (eq_signatured_type): Renamed from eq_type_signature,
9280 all callers updated.
9281 (create_debug_types_hash_table): Rename local type_sig to sig_type.
9282 (process_enumeration_scope): Ditto.
9283 (lookup_signatured_type_at_offset): Ditto.
9284 (load_full_type_unit, read_signatured_type): Ditto.
9285
9286 2012-04-12 Yao Qi <yao@codesourcery.com>
9287
9288 * remote.c (async_remote_interrupt): Correct function name in
9289 debug message.
9290 (async_remote_interrupt_twice): Ditto.
9291
9292 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
9293
9294 * source.c (find_and_open_source): Consistently pass resulting
9295 full path through xfullpath.
9296
9297 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9298
9299 Provide more specific displaced-stepping memory error message.
9300 * infrun.c (displaced_step_prepare): New variable status. Call
9301 target_read_memory instead of read_memory, provide more specific
9302 error message.
9303
9304 2012-04-11 Tristan Gingold <gingold@adacore.com>
9305
9306 PR gdb/13901
9307 * darwin-nat.c (darwin_execvp): Revert previous patch.
9308
9309 2012-04-11 Tristan Gingold <gingold@adacore.com>
9310
9311 PR gdb/13901
9312 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9313 in case of change.
9314
9315 2012-04-11 Tristan Gingold <gingold@adacore.com>
9316
9317 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9318 warning.
9319
9320 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9321
9322 New command 'explore' which helps explore values and types in
9323 scope.
9324 * NEWS: Add an entry about the new 'explore' command.
9325 * data-directory/Makefile.in: Add gdb/command/explore.py
9326 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9327 command using the GDB Python API.
9328
9329 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9330
9331 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9332 extension in jump target calculation.
9333
9334 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9335
9336 * mips-tdep.c (mips32_next_pc): Handle JALX.
9337
9338 2012-04-10 Yao Qi <yao@codesourcery.com>
9339
9340 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9341
9342 2012-04-10 Yao Qi <yao@codesourcery.com>
9343
9344 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9345 and gnulib/m4/gnulib-tool.m4.
9346
9347 2012-04-10 Doug Evans <dje@google.com>
9348
9349 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9350 (load_partial_dies): Clarify comment.
9351 (find_partial_die): Support rereading type units.
9352 Clarify CU handling, if we know offset is in CU, don't search for the
9353 containing CU. Add comment regarding memory waste.
9354
9355 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9356
9357 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9358 i386/x32-avx and i386/x32-avx-linux.
9359 (i386/x32-expedite): New.
9360 (i386/x32-linux-expedite): Likewise.
9361 (i386/x32-avx-expedite): Likewise.
9362 (i386/x32-avx-linux-expedite): Likewise.
9363 ($(outdir)/i386/x32.dat): Likewise.
9364 ($(outdir)/i386/x32-linux.dat): Likewise.
9365 ($(outdir)/i386/x32-avx.dat): Likewise.
9366 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9367
9368 * features/i386/x32-avx-linux.xml: New file.
9369 * features/i386/x32-avx.xml: Likewise.
9370 * features/i386/x32-core.xml: Likewise.
9371 * features/i386/x32-linux.xml: Likewise.
9372 * features/i386/x32.xml: Likewise.
9373
9374 * features/i386/x32-avx-linux.c: New. Generated.
9375 * features/i386/x32-avx.c: Likewise.
9376 * features/i386/x32-linux.c: Likewise.
9377 * features/i386/x32.c: Likewise.
9378 * regformats/i386/x32-avx-linux.dat: Likewise.
9379 * regformats/i386/x32-avx.dat: Likewise.
9380 * regformats/i386/x32-linux.dat: Likewise.
9381 * regformats/i386/x32.dat: Likewise.
9382
9383 2012-04-10 Tristan Gingold <gingold@adacore.com>
9384
9385 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9386 code to kill the inferior.
9387
9388 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9389
9390 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9391 defines.
9392 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9393 defines.
9394 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9395 (yyvsp): New defines.
9396 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9397 defines.
9398 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9399 defines.
9400 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9401 defines.
9402 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9403 defines.
9404 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9405 defines.
9406
9407 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9408
9409 * sparc64-tdep.c (sparc64_store_arguments)
9410 (sparc64_store_arguments): Fix coding style.
9411
9412 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9413
9414 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9415 complex floats, adjust some related comments and tighten a related
9416 assertion.
9417 (sparc64_extract_return_value): Handle complex floats.
9418
9419 2012-04-07 Doug Evans <dje@google.com>
9420
9421 * dwarf2read.c (load_partial_dies): Change condition to assert.
9422
9423 2012-04-06 Doug Evans <dje@google.com>
9424
9425 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9426 "mov %rsp,%rbp".
9427
9428 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9429
9430 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9431 fencepost error.
9432 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9433 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9434 architecture.
9435
9436 2012-04-05 Keith Seitz <keiths@redhat.com>
9437
9438 * linespec.c (decode_compound): Remove.
9439 (enum offset_relative_sign): New enum.
9440 (struct line_offset): New struct.
9441 (struct linespec): New struct.
9442 (struct linespec_state): Move file_symtabs,
9443 user_filename, and user_function into struct linespec.
9444 Make result an anonymous struct holding vectors of
9445 symbolp and minsym_and_objfile_d.
9446 Add language member.
9447 (enum ls_token_type): New enum.
9448 (linespec_keywords): New array.
9449 (struct ls_token): New struct.
9450 (struct ls_parser): New struct.
9451 (linespec_lexer_lex_number): New function.
9452 (linespec_lexer_lex_keyword): New function.
9453 (is_ada_operator): New function.
9454 (skip_quote_char): New function.
9455 (copy_token_string): New function.
9456 (is_closing_quote_enclosed): New function.
9457 (find_parameter_list_end): New function.
9458 (linespec_lexer_lex_string): New function.
9459 (linespec_lexer_lex_one): New function.
9460 (linespec_lexer_consume_token): New function.
9461 (linespec_lexer_peek_token): New function.
9462 (cplusplus_error): Remove unused function.
9463 (find_methods): Update comment.
9464 (find_toplevel_char): Return const.
9465 (is_objc_method_format): Remove unused function.
9466 (find_toplevel_string): New function.
9467 (is_linespec_boundary): Remove.
9468 (symbol_not_found_error): New function.
9469 (find_method_overload_end): Remove function.
9470 (unexpected_linespec_error): New function.
9471 (keep_name_info): Remove.
9472 (linespec_parse_line_offset): New function.
9473 (linespec_parse_basic): New function.
9474 (canonicalize_linespec): New function.
9475 (decode_line_internal): Remove.
9476 (create_sals_line_offset): New function adapted from
9477 decode_all_digits.
9478 (convert_linespec_to_sals): New function.
9479 (parse_linespec): New function.
9480 (linespec_parser_new): New function.
9481 (linespec_state_destructor): Change parameter type to
9482 struct linespec_state *.
9483 Add language parameter.
9484 Remove freeing of moved members.
9485 (linespec_parser_delete): New function.
9486 (decode_line_full): Use parse_linespec and linespec_parser_new.
9487 (decode_line_1): Likewise.
9488 (decode_indirect): Rename to ...
9489 (linespec_expression_to_pc): ... this and rewrite
9490 to simply find CORE_ADDR, storing this result for later
9491 conversion to SALs.
9492 (locate_first_half): Remove.
9493 (deocde_objc): Add parameter LS.
9494 Initialize new struct collect_info members.
9495 Handle minimal symbols, too.
9496 (decode_compound): Delete.
9497 (lookup_prefix_sym): Rewrite.
9498 (compare_msymbols): New function.
9499 (find_method): Rewrite.
9500 Do not call cplusplus_error.
9501 (symtabs_from_filename): Rewrite.
9502 (collect_function_symbols): Delete.
9503 (find_function_symbols): Rewrite without ARGPTR-style
9504 processing.
9505 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9506 (decode_dollar): Adapted and renamed to ...
9507 (linespec_parse_variable): ... this.
9508 (find_linespec_symbols): New function.
9509 (decode_label): Adapted and renamed to ...
9510 (find_label_symbols): ... this.
9511 (decode_digits_list_mode): Add and use LS argument.
9512 (decode_digits_ordinary): Likewise.
9513 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9514 If in list mode, allow any symbol class. Otherwise, only
9515 permit LOC_BLOCK symbols.
9516 (minsym_found): Update comments.
9517 (search_minsyms_for_name): Do not convert the matching symbol
9518 into a SAL. Simply push the symbol and objfile into the
9519 result vector.
9520 (decode_variable): Delete. Contents adapted into
9521 find_linespec_symbols.
9522
9523 * cp-support.c (SKIP_SPACE): Remove.
9524 (operator_tokens): Remove unused global.
9525 (cp_validate_operator): Remove.
9526 * cp-support.h (cp_validate_operator): Remove declaration.
9527
9528 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9529
9530 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9531 for TYPE_VPTR_FIELDNO.
9532 * valprint.c (valprint_check_validity): Make it global, move the
9533 function comment ...
9534 * value.h (valprint_check_validity): ... to this new declaration.
9535
9536 2012-04-02 Tristan Gingold <gingold@adacore.com>
9537
9538 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9539 the STATE32 api for i386 state.
9540 (i386_darwin_store_inferior_registers): Likewise.
9541
9542 2012-04-02 Tristan Gingold <gingold@adacore.com>
9543
9544 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9545 SS offset.
9546 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9547 format_string.
9548
9549 2012-04-02 Tristan Gingold <gingold@adacore.com>
9550
9551 PR gdb/13901
9552 * darwin-nat.c (darwin_execvp): Set binary preference.
9553
9554 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9555
9556 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9557
9558 2012-03-30 Tom Tromey <tromey@redhat.com>
9559
9560 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9561 of TRY_CATCH. Fix error handling.
9562 * python/py-value.c (convert_value_from_python): Move 'old'
9563 declaration to innermost scope.
9564
9565 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9566 Andrey Smirnov <andrew.smirnov@gmail.com>
9567
9568 -Wshadow warning fix.
9569 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9570 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9571 Adjust code accordingly.
9572
9573 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9574
9575 * ada-lang.c (symbol_completion_add): Rename parameter
9576 "encoded" into "encoded_p". Ajust code and documentation
9577 accordingly.
9578
9579 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9580 Andrey Smirnov <andrew.smirnov@gmail.com>
9581
9582 -Wshadow warning fix.
9583 * ada-lang.c (symbol_completion_add): Rename parameter
9584 "wild_match" into wild_match_p. Update code and documentation
9585 accordingly.
9586
9587 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9588
9589 * ada-lang.c (symbol_completion_match): Rename parameter
9590 "encoded" into "encoded_p". Ajust code and documentation
9591 accordingly.
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 (symbol_completion_match): Rename parameter
9598 "wild_match" into "wild_match_p". Adjust code and function
9599 documentation accordingly.
9600
9601 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9602 Andrey Smirnov <andrew.smirnov@gmail.com>
9603
9604 -Wshadow warning fix.
9605 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9606 "symbol_info" into "info". Adjust code accordingly.
9607 (ada_lookup_symbol): Likewise.
9608
9609 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9610
9611 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9612 of this function's documentation.
9613
9614 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9615 Andrey Smirnov <andrew.smirnov@gmail.com>
9616
9617 -Wshadow warning fix.
9618 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9619 variable into "wild_match_p". Adjust code accordingly.
9620
9621 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9622 Andrey Smirnov <andrew.smirnov@gmail.com>
9623
9624 -Wshadow warning fix.
9625 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9626 parameter into "wild_match_p". Adjust code accordingly.
9627 Document this parameter in the function description.
9628
9629 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9630 Andrey Smirnov <andrew.smirnov@gmail.com>
9631
9632 -Wshadow warning fix.
9633 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9634 "wild_match" parameter to "wild_match_p" (-Wshadow).
9635
9636 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9637
9638 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9639 in function documentation.
9640
9641 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9642 Andrey Smirnov <andrew.smirnov@gmail.com>
9643
9644 -Wshadow warning fix.
9645 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9646 variable into wild_match_p. Adjust code accordingly.
9647
9648 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9649 Andrey Smirnov <andrew.smirnov@gmail.com>
9650
9651 * ada-valprint.c (ada_val_print_1): Move the code handling
9652 TYPE_CODE_ENUM inside its own lexical block. Declare
9653 variables len and val there, instead of in the function's
9654 top level block. Avoid declaring deref_val again in a way
9655 that shadows another variable of the same name declared
9656 in one of the up-level blocks. Just re-use the up-level
9657 variable instead.
9658
9659 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9660
9661 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9662 Replace block_found argument by symbol_info. Adjust
9663 implementation accordingly. Add function documentation.
9664 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9665 Fix documentation.
9666 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9667 * ada-exp.y (write_object_renaming): Adjust to new
9668 ada_lookup_encoded_symbol API.
9669
9670 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9671
9672 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9673 documentation.
9674
9675 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9676
9677 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9678 (v850_register_name): Add the mpu and fpu register names.
9679 (v850e_register_name): Add the mpu and fpu register names.
9680 (v850e2_register_name): New function.
9681 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9682 bfd_mach_v850e2v3.
9683
9684 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9685
9686 * NEWS: Add entry for Ada varobj support.
9687
9688 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9689
9690 * varobj.c (default_value_is_changeable_p): New function,
9691 extracted from varobj_value_is_changeable_p. Add declaration.
9692 (ada_value_is_changeable_p): New function, extracted from
9693 varobj_value_is_changeable_p. Add declaration.
9694 (struct language_specific): New field "value_is_changeable_p".
9695 (languages): Add entries for new field.
9696 (varobj_create): Set language before calling install_new_value.
9697 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9698 "value_is_changeable_p" language callback.
9699
9700 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9701
9702 * ada-varobj.h, ada-varobj.c: New files.
9703 * Makefile.in (SFILES): Add ada-varobj.c.
9704 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9705 (COMMON_OBS): Add ada-varobj.o.
9706
9707 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9708
9709 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9710 (struct language_specific): New field "value_has_mutated".
9711 (languages): Set field "value_has_mutated" in each entry of array.
9712 (varobj_value_has_mutated): New function.
9713 (varobj_udpdate): Add handling of type mutation.
9714 (value_of_root): Add handling of type mutation.
9715 (ada_value_has_mutated): New function.
9716
9717 2012-03-28 Pedro Alves <palves@redhat.com>
9718
9719 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9720 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9721
9722 2012-03-28 Tom Tromey <tromey@redhat.com>
9723
9724 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9725 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9726 before returning.
9727
9728 2012-03-28 Tom Tromey <tromey@redhat.com>
9729
9730 * .dir-locals.el: New file.
9731
9732 2012-03-28 Pedro Alves <palves@redhat.com>
9733
9734 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9735
9736 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9737
9738 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9739 handling for r0.
9740
9741 2012-03-27 Pedro Alves <palves@redhat.com>
9742
9743 Eliminate struct ui_stream.
9744
9745 * ui-out.h (struct ui_stream): Delete.
9746 (ui_out_field_stream): Adjust prototype.
9747 (ui_out_stream_new, ui_out_stream_delete)
9748 (make_cleanup_ui_out_stream_delete): Delete declarations.
9749 * ui-out.c (ui_out_field_stream): Change prototype to take a
9750 ui_file instead of a ui_stream. Adjust.
9751 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9752 (make_cleanup_ui_out_stream_delete): Delete.
9753 * breakpoint.c (print_breakpoint_location)
9754 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9755 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9756 * disasm.c (dump_insns): Ditto.
9757 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9758 prototype.
9759 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9760 ui_stream/ui_out_stream_new.
9761 * infcmd.c (print_return_value): Ditto.
9762 * osdata.c (info_osdata_command): Don't allocate a local
9763 ui_stream.
9764 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9765 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9766 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9767 allocate a local ui_stream.
9768 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9769 instead of ui_stream/ui_out_stream_new.
9770 (list_args_or_locals): Don't allocate a local ui_stream.
9771 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9772 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9773 ui_stream/ui_out_stream_new.
9774 * cli/cli-setshow.c (do_setshow_command): Ditto.
9775
9776 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9777
9778 * arm-linux-tdep.c (arm_linux_init_abi): Call
9779 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9780 * arm-tdep.c (arm_process_record): New function.
9781 (deallocate_reg_mem): New function.
9782 (decode_insn): New function.
9783 (thumb_record_branch): New function.
9784 (thumb_record_ldm_stm_swi(): New function.
9785 (thumb_record_misc): New function.
9786 (thumb_record_ld_st_stack): New function.
9787 (thumb_record_ld_st_imm_offset): New function.
9788 (thumb_record_ld_st_reg_offset(): New function.
9789 (thumb_record_add_sub_cmp_mov): New function.
9790 (thumb_record_shift_add_sub): New function.
9791 (arm_record_coproc_data_proc): New function.
9792 (arm_record_coproc): New function.
9793 (arm_record_b_bl): New function.
9794 (arm_record_ld_st_multiple): New function.
9795 (arm_record_ld_st_reg_offset): New function.
9796 (arm_record_ld_st_imm_offset): New function.
9797 (arm_record_data_proc_imm): New function.
9798 (arm_record_data_proc_misc_ld_str): New function.
9799 (arm_record_extension_space): New function.
9800 (arm_record_strx): New function.
9801 (sbo_sbz): New function.
9802 (struct insn_decode_record): New structure for arm insn record.
9803 (REG_ALLOC): New macro for reg allocations.
9804 (MEM_ALLOC): New macro for memory allocations.
9805 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9806
9807 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9808
9809 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9810 (store_register): Likewise.
9811
9812 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9813
9814 * MAINTAINERS (Write After Approval): Add myself to the list.
9815
9816 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9817
9818 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9819 Describe also the option "auto".
9820
9821 2012-03-22 Richard Henderson <rth@redhat.com>
9822
9823 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9824 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9825
9826 2012-03-22 Richard Henderson <rth@redhat.com>
9827
9828 * jit.c (jit_read_code_entry): Compute alignment and offset of
9829 int64_t member before computing entry_size.
9830
9831 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9832
9833 Python scripting: Add new method Value.referenced_value to
9834 gdb.Value which can dereference pointer as well as reference
9835 values.
9836 * NEWS: Add entry under 'Python scripting' about the new method
9837 Value.referenced_value on gdb.Value objects.
9838 * python/py-value.c (valpy_referenced_value): New function
9839 defining a new method on gdb.Value objects which can dereference
9840 pointer and reference values.
9841
9842 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9843
9844 * MAINTAINERS (Write After Approval): Add myself to the list.
9845
9846 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9847
9848 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9849 in addition to "main".
9850
9851 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9852
9853 * expression.h (op_name): Add declaration.
9854 * expprint.c (op_name): Remove declaration. Make non-static.
9855 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9856
9857 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9858
9859 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9860 of struct siginfo.
9861 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9862 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9863 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9864 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9865 (linux_nat_get_siginfo): Likewise.
9866 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9867 (linux_nat_get_siginfo): Likewise.
9868 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9869 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9870 * procfs.c (gdb_siginfo_t): Likewise.
9871
9872 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9873
9874 * .gitignore: Ignore more files.
9875
9876 2012-03-20 Pedro Alves <palves@redhat.com>
9877
9878 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9879 returns.
9880
9881 2012-03-20 Yao Qi <yao@codesourcery.com>
9882
9883 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9884 comment.
9885
9886 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9887
9888 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9889 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9890 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9891 sect_offset.
9892 * dwarf2expr.h (cu_offset, sect_offset): New types.
9893 (struct dwarf_expr_context_funcs) <dwarf_call>
9894 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9895 sect_offset.
9896 (struct dwarf_expr_context) <len>: Improve the comment.
9897 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9898 cu_offset and sect_offset.
9899 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9900 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9901 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9902 * dwarf2loc.h: Include dwarf2expr.h.
9903 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9904 and sect_offset.
9905 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9906 Improve the comment.
9907 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9908 (struct signatured_type, struct line_header, struct partial_die_info)
9909 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9910 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9911 (get_die_type_at_offset, create_cus_from_index)
9912 (create_signatured_type_table_from_index, dw2_get_file_names)
9913 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9914 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9915 (create_debug_types_hash_table, process_psymtab_comp_unit)
9916 (load_partial_comp_unit, create_all_comp_units)
9917 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9918 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9919 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9920 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9921 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9922 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9923 (find_partial_die, read_attribute_value, lookup_die_type)
9924 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9925 (is_ref_attr): New function comment.
9926 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9927 Use cu_offset and sect_offset.
9928 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9929 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9930 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9931 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9932 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9933 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9934 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9935 sect_offset.
9936
9937 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9938
9939 Code cleanup.
9940 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9941 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9942 with xfree.
9943 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9944
9945 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9946
9947 * NEWS: Describe new options --init-command=FILE, -ix and
9948 --init-eval-command=COMMAND, -iex.
9949 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9950 CMDARG_INIT_COMMAND.
9951 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9952 "init-command", "init-eval-command", "ix" and "iex" to the variable
9953 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9954 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9955 (print_gdb_help): Describe --init-command=FILE, -ix and
9956 --init-eval-command=COMMAND, -iex.
9957
9958 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9959
9960 Code cleanup.
9961 * main.c (struct cmdarg): Move it here from main. Add more comments.
9962 (cmdarg_s, VEC (cmdarg_s)): New.
9963 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9964 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9965 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9966 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9967 of CMDARG.
9968
9969 2012-03-19 Tom Tromey <tromey@redhat.com>
9970
9971 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9972
9973 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9974
9975 PR symtab/13777
9976 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9977 GCC >=4.5.
9978
9979 2012-03-16 Chris January <chris.january@allinea.com>
9980
9981 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9982 of clear.
9983
9984 2012-03-16 Chris January <chris.january@allinea.com>
9985
9986 * source.c (add_path): Use memmove instead of strcpy because the
9987 strings overlap.
9988
9989 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9990
9991 * value.h (set_value_parent): Add declaration.
9992 * value.c (set_value_parent): New function.
9993 (value_address): If VALUE->PARENT is not NULL, then use it as
9994 the base address instead of VALUE->LOCATION.address.
9995 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9996 the same as OBJ's address. Adjust V's offset accordingly.
9997 Set V's parent.
9998
9999 2012-03-16 Gary Benson <gbenson@redhat.com>
10000
10001 PR breakpoints/10738
10002 * dwarf2read.c (use_deprecated_index_sections): New global.
10003 (struct partial_die_info): New member may_be_inlined.
10004 (read_partial_die): Set may_be_inlined where appropriate.
10005 (add_partial_subprogram): Add partial symbols for partial
10006 DIEs that may be inlined.
10007 (new_symbol_full): Add inlined subroutines to the current
10008 scope.
10009 (write_psymtabs_to_index): Bump version number.
10010 (dwarf2_read_index): Read only version 6 indices unless
10011 use_deprecated_index_sections is set.
10012 * linespec.c (symbol_and_data_callback): New structure.
10013 (iterate_inline_only): New function.
10014 (iterate_over_all_matching_symtabs): New argument
10015 "include_inline". If nonzero, also call the callback for
10016 symbols representing inlined subroutines.
10017 (lookup_prefix_sym): Pass extra argument to the above.
10018 (find_function_symbols): Likewise.
10019 (add_matching_symbols_to_info): Likewise.
10020 * NEWS: Mention that GDB can now set breakpoints on inlined
10021 functions.
10022
10023 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
10024
10025 * p-typeprint.c (pascal_type_print_method_args):
10026 Fix display of parameter of methods.
10027
10028 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
10029
10030 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
10031 Add missing prototype.
10032
10033 2012-03-16 Yao Qi <yao@codesourcery.com>
10034 Jan Kratochvil <jan.kratochvil@redhat.com>
10035
10036 Fix false compilation warning.
10037 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
10038
10039 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
10040 Pedro Alves <pedro@codesourcery.com>
10041
10042 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
10043 (arm_register_g_packet_guesses): New function.
10044 (arm_gdbarch_init): Don't force a target description with
10045 registers when the executable is detected as M-profile. Instead
10046 set gdbarch->tdep->is_m. Register `g' packet guesses.
10047 (_initialize_arm_tdep): Initialize the new target description.
10048 * features/arm-with-m-fpa-layout.xml: New description.
10049 * features/arm-with-m-fpa-layout.c: New, generated.
10050
10051 2012-03-15 Joel Brobecker <brobecker@adacore.com>
10052
10053 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
10054 Update function description.
10055 (insert_bp_location): Do not wipe bl->target_info out.
10056 * mem-break.c: #include "gdb_string.h".
10057 (default_memory_insert_breakpoint): Do not call target_read_memory
10058 with a pointer to the breakpoint's shadow_contents buffer. Use
10059 a local buffer instead.
10060 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
10061
10062 2012-03-15 Tom Tromey <tromey@redhat.com>
10063
10064 * NEWS: Mention "info vtbl", not "info vtable".
10065 * cp-support.c (info_vtbl_command): Fix comment.
10066 (_initialize_cp_support): Fix text.
10067
10068 2012-03-15 Tom Tromey <tromey@redhat.com>
10069
10070 * cp-valprint.c (cp_print_value_fields): Use
10071 print_function_pointer_address for vtable slot.
10072
10073 2012-03-15 Tom Tromey <tromey@redhat.com>
10074
10075 * gnu-v3-abi.c (struct value_and_voffset): New.
10076 (hash_value_and_voffset, eq_value_and_voffset)
10077 (compare_value_and_voffset, compute_vtable_size)
10078 (print_one_vtable, gnuv3_print_vtable): New functions.
10079 (init_gnuv3_ops): Initialize 'print_vtable' field.
10080 * cp-support.c (info_vtbl_command): New function.
10081 (_initialize_cp_support): Add "info vtbl".
10082 * cp-abi.h (cplus_print_vtable): Declare.
10083 (struct cp_abi_ops) <print_vtable>: New field.
10084 * cp-abi.c (cplus_print_vtable): New function.
10085 * NEWS: Update.
10086
10087 2012-03-15 Tom Tromey <tromey@redhat.com>
10088
10089 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
10090 iterate_over_symbols.
10091
10092 2012-03-14 Doug Evans <dje@google.com>
10093
10094 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
10095 DW_OP_GNU_parameter_ref.
10096
10097 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10098
10099 Fix double prompt of 'interpreter-exec mi'.
10100 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
10101 (mi_interpreter_resume): use it.
10102 (mi_execute_command_input_handler): New function.
10103 * mi/mi-main.c (mi_execute_command): Move prompt printing to
10104 mi_execute_command_input_handler.
10105
10106 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
10107
10108 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
10109 prototype.
10110 (darwin_debug_port_info): Make static.
10111 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
10112 * machoread.c (_initialize_machoread): Add prototype.
10113 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
10114 (i386_darwin_set_control, i386_darwin_get_control)
10115 i386_darwin_dr_set_addr, i386_darwin_get_addr)
10116 i386_darwin_get_status, i386_darwin_get_control):
10117 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
10118
10119 2012-03-13 Joel Brobecker <brobecker@adacore.com>
10120
10121 * ax-gdb.c (gen_usual_unary): Remove special handling of
10122 enum and bool types.
10123
10124 2012-03-13 Joel Brobecker <brobecker@adacore.com>
10125
10126 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
10127
10128 2012-03-13 Joel Brobecker <brobecker@adacore.com>
10129
10130 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
10131
10132 2012-03-13 Chris January <chris.january@allinea.com>
10133
10134 * aix-thread.c (fill_sprs): Store the floating point registers
10135 at the correct offsets into vals.
10136
10137 2012-03-13 Doug Evans <dje@google.com>
10138
10139 * NEWS: Mention symbol-reloading has been deleted.
10140 * symfile.c (symbol_reloading): Delete.
10141 (show_symbol_reloading): Delete.
10142 (_initialize_symfile): Delete set/show symbol-reloading.
10143
10144 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
10145 read_in_chain until we have successfully read it in.
10146 (load_full_comp_unit): Ditto.
10147 (read_signatured_type): Add comment.
10148
10149 2012-03-13 Chris January <chris.january@allinea.com>
10150
10151 * stabsread.c (fix_common_block): Change type of valu argument
10152 to CORE_ADDR.
10153
10154 2012-03-13 Chris January <chris.january@allinea.com>
10155
10156 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
10157 instruction.
10158
10159 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10160
10161 * common/linux-procfs.c (linux_proc_get_int): New, from
10162 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
10163 field.
10164 (linux_proc_get_tgid): Only call linux_proc_get_int.
10165 (linux_proc_get_tracerpid): New.
10166 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
10167 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
10168 linux_proc_pid_has_state.
10169 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
10170 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
10171 (linux_ptrace_attach_warnings): New.
10172 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
10173 New declaration.
10174 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
10175 (linux_nat_attach): New variables ex, buffer, message and message_s.
10176 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10177
10178 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10179
10180 * Makefile.in (linux-ptrace.o): New.
10181 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10182 from linux-nat.c.
10183 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10184 * common/linux-ptrace.c: New file.
10185 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10186 * config/arm/linux.mh: Likewise.
10187 * config/i386/linux.mh: Likewise.
10188 * config/i386/linux64.mh: Likewise.
10189 * config/ia64/linux.mh: Likewise.
10190 * config/m32r/linux.mh: Likewise.
10191 * config/m68k/linux.mh: Likewise.
10192 * config/mips/linux.mh: Likewise.
10193 * config/pa/linux.mh: Likewise.
10194 * config/powerpc/linux.mh: Likewise.
10195 * config/powerpc/ppc64-linux.mh: Likewise.
10196 * config/powerpc/spu-linux.mh: Likewise.
10197 * config/s390/s390.mh: Likewise.
10198 * config/sparc/linux.mh: Likewise.
10199 * config/sparc/linux64.mh: Likewise.
10200 * config/xtensa/linux.mh: Likewise.
10201 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10202 common/linux-procfs.c.
10203 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10204
10205 2012-03-13 Hui Zhu <teawater@gmail.com>
10206 Pedro Alves <palves@redhat.com>
10207
10208 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
10209 CREATE_BREAKPOINT_FLAGS_INSERTED.
10210 (create_breakpoint_sal, create_breakpoints_sal)
10211 (base_breakpoint_create_breakpoints_sal)
10212 (tracepoint_create_breakpoints_sal)
10213 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
10214 down.
10215 (break_command_1, handle_gnu_v3_exceptions, trace_command)
10216 (ftrace_command, strace_command): Adjust.
10217 (create_tracepoint_from_upload): Pass
10218 CREATE_BREAKPOINT_FLAGS_INSERTED.
10219 * breakpoint.h (enum breakpoint_create_flags): New.
10220 (create_breakpoint): New flags parameter.
10221 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10222 * python/py-breakpoint.c (bppy_init): Adjust.
10223 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10224 * spu-tdep.c (spu_catch_start): Adjust.
10225
10226 2012-03-13 Pedro Alves <palves@redhat.com>
10227 Hui Zhu <teawater@gmail.com>
10228 Yao Qi <yao@codesourcery.com>
10229
10230 * remote.c (struct remote_state): New field `starting_up'.
10231 (remote_start_remote): Set and clear it.
10232 (remote_can_download_tracepoint): If starting up, return false.
10233
10234 2012-03-13 Yao Qi <yao@codesourcery.com>
10235
10236 * inferior.h (struct inferior): Remove fields any_syscall_count,
10237 syscalls_counts and total_syscalls_count. Move them to new
10238 struct catch_syscall_inferior_data in breakpoint.c.
10239 * breakpoint.c: Call DEF_VEC_I(int).
10240 (struct catch_syscall_inferior_data): New.
10241 (get_catch_syscall_inferior_data): New.
10242 (catch_syscall_inferior_data_cleanup): New.
10243 (insert_catch_syscall): Update to access data in
10244 struct catch_syscall_inferior_data.
10245 (insert_catch_syscall): Likewise.
10246 (remove_catch_syscall): Likewise.
10247 (remove_catch_syscall): Likewise.
10248 (is_syscall_catchpoint_enabled): Likewise.
10249 (add_catch_command): Likewise.
10250 (_initialize_breakpoint): Register cleanup.
10251 * breakpoint.h: Removed DEF_VEC_I(int).
10252 * dwarf2loc.c: Call DEF_VEC_I(int).
10253 * mi/mi-main.c: Likewise.
10254
10255 2012-03-12 Mark Kettenis <kettenis@gnu.org>
10256
10257 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10258
10259 2012-03-12 Chris January <chris.january@allinea.com>
10260
10261 * aix-thread.c (_initialize_aix_thread): Add prototype.
10262 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10263 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10264
10265 2012-03-12 Joel Brobecker <brobecker@adacore.com>
10266
10267 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10268 include of "amd64-nat.h".
10269
10270 2012-03-12 Tom Tromey <tromey@redhat.com>
10271
10272 * buildsym.c (record_pending_block): Now static.
10273 * buildsym.h: (record_pending_block): Remove.
10274
10275 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
10276
10277 * amd64bsd-nat.c: Include amd64bsd-nat.h.
10278
10279 2012-03-09 Tom Tromey <tromey@redhat.com>
10280
10281 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10282 producer_is_gxx_lt_4_6>: New fields.
10283 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10284
10285 2012-03-09 Tom Tromey <tromey@redhat.com>
10286
10287 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10288
10289 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10290
10291 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10292 prototype.
10293
10294 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10295
10296 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10297
10298 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10299
10300 Fix -Wmissing-prototypes build.
10301 * arm-linux-nat.c (get_thread_id): Make it static.
10302 * xtensa-linux-nat.c (get_thread_id): Likewise.
10303
10304 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10305
10306 * server.c (process_point_options): If a conditional expression
10307 is found, only print a message if remote_debug is nonzero.
10308
10309 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
10310
10311 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10312 of internal error for unknown/unsupported types.
10313
10314 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10315
10316 Fix CU relative vs. absolute DIE offsets.
10317 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10318 offset to offset_in_cu.
10319 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10320 TYPE_OFFSET.
10321 (dwarf2_fetch_die_location_block): Rename parameter offset to
10322 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10323
10324 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10325
10326 * libunwind-frame.c: Rename to ...
10327 * ia64-libunwind-tdep.c: ... here.
10328 * libunwind-frame.h: Rename to ...
10329 * ia64-libunwind-tdep.h: ... here.
10330 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10331 ia64-libunwind-tdep.h.
10332 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10333 * README (--with-libunwind): Rename to ...
10334 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10335 * config.in: Regenerate.
10336 * configure: Regenerate.
10337 * configure.ac: New option --with-libunwind-ia64, make the
10338 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10339 Remove AC_DEFINE for HAVE_LIBUNWIND.
10340 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10341 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10342 Rename libunwind-frame in the general comment.
10343 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10344 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10345 Move forward declarations inside #ifndef. Rename libunwind-frame in
10346 the general comment.
10347 * ia64-tdep.c: Rename libunwind-frame.h #include to
10348 ia64-libunwind-tdep.h.
10349 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10350 (ia64_libunwind_descr): Rename libunwind-frame to
10351 ia64-libunwind-tdep in these function comments.
10352 * ia64-tdep.h: Rename libunwind-frame.h #include to
10353 ia64-libunwind-tdep.h.
10354 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10355 ia64-libunwind-tdep in that data comment.
10356
10357 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10358
10359 * libunwind-frame.h (struct frame_unwind): New declaration.
10360
10361 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10362
10363 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10364 "set breakpoint condition-evaluation" command.
10365
10366 2012-03-08 Tristan Gingold <gingold@adacore.com>
10367
10368 * sparc-stub.c: Move to stubs/
10369 * sh-stub.c: Likewise.
10370 * m68k-stub.c: Likewise.
10371 * m32r-stub.c: Likewise.
10372 * i386-stub.c: Likewise.
10373
10374 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10375
10376 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10377 linux_get_siginfo_type.
10378
10379 * m68klinux-nat.c: Include "gdb_proc_service.h".
10380 (PTRACE_GET_THREAD_AREA): Define.
10381 (ps_get_thread_area): New function.
10382
10383 2012-03-08 Yao Qi <yao@codesourcery.com>
10384
10385 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10386 `xsnprintf'.
10387 (remote_query_attached): Likewise.
10388 (remote_static_tracepoint_marker_at): Likewise.
10389 (remote_set_permissions): Likewise.
10390 (remote_detach_1, extended_remote_attach_1): Likewise.
10391 (send_g_packet, remote_vkill): Likewise.
10392 (extended_remote_disable_randomization): Likewise.
10393 (remote_add_target_side_condition): Likewise.
10394 (remote_insert_breakpoint): Likewise.
10395 (remote_remove_breakpoint): Likewise.
10396 (remote_insert_watchpoint): Likewise.
10397 (remote_remove_watchpoint): Likewise.
10398 (remote_insert_hw_breakpoint): Likewise.
10399 (remote_insert_hw_breakpoint): Likewise.
10400 (remote_remove_hw_breakpoint): Likewise.
10401 (remote_download_command_source): Likewise.
10402 (remote_download_tracepoint): Likewise.
10403 (remote_download_trace_state_variable): Likewise.
10404 (remote_disable_tracepoint): Likewise.
10405 (remote_trace_set_readonly_regions): Likewise.
10406 (remote_get_tracepoint_status): Likewise.
10407 (remote_trace_find): Likewise.
10408 (remote_get_trace_state_variable_value): Likewise.
10409 (remote_set_disconnected_tracing): Likewise.
10410 (remote_set_circular_trace_buffer): Likewise.
10411 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10412 (remote_use_agent): Likewise.
10413 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10414 Update callers.
10415
10416 2012-03-07 Pedro Alves <palves@redhat.com>
10417
10418 * NEWS: Mention QProgramSignals.
10419 * inferior.h (update_signals_program_target): Declare.
10420 * infrun.c: (update_signals_program_target): New.
10421 (handle_command): Update the target of the new program signals
10422 array changes.
10423 * remote.c (PACKET_QProgramSignals): New enum.
10424 (last_program_signals_packet): New global.
10425 (remote_program_signals): New.
10426 (remote_start_remote): Update the target with the program signals
10427 list.
10428 (remote_protocol_features): Add entry for QPassSignals.
10429 (remote_open_1): Free anc clear last_program_signals_packet.
10430 (init_remote_ops): Install remote_program_signals.
10431 * target.c (update_current_target): Adjust.
10432 (target_program_signals): New.
10433 * target.h (struct target_ops) <to_program_signals>: New field.
10434 (target_program_signals): Declare.
10435
10436 2012-03-07 Pedro Alves <palves@redhat.com>
10437
10438 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10439 extensions.
10440
10441 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10442
10443 * m68klinux-nat.c (getregs_supplies): Make static.
10444 (getfpregs_supplies): Likewise.
10445 (have_ptrace_getregs): Likewise.
10446
10447 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10448
10449 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10450 in call to get_die_type_at_offset.
10451
10452 2012-03-06 Stan Shebs <stan@codesourcery.com>
10453
10454 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10455 * mi/mi-cmd-disas.c: Ditto.
10456 * mi/mi-cmd-env.c: Ditto.
10457 * mi/mi-cmd-file.c: Ditto.
10458 * mi/mi-cmd-stack.c: Ditto.
10459 * mi/mi-cmd-target.c: Ditto.
10460 * mi/mi-cmd-var.c: Ditto.
10461 * mi/mi-cmds.c: Ditto.
10462 * mi/mi-cmds.h: Ditto.
10463 * mi/mi-console.c: Ditto.
10464 * mi/mi-getopt.c: Ditto.
10465 * mi/mi-getopt.h: Ditto.
10466 * mi/mi-interp.c: Ditto.
10467 * mi/mi-main.c: Ditto.
10468 * mi/mi-out.c: Ditto.
10469 * mi/mi-parse.c: Ditto.
10470 * mi/mi-parse.h: Ditto.
10471 * mi/mi-symbol-cmds.c: Ditto.
10472
10473 * mi/mi-getopt.h: Move mi_opt struct up.
10474 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10475 return.
10476 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10477
10478 2012-03-06 Tom Tromey <tromey@redhat.com>
10479
10480 * proc-service.c (ps_pglobal_lookup): Set the current program
10481 space.
10482
10483 2012-03-06 Pedro Alves <palves@redhat.com>
10484
10485 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10486
10487 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10488
10489 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10490
10491 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10492
10493 Code cleanup.
10494 * common/linux-osdata.c (linux_common_core_of_thread): New function
10495 comment.
10496 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10497 call by linux_common_core_of_thread.
10498 (linux_nat_core_of_thread_1): Remove.
10499 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10500 * linux-thread-db.c: Include linux-osdata.h.
10501 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10502 linux_common_core_of_thread.
10503
10504 2012-03-05 Tom Tromey <tromey@redhat.com>
10505
10506 * value.c (value_primitive_field): Don't fetch contents for
10507 non-virtual bases.
10508
10509 2012-03-05 Tom Tromey <tromey@redhat.com>
10510
10511 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10512
10513 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10514
10515 * s390-nat.c: Include "gregset.h".
10516
10517 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10518
10519 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10520 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10521 (libunwind_load): New variable so_error, use it for dlerror. Try to
10522 load also LIBUNWIND_SO_7.
10523
10524 2012-03-05 Pedro Alves <palves@redhat.com>
10525
10526 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10527 is not NULL, and remove resulting dead code.
10528
10529 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10530
10531 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10532 prologue to sh_analyze_prologue.
10533 (sh_analyze_prologue): Make better use of such an upper limit, and
10534 generally be more cautious about accessing memory.
10535
10536 2012-03-05 Tom Tromey <tromey@redhat.com>
10537
10538 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10539 _initialize_ia64_hpux_tdep.
10540
10541 2012-03-05 Pedro Alves <palves@redhat.com>
10542
10543 PR gdb/13766
10544
10545 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10546 the register state is clear, supply explicit zero, instead of
10547 marking the register unavailable.
10548
10549 2012-03-05 Tristan Gingold <gingold@adacore.com>
10550
10551 * NEWS: Mention OpenVMS ia64 new target.
10552
10553 2012-03-05 Tristan Gingold <gingold@adacore.com>
10554
10555 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10556 (ia64_unw_accessors, ia64_unw_rse_accessors)
10557 (ia64_libunwind_descr): Declare.
10558 * ia64-vms-tdep.c: New file.
10559 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10560 (ia64_libunwind_descr): Make them public.
10561 * configure.tgt: Add ia64-*-*vms*.
10562 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10563 (ALLDEPFILES): Add ia64-vms-tdep.c
10564
10565 2012-03-05 Tristan Gingold <gingold@adacore.com>
10566
10567 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10568 * remote.c (PACKET_qXfer_uib): New enum value.
10569 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10570 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10571 (_initialize_remote): Call add_packet_config_cmd for
10572 xfer:uib packet.
10573
10574 2012-03-05 Tristan Gingold <gingold@adacore.com>
10575
10576 * osabi.c (gdb_osabi_names): Add OpenVMS.
10577 (generic_elf_osabi_sniffer): Likewise.
10578 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10579
10580 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10581
10582 Removed unused code.
10583 * libunwind-frame.c (libunwind_frame_unwind)
10584 (libunwind_frame_base_address): Remove.
10585 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10586
10587 2012-03-04 Yao Qi <yao@codesourcery.com>
10588
10589 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10590 remove trailing new line.
10591 (agent_run_command, agent_run_command): Add _ markup.
10592 (agent_capability_check): Likewise.
10593
10594 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10595
10596 * breakpoint.c (set_condition_evaluation_mode): Set
10597 CONDITION_EVALUATION_MODE unconditionally.
10598
10599 2012-03-03 Yao Qi <yao@codesourcery.com>
10600
10601 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10602 * common/agent.h: Update declaration.
10603 * inf-child.c (inf_child_use_agent): New.
10604 (inf_child_can_use_agent): New.
10605 (inf_child_target): Initialize fields `to_use_agent'
10606 and `to_can_use_agent'.
10607 * agent.c (agent_new_objfile): New.
10608 (_initialize_agent): Add agent_new_objfile to new_objfile
10609 observer.
10610
10611 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10612 New.
10613 (linux_target_install_ops): Initialize field
10614 `to_static_tracepoint_markers_by_strid'.
10615 * remote.c (free_current_marker): Move it to ...
10616 * tracepoint.c (free_current_marker): ... here. New.
10617 (cleanup_target_stop): New.
10618 * tracepoint.h: Declare free_current_marker.
10619 * NEWS: Add one entry about `info static-tracepoint-marker'.
10620
10621 2012-03-03 Yao Qi <yao@codesourcery.com>
10622
10623 * common/agent.c (agent_loaded_p): New.
10624 (agent_look_up_symbols): New global.
10625 * common/agent.h: Declare agent_loaded_p.
10626
10627 2012-03-03 Yao Qi <yao@codesourcery.com>
10628
10629 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10630 (agent_capability_check, agent_capability_invalidate): New.
10631 (symbol_list): New array element.
10632 * common/agent.h (enum agent_capa): New.
10633 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10634
10635 2012-03-03 Yao Qi <yao@codesourcery.com>
10636
10637 * target.h (struct target_ops) <to_use_agent>: New field.
10638 (struct target_ops) <to_can_use_agent>: New field.
10639 (target_use_agent, target_can_use_agent): New macro.
10640 * target.c (update_current_target): Update.
10641 * remote.c: New enum `PACKET_QAgent'.
10642 (remote_protocol_features): Add a new element.
10643 (remote_use_agent, remote_can_use_agent): New.
10644 (init_remote_ops): Initialize field `can_use_agent' with
10645 remote_can_use_agent. Intiailize field `use_agent' with
10646 remote_use_agent.
10647 * common/agent.c (use_agent): New global.
10648 * common/agent.h: Declare it.
10649 * tracepoint.c (info_static_tracepoint_markers_command): Add
10650 comment.
10651 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10652 (COMMON_OBS): Add common/agent.o and agent.o
10653 (common-agent.o): New rule.
10654 * agent.c: New.
10655
10656 2012-03-03 Yao Qi <yao@codesourcery.com>
10657
10658 * common/agent.c: New.
10659 * common/agent.h: New.
10660 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10661 AC_CHECK_HEADERS.
10662 * configure, configh.in: Regenerated.
10663
10664 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10665
10666 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10667 unless it exists for this architecture.
10668
10669 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10670
10671 * language.h (struct language_defn): New "method" la_read_var_value.
10672 * findvar.c: #include "language.h".
10673 (default_read_var_value): Renames read_var_value. Rewrite
10674 function description.
10675 (read_var_value): New function.
10676 * value.h (default_read_var_value): Add prototype.
10677 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10678 New functions.
10679 (ada_language_defn): Add entry for la_read_var_value.
10680 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10681 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10682 language_defn structures to add entry for new la_read_var_value
10683 field.
10684
10685 2012-03-02 Tom Tromey <tromey@redhat.com>
10686 Pedro Alves <palves@redhat.com>
10687
10688 PR breakpoints/13776:
10689 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10690 breakpoints.
10691 (delete_longjmp_breakpoint_at_next_stop): New.
10692 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10693 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10694 before deleting the inferior. Add comments.
10695 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10696 breakpoints immediately, but only on next stop. Move that code
10697 next to where we mark other breakpoints for deletion.
10698
10699 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10700
10701 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10702 marker.
10703 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10704 violation.
10705
10706 2012-03-02 Pedro Alves <palves@redhat.com>
10707
10708 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10709
10710 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10711
10712 Fix -Wmissing-prototypes build.
10713 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10714 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10715 (gdbsim_has_memory): Likewise.
10716
10717 2012-03-02 Yao Qi <yao@codesourcery.com>
10718
10719 Fix -Wmissing-prototypes build.
10720 * charset.c (phony_iconv_open): Make static.
10721 (phony_iconv_close, phony_iconv): Likewise.
10722 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10723 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10724 prototype.
10725 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10726 * ser-mingw.c (create_select_thread): Make static.
10727 * windows-termcap.c (tgetent): New prototype.
10728 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10729
10730 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10731
10732 Fix -Wmissing-prototypes build.
10733 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10734 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10735 (_initialize_loadable): New prototypes.
10736
10737 2012-03-02 Doug Evans <dje@google.com>
10738
10739 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10740 abbrev table, read_comp_unit will do it.
10741
10742 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10743
10744 Fix -Wmissing-prototypes build.
10745 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10746 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10747 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10748 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10749 (_initialize_arm_symbian_tdep): New prototype.
10750 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10751 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10752 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10753 static.
10754 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10755 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10756 prototype.
10757 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10758 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10759 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10760 static.
10761 * moxie-tdep.c (moxie_process_record): Likewise.
10762 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10763 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10764 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10765 (_initialize_rl78_tdep): New prototype.
10766 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10767 (_initialize_rx_tdep): New prototype.
10768 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10769 (_initialize_darwin_solib): New prototype.
10770 * solib-spu.c: Include solib-spu.h.
10771 (_initialize_spu_solib): New prototype.
10772 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10773 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10774 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10775 (tic6x_software_single_step): Make it static.
10776 (_initialize_tic6x_tdep): New prototype.
10777
10778 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10779
10780 Fix -Wmissing-prototypes build.
10781 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10782 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10783
10784 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10785
10786 Fix -Wmissing-prototypes build.
10787 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10788 (frv_have_stopped_data_address): Remove.
10789
10790 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10791
10792 Fix -Wmissing-prototypes build.
10793 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10794 * sh-tdep.c: Include sh64-tdep.h.
10795 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10796 * sh64-tdep.c: Include sh64-tdep.h.
10797 * sh64-tdep.h: New file.
10798
10799 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10800
10801 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10802
10803 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10804
10805 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10806 sp_regnum once the gdbarch_init_osabi hook has been called.
10807
10808 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10809
10810 * mips-tdep.c (mips32_bc1_pc): New function.
10811 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10812 BPOSGE32 and BPOSGE64 instructions.
10813 (deal_with_atomic_sequence): Likewise.
10814 (mips32_instruction_has_delay_slot): Likewise.
10815
10816 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10817 Chris Dearman <chris@mips.com>
10818 Maciej W. Rozycki <macro@codesourcery.com>
10819 Joseph Myers <joseph@codesourcery.com>
10820
10821 * features/mips-dsp.xml: New file.
10822 * features/mips64-dsp.xml: New file.
10823 * features/mips-dsp-linux.xml: New file.
10824 * features/mips64-dsp-linux.xml: New file.
10825 * features/Makefile (WHICH): Add mips-dsp-linux and
10826 mips64-dsp-linux.
10827 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10828 * features/mips-dsp-linux.c: New file.
10829 * features/mips64-dsp-linux.c: New file.
10830 * regformats/mips-dsp-linux.dat: New file.
10831 * regformats/mips64-dsp-linux.dat: New file.
10832 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10833 registers.
10834 (mips64_linux_register_addr): Likewise.
10835 (mips64_linux_regsets_fetch_registers): Likewise.
10836 (mips64_linux_regsets_store_registers): Likewise.
10837 (mips64_linux_fetch_registers): Update call to
10838 mips64_linux_regsets_fetch_registers.
10839 (mips64_linux_store_registers): Update call to
10840 mips64_linux_regsets_store_registers.
10841 (mips_linux_read_description): Probe for DSP registers.
10842 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10843 and initialize_tdesc_mips64_dsp_linux.
10844 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10845 Remove padding of no longer used embedded register slots.
10846 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10847 (MIPS_RESTART_REGNUM): Redefine enum value.
10848 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10849 strings.
10850 (mips_tx39_reg_names): Likewise.
10851 (mips_linux_reg_names): New array of register names for Linux
10852 targets.
10853 (mips_register_name): Check for a null pointer in
10854 mips_processor_reg_names and return an empty string.
10855 (mips_register_type): Exclude embedded registers for the IRIX
10856 and Linux ABIs.
10857 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10858 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10859 DSP registers.
10860 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10861 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10862 (mips_gdbarch_init): Likewise. Initialize internal register
10863 indices for the Linux ABI. Use dynamic numbers to refer to
10864 registers, as applicable, while parsing the target description.
10865 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10866
10867 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10868
10869 * frame.h (read_frame_register_unsigned): Fix typo in function
10870 description.
10871
10872 2012-03-01 Pedro Alves <palves@redhat.com>
10873
10874 * jit-reader.in [!__cplusplus]
10875 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10876
10877 2012-03-01 Pedro Alves <palves@redhat.com>
10878
10879 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10880 * configure: Regenerate.
10881
10882 2012-03-01 Pedro Alves <palves@redhat.com>
10883
10884 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10885 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10886 (ftrace_command, strace_command): Make static.
10887 * d-lang.c (_initialize_d_language): Declare.
10888 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10889 * dwarf2loc.c (_initialize_dwarf2loc):
10890 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10891 * exec.c (exec_get_section_table): Make static.
10892 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10893 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10894 * inferior.c (remove_inferior_command, add_inferior_command)
10895 (clone_inferior_command): Make static.
10896 * linux-nat.c (linux_nat_thread_address_space)
10897 (linux_nat_core_of_thread): Make static.
10898 * linux-tdep.c (_initialize_linux_tdep): Declare.
10899 * objc-lang.c (_initialize_objc_lang): Declare.
10900 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10901 Make static.
10902 (_initialize_opencl_language): Declare.
10903 * record.c (_initialize_record): Declare.
10904 * remote.c (demand_private_info, remote_get_tib_address)
10905 (remote_supports_cond_tracepoints)
10906 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10907 Make static.
10908 * skip.c (_initialize_step_skip): Declare.
10909 * symtab.c (skip_prologue_using_lineinfo): Make static.
10910 * tracepoint.c (delete_trace_state_variable)
10911 (trace_variable_command, delete_trace_variable_command)
10912 (get_uploaded_tsv, find_matching_tracepoint_location)
10913 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10914 Make static.
10915 * value.c (pack_unsigned_long): Make static.
10916 * varobj.c (varobj_ensure_python_env): Make static.
10917 * windows-tdep.c (_initialize_windows_tdep): Declare.
10918 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10919
10920 2012-03-01 Pedro Alves <palves@redhat.com>
10921
10922 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10923 gdbarch parameter.
10924 (linux_init_abi): Install it as has_shared_address_space gdbarch
10925 callback.
10926
10927 2012-03-01 Pedro Alves <palves@redhat.com>
10928
10929 * observer.c (observer_test_first_notification_function)
10930 (observer_test_second_notification_function)
10931 (observer_test_third_notification_function): Add declarations.
10932
10933 2012-03-01 Pedro Alves <palves@redhat.com>
10934
10935 * common/signals.c (default_target_signal_to_host)
10936 (default_target_signal_from_host): Move ...
10937 * arch-utils.c: ... here.
10938 * arch-utils.h (default_target_signal_to_host)
10939 (default_target_signal_from_host): Declare.
10940
10941 * common/signals.c (target_signal_from_command): Move ...
10942 * infrun.c: ... here.
10943 * inferior.h (target_signal_from_command): Declare.
10944 * target.h (target_signal_from_command)
10945 (default_target_signal_from_host, default_target_signal_to_host):
10946 Delete declarations.
10947
10948 * common/signals.c (_initialize_signals): Delete.
10949
10950 2012-03-01 Pedro Alves <palves@redhat.com>
10951
10952 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10953 both __cplusplus and !__cplusplus.
10954
10955 2012-03-01 Pedro Alves <palves@redhat.com>
10956
10957 * psymtab.c (find_and_open_source): Delete declaration.
10958 * source.c (find_and_open_source): Move comment ...
10959 * source.h (find_and_open_source): ... to this new declaration.
10960
10961 2012-03-01 Pedro Alves <palves@redhat.com>
10962
10963 * inline-frame.c: Include inline-frame.h.
10964
10965 2012-03-01 Pedro Alves <palves@redhat.com>
10966
10967 * tui/tui-data.c (set_gen_win_origin): Delete.
10968 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10969 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10970
10971 2012-03-01 Pedro Alves <palves@redhat.com>
10972
10973 * remote.c (encode_actions): Delete declaration.
10974 * tracepoint.c (encode_actions): Make extern.
10975 * tracepoint.h (encode_actions): Declare.
10976
10977 2012-03-01 Pedro Alves <palves@redhat.com>
10978
10979 * python/py-breakpoint.c: Include python.h.
10980 * python/py-continueevent.c (create_continue_event_object): Make
10981 static.
10982 * python/py-lazy-string.c (stpy_get_type): Make static.
10983 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10984 Make static.
10985 * python/py-utils.c (unicode_to_target_python_string): Make
10986 static.
10987 * python/py-value.c: Include python.h.
10988
10989 2012-03-01 Pedro Alves <palves@redhat.com>
10990
10991 * inferior.c (delete_threads_of_inferior): Delete.
10992
10993 2012-03-01 Pedro Alves <palves@redhat.com>
10994
10995 Import fallback definitions from glibc.
10996
10997 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10998 ps_prochandle): Forward declare.
10999 (ps_err_e): Use glibc's comments.
11000 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11001 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11002 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
11003 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
11004 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
11005 (struct ps_prochandle): Adjust comment.
11006
11007 2012-03-01 Pedro Alves <palves@redhat.com>
11008
11009 * ada-lang.c (ada_modulus_from_name): Delete.
11010 * ada-lex.l (lexer_init): Make static.
11011
11012 2012-03-01 Pedro Alves <palves@redhat.com>
11013
11014 PR gdb/13767
11015
11016 * frame.c (read_frame_register_unsigned): New.
11017 * frame.h (read_frame_register_unsigned): Declare.
11018 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
11019 Handle it.
11020 (print_i387_control_word): New parameter `control_p'. Handle it.
11021 (i387_print_float_info): Handle unavailable float registers.
11022
11023 2012-03-01 Keith Seitz <keiths@redhat.com>
11024
11025 * linespec.c (decode_line_2): Sort the list of methods
11026 alphabetically before presenting the user with a selection
11027 menu.
11028
11029 2012-03-01 Doug Evans <dje@google.com>
11030
11031 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
11032 has_namespace_info.
11033 (dwarf2_read_abbrevs): Remove corresponding initialization.
11034
11035 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
11036
11037 * NEWS: Mention new python command class gdb.COMMAND_USER.
11038 * cli/cli-cmds.c (show_user): Print error when used on a python
11039 command.
11040 (init_cli_cmds): Update documentation strings for "show user" and
11041 "set/show max-user-call-depth" to clarify that it does not apply to
11042 python commands.
11043 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
11044 error check.
11045 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
11046 gdb python api.
11047 * top.c (execute_command): Only execute a user-defined command as a
11048 legacy macro if c->user_commands is set.
11049
11050 2012-03-01 Tom Tromey <tromey@redhat.com>
11051
11052 * valprint.h (struct generic_val_print_decorations): New.
11053 (generic_val_print): Declare.
11054 * valprint.c (generic_val_print): New function.
11055 * p-valprint.c (p_decorations): New global.
11056 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
11057 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
11058 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
11059 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
11060 * m2-valprint.c (m2_decorations): New global.
11061 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
11062 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
11063 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
11064 TYPE_CODE_ERROR>: Call generic_val_print.
11065 * f-valprint.c (f_decorations): New global.
11066 (f_val_print): Use print_function_pointer_address.
11067 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
11068 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
11069 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
11070 generic_val_print.
11071 * c-valprint.c (c_decorations): New global.
11072 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
11073 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
11074 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
11075 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
11076 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
11077 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
11078 case.
11079
11080 2012-03-01 Tom Tromey <tromey@redhat.com>
11081
11082 * valprint.c (val_print): Update.
11083 * p-valprint (pascal_val_print): Return void.
11084 * p-lang.h (pascal_val_print): Return void.
11085 * m2-valprint.c (m2_val_print): Return void.
11086 * m2-lang.h (m2_val_print): Return void.
11087 * language.h (struct language_defn) <la_val_print>: Return void.
11088 * language.c (unk_lang_val_print): Return void.
11089 * jv-valprint.c (java_val_print): Return void.
11090 * jv-lang.h (java_val_print): Return void.
11091 * f-valprint.c (f_val_print): Return void.
11092 * f-lang.h (f_val_print): Return void.
11093 * d-valprint.c (d_val_print): Return void.
11094 (dynamic_array_type): Update.
11095 * d-lang.h (d_val_print): Return void.
11096 * c-valprint.c (c_val_print): Return void.
11097 * c-lang.h (c_val_print): Return void.
11098 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
11099 void.
11100 * ada-lang.h (ada_val_print): Return void.
11101
11102 2012-03-01 Tom Tromey <tromey@redhat.com>
11103
11104 * value.h (val_print): Return void.
11105 * valprint.c (val_print): Return void.
11106
11107 2012-03-01 Tom Tromey <tromey@redhat.com>
11108
11109 * value.h (common_val_print): Return void.
11110 * valprint.c (common_val_print): Return void.
11111
11112 2012-03-01 Tom Tromey <tromey@redhat.com>
11113
11114 * value.h (value_print): Return void.
11115 * valprint.c (value_print): Return void.
11116 * p-valprint.c (pascal_value_print): Return void.
11117 * p-lang.h (pascal_value_print): Return void.
11118 * language.h (struct language_defn) <la_value_print>: Return
11119 void.
11120 * language.c (unk_lang_value_print): Return void.
11121 * jv-valprint.c (java_value_print): Return void.
11122 * jv-lang.h (java_value_print): Return void.
11123 * f-valprint.c (c_value_print): Don't declare.
11124 Include c-lang.h.
11125 * c-valprint.c (c_value_print): Return void.
11126 * c-lang.h (c_value_print): Return void.
11127 * ada-valprint.c (ada_value_print): Return void.
11128 * ada-lang.h (ada_value_print): Return void.
11129
11130 2012-03-01 Tom Tromey <tromey@redhat.com>
11131
11132 * value.c (value_primitive_field): Handle virtual base classes.
11133
11134 2012-03-01 Tom Tromey <tromey@redhat.com>
11135
11136 * gdbtypes.h (struct vbase): Remove.
11137
11138 2012-03-01 Tom Tromey <tromey@redhat.com>
11139
11140 * c-valprint.c (print_function_pointer_address): Move...
11141 * valprint.c: ... here. Make non-static.
11142 * m2-valprint.c (print_function_pointer_address): Remove.
11143 * valprint.h (print_function_pointer_address): Declare.
11144
11145 2012-03-01 Joel Brobecker <brobecker@adacore.com>
11146
11147 * NEWS: Document the fact that one can provide a condition when
11148 creating an Ada exception catchpoint.
11149
11150 2012-03-01 Tom Tromey <tromey@redhat.com>
11151
11152 * valprint.c (val_print_type_code_flags): Fix placement of
11153 trailing brace.
11154
11155 2012-03-01 Joel Brobecker <brobecker@adacore.com>
11156
11157 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
11158 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
11159 environment variable before calling update-copyright.
11160
11161 2012-03-01 Joel Brobecker <brobecker@adacore.com>
11162
11163 * gnulib/extra/update-copyright: Update to the latest from
11164 gnulib's git repository.
11165 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
11166 variable to 2 instead of 1.
11167
11168 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11169
11170 * varobj.c (c_value_of_variable): Remove dead code.
11171
11172 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11173
11174 * ada-lex.p (processId): Do not modify already encoded IDs.
11175 Update function documentation.
11176
11177 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11178
11179 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11180 "name" with "struct symbol *name_sym".
11181 * ada-exp.y (write_var_or_type): Update call to
11182 ada_find_renaming_symbol.
11183 "name" with "struct symbol *name_sym". Adjust Implementation
11184 accordingly. Adjust the function documentation.
11185
11186 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11187
11188 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11189 * ada-lang.c (ada_find_any_type): Add advance declaration.
11190 Make static. Replace ada_find_any_symbol by
11191 ada_find_any_type_symbol.
11192 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11193 Improve function description. Make static.
11194 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11195 Replace ada_find_any_symbol by ada_find_any_type_symbol.
11196
11197 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11198
11199 * ada-lang.c (struct tag_args): Delete.
11200 (ada_get_tsd_type): Function body moved up in source file.
11201 (ada_tag_name_1, ada_tag_name_2): Delete.
11202 (ada_get_tsd_from_tag): New function.
11203 (ada_tag_name_from_tsd): New function.
11204 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11205 to determine the tag name.
11206
11207 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11208
11209 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11210 declaration.
11211 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11212 function.
11213
11214 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11215
11216 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11217
11218 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11219
11220 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11221 full searches.
11222
11223 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11224
11225 * ada-lang.c (constrained_packed_array_type): If there is a
11226 parallel XA type, use it to determine the array index type.
11227
11228 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11229
11230 * ada-valprint.c (ada_val_print_1): If our value is a reference
11231 to an array descriptor, dereference it before converting it
11232 to a simple array.
11233
11234 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11235
11236 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11237 creating fixed value.
11238 (ada_value_ind, ada_coerce_ref, assign_component)
11239 (ada_evaluate_subexp): Remove call to unwrap_value before
11240 call to ada_to_fixed_value.
11241
11242 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11243
11244 * ada-lang.c (to_fixed_array_type): Set result's type name.
11245
11246 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11247
11248 * ada-lang.c (catch_ada_exception_command_split): Add new
11249 argument cond_string. Add support for condition at end of
11250 "catch exception" commands.
11251 (ada_decode_exception_location): Add new argument cond_string.
11252 Update call to catch_ada_exception_command_split.
11253 (create_ada_exception_catchpoint): Add new argument cond_string.
11254 Set the breakpoint condition if needed.
11255 (catch_ada_exception_command): Update call to
11256 ada_decode_exception_location.
11257 (ada_decode_assert_location): Add function documentation.
11258 Add support for condition at end of "catch assert" command.
11259 (catch_assert_command): Update calls to ada_decode_assert_location
11260 and create_ada_exception_catchpoint.
11261
11262 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11263
11264 Fix disp-step-syscall.exp: fork: single step over fork.
11265 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11266 (i386_linux_get_syscall_number_from_regcache): ... here, new function
11267 comment, change parameters gdbarch and ptid to regcache. Remove
11268 parameter regcache, initialize gdbarch from regcache here.
11269 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11270 New functions.
11271 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11272 instead.
11273 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11274 'syscall'. Make the 'int' check more strict.
11275
11276 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11277
11278 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11279 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11280 (i386_linux_intx80_sysenter_syscall_record): ... here.
11281 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11282 Use the renamed function name.
11283
11284 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11285
11286 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11287 * breakpoint.c (until_break_command): Likewise.
11288 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11289 * infcall.c (call_function_by_hand): Likewise.
11290 * infcmd.c (finish_forward): Likewise.
11291 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11292
11293 2012-02-28 Tristan Gingold <gingold@adacore.com>
11294
11295 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11296 avoid variable assignments inside condition.
11297
11298 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11299
11300 Fix static analysis issue found by cppcheck.
11301 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11302 uninitialized BUF for size 2.
11303
11304 2012-02-27 Chris Dearman <chris@mips.com>
11305 Nathan Froyd <froydnj@codesourcery.com>
11306 Maciej W. Rozycki <macro@codesourcery.com>
11307
11308 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11309 (mips16_instruction_has_delay_slot): Likewise.
11310 (mips_segment_boundary): Likewise.
11311 (mips_adjust_breakpoint_address): Likewise.
11312 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11313
11314 2012-02-27 Maciej W. Rozycki <macro@mips.com>
11315 Maciej W. Rozycki <macro@codesourcery.com>
11316
11317 * infrun.c (handle_inferior_event): Don't proceed through
11318 shared library trampolines if stepping at the machine
11319 instruction level.
11320
11321 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11322
11323 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11324 too.
11325
11326 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11327
11328 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11329 (sh_stub_unwind_sniffer): New functions.
11330 (sh_stub_unwind): New variable.
11331 (sh_gdbarch_init): Wire everything.
11332
11333 2012-02-27 Pedro Alves <palves@redhat.com>
11334
11335 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11336 (linux_nat_post_attach_wait): Adjust to use
11337 linux_proc_pid_is_stopped.
11338 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11339 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11340 based on pid_is_stopped from both linux-nat.c and
11341 gdbserver/linux-low.c, and renamed.
11342
11343 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11344
11345 * remote.c (remote_watchpoint_addr_within_range): New function.
11346 (init_remote_ops): Use it.
11347
11348 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11349
11350 * target.h (target_watchpoint_addr_within_range): Document macro.
11351
11352 2012-02-24 Pedro Alves <palves@redhat.com>
11353
11354 * stack.c (set_last_displayed_sal): Issue internal_error instead
11355 of warning, and issue it after clearing the last displayed sal.
11356
11357 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11358 Pedro Alves <palves@redhat.com>
11359
11360 * breakpoint.c (until_break_command): Install breakpoints after
11361 all frame manipulations.
11362
11363 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11364
11365 * remote.c (remote_supports_cond_breakpoints): New forward
11366 declaration.
11367 (remote_add_target_side_condition): New function.
11368 (remote_insert_breakpoint): Add target-side breakpoint
11369 conditional if supported.
11370 (remote_insert_hw_breakpoint): Likewise.
11371 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11372 hook.
11373
11374 * target.c (update_current_target): Inherit
11375 to_supports_evaluation_of_breakpoint_conditions.
11376 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11377
11378 * target.h (struct target_ops)
11379 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11380 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11381
11382 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11383 (condition_evaluation_both, condition_evaluation_auto,
11384 condition_evaluation_host, condition_evaluation_target,
11385 condition_evaluation_enums, condition_evaluation_mode_1,
11386 condition_evaluation_mode): New static globals.
11387 (translate_condition_evaluation_mode): New function.
11388 (breakpoint_condition_evaluation_mode): New function.
11389 (gdb_evaluates_breakpoint_condition_p): New function.
11390 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11391 (mark_breakpoint_modified): New function.
11392 (mark_breakpoint_location_modified): New function.
11393 (set_condition_evaluation_mode): New function.
11394 (show_condition_evaluation_mode): New function.
11395 (bp_location_compare_addrs): New function.
11396 (get_first_location_gte_addr): New helper function.
11397 (set_breakpoint_condition): Free condition bytecode if locations
11398 has become unconditional. Call mark_breakpoint_modified (...).
11399 (condition_command): Call update_global_location_list (1) for
11400 breakpoints.
11401 (breakpoint_xfer_memory): Use is_breakpoint (...).
11402 (is_breakpoint): New function.
11403 (parse_cond_to_aexpr): New function.
11404 (build_target_condition_list): New function.
11405 (insert_bp_location): Handle target-side conditional
11406 breakpoints and call build_target_condition_list (...).
11407 (update_inserted_breakpoint_locations): New function.
11408 (insert_breakpoint_locations): Handle target-side conditional
11409 breakpoints.
11410 (bpstat_check_breakpoint_conditions): Add comment.
11411 (bp_condition_evaluator): New function.
11412 (bp_location_condition_evaluator): New function.
11413 (print_breakpoint_location): Print information on where the condition
11414 will be evaluated.
11415 (print_one_breakpoint_location): Likewise.
11416 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11417 breakpoint location.
11418 (force_breakpoint_reinsertion): New functions.
11419 (update_global_location_list): Handle target-side breakpoint
11420 conditions.
11421 Reinsert locations that are already inserted if conditions have
11422 changed.
11423 (bp_location_dtor): Free agent expression bytecode.
11424 (disable_breakpoint): Call mark_breakpoint_modified (...).
11425 Call update_global_location_list (...) with parameter 1 for breakpoints.
11426 (disable_command): Call mark_breakpoint_location_modified (...).
11427 Call update_global_location_list (...) with parameter 1 for breakpoints.
11428 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11429 (enable_command): mark_breakpoint_location_modified (...).
11430 (_initialize_breakpoint): Update documentation and add
11431 condition-evaluation breakpoint subcommand.
11432
11433 * breakpoint.h: Include ax.h.
11434 (condition_list): New data structure.
11435 (condition_status): New enum.
11436 (bp_target_info) <cond_list>: New field.
11437 (bp_location) <condition_changed, cond_bytecode>: New fields.
11438 (is_breakpoint): New prototype.
11439
11440 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11441
11442 * remote.c (remote_state) <cond_breakpoints>: New field.
11443 (PACKET_ConditionalBreakpoints): New enum.
11444 (remote_cond_breakpoint_feature): New function.
11445 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11446 (remote_supports_cond_breakpoints): New function.
11447 (_initialize_remote): Add new packet configuration for
11448 target-side conditional breakpoints.
11449
11450 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11451
11452 * NEWS: Mention target-side conditional breakpoint support,
11453 new condition-evaluation breakpoint subcommand and remote
11454 packet extensions.
11455
11456 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11457
11458 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11459 number.
11460
11461 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11462
11463 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11464 (after_prologue): Remove.
11465
11466 2012-02-23 Tom Tromey <tromey@redhat.com>
11467
11468 * jv-valprint.c (java_val_print): Remove dead code.
11469
11470 2012-02-23 Tristan Gingold <gingold@adacore.com>
11471
11472 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11473 known_tasks_element and known_tasks_length fields.
11474 (read_known_tasks_array): Change argument type. Use pointer type
11475 and number of elements from DATA. Adjust.
11476 (read_known_tasks_list): Likewise.
11477 (get_known_tasks_addr): Remove.
11478 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11479 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11480 type and array length. Merge former get_known_tasks_addr code.
11481
11482 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11483
11484 PR backtrace/13716
11485 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11486 it after set_momentary_breakpoint.
11487
11488 2012-02-22 Sterling Augustine <saugustine@google.com>
11489
11490 PR 13689:
11491 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11492
11493 2012-02-22 Gary Benson <gbenson@redhat.com>
11494
11495 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11496 (find_slot_in_mapped_hash): Likewise.
11497
11498 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11499
11500 PR build/13638
11501 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11502 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11503 * configure: Regenerate.
11504
11505 2012-02-21 Tristan Gingold <gingold@adacore.com>
11506 Pedro Alves <palves@redhat.com>
11507
11508 * ia64-tdep.c: Do not include libunwind-ia64.h.
11509 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11510 Include libunwind-ia64.h instead of libunwind.h.
11511 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11512 for libunwind.h existence.
11513 * configure, config.in: Regenerate.
11514
11515 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11516
11517 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11518 instead of value_rtti_target_type.
11519 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11520 instead of value_rtti_target_type.
11521 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11522 value_rtti_target_type.
11523 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11524 (value_rtti_target_type): Rename to ...
11525 (value_rtti_indirect_type): ... here and make it indirect. Update
11526 function comment.
11527 * value.c (readjust_indirect_value_type): New function.
11528 (coerce_ref): Support for enclosing type setting for references
11529 with readjust_indirect_value_type.
11530 * value.h (readjust_value_type): New declaration.
11531 (value_rtti_target_type): Rename to ...
11532 (value_rtti_indirect_type): ... here.
11533
11534 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11535
11536 * MAINTAINERS (Write After Approval): Add myself to the list.
11537
11538 2012-02-20 Doug Evans <dje@google.com>
11539
11540 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11541 Rename objfile_p_char parameter to objfilep.
11542 (build_objfile_section_table): Result is now void. All callers
11543 updated.
11544 * objfiles.h (struct objfile): Tweak comments, whitespace.
11545 (build_objfile_section_table): Update.
11546
11547 * elfread.c (elf_symfile_segments): Fix warning text.
11548
11549 2012-02-20 Tom Tromey <tromey@redhat.com>
11550
11551 PR gdb/13498:
11552 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11553 particular set of file names once.
11554 (dw2_map_symbol_filenames): Likewise.
11555
11556 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11557
11558 Code cleanup.
11559 * main.c (write_files): Remove the declaration.
11560 (external_editor_command): Move the declaration ...
11561 [GDBTK] (external_editor_command): ... here. Fix the comment.
11562
11563 2012-02-20 Tom Tromey <tromey@redhat.com>
11564
11565 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11566 extraneous block.
11567
11568 2012-02-20 Tristan Gingold <gingold@adacore.com>
11569
11570 * darwin-nat.h (enum darwin_msg_state): Add comments.
11571
11572 2012-02-20 Tristan Gingold <gingold@adacore.com>
11573
11574 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11575 value.
11576
11577 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11578
11579 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11580 between function description and implementation.
11581
11582 2012-02-17 Tom Tromey <tromey@redhat.com>
11583
11584 PR python/12070:
11585 * python/py-event.c (event_object_getset): New global.
11586 (event_object_type): Reference it.
11587 * python/py-type.c (field_object_getset): New global.
11588 (field_object_type): Reference it.
11589 * python/python-internal.h (gdb_py_generic_dict): Declare.
11590 * python/py-utils.c (gdb_py_generic_dict): New function.
11591
11592 2012-02-17 Tristan Gingold <gingold@adacore.com>
11593
11594 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11595
11596 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11597
11598 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11599 TYPE_CALLING_CONVENTION annotation.
11600
11601 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11602
11603 * MAINTAINERS: Add rx to target ISA section.
11604 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11605 (ALLDEPFILES): Add rx-tdep.c.
11606
11607 2012-02-16 Tom Tromey <tromey@redhat.com>
11608
11609 * symfile.c (symbol_file_add_main_1): Use inferior's
11610 symfile_flags.
11611 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11612 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11613 inferior.
11614 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11615 inferior.
11616 (follow_exec): Use inferior's symfile_flags.
11617 * inferior.h (struct inferior) <symfile_flags>: New field.
11618
11619 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11620
11621 PR gdb/9734:
11622 * remote-sim.c (gdbsim_create_inferior): Call error() when
11623 sim_create_inferior() fails.
11624
11625 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11626
11627 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11628
11629 2012-02-16 Tom Tromey <tromey@redhat.com>
11630
11631 PR c++/13653:
11632 * thread.c (struct current_thread_cleanup) <was_removable>: New
11633 field.
11634 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11635 (make_cleanup_restore_current_thread): Initialize new field.
11636
11637 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11638
11639 * MAINTAINERS: Add rl78 to target ISA section.
11640 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11641 (ALLDEPFILES): Add rl78-tdep.c.
11642 * NEWS: Mention rl78 as a new target.
11643
11644 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11645
11646 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11647 data.
11648 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11649
11650 2012-02-15 Tom Tromey <tromey@redhat.com>
11651
11652 PR gdb/12659:
11653 * infcmd.c (registers_info): Print just the current register's
11654 name.
11655
11656 2012-02-15 Tom Tromey <tromey@redhat.com>
11657
11658 * python/py-symbol.c (sympy_value): Use _().
11659
11660 2012-02-15 Pedro Alves <palves@redhat.com>
11661
11662 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11663 output to be like native targets'.
11664 (remote_pid_to_str): Special case the null ptid.
11665
11666 2012-02-14 Stan Shebs <stan@codesourcery.com>
11667
11668 * NEWS: Mention enable count command.
11669 * breakpoint.h (struct breakpoint): New field enable_count.
11670 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11671 (enable_breakpoint): Add arg to call.
11672 (struct disp_data): New struct.
11673 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11674 (do_map_enable_once_breakpoint): Create a struct and pass it.
11675 (do_map_enable_delete_breakpoint): Ditto.
11676 (do_map_enable_count_breakpoint): New function.
11677 (enable_count_command): New function.
11678 (bpstat_stop_status): Decrement enable_count.
11679 (print_one_breakpoint_location): Report enable count.
11680 (_initialize_breakpoint): Add enable count command.
11681
11682 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11683
11684 * rl78-tdep.c (reggroups.h): Include.
11685 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11686 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11687 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11688 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11689 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11690 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11691 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11692 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11693 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11694 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11695 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11696 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11697 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11698 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11699 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11700 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11701 beginning of register list.
11702 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11703 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11704 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11705 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11706 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11707 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11708 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11709 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11710 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11711 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11712 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11713 the pseudo registers. Rearrange other pseudo registers too so
11714 that the bank registers appear at the end.
11715 (rl78_register_type): Account for the fact that the byte sized
11716 bank registers are now pseudo-registers.
11717 (rl78_register_name): Rearrange the register name array. Make
11718 initial set of raw banked registers inaccessible.
11719 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11720 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11721 case for copying bytes back and forth between raw and pseudo
11722 versions of the banked registers. Update other cases to reflect
11723 the changed names.
11724 (rl78_return_value): Update to account for changed names of
11725 raw registers.
11726 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11727 rl78_register_sim_regno().
11728
11729 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11730
11731 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11732 the name parameter being passed to find_pc_partial_function().
11733
11734 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11735
11736 * MAINTAINERS: Step down from being ia64 target maintainer.
11737
11738 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11739
11740 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11741 compilation warning.
11742
11743 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11744
11745 Fix crash on loaded shlibs without loaded exec_bfd.
11746 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11747 (set_section_command): Replace exec_bfd by p->bfd.
11748
11749 2012-02-10 Tom Tromey <tromey@redhat.com>
11750
11751 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11752 when we have a C++ qualified name.
11753
11754 2012-02-10 Pedro Alves <palves@redhat.com>
11755
11756 * inferior.c (inferior_pid_to_str): New.
11757 (print_inferior, inferior_command): Use it.
11758
11759 2012-02-10 Pedro Alves <palves@redhat.com>
11760
11761 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11762 the test CFLAGS.
11763 * configure: Regenerate.
11764
11765 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11766
11767 * linespec.c (decode_line_internal): Fix comment correctness.
11768
11769 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11770
11771 PR gdb/12953
11772 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11773 * amd64bsd-nat.c: Add support for debug registers (adapted from
11774 i386bsd-nat.c).
11775 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11776 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11777 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11778 (amd64bsd_dr_get_control): New functions.
11779 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11780 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11781 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11782 watchpoints initialization.
11783 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11784
11785 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11786
11787 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11788 flds_bnds.fields.
11789 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11790
11791 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11792
11793 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11794
11795 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11796
11797 * language.h (symbol_name_cmp_ftype): Renames
11798 symbol_name_match_p_ftype.
11799 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11800 la_get_symbol_name_match_p.
11801 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11802 ada_get_symbol_name_match_p. Update comment.
11803 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11804 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11805 Renames symbol_name_match_p. Update field type.
11806 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11807 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11808 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11809 "la_get_symbol_name_cmp" in comments.
11810 * language.c: Likewise.
11811
11812 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11813
11814 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11815 %eflags offset.
11816 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11817 (amd64_sol2_gregset32_reg_offs): Likewise.
11818
11819 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11820
11821 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11822 of the returned BFD is allocated by GDB.
11823
11824 2012-02-07 Tom Tromey <tromey@redhat.com>
11825
11826 PR python/12027:
11827 * python/python-internal.h (frame_object_type): Declare.
11828 * python/py-symbol.c (sympy_needs_frame): New function.
11829 (sympy_value): New function.
11830 (symbol_object_getset): Add "needs_frame".
11831 (symbol_object_methods): Add "value".
11832 * python/py-frame.c (frame_object_type): No longer static.
11833
11834 2012-02-07 Tom Tromey <tromey@redhat.com>
11835
11836 PR python/13599:
11837 * python/py-symbol.c (sympy_line): New function.
11838 (symbol_object_getset): Add "line".
11839
11840 2012-02-07 Tom Tromey <tromey@redhat.com>
11841
11842 * charset.c (find_charset_names): Check 'in' against NULL.
11843
11844 2012-02-06 Doug Evans <dje@google.com>
11845
11846 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11847 and fields.name members from char * to const char *. All uses updated.
11848 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11849 from char * to const char *. All uses updated.
11850 (type_name_no_tag): Update.
11851 (lookup_unsigned_typename, lookup_signed_typename): Update.
11852 * gdbtypes.c (type_name_no_tag): Change result type
11853 from char * to const char *. All callers updated.
11854 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11855 name parameter from char * to const char *.
11856 * symtab.h (struct cplus_specific): Change type of demangled_name
11857 member from char * to const char *. All uses updated.
11858 (struct general_symbol_info): Change type of name and
11859 mangled_lang.demangled_name members from char * to const char *.
11860 All uses updated.
11861 (symbol_get_demangled_name, symbol_natural_name): Update.
11862 (symbol_demangled_name, symbol_search_name): Update.
11863 * symtab.c (symbol_get_demangled_name): Change result type
11864 from char * to const char *. All callers updated.
11865 (symbol_natural_name, symbol_demangled_name): Ditto.
11866 (symbol_search_name): Ditto.
11867 (completion_list_add_name): Change type of symname,sym_text,
11868 text,word parameters from char * to const char *.
11869 (completion_list_objc_symbol): Change type of sym_text,
11870 text,word parameters from char * to const char *.
11871 * ada-lang.c (find_struct_field): Change type of name parameter
11872 from char * to const char *.
11873 (encoded_ordered_before): Similarly for N0,N1 parameters.
11874 (old_renaming_is_invisible): Similarly for function_name parameter.
11875 (ada_type_name): Change result type from char * to const char *.
11876 All callers updated.
11877 * ada-lang.h (ada_type_name): Update.
11878 * buildsym.c (hashname): Change type of name parameter
11879 from char * to const char *.
11880 * buildsym.h (hashname): Update.
11881 * dbxread.c (end_psymtab): Change type of include_list parameter
11882 from char ** to const char **.
11883 * dwarf2read.c (determine_prefix): Change result type
11884 from char * to const char *. All callers updated.
11885 * f-lang.c (find_common_for_function): Change type of name, funcname
11886 parameters from char * to const char *.
11887 * f-lang.c (find_common_for_function): Update.
11888 * f-valprint.c (list_all_visible_commons): Change type of funcname
11889 parameters from char * to const char *.
11890 * gdbarch.sh (static_transform_name): Change type of name parameter
11891 and result from char * to const char *.
11892 * gdbarch.c: Regenerate.
11893 * gdbarch.h: Regenerate.
11894 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11895 of name parameter from char * to const char *.
11896 * jv-lang.c (java_primitive_type_from_name): Ditto.
11897 (java_demangled_signature_length): Similarly for signature parameter.
11898 (java_demangled_signature_copy): Ditto.
11899 (java_demangle_type_signature): Ditto.
11900 * jv-lang.h (java_primitive_type_from_name): Update.
11901 (java_demangle_type_signature): Update.
11902 * objc-lang.c (specialcmp): Change type of a,b parameters
11903 from char * to const char *.
11904 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11905 from char * to const char *. All callers updated.
11906 * p-lang.h (is_pascal_string_type): Update.
11907 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11908 of name parameter from char * to const char *.
11909 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11910 * utils.c (fprintf_symbol_filtered): Ditto.
11911 * defs.h (fprintf_symbol_filtered): Update.
11912 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11913 * stabsread.h (end_psymtab): Update.
11914 * stack.c (find_frame_funname): Change type of funname parameter
11915 from char ** to const char **.
11916 * stack.h (find_frame_funname): Update.
11917 * typeprint.c (type_print): Change type of varstring parameter
11918 from char * to const char *.
11919 * value.h (type_print): Update.
11920 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11921 from char * to const char *. All callers updated.
11922 (xcoff_end_psymtab): Change type of include_list parameter
11923 from char ** to const char **. All callers updated.
11924 (swap_sym): Similarly for name parameter. All callers updated.
11925 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11926 Use xstrdup.
11927 (process_coff_symbol): Use xstrdup.
11928 * stabsread.c (stabs_method_name_from_physname): Renamed from
11929 update_method_name_from_physname. Change result type from void
11930 to char *. All callers updated.
11931 (read_member_functions): In has_destructor case, store name in objfile
11932 obstack instead of malloc space. In !has_stub case, fix mem leak.
11933
11934 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11935
11936 * configure: Rebuild.
11937 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11938 LDFLAGS.
11939
11940 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11941
11942 * configure.tgt (rl78-*-elf): New target.
11943 * rl78-tdep.c: New file.
11944
11945 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11946
11947 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11948 and continue the loop. Add QUIT statement.
11949
11950 2012-02-03 Tom Tromey <tromey@redhat.com>
11951
11952 PR gdb/13596:
11953 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11954 bfd_lookup_symbol_from_symtab.
11955 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11956 gdb_bfd_lookup_symbol_from_symtab.
11957
11958 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11959
11960 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11961 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11962 symbol. Add assertion that sym2 is never NULL.
11963
11964 2012-02-02 Doug Evans <dje@google.com>
11965
11966 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11967 "name" parameter to const char ** from char **. All callers updated.
11968 (find_pc_partial_function): Ditto.
11969 (cache_pc_function_name): Change type to const char * from char *.
11970 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11971 (find_pc_partial_function): Update.
11972 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11973 type of "name" parameter to const char * from char *.
11974 All uses updated.
11975 * arch-utils.c (generic_in_solib_return_trampoline): Change
11976 type of "name" parameter to const char * from char *.
11977 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11978 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11979 type of "name" parameter to const char * from char *.
11980 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11981 * gdbarch.c: Regenerate.
11982 * gdbarch.h: Regenerate.
11983 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11984 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11985 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11986 type of "name" parameter to const char * from char *.
11987 * skip.c (skip_function_pc): Ditto.
11988 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11989 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11990 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11991 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11992 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11993 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11994 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11995 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11996 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11997
11998 2012-02-02 Pedro Alves <palves@redhat.com>
11999
12000 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
12001 the current inferior has no execution. Make sure the current
12002 remote process matches gdb's current inferior.
12003
12004 2012-02-02 Tom Tromey <tromey@redhat.com>
12005
12006 PR gdb/13405:
12007 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
12008 read-only memory.
12009
12010 2012-02-02 Tom Tromey <tromey@redhat.com>
12011
12012 PR gdb/9307:
12013 * symtab.c (lookup_language_this): Set block_found.
12014
12015 2012-02-01 Tom Tromey <tromey@redhat.com>
12016
12017 PR gdb/13431:
12018 * jit.c (struct jit_inferior_data): Rewrite.
12019 (struct jit_objfile_data): New.
12020 (get_jit_objfile_data): New function.
12021 (add_objfile_entry): Update.
12022 (jit_read_descriptor): Return int. Replace descriptor_addr
12023 argument with inf_data. Update. Don't call error.
12024 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
12025 descriptor here.
12026 (jit_inferior_init): Don't look up descriptor. Don't call error.
12027 (jit_reset_inferior_data_and_breakpoints)
12028 (jit_inferior_created_observer): Remove.
12029 (jit_inferior_exit_hook): Update.
12030 (jit_executable_changed_observer): Remove.
12031 (jit_event_handler): Update.
12032 (free_objfile_data): Reset inferior data if needed.
12033 (_initialize_jit): Update.
12034
12035 2012-02-01 Tom Tromey <tromey@redhat.com>
12036
12037 * jit.c (bfd_open_from_target_memory): Move higher in file.
12038
12039 2012-02-01 Tristan Gingold <gingold@adacore.com>
12040
12041 * libunwind-frame.c (libunwind_load): Display message if dlopen
12042 failed.
12043
12044 2012-02-01 Gary Benson <gbenson@redhat.com>
12045
12046 * symtab.h (symbol_found_callback_ftype): New typedef.
12047 (iterate_over_symbols): Use the above.
12048 * symtab.c (iterate_over_symbols): Likewise.
12049 * language.h (language_defn->la_iterate_over_symbols): Likewise.
12050 * ada-lang.c (ada_iterate_over_symbols): Likewise.
12051 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
12052 (iterate_name_matcher): Document return values.
12053 (collect_one_symbol): Likewise.
12054 (collect_function_symbols): Likewise.
12055 (collect_symbols): Likewise.
12056
12057 2012-02-01 Tom Tromey <tromey@redhat.com>
12058
12059 * ada-lang.c (resolve_subexp): Update.
12060 (ada_lookup_symbol_list): Add 'full_search' argument.
12061 (ada_iterate_over_symbols): Pass 0 as full_search argument to
12062 ada_lookup_symbol_list.
12063 (ada_lookup_encoded_symbol): Update.
12064 (get_var_value): Update.
12065 * ada-exp.y (block_lookup): Update.
12066 (write_var_or_type): Update.
12067 (write_name_assoc): Update.
12068 * ada-lang.h (ada_lookup_symbol_list): Update.
12069
12070 2012-01-31 Tom Tromey <tromey@redhat.com>
12071
12072 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
12073 comment.
12074
12075 2012-01-31 Doug Evans <dje@google.com>
12076
12077 * symtab.h: Remove outdated comment.
12078 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
12079
12080 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
12081
12082 Fix build error in Darwin port.
12083 * i386-darwin-nat.c: Include i386-nat.h.
12084
12085 2012-01-30 Tom Tromey <tromey@redhat.com>
12086
12087 PR breakpoints/13568:
12088 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
12089 argument. Check for recursive includes.
12090 (dwarf_decode_macros): Create an include hash.
12091
12092 2012-01-30 Michael Eager <eager@eagercon.com>
12093
12094 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
12095 * ppc-linux-tdep.c: Include glibc-tdep.h.
12096 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
12097 (powerpc_linux_in_plt_stub): New function.
12098 (powerpc_linux_in_dynsym_resolve_code): New function.
12099 (ppc_skip_trampoline_code): New function.
12100 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
12101 Use glibc_skip_solib_resolver.
12102
12103 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12104
12105 Code cleanup: Make 1440 bytes of data segment read-only.
12106 * arch-utils.c (endian_enum): Make it const char *const [].
12107 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
12108 Likewise.
12109 * breakpoint.c (always_inserted_enums): Likewise.
12110 * cli/cli-cmds.c (script_ext_enums): Likewise.
12111 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
12112 enumlist parameter const char *const *.
12113 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
12114 const char *const *.
12115 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
12116 parameter const char *const *.
12117 * cris-tdep.c (cris_modes): Make it const char *const [].
12118 * filesystem.c (target_file_system_kinds): Likewise.
12119 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
12120 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
12121 (can_use_displaced_stepping_enum, scheduler_enums)
12122 (exec_direction_names): Likewise.
12123 * language.c (_initialize_language): Make the type_or_range_names and
12124 case_sensitive_names variables const char *const [].
12125 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
12126 * python/python.c (python_excp_enums): Likewise.
12127 * remote.c (interrupt_sequence_modes): Likewise.
12128 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
12129 * serial.c (logbase_enums): Likewise.
12130 * sh-tdep.c (sh_cc_enum): Likewise.
12131 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
12132 Likewise.
12133 * symtab.c (multiple_symbols_modes): Likewise.
12134 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
12135 Likewise.
12136 * utils.c (internal_problem_modes): Likewise.
12137
12138 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
12139
12140 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
12141 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
12142 result.
12143
12144 2012-01-27 Doug Evans <dje@google.com>
12145
12146 * configure.ac (with_python): Fix absolute path handling for win32.
12147 * configure: Regenerate.
12148
12149 2012-01-26 Doug Evans <dje@google.com>
12150
12151 * symtab.c: Whitespace cleanup, no code changes.
12152
12153 * symtab.c (lookup_symbol_in_language): Improve comment.
12154 (lookup_symbol_aux): Fix comment.
12155
12156 * psymtab.c (add_psymbol_to_list): Result is now "void".
12157 * psympriv.h (add_psymbol_to_list): Update.
12158
12159 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
12160
12161 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12162
12163 Do not open script filenames twice.
12164 * cli/cli-cmds.c (source_script_from_stream): Pass to
12165 source_python_script also STREAM.
12166 * python/py-auto-load.c (source_section_scripts): Pass to
12167 source_python_script_for_objfile also STREAM.
12168 (auto_load_objfile_script): Pass to source_python_script_for_objfile
12169 also INPUT.
12170 * python/python-internal.h (source_python_script_for_objfile): New
12171 parameter file, rename parameter file to filename.
12172 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
12173 instead if !_WIN32. Update the function comment.
12174 (source_python_script, source_python_script_for_objfile)
12175 (source_python_script): New parameter file, rename parameter file to
12176 filename. Pass FILENAME to python_run_simple_file.
12177 * python/python.h (source_python_script): New parameter file, rename
12178 parameter file to filename.
12179
12180 2012-01-26 Pedro Alves <palves@redhat.com>
12181
12182 * corelow.c (core_has_fake_pid): Delete.
12183 (core_close): Delete references to `core_has_fake_pid'.
12184 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12185 (core_open): Delete references to `core_has_fake_pid'.
12186 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12187 the removed global.
12188
12189 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12190
12191 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12192 Remove language parameter from name_matcher. Adjust the comment.
12193 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12194 Remove language parameter.
12195 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12196 * linespec.c (iterate_name_matcher): Likewise.
12197 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12198 name_matcher. Adjust call accordingly.
12199 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12200 (maintenance_check_symtabs): Adjust type of parameter "fun".
12201 * psymtab.h (maintenance_check_symtabs): Likewise.
12202
12203 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12204
12205 * language.h (symbol_name_match_p_ftype): New typedef.
12206 (struct language_defn): Replace field la_symbol_name_compare
12207 by la_get_symbol_name_match_p.
12208 * ada-lang.c (ada_get_symbol_name_match_p): New function.
12209 (ada_language_defn): Use it.
12210 * linespec.c (struct symbol_matcher_data): New type.
12211 (iterate_name_matcher): Rewrite.
12212 (iterate_over_all_matching_symtabs): Pass a pointer to
12213 a symbol_matcher_data struct to expand_symtabs_matching
12214 instead of just the lookup name.
12215 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12216 opencl-lang.c, p-lang.c, language.c: Delete field
12217 la_symbol_name_compare, and replace by NULL for new field
12218 la_get_symbol_name_match_p.
12219 * symfile.h (struct quick_symbol_functions): Update comment.
12220
12221 2012-01-25 Tom Tromey <tromey@redhat.com>
12222
12223 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12224 dereferencing.
12225
12226 2012-01-24 Tom Tromey <tromey@redhat.com>
12227
12228 PR symtab/12406:
12229 * solib.c (update_solib_list): Update the program space's
12230 added_solibs and deleted_solibs fields.
12231 * progspace.h (struct program_space) <added_solibs,
12232 deleted_solibs>: New fields.
12233 (clear_program_space_solib_cache): Declare.
12234 * progspace.c (release_program_space): Call
12235 clear_program_space_solib_cache.
12236 (clear_program_space_solib_cache): New function.
12237 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12238 bpstat_stop_status. Use handle_solib_event.
12239 * breakpoint.c: Include gdb_regex.h.
12240 (print_solib_event): New function.
12241 (bpstat_print): Use print_solib_event.
12242 (bpstat_stop_status): Add special case for bp_shlib_event.
12243 (handle_solib_event): New function.
12244 (bpstat_what): Use handle_solib_event.
12245 (struct solib_catchpoint): New.
12246 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12247 (breakpoint_hit_catch_solib, check_status_catch_solib)
12248 (print_it_catch_solib, print_one_catch_solib)
12249 (print_mention_catch_solib, print_recreate_catch_solib): New
12250 functions.
12251 (catch_solib_breakpoint_ops): New global.
12252 (catch_load_or_unload, catch_load_command_1)
12253 (catch_unload_command_1): New functions.
12254 (internal_bkpt_check_status): Add special case for
12255 bp_shlib_event.
12256 (internal_bkpt_print_it): Use print_solib_event.
12257 (initialize_breakpoint_ops): Initialize
12258 catch_solib_breakpoint_ops.
12259 (_initialize_breakpoint): Register "catch load" and "catch
12260 unload".
12261 * breakpoint.h (handle_solib_event): Declare.
12262 * NEWS: Add entry for "catch load" and "catch unload".
12263
12264 2012-01-24 Tom Tromey <tromey@redhat.com>
12265
12266 * ada-lang.c: Include gdb_vecs.h.
12267 * charset.c: Include gdb_vecs.h.
12268 * tracepoint.h: Include gdb_vecs.h.
12269 * gdb_vecs.h: New file.
12270
12271 2012-01-24 Pedro Alves <pedro@codesourcery.com>
12272
12273 * breakpoint.c (breakpoint_hit_catch_fork)
12274 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12275 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12276 * infrun.c (inferior_has_forked, inferior_has_vforked)
12277 (inferior_has_execd, inferior_has_called_syscall): Delete.
12278 (handle_syscall_event): Get syscall_number from the execution
12279 control state's wait status.
12280 (wait_for_inferior): Don't clear syscall_number.
12281
12282 2012-01-24 Pedro Alves <palves@redhat.com>
12283
12284 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12285 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12286 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12287 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12288 `ws' parameter.
12289 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12290 false for events other than TARGET_SIGNAL_TRAP.
12291 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12292 Add `ws' parameter.
12293 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12294 events other than TARGET_SIGNAL_TRAP.
12295 (tracepoint_breakpoint_hit): Add `ws' parameter.
12296 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12297 parameter.
12298 (bpstat_stop_status): Same.
12299 (pc_at_non_inline_function): Same.
12300 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12301 to pass the current event's waitstatus to bpstat_stop_status
12302 and pc_at_non_inline_function.
12303
12304 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12305
12306 Code cleanup.
12307 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12308 Update the function comment for it.
12309 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12310 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12311 for STREAM.
12312
12313 2012-01-24 Pedro Alves <palves@redhat.com>
12314
12315 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12316 outside `bs->stop' block.
12317 (bpstat_what): Rework bp_shlib_event handling.
12318 (internal_bkpt_check_status): If the breakpoint is a
12319 bp_shlib_event, then set bs->stop and bs->print if
12320 stop_on_solib_events is set.
12321
12322 2012-01-24 Gary Benson <gbenson@redhat.com>
12323
12324 Delete #if 0'd out code.
12325 * stack.c (print_frame_label_vars): Remove.
12326 (catch_info): Likewise.
12327 (_initialize_stack): Remove "info catch" command.
12328 * NEWS: Mention the above.
12329
12330 2012-01-24 Pedro Alves <palves@redhat.com>
12331
12332 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12333 it.
12334 (remote_notice_new_inferior): If the remote end doesn't support
12335 the multiprocess extensions, then the PID is fake.
12336 (add_current_inferior_and_thread): New.
12337 (remote_start_remote): Use it.
12338 (extended_remote_attach_1): Adjust.
12339 (extended_remote_create_inferior_1): Use
12340 add_current_inferior_and_thread.
12341
12342 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12343
12344 Fix watchpoints to be specific for each inferior.
12345 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12346 current_program_space.
12347 * i386-nat.c (i386_inferior_data_cleanup): New.
12348 (i386_inferior_data_get): Replace variable inf_data_local by an
12349 inferior_data call.
12350 (i386_use_watchpoints): Initialize i386_inferior_data.
12351 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12352 specific iterate_over_lwps.
12353
12354 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12355
12356 Fix watchpoints across inferior fork.
12357 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12358 comment for linux_nat_iterate_watchpoint_lwps.
12359 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12360 linux_nat_iterate_watchpoint_lwps.
12361 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12362 * i386-linux-nat.c (update_debug_registers_callback): Update the
12363 comment for linux_nat_iterate_watchpoint_lwps.
12364 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12365 linux_nat_iterate_watchpoint_lwps.
12366 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12367 * i386-nat.c: Include inferior.h.
12368 (dr_mirror): Remove.
12369 (i386_inferior_data, struct i386_inferior_data)
12370 (i386_inferior_data_get): New.
12371 (i386_debug_reg_state): Use i386_inferior_data_get.
12372 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12373 (i386_insert_watchpoint, i386_remove_watchpoint)
12374 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12375 (i386_remove_hw_breakpoint): New variable state, use
12376 i386_debug_reg_state instead of DR_MIRROR.
12377 * linux-nat.c (delete_lwp): New declaration.
12378 (num_lwps): Move here from downwards.
12379 (delete_lwp_cleanup): New.
12380 (linux_child_follow_fork): Create new child_lp, call
12381 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12382 PTRACE_DETACH.
12383 (num_lwps): Move upwards.
12384 (linux_nat_iterate_watchpoint_lwps): New.
12385 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12386 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12387
12388 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12389
12390 GDB 7.4 released.
12391
12392 2012-01-23 Pedro Alves <palves@redhat.com>
12393
12394 * top.c (caution): Rename to ...
12395 (confirm): ... this.
12396 (show_caution): Rename to ...
12397 (show_confirm): ... this.
12398 (quit_cover): Adjust.
12399 (init_main): Adjust.
12400 * top.h (caution): Rename to ...
12401 (confirm): ... this.
12402 * utils.c (internal_vproblem, defaulted_query): Adjust.
12403
12404 2012-01-23 Pedro Alves <palves@redhat.com>
12405
12406 * top.c (caution): Update comment.
12407 (execute_command): Don't consider the current value of `caution'.
12408
12409 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12410
12411 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12412
12413 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12414
12415 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12416 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12417 * target.c (target_fileio_pwrite): Remove buffer address from
12418 debug output.
12419 (target_fileio_pread): Likewise.
12420
12421 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12422
12423 * NEWS: Document remote "info proc" and "generate-core-file".
12424
12425 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12426
12427 * gdbarch.sh (find_memory_regions): New callback.
12428 * gdbarch.c, gdbarch.h: Regenerate.
12429
12430 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12431 callback before falling back to target method.
12432
12433 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12434 (linux_target_install_ops): No longer install it.
12435
12436 * linux-tdep.c (linux_find_memory_regions): New function.
12437 (linux_init_abi): Install it.
12438
12439 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12440
12441 * gdbarch.sh (make_corefile_notes): New architecture callback.
12442 * gdbarch.c: Regenerate.
12443 * gdbarch.h: Likewise.
12444
12445 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12446 before target_make_corefile_notes. If NULL is returned, the
12447 target does not support core file generation.
12448
12449 * linux-nat.c: Include "linux-tdep.h".
12450 (find_signalled_thread, find_stop_signal): Remove.
12451 (linux_nat_do_thread_registers): Likewise.
12452 (struct linux_nat_corefile_thread_data): Likewise.
12453 (linux_nat_corefile_thread_callback): Likewise.
12454 (iterate_over_spus): Likewise.
12455 (struct linux_spu_corefile_data): Likewise.
12456 (linux_spu_corefile_callback): Likewise.
12457 (linux_spu_make_corefile_notes): Likewise.
12458 (linux_nat_collect_thread_registers): New function.
12459 (linux_nat_make_corefile_notes): Replace contents by call to
12460 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12461 as native-only callback.
12462
12463 * linux-tdep.h: Include "bfd.h".
12464 (struct regcache): Add forward declaration.
12465 (linux_collect_thread_registers_ftype): New typedef.
12466 (linux_make_corefile_notes): Add prototype.
12467 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12468 "regset.h", and "elf-bfd.h".
12469 (find_signalled_thread, find_stop_signal): New functions.
12470 (linux_spu_make_corefile_notes): Likewise.
12471 (linux_collect_thread_registers): Likewise.
12472 (struct linux_corefile_thread_data): New data structure.
12473 (linux_corefile_thread_callback): New funcion.
12474 (linux_make_corefile_notes): Likewise.
12475 (linux_make_corefile_notes_1): Likewise.
12476 (linux_init_abi): Install it.
12477
12478 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12479
12480 * gdbarch.sh (info_proc): New callback.
12481 * gdbarch.c, gdbarch.h: Regenerate.
12482
12483 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12484 before falling back to the target info_proc callback.
12485
12486 * linux-nat.c: Do not include "cli/cli-utils.h".
12487 (linux_nat_info_proc): Remove.
12488 (linux_target_install_ops): No longer install it.
12489
12490 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12491 (read_mapping): New function.
12492 (linux_info_proc): Likewise.
12493 (linux_init_abi): Install it.
12494
12495 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12496
12497 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12498 * infcmd.c: (info_proc_cmd_1): New function.
12499 (info_proc_cmd): New function, moved here from equivalent routine
12500 orignally in linux-nat.c.
12501 (info_proc_cmd_mappings): Likewise.
12502 (info_proc_cmd_stat): Likewise.
12503 (info_proc_cmd_status): Likewise.
12504 (info_proc_cmd_cwd): Likewise.
12505 (info_proc_cmd_cmdline): Likewise.
12506 (info_proc_cmd_exe): Likewise.
12507 (info_proc_cmd_all): Likewise.
12508 (_initialize_infcmd): Install "info proc" command and subcommands.
12509
12510 * target.h (struct target_ops): Add to_info_proc.
12511 (target_info_proc): Add prototype.
12512 * target.c (target_info_proc): New function.
12513
12514 * procfs.c (procfs_info_proc): Add prototype.
12515 (info_proc_cmd): Rename into ...
12516 (procfs_info_proc): ... this. Update argument types as appropriate
12517 for a to_info_proc implementation. Handle "what" argument.
12518 (procfs_target): Install procfs_info_proc.
12519 (_initialize_procfs): No longer install "info proc" command.
12520
12521 * linux-nat.c: (enum info_proc_what): Remove.
12522 (linux_nat_info_proc_cmd_1): Rename into ...
12523 (linux_nat_info_proc): ... this. Update argument types as appropriate
12524 for a to_info_proc implementation.
12525 (linux_nat_info_proc_cmd): Remove.
12526 (linux_nat_info_proc_cmd_mappings): Likewise.
12527 (linux_nat_info_proc_cmd_stat): Likewise.
12528 (linux_nat_info_proc_cmd_status): Likewise.
12529 (linux_nat_info_proc_cmd_cwd): Likewise.
12530 (linux_nat_info_proc_cmd_cmdline): Likewise.
12531 (linux_nat_info_proc_cmd_exe): Likewise.
12532 (linux_nat_info_proc_cmd_all): Likewise.
12533 (linux_target_install_ops): Install linux_nat_info_proc.
12534 (_initialize_linux_nat): No longer install "info proc" command
12535 and subcommands.
12536
12537 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12538
12539 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12540 * config.in, configure: Regenerate.
12541
12542 * target.h (struct target_ops): Add to_fileio_readlink.
12543 (target_fileio_readlink): Add prototype.
12544 * target.c (target_fileio_readlink): New function.
12545
12546 * inf-child.c: Conditionally include <sys/param.h>.
12547 (inf_child_fileio_readlink): New function.
12548 (inf_child_target): Install it.
12549
12550 * remote.c (PACKET_vFile_readlink): New enum value.
12551 (remote_hostio_readlink): New function.
12552 (init_remote_ops): Install it.
12553 (_initialize_remote): Handle vFile:readlink packet type.
12554
12555 2012-01-20 Pedro Alves <palves@redhat.com>
12556 Ulrich Weigand <ulrich.weigand@linaro.org>
12557
12558 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12559 * config.in, configure: Regenerate.
12560
12561 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12562 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12563 (target_fileio_open): Add prototype.
12564 (target_fileio_pwrite): Likewise.
12565 (target_fileio_pread): Likewise.
12566 (target_fileio_close): Likewise.
12567 (target_fileio_unlink): Likewise.
12568 (target_fileio_read_alloc): Likewise.
12569 (target_fileio_read_stralloc): Likewise.
12570
12571 * target.c: Include "gdb/fileio.h".
12572 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12573 (default_fileio_target): New function.
12574 (target_fileio_open): Likewise.
12575 (target_fileio_pwrite): Likewise.
12576 (target_fileio_pread): Likewise.
12577 (target_fileio_close): Likewise.
12578 (target_fileio_unlink): Likewise.
12579 (target_fileio_close_cleanup): Likewise.
12580 (target_fileio_read_alloc_1): Likewise.
12581 (target_fileio_read_alloc): Likewise.
12582 (target_fileio_read_stralloc): Likewise.
12583
12584 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12585 <fcntl.h>, and <unistd.h>.
12586 (inf_child_fileio_open_flags_to_host): New function.
12587 (inf_child_errno_to_fileio_error): Likewise.
12588 (inf_child_fileio_open): Likewise.
12589 (inf_child_fileio_pwrite): Likewise.
12590 (inf_child_fileio_pread): Likewise.
12591 (inf_child_fileio_close): Likewise.
12592 (inf_child_fileio_unlink): Likewise.
12593 (inf_child_target): Install to_fileio routines.
12594
12595 * remote.c (init_remote_ops): Install to_fileio routines.
12596
12597 2012-01-20 Pedro Alves <palves@redhat.com>
12598 Ulrich Weigand <ulrich.weigand@linaro.org>
12599
12600 * remote.c (remote_multi_process_p): Only check for multi-process
12601 protocol feature, do not check for extended protocol.
12602 (remote_supports_multi_process): Check for extended protocol here.
12603 (set_general_process): Likewise.
12604 (extended_remote_kill): Likewise.
12605 (remote_pid_to_str): Likewise.
12606 (remote_query_supported): Always query multiprocess mode.
12607
12608 2012-01-20 Pedro Alves <palves@redhat.com>
12609 Ulrich Weigand <ulrich.weigand@linaro.org>
12610
12611 * inferior.h (struct inferior): Add fake_pid_p.
12612 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12613 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12614 magic_null_ptid since the remote side doesn't provide a real PID.
12615
12616 2012-01-19 Tom Tromey <tromey@redhat.com>
12617
12618 * NEWS: Combine the two Python sections.
12619
12620 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12621
12622 * target.h (target_close): Update comment on the target's unpush state.
12623
12624 2012-01-19 Pedro Alves <palves@redhat.com>
12625
12626 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12627 linux_nat_async directly instead of going through the target
12628 vector.
12629 * target.c (unpush_target): Close target after unpushing it, not
12630 before.
12631
12632 2012-01-19 Gary Benson <gbenson@redhat.com>
12633
12634 * mdebugread.c (sort_blocks): Replace integer constants with ones
12635 derived from FIRST_LOCAL_BLOCK.
12636
12637 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12638 Jan Kratochvil <jan.kratochvil@redhat.com>
12639
12640 PR gdb/9538
12641 * symfile.c (find_separate_debug_file): New function.
12642 (terminate_after_last_dir_separator): Likewise.
12643 (find_separate_debug_file_by_debuglink): Also try realpath.
12644 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12645 * configure: Regenerate.
12646 * config.in: Regenerate.
12647
12648 2012-01-18 Doug Evans <dje@google.com>
12649
12650 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12651 (main.o): Remove rule.
12652 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12653 (--with-sysroot): Rewrite.
12654 * configure: Regenerate.
12655 * config.in: Regenerate.
12656
12657 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12658
12659 * parse.c (initialize_expout): New function.
12660 (reallocate_expout): Likewise.
12661 (parse_exp_in_context): Use `initialize_expout' and
12662 `reallocate_expout' when appropriate.
12663
12664 2012-01-18 Pedro Alves <palves@redhat.com>
12665
12666 * record.c (struct record_breakpoint, record_breakpoint_p)
12667 (record_breakpoints): New.
12668 (record_insert_breakpoint, record_remove_breakpoint): Manage
12669 record breakpoints list. Only remove breakpoints from the
12670 inferior if they had been inserted there in the first place.
12671
12672 2012-01-17 Doug Evans <dje@google.com>
12673
12674 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12675 if we know we don't have a file name to look for.
12676
12677 2012-01-17 Pedro Alves <palves@redhat.com>
12678
12679 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12680 the frame's stop reason is UNWIND_UNAVAILABLE.
12681
12682 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12683
12684 Fix compilation error.
12685 * m2-exp.y (yyerror): Use ANSI C prototype.
12686
12687 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12688
12689 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12690 (growbuf_by_size): Likewise.
12691 (yyerror): Likewise.
12692 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12693 (modblock): Remove variable (was #if 0'ed).
12694 (parse_number): Convert prototype from K&R to ANSI C.
12695 (yyerror): Likewise.
12696 * objc-exp.y (parse_number): Likewise.
12697 (yyerror): Likewise.
12698 (yylex): Remove #if 0'ed code.
12699 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12700 (yyerror): Likewise.
12701
12702 2012-01-16 Tom Tromey <tromey@redhat.com>
12703
12704 * NEWS: Add item.
12705 * symtab.h (compare_filenames_for_search): Declare.
12706 * symtab.c (compare_filenames_for_search): New function.
12707 (iterate_over_some_symtabs): Use it.
12708 * symfile.h (struct quick_symbol_functions)
12709 <map_symtabs_matching_filename>: Change spec.
12710 * psymtab.c (partial_map_symtabs_matching_filename): Use
12711 compare_filenames_for_search. Update for new spec.
12712 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12713 compare_filenames_for_search. Update for new spec.
12714 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12715
12716 2012-01-16 Tom Tromey <tromey@redhat.com>
12717
12718 PR python/13281:
12719 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12720 (struct main_type) <flag_flag_enum>: New field.
12721 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12722 * NEWS: Add entries.
12723 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12724 enums.
12725 * python/lib/gdb/printing.py (_EnumInstance): New class.
12726 (FlagEnumerationPrinter): Likewise.
12727
12728 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12729
12730 * breakpoint.c (create_sals_from_address_default): New function.
12731 (create_breakpoints_sal_default): Likewise.
12732 (decode_linespec_default): Likewise.
12733 (is_marker_spec): Removed.
12734 (strace_marker_p): New function.
12735 (init_breakpoint_sal): Using `strace_marker_p' instead of
12736 `is_marker_spec'.
12737 (create_breakpoint): Call method `create_sals_from_address' from
12738 breakpoint_ops, replacing code that created SALs conditionally
12739 on the type of the breakpoint. Call method `create_breakpoints_sal',
12740 replacing code that created breakpoints conditionally on the type
12741 wanted.
12742 (base_breakpoint_create_sals_from_address): New function.
12743 (base_breakpoint_create_breakpoints_sal): Likewise.
12744 (base_breakpoint_decode_linespec): Likewise.
12745 (base_breakpoint_ops): Add methods
12746 `base_breakpoint_create_sals_from_address',
12747 `base_breakpoint_create_breakpoints_sal' and
12748 `base_breakpoint_decode_linespec'.
12749 (bkpt_create_sals_from_address): New function.
12750 (bkpt_create_breakpoints_sal): Likewise.
12751 (bkpt_decode_linespec): Likewise.
12752 (tracepoint_create_sals_from_address): Likewise.
12753 (tracepoint_create_breakpoints_sal): Likewise.
12754 (tracepoint_decode_linespec): Likewise.
12755 (strace_marker_create_sals_from_address): Likewise.
12756 (strace_marker_create_breakpoints_sal): Likewise.
12757 (strace_marker_decode_linespec): Likewise.
12758 (strace_marker_breakpoint_ops): New variable.
12759 (addr_string_to_sals): Remove `marker_spec'. Call method
12760 `decode_linespec' from breakpoint_ops, replacing code that decoded
12761 an address string into a SAL. Use `strace_marker_p' instead of
12762 `marker_spec'.
12763 (strace_command): Decide whether we are dealing with a static
12764 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12765 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12766 * breakpoint.h (linespec_result, linespec_sals): New forward
12767 declarations.
12768 (breakpoint_ops) <create_sals_from_address>,
12769 <create_breakpoints_sal>, <decode_linespec>: New methods.
12770
12771 2012-01-14 Doug Evans <dje@google.com>
12772
12773 * NEWS: Update text for "maint set python print-stack".
12774 It is deprecated in gdb 7.4 and deleted in 7.5.
12775
12776 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12777
12778 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12779 including curses.h.
12780
12781 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12782
12783 * configure: Regenerate.
12784 * config.in: Regenerate.
12785
12786 2012-01-12 Keith Seitz <keiths@redhat.com>
12787
12788 PR mi/10586
12789 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12790 (ANONYMOUS_UNION_NAME): Define.
12791 (is_path_expr_parent): New function.
12792 (get_path_expr_parent): New function.
12793 (is_anonymous_child): New function.
12794 (create_child_with_value): If the child is anonymous and without
12795 a name, assign an object name to it.
12796 (c_describe_child): Use get_path_expr_parent to determine
12797 the parent expression.
12798 If there field represents an anonymous struct or union and
12799 has no name, set an appropriate display name and expression.
12800 (cplus_describe_child): Likewise.
12801
12802 2012-01-12 Pedro Alves <palves@redhat.com>
12803
12804 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12805 available when %ebp is found to be zero (outermost).
12806
12807 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12808
12809 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12810 an internal gdb_static_assert.
12811 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12812
12813 2012-01-11 Tom Tromey <tromey@redhat.com>
12814
12815 PR gdb/9598:
12816 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12817 catch" and "catch throw".
12818
12819 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12820
12821 * blockframe.c (block_innermost_frame): Start search from selected
12822 frame, if present, or otherwise the current frame.
12823
12824 * c-exp.y (variable): Update innermost_block for
12825 'block COLONCOLON NAME' clause.
12826 * m2-exp.y (variable): Ditto.
12827 * objc-exp.y (variable): Ditto.
12828
12829 2012-01-10 Tom Tromey <tromey@redhat.com>
12830
12831 PR python/13199:
12832 * python/python.c (finish_python_initialization): Set sys.argv.
12833
12834 2012-01-10 Doug Evans <dje@google.com>
12835
12836 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12837 "want_line_info". All callers updated.
12838 (dwarf_decode_lines_1): New function.
12839 (handle_DW_AT_stmt_list): Add function comment.
12840 New arg "want_line_info". All callers updated.
12841 (read_file_scope,read_type_unit_scope): Move comment from
12842 handle_DW_AT_stmt_list to here.
12843
12844 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12845
12846 Fix regression after libiberty/ update for GCC PR 6057 and others.
12847 * c-exp.y (operator) <OPERATOR DELETE>
12848 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12849 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12850 (make_builtin_type, make_name): New variable i, add gdb_assert.
12851 (operator) <OPERATOR NEW>: Update ARGS to 3.
12852 (operator) <OPERATOR DELETE>: Add trailing space.
12853 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12854 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12855 * cp-support.c (cp_canonicalize_string): Check NULL from
12856 cp_comp_to_string, call warning and return.
12857
12858 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12859
12860 Fix duplicate .o files after omitting libbfd.a.
12861 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12862 (SFILES): Add corelow.c.
12863 (COMMON_OBS): Add corelow.o.
12864 (ALLDEPFILES): Remove corelow.c.
12865 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12866 * config/alpha/alpha-osf3.mh: Likewise.
12867 * config/alpha/fbsd.mh: Likewise.
12868 * config/arm/nbsdaout.mh: Likewise.
12869 * config/arm/nbsdelf.mh: Likewise.
12870 * config/i386/i386gnu.mh: Likewise.
12871 * config/ia64/hpux.mh: Likewise.
12872 * config/ia64/linux.mh: Likewise.
12873 * config/m32r/linux.mh: Likewise.
12874 * config/m68k/linux.mh: Likewise.
12875 * config/mips/irix5.mh: Likewise.
12876 * config/mips/irix6.mh: Likewise.
12877 * config/pa/hpux.mh: Likewise.
12878 * config/pa/linux.mh: Likewise.
12879 * config/powerpc/aix.mh: Likewise.
12880 * config/sparc/linux.mh: Likewise.
12881 * config/sparc/linux64.mh: Likewise.
12882 * config/sparc/sol2.mh: Likewise.
12883 * config/vax/vax.mh: Likewise.
12884 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12885 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12886 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12887 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12888 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12889 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12890 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12891 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12892 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12893 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12894 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12895 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12896 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12897 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12898 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12899 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12900 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12901 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12902 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12903 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12904 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12905 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12906 corelow.o from gdb_target_obs.
12907 * corefile.c (core_target): Update the comment on NULL value.
12908 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12909 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12910 MATCHES. Drop YUMMY set on NULL.
12911 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12912 reclaim CORE_DATA if it is already NULL.
12913
12914 2012-01-09 Doug Evans <dje@google.com>
12915
12916 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12917 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12918
12919 2012-01-09 Keith Seitz <keiths@redhat.com>
12920
12921 * breakpoint.c (wrapper.h): Don't include.
12922
12923 2012-01-09 Keith Seitz <keiths@redhat.com>
12924
12925 * Makefile.in (SFILES): Remove wrapper.c.
12926 (HFILES_NO_SRCDIR): Remove wrapper.h.
12927 (COMMON_OBS): Remove wrapper.o.
12928 * cli/cli-interp.c: Don't inlude wrapper.h.
12929 * corelow.c: Likewise.
12930 (core_open): Replace gdb_target_find_new_threads with
12931 TRY_CATCH around target_find_new_threads.
12932 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12933 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12934 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12935 evaluate_expression.
12936 (varobj_set_value): Likewise for evaluate_expression and
12937 value_assign.
12938 (install_new_variable): Likewise for value_fetch_lazy.
12939 (adjust_value_for_child_access): Likewise for value_ind.
12940 (c_describe_child): Likewise for value_subscript and
12941 value_ind.
12942 (c_value_of_root): Likewise for evaluate_expression.
12943 * wrapper.c: Remove.
12944 * wrapper.h: Remove.
12945
12946 2012-01-09 Doug Evans <dje@google.com>
12947
12948 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12949 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12950 "abfd" args with "section". All callers updated.
12951 Error checking code moved ...
12952 (error_check_comp_unit_head): ... here. New function.
12953 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12954 Delete arg "abfd". New arg "type_offset". All callers updated.
12955 (create_debug_types_hash_table): Simplify by using
12956 read_and_check_type_unit_head.
12957
12958 * parser-defs.h (namecopy): Delete.
12959 * parse.c (namecopy, namecopy_size): Move into copy_name.
12960
12961 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12962
12963 Partially fix duplicate .o files after omitting libbfd.a.
12964 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12965 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12966 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12967 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12968 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12969 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12970 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12971
12972 2012-01-09 Pedro Alves <palves@redhat.com>
12973
12974 * MAINTAINERS: Update my email address.
12975
12976 2012-01-08 Doug Evans <dje@google.com>
12977
12978 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12979 n_type_units. Rename type_comp_units to all_type_units.
12980 All uses updated.
12981 (add_signatured_type_cu_to_table): Renamed from
12982 add_signatured_type_cu_to_list. All callers updated.
12983
12984 * gdbtypes.h (struct cplus_struct_type): Delete member
12985 nfn_fields_total. All uses removed.
12986
12987 2012-01-06 Doug Evans <dje@google.com>
12988
12989 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12990 to top of file.
12991 (dwarf2_find_comp_unit): Delete.
12992 (process_psymtab_comp_unit): Make result "void".
12993 Delete args buffer, info_ptr, buffer_size, and replace with
12994 "section". All callers updated.
12995 (dwarf2_build_psymtabs_hard): Simplify.
12996
12997 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12998 Thiago Jung Bauermann <bauerman@br.ibm.com>
12999
13000 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
13001 before `struct gdb_exception'.
13002 * breakpoint.c (update_global_location_list_nothrow)
13003 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
13004 * cp-abi.c (value_rtti_type): Likewise.
13005 * cp-support.c (cp_validate_operator): Likewise.
13006 * infrun.c (insert_exception_resume_breakpoint)
13007 (check_exception_resume, keep_going): Likewise.
13008 * mi-interp.c (mi_breakpoint_created)
13009 (mi_breakpoint_modified): Likewise.
13010 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
13011 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
13012 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
13013
13014 2012-01-05 Doug Evans <dje@google.com>
13015
13016 * dwarf2read.c (statement_prologue): Delete, unused.
13017
13018 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
13019 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
13020
13021 * dwarf2read.c (comp_unit_header): Delete, unused.
13022
13023 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
13024
13025 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
13026 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
13027
13028 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
13029
13030 * infrun.c (normal_stop): Don't skip calling the normal_stop
13031 observers if the thread was doing a multi-step, but stopped for
13032 some reason other than stepping.
13033
13034 2012-01-05 Pedro Alves <alves.ped@gmail.com>
13035
13036 * cli/cli-decode.h: Add comments.
13037 (CMD_LIST_AMBIGUOUS): Moved to command.h
13038 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
13039 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
13040 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
13041 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
13042 (add_com, add_com_alias, add_info, add_info_alias)
13043 (complete_on_cmdlist, complete_on_enum, help_list): Remove
13044 declarations.
13045 * command.h: Add and adjust comments.
13046 (CMD_LIST_AMBIGUOUS): Moved here.
13047 (help_cmd, help_cmd_list): Delete declarations.
13048
13049 2012-01-04 Doug Evans <dje@google.com>
13050
13051 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
13052 All callers updated.
13053 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
13054 Replace all arguments with "per_cu". All callers updated.
13055
13056 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
13057
13058 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
13059 New arg "per_cu". All callers updated.
13060
13061 Delete #if 0'd out code.
13062 * language.c (binop_result_type): Delete.
13063 (simple_type, ordered_type, same_type, integral_type): Delete.
13064 (numeric_type, character_type, string_type, boolean_type): Delete.
13065 (float_type, structured_type): Delete.
13066 * language.h: Update.
13067
13068 2012-01-04 Tom Tromey <tromey@redhat.com>
13069
13070 * python/py-value.c (valpy_binop): Initialize 'res_val'.
13071
13072 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13073
13074 * corefile.c (close_exec_file): Delete.
13075 (reopen_exec_file): Remove commented out code that seems related
13076 to close_exec_file, which is being deleted here.
13077 * inferior.h (close_exec_file): Delete.
13078 * fork-child.c (fork_inferior): Remove call to fork_inferior.
13079
13080 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13081
13082 * ada-lang.c: #include "cli/cli-utils.h".
13083 (get_selections): Use skip_spaces.
13084 (ada_get_next_arg): Use skip_spaces and skip_to_space.
13085 (catch_ada_exception_command_split): Use skip_spaces.
13086 (ada_decode_assert_location): Likewise.
13087
13088 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13089
13090 * linespec.c (decode_line_internal): Check for C++ or Java
13091 compound constructs only if the current language is C, C++
13092 or Java.
13093
13094 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
13095
13096 Revert:
13097 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13098 Joel Brobecker <brobecker@adacore.com>
13099 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13100 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13101 3 times.
13102 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13103 fall through into AT_ENTRY_POINT.
13104 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13105 DUMMY_ADDR with it.
13106 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13107 PPC_INSN_SIZE skip to 3 times.
13108
13109 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13110
13111 * linespec.c (add_minsym): Preserve function descriptors.
13112
13113 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
13114
13115 * breakpoint.c (all_locations_are_pending): Consider locations
13116 in program spaces executing during startup pending as well.
13117
13118 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13119
13120 Copyright year update in most files of the GDB Project.
13121
13122 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13123
13124 * copyright.sh: Delete.
13125 * copyright.py: Rewrite.
13126
13127 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13128
13129 * gnulib/extra/update-copyright: New file, imported from gnulib.
13130
13131 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13132
13133 * README (Copyright and License Notices): New section.
13134
13135 2012-01-03 Tom Tromey <tromey@redhat.com>
13136
13137 PR python/12533:
13138 * python/py-value.c (valpy_dereference, valpy_get_address
13139 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13140 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
13141 (valpy_absolute, valpy_richcompare): Free intermediate values.
13142
13143 2011-01-03 Joel Brobecker <brobecker@adacore.com>
13144
13145 * ada-lang.c: Reformat the copyright notice.
13146
13147 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13148
13149 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
13150 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
13151 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
13152 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
13153 Revert this part of:
13154 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13155 Build gdb directly from *.o files not using libgdb.a.
13156 * Makefile.in (COMMON_OBS): Remove solib-target.o.
13157
13158 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13159
13160 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
13161 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
13162 Reformat the copyright header.
13163
13164 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13165
13166 Revert this part of:
13167 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13168 Remove the gdbtui binary.
13169 * gdb.c (main): Remove args.interpreter_p initialization.
13170 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13171 * main.h (struct captured_main_args): Remove interpreter_p.
13172
13173 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13174
13175 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
13176
13177 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13178
13179 * top.c (print_gdb_version): Update copyright year.
13180
13181 2012-01-02 Yao Qi <yao@codesourcery.com>
13182
13183 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13184
13185 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13186 Joel Brobecker <brobecker@adacore.com>
13187
13188 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13189 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13190 3 times.
13191 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13192 fall through into AT_ENTRY_POINT.
13193 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13194 DUMMY_ADDR with it.
13195 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13196 PPC_INSN_SIZE skip to 3 times.
13197
13198 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13199
13200 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13201 the return value.
13202 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13203
13204 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13205
13206 Build gdb directly from *.o files not using libgdb.a.
13207 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13208 (COMMON_OBS): Remove solib-target.o.
13209 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13210 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13211 (LIBGDB_OBS, libgdb.a): Move it above.
13212 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13213 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13214 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13215 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13216 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13217 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13218 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13219 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13220 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13221 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13222 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13223 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13224 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13225 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13226 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13227 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13228 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13229 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13230 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13231 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13232 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13233 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13234 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13235 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13236 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13237 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13238 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13239
13240 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13241
13242 Remove the gdbtui binary.
13243 * .gitignore (/gdbtui): Remove.
13244 * Makefile.in (TUI): Remove.
13245 (SUBDIR_TUI_OBS): Remove tui-main.o.
13246 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13247 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13248 (tui-main.o): Remove.
13249 (all_object_files): Remove tui-main.o.
13250 * NEWS: New note for the gdbtui removal.
13251 * configure: Rebuilt.
13252 * configure.ac: No longer add all-tui, clean-tui, install-tui and
13253 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13254 CONFIG_UNINSTALL respectively.
13255 * gdb.c (main): Remove args.interpreter_p initialization.
13256 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13257 * main.h (struct captured_main_args): Remove interpreter_p.
13258 * tui/tui-main.c: Remove.
13259
13260 2012-01-01 Doug Evans <dje@google.com>
13261
13262 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13263 (dwarf2_physname, read_import_statement): Ditto.
13264 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13265 (process_structure_scope read_subroutine_type): Ditto.
13266 (read_typedef, load_partial_dies, read_partial_die): Ditto.
13267 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13268 (dwarf2_fetch_die_location_block): Ditto.
13269 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13270
13271 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13272 All callers updated.
13273 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13274 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13275 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13276
13277 * dwarf2read.c (load_cu): Move assert to more useful location.
13278
13279 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13280 All callers updated.
13281
13282 * dwarf2read.c (dwarf2_per_objfile): Add comment.
13283 (dwarf2_elf_names): Minor reformat.
13284 (dwarf2_per_cu_data): Tweak comment.
13285 (dwarf2_read_section): Fix comment.
13286 (create_all_comp_units): Fix comment.
13287 (load_full_comp_unit): Fix comment.
13288 (process_full_comp_unit): Fix comment.
13289 (read_signatured_type): Fix comment.
13290
13291 For older changes see ChangeLog-2011.
13292 \f
13293 Local Variables:
13294 mode: change-log
13295 left-margin: 8
13296 fill-column: 74
13297 version-control: never
13298 coding: utf-8
13299 End:
This page took 0.323722 seconds and 4 git commands to generate.