* cli/cli-cmds.c (_initialize_cli_cmds): New function.
[binutils-gdb.git] / gdb / ChangeLog
1 2012-12-12 Tom Tromey <tromey@redhat.com>
2
3 * cli/cli-cmds.c (_initialize_cli_cmds): New function.
4 (init_cli_cmds): Move most code into new function.
5
6 2012-12-12 Tom Tromey <tromey@redhat.com>
7
8 * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
9 * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
10 declare.
11
12 2012-12-18 Joel Brobecker <brobecker@adacore.com>
13
14 * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
15 * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
16 * xcoffread.c (xcoff_get_core_n_import_files): New function.
17 (xcoff_get_n_import_files): New function.
18 * xcoffread.h (xcoffread.h): Add declaration.
19 * rs6000-aix-tdep.c: #include "xcoffread.h".
20 (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
21 XCOFF executables that do not depend on any shared library.
22 * rs6000-lynx178-tdep.c: New file.
23 * configure.tgt: Add powerpc-*-lynx*178 handling.
24 * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
25 (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
26
27 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
28
29 * ui-file.c (ui_file): Add to_fseek.
30 (ui_file_new): Call set_ui_file_fseek.
31 (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
32 stdio_file_fseek): New functions.
33 (stdio_file_new): Call set_ui_file_fseek.
34 * ui-file.h (ui_file_fseek_ftype): New typedef.
35 (set_ui_file_fseek, ui_file_fseek): New externs.
36
37 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
38
39 * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
40 (set_ui_file_isatty): Change isatty to isatty_ptr.
41 (set_ui_file_rewind): Change rewind to rewind_ptr.
42 (set_ui_file_put): Change put to put_ptr.
43 (set_ui_file_write): Change write to write_ptr.
44 (set_ui_file_write_async_safe): Change write_async_safe to
45 write_async_safe_ptr.
46 (set_ui_file_read): Change read to read_ptr.
47 (set_ui_file_fputs): Change fputs to fputs_ptr.
48 (set_ui_file_data): Change delete to delete_ptr.
49
50 2012-12-18 Joel Brobecker <brobecker@adacore.com>
51
52 * solib-darwin.c (darwin_current_sos): Fix indentation.
53 (darwin_read_exec_load_addr): New function.
54 (darwin_solib_create_inferior_hook): Rebase executable.
55 * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
56 * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
57
58 2012-12-18 Joel Brobecker <brobecker@adacore.com>
59
60 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
61 * gnulib/import/errno.in.h: Import.
62 * gnulib/import/m4/errno_h.m4: Import.
63 * gnulib/aclocal.m4: Regenerate.
64 * gnulib/configure: Regenerate.
65 * gnulib/import/Makefile.am: Update.
66 * gnulib/import/Makefile.in: Update.
67 * gnulib/import/m4/gnulib-cache.m4: Update.
68 * gnulib/import/m4/gnulib-comp.m4: Update.
69
70 2012-12-18 Joel Brobecker <brobecker@adacore.com>
71
72 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
73 8d5bd1402003bd0153984b138735adf537d960b0.
74 * gnulib/aclocal.m4, configure, config.in: Regenerate.
75 * gnulib/import/m4/extern-inline.m4: Import.
76 * gnulib/import/wctype-h.c: Import.
77 * gnulib/import/Makefile.am: Update.
78 * gnulib/import/Makefile.in: Update.
79 * gnulib/import/alloca.in.h: Update.
80 * gnulib/import/extra/snippet/warn-on-use.h: Update.
81 * gnulib/import/localcharset.c: Update.
82 * gnulib/import/m4/fcntl-o.m4: Update.
83 * gnulib/import/m4/gnulib-cache.m4: Update.
84 * gnulib/import/m4/gnulib-comp.m4: Update.
85 * gnulib/import/m4/wctype_h.m4: Update.
86 * gnulib/import/stdbool.in.h: Update.
87 * gnulib/import/verify.h: Update.
88 * gnulib/import/wctype.in.h: Update.
89
90 2012-12-18 Joel Brobecker <brobecker@adacore.com>
91
92 * gnulib/update-gnulib.sh: Add call to autoheader.
93
94 2012-12-17 Tom Tromey <tromey@redhat.com>
95
96 * top.c (xgdb_verbose): Remove.
97
98 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
99
100 Code cleanup.
101 * skip.c (skip_function_command, skip_file_command, skip_info): Remove
102 unused forward declarations.
103 (skip_file_command): Make variables symtab and filename targets const.
104 Use proper 0 vs. NULL constant everywhere.
105 (skip_function_command): Use proper 0 vs. NULL constant everywhere.
106 Include empty line after declarations. Use GNU spacing in a comment.
107 Do not use strlen for end of string check.
108 (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
109 comments.
110 (skip_enable_command, skip_disable_command, skip_delete_command)
111 (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
112 (function_pc_is_marked_for_skip): Make variable filename target const.
113 Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
114 comment formatting.
115 (skip_re_set): Add empty line after function comment. Use proper 0 vs.
116 NULL constant everywhere. Include empty line after declarations. Make
117 variable symtab target const. Do not use strlen for end of string
118 check.
119
120 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
121
122 Code cleanup.
123 * breakpoint.c (clear_command): Remove variable sal_name_len and its
124 initialization, remove it from the compare_filenames_for_search call.
125 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
126 name_len and its initialization, remove it from the
127 compare_filenames_for_search calls.
128 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
129 * symtab.c (compare_filenames_for_search): Remove the search_len
130 parameter, update the function comment, new variable search_len
131 initialized from SEARCH_NAME.
132 (iterate_over_some_symtabs): Remove variable name_len and its
133 initialization, remove it from the compare_filenames_for_search calls.
134 * symtab.h (compare_filenames_for_search): Remove the search_len
135 parameter,
136
137 2012-12-16 Joel Brobecker <brobecker@adacore.com>
138
139 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
140 (ALLDEPFILES): ... to there.
141
142 2012-12-15 Joel Brobecker <brobecker@adacore.com>
143
144 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
145
146 2012-12-15 Joel Brobecker <brobecker@adacore.com>
147
148 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
149 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
150 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
151 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
152 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
153 to gdb_target_obs for every target that uses rs6000-tdep.o.
154 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
155 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
156 or register_ppc_ravenscar_ops.
157
158 2012-12-15 Joel Brobecker <brobecker@adacore.com>
159
160 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
161 RAVENSCAR_SPARC_THREAD_H.
162 * sparc-ravenscar-thread.c: Rename all global entities
163 whose name is uses "ravenscar_sparc" as the prefix to use
164 "sparc_ravenscar" instead.
165
166 2012-12-15 Joel Brobecker <brobecker@adacore.com>
167
168 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
169 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
170 Adjust sparc-ravenscar-thread.h #include.
171 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
172 accordingly.
173 * Makefile.in: Replace ravenscar-sparc-thread with
174 sparc-ravenscar-thread throughout.
175 * configure.tgt: Likewise.
176
177 2012-12-15 Joel Brobecker <brobecker@adacore.com>
178
179 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
180 declaration.
181 (ravenscar_ops): New gdbarch variable.
182 * gdbarch.h, gdbarch.c: Regenerate.
183 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
184 * ravenscar-thread.c (current_arch_ops): Delete.
185 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
186 from the gdbarch.
187 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
188 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
189 (ravenscar_register_arch_ops): Delete.
190 * ravenscar-sparc-thread.h: New file.
191 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
192 (ravenscar_sparc_ops): Define value statically.
193 (_initialize_ravenscar_sparc): Delete.
194 (register_sparc_ravenscar_ops): New function.
195 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
196 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
197 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
198 ravenscar-sparc-thread.o.
199 (SFILES): Add ravenscar-thread.c.
200 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
201 (ALLDEPFILES): ravenscar-sparc-thread.c.
202 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
203 to gdb_target_obs
204 for all the targets that use sparc-tdep.o.
205
206 2012-12-15 Joel Brobecker <brobecker@adacore.com>
207
208 * ravenscar-thread.c (ravenscar_is_open): Delete.
209 (ravenscar_initialize): Move most of the code from here...
210 (ravenscar_inferior_created): ... to there. Invert logic.
211 (ravenscar_close): Delete.
212 (init_ravenscar_thread_ops): Remove setting of
213 ravenscar_ops.to_close.
214
215 2012-12-15 Joel Brobecker <brobecker@adacore.com>
216
217 * objfiles.c (init_entry_point_info): Move function from here...
218 * symfile.c (init_entry_point_info): ... to there. Make static.
219 * objfiles.h (objfiles.h): Delete declaration.
220
221 2012-12-15 Joel Brobecker <brobecker@adacore.com>
222
223 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
224 Remove call to init_entry_point_info. Add OBJFILE's
225 section_offsets and num_sections initialization. Add note
226 about entry info in the function documentation.
227 (syms_from_objfile): New function.
228 * coffread.c (coff_symfile_init): Remove call to
229 init_entry_point_info.
230 * machoread.c (macho_symfile_init): Likewise.
231 * xcoffread.c(xcoff_symfile_init): Likewise.
232
233 2012-12-15 Yao Qi <yao@codesourcery.com>
234
235 * remote-notif.c (_initialize_notif): Add new commands
236 'set debug notification' and 'show debug notification'.
237 * NEWS: Mention these new commands.
238
239 2012-12-15 Yao Qi <yao@codesourcery.com>
240
241 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
242 (SFILES): Add "remote-notif.c".
243 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
244 * remote-notif.c: New. Factored out from remote.c.
245 * remote-notif.h: New.
246 * remote.c: Include "remote-notif.h".
247 (stop_reply_xmalloc, do_stop_reply_xfree):
248 (remote_parse_stop_reply, remote_get_pending_stop_replies):
249 (remote_async_get_pending_events_handler): Remove declarations.
250 (remote_parse_stop_reply): Declare.
251 (pending_stop_reply): Remove.
252 (remote_async_get_pending_events_token): Move to
253 remote-notif.c.
254 (remote_close): Replace 'delete_async_event_handler' with
255 remote_notif_unregister_async_event_handler.
256 Don't call discard_pending_stop_replies.
257 (remote_start_remote): Replace code with remote_notif_parse
258 and remote_notif_get_pending_replies.
259 (remote_open_1): Replace 'create_async_event_handler' with
260 remote_notif_register_async_event_handler.
261 (extended_remote_attach_1): Call remote_notif_parse and
262 notif_stop_reply_push.
263 (struct stop_reply) <next>: Remove.
264 <base>: New field.
265 Callers update.
266 (stop_reply_queue): Change its type.
267 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
268 (remote_notif_remove_all): New.
269 (discard_pending_stop_replies): Update.
270 (remote_notif_stop_ack, stop_reply_dtr): New.
271 (remote_notif_stop_alloc_event): New.
272 (notif_client_stop): New variable.
273 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
274 (queued_stop_reply, peek_stop_reply): Adjust.
275 (remote_get_pending_stop_replies): Rename to
276 remote_notif_get_pending_events.
277 (handle_notification): Move to remote-notif.c.
278 (remote_async_get_pending_events_handler): Likewise.
279 (remote_wait_as): Adjust to call remote_notif_parse.
280 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
281 Return minus_one_ptid early if gets a notification.
282 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
283 (_initialize_remote): Call QUEUE_alloc. Update caller.
284 (remote_resume): Call 'remote_notif_process' in all-stop mode.
285 * remote.h: Include "remote-notif.h".
286 (remote_notif_get_pending_replies): Declare.
287
288 2012-12-15 Yao Qi <yao@codesourcery.com>
289
290 * remote.c (discard_pending_stop_replies): Update declaration.
291 (remote_detach_1, extended_remote_mourn_1): Likewise.
292 (discard_pending_stop_replies): Change parameter from PID to
293 INF.
294 (remote_close): Update caller.
295 (_initialize_remote): Attach discard_pending_stop_replies to
296 inferior_exit observer.
297
298 2012-12-15 Yao Qi <yao@codesourcery.com>
299
300 * remote.c (getpkt_or_notif_sane): Add one more argument in
301 its declaration.
302 (getpkt_or_notif_sane_1): Add one more argument.
303 (getpkt_sane): Update caller.
304 (getpkt_or_notif_sane): Likewise. Update call
305 togetpkt_or_notif_sane_1.
306 (remote_wait_ns): Update caller.
307
308 2012-12-15 Yao Qi <yao@codesourcery.com>
309 Doug Evans <dje@google.com>
310
311 * common/queue.h: New.
312
313 2012-12-15 Yao Qi <yao@codesourcery.com>
314
315 * breakpoint.c (print_one_breakpoint_location): Display the
316 state of 'installed' of each non-pending location of a tracepoint
317 in both CLI and MI.
318 (download_tracepoint_locations): Notify 'breakpoint-modified'
319 observer if any tracepoint location is downloaded.
320 * tracepoint.c (start_tracing): Likewise.
321 (merge_uploaded_tracepoints): Record all modified
322 tracepoints and notify 'breakpoint-modified' observer for them.
323
324 * NEWS: Mention the change for CLI and MI.
325
326 2012-12-15 Yao Qi <yao@codesourcery.com>
327
328 * breakpoint.c (download_tracepoint_locations): Iterate over
329 ALL_TRACEPOINTS first and then iterate over locations of
330 each tracepoint.
331
332 2012-12-14 Pierre Muller <muller@sourceware.org>
333 Pedro Alves <palves@redhat.com>
334
335 * solib-target.c (solib_target_current_sos): Remove 'const'
336 qualifier from type of library_document local variable to be
337 able to free it and avoid a memory leak.
338 Use cleanup chain to avoid leak even if exceptino is generated.
339
340 2012-12-14 Tom Tromey <tromey@redhat.com>
341
342 PR c++/8888:
343 * symtab.c (lookup_symbol_aux): If constructor is found, consider
344 returning the type instead.
345 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
346 found.
347
348 2012-12-14 Tom Tromey <tromey@redhat.com>
349
350 Partial fix for PR c++/14160:
351 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
352 * dwarf2read.c (dwarf2_is_constructor): New function.
353 (dwarf2_add_member_fn): Use it.
354 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
355 TYPE_FN_FIELD_CONSTRUCTOR.
356 * jv-typeprint.c (java_type_print_base): Use
357 TYPE_FN_FIELD_CONSTRUCTOR.
358 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
359 <dummy>: Shrink.
360 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
361
362 2012-12-14 Tom Tromey <tromey@redhat.com>
363
364 * c-exp.y (block, variable, name_not_typename, lex_one_token,
365 classify_name): Update.
366 * c-valprint.c (c_val_print): Update.
367 * f-exp.y (yylex): Update.
368 * go-exp.y (package_name_p, classify_packaged_name)
369 (classify_name): Update.
370 * jv-exp.y (push_variable): Update.
371 * m2-exp.y (variable): Update.
372 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
373 * p-exp.y (block, variable, yylex): Update.
374 * p-valprint.c (pascal_val_print): Update.
375 * parse.c (write_dollar_variable): Update.
376 * printcmd.c (address_info): Update.
377 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
378 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
379 (lookup_symbol): Change type of 'is_a_field_of_this'.
380 (check_field): Add 'is_a_field_of_this' argument.
381 * symtab.h (struct field_of_this_result): New.
382 (lookup_symbol, lookup_symbol_in_language): Update.
383
384 2012-12-14 Tom Tromey <tromey@redhat.com>
385
386 * symtab.c (check_field): Now static. Move from...
387 * valops.c (check_field): ... here. Remove.
388 * value.h (check_field): Don't declare.
389
390 2012-12-14 Tom Tromey <tromey@redhat.com>
391
392 * NEWS: Mention "info proc" and core files.
393 * corelow.c (core_info_proc): New function.
394 (init_core_ops): Set to_info_proc.
395 * gdbarch.c, gdbarch.h: Rebuild.
396 * gdbarch.sh (core_info_proc): New method.
397 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
398 * linux-tdep.c (linux_core_info_proc_mappings)
399 (linux_core_info_proc): New functions.
400 (linux_find_memory_region_ftype): New typedef.
401 (linux_find_memory_regions_full): New function, from
402 linux_find_memory_regions.
403 (struct linux_find_memory_regions_data): New.
404 (linux_find_memory_regions_thunk): New function.
405 (linux_find_memory_regions): Rewrite.
406 (struct linux_make_mappings_data): New.
407 (linux_make_mappings_callback)
408 (linux_make_mappings_corefile_notes): New functions.
409 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
410 (linux_init_abi): Call set_gdbarch_core_info_proc.
411 * target.c (target_info_proc): Return 'int'.
412 * target.h (target_info_proc): Update.
413
414 2012-12-14 Pierre Muller <muller@sourceware.org>
415
416 * windows-nat.c (windows_xfer_shared_libraries): Avoid
417 memory leak when OFFSET >= LEN_AVAIL.
418
419 2012-12-13 Tom Tromey <tromey@redhat.com>
420
421 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
422
423 2012-12-13 Tom Tromey <tromey@redhat.com>
424
425 * acinclude.m4 (CY_AC_C_WORKS): Remove.
426
427 2012-12-13 Pierre Muller <muller@sourceware.org>
428
429 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
430 local variable and zero terminate it to avoid possible problems
431 in strcmp.
432
433 2012-12-13 Pedro Alves <palves@redhat.com>
434
435 * coff-pe-read.c: Include coff/internal.h.
436 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
437 Null terminate buffer explicitly instead of memset the whole
438 buffer.
439
440 2012-12-13 Pierre Muller <muller@sourceware.org>
441
442 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
443 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
444 for already defined macros.
445
446 2012-12-13 Pierre Muller <muller@sourceware.org>
447
448 * coff-pe-read.h (pe_text_section_offset): Declare new function.
449 * coff-pe-read.c (debug_coff_pe_read): New static variable.
450 (struct read_pe_section_data): Add section_name field.
451 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
452 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
453 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
454 (get_pe_section_index): New function.
455 (struct pe_sections_info): New type.
456 (get_section_vmas): Use new struct pe_sections_info.
457 (add_pe_exported_sym): Handle unnamed exported function.
458 (add_pe_forwarded_sym): New function.
459 (read_pe_truncate_name): Truncate at last dot.
460 (pe_as16): New function.
461 (read_pe_exported_syms): Use ordinal of function to
462 retrieve correct RVA address of function and handle
463 forwarded symbol.
464 (pe_text_section_offset): New function.
465 (show_debug_coff_pe_read): New function.
466 (_initialize_coff_pe_read): New function adding
467 'set/show debug coff_pe_read' commands.
468
469 * windows-tdep.c (windows_xfer_shared_library): Use
470 pe_text_section_offset function instead of possibly wrong
471 0x1000 constant for .text sextion offset.
472
473 2012-12-13 Pedro Alves <palves@redhat.com>
474
475 * gdbarch.sh (do_read): Set IFS to blank.
476
477 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
478
479 * NEWS: Mention the -catch-load/-catch-unload MI commands.
480
481 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
482
483 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
484 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
485 * breakpoint.c (add_solib_catchpoint): New function that
486 can be used by both CLI and MI, factored out from
487 catch_load_or_unload.
488 (catch_load_or_unload): Strip it down and make it use the
489 new add_solib_catchpoint.
490 * breakpoint.h (add_solib_catchpoint): Declare it.
491 * mi/mi-cmd-break.h: New file.
492 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
493 (setup_breakpoint_reporting): New function used for both
494 catchpoints and breakpoints.
495 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
496 * mi/mi-cmd-catch.c: New file.
497 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
498 and -catch-unload.
499 * mi/mi-cmds.h: Declare the handlers for -catch-load and
500 -catch-unload.
501
502 2012-11-28 Tom Tromey <tromey@redhat.com>
503
504 * dbxread.c (read_dbx_symtab): Update.
505 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
506 (read_ofile_symtab): Add 'objfile' argument.
507 * dwarf2read.c (process_psymtab_comp_unit_reader)
508 (build_type_psymtabs_reader): Update.
509 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
510 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
511 argument.
512 (parse_procedure, parse_partial_symbols): Update.
513 (psymtab_to_symtab_1): Add 'objfile' argument.
514 * psympriv.h (struct partial_symtab) <objfile>: Remove.
515 <read_symtab>: Add 'objfile' argument.
516 (sort_pst_symbols, discard_psymtab): Update.
517 * psymtab.c (partial_map_expand_apply): Update.
518 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
519 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
520 (find_pc_sect_psymbol): Add 'objfile' argument.
521 (lookup_symbol_aux_psymtabs): Update.
522 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
523 Add 'objfile' argument.
524 (find_last_source_symtab_from_partial, dump_psymtab)
525 (dump_psymtabs_for_objfile, read_symtabs_for_function)
526 (expand_partial_symbol_tables, read_psymtabs_with_filename)
527 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
528 (expand_symtabs_matching_via_partial): Update.
529 (sort_pst_symbols): Add 'objfile' argument.
530 (allocate_psymtab): Update.
531 (discard_psymtab): Add 'objfile' argument.
532 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
533 * stabsread.h (end_psymtab): Update.
534 * xcoffread.c (this_symtab_objfile): New global.
535 (process_linenos, enter_line_range, xcoff_next_symbol_text):
536 Update.
537 (read_xcoff_symtab): Add 'objfile' argument.
538 (read_symbol, read_symbol_lineno): Update.
539 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
540 (xcoff_end_psymtab): Add 'objfile' argument.
541 (scan_xcoff_symtab): Update.
542
543 2012-12-12 Paul Koning <paul_koning@dell.com>
544
545 Add support for Python 3.
546 * NEWS: Mention Python 3 support.
547 * varobj.c (value_get_print_value): Use
548 python_string_to_target_string.
549 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
550 of type objects.
551 * python/py-breakpoint.c: Ditto.
552 * python/py-cmd.c: Ditto.
553 * python/py-event.c: Ditto.
554 * python/py-event.h: Ditto.
555 * python/py-evtregistry.c: Ditto.
556 * python/py-finishbreakpoint.c: Ditto.
557 * python/py-frame.c: Ditto.
558 * python/py-function.c: Ditto.
559 * python/py-infthread.c: Ditto.
560 * python/py-lazy-string.c: Ditto.
561 * python/py-progspace.c: Ditto.
562 * /python/py-symbol.c: Ditto.
563 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
564 initialization for Python 3.
565 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
566 of type objects.
567 (infpy_read_memory): Return memoryview object if Python 3.
568 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
569 (infpy_search_memory): Ditto.
570 (get_buffer): New function for Python 3.
571 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
572 of type objects.
573 (objfpy_dealloc): Use Py_TYPE to call tp_free.
574 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
575 of type objects.
576 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
577 (set_attr): Ditto.
578 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
579 instead of PyString methods if Python 3.
580 (print_children): Skip push_dummy_python_frame call if Python 3.
581 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
582 of type objects.
583 (salpy_dealloc): Use Py_TYPE to call tp_free.
584 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
585 of type objects.
586 (field_dealloc): Use Py_TYPE to call tp_free.
587 (typy_dealloc): Ditto.
588 (type_object_as_number): Adjust struct initializations for
589 differences in layout for Python 2 vs. Python 3.
590 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
591 string case for Python 3.
592 (unicode_to_encoded_python_string): Shorten code (no functional
593 change).
594 (python_string_to_target_python_string): Comment that in Python 3
595 returned value is a Python "bytes" type.
596 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
597 (gdb_py_object_from_longest): Omit non-long integer case in Python
598 3.
599 (gdb_py_object_from_ulongest): Ditto.
600 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
601 of type objects.
602 (valpy_dealloc): Use Py_TYPE to call tp_free.
603 (valpy_int): Omit function if Python 3.
604 (convert_value_from_python): Use "%S" format (Python object as a
605 string) if Python 3.
606 (value_object_as_number): Adjust struct initializations for
607 differences in layout for Python 2 vs. Python 3.
608 * python/python-config.py: Adjust syntax for Python 3
609 compatibility.
610 Include "sys.abiflags" string as part of python library name, if
611 that attribute exists (Python 3).
612 * python/python-internal.h (IS_PY3): Define if Python 3.
613 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
614 placeholder value if Python 3.
615 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
616 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
617 analogous Python 3 API function if Python 3.
618 (PyVarObject_HEAD_INIT): Define if not already defined.
619 (Py_TYPE): Ditto.
620 * python/python.c (eval_python_command): Omit Py_FlushLine call if
621 Python 3.
622 Check return values of all Python API calls for error.
623 Supply dummy "python" and "python-interactive" commands if Python
624 initialization failed.
625 (_initialize_python): Convert argc to wchar_t** if Python 3.
626 Add module initialization for Python 3.
627 (finish_python_initialization): Pass wchar_t * argument to
628 PySys_SetPath if Python 3.
629 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
630 (_GdbFile): New class for common output file behavior.
631 (GdbOutFile): Subclass from _GdbFile.
632 (GdbOutputErrorFile): Ditto.
633 (auto_load_packages): Adjust syntax for Python 3 compatibility.
634 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
635 * python/lib/gdb/prompt.py: Use sorted() function rather than
636 sort() method.
637 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
638 Adjust syntax for Python 3 compatibility.
639 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
640 rather than sort() method.
641 Adjust syntax for Python 3 compatibility.
642 * python/lib/gdb/command/type_printers.py: Ditto.
643 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
644 value is a memoryview object if Python 3.
645
646 2012-12-12 Tom Tromey <tromey@redhat.com>
647
648 * coffread.c (coff_objfile_data_key): New global.
649 (coff_symfile_init): Use set_objfile_data.
650 (coff_symfile_read): Use objfile_data.
651 (coff_symfile_finish): Don't free deprecated_sym_private.
652 (coff_free_info): New function.
653 (_initialize_coffread): Initialize coff_objfile_data_key.
654 * mdebugread.c (pending_list): Update comment.
655 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
656 * symfile.c (reread_symbols): Don't mention
657 deprecated_sym_private.
658 * xcoffread.c (xcoff_objfile_data_key): New global.
659 (XCOFF_DATA): New macro.
660 (process_linenos, enter_line_range, xcoff_next_symbol_text)
661 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
662 XCOFF_DATA.
663 (xcoff_new_init) Use set_objfile_data.
664 (xcoff_symfile_finish): Don't free deprecated_sym_private.
665 (init_stringtab, swap_sym, scan_xcoff_symtab)
666 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
667 (xcoff_free_info): New function.
668 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
669
670 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
671
672 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
673
674 2012-12-12 Tom Tromey <tromey@redhat.com>
675
676 * coffread.c (coff_symfile_init): Use set_objfile_data.
677 (coff_symfile_read): Use DBX_SYMFILE_INFO.
678 * dbxread.c (dbx_objfile_data_key): New global.
679 (dbx_symfile_init): Use set_objfile_data.
680 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
681 (dbx_free_symfile_info): New function.
682 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
683 DBX_SYMFILE_INFO.
684 (stabsect_build_psymtabs): Use set_objfile_data.
685 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
686 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
687 set_objfile_data.
688 (free_elfinfo): Use DBX_SYMFILE_INFO.
689 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
690 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
691 * gdb-stabs.h (dbx_objfile_data_key): Declare.
692 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
693 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
694 * somread.c (som_symfile_finish): Don't free
695 deprecated_sym_stab_info.
696
697 2012-12-12 Joel Brobecker <brobecker@adacore.com>
698
699 * gdbarch.sh (software_single_step): Remove trailing space in
700 comment (gdbarch.h is already correct).
701
702 2012-12-11 Tom Tromey <tromey@redhat.com>
703
704 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
705
706 2012-12-11 Tom Tromey <tromey@redhat.com>
707
708 * dsrec.c (report_transfer_performance): Don't declare.
709 (load_srec): Use gettimeofday, print_transfer_performance.
710 * symfile.c (report_transfer_performance): Remove.
711
712 2012-12-11 Pedro Alves <pedro@codesourcery.com>
713 Pedro Alves <palves@redhat.com>
714
715 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
716 NT_PSTATUS note.
717 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
718 differently from LWP IDs.
719
720 2012-12-11 Pedro Alves <palves@redhat.com>
721
722 * configure.ac (detect type of /proc): Remove Unixware handling.
723 * configure: Regenerate.
724 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
725 (ioctl_table) [PCRESET]: Remove entry.
726 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
727 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
728 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
729 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
730 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
731 Unixware in comments throughout.
732 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
733 and remove mention of Unixware.
734
735 2012-12-10 Doug Evans <dje@google.com>
736
737 * dwarf2read.c (dwarf2_cu): Enhance comment.
738 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
739 the DWO file.
740 (dwarf2_record_block_ranges): Ditto.
741
742 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
743
744 * symtab.c (find_pc_sect_symtab): Add comment.
745
746 2012-12-10 Tom Tromey <tromey@redhat.com>
747
748 * defs.h: Don't check for definition of LONGEST.
749 (min, max): Remove duplicates.
750
751 2012-12-10 Tom Tromey <tromey@redhat.com>
752
753 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
754 (dwarf2_fetch_die_loc_cu_off): Rename from
755 dwarf2_fetch_die_location_block. Rewrite to use
756 dwarf2_fetch_die_loc_sect_off.
757 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
758 (dwarf2_fetch_die_loc_cu_off): Rename.
759 * dwarf2loc.c (indirect_pieced_value): Use
760 dwarf2_fetch_die_loc_sect_off.
761 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
762 comment.
763 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
764 * dwarf2expr.c (add_piece): Update.
765 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
766
767 2012-12-10 Tom Tromey <tromey@redhat.com>
768
769 * buildsym.c (struct pending_block): Move from buildsym.h.
770 (pending_blocks): Likewise; now static.
771 (pending_block_obstack): New global.
772 (free_pending_blocks): Free blocks.
773 (record_pending_block): Use pending_block_obstack.
774 * buildsym.h (struct pending_block): Move definition to
775 buildsym.c.
776 (pending_blocks): Don't declare.
777
778 2012-12-10 Pedro Alves <palves@redhat.com>
779
780 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
781 dead SCO code, and adjust function description comment.
782
783 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
784
785 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
786 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
787 CC_HAS_LONG_LONG.
788 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
789 * dwarf2read.c (extract_cu_value): Remove the function.
790 (create_cus_from_index_list): Make the return type void, inline the
791 extract_cu_value caller, include new gdb_static_assert.
792 (create_cus_from_index): Make the return type void, update the function
793 comment, update the create_cus_from_index_list caller.
794 (create_signatured_type_table_from_index): Make the return type void,
795 inline the extract_cu_value caller, include new gdb_static_assert.
796 (dwarf2_read_index): Update the create_cus_from_index and
797 create_signatured_type_table_from_index caller.
798 * printcmd.c (ui_printf): Remove conditionalizations for
799 CC_HAS_LONG_LONG.
800 * config.in: Regenerate.
801 * configure: Regenerate.
802
803 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
804
805 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
806 Update the comment for checked_producer.
807 (check_producer): New forward declaration.
808 (producer_is_gcc_lt_4_3): New function.
809 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
810 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
811
812 2012-12-07 Tom Tromey <tromey@redhat.com>
813
814 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
815 argument, assertion.
816 * c-exp.y (typebase): Add completion productions.
817 * completer.c (expression_completer): Handle tag completion.
818 * expression.h (parse_expression_for_completion): Add argument.
819 * f-lang.c (f_make_symbol_completion_list): Add 'code'
820 argument.
821 * language.h (struct language_defn)
822 <la_make_symbol_completion_list>: Add 'code' argument.
823 * parse.c (expout_tag_completion_type, expout_completion_name):
824 New globals.
825 (mark_struct_expression): Add assertion.
826 (mark_completion_tag): New function.
827 (parse_exp_in_context): Initialize new globals.
828 (parse_expression_for_completion): Add 'code' argument. Handle
829 tag completion.
830 * parser-defs.h (mark_completion_tag): Declare.
831 * symtab.c (default_make_symbol_completion_list_break_on): Add
832 'code' argument. Update.
833 (default_make_symbol_completion_list): Add 'code' argument.
834 (make_symbol_completion_list): Update.
835 (make_symbol_completion_type): New function.
836 * symtab.h (default_make_symbol_completion_list_break_on)
837 (default_make_symbol_completion_list): Update.
838 (make_symbol_completion_type): Declare.
839
840 2012-12-07 Tom Tromey <tromey@redhat.com>
841
842 * expression.h (parse_expression_for_completion): Rename
843 from parse_field_expression.
844 (parse_completion): Rename from in_parse_field.
845 * c-exp.y (lex_one_token): Update.
846 * completer.c (expression_completer): Update.
847 * go-exp.y (lex_one_token): Update.
848 * p-exp.y (yylex): Update.
849 * parse.c (parse_completion): Rename from in_parse_field.
850 (parse_exp_in_context): Update.
851 (parse_expression_for_completion): Rename from
852 parse_field_expression. Update.
853
854 2012-12-07 Tom Tromey <tromey@redhat.com>
855
856 * typeprint.c (_initialize_typeprint): Set completer
857 for "whatis" and "ptype".
858
859 2012-12-07 Joel Brobecker <brobecker@adacore.com>
860
861 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
862 "sim/common/cgen-fpu.h". Remove invalid entries
863 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
864 which actually have an FSF copyright header.
865
866 2012-12-07 Joel Brobecker <brobecker@adacore.com>
867
868 * osf-share/AT386/cma_thread_io.h: Delete.
869 * osf-share/HP800/cma_thread_io.h: Delete.
870 * osf-share/README: Delete.
871 * osf-share/RIOS/cma_thread_io.h: Delete.
872 * osf-share/cma_attr.h: Delete.
873 * osf-share/cma_deb_core.h: Delete.
874 * osf-share/cma_debug_client.h: Delete.
875 * osf-share/cma_errors.h: Delete.
876 * osf-share/cma_handle.h: Delete.
877 * osf-share/cma_init.h: Delete.
878 * osf-share/cma_list.h: Delete.
879 * osf-share/cma_mutex.h: Delete.
880 * osf-share/cma_sched.h: Delete.
881 * osf-share/cma_semaphore_defs.h: Delete.
882 * osf-share/cma_sequence.h: Delete.
883 * osf-share/cma_stack.h: Delete.
884 * osf-share/cma_stack_int.h: Delete.
885 * osf-share/cma_tcb_defs.h: Delete.
886 * osf-share/cma_util.h: Delete.
887 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
888 in osf-share.
889 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
890 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
891 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
892
893 2012-12-06 Pedro Alves <palves@redhat.com>
894 Tom Tromey <tromey@redhat.com>
895
896 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
897
898 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
899
900 PR mi/14741:
901 * mi/mi-cmd-var.c (varobj_update_one): Take value of
902 attribute "dynamic" and "displayhint" from printed child,
903 not the root variable.
904
905 2012-12-06 Joel Brobecker <brobecker@adacore.com>
906
907 * aix-thread.c (getthrds): Fix type of 4th parameter.
908 (get_signaled_thread): Change type of variable ktid to tid_t.
909
910 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
911
912 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
913 value of get_frame_block.
914
915 2012-12-05 Pierre Muller <muller@sourceware.org>
916
917 Avoid memory leaks on struct cmd_list_element.doc field.
918 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
919 if flags contains DOC_ALLOCATED.
920 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
921 flags.
922 (delete_cmd): Handle DOC_ALLOCATED flag.
923 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
924 in flags filed of struct cmd_list_element.
925 (struct cmd_list_element): Document new flag item.
926
927 2012-12-04 Doug Evans <dje@google.com>
928
929 * symmisc.c: Whitespace fixes.
930
931 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
932
933 * i386-tdep.c (i386_skip_prologue): Using symbol table
934 to find the end of prologue for clang compiled binaries.
935 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
936 to find the end of prologue for clang compiled binaries.
937
938 2012-12-03 Doug Evans <dje@google.com>
939
940 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
941 (dw2_find_symbol_file): Delete unused local file_data.
942
943 2012-12-03 Tom Tromey <tromey@redhat.com>
944
945 * ada-exp.y (write_object_renaming, write_var_or_type)
946 (write_ambiguous_var, write_var_from_sym): Make blocks const.
947 * ada-lang.c (replace_operator_with_call)
948 (find_old_style_renaming_symbol): Make blocks const.
949 * ada-lang.h (ada_find_renaming_symbol): Update.
950 (struct ada_symbol_info) <block>: Now const.
951 * breakpoint.c (watch_command_1): Update.
952 * breakpoint.h (struct watchpoint) <exp_valid_block,
953 cond_exp_valid_block>: Now const.
954 * c-exp.y (classify_inner_name, classify_name): Make block
955 argument const.
956 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
957 const.
958 * expression.h (innermost_block, parse_exp_1): Update.
959 (union exp_element) <block>: Now const.
960 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
961 (lookup_struct): Make block argument const.
962 * gdbtypes.h (lookup_template_type): Update.
963 * go-exp.y (classify_name, classify_packaged_name)
964 (package_name_p): Make block argument const.
965 * objc-lang.c (lookup_struct_typedef): Make block argument const.
966 * objc-lang.h (lookup_struct_typedef): Update.
967 * parse.c (parse_exp_in_context, parse_exp_1)
968 (write_exp_elt_block): Make block arguments const.
969 (expression_context_block, innermost_block): Now const.
970 * parser-defs.h (write_exp_elt_block): Update.
971 (expression_context_block, innermost_block, block_found): Now
972 const.
973 * printcmd.c (struct display) <block>: Now const.
974 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
975 * valops.c (address_of_variable): Make block argument const.
976 * value.h (value_of_variable): Update.
977 * varobj.c (struct varobj_root) <valid_block>: Now const.
978
979 2012-11-30 Yao Qi <yao@codesourcery.com>
980
981 * breakpoint.c (print_one_breakpoint_location): Indent code.
982
983 2012-11-30 Yao Qi <yao@codesourcery.com>
984
985 * breakpoint.c (print_one_breakpoint_location): Combine two
986 blocks handling 'hit count' together.
987
988 2012-11-30 Yao Qi <yao@codesourcery.com>
989
990 * infrun.c (error_is_running, ensure_not_running): Move them
991 to ...
992 * infcmd.c (error_is_running, ensure_not_running): ... here.
993 Make them 'static'.
994 * inferior.h: Remove declarations of error_is_running and
995 ensure_not_running.
996
997 2012-11-30 Yao Qi <yao@codesourcery.com>
998
999 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
1000 check REGNUM >= 0.
1001
1002 2012-11-30 Yao Qi <yao@codesourcery.com>
1003
1004 * infrun.c: Make the declaration of 'init_infwait_state'
1005 static.
1006 (init_infwait_state): Make it 'static'.
1007
1008 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1009
1010 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1011 return value to void to avoid compiler warning.
1012
1013 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1014
1015 * opencl-lang.c (opencl_print_type): New function.
1016 (opencl_language_arch_info): Install it.
1017
1018 2012-11-29 Tom Tromey <tromey@redhat.com>
1019
1020 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1021 xvasprintf.
1022 * common/common-utils.c (xasprintf, xvasprintf): Remove.
1023 * common/common-utils.h (xasprintf, xvasprintf): Remove.
1024
1025 2012-11-29 Jerome Guitton <guitton@adacore.com>
1026
1027 * ada-lang.c (ada_is_interface_tag): New function.
1028 (ada_is_ignored_field): Add interface tags to the list
1029 of ignored fields.
1030
1031 2012-11-29 Jerome Guitton <guitton@adacore.com>
1032
1033 * ada-lang.h (ada_tag_value_at_base_address): New function
1034 declaration.
1035 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1036 New functions.
1037 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1038 relocate the class-wide value if need be.
1039 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1040 Let ada_tag_value_at_base_address relocate the class-wide access/ref
1041 before dereferencing it.
1042 * ada-valprint.c (ada_val_print_1): Relocate to base address
1043 before displaying the content of an interface-wide ref.
1044
1045 2012-11-29 Jerome Guitton <guitton@adacore.com>
1046
1047 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1048
1049 2012-11-29 Joel Brobecker <brobecker@adacore.com>
1050
1051 GDB 7.5.1 released.
1052
1053 2012-11-29 Yao Qi <yao@codesourcery.com>
1054 Tom Tromey <tromey@redhat.com>
1055
1056 * eval.c (evaluate_subexp_standard): Get the correct pointer
1057 type for TYPE_CODE_MEMBERPTR.
1058
1059 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
1060
1061 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1062 since now it is being done by binutils' powerpc_init_dialect().
1063
1064 2012-11-28 Tom Tromey <tromey@redhat.com>
1065
1066 PR gdb/14290:
1067 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1068 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1069 Use it.
1070 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1071 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1072 (gdb_bfd_openr_next_archived_file): Use it.
1073
1074 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
1075
1076 * configure.ac: Check for linux/perf_event.h.
1077 * config.in: Regenerated.
1078 * configure: Regenerated.
1079
1080 2012-11-28 Yao Qi <yao@codesourcery.com>
1081
1082 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1083 abbreviate 'delete tracepoints' to 'delete tr'.
1084 * corefile.c (_initialize_core): Call add_alias_cmd to
1085 abbreviate 'set gnutarget' to 'set g'.
1086 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1087 'show convenience' to 'show conv'.
1088
1089 2012-11-27 Joel Brobecker <brobecker@adacore.com>
1090
1091 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1092 call to sparc_supply_fpregset.
1093 (fill_fpregset): Fix first parameter in call to
1094 sparc_collect_fpregset.
1095
1096 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1097 Kazu Hirata <kazu@codesourcery.com>
1098 Yao Qi <yao@codesourcery.com>
1099
1100 * objfiles.c (init_entry_point_info): Call
1101 gdbarch_convert_from_func_ptr_addr and
1102 gdbarch_addr_bits_remove here ...
1103 (entry_point_address_query): ... instead of here.
1104 * solib-svr4.c (exec_entry_point): Call
1105 gdbarch_addr_bits_remove.
1106 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1107 the entry address.
1108
1109 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1110 Yao Qi <yao@codesourcery.com>
1111
1112 * eval.c (evaluate_subexp_standard): Add handling of
1113 TYPE_CODE_MEMBERPTR when calling functions. Correct the
1114 result of ptype for calling a TYPE_CODE_METHODPTR.
1115
1116 2012-11-27 Yao Qi <yao@codesourcery.com>
1117
1118 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1119 warning.
1120 Add i18n markup.
1121
1122 2012-11-26 Alexander Larsson <alexl@redhat.com>
1123 Jan Kratochvil <jan.kratochvil@redhat.com>
1124 Tom Tromey <tromey@redhat.com>
1125
1126 * NEWS: Mention mini debuginfo feature.
1127 * minidebug.c: New file.
1128 * configure.ac: Check for lzma.
1129 * configure, config.in: Rebuild.
1130 * Makefile.in (LIBLZMA): New variable.
1131 (CLIBS): Include LIBLZMA.
1132 (SFILES): Mention minidebug.c.
1133 (COMMON_OBS): Mention minidebug.o.
1134 * symfile.c (read_symbols): New function.
1135 (syms_from_objfile, reread_symbols): Call it.
1136 * symfile.h (find_separate_debug_file_in_section): Declare.
1137
1138 2012-11-26 Keith Seitz <keiths@redhat.com>
1139
1140 * exec.c (exec_file_attach): Move cleanup after verifying that
1141 memory has in fact been allocated.
1142
1143 2012-11-26 Tom Tromey <tromey@redhat.com>
1144
1145 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1146 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1147 SYMBOL_SYMTAB.
1148 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1149
1150 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1151 Pedro Alves <palves@redhat.com>
1152
1153 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1154 size parameter passed to readlink by one byte.
1155 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1156 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1157 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1158 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1159 size by one byte.
1160
1161 2012-11-26 Yao Qi <yao@codesourcery.com>
1162
1163 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1164 extraneous parentheses.
1165
1166 2012-11-26 Yao Qi <yao@codesourcery.com>
1167
1168 * remote.c (remote_start_remote): Typo fix.
1169
1170 2012-11-23 David S. Miller <davem@davemloft.net>
1171
1172 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1173 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1174 sparc32_sol2_fpregset): Declare new globals.
1175 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1176 'fpregset' argument.
1177 * sparc64-tdep.h (sparc64_supply_fpregset,
1178 sparc64_collect_fpregset): Likewise.
1179 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1180 globals.
1181 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1182 (sparc_fpregset): Declare new global.
1183 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1184 'fpregset' argument.
1185 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1186 into handler.
1187 (fill_fpregset): Likewise.
1188 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1189 sparc32_bsd_fpregset.
1190 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1191 sparc32_bsd_fpregset down into handler.
1192 (sparc32_linux_collect_core_fpregset): Likewise.
1193 * sparc-nat.c (sparc_fpregset): Define.
1194 (sparc_supply_fpregset): Add 'fpregset' argument.
1195 (sparc_collect_fpregset): Likewise.
1196 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1197 into fpregset handler.
1198 (sparc_store_inferior_registers): Likewise.
1199 (_initialize_sparc_nat): Set sparc_fpregset to
1200 sparc32_sunos4_fpregset if NULL.
1201 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1202 down into handler.
1203 (fill_fpregset): Likewise.
1204 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1205 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1206 use it to compute offsets.
1207 (sparc32_collect_fpregset): Likewise.
1208 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1209 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1210 down into handler.
1211 (fill_fpregset): Likewise.
1212 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1213 Likewise.
1214 (sparc64_linux_collect_core_fpregset): Likewise.
1215 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1216 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1217 use it to compute offsets.
1218 (sparc64_collect_fpregset): Likewise.
1219 (sparc64_bsd_fpregset): Define.
1220 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1221 sparc64_bsd_fpregset down into handler.
1222 (sparc64fbsd_collect_fpregset): Likewise.
1223 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1224 and pass sparc{32,64}_bsd_fpregset down into handler.
1225 (sparc64nbsd_collect_fpregset): Likewise.
1226 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1227 sparc64_bsd_fpregset down into handler.
1228 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1229 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1230 to sparc32_bsd_fpregset.
1231 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1232 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1233 (sparc32nbsd_supply_fpregset): Likewise.
1234
1235 2012-11-21 Tom Tromey <tromey@redhat.com>
1236
1237 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1238 field.
1239 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1240 Remove.
1241 * c-typeprint.c (c_type_print_base): Update.
1242
1243 2012-11-21 Yao Qi <yao@codesourcery.com>
1244
1245 PR tdep/7438
1246 * gdbarch.sh (smash_text_address): Remove.
1247 * gdbarch.c, gdbarch.h: Regenerate.
1248 * arm-tdep.c (arm_smash_text_address): Remove.
1249 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1250 * hppa-tdep.c (hppa_smash_text_address): Remove.
1251 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1252 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1253 Caller update.
1254 * coffread.c (coff_symtab_read): Caller update.
1255 * dbxread.c (process_one_symbol): Likewise.
1256 * elfread.c (record_minimal_symbol): Likewise.
1257 * somread.c (som_symtab_read): Likewise.
1258
1259 2012-11-20 Pierre Muller <muller@sourceware.org>
1260
1261 ARI fixes: sprintf rule.
1262 Replace sprintf function calls for char arrays by
1263 calls to xsnprintf calls.
1264 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1265 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1266 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1267 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1268 * breakpoint.c (condition_completer): Ditto.
1269 (create_tracepoint_from_upload): Ditto.
1270 * dwarf2read.c (file_full_name): Ditto.
1271 * gcore.c (gcore_command): Ditto.
1272 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1273 * go32-nat.c (go32_sysinfo): Ditto.
1274 * interps.c (interp_set): Ditto.
1275 * m32c-tdep.c (make_types): Ditto.
1276 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1277 * remote-m32r-sdi.c (m32r_open): Ditto.
1278 * sol-thread.c (td_err_string): Ditto.
1279 (td_state_string, solaris_pid_to_str): Ditto.
1280 * symtab.c (gdb_mangle_name): Ditto.
1281 * cli/cli-script.c (execute_control_command): Ditto.
1282 (define_command, document_command): Ditto.
1283 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1284 * tui/tui-stack.c (tui_make_status_line): Ditto.
1285 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1286
1287 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1288
1289 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1290 it when looking at ptr->func.
1291 * command.h (complete_on_cmdlist): Add a fourth arg.
1292 * completer.c (complete_line_internal): Add local ignore_help_classes,
1293 and set it to 1 when reason is not handle_help. Pass this down to
1294 lookup_cmd_1 and complete_on_cmdlist.
1295
1296 2012-11-20 Tom Tromey <tromey@redhat.com>
1297
1298 * completer.c (count_struct_fields): Remove.
1299 (expression_completer): Don't call count_struct_fields.
1300
1301 2012-11-20 Pedro Alves <palves@redhat.com>
1302
1303 * annotate.c (breakpoints_changed): Rename to ...
1304 (annotate_breakpoints_changed): ... this.
1305 (annotate_stopped, breakpoint_changed): Adjust caller.
1306 * annotate.h (breakpoints_changed): Rename to ...
1307 (annotate_breakpoints_changed): ... this.
1308 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1309 (do_map_commands_command, init_raw_breakpoint, clear_command)
1310 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1311
1312 2012-11-20 David S. Miller <davem@davemloft.net>
1313
1314 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1315 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1316 sysconf.
1317 (get_cores_used_by_process): Update comment.
1318
1319 2012-11-20 Yao Qi <yao@codesourcery.com>
1320
1321 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1322
1323 2012-11-20 Yao Qi <yao@codesourcery.com>
1324
1325 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1326 to deprecated_context_hook.
1327
1328 2012-11-19 Yao Qi <yao@codesourcery.com>
1329
1330 * infrun.c (infwait_state): Add static.
1331
1332 2012-11-16 Keith Seitz <keiths@redhat.com>
1333
1334 PR c++/13615
1335 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1336 parameter and pass it to lookup_symbol_file.
1337 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1338 to search base classes.
1339 (cp_lookup_symbol_namespace): Likewise.
1340 (lookup_namespace_scope): Likewise.
1341 (lookup_symbol_file): Add SEARCH parameter.
1342 If SEARCH is non-zero and no symbol is found, lookup the class
1343 and call cp_lookup_nested_symbol.
1344 (find_symbol_in_baseclass): New function.
1345 (cp_lookup_nested_symbol): Do not let
1346 cp_lookup_symbol_in_namespace search through base classes.
1347 Do that later when there is no global symbol match.
1348
1349 2012-11-16 Doug Evans <dje@google.com>
1350
1351 * main.c (gdb_datadir_provided): New static global.
1352 (get_init_files): If --data-directory is provided,
1353 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1354 * NEWS: Mention it.
1355
1356 2012-11-15 Pierre Muller <muller@sourceware.org>
1357
1358 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1359 * gdb_stat.h: Delete. Moved to common directory.
1360 * common/gdb_stat.h: New file.
1361 * gdb_wait.h: Delete. Moved to common directory.
1362 * common/gdb_wait.h: New file.
1363 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1364 location.
1365 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1366 location.
1367 (stat.h rule): Adapt to new gdb_stat.h location.
1368 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1369 <sys/stat.h> header.
1370 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1371 <sys/wait.h> header.
1372
1373 2012-11-15 Pierre Muller <muller@sourceware.org>
1374
1375 * configure.ac (AC_HEADER_STAT): Remove.
1376 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1377 and corresponding code.
1378 * configure: Regenerate.
1379 * config.in: Regenerate.
1380
1381 2012-11-15 Pierre Muller <muller@sourceware.org>
1382
1383 ARI xasprintf rule fixes.
1384 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1385 instead of xasprintf.
1386 (open_and_init_dwp_file): Ditto.
1387
1388 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1389
1390 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1391 target types.
1392
1393 2012-11-14 Tom Tromey <tromey@redhat.com>
1394
1395 * configure, config.in: Rebuild.
1396 * configure.ac: Don't check for ctype.h, time.h.
1397 * expprint.c: Don't use HAVE_CTYPE_H.
1398
1399 2012-11-13 Tom Tromey <tromey@redhat.com>
1400
1401 * gdbarch.h, gdbarch.c: Rebuild.
1402 * gdbarch.sh (set_target_gdbarch): Rename from
1403 deprecated_target_gdbarch_select_hack.
1404 * arch-utils.c (gdbarch_update_p): Update.
1405 (set_gdbarch_from_file): Update.
1406
1407 2012-11-14 Pierre Muller <muller@sourceware.org>
1408
1409 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1410 as responsible of contrib/ari directory.
1411
1412 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1413 Yao Qi <yao@codesourcery.com>
1414
1415 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1416 bit of EXC_RETURN.
1417 (arm_m_exception_cache, arm_m_exception_this_id)
1418 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1419 (arm_m_exception_unwind): New.
1420 (arm_gdbarch_init): Register arm_m_exception_unwind.
1421
1422 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1423
1424 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1425 parameter COUNT, for pattern filling of memory regions.
1426 * NEWS: Mention it.
1427
1428 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1429
1430 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1431 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1432 to print_source_lines ().
1433 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1434 flag.
1435 * source.c (print_source_lines_base): Prefix source line with
1436 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1437
1438 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1439
1440 * symtab.h (print_source_lines_flags): New enum.
1441 * source.c (print_source_lines_base): Change noerror to flags.
1442 (print_source_lines): Change noerror to flags.
1443
1444 2012-11-13 Pierre Muller <muller@sourceware.org>
1445
1446 ARI fixes: Avoid sprintf function use rule.
1447 * charset.c (convert_between_encodings): Use xsnprintf.
1448 * cli-out.c (cli_field_int): Likewise.
1449 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1450 * expprint.c (op_name_standard): Likewise.
1451 * frv-tdep.c (set_variant_num_gprs): Likewise.
1452 (set_variant_num_fprs): Likewise.
1453 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1454 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1455 (nto_init_solib_absolute_prefix): Likewise.
1456 * source.c (init_source_path): Likewise.
1457 (print_source_lines_base): Likewise.
1458 * valprint.c (print_wchar): Likewise.
1459 * mi/mi-out.c (mi_field_int): Likewise.
1460 windows-nat.c (windows_pid_to_exec_file): Likewise.
1461 (windows_create_inferior): Likewise.
1462 (_initialize_check_for_gdb_ini): Likewise.
1463
1464 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1465
1466 * frame.h (deprecated_frame_register_read): Renames
1467 frame_register_read.
1468 * frame.c (deprecated_frame_register_read): Renames
1469 frame_register_read. Update all callers.
1470 * i386-tdep.c: Update all callers of frame_register_read.
1471 * infcmd.c: Likewise.
1472 * jit.c: Likewise.
1473 * mips-tdep.c: Likewise.
1474 * mt-tdep.c: Likewise.
1475 * sh64-tdep.c: Likewise.
1476
1477 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1478
1479 * frame.h (frame_register_read): Remove FIXME comment.
1480 * frame.c (frame_register_read): Add suggestion explaining
1481 which function to use in place of this one.
1482
1483 2012-11-12 Tom Tromey <tromey@redhat.com>
1484
1485 * python/python.c (start_type_printers): Initialize 'result_obj'.
1486
1487 2012-11-12 Tom Tromey <tromey@redhat.com>
1488
1489 * NEWS: Update.
1490 * data-directory/Makefile.in (PYTHON_FILES): Add
1491 type_printers.py.
1492 * python/lib/gdb/command/type_printers.py: New file.
1493 * python/lib/gdb/command/types.py (TypePrinter): New class.
1494 (_get_some_type_recognizers, get_type_recognizers,
1495 apply_type_recognizers, register_type_printer): New
1496 functions.
1497 * python/py-objfile.c (objfile_object) <type_printers>: New
1498 field.
1499 (objfpy_dealloc): Decref new field.
1500 (objfpy_new): Set new field.
1501 (objfpy_get_type_printers, objfpy_set_type_printers): New
1502 functions.
1503 (objfile_to_objfile_object): Set new field.
1504 (objfile_getset): Add "type_printers".
1505 * python/py-progspace.c (pspace_object) <type_printers>: New
1506 field.
1507 (pspy_dealloc): Decref new field.
1508 (pspy_new): Set new field.
1509 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1510 (pspace_to_pspace_object): Set new field.
1511 (pspace_getset): Add "type_printers".
1512 * python/python.c (start_type_printers, apply_type_printers,
1513 free_type_printers): New functions.
1514 (_initialize_python): Set gdb.type_printers.
1515 * python/python.h (start_type_printers, apply_type_printers,
1516 free_type_printers): Declare.
1517 * typeprint.c (type_print_raw_options, default_ptype_flags):
1518 Update for new fields.
1519 (do_free_global_table, create_global_typedef_table,
1520 find_global_typedef): New functions.
1521 (find_typedef_in_hash): Use find_global_typedef.
1522 (whatis_exp): Use create_global_typedef_table. Change cleanup
1523 handling.
1524 * typeprint.h (struct type_print_options) <global_typedefs,
1525 global_printers>: New fields.
1526
1527 2012-11-12 Tom Tromey <tromey@redhat.com>
1528
1529 * c-typeprint.c (find_typedef_for_canonicalize,
1530 print_name_maybe_canonical): New functions.
1531 (c_print_type): Look up type name.
1532 (cp_type_print_derivation_info): Add flags argument. Use
1533 print_name_maybe_canonical.
1534 (cp_type_print_method_args): Add wrapping.
1535 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1536 (c_type_print_template_args): New function.
1537 (c_type_print_base): Change wrapping. Use
1538 print_name_maybe_canonical.
1539 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1540 type name lookups.
1541 * gdbtypes.c (types_equal): No longer static.
1542 * gdbtypes.h (types_equal): Declare.
1543 * typeprint.c (type_print_raw_options, default_ptype_flags):
1544 Update.
1545 (struct typedef_hash_table): New.
1546 (hash_typedef_field, eq_typedef_field,
1547 recursively_update_typedef_hash, add_template_parameters,
1548 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1549 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1550 copy_typedef_hash, find_typedef_in_hash): New functions.
1551 * typeprint.h (struct type_print_options) <local_typedefs>:
1552 New field.
1553 (recursively_update_typedef_hash, add_template_parameters,
1554 create_typedef_hash, free_typedef_hash,
1555 make_cleanup_free_typedef_hash, copy_typedef_hash,
1556 find_typedef_in_hash): Declare.
1557
1558 2012-11-12 Tom Tromey <tromey@redhat.com>
1559
1560 * cp-support.c (inspect_type,
1561 replace_typedefs_qualified_name, replace_typedefs): Add
1562 finder, data arguments. Call as needed.
1563 (cp_canonicalize_string_full): New function.
1564 (cp_canonicalize_string_no_typedefs): Rewrite.
1565 * cp-support.h (canonicalization_ftype): New typedef.
1566 (cp_canonicalize_string_full): Declare.
1567
1568 2012-11-12 Tom Tromey <tromey@redhat.com>
1569
1570 * NEWS: Update.
1571 * c-typeprint.c (c_type_print_base): Handle print_method and
1572 print_typedefs flags.
1573 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1574 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1575 options.
1576 * typeprint.c (type_print_raw_options, default_ptype_flags):
1577 Update for new field.s
1578 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1579 (setprinttypelist, showprinttypelist, print_methods,
1580 print_typedefs): New globals.
1581 (set_print_type, show_print_type, set_print_type_methods,
1582 show_print_type_methods, set_print_type_typedefs,
1583 show_print_type_typedefs): New functions.
1584 (_initialize_typeprint): Update documentation. Add "print
1585 type methods" and "print type typedefs" parameters.
1586 * typeprint.h (struct type_print_options) <print_methods,
1587 print_typedefs>: New fields.
1588
1589 2012-11-12 Tom Tromey <tromey@redhat.com>
1590
1591 * c-typeprint.c (cp_type_print_method_args): Add flags
1592 argument. Call c_print_type, not type_print.
1593 (c_type_print_base): Call c_print_type, not type_print.
1594 Update.
1595
1596 2012-11-12 Tom Tromey <tromey@redhat.com>
1597
1598 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1599 to type-printing functions.
1600 * ada-lang.h (ada_print_type): Add argument.
1601 * ada-typeprint.c (print_array_type, print_variant_clauses,
1602 print_variant_part, print_selected_record_field_types,
1603 print_record_field_types, print_unchecked_union_type,
1604 print_func_type, ada_print_type): Add flags argument.
1605 (ada_print_typedef): Update.
1606 * c-exp.y (OPERATOR conversion_type_id): Update.
1607 * c-lang.h (c_print_type, c_type_print_base): Update.
1608 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1609 c_type_print_modifier, c_type_print_args,
1610 c_type_print_varspec_suffix, c_type_print_base): Add flags
1611 argument.
1612 * cp-valprint.c (cp_print_class_member): Update.
1613 * dwarf2read.c (dwarf2_compute_name): Update.
1614 * f-lang.h (f_print_type): Add argument.
1615 * f-typeprint.c (f_print_type): Add flags argument.
1616 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1617 * go-lang.h (go_print_type): Add argument.
1618 * go-typeprint.c (go_print_type): Add flags argument.
1619 * jv-lang.h (java_print_type): Add argument.
1620 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1621 flags argument.
1622 * language.c (unk_lang_print_type): Add flags argument.
1623 * language.h (struct language_defn) <la_print_type>: Add flags
1624 argument.
1625 (LA_PRINT_TYPE): Likewise.
1626 * m2-lang.h (m2_print_type): Add argument.
1627 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1628 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1629 m2_unbounded_array, m2_record_fields): Add flags argument.
1630 * p-lang.h (pascal_print_type, pascal_type_print_base,
1631 pascal_type_print_varspec_prefix): Add argument.
1632 * p-typeprint.c (pascal_print_type,
1633 pascal_type_print_varspec_prefix, pascal_print_func_args,
1634 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1635 flags argument.
1636 * symmisc.c (print_symbol): Update.
1637 * typeprint.c (type_print_raw_options, default_ptype_flags):
1638 New globals.
1639 (type_print): Update.
1640 * typeprint.h (struct type_print_options): New.
1641 (type_print_raw_options): Declare.
1642 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1643
1644 2012-11-10 Keith Seitz <keiths@redhat.com>
1645
1646 * breakpoint.c (clear_command): Add cleanup for
1647 sals.sals if an argument is given.
1648
1649 * linespec.c (parse_linespec): Do cleanups after
1650 parsing a convenience variable.
1651
1652 2012-11-10 Keith Seitz <keiths@redhat.com>
1653
1654 PR gdb/14288
1655 * c-valprint.c (c_val_print): For character arrays
1656 with "print null" option on, print ellipses if
1657 the output is truncated and the next character is not \000.
1658 * valprint.c (MAX_WCHARS): Define.
1659 (WCHAR_BUFLEN): Likewise.
1660 (WCHAR_BUFLEN_MAX): Likewise.
1661 (struct converted_character): New structure.
1662 (count_next_character): New function.
1663 (print_converted_chars_to_obstack): New function.
1664 (generic_printstr): Rewrite using count_next_character
1665 and print_converted_chars_to_obstack.
1666
1667 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1668
1669 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1670 while executing the gdb command.
1671 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1672 are called from prompt_for_continue.
1673 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1674
1675 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1676
1677 PR tui/9584
1678
1679 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1680 but insert the command to execute in readline's buffer.
1681
1682 2012-11-09 Tom Tromey <tromey@redhat.com>
1683
1684 * gdbarch.sh (target_gdbarch): Remove macro.
1685 (get_target_gdbarch): Rename to target_gdbarch.
1686 * gdbarch.c, gdbarch.h: Rebuild.
1687 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1688 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1689 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1690 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1691 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1692 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1693 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1694 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1695 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1696 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1697 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1698 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1699 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1700 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1701 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1702 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1703 target-descriptions.c, target.c, target.h, tracepoint.c,
1704 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1705 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1706 python/py-inferior.c, python/python.c: Update.
1707
1708 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1709
1710 * source.c (print_source_lines_base): Add fullname field giving
1711 full path to file in mi output.
1712 * NEWS: Mention the new fullname field.
1713
1714 2012-11-09 Yao Qi <yao@codesourcery.com>
1715
1716 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1717
1718 2012-11-09 Pedro Alves <palves@redhat.com>
1719
1720 PR gdb/14306
1721
1722 * infrun.c: Include target-descriptions.h.
1723 (follow_exec): Fetch new target description.
1724
1725 2012-11-09 Yao Qi <yao@codesourcery.com>
1726
1727 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1728 0x8d (lea).
1729
1730 2012-11-09 Yao Qi <yao@codesourcery.com>
1731
1732 * breakpoint.c: Declare set_tracepoint_count.
1733 (install_breakpoint): Call set_tracepoint_count if B is a
1734 tracepoint.
1735 (trace_command): Don't call set_tracepoint_count. Re-indent.
1736 (strace_command, ftrace_command):
1737 (create_tracepoint_from_upload): Likewise.
1738
1739 2012-11-09 Pedro Alves <palves@redhat.com>
1740
1741 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1742 (get_target_gdbarch) <gdbarch.h>: New function.
1743 (startup_gdbarch) <gdbarch.h>: Declare.
1744 <gdbarch.c> (target_gdbarch): Delete.
1745 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1746 current inferior's gdbarch.
1747 <gdbarch.c> (get_target_gdbarch): New function.
1748 * inferior.c: Include target-descriptions.h.
1749 (free_inferior): Free target description info.
1750 (add_inferior_with_spaces): Set the inferior's initial
1751 architecture.
1752 (clone_inferior_command): Copy the original inferior's target
1753 description if it was user specified.
1754 (initialize_inferiors): Add comment.
1755 * inferior.h (struct target_desc_info): Forward declare.
1756 (struct inferior) <gdbarch>: New field.
1757 * linux-nat.c: Include target-descriptions.h.
1758 (linux_child_follow_fork): Copy the parent's architecture and
1759 target description to the child.
1760 * target-descriptions.c: Include inferior.h.
1761 (struct target_desc_info): New structure, holding the equivalents
1762 of ...
1763 (target_desc_fetched, current_target_desc)
1764 (target_description_filename): ... these removed globals.
1765 (get_tdesc_info, target_desc_info_from_user_p)
1766 (copy_inferior_target_desc_info, target_desc_info_free): New.
1767 (target_desc_fetched, current_target_desc)
1768 (target_description_filename): Reimplemented as convenience
1769 macros.
1770 (tdesc_filename_cmd_string): New global.
1771 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1772 tdescs filename ..." commands to the per-inferior equivalent.
1773 (show_tdesc_filename_cmd): Get the value to show from the
1774 per-inferior description filename.
1775 (_initilize_target_descriptions): Change the "set/show tdesc
1776 filename" commands' variable.
1777 * target-descriptions.h (struct target_desc, struct target_desc_info)
1778 (struct inferior): Forward declare.
1779 (target_find_description, target_clear_description)
1780 (target_current_description): Adjust comments.
1781 (copy_inferior_target_desc_info, target_desc_info_free)
1782 (target_desc_info_from_user_p). Declare.
1783
1784 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1785
1786 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1787 (tui_target_wait_hook): Remove.
1788 (tui_install_hooks): Install the about_to_proceed observer.
1789 (tui_remove_hooks): And remove it here.
1790
1791 2012-11-08 Tom Tromey <tromey@redhat.com>
1792
1793 * linux-tdep.c (linux_make_siginfo_note): New function.
1794 (linux_make_corefile_notes): Use it.
1795 * corelow.c (get_core_siginfo): New function.
1796 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1797
1798 2012-11-08 Tom Tromey <tromey@redhat.com>
1799
1800 PR gdb/14704:
1801 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1802 (zlib_decompress_section): Remove.
1803 (gdb_bfd_map_section): Only check for compressed section
1804 in mmap case. Use bfd_get_full_section_contents.
1805 * osabi.c (check_note): Add 'sectsize' argument. Read
1806 section data.
1807 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1808 section data. Update for check_note change.
1809 * xcoffread.c (xcoff_initial_scan): Use
1810 bfd_get_full_section_contents.
1811 * py-auto-load.c (auto_load_section_scripts): Use
1812 bfd_get_full_section_contents.
1813 * contrib/cc-with-tweaks.sh: Add -Z option.
1814
1815 2012-11-08 Tom Tromey <tromey@redhat.com>
1816
1817 * python/py-bpevent.c: Include defs.h.
1818 * python/py-continueevent.c: Include defs.h.
1819 * python/py-event.c: Include defs.h.
1820 * python/py-event.h: Don't include defs.h.
1821 * python/py-events.h: Don't include defs.h.
1822 * python/py-evts.c: Include defs.h.
1823 * python/py-exitedevent.c: Include defs.h.
1824 * python/py-newobjfileevent.c: Include defs.h.
1825 * python/py-signalevent.c: Include defs.h.
1826 * python/py-stopevent.c: Include defs.h.
1827 * python/py-threadevent.c: Include defs.h.
1828
1829 2012-11-08 Pierre Muller <muller@sourceware.org>
1830
1831 * update-web-ari.sh (print_heading): Add number of files
1832 checked.
1833 (nb_files): New variable counting the number of sources
1834 files found by gdb_find.sh script.
1835 (debug_awk): New variable to allow extra debug output.
1836 (indexes): Add more information if DEBUG_AWK is set.
1837
1838 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1839
1840 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1841 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1842 following the change in PLT call stubs on linker.
1843
1844 2012-11-08 Pierre Muller <muller@sourceware.org>
1845
1846 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1847 as default language.
1848 (AWK): Use = instead of == for sh test to avoid warning.
1849 (Linux rule): Correct [:digit] into [[:digit:]].
1850 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1851 (vasprintf rule): Adapt to common subdirectory moves.
1852 (xasprintf rule): Idem.
1853 (xvasprintf rule): Idem.
1854 (var_boolean rule): Accept occurence in == or != test.
1855
1856 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1857
1858 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1859
1860 * tui/tui-hooks.c (tui_inferior_exit): New function.
1861 (tui_detach_hook): Remove.
1862 (tui_install_hooks): Install the inferior exit observer.
1863 (tui_remove_hooks): Remove it.
1864
1865 2012-11-08 Yao Qi <yao@codesourcery.com>
1866
1867 PR gdb/14777.
1868 * source.c (_initialize_source): Call add_com_alias to abbreviate
1869 'forward-search' as 'fo'.
1870
1871 2012-11-07 Pedro Alves <palves@redhat.com>
1872
1873 * arm-tdep.c: Make defs.h be the first include.
1874 * coff-pe-read.c: Ditto.
1875 * gnu-nat.c: Ditto.
1876 * go32-nat.c: Ditto.
1877 * i386-nat.c: Ditto.
1878 * ppcnbsd-nat.c: Ditto.
1879 * ada-varobj.h: Don't include defs.h.
1880 * i386-darwin-tdep.h: Ditto.
1881 * i386-nat.h: Ditto.
1882
1883 2012-11-07 Pedro Alves <palves@redhat.com>
1884
1885 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1886 Committee.
1887
1888 2012-11-07 Pierre Muller <muller@sourceware.org>
1889
1890 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1891 File already uses "gdb_dirent.h" header.
1892
1893 2012-11-07 Yao Qi <yao@codesourcery.com>
1894
1895 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1896 tracepoint_count'.
1897
1898 2012-11-06 Tom Tromey <tromey@redhat.com>
1899
1900 * target.h (inferior_has_forked, inferior_has_vforked)
1901 (inferior_has_execd, inferior_has_called_syscall): Remove
1902 declarations.
1903
1904 2012-11-06 Pierre Muller <muller@sourceware.org>
1905
1906 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1907 add missing internalization markup.
1908
1909 2012-11-06 Pedro Alves <palves@redhat.com>
1910
1911 PR gdb/14810
1912
1913 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1914
1915 2012-11-06 Pierre Muller <muller@sourceware.org>
1916
1917 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1918 is not executable.
1919
1920 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1921
1922 * gnulib/update-gnulib.sh: New script.
1923
1924 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1925
1926 * MAINTAINERS: Update my email address.
1927
1928 2012-11-05 Tom Tromey <tromey@redhat.com>
1929
1930 * frame.c (put_frame_register): Don't use temporary buffer.
1931
1932 2012-11-05 Pedro Alves <palves@redhat.com>
1933
1934 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1935 child. Clear 'pending_detach'.
1936 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1937 'pending_detach' in the vfork parent.
1938
1939 2012-11-05 Doug Evans <dje@google.com>
1940
1941 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1942 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1943 * dwarf2read.c: #include "elf-bfd.h".
1944 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1945 (dwop_section_names): Renamed from dwo_section names. All uses
1946 updated. Add entries for .debug_cu_index, .debug_tu_index.
1947 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1948 All uses updated.
1949 (struct dwp_sections): New type.
1950 (struct virtual_dwo_sections): New type.
1951 (struct dwp_hash_table): New type.
1952 (struct dwp_file): New type.
1953 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1954 read in. Handle DWOs coming from DWP files.
1955 (lookup_dwo_file_slot): New function.
1956 (dwarf2_locate_dwo_sections): Move definition closer to use.
1957 (create_dwo_debug_info_hash_table_reader): Renamed from
1958 create_debug_info_hash_table_reader. All callers updated.
1959 (create_dwo_debug_info_hash_table): Renamed from
1960 create_debug_info_hash_table. All callers updated.
1961 (create_dwp_hash_table): New function.
1962 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1963 (lookup_dwo_in_dwp): New function.
1964 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1965 is_dwp. All callers updated.
1966 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1967 (open_and_init_dwo_file): Renamed from init_dwo_file.
1968 All callers updated.
1969 (lookup_dwo_file): Delete.
1970 (dwarf2_locate_dwp_sections): New function.
1971 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1972 (allocate_dwp_loaded_cutus_table): New function.
1973 (open_and_init_dwp_file): New function.
1974 (lookup_dwo_cutu): New function.
1975 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1976
1977 2012-11-03 Yao Qi <yao@codesourcery.com>
1978
1979 Fix PR gdb/14617.
1980 * breakpoint.c (trace_pass_set_count): Call
1981 observer_notify_breakpoint_modified instead of
1982 observer_notify_tracepoint_modified.
1983 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1984
1985 2012-11-02 Tom Tromey <tromey@redhat.com>
1986
1987 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1988 argument to complete_on_enum.
1989
1990 2012-11-02 Tom Tromey <tromey@redhat.com>
1991
1992 * configure: Rebuild.
1993 * configure.ac (build_warnings): Add -Wempty-body.
1994 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1995 * remote.c (handle_notification): Use braces for empty 'else' body.
1996 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1997 'else' body.
1998 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1999 'else' body.
2000 * solib-som.c (som_relocate_section_addresses): Use braces
2001 for empty 'else' body.
2002 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
2003 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
2004
2005 2012-11-02 Pedro Alves <palves@redhat.com>
2006
2007 PR gdb/14766
2008
2009 * infrun.c (handle_inferior_event)
2010 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2011 null_ptid before handling a vfork child exec or exit. Switch to
2012 the event ptid afterwards.
2013
2014 2012-11-02 Yao Qi <yao@codesourcery.com>
2015
2016 * std-operator.def: Remove OP_LABELED.
2017 * eval.c: Remove the declaration of 'get_label'.
2018 (get_label): Remove.
2019 (evaluate_struct_tuple): Remove code handling OP_LABELED.
2020 Update comment.
2021 Remove local variable 'variantno' and related code.
2022 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
2023 with 'fieldno'.
2024 * expprint.c (print_subexp_standard): Likewise.
2025 (dump_subexp_body_standard): Likewise.
2026 * parse.c (operator_length_standard): Likewise.
2027
2028 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
2029
2030 Incorporate ARI web page generator into GDB sources.
2031 * contrib/ari/create-web-ari-in-src.sh: New file.
2032 * contrib/ari/gdb_ari.sh: New file.
2033 * contrib/ari/gdb_find.sh: New file.
2034 * contrib/ari/update-web-ari.sh: New file.
2035
2036 2012-10-31 Tom Tromey <tromey@redhat.com>
2037
2038 * gdbarch.c: Rebuild.
2039 * gdbarch.sh: Remove references to gdbarch_swap.
2040 * corelow.c (core_open): Remove obsolete comment.
2041
2042 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
2043
2044 PR cli/14772
2045 * c-typeprint.c (c_print_type): Don't print a space for vector
2046 types, this is handled within the suffix.
2047 (c_type_print_varspec_suffix): Add a space to vector suffix.
2048
2049 2012-10-26 Pedro Alves <palves@redhat.com>
2050
2051 * amd64-tdep.c (amd64_relocate_instruction): Use
2052 store_unsigned_integer instead of memcpy.
2053 * i386-tdep.c (i386_relocate_instruction): Ditto.
2054
2055 2012-10-26 Pedro Alves <palves@redhat.com>
2056
2057 * infrun.c (handle_inferior_event): Merge handling of
2058 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2059 switch case.
2060
2061 2012-10-26 Pedro Alves <palves@redhat.com>
2062
2063 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2064 Remove comment.
2065
2066 2012-10-26 Pedro Alves <palves@redhat.com>
2067
2068 * target.c (target_waitstatus_to_string): Handle
2069 TARGET_WAITKIND_VFORK_DONE.
2070
2071 2012-10-26 Pedro Alves <palves@redhat.com>
2072
2073 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2074 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2075
2076 2012-10-24 Tristan Gingold <gingold@adacore.com>
2077
2078 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2079 Add comments.
2080
2081 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2082
2083 * ravenscar-thread.c (ravenscar_wait): Only update the list
2084 of threads and inferior_ptid if the inferior is still alive.
2085
2086 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2087
2088 * ada-lang.c (is_known_support_routine): Use lbasename when
2089 matching the symtab's filename against
2090 known_runtime_file_name_patterns.
2091
2092 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2093
2094 * ada-lang.c (ada_same_array_size_p): New function.
2095 (ada_promote_array_of_integrals): New function.
2096 (coerce_for_assign): Add handling of arrays where the elements
2097 are integrals of a smaller size than the size of the target
2098 array element type.
2099
2100 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2101
2102 * doublest.c (convert_doublest_to_floatformat): Fix comparison
2103 against maximum exponent value.
2104
2105 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2106
2107 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2108 "unwind-seh.c".
2109
2110 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2111
2112 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2113 strip typedef layer when computing the fixed type's field type,
2114 only when computing its size.
2115
2116 2012-10-24 Mark Kettenis <kettenis@gnu.org>
2117
2118 PR gdb/12783
2119 * i386-tdep.c (i386_return_value): Handle complex double and long
2120 double.
2121
2122 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2123
2124 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2125 New local variable args_len.
2126 Quote the name of the executable when computing the command line.
2127
2128 2012-10-23 Mark Kettenis <kettenis@gnu.org>
2129
2130 PR gdb/12796
2131 PR gdb/12798
2132 PR gdb/12800
2133 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2134 AMD64_FTAG_REGNUM.
2135 * amd64-tdep.c (amd64_classify): Classify complex types.
2136 (amd64_return_value): Handle the COMPLEX_X87 class.
2137
2138 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2139
2140 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2141 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2142
2143 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2144
2145 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2146 function.
2147 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2148 to amd64_windows_auto_wide_charset.
2149
2150 2012-10-23 Yao Qi <yao@codesourcery.com>
2151
2152 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2153 * event-top.h: Remove its declaration.
2154 (async_request_quit): Call mark_async_signal_handler instead of
2155 mark_async_signal_handler_wrapper.
2156 (async_do_nothing, async_disconnect): Likewise.
2157 (async_stop_sig): Likewise.
2158 * remote.c (handle_remote_sigint): Likewise.
2159 (handle_remote_sigint_twice): Likewise.
2160
2161 2012-10-23 Yao Qi <yao@codesourcery.com>
2162
2163 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2164 with 'static struct async_signal_handler *'.
2165 (sighup_token, sigquit_token, sigstp_token): Likewise.
2166
2167 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2168
2169 * gdbarch.sh (function_list): Use 'pstring' when printing
2170 a variable which could return NULL.
2171 * gdbarch.c: Regenerate.
2172
2173 2012-10-10 Joel Brobecker <brobecker@adacore.com>
2174 Tom Tromey <tromey@redhat.com>
2175
2176 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2177 inneffective if condition by gdb assertion. Add function
2178 description comment.
2179
2180 2012-10-19 Joel Brobecker <brobecker@adacore.com>
2181
2182 * parser-defs.h (struct exp_descriptor): Document constraint
2183 on return value for "op_name" callbacks.
2184
2185 2012-10-18 Tom Tromey <tromey@redhat.com>
2186
2187 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2188 * symtab.c (iterate_over_some_symtabs): Constify.
2189 * source.h (symtab_to_fullname): Return 'const char *'.
2190 * source.c (symtab_to_fullname): Return 'const char *'.
2191 * python/py-symtab.c (stpy_fullname): Constify.
2192 * cli/cli-cmds.c (edit_command): Constify.
2193 * breakpoint.c (print_breakpoint_location)
2194 (update_static_tracepoint): Constify.
2195
2196 2012-10-18 Tom Tromey <tromey@redhat.com>
2197
2198 * breakpoint.c (compare_breakpoints): Fix comparison.
2199
2200 2012-10-18 Tom Tromey <tromey@redhat.com>
2201
2202 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2203 gdb_wchar_t to convert_between_encodings.
2204
2205 2012-10-17 Yao Qi <yao@codesourcery.com>
2206
2207 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2208 more parameter 'inferior'.
2209 * corefile.c (write_memory_with_notification): Caller update.
2210
2211 * mi/mi-cmd-var.c: Include "mi-main.h".
2212 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2213 to 1 and restore it later.
2214 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2215 and "data-write-memory-bytes.
2216 * mi/mi-interp.c: Include objfiles.h.
2217 (mi_interpreter_init): Call observer_attach_memory_changed.
2218 (mi_memory_changed): New.
2219 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2220 New field.
2221
2222 * NEWS: Mention new MI notification "memory-changed".
2223
2224 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2225
2226 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2227
2228 2012-10-15 Doug Evans <dje@google.com>
2229
2230 New option -nh: inhibit loading of ~/.gdbinit.
2231 * NEWS: Mention -nh.
2232 * main.c (captured_main): Recognize and process -nh.
2233 (print_gdb_help): Mention -nh.
2234 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2235
2236 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2237
2238 PR backtrace/14646
2239 PR gdb/14647
2240 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2241 pc_regnum_from_eax.
2242 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2243 nor pc_regnum_from_eax.
2244 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2245 nor pc_regnum_from_eax.
2246
2247 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2248
2249 Fix entry values resolving in inlined frames.
2250 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2251 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2252 entries of FRAME.
2253
2254 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2255
2256 * configure.ac: Build with -DMS_WIN64 if building with Python
2257 enabled using GCC on amd64-windows.
2258 * configure: Regenerate.
2259
2260 2012-10-15 Tom Tromey <tromey@redhat.com>
2261
2262 PR python/14635:
2263 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2264 to Py_None.
2265
2266 2012-10-15 Tom Tromey <tromey@redhat.com>
2267
2268 PR python/14634:
2269 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2270
2271 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2272
2273 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2274 reset thread numbering back to 1.
2275
2276 2012-10-11 Doug Evans <dje@google.com>
2277
2278 PR breakpoints/14643.
2279 * linespec.c (struct ls_parser): New member keyword_ok.
2280 (linespec_lexer_lex_string): Add comment.
2281 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2282 for one.
2283 (parse_linespec): Set keyword_ok.
2284
2285 2012-10-10 Doug Evans <dje@google.com>
2286
2287 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2288 "0x" prefix on address in log message.
2289
2290 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2291 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2292 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2293 (lookup_dwo_file): Add const to dwo_name parameter.
2294 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2295
2296 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2297
2298 Fix crash during stepping on ppc32.
2299 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2300 SYM.
2301
2302 2012-10-03 Doug Evans <dje@google.com>
2303
2304 PR symtab/14601
2305 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2306
2307 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2308
2309 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2310 output and use uint32_t not long to ensure 4 byte size.
2311
2312 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2313
2314 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2315 unref'ed it.
2316
2317 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2318
2319 * target.c (simple_search_memory): Include access length in
2320 warning message.
2321
2322 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2323 Edjunior Machado <emachado@linux.vnet.ibm.com>
2324
2325 PR gdb/13989
2326 * solib.c (solib_find): Prevent GDB from loading native libraries when
2327 debugging a cross-target corefile.
2328
2329 2012-09-28 selven <pcthegreat@gmail.com>
2330
2331 Make definition match declaration.
2332
2333 * regcache.c (regcache_register_status): Change return type to
2334 enum register_status.
2335
2336 2012-09-28 Yao Qi <yao@codesourcery.com>
2337
2338 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2339 write_memory_with_notification instead of write_memory.
2340 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2341 instead of target_write_memory.
2342
2343 2012-09-28 Yao Qi <yao@codesourcery.com>
2344
2345 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2346 when the length of content is not an even number.
2347
2348 2012-09-27 Tom Tromey <tromey@redhat.com>
2349
2350 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2351 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2352
2353 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2354
2355 * sol-thread.c (sol_thread_fetch_registers)
2356 (sol_thread_store_registers): Delete commented out code.
2357
2358 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2359
2360 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2361 Move these functions to sparc-sol-thread.c.
2362 * sparc-sol-thread.c: New file.
2363 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2364 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2365 configurations.
2366 * configure: Regenerate.
2367
2368 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2369
2370 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2371 Remove commented-out code.
2372
2373 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2374
2375 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2376 Enable this code for sparc hosts only.
2377
2378 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2379
2380 * procfs.h (procfs_find_LDT_entry): Add declaration.
2381 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2382 function procfs_find_LDT_entry.
2383
2384 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2385
2386 * procfs.c (proc_get_LDT_entry): Make static.
2387
2388 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2389
2390 * procfs.c (proc_find_memory_regions): Fix declaration.
2391
2392 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2393
2394 * amd64-tdep.c (amd64_return_value): Revert previous change
2395 that used TYPE_LENGTH directly.
2396 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2397 (bfin_store_return_value): Likewise.
2398 * cris-tdep.c (cris_store_return_value): Likewise.
2399 (cris_extract_return_value): Likewise.
2400 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2401 * hppa-tdep.c (hppa64_return_value): Likewise.
2402 * lm32-tdep.c (lm32_store_return_value): Likewise.
2403 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2404 * spu-tdep.c (spu_value_from_register): Likewise.
2405 * vax-tdep.c (vax_return_value): Likewise.
2406
2407 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2408
2409 * gdbtypes.c (lookup_array_range_type): Expand parameters
2410 LOW_BOUND and HIGH_BOUND to LONGEST.
2411 (lookup_string_range_type): Likewise.
2412 * gdbtypes.h (lookup_array_range_type): Likewise.
2413 (lookup_string_range_type): Likewise.
2414 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2415 Expand HIGHBOUND to ssize_t.
2416 (value_string): Likewise.
2417 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2418 (value_string): Likewise.
2419
2420 2012-09-27 Yao Qi <yao@codesourcery.com>
2421
2422 PR breakpoints/13898
2423 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2424 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2425 per breakpoint type.
2426
2427 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2428
2429 * procfs.c: Add gdb_bfd header.
2430 * rs6000-nat.c: Likewise.
2431 * solib-pa64.c: Likewise.
2432 * spu-linux-nat.c: Likewise.
2433 * windows-nat.c: Likewise.
2434
2435 2012-09-26 Tom Tromey <tromey@redhat.com>
2436
2437 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2438
2439 2012-09-26 Tom Tromey <tromey@redhat.com>
2440
2441 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2442 (read_common_block): Handle child DIEs with
2443 DW_AT_data_member_location.
2444 (new_symbol_full): Add special case for common blocks.
2445
2446 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2447 Tom Tromey <tromey@redhat.com>
2448
2449 * dwarf2read.c (read_common_block): Rewrite.
2450 (new_symbol_full): Handle DW_TAG_common_block.
2451 * f-lang.c (head_common_list, find_common_for_function):
2452 Remove.
2453 * f-lang.h (struct common_entry, struct saved_f77_common,
2454 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2455 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2456 BLANK_COMMON_NAME_LOCAL): Remove.
2457 (struct common_block): New.
2458 * f-valprint.c (list_all_visible_commons): Remove.
2459 (info_common_command_for_block): New function.
2460 (info_common_command): Use it.
2461 * stack.c (iterate_over_block_locals): Special case for
2462 COMMON_BLOCK_DOMAIN.
2463 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2464 constant.
2465 (struct general_symbol_info) <value.common_block>: New field.
2466 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2467
2468 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2469 Tom Tromey <tromey@redhat.com>
2470
2471 * f-lang.c (allocate_saved_bf_node,
2472 allocate_saved_function_node, allocate_saved_f77_common_node,
2473 allocate_common_entry_node, tail_common_list, current_common,
2474 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2475 tmp_bf_ptr, add_common_block, add_common_entry,
2476 find_first_common_named, patch_common_entries,
2477 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2478 global_remote_debug, get_bf_for_fcn, saved_function_list,
2479 saved_function_list_end, clear_function_list, struct saved_fcn,
2480 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2481 SAVED_BF, SAVED_BF_PTR): Remove.
2482 * f-lang.h (tail_common_list, current_common,
2483 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2484 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2485 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2486 real_main_c_value): Remove.
2487 * f-valprint.c (there_is_a_visible_common_named): Remove.
2488
2489 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2490
2491 * breakpoint.c (update_global_location_list): Ignore previous
2492 duplicate status of a breakpoint when starting a new scan for
2493 duplicate breakpoints.
2494
2495 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2496 PR breakpoints/14419
2497 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2498 support LLVM compiler.
2499
2500 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2501
2502 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2503 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2504 (bfin_store_return_value): Likewise.
2505 * cris-tdep.c (cris_store_return_value): Likewise.
2506 (cris_extract_return_value): Likewise.
2507 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2508 * hppa-tdep.c (hppa64_return_value): Likewise.
2509 * lm32-tdep.c (lm32_store_return_value): Likewise.
2510 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2511 * spu-tdep.c (spu_value_from_register): Likewise.
2512 * vax-tdep.c (vax_return_value): Likewise.
2513
2514 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2515
2516 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2517 parameter LEN to ssize_t.
2518
2519 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2520
2521 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2522 variable LEN.
2523 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2524 directly.
2525 (alpha_store_return_value): Likewise.
2526 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2527 (amd64_push_arguments): Likewise.
2528 * ax-gdb.c (gen_trace_static_fields): Likewise.
2529 (gen_traced_pop): Likewise.
2530 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2531 * breakpoint.c (update_watchpoint): Likewise.
2532 * findcmd.c (parse_find_args): Use local variable for type
2533 instead of length.
2534 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2535 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2536 (h8300_store_return_value): Likewise.
2537 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2538 Use i386_darwin_arg_type_alignment directly.
2539 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2540 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2541 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2542 (m68hc11_extract_return_value): Likewise.
2543 * mep-tdep.c (mep_push_dummy_call): Likewise.
2544 * printcmd.c (float_type_from_length): Likewise.
2545 * s390-tdep.c (s390_value_from_register): Likewise.
2546 * stack.c (read_frame_arg): Likewise.
2547 * tracepoint.c (encode_actions_1): Likewise.
2548 * valops.c (value_fetch_lazy): Use local variable for type
2549 instead of length. Use TYPE_LENGTH directly.
2550 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2551
2552 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2553
2554 * symtab.c (skip_prologue_sal): Fix typo in comment.
2555
2556 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2557
2558 * linespec.c (create_sals_line_offset): Fix typo in comment.
2559
2560 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2561
2562 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2563 use plongest to print the array size.
2564
2565 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2566
2567 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2568 * p-valprint.c (pascal_type_print_base): Likewise.
2569
2570 2012-09-22 Yao Qi <yao@codesourcery.com>
2571
2572 * remote.c (remote_get_trace_status): Remove setting default
2573 values of fields of 'ts'.
2574
2575 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2576
2577 Fix internal error on canonicalization of clang types.
2578 * cp-name-parser.y (operator): New comment at make_operator call for
2579 new, delete, new[] and delete[].
2580 (exp): Use "sizeof ". Add new comment at make_operator call.
2581
2582 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2583
2584 Fix disassemble without parameters in tailcall frame.
2585 * cli/cli-cmds.c (disassemble_current_function): Use
2586 get_frame_address_in_block.
2587
2588 2012-09-21 Tom Tromey <tromey@redhat.com>
2589
2590 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2591 TYPE_CODE_UNION>: Unify, removing a goto.
2592
2593 2012-09-21 Tom Tromey <tromey@redhat.com>
2594
2595 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2596
2597 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2598
2599 * findvar.c (read_frame_register_value): Mark the result value as
2600 optimized out if any of the input registers have been optimized out.
2601
2602 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2603
2604 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2605
2606 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2607
2608 * eval.c (evaluate_subexp_standard): Eliminate single-use
2609 variable LOWER.
2610
2611 2012-09-21 Yao Qi <yao@codesourcery.com>
2612
2613 * mi/mi-interp.c: Declare mi_record_changed.
2614 (mi_interpreter_init): Call observer_attach_record_changed.
2615 (mi_record_changed): New.
2616 * record.c (record_open): Call observer_notify_record_changed.
2617 (cmd_record_stop): Call observer_notify_record_changed.
2618 * NEWS: Mention it.
2619
2620 2012-09-20 Tom Tromey <tromey@redhat.com>
2621
2622 * NEWS: Update.
2623 * python/python.c (finalize_python): New function.
2624 (_initialize_python): Make a final cleanup.
2625
2626 2012-09-19 Doug Evans <dje@google.com>
2627
2628 * buildsym.h (param_symbols): Delete, unused.
2629 (context_stack): Delete member "params", unused.
2630 * buildsym.c (push_context): Update.
2631 * dwarf2read.c (read_func_scope): Update.
2632
2633 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2634
2635 * sh-tdep.c (sh_register_convert_to_virtual)
2636 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2637 all callers. Just do a memcpy if not the little-endian case.
2638
2639 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2640 set_gdbarch_double_format and set_gdbarch_long_double_format.
2641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2642 set_gdbarch_double_format.
2643 * sh-tdep.c (sh_gdbarch_init): Likewise.
2644
2645 * NEWS: Document the removal of SH's 'regs' command.
2646 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2647 command.
2648
2649 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2650
2651 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2652 `jump'.
2653
2654 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2655
2656 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2657 language when iterating over symbols.
2658
2659 2012-09-18 Yao Qi <yao@codesourcery.com>
2660
2661 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2662 (mi_interpreter_init): Call observer_attach_tsv_created and
2663 observer_attach_tsv_deleted.
2664 (mi_tsv_created, mi_tsv_deleted): New.
2665 * tracepoint.c (delete_trace_state_variable): Call
2666 observer_notify_tsv_deleted.
2667 (trace_variable_command): Call observer_notify_tsv_created.
2668 (delete_trace_variable_command): Call
2669 observer_notify_tsv_deleted.
2670 (create_tsv_from_upload): Call observer_notify_tsv_created.
2671 * NEWS: Mention it.
2672
2673 2012-09-18 Yao Qi <yao@codesourcery.com>
2674
2675 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2676 if traceframe changed.
2677 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2678 "trace-find".
2679 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2680 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2681 'traceframe_changed'.
2682 (mi_traceframe_changed): New.
2683 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2684 New field.
2685 * NEWS: Mention the new MI notification.
2686
2687 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2688
2689 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2690
2691 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2692
2693 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2694 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2695 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2696 Extend code also for PaX support. Convert all gdb_assert to warning
2697 calls.
2698
2699 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2700
2701 Implement auto-load user conveniences suggested by Doug Evans.
2702 * auto-load.c: Include top.h.
2703 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2704 (_initialize_auto_load): New variable scripts_directory_help. Mention
2705 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2706 scripts-directory. Document in online help one can use also files for
2707 set auto-load safe-path.
2708 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2709 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2710
2711 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2712
2713 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2714 of LEN.
2715
2716 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2717
2718 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2719 ELTLEN and use TYPE_LENGTH directly.
2720 (m2_val_print): Likewise.
2721 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2722 variable LEN and use TYPE_LENGTH directly.
2723 (m68k_svr4_store_return_value): Likewise.
2724 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2725 ARGLEN and use TYPE_LENGTH directly.
2726 (mips_o64_push_dummy_call): Likewise.
2727 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2728 variable LENGTH and use TYPE_LENGTH directly.
2729 (s390_function_arg_float): Likewise.
2730 (s390_function_arg_integer): Likewise.
2731 (s390_push_dummy_call): Likewise.
2732 (s390_return_value_convention): Likewise.
2733 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2734 TYPE_LENGTH directly.
2735
2736 2012-09-17 Yao Qi <yao@codesourcery.com>
2737
2738 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2739 Update comment to add_setshow_integer_cmd.
2740 * cli/cli-setshow.c (do_set_command): Handle case
2741 'var_zuinteger_unlimited'.
2742 (do_show_command): Likewise.
2743 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2744 for command 'remotetimeout'.
2745 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2746 to var_integer.
2747 * source.c (_initialize_source): Call
2748 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2749
2750 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2751
2752 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2753 variable LEN.
2754
2755 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2756
2757 PR 14119
2758 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2759 (frame_pop): Drop also TAILCALL_FRAME frames.
2760 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2761
2762 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2763 Pedro Alves <palves@redhat.com>
2764
2765 PR 14548
2766 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2767 function start if we are already at function start. Both for
2768 reverse-next and for reverse-step into function without line number
2769 info.
2770
2771 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2772
2773 Code cleanup - rename 'inline' depth to 'artificial' depth.
2774 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2775 frame_id_artificial_p, extend the comment.
2776 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2777 * frame.c (fprint_frame_id): Rename at a user, change debug output
2778 text to "artificial=".
2779 (skip_inlined_frames): Rename to ...
2780 (skip_artificial_frames): ... here. Extend the comment.
2781 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2782 (frame_id_inlined_p): Rename to ...
2783 (frame_id_artificial_p): ... here. Rename at a user.
2784 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2785 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2786 at a user.
2787 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2788 Extend the comment.
2789 (frame_id_inlined_p): Rename to ...
2790 (frame_id_artificial_p): ... here.
2791 * inline-frame.c (inline_frame_this_id): Rename at a user.
2792
2793 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2794
2795 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2796 vector variables using vector_size syntax rather than array
2797 syntax.
2798
2799 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2800
2801 * valarith.c (value_concat): Replace unsafe ALLOCA with
2802 XMALLOC/XFREE.
2803
2804 2012-09-14 Pedro Alves <palves@redhat.com>
2805
2806 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2807
2808 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2809
2810 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2811 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2812 data-directory as appropriate.
2813
2814 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2815
2816 * printcmd.c (ui_printf): Eliminate single-use variable
2817 PARAM_LEN.
2818
2819 2012-09-14 Yao Qi <yao@codesourcery.com>
2820 Pedro Alves <palves@redhat.com>
2821
2822 * valops.c (value_assign): Move observer_notify_target_changed
2823 below to replace reinit_frame_cache.
2824
2825 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2826
2827 Refactor Python "gdb" module into a proper Python package, by
2828 introducing a new "_gdb" module for code implemented in C, and
2829 using reload/__import__ instead of exec.
2830 * python/lib/gdb/__init__.py: Import * from _gdb.
2831 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2832 prompt_hook, sys.argv): Moved from finish_python_initialization.
2833 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2834 (packages, auto_load_packages): New list and function replacing
2835 module_dict and auto-loading code, using __file__ instead of
2836 gdb.PYTHONDIR and reload/__import__ instead of exec.
2837 (GdbSetPythonDirectory): Replacing function of the same name
2838 from finish_python_initialization, using reload/__import__ instead
2839 of exec, as well as call auto_load_packages.
2840 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2841 gdb_python_module and not gdb_module.
2842 * python/python-internal.h (gdb_python_module): Declare.
2843 * python/python.c (gdb_python_module): New global.
2844 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2845 (_initialize_python): Rename gdb module to _gdb.
2846 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2847 (finish_python_initialization): Move Python code to
2848 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2849 __main__.
2850
2851 2012-09-13 Pedro Alves <palves@redhat.com>
2852
2853 * Makefile.in (COMMON_OBS): Add registry.o.
2854 * registry.c: New file.
2855 * registry.h (struct registry_container): Declare.
2856 (registry_data_callback): New typedef.
2857 (struct registry_data, struct registry_data_registration, struct
2858 registry_data_registry): New type.
2859 (register_data_with_cleanup, registry_alloc_data)
2860 (registry_callback_adaptor, registry_clear_data)
2861 (registry_container_free_data, registry_set_data, registry_data):
2862 Declare.
2863 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2864 the new common structures and functions.
2865 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2866 callback typedefs.
2867
2868 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2869
2870 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2871 there is an error inserting hardware breakpoints and use the
2872 error message from the target.
2873
2874 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2875 Catch this exception and print the error message contained within.
2876 Do not print the default hardware error breakpoint message in this
2877 case.
2878
2879 2012-09-12 Doug Evans <dje@google.com>
2880
2881 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2882 cu == NULL.
2883
2884 2012-09-11 Doug Evans <dje@google.com>
2885
2886 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2887 .gdb_index symbol attributes if there are none.
2888
2889 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2890
2891 * symtab.h (struct minimal_symbol) [has_size]: New field.
2892 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2893 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2894 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2895 minimal symbols if the symbol's size is actually known.
2896 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2897 of msymbol's size field. Add comment.
2898 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2899 SET_MSYMBOL_SIZE to set the minimal symbol size.
2900
2901 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2902
2903 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2904 minimal_symbol struct object, rather than setting some of its
2905 fields one by one.
2906
2907 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2908
2909 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2910 passed_a_ptr flag when displaying typedef types.
2911
2912 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2913
2914 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2915 the optimized_out flag is preserved.
2916
2917 2012-09-10 Anthony Green <green@moxielogic.com>
2918
2919 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2920 prologue changes in GCC.
2921
2922 2012-09-10 Keith Seitz <keiths@redhat.com>
2923
2924 PR gdb/13483
2925 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2926 (BOOL_CONVERSION_BADNESS): ... this.
2927 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2928 (rank_one_type): Allow all boolean conversions
2929 permitted by the standard.
2930
2931 2012-09-06 Tom Tromey <tromey@redhat.com>
2932
2933 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2934 Don't decref py_objfile.
2935
2936 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2937
2938 Do not enable -lmcheck by default when Python is enabled with
2939 threading support.
2940 * configure.ac: (python_has_threads) New variable, by testing
2941 if WITH_THREAD is defined in Python.h.
2942 Move --enable-lmcheck after --with-python.
2943 Do not enable -lmcheck by default if python_has_threads=yes.
2944 Warn if --enable-lmcheck and python_has_threads=yes.
2945 * configure: Regenerate.
2946
2947 2012-08-31 Yao Qi <yao@codesourcery.com>
2948
2949 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2950 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2951 Update some commands.
2952 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2953 * mi/mi-main.c (mi_cmd_execute): Set
2954 '*parse->cmd->suppress_notification' to 1.
2955
2956 2012-08-31 Yao Qi <yao@codesourcery.com>
2957
2958 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2959
2960 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2961
2962 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2963
2964 2012-08-29 Doug Evans <dje@google.com>
2965
2966 * main.c (print_gdb_help): Remove reference to
2967 --use-deprecated-index-sections.
2968
2969 2012-08-28 Yao Qi <yao@codesourcery.com>
2970
2971 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2972 (init_cmds): Call add_setshow_uinteger_cmd for command
2973 'max-user-call-depth'.
2974 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2975 declaration of 'max_user_call_depth'.
2976 * frame.c (backtrace_limit): Add 'unsigned'.
2977 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2978 'limit'.
2979 * remote.c (remoteaddresssize): Add 'unsigned'.
2980 (remote_address_masked): Change local var 'address_size' to
2981 'unsigned'.
2982 (_initialize_remote): Call add_setshow_uinteger_cmd for
2983 'remoteaddresssize'.
2984 * top.c (history_size): Add 'unsigned'.
2985 (show_commands): Change local variables to 'unsigned'.
2986 (set_history_size_command): Don't check history_size is negative.
2987 Adjust the condition to call unstifle_history and set history_size
2988 to UNIT_MAX.
2989
2990 2012-08-28 Pedro Alves <palves@redhat.com>
2991
2992 PR gdb/14428
2993
2994 * infcmd.c (default_print_one_register_info): New, factored out
2995 from default_print_registers_info.
2996 (default_print_registers_info): Use it. Mark value unavailable if
2997 necessary.
2998 (registers_info): Print user registers with
2999 default_print_one_register_info.
3000
3001 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
3002
3003 PR tui/14486
3004 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
3005 is not NULL before referencing it.
3006
3007 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3008
3009 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
3010 variable pc. Call find_pc_line instead of find_pc_overlay, restore
3011 original PC for it.
3012
3013 2012-08-27 Eli Zaretskii <eliz@gnu.org>
3014 Jan Kratochvil <jan.kratochvil@redhat.com>
3015
3016 * auto-load.c (auto_load_objfile_script): Rename to ...
3017 (auto_load_objfile_script_1): ... here, change variable realname to
3018 parameter realname, document it, add return value, add variable retval.
3019 (auto_load_objfile_script): New function.
3020
3021 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3022
3023 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3024 followed by a whitespace.
3025
3026 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3027
3028 PR gdb/14494.
3029 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3030 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3031 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3032 here.
3033
3034 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
3035
3036 * memattr.c (create_mem_region): Fix memory region overlapping
3037 checking.
3038
3039 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
3040
3041 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3042 with xmalloc/cleanup.
3043 * mt-tdep.c (mt_push_dummy_call): Likewise.
3044 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3045 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3046
3047 2012-08-24 Yao Qi <yao@codesourcery.com>
3048
3049 * jv-exp.y (push_expression_name): Add "." at the end of error
3050 message.
3051
3052 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
3053
3054 Document how to return from "python-interactive" to GDB.
3055 * python/python.c (_initialize_python): Update documentation.
3056
3057 2012-08-23 Pedro Alves <palves@redhat.com>
3058
3059 * infrun.c (_initialize_infrun) <handle command help text>:
3060 Mention that multiple signals are supported.
3061
3062 2012-08-23 Pedro Alves <palves@redhat.com>
3063
3064 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3065 string.
3066
3067 2012-08-23 Yao Qi <yao@codesourcery.com>
3068
3069 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3070 (tfind_1): Don't call registers_changed, set_traceframe_num,
3071 and clear_traceframe_info.
3072 Call set_current_traceframe.
3073 (set_current_traceframe): call set_traceframe_num.
3074
3075 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
3076
3077 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3078 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3079
3080 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3081
3082 Enable readline in Python in a GDB-specific way and block the
3083 standard Python readline module to prevent conflicts with GDB.
3084 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3085 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3086 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3087 * python/py-gdb-readline.c: New file.
3088 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3089 prototype.
3090 * python/python.c (_initialize_python): Call
3091 gdbpy_initialize_gdb_readline.
3092
3093 2012-08-22 Keith Seitz <keiths@redhat.com>
3094
3095 * defs.h: Include build-gnulib/config.h
3096
3097 2012-08-22 Joseph Myers <joseph@codesourcery.com>
3098
3099 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3100 and blx pc.
3101
3102 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3103
3104 Add a new "python-interactive" command that starts a standard
3105 Python interactive prompt with "pi" as alias, and add "py" as
3106 an alias to "python".
3107 * NEWS: Mention the new commands.
3108 * python/python.c (eval_python_command): New function.
3109 (python_interactive_command): For "python-interactive" with
3110 arguments, call eval_python_command. For "python-interactive"
3111 without arguments, call PyRun_InteractiveLoop.
3112 (_initialize_python): Add "python-interactive" command with
3113 "pi" as alias, and add "py" as an alias to "python".
3114
3115 2012-08-22 Tom Tromey <tromey@redhat.com>
3116
3117 * defs.h (quit_flag): Don't declare.
3118 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3119 (QUIT): Use new functions.
3120 * event-top.c (command_handler): Use clear_quit_flag.
3121 (handle_sigint): Use set_quit_flag.
3122 (async_request_quit): Use check_quit_flag. Don't check
3123 immediate_quit.
3124 * exceptions.c (throw_exception): Use clear_quit_flag.
3125 * main.c (captured_main): Use clear_quit_flag.
3126 * python/python.c (clear_quit_flag, set_quit_flag)
3127 (check_quit_flag): New functions.
3128 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3129 clear_quit_flag.
3130 * remote.c (remote_wait_as): Use check_quit_flag,
3131 clear_quit_flag.
3132 (remote_start_remote): Call QUIT.
3133 * symfile.c (load_progress): Use check_quit_flag.
3134 * top.c (command_loop): Use clear_quit_flag.
3135 (command_line_input): Call QUIT.
3136 * utils.c (quit_flag): Conditionally define.
3137 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3138 functions.
3139 (prompt_for_continue): Call QUIT. Use quit, not
3140 async_request_quit.
3141 * remote-mips.c (mips_expect_timeout): Call QUIT.
3142 * monitor.c (monitor_expect): Call QUIT.
3143
3144 2012-08-22 Tom Tromey <tromey@redhat.com>
3145
3146 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3147 (async_init_signals): Update.
3148 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3149 (SIGWINCH_HANDLER_BODY): Remove.
3150
3151 2012-08-22 Tom Tromey <tromey@redhat.com>
3152
3153 * jit.c (jit_object_close_impl): Don't malloc the objfile
3154 name.
3155 * objfiles.c (allocate_objfile): Don't malloc the objfile
3156 name.
3157 (free_objfile): Don't free the objfile name.
3158 * objfiles.h (struct objfile) <name>: Update comment.
3159 * symfile.c (reread_symbols): Fix reference counting. Don't
3160 malloc objfile name.
3161
3162 2012-08-22 Tom Tromey <tromey@redhat.com>
3163
3164 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3165 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3166 (symfile_bfd_open): Likewise.
3167 (generic_load): Likewise.
3168 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3169 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3170 gdb_bfd_open.
3171 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3172 Use gdb_bfd_open.
3173 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3174 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3175 (pmon_load_fast): Likewise.
3176 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3177 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3178 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3179 (macho_check_dsym): Likewise.
3180 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3181 (m32r_upload_command): Likewise.
3182 * gdb_bfd.h (gdb_bfd_cache): Declare.
3183 * gdb_bfd.c (struct gdb_bfd_data): New.
3184 (gdb_bfd_cache): New global.
3185 (struct gdb_bfd_cache_search): New.
3186 (hash_bfd): New function.
3187 (eq_bfd): Likewise.
3188 (gdb_bfd_open): Likewise.
3189 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3190 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3191 gdb_bfd_data.
3192 * exec.c (exec_file_attach): Use gdb_bfd_open.
3193 * dsrec.c (load_srec): Use gdb_bfd_open.
3194
3195 2012-08-22 Tom Tromey <tromey@redhat.com>
3196
3197 * dwarf2read.c (macro_start_file): Update.
3198 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3199 (free_objfile_per_bfd_storage): Destroy macro_cache.
3200 (allocate_objfile, free_objfile): Update.
3201 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3202 New field.
3203 (struct objfile) <macro_cache>: Remove.
3204 * symfile.c (reread_symbols): Update.
3205 * symmisc.c (print_symbol_bcache_statistics): Update.
3206 (print_objfile_statistics): Update.
3207
3208 2012-08-22 Tom Tromey <tromey@redhat.com>
3209
3210 * elfread.c (elf_symtab_read): Update.
3211 * objfiles.c (objfiles_bfd_data): New global.
3212 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3213 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3214 (allocate_objfile, free_objfile): Update.
3215 (_initialize_objfiles): Initialize objfiles_bfd_data.
3216 * objfiles.h (struct objfile_per_bfd_storage): New.
3217 (struct objfile) <per_bfd>: New field.
3218 <filename_cache>: Remove.
3219 (set_objfile_per_bfd): Declare.
3220 * symfile.c (reread_symbols): Update. Call
3221 set_objfile_per_bfd.
3222 (allocate_symtab): Update.
3223 * symmisc.c (print_symbol_bcache_statistics): Update.
3224 (print_objfile_statistics): Print the size of the BFD obstack.
3225
3226 2012-08-22 Tom Tromey <tromey@redhat.com>
3227
3228 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3229 * gdb_bfd.c: Use DEFINE_REGISTRY.
3230 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3231 (gdb_bfd_ref): Call bfd_alloc_data.
3232 (gdb_bfd_unref): Call bfd_free_data.
3233
3234 2012-08-22 Tom Tromey <tromey@redhat.com>
3235
3236 * registry.h (struct registry_fields): New.
3237 (REGISTRY_FIELDS): Redefine.
3238 (REGISTRY_ACCESS_FIELD): New macro.
3239 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3240 functions.
3241
3242 2012-08-22 Tom Tromey <tromey@redhat.com>
3243
3244 * auto-load.c (_initialize_auto_load): Update.
3245 * solib-svr4.c (_initialize_svr4_solib): Update
3246 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3247 * solib-darwin.c (_initialize_darwin_solib): Update.
3248 * registry.h: New file.
3249 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3250 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3251 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3252 (register_program_space_data_with_cleanup)
3253 (register_program_space_data, program_space_alloc_data)
3254 (clear_program_space_data, set_program_space_data)
3255 (program_space_data): Don't declare.
3256 * progspace.c: Use DEFINE_REGISTRY.
3257 (struct program_space_data, struct
3258 program_space_data_registration, struct
3259 program_space_data_registry, program_space_data_registry)
3260 (register_program_space_data_with_cleanup)
3261 (register_program_space_data, program_space_alloc_data)
3262 (program_space_free_data, clear_program_space_data)
3263 (set_program_space_data, program_space_data): Remove.
3264 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3265 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3266 (register_objfile_data_with_cleanup, register_objfile_data)
3267 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3268 declare.
3269 * objfiles.c: Use DEFINE_REGISTRY.
3270 (struct objfile_data, struct objfile_data_registration, struct
3271 objfile_data_registry, objfile_data_registry)
3272 (register_objfile_data_with_cleanup, register_objfile_data)
3273 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3274 (set_objfile_data, objfile_data): Remove.
3275 (_initialize_objfiles): Update.
3276 * jit.c (_initialize_jit): Update.
3277 * inflow.c (_initialize_inflow): Update.
3278 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3279 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3280 (register_inferior_data_with_cleanup, register_inferior_data)
3281 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3282 declare.
3283 * inferior.c: Use DEFINE_REGISTRY.
3284 (struct inferior_data, struct inferior_data_registration, struct
3285 inferior_data_registry, inferior_data_registry)
3286 (register_inferior_data_with_cleanup, register_inferior_data)
3287 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3288 (set_inferior_data, inferior_data): Remove.
3289 * auxv.c (_initialize_auxv): Update.
3290 * ada-lang.c (_initialize_ada_language): Update.
3291 * breakpoint.c (_initialize_breakpoint): Update.
3292 * i386-nat.c (i386_use_watchpoints): Update.
3293
3294 2012-08-22 Tom Tromey <tromey@redhat.com>
3295
3296 * exec.c (exec_close, exec_file_attach): Update.
3297 (add_to_section_table): Initialize 'key' field.
3298 (add_target_sections, remove_target_sections): Add 'key' argument.
3299 * exec.h (add_target_sections, remove_target_sections): Add
3300 'key' argument.
3301 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3302 (reload_shared_libraries_1): Update.
3303 * target.h (struct target_section) <key>: New field.
3304
3305 2012-08-22 Tom Tromey <tromey@redhat.com>
3306
3307 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3308
3309 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3310
3311 * symfile.c (allocate_symtab): Use host_address_to_string
3312 function instead of cast of pointer to long which is not
3313 compatible with x86_64-w64-mingw32 build.
3314
3315 2012-08-19 Andrew Pinski <apinski@cavium.com>
3316
3317 * mips-tdep.c (is_octeon): New function.
3318 (is_octeon_bbit_op): New function.
3319 (mips32_next_pc): Handle Octeon's bbit instructions.
3320 (mips32_instruction_has_delay_slot): Likewise.
3321
3322 2012-08-19 Andrew Pinski <apinski@cavium.com>
3323
3324 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3325 before the function.
3326
3327 2012-08-19 Andrew Pinski <apinski@cavium.com>
3328
3329 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3330
3331 2012-08-19 Keith Seitz <keiths@redhat.com>
3332
3333 PR c++/14365
3334 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3335 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3336
3337 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3338
3339 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3340 The typo broke "make TAGS".
3341
3342 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3343
3344 GDB 7.5 released.
3345
3346 2012-08-17 Keith Seitz <keiths@redhat.com>
3347
3348 PR c++/13356
3349 * gdbtypes.c (strict_type_checking): New variable.
3350 (show_strict_type_checking): New function.
3351 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3352 if strict type checking is disabled.
3353 (_initialize_gdbtypes): Add "check type" subcommand.
3354 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3355
3356 2012-08-17 Keith Seitz <keiths@redhat.com>
3357
3358 * language.h (type_mode): Remove.
3359 (type_check): Remove.
3360 (struct language_defn): Remove la_type_check.
3361 (STRICT_TYPE): Remove unused macro.
3362 (type_error): Remove.
3363 * language.c (set_type_range_case): Renamed to ...
3364 (set_range_case): ... this. Update all callers.
3365 Remove type_mode/type_check.
3366 (type_mode): Remove.
3367 (type_check): Remove.
3368 (show_type_command): Remove.
3369 (set_type_command): Remove.
3370 (language_info): Remove type checking output.
3371 (type_error): Remove unused function.
3372 (range_error): Update comment.
3373 (unknown_language_defn): Remove la_type_check.
3374 (auto_language_defn): Likewise.
3375 (local_language_defn): Likewise.
3376 (_initialize_language): Remove "check type" subcommand.
3377 * ada-lang.c (ada_language_defn): Remove la_type_check.
3378 * c-lang.c (c_language_defn): Likewise.
3379 (cplus_language_defn): Likewise.
3380 (asm_language_defn): Likewise.
3381 (minimal_language_defn): Likewise.
3382 * d-lang.c (d_language_defn): Likewise.
3383 * f-lang.c (f_language_defn): Likewise.
3384 * go-lang.c (go_language_defn): Likewise.
3385 * jv-lang.c (java_language_defn): Likewise.
3386 * m2-lang.c (m2_language_defn): Likewise.
3387 * objc-lang.c (objc_language_defn): Likewise.
3388 * opencl-lang.c (opencl_language_defn): Likewise.
3389 * p-lang.c (pascal_language_defn): Likewise.
3390
3391 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3392
3393 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3394
3395 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3396
3397 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3398 New function.
3399 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3400 using the regache. Use ia64_hpux_get_register_from_save_state_t
3401 to access the bsp and bspstore registers if not.
3402
3403 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3404
3405 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3406 * breakpoint.c (detach_breakpoints): Change pid parameter into
3407 a ptid. Adjust code accordingly.
3408 * infrun.c (handle_inferior_event): Delete variable child_pid.
3409 Update call to detach_breakpoints to pass the child ptid for
3410 fork events.
3411 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3412 assert that inferior_ptid's lwp is zero.
3413 (linux_handle_extended_wait): Update call to detach_breakpoints.
3414 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3415 detach_breakpoints.
3416
3417 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3418
3419 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3420 parent, only call detach_breakpoints if tts.tts_event ==
3421 TTEVT_VFORK.
3422
3423 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3424
3425 * dwarf2-frame.c (dwarf2_frame_cache): Use
3426 get_frame_address_in_block instead of get_frame_pc as
3427 the bound for executing the frame's FDE.
3428
3429 2012-08-16 Yao Qi <yao@codesourcery.com>
3430
3431 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3432 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3433 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3434 (c_type_print_varspec_suffix): Likewise.
3435 * eval.c (evaluate_subexp_standard): Likewise.
3436 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3437 (f_type_print_varspec_suffix): Likewise.
3438 * gdbtypes.c (is_scalar_type): Likewise.
3439 (recursive_dump_type): Likewise.
3440 * infcall.c (value_arg_coerce): Likewise.
3441 * m2-valprint.c (m2_val_print): Likewise.
3442 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3443 (pascal_type_print_varspec_suffix): Likewise.
3444 (pascal_type_print_base): Likewise.
3445 * p-valprint.c (pascal_val_print): Likewise.
3446 (pascal_val_print): Likewise.
3447 * valops.c (value_slice): Likewise.
3448 * valprint.c (scalar_type_p): Likewise.
3449 * valarith.c (value_bitstring_subscript): Remove.
3450 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3451 Remove comment on TYPE_CODE_BITSTRING.
3452
3453 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3454 TYPE_CODE_BITSTRING.
3455
3456 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3457 slot 0.
3458
3459 2012-08-16 Yao Qi <yao@codesourcery.com>
3460
3461 * tracepoint.c (trace_find_none_command): Remove.
3462 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3463
3464 2012-08-16 Yao Qi <yao@codesourcery.com>
3465
3466 * remote.c (handle_notification): Remove parameter 'length'.
3467 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3468
3469 2012-08-15 Keith Seitz <keiths@redhat.com>
3470
3471 * gdbtypes.c (opaque_type_resolution): Make static.
3472 Add missing comment.
3473 (overload_debug): Add missing comment.
3474 (show_opaque_type_resolution): Likewise.
3475 (show_overload_debug): Likewise.
3476 (print_bit_vector): Remove unnecessary forward declaration.
3477 (print_arg_types): Likewise.
3478 (dump_fn_fieldlists): Likewise.
3479 (print_cplus_stuff): Likewise.
3480
3481 2012-08-15 Tom Tromey <tromey@redhat.com>
3482
3483 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3484 (gdb_bfd_ref): Initialize new field.
3485 (gdb_bfd_unref): Unref the archive BFD.
3486 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3487 parent archive.
3488
3489 2012-08-15 Tom Tromey <tromey@redhat.com>
3490
3491 PR python/14387:
3492 * python/py-bpevent.c (create_breakpoint_event_object): Update
3493 comment.
3494 * python/py-event.c (evpy_add_attribute): Update comment.
3495 * python/py-exitedevent.c (create_exited_event_object): Fix
3496 reference counting and error handling.
3497 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3498 Fix reference counting.
3499 * python/py-signalevent.c (create_signal_event_object): Fix
3500 reference counting and error handling.
3501 * python/py-stopevent.c (emit_stop_event): Fix reference
3502 counting.
3503 * python/py-threadevent.c (get_event_thread): Return a
3504 borrowed reference.
3505 * python/py-type.c (convert_field): Fix reference counting.
3506
3507 2012-08-15 Tom Tromey <tromey@redhat.com>
3508
3509 * dwarf2read.c (dwarf_decode_macro_bytes)
3510 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3511 as hash key.
3512
3513 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3514
3515 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3516 stepi, nexti, finish, next, step, jump, and continue commands.
3517 * infrun.c (_initialize_infrun): Update help text for the handle
3518 command.
3519
3520 2012-08-14 Doug Evans <dje@google.com>
3521
3522 * gdbtypes.c (struct extra): Delete, unused.
3523
3524 * gdbtypes.c: Whitespace cleanup.
3525 (address_space_name_to_int): Remove "extern" from definition.
3526 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3527
3528 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3529 TYPE_POINTER_TYPE (type).
3530
3531 2012-08-14 Gary Benson <gbenson@redhat.com>
3532
3533 * solib-svr4.c (svr4_free_library_list): Use free_so.
3534
3535 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3536
3537 * .gitignore: Add go-exp.c.
3538
3539 2012-08-13 Doug Evans <dje@google.com>
3540
3541 * value.c (show_convenience): Tweak comment.
3542 (_initialize_values): Mention convenience functions in the help text
3543 for "show convenience".
3544
3545 2012-08-13 Yao Qi <yao@codesourcery.com>
3546
3547 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3548 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3549 TERNOP_SLICE_COUNT.
3550 * eval.c (evaluate_subexp_standard): Likewise.
3551 * expprint.c (print_subexp_standard): Likewise.
3552 (dump_subexp_body_standard): Likewise.
3553 * parse.c (operator_length_standard): Likewise.
3554
3555 2012-08-13 Yao Qi <yao@codesourcery.com>
3556
3557 * std-operator.def: Remove OP_BITSTRING.
3558 * breakpoint.c (watchpoint_exp_is_const): Update.
3559 * eval.c (evaluate_subexp_standard): Remove handling to
3560 OP_BITSTRING.
3561 * expprint.c (print_subexp_standard): Likewise.
3562 (dump_subexp_body_standard): Likewise.
3563 * parse.c (operator_length_standard): Likewise.
3564 * valops.c (value_bitstring): Remove.
3565 * value.h: Remove the declaration of 'value_bitstring'.
3566
3567 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3568
3569 * linespec.c (find_methods): Remove unused variables `i1' and
3570 `name_len'.
3571 (decode_line_full): Likewise for `arg_start'.
3572
3573 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3574
3575 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3576 (zlib_decompress_section): Likewise for `section_data'.
3577 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3578
3579 2012-08-10 Doug Evans <dje@google.com>
3580
3581 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3582 * NEWS: Document them.
3583 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3584 function/strfns.py.
3585 * python/py-type.c (typy_array_1): New function.
3586 (typy_array): Call it.
3587 (typy_vector): New function.
3588 (type_object_methods): Add "vector".
3589 * python/lib/gdb/function/__init__.py: New file.
3590 * python/lib/gdb/function/strfns.py: New file.
3591
3592 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3593
3594 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3595 for TYPE_FIELD_BITPOS.
3596 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3597
3598 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3599
3600 PR cli/10436:
3601 * common/vec.h (VEC_merge): Define.
3602 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3603 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3604 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3605 * completer.c: Include gdb_signals.h.
3606 (signal_completer): Define.
3607 * completer.h (signal_completer): Add prototype.
3608 * infcmd.c (_initialize_infcmd): Assign the command
3609 completer for "signal" to handle_completer.
3610 * infrun.c: Include completer.h.
3611 (handle_completer): Define.
3612 (_initialize_infrun): Declare a new local variable c. Store the
3613 result of add_com("handle") to it. Assign the command
3614 completer for "handle" to handle_completer.
3615
3616 2012-08-09 Yao Qi <yao@codesourcery.com>
3617
3618 * cli/cli-decode.c (set_cmd_prefix): New.
3619 (lookup_cmd_for_prefixlist): New.
3620 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3621 of each cmd_list_element in *prefixlist.
3622 (add_setshow_cmd_full): set_cmd_prefix.
3623 (add_alias_cmd): Likewise.
3624 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3625 Declare 'auto_boolean_enums'.
3626 * cli/cli-setshow.c: Include "observer.h".
3627 (notify_command_param_changed_p): New.
3628 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3629 Remove 'static'.
3630 (do_setshow_command): Split it to ...
3631 (do_set_command, do_show_command): ... them. New.
3632 (do_set_command): Call observer_notify_command_param_changed if
3633 notify_command_param_changed_p returns true.
3634 (cmd_show_list): Caller update.
3635 * auto-load.c (set_auto_load_cmd): Likewise.
3636 * remote.c (show_remote_cmd): Likewise.
3637 * cli/cli-setshow.h: Update declarations.
3638 * top.c (execute_command): Call do_set_command and do_show_command.
3639
3640 * NEWS: Mention new MI notification.
3641 * mi/mi-interp.c: Declare mi_command_param_changed.
3642 (mi_interpreter_init): Attach mi_command_param_changed to
3643 observer command_param_changed.
3644 (mi_command_param_changed): New.
3645 Remove mi_suppress_breakpoint_notifications.
3646 Define global variable mi_suppress_notification.
3647 (mi_breakpoint_created): Update.
3648 (mi_breakpoint_deleted): Likewise.
3649 (mi_breakpoint_modified): Likewise.
3650 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3651 'gdb-set' and set mi_suppress_notification.
3652 * mi/mi-main.h: (mi_suppress_notification): New struct.
3653
3654 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3655 Jan Kratochvil <jan.kratochvil@redhat.com>
3656
3657 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3658
3659 2012-08-09 Yao Qi <yao@codesourcery.com>
3660
3661 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3662 (skiplist): Move it to skip.c.
3663 (init_cmd_lists): Remove code setting enablebreaklist and
3664 skiplist to NULL.
3665 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3666 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3667 skiplist.
3668 * gdbcmd.h: Likewise.
3669 * skip.c (_initialize_step_skip): Move 'skiplist' from
3670 cli/cli-cmds.c.
3671
3672 2012-08-09 Yao Qi <yao@codesourcery.com>
3673
3674 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3675 * gnu-nat.c, symfile.c: Likewise.
3676
3677 2012-08-08 Aaron Gamble <agamble@google.com>
3678
3679 * utils.c (prompt_for_continue_wait_time): New static global.
3680 (make_command_stats_cleanup): Initialize it.
3681 (report_command_stats): Subtract time waiting for user.
3682 (prompt_for_continue): Track time waiting for user.
3683 (defaulted_query): Track time waiting for user.
3684
3685 2012-08-08 Doug Evans <dje@google.com>
3686
3687 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3688 UNOP_MEMVAL_TYPE.
3689 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3690 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3691 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3692 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3693 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3694 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3695 elt.
3696 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3697 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3698 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3699 (dump_prefix_expression): Handle OP_TYPE.
3700
3701 2012-08-08 Keith Seitz <keiths@redhat.com>
3702
3703 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3704 addr_start.
3705
3706 2012-08-08 Doug Evans <dje@google.com>
3707
3708 * linux-thread-db.c: #include "gdb_vecs.h".
3709 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3710 updated.
3711 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3712 (thread_db_load_search): Use a vector to iterate over path elements.
3713 Handle text appearing after "$pdir".
3714
3715 * gdb_string.h: Moved to ...
3716 * common/gdb_string.h: ... here.
3717 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3718 gdb_string.h and gdb_assert.h.
3719
3720 2012-08-08 Yao Qi <yao@codesourcery.com>
3721
3722 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3723 (tic6x_value_to_register): Likewise.
3724 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3725 and set_gdbarch_value_to_register.
3726
3727 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3728 Jean-Marc Saffroy <saffroy@gmail.com>
3729
3730 PR 11804
3731 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3732 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3733 * gcore.c (gcore_create_callback): New function comment. Add modified
3734 parameter. Only write modified regions. Set SEC_READONLY exactly
3735 according to MODIFIED.
3736 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3737 the passed modified value to FUNC.
3738 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3739 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3740 first. New variables modified and has_anonymous. Parse the lines of
3741 smaps file. Add the passed MODIFIED value to FUNC.
3742 * procfs.c (find_memory_regions_callback): Add the passed modified
3743 value.
3744
3745 2012-08-06 Tom Tromey <tromey@redhat.com>
3746
3747 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3748 (dwarf2_frame_cache): Use it.
3749 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3750 cache initialization constraint.
3751
3752 2012-08-06 Tom Tromey <tromey@redhat.com>
3753
3754 PR python/14386:
3755 * varobj.c (update_dynamic_varobj_children): Don't call
3756 PyIter_Check.
3757
3758 2012-08-06 Tom Tromey <tromey@redhat.com>
3759
3760 PR cli/14392:
3761 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3762
3763 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3764
3765 * NEWS: New entry for 'cd' default parameters.
3766 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3767
3768 2012-08-03 Tom Tromey <tromey@redhat.com>
3769
3770 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3771 return.
3772
3773 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3774
3775 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3776 to attempting lseek/write.
3777 (inf_child_fileio_pread): Likewise for pread.
3778
3779 2012-08-02 Yao Qi <yao@codesourcery.com>
3780
3781 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3782 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3783 add_setshow_zinteger_cmd.
3784 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3785 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3786 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3787 instead of add_setshow_zinteger_cmd.
3788 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3789 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3790 instead of add_setshow_zinteger_cmd.
3791 * frame.c (frame_debug): Add 'unsigned'.
3792 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3793 add_setshow_zinteger_cmd.
3794 * frame.h: Update the declaration of 'frame_debug'.
3795 * gdbtypes.c (overload_debug): Add 'unsigned'.
3796 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3797 add_setshow_zinteger_cmd.
3798 * inferior.h: Update declaration of 'debug_infrun'.
3799 * infrun.c (debug_infrun): Add 'unsigned'.
3800 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3801 add_setshow_zinteger_cmd.
3802 * jit.c (jit_debug): Add 'unsigned'.
3803 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3804 add_setshow_zinteger_cmd.
3805 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3806 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3807 instead of add_setshow_zinteger_cmd.
3808 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3809 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3810 add_setshow_zinteger_cmd.
3811 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3812 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3813 instead of add_setshow_zinteger_cmd.
3814 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3815 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3816 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3817 intead of add_setshow_zinteger_cmd.
3818 * mips-tdep.c (mips_debug): Add 'unsigned'.
3819 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3820 instead of add_setshow_zinteger_cmd.
3821 * monitor.c (monitor_debug): Add 'unsigned'.
3822 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3823 add_setshow_zinteger_cmd.
3824 * observer.c (observer_debug): Add 'unsigned'.
3825 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3826 add_setshow_zinteger_cmd.
3827 * parse.c (expressiondebug): Add 'unsigned'.
3828 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3829 add_setshow_zinteger_cmd.
3830 * record.c (record_debug): Add 'unsigned'.
3831 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3832 add_setshow_zinteger_cmd.
3833 * record.h: Update the declaration of 'record_debug'.
3834 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3835 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3836 add_setshow_zinteger_cmd.
3837 * serial.c (global_serial_debug_p): Add 'unsigned'.
3838 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3839 add_setshow_zinteger_cmd.
3840 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3841 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3842 add_setshow_zinteger_cmd.
3843 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3844 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3845 add_setshow_zinteger_cmd.
3846 * target.c (targetdebug): Add 'unsigned'.
3847 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3848 add_setshow_zinteger_cmd.
3849 * valops.c (overload_debug): Add 'unsigned'.
3850 * varobj.c (varobjdebug): Add 'unsigned'.
3851 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3852 add_setshow_zinteger_cmd.
3853 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3854 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3855 instead of add_setshow_zinteger_cmd.
3856
3857 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3858 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3859 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3860 instead of add_setshow_zinteger_cmd.
3861 * gdbarch.c, gdbarch.h: Re-generated.
3862
3863 2012-08-02 Yao Qi <yao@codesourcery.com>
3864
3865 * nto-tdep.c: Don't include cli/cli-decode.h and
3866 cli/cli-cmds.h.
3867 (_initialize_nto_tdep): Remove.
3868 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3869 Remove field.
3870 Remove macro nto_internal_debugging.
3871
3872 2012-08-01 Richard Henderson <rth@redhat.com>
3873
3874 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3875 (mep-*-*) [gdb_target_obs]: Likewise.
3876
3877 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3878
3879 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3880 linux_get_siginfo_type.
3881
3882 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3883
3884 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3885 AT_ENTRY_POINT.
3886 (call_function_by_hand) <ON_STACK>: Call write_memory with
3887 gdbarch_breakpoint_from_pc, if possible.
3888 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3889 here.
3890
3891 2012-07-31 Yao Qi <yao@codesourcery.com>
3892
3893 * tracepoint.c: Add 'static' for some variables.
3894
3895 2012-07-31 Yao Qi <yao@codesourcery.com>
3896
3897 * go32-nat.c: Declare _initialize_go32_nat.
3898 * ser-go32.c: Declare _initialize_ser_dos.
3899 * top.c (do_chdir_cleanup): Add 'static'.
3900
3901 2012-07-30 Keith Seitz <keiths@redhat.com>
3902
3903 * linespec.c (linespec_lex_number): A number followed
3904 by quotes is a valid number, too.
3905
3906 2012-07-30 Tom Tromey <tromey@redhat.com>
3907
3908 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3909
3910 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3911
3912 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3913 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3914
3915 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3916
3917 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3918 invalid or reevaluated to prevent prevent references to possibly
3919 delete'd type objects being left in the varobj.
3920
3921 2012-07-27 Tom Tromey <tromey@redhat.com>
3922 Jan Kratochvil <jan.kratochvil@redhat.com>
3923
3924 * copying.awk: Print buffer-read-only and vi ro markers.
3925 * copying.c: Rebuild.
3926 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3927 * gdbarch.c, gdbarch.h: Rebuild.
3928 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3929 buffer-read-only and vi ro markers.
3930 * features/arm-with-iwmmxt.c: Rebuild.
3931 * features/arm-with-m-fpa-layout.c: Rebuild.
3932 * features/arm-with-m-vfp-d16.c: Rebuild.
3933 * features/arm-with-m.c: Rebuild.
3934 * features/arm-with-neon.c: Rebuild.
3935 * features/arm-with-vfpv2.c: Rebuild.
3936 * features/arm-with-vfpv3.c: Rebuild.
3937 * features/i386/amd64-avx-linux.c: Rebuild.
3938 * features/i386/amd64-avx.c: Rebuild.
3939 * features/i386/amd64-linux.c: Rebuild.
3940 * features/i386/amd64.c: Rebuild.
3941 * features/i386/i386-avx-linux.c: Rebuild.
3942 * features/i386/i386-avx.c: Rebuild.
3943 * features/i386/i386-linux.c: Rebuild.
3944 * features/i386/i386-mmx-linux.c: Rebuild.
3945 * features/i386/i386-mmx.c: Rebuild.
3946 * features/i386/i386.c: Rebuild.
3947 * features/i386/x32-avx-linux.c: Rebuild.
3948 * features/i386/x32-avx.c: Rebuild.
3949 * features/i386/x32-linux.c: Rebuild.
3950 * features/i386/x32.c: Rebuild.
3951 * features/mips-dsp-linux.c: Rebuild.
3952 * features/mips-linux.c: Rebuild.
3953 * features/mips64-dsp-linux.c: Rebuild.
3954 * features/mips64-linux.c: Rebuild.
3955 * features/rs6000/powerpc-32.c: Rebuild.
3956 * features/rs6000/powerpc-32l.c: Rebuild.
3957 * features/rs6000/powerpc-403.c: Rebuild.
3958 * features/rs6000/powerpc-403gc.c: Rebuild.
3959 * features/rs6000/powerpc-405.c: Rebuild.
3960 * features/rs6000/powerpc-505.c: Rebuild.
3961 * features/rs6000/powerpc-601.c: Rebuild.
3962 * features/rs6000/powerpc-602.c: Rebuild.
3963 * features/rs6000/powerpc-603.c: Rebuild.
3964 * features/rs6000/powerpc-604.c: Rebuild.
3965 * features/rs6000/powerpc-64.c: Rebuild.
3966 * features/rs6000/powerpc-64l.c: Rebuild.
3967 * features/rs6000/powerpc-7400.c: Rebuild.
3968 * features/rs6000/powerpc-750.c: Rebuild.
3969 * features/rs6000/powerpc-860.c: Rebuild.
3970 * features/rs6000/powerpc-altivec32.c: Rebuild.
3971 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3972 * features/rs6000/powerpc-altivec64.c: Rebuild.
3973 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3974 * features/rs6000/powerpc-cell32l.c: Rebuild.
3975 * features/rs6000/powerpc-cell64l.c: Rebuild.
3976 * features/rs6000/powerpc-e500.c: Rebuild.
3977 * features/rs6000/powerpc-e500l.c: Rebuild.
3978 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3979 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3980 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3981 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3982 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3983 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3984 * features/rs6000/powerpc-vsx32.c: Rebuild.
3985 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3986 * features/rs6000/powerpc-vsx64.c: Rebuild.
3987 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3988 * features/rs6000/rs6000.c: Rebuild.
3989 * features/s390-linux32.c: Rebuild.
3990 * features/s390-linux32v1.c: Rebuild.
3991 * features/s390-linux32v2.c: Rebuild.
3992 * features/s390-linux64.c: Rebuild.
3993 * features/s390-linux64v1.c: Rebuild.
3994 * features/s390-linux64v2.c: Rebuild.
3995 * features/s390x-linux64.c: Rebuild.
3996 * features/s390x-linux64v1.c: Rebuild.
3997 * features/s390x-linux64v2.c: Rebuild.
3998 * features/tic6x-c62x-linux.c: Rebuild.
3999 * features/tic6x-c62x.c: Rebuild.
4000 * features/tic6x-c64x-linux.c: Rebuild.
4001 * features/tic6x-c64x.c: Rebuild.
4002 * features/tic6x-c64xp-linux.c: Rebuild.
4003 * features/tic6x-c64xp.c: Rebuild.
4004
4005 2012-07-27 Tom Tromey <tromey@redhat.com>
4006
4007 * c-exp.y (classify_name): Avoid assignment in condition.
4008
4009 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
4010
4011 * amd64-windows-tdep.c: Include "frame.h".
4012 (amd64_windows_skip_trampoline_code): New function.
4013 (amd64_windows_init_abi): Add trampoline registration.
4014
4015 2012-07-27 Yao Qi <yao@codesourcery.com>
4016
4017 * tracepoint.c (cur_traceframe_number): Remove.
4018 (set_tfile_traceframe): Remove.
4019 (tfile_trace_find, tfile_fetch_registers): Update callers.
4020 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4021 (tfile_open, tfile_trace_find): Likewise.
4022
4023 2012-07-27 Yao Qi <yao@codesourcery.com>
4024
4025 * thread.c (switch_to_thread): Don't call registers_changed.
4026
4027 2012-07-26 Tom Tromey <tromey@redhat.com>
4028
4029 * Makefile.in (SFILES): Remove objc-exp.y.
4030 (YYFILES): Remove objc-exp.c.
4031 (YYOBJ): Remove objc-exp.o.
4032 (local-maintainer-clean): Don't mention objc-exp.c.
4033 * c-exp.y: Include objc-lang.h.
4034 (%union) <class>: New field.
4035 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4036 (exp): Clone subscript production for OBJC_LBRAC. Add various
4037 Objective C productions.
4038 (msglist, msgarglist, msgarg): New productions.
4039 (array_mod, func_mod, operator): Clone productions for
4040 OBJC_LBRAC.
4041 (parse_string_or_char): Handle '@' strings.
4042 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
4043 (classify_name): Check la_name_of_this. Recognize ObjC class
4044 names.
4045 * objc-exp.y: Remove.
4046 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4047 * objc-lang.h (objc_parse, objc_error): Don't declare.
4048
4049 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
4050
4051 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4052
4053 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4054
4055 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4056 and decrement.
4057
4058 2012-07-26 Tom Tromey <tromey@redhat.com>
4059
4060 * copying.c: Rebuild.
4061 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
4062 'no_class'.
4063
4064 2012-07-26 Tom Tromey <tromey@redhat.com>
4065
4066 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4067 immediate_quit.
4068 (print_objfile_statistics): Likewise.
4069 (maintenance_print_symbols): Likewise.
4070 (maintenance_print_msymbols): Likewise.
4071 (maintenance_print_objfiles): Likewise.
4072 * psymtab.c (print_partial_symbols): Call QUIT.
4073 (maintenance_print_psymbols): Likewise. Don't modify
4074 immediate_quit.
4075 * copying.c (show_copying_command): Don't modify immediate_quit.
4076 (show_warranty_command): Likewise.
4077 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4078
4079 2012-07-26 Keith Seitz <keiths@redhat.com>
4080
4081 * linespec.c (linespec_lexer_lex_number): The input
4082 is also a valid number if the next character is a comma
4083 or colon.
4084
4085 2012-07-26 Joel Brobecker <brobecker@adacore.com>
4086
4087 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4088 configure options.
4089
4090 2012-07-26 Tristan Gingold <gingold@adacore.com>
4091
4092 * machoread.c: Include gdb_bfd.h.
4093
4094 2012-07-26 Tristan Gingold <gingold@adacore.com>
4095
4096 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4097 offset.
4098
4099 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
4100
4101 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4102 SIZE to size_t.
4103 (dwarf2_evaluate_loc_desc): Likewise.
4104 (dwarf2_loc_desc_needs_frame): Likewise.
4105 (locexpr_describe_location_1): Likewise.
4106 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4107 size_t.
4108 (struct dwarf2_loclist_baton): Likewise.
4109 * dwarf2read.c (struct dwarf_block): Likewise.
4110 (dump_die_shallow): Use pulongest to print dwarf_block.size.
4111 (decode_locdesc): Expand SIZE and I to size_t.
4112
4113 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4114
4115 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4116
4117 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4118
4119 * doublest.c (convert_doublest_to_floatformat): If the exponent
4120 is too small, treat the value as zero. If the exponent is too
4121 large, treat the value as infinity.
4122
4123 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4124
4125 * configure.ac: Add --enable-lmcheck configure option.
4126 * configure: Regenerate.
4127
4128 2012-07-25 Tom Tromey <tromey@redhat.com>
4129
4130 * NEWS: Mention maint info bfds.
4131 * gdb_bfd.c (all_bfds): New global.
4132 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4133 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4134 New functions.
4135
4136 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
4137
4138 * configure.tgt: Add v850*-*-rtems*.
4139
4140 2012-07-25 Tom Tromey <tromey@redhat.com>
4141
4142 * macrotab.c (macro_bcache_str): Remove cast.
4143
4144 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
4145
4146 * linespec.c (linespec_lexer_lex_number): Update comments,
4147 change the return and add check to make sure the input is
4148 the decimal numbers.
4149 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4150 false, call linespec_lexer_lex_string.
4151
4152 2012-07-24 Tom Tromey <tromey@redhat.com>
4153
4154 * symfile.c (symbol_file_add): Don't open BFD twice.
4155
4156 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
4157
4158 * breakpoint.c (create_breakpoint): Store condition for pending
4159 breakpoints.
4160
4161 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4162
4163 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4164 (m68k_return_value): Handle complex types like structures.
4165 (m68k_svr4_return_value): Likewise.
4166
4167 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4168
4169 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4170 parameters to bfd_get_section_name.
4171
4172 2012-07-24 Yao Qi <yao@codesourcery.com>
4173
4174 * cli/cli-setshow.c: Handle case 'var_uinteger'
4175 and 'var_zuninteger' together. Handle case 'var_integer' and
4176 'var_zinteger' together.
4177
4178 2012-07-23 Keith Seitz <keiths@redhat.com>
4179
4180 * linespec.c (convert_linespec_to_sal): Don't add
4181 any symbols to the result vector if symbol_to_sal
4182 returns zero.
4183
4184 2012-07-23 Keith Seitz <keiths@redhat.com>
4185
4186 * linespec.c (decode_objc): Record the function name
4187 in the linespec.
4188
4189 2012-07-23 Tom Tromey <tromey@redhat.com>
4190
4191 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4192 counting.
4193 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4194 (map_vmap): Acquire a reference to the BFD.
4195
4196 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4197
4198 * p-valprint.c (pascal_object_print_value): Replace potentially
4199 unsafe alloca with xmalloc/xfree.
4200 * valops.c (search_struct_method): Likewise.
4201
4202 2012-07-23 Tom Tromey <tromey@redhat.com>
4203
4204 * solib-svr4.c (enable_break): Update.
4205 * bfd-target.h (target_bfd_reopen): Update documentation.
4206
4207 2012-07-23 Tom Tromey <tromey@redhat.com>
4208
4209 * symfile.c (separate_debug_file_exists): Update.
4210 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4211 (reread_symbols): Update.
4212 * elfread.c (build_id_verify): Update.
4213 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4214 bfd_open_maybe_remote.
4215
4216 2012-07-23 Tom Tromey <tromey@redhat.com>
4217
4218 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4219
4220 2012-07-23 Tom Tromey <tromey@redhat.com>
4221
4222 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4223 and 'abfd'.
4224 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4225 and 'abfd'.
4226 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4227 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4228 'abfd'.
4229 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4230 * objfiles.c (allocate_objfile): Acquire a new reference.
4231 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4232 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4233 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4234 a cleanup for 'nbfd'.
4235 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4236 for 'nbfd'.
4237 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4238 make a cleanup for 'abfd'.
4239 (symbol_file_add): Make a BFD cleanup.
4240
4241 2012-07-23 Tom Tromey <tromey@redhat.com>
4242
4243 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4244 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4245 * corelow.c (core_open): Use gdb_bfd_fopen.
4246 * dsrec.c (load_srec): Use gdb_bfd_openr.
4247 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4248 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4249 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4250 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4251 (gdb_bfd_fdopenr): New functions.
4252 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4253 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4254 (gdb_bfd_fdopenr): Declare.
4255 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4256 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4257 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4258 gdb_bfd_openr_next_archived_file.
4259 (macho_check_dsym): Use gdb_bfd_openr.
4260 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4261 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4262 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4263 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4264 gdb_bfd_openr.
4265 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4266 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4267 gdb_bfd_openr_next_archived_file.
4268 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4269 Use gdb_bfd_openr.
4270 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4271 gdb_bfd_openr.
4272 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4273 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4274 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4275 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4276 (symfile_bfd_open): Use gdb_bfd_fopen.
4277 (generic_load): Use gdb_bfd_openr.
4278 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4279
4280 2012-07-23 Tom Tromey <tromey@redhat.com>
4281
4282 * bfd-target.c (target_bfd_reopen): Update.
4283 * cli/cli-dump.c (bfd_openr_with_cleanup)
4284 (bfd_openw_with_cleanup): Update.
4285 * corelow.c (core_open): Update.
4286 * dsrec.c (load_srec): Update.
4287 * exec.c (exec_file_attach): Update.
4288 * gcore.c (create_gcore_bfd): Update.
4289 * gdb_bfd.c (gdb_bfd_ref): Return void.
4290 (gdb_bfd_open): Update.
4291 * gdb_bfd.h (gdb_bfd_ref): Return void.
4292 Update comments.
4293 * jit.c (jit_bfd_try_read_symtab): Update.
4294 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4295 * machoread.c (macho_symfile_read_all_oso): Update.
4296 (macho_check_dsym): Update.
4297 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4298 * remote-m32r-sdi.c (m32r_load): Update.
4299 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4300 * rs6000-nat.c (add_vmap): Update.
4301 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4302 Update.
4303 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4304 * solib-spu.c (spu_bfd_open): Update.
4305 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4306 * spu-linux-nat.c (spu_bfd_open): Update.
4307 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4308 (generic_load): Update.
4309 * windows-nat.c (windows_make_so): Update.
4310
4311 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4312
4313 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4314
4315 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4316
4317 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4318 SIGTRAMP_FRAME unwinding.
4319
4320 2012-07-20 Doug Evans <dje@google.com>
4321
4322 * NEWS: Document new options "set/show use-deprecated-index-sections",
4323 and delete reference to --use-deprecated-index-sections.
4324 * symfile.h (use_deprecated_index_sections): Delete.
4325 * dwarf2read.c (use_deprecated_index_sections): Make static.
4326 (read_index_from_section): Update wording of how to load
4327 deprecated index sections.
4328 (_initialize_dwarf2_read): New options
4329 "set/show use-deprecated-index-sections".
4330 * main.c (captured_main): Delete --use-deprecated-index-sections.
4331
4332 2012-07-20 Pedro Alves <palves@redhat.com>
4333
4334 PR threads/11692
4335 PR gdb/12203
4336
4337 * infrun.c (handle_inferior_event) <new thread>: Don't special
4338 case minus_one_ptid.
4339 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4340 * linux-thread-db.c (thread_get_info_callback): Don't return early
4341 if the thread is zombie.
4342 (thread_from_lwp): Change return type to void. Rewrite stale
4343 comment.
4344 (attach_thread): Don't return early if the thread is zombie,
4345 instead set its "dying" flag.
4346 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4347 (find_new_threads_callback): Don't return early if the thread is
4348 zombie.
4349
4350 2012-07-20 Pedro Alves <palves@redhat.com>
4351
4352 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4353 * target.c (target_wait): Likewise.
4354 (str_comma_list_concat_elem, do_option, target_options_to_string):
4355 New functions.
4356 * target.h (target_options_to_string): Declare.
4357
4358 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4359 Tom Tromey <tromey@redhat.com>
4360
4361 * dwarf2read.c (dwarf_decode_macros)
4362 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4363 DW_MACRO_GNU_transparent_include_alt>: New cases.
4364 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4365 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4366
4367 2012-07-20 Tom Tromey <tromey@redhat.com>
4368
4369 * dwarf2read.c (try_open_dwo_file): Don't call
4370 gdb_bfd_stash_filename.
4371
4372 2012-07-20 Pedro Alves <palves@redhat.com>
4373
4374 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4375 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4376 (i386_process_record): Tweak description comments.
4377
4378 2012-07-20 Pedro Alves <palves@redhat.com>
4379
4380 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4381 (i386_process_record): Use record_read_memory.
4382 * record.c (record_read_memory): New function.
4383 (record_arch_list_add_mem, record_exec_insn): Use
4384 record_read_memory.
4385 * record.h (record_read_memory): Declare.
4386
4387 2012-07-20 Yao Qi <yao@codesourcery.com>
4388
4389 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4390 NULL for xfree.
4391
4392 2012-07-19 Pedro Alves <palves@redhat.com>
4393
4394 * record.c (record_resume): Ask the target beneath to report all
4395 signals.
4396
4397 2012-07-19 Doug Evans <dje@google.com>
4398
4399 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4400 there's no section at address zero.
4401 (dwarf2_record_block_ranges): Ditto.
4402
4403 2012-07-19 Yao Qi <yao@codesourcery.com>
4404
4405 * command.h, remote.c: Fix a typo in comment.
4406
4407 2012-07-19 Tom Tromey <tromey@redhat.com>
4408
4409 PR exp/13206:
4410 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4411 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4412 OP_DECLTYPE>: New cases.
4413 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4414 (type_exp): Add new productions.
4415 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4416 and decltype.
4417 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4418 New case.
4419 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4420 OP_DECLTYPE>: New case.
4421 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4422 New case.
4423 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4424 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4425
4426 2012-07-19 Tom Tromey <tromey@redhat.com>
4427
4428 * c-exp.y (enum token_flags): New.
4429 (struct token) <cxx_only>: Remove.
4430 <flags>: New field.
4431 (tokentab3, tokentab2, ident_tokens): Update.
4432 (lex_one_token): Update. Handle FLAG_SHADOW.
4433
4434 2012-07-19 Tom Tromey <tromey@redhat.com>
4435
4436 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4437 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4438 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4439 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4440 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4441 type_exp production where appropriate.
4442 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4443 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4444 <UNOP_MEMVAL_TYPE>: New case.
4445 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4446 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4447 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4448 <UNOP_MEMVAL_TYPE>: New case.
4449 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4450 UNOP_REINTERPRET_CAST>: Update.
4451 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4452 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4453 UNOP_REINTERPRET_CAST>: Update.
4454 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4455 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4456 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4457 constants.
4458
4459 2012-07-19 Yao Qi <yao@codesourcery.com>
4460 Jan Kratochvil <jan.kratochvil@redhat.com>
4461
4462 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4463 and case 'var_optional_filename' together.
4464 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4465 instead of add_setshow_optional_filename_cmd for setshow command
4466 'args'. Set completer for 'set args'.
4467
4468 2012-07-18 Doug Evans <dje@google.com>
4469
4470 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4471 * common/gdb_vecs.c: New file, contents from utils.c.
4472 * common/host-defs.h: New file, contents from defs.h.
4473 * utils.h: New file, contents from defs.h.
4474 * defs.h: Move all declarations of objects defined in utils.c
4475 to utils.h (except QUIT() and related).
4476 #include "utils.h", "host-defs.h".
4477 * probe.h (probe_p): Move here from gdb_vecs.h.
4478 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4479 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4480 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4481 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4482 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4483 (COMMON_OBS): Add gdb_vecs.o.
4484 (gdb_vecs.o): New rule.
4485
4486 2012-07-18 Keith Seitz <keiths@redhat.com>
4487
4488 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4489 parameter. If non-zero, use SYMNAME as the canonical name
4490 for the SaL.
4491 Update all callers.
4492 (convert_linespec_to_sals): Use add_sal_to_sals for
4493 expressions, too.
4494 (decode_line_full): No need to "fill in missing canonical names"
4495 anymore. Simply make cleanups for the allocated names.
4496
4497 2012-07-18 Keith Seitz <keiths@redhat.com>
4498
4499 * linespec.c (struct linespec): Constify expression,
4500 source_filename, function_name, and label_name.
4501 (symbol_not_found_error): Make all parameters const.
4502 (linespec_parser_delete): No need to check for NULL
4503 when using xfree. Cast const char * to char * for xfree.
4504
4505 2012-07-18 Keith Seitz <keiths@redhat.com>
4506
4507 * breakpoint.c (invalid_thread_id_error): New function.
4508 (find_condition_and_thread): Use invalid_thread_id_error.
4509 (watch_command_1): Likewise.
4510
4511 2012-07-18 Tom Tromey <tromey@redhat.com>
4512
4513 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4514 * contrib/cc-with-tweaks.sh: New file.
4515
4516 2012-07-18 Tom Tromey <tromey@redhat.com>
4517
4518 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4519 (locate_dwz_sections): Recognize .gdb_index.
4520 (create_cus_from_index_list): New function.
4521 (create_cus_from_index): Use it. Handle .dwz data.
4522 (read_index_from_section): New function, extracted from
4523 dwarf2_read_index.
4524 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4525 if needed.
4526
4527 2012-07-18 Tom Tromey <tromey@redhat.com>
4528
4529 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4530 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4531 <is_dwz>: New field.
4532 (struct dwz_file): New.
4533 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4534 (locate_dwz_sections, dwarf2_get_dwz_file)
4535 (get_abbrev_section_for_cu): New functions.
4536 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4537 (read_and_check_type_unit_head): Add abbrev_section argument.
4538 (create_debug_types_hash_table): Update.
4539 (init_cutu_and_read_dies): Use proper abbrev section.
4540 (init_cutu_and_read_dies_no_follow): Likewise.
4541 (set_partial_user): Do nothing if PST==NULL.
4542 (read_comp_units_from_section): New function.
4543 (create_all_comp_units): Use it.
4544 (scan_partial_symbols, partial_die_parent_scope): Update.
4545 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4546 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4547 (find_partial_die): Add offset_in_dwz argument. Update.
4548 (guess_partial_die_structure_name, fixup_partial_die): Update.
4549 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4550 DW_FORM_GNU_strp_alt.
4551 (read_indirect_string_from_dwz): New function.
4552 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4553 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4554 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4555 (follow_die_offset): Add offset_in_dwz argument.
4556 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4557 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4558 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4559 Handle new macro forms.
4560 (dwarf_decode_macros): Update.
4561 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4562 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4563 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4564 (create_debug_types_hash_table): Use correct abbrev section.
4565 (get_debug_line_section): New function.
4566 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4567 (process_full_comp_unit): Pass 'required' argument to
4568 end_symtab_get_static_block.
4569 * buildsym.h (end_symtab_get_static_block): Update.
4570 * buildsym.c (end_symtab_get_static_block): Add 'required'
4571 argument.
4572 (end_symtab, end_expandable_symtab): Update.
4573
4574 2012-07-18 Tom Tromey <tromey@redhat.com>
4575
4576 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4577 (pagesize): Remove.
4578 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4579 (zlib_decompress_section): Remove.
4580 (dwarf2_read_section): Use gdb_bfd_map_section.
4581 (munmap_section_buffer): Remove.
4582 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4583 munmap_section_buffer.
4584 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4585 (struct gdb_bfd_section_data): New.
4586 (free_one_bfd_section): New function.
4587 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4588 (get_section_descriptor, zlib_decompress_section)
4589 (gdb_bfd_map_section): New functions.
4590 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4591
4592 2012-07-18 Tom Tromey <tromey@redhat.com>
4593
4594 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4595
4596 2012-07-18 Tom Tromey <tromey@redhat.com>
4597
4598 * gdb_bfd.c (struct gdb_bfd_data): New.
4599 (gdb_bfd_cache): New global.
4600 (struct gdb_bfd_cache_search): New.
4601 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4602 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4603 * gdb_bfd.h (gdb_bfd_open): Declare.
4604
4605 2012-07-18 Tom Tromey <tromey@redhat.com>
4606
4607 * utils.c (make_cleanup_bfd_unref): Rename from
4608 make_cleanup_bfd_close.
4609 * defs.h (make_cleanup_bfd_unref): Rename from
4610 make_cleanup_bfd_close.
4611 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4612 (bfd_openw_with_cleanup): Update.
4613 * corelow.c (core_open): Update.
4614 * dsrec.c (load_srec): Update.
4615 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4616 * remote-m32r-sdi.c (m32r_load): Update.
4617 * remote-mips.c (mips_load_srec): Update.
4618 (pmon_load_fast): Update.
4619 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4620 Update.
4621 (darwin_bfd_open): Update.
4622 * solib.c (solib_bfd_fopen): Update.
4623 * symfile-mem.c (symbol_file_add_from_memory): Update.
4624 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4625 (symfile_bfd_open): Update.
4626 (generic_load): Update.
4627
4628 2012-07-18 Tom Tromey <tromey@redhat.com>
4629
4630 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4631 (pmon_load_fast): Likewise.
4632 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4633 (m32r_upload_command): Likewise.
4634 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4635 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4636 Use make_cleanup_bfd_close.
4637
4638 2012-07-18 Tom Tromey <tromey@redhat.com>
4639
4640 * symfile.c (symfile_bfd_open): Don't copy name. Call
4641 gdb_bfd_stash_filename.
4642 (load_command): Open the new BFD before freeing the old.
4643 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4644 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4645 Call gdb_bfd_stash_filename.
4646 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4647 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4648 gdb_bfd_stash_filename.
4649 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4650 Free found_pathname.
4651 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4652 gdb_bfd_stash_filename.
4653 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4654 * machoread.c (macho_add_oso_symfile): Call
4655 gdb_bfd_stash_filename.
4656 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4657 gdb_bfd_stash_filename.
4658 (macho_check_dsym): Don't copy filename. Call
4659 gdb_bfd_stash_filename.
4660 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4661 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4662 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4663 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4664 * exec.c (exec_close): Don't free the BFD's filename.
4665 (exec_file_attach): Don't copy the filename. Call
4666 gdb_bfd_stash_filename.
4667 * corelow.c (core_close): Don't free the BFD's filename.
4668 (core_open): Call gdb_bfd_stash_filename.
4669 * corefile.c (reopen_exec_file): Remove #if 0 code.
4670 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4671 pathname.
4672 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4673
4674 2012-07-18 Tom Tromey <tromey@redhat.com>
4675
4676 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4677 gdb_bfd_unref.
4678 (free_dwo_file): Use gdb_bfd_unref.
4679 * cli/cli-dump.c: Include gdb_bfd.h.
4680 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4681 (bfd_openr_with_cleanup): Likewise.
4682 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4683 gdb_bfd_unref.
4684 * utils.c: Include gdb_bfd.h.
4685 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4686 * symfile.c: Include gdb_bfd.h.
4687 (separate_debug_file_exists): Use gdb_bfd_unref.
4688 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4689 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4690 (generic_load): Use gdb_bfd_ref.
4691 (reread_symbols): Use gdb_bfd_unref.
4692 * symfile-mem.c: Include gdb_bfd.h.
4693 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4694 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4695 * solib.c: Include gdb_bfd.h.
4696 (solib_bfd_fopen): Use gdb_bfd_ref.
4697 (solib_bfd_open): Use gdb_bfd_unref.
4698 (free_so_symbols): Use gdb_bfd_unref.
4699 (reload_shared_libraries_1): Use gdb_bfd_unref.
4700 * solib-spu.c: Include gdb_bfd.h.
4701 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4702 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4703 gdb_bfd_unref.
4704 * solib-frv.c: Include gdb_bfd.h.
4705 (enable_break2): Use gdb_bfd_unref.
4706 * solib-dsbt.c: Include gdb_bfd.h.
4707 (enable_break2): Use gdb_bfd_unref.
4708 * solib-darwin.c: Include gdb_bfd.h.
4709 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4710 gdb_bfd_unref.
4711 (darwin_bfd_open): Use gdb_bfd_unref.
4712 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4713 * remote-mips.c: Include gdb_bfd.h.
4714 (mips_load_srec): Use gdb_bfd_ref.
4715 (pmon_load_fast): Use gdb_bfd_ref.
4716 * remote-m32r-sdi.c: Include gdb_bfd.h.
4717 (m32r_load): Use gdb_bfd_ref.
4718 * record.c: Include gdb_bfd.h.
4719 (record_save_cleanups): Use gdb_bfd_unref.
4720 (cmd_record_save): Use gdb_bfd_unref.
4721 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4722 gdb_bfd_unref.
4723 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4724 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4725 * objfiles.c: Include gdb_bfd.h.
4726 (free_objfile): Use gdb_bfd_unref.
4727 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4728 gdb_bfd.c.
4729 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4730 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4731 (macho_check_dsym): Likewise.
4732 * m32r-rom.c: Include gdb_bfd.h.
4733 (m32r_load): Use gdb_bfd_ref.
4734 (m32r_upload_command): Use gdb_bfd_ref.
4735 * jit.c: Include gdb_bfd.h.
4736 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4737 * gdb_bfd.h: New file.
4738 * gdb_bfd.c: New file.
4739 * gcore.c: Include gdb_bfd.h.
4740 (create_gcore_bfd): Use gdb_bfd_ref.
4741 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4742 (gcore_command): Use gdb_bfd_unref.
4743 * exec.c: Include gdb_bfd.h.
4744 (exec_close): Use gdb_bfd_unref.
4745 (exec_close_1): Use gdb_bfd_unref.
4746 (exec_file_attach): Use gdb_bfd_ref.
4747 * elfread.c: Include gdb_bfd.h.
4748 (build_id_verify): Use gdb_bfd_unref.
4749 * dsrec.c: Include gdb_bfd.h.
4750 (load_srec): Use gdb_bfd_ref.
4751 * corelow.c: Include gdb_bfd.h.
4752 (core_close): Use gdb_bfd_unref.
4753 (core_open): Use gdb_bfd_ref.
4754 * bfd-target.c: Include gdb_bfd.h.
4755 (target_bfd_xclose): Use gdb_bfd_unref.
4756 (target_bfd_reopen): Use gdb_bfd_ref.
4757 * Makefile.in (SFILES): Add gdb_bfd.c.
4758 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4759 (COMMON_OBS): Add gdb_bfd.o.
4760
4761 2012-07-18 Keith Seitz <keiths@redhat.com>
4762
4763 * breakpoint.c (find_condition_and_thread): Initialize
4764 TASK and REST.
4765 (create_breakpiont): find_condition_and_thread will now
4766 initialize COND_STRING, THREAD, and REST (and TASK).
4767 (addr_string_to_sals): Likewise.
4768
4769 2012-07-18 Pedro Alves <palves@redhat.com>
4770
4771 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4772 Pull the single step breakpoints out of the target.
4773
4774 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4775
4776 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4777 * stap-probe.c (compile_probe_arg): Likewise.
4778
4779 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4780
4781 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4782 (elf_compile_to_ax): Likewise.
4783 * infrun.c (insert_exception_resume_from_probe): Likewise.
4784 (check_exception_resume): Remove `objfile' variable.
4785 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4786 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4787 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4788 (compare_entries): Rename to...
4789 (compare_probes): ...this. Adjust function to work with
4790 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4791 respectively.
4792 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4793 `VEC (probe_p) *'.
4794 (print_ui_out_info): Adjust argument to be `struct probe *'.
4795 (info_probes_for_ops): Adjust internal computations to use
4796 `VEC (probe_p) *'.
4797 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4798 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4799 gen_info_probes_table_values>: Remove `objfile' argument.
4800 (struct probe) <objfile>: New field.
4801 (find_probe_by_pc): Remove `objfile' argument.
4802 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4803 (stap_get_probe_argument_count): Likewise.
4804 (stap_get_arg): Likewise.
4805 (stap_evaluate_probe_argument): Likewise.
4806 (stap_compile_to_ax): Likewise.
4807 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4808 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4809 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4810 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4811 sym_compile_to_ax>: Likewise.
4812
4813 2012-07-18 Terry Guo <terry.guo@arm.com>
4814
4815 PR 14329
4816 * defs.h (GDB_MI_MSG_WIDTH): New.
4817 * ser_base (ser_base_read_error_fd): New function.
4818 (do_ser_base_readchar): Poll error file descriptor as well as
4819 standard output.
4820 (generic_readchar): Refactor error handling.
4821
4822 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4823
4824 * NEWS: Create a new section for the next release branch.
4825 Rename the section of the current branch, now that it has
4826 been cut.
4827
4828 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4829
4830 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4831 * version.in: Bump version to 7.5.50.20120718-cvs.
4832
4833 2012-07-17 Keith Seitz <keiths@redhat.com>
4834
4835 * linespec.c (linespec_parse_line_offset): Make parameter
4836 const.
4837
4838 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4839
4840 PR 11914
4841 * f-valprint.c (info_common_command): New variable frame_id.
4842 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4843 * printcmd.c (print_variable_and_value): Extend function comment.
4844 Add comment for invalidated FRAME.
4845 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4846 FI form FRAME_ID after each print_frame_local_vars.
4847 (struct print_variable_and_value_data): Change frame to frame_id.
4848 (do_print_variable_and_value): New variable frame, initialize it from
4849 p->frame_id. Add comment for invalidated FRAME.
4850 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4851 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4852 for invalidated FRAME.
4853
4854 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4855 Pedro Alves <palves@redhat.com>
4856
4857 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4858 loop.
4859
4860 2012-07-16 Tom Tromey <tromey@redhat.com>
4861
4862 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4863
4864 2012-07-15 Doug Evans <dje@google.com>
4865
4866 * dwarf2read.c (stmt_list_hash): New struct.
4867 (type_unit_group): Embed "per_cu" member, remove pointer.
4868 New union member "t", move member "tus" into it, all uses updated.
4869 New member "hash", replaces member "line_offset, all uses updated.
4870 (quick_file_names): Replace member "offset" with "hash", all uses
4871 updated.
4872 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4873 (hash_file_name_entry, eq_file_name_entry): Call them.
4874 (hash_type_unit_group, eq_type_unit_group): Ditto.
4875 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4876 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4877 (dw2_get_file_names): Update.
4878 (create_type_unit_group): Replace "per_cu" arg with "cu".
4879 All callers updated. Fix "quick" (.gdb_index) handling.
4880 (get_type_unit_group): Replace "per_cu" arg with "cu".
4881 All callers updated.
4882 (build_type_unit_groups): Don't reset tu_stats.
4883
4884 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4885 "tab_cur_size". Change member "tab" to be a htab_t.
4886 (create_filename_seen_cache): Update.
4887 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4888 (filename_seen): Update.
4889
4890 2012-07-13 Doug Evans <dje@google.com>
4891
4892 * symtab.c (filename_seen): Update comment.
4893
4894 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4895 Doug Evans <dje@google.com>
4896
4897 * buildsym.c (end_symtab_1): Split it to ...
4898 (end_symtab_get_static_block): ... this ...
4899 (end_symtab_from_static_block): ... and this function.
4900 (end_symtab, end_expandable_symtab): Call them.
4901 * buildsym.h (end_symtab_get_static_block)
4902 (end_symtab_from_static_block): New declarations.
4903 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4904 Set its valid CU ranges.
4905
4906 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4909 DW_OP_GNU_parameter_ref.
4910
4911 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4912
4913 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4914 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4915
4916 2012-07-13 Doug Evans <dje@google.com>
4917
4918 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4919 (filename_seen_cache): New struct.
4920 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4921 (create_filename_seen_cache): New function.
4922 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4923 (filename_seen): Delete arg "first". New arg "cache". All callers
4924 updated.
4925 (output_source_filename_data): New struct.
4926 (output_source_filename): Delete arg "first". New arg "data".
4927 All callers updated.
4928 (sources_info): Delete local "first". New locals "data", "cleanups".
4929 Rewrite to use filename_seen_cache.
4930 (add_partial_filename_data): Delete member "first". New member
4931 "filename_seen_cache". All uses updated.
4932 (make_source_files_completion_list): Rewrite to use
4933 filename_seen_cache.
4934
4935 2012-07-12 Doug Evans <dje@google.com>
4936
4937 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4938
4939 2012-07-10 Doug Evans <dje@google.com>
4940
4941 PR gdb/13498
4942 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4943 all_type_unit_groups, type_unit_groups, tu_stats.
4944 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4945 All uses updated. Add type_unit_group to union "s".
4946 (type_unit_group): New struct.
4947 (IS_TYPE_UNIT_GROUP): New macro.
4948 (abbrev_table): Delete unused member "section".
4949 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4950 (dw2_get_cu): Assert not used with type_unit_group.
4951 (dw2_get_primary_cu): New function.
4952 (dw2_build_type_unit_groups_reader): New function.
4953 (dw2_build_type_unit_groups): New function.
4954 (dw2_get_file_names): Assert not called on type units.
4955 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4956 Redo loop to iterate over type unit groups instead of type units.
4957 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4958 (read_abbrev_offset): New function.
4959 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4960 updated.
4961 (create_partial_symtab): New function.
4962 (process_psymtab_comp_unit_reader): Assert not used with type units.
4963 Call create_partial_symtab.
4964 (process_psymtab_type_unit): Delete.
4965 (hash_type_unit_group, eq_type_unit_group): New functions.
4966 (allocate_type_unit_groups_table): New function.
4967 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4968 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4969 (create_type_unit_group, get_type_unit_group): New functions.
4970 (tu_abbrev_offset): New struct.
4971 (sort_tu_by_abbrev_offset): New function.
4972 (add_type_unit_group_to_table): New function.
4973 (build_type_unit_groups): New function.
4974 (build_type_psymtabs_reader): New function.
4975 (build_type_psymtab_dependencies): New function.
4976 (build_type_psymtabs): Rewrite.
4977 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4978 is seen in a type unit.
4979 (process_queue): Move symtab expansion debugging printfs here.
4980 Call process_full_type_unit for type units.
4981 (compute_symtab_includes): Assert not called for type units.
4982 (process_cu_includes): Don't call compute_symtab_includes for
4983 type units.
4984 (process_full_type_unit): New function.
4985 (process_imported_unit_die): Flag an error if called for type units.
4986 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4987 updated. Assert not called for type units.
4988 (read_file_scope): Call dwarf2_start_symtab.
4989 (setup_type_unit_groups): New function.
4990 (read_type_unit_scope): Rewrite.
4991 (abbrev_table_read_table): Initialize abbrev_table->offset.
4992 (abbrev_table_free_cleanup): New function.
4993 (dwarf2_start_symtab): New function.
4994 (load_full_type_unit): Assert not called for type unit groups.
4995 * buildsym.c (finish_block_internal): New arg "expandable".
4996 All callers updated.
4997 (start_symtab): Move most contents to ...
4998 (restart_symtab): ... here. New function.
4999 (reset_symtab_globals): New function.
5000 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
5001 Call reset_symtab_globals.
5002 (end_symtab, end_expandable_symtab): New functions.
5003 (set_missing_symtab, augment_type_symtab): New functions.
5004 * buildsym.h (end_expandable_symtab): Declare.
5005 (augment_type_symtab, restart_symtab): Declare.
5006 * psympriv.h (struct partial_symtab): New member "anonymous".
5007 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
5008 anonymous psymtabs.
5009 (read_psymtabs_with_filename): Ditto.
5010 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5011 (expand_symtabs_matching_via_partial): Ditto.
5012 (dump_psymtab): Update.
5013 * dictionary.c (dict_add_pending): New function.
5014 * dictionary.h (dict_add_pending): Declare.
5015
5016 2012-07-09 Doug Evans <dje@google.com>
5017
5018 * buildsym.c (start_subfile): Remove unnecessary check for
5019 name == NULL.
5020
5021 * psymtab.c (allocate_psymtab): Use host_address_to_string.
5022
5023 * dwarf2read.c (load_full_type_unit): Simplify.
5024
5025 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5026 to struct signatured_type **. All uses updated.
5027
5028 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5029 All callers updated.
5030
5031 2012-07-09 Tom Tromey <tromey@redhat.com>
5032
5033 * c-exp.y (check_parameter_typelist): New function.
5034 (parameter_typelist): Call it.
5035 * eval.c (make_params): Handle '(void)' case.
5036 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5037 '(void)' case.
5038
5039 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5040
5041 * common/linux-ptrace.c: Include gdb_assert.h.
5042 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5043 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5044 stdint.h.
5045 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5046 functions.
5047 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5048 * linux-nat.c (linux_child_post_attach)
5049 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5050
5051 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5052
5053 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5054 nptl <2.7 bug workaround for core files.
5055
5056 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5057
5058 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5059 clearing.
5060 (save_siginfo): Remove.
5061 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5062 call.
5063 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5064 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5065 * linux-nat.h (struct lwp_info): Remove field siginfo.
5066
5067 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5068
5069 Code cleanup for the next patch.
5070 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5071 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5072 call for it.
5073 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5074 (ia64_linux_stopped_data_address):
5075 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5076 the return value.
5077 * linux-nat.h (linux_nat_get_siginfo): Likewise.
5078 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5079 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5080 call for it.
5081
5082 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5083
5084 PR 14321
5085 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5086 Increase buffer sizes to 2x we need, not just 2x of the previous size.
5087
5088 2012-07-06 Tom Tromey <tromey@redhat.com>
5089
5090 * c-exp.y (DOTDOTDOT): New token.
5091 (func_mod, exp): Use parameter_typelist.
5092 (parameter_typelist): New production.
5093 (tokentab3): Add "..." token.
5094 * eval.c (make_params): Handle varargs.
5095 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5096 varargs.
5097
5098 2012-07-06 Tom Tromey <tromey@redhat.com>
5099
5100 PR exp/9608:
5101 * c-exp.y (%union) <tvec>: Change type.
5102 (func_mod): Now uses <tvec> type.
5103 (exp): Update for tvec change.
5104 (direct_abs_decl): Push the typelist.
5105 (func_mod): Return a typelist.
5106 (nonempty_typelist): Update for tvec change.
5107 * gdbtypes.c (lookup_function_type_with_arguments): New function.
5108 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5109 * parse.c (pop_type_list): New function.
5110 (push_typelist): New function.
5111 (follow_types): Handle tp_function_with_arguments.
5112 * parser-defs.h (type_ptr): New typedef. Define a VEC.
5113 (enum type_pieces) <tp_function_with_arguments>: New constant.
5114 (union type_stack_elt) <typelist_val>: New field.
5115 (push_typelist): Declare.
5116
5117 2012-07-06 Tom Tromey <tromey@redhat.com>
5118
5119 * c-exp.y (%union) <type_stack>: New field.
5120 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5121 (ptr_operator_ts): New production.
5122 (ptype): Update.
5123 * parse.c (type_stack_reserve): New function.
5124 (check_type_stack_depth): Use it.
5125 (pop_type_stack, append_type_stack, push_type_stack)
5126 (get_type_stack, type_stack_cleanup): New functions.
5127 (follow_types): Handle tp_type_stack.
5128 (_initialize_parse): Simplify initialization.
5129 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5130 constant.
5131 (union type_stack_elt) <stack_val>: New field.
5132 (get_type_stack, append_type_stack, push_type_stack)
5133 (type_stack_cleanup): Declare.
5134
5135 2012-07-06 Tom Tromey <tromey@redhat.com>
5136
5137 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5138 Remove.
5139 (struct type_stack): New.
5140 * parse.c (type_stack, type_stack_size, type_stack_depth):
5141 Remove.
5142 (type_stack): New global.
5143 (parse_exp_in_context, check_type_stack_depth)
5144 (insert_into_type_stack, insert_type, push_type, push_type_int)
5145 (insert_type_address_space, pop_type, pop_type_int)
5146 (_initialize_parse): Update.
5147
5148 2012-07-06 Tom Tromey <tromey@redhat.com>
5149
5150 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5151 Remove %type.
5152
5153 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5154
5155 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5156
5157 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5158 Jan Kratochvil <jan.kratochvil@redhat.com>
5159
5160 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5161 alloca with xmalloc/xfree.
5162
5163 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5164
5165 * MAINTAINERS (Write After Approval): Add myself to the list.
5166
5167 2012-07-05 Doug Evans <dje@google.com>
5168
5169 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5170
5171 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5172
5173 * ax-gdb.c (cli/cli-utils.h): New include.
5174 (linespec.h): Ditto.
5175 (agent_eval_command_one): New function.
5176 (agent_command_1): Ditto.
5177 (agent_command): Call function agent_command_1.
5178 (agent_eval_command): Ditto.
5179 (_initialize_ax_gdb): Change help for "maint agent"
5180 and "maint agent-eval".
5181
5182 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5183
5184 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5185 * cli/cli-utils.c (check_for_argument): New function.
5186 * cli/cli-utils.h (check_for_argument): Ditto.
5187
5188 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5189
5190 * NEWS: Mention x32 ABI support.
5191
5192 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5193
5194 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5195 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5196
5197 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5198 and pc_regnum_from_eax to -1. Update SP regnum from
5199 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5200 needed.
5201
5202 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5203 pc_regnum_from_eax.
5204
5205 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5206
5207 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5208 * dwarf2expr.h: Include gdbtypes.h.
5209 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5210 these forward declarations.
5211 (cu_offset, sect_offset): Move these ...
5212 * gdbtypes.h: Remove include dwarf2expr.h.
5213 (cu_offset, sect_offset): ... here.
5214
5215 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5216
5217 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5218 (amd64_linux_sigtramp_code): This.
5219 (amd64_x32_linux_sigtramp_code): New.
5220 (LINUX_SIGTRAMP_LEN): Updated.
5221 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5222
5223 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5224
5225 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5226
5227 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5228
5229 * config.in: Regenerate.
5230 * configure: Regenerate.
5231 * configure.ac: Remove check for gnu/libc-version.h.
5232 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5233 gnu/libc-version.h.
5234 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5235 variables libc_version, libc_major and libc_minor. Replace sscanf by
5236 inferior_has_bug. Extend the comment.
5237
5238 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5239
5240 * linux-thread-db.c (inferior_has_bug): New function.
5241 (thread_db_find_new_threads_silently): Return boolean as checked by
5242 inferior_has_bug, describe it in the comments.
5243 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5244 earlier. Abort the initialization if it returned non-zero.
5245 (thread_db_new_objfile): Exclude debug files.
5246 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5247 if UNTIL_NO_NEW,
5248
5249 2012-07-02 Doug Evans <dje@google.com>
5250
5251 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5252 related to queue management.
5253
5254 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5255 instead of "debug dwarf2-die" in debugging printfs.
5256 (create_debug_info_hash_table_reader): Ditto.
5257 (create_debug_info_hash_table): Ditto.
5258 (init_dwo_file): Ditto.
5259 (init_cutu_and_read_dies): Add debugging printf.
5260 (init_cutu_and_read_dies_no_follow): Ditto.
5261 (process_psymtab_comp_unit_reader): Ditto.
5262
5263 2012-07-02 Stan Shebs <stan@codesourcery.com>
5264
5265 Add target-side support for dynamic printf.
5266 * NEWS: Mention the additional style.
5267 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5268 (struct bp_location): New field cmd_bytecode.
5269 * breakpoint.c: Include format.h.
5270 (disconnected_dprintf): New global.
5271 (parse_cmd_to_aexpr): New function.
5272 (build_target_command_list): New function.
5273 (insert_bp_location): Call it.
5274 (remove_breakpoints_pid): Skip dprintf breakpoints.
5275 (print_one_breakpoint_location): Ditto.
5276 (dprintf_style_agent): New global.
5277 (dprintf_style_enums): Add dprintf_style_agent.
5278 (update_dprintf_command_list): Add agent case.
5279 (agent_printf_command): New function.
5280 (_initialize_breakpoint): Add new commands.
5281 * common/ax.def (printf): New bytecode.
5282 * ax.h (ax_string): Declare.
5283 * ax-gdb.h (gen_printf): Declare.
5284 * ax-gdb.c: Include cli-utils.h, format.h.
5285 (gen_printf): New function.
5286 (maint_agent_print_command): New function.
5287 (_initialize_ax_gdb): Add maint agent-printf command.
5288 * ax-general.c (ax_string): New function.
5289 (ax_print): Add printf disassembly.
5290 * Makefile.in (SFILES): Add format.c
5291 (COMMON_OBS): Add format.o.
5292 * common/format.h: New file.
5293 * common/format.c: New file.
5294 * printcmd.c: Include format.h.
5295 (ui_printf): Call parse_format_string.
5296 * remote.c (remote_state): New field breakpoint_commands.
5297 (PACKET_BreakpointCommands): New enum.
5298 (remote_breakpoint_commands_feature): New function.
5299 (remote_protocol_features): Add new BreakpointCommands entry.
5300 (remote_can_run_breakpoint_commands): New function.
5301 (remote_add_target_side_commands): New function.
5302 (remote_insert_breakpoint): Call it.
5303 (remote_insert_hw_breakpoint): Ditto.
5304 (_initialize_remote): Add new packet configuration for
5305 target-side breakpoint commands.
5306 * target.h (struct target_ops): New field
5307 to_can_run_breakpoint_commands.
5308 (target_can_run_breakpoint_commands): New macro.
5309 * target.c (update_current_target): Handle
5310 to_can_run_breakpoint_commands.
5311
5312 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5313
5314 Execute -ix and -iex only after system and user gdbinit files.
5315 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5316 processing down after gdbinit files.
5317
5318 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5319
5320 Add fnmatch-gnu module.
5321 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5322 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5323 * gnulib/aclocal.m4: Regenerate.
5324 * gnulib/config.in: Regenerate.
5325 * gnulib/configure: Regenerate.
5326 * gnulib/import/dummy.c: Remove.
5327 * gnulib/import/Makefile.am: Regenerate.
5328 * gnulib/import/Makefile.in: Likewise.
5329 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5330 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5331 * gnulib/import/alloca.c: New file.
5332 * gnulib/import/alloca.in.h: Likewise.
5333 * gnulib/import/config.charset: Likewise.
5334 * gnulib/import/fnmatch.c: Likewise.
5335 * gnulib/import/fnmatch.in.h: Likewise.
5336 * gnulib/import/fnmatch_loop.c: Likewise.
5337 * gnulib/import/localcharset.c: Likewise.
5338 * gnulib/import/localcharset.h: Likewise.
5339 * gnulib/import/m4/alloca.m4: Likewise.
5340 * gnulib/import/m4/codeset.m4: Likewise.
5341 * gnulib/import/m4/configmake.m4: Likewise.
5342 * gnulib/import/m4/fcntl-o.m4: Likewise.
5343 * gnulib/import/m4/fnmatch.m4: Likewise.
5344 * gnulib/import/m4/glibc21.m4: Likewise.
5345 * gnulib/import/m4/localcharset.m4: Likewise.
5346 * gnulib/import/m4/locale-fr.m4: Likewise.
5347 * gnulib/import/m4/locale-ja.m4: Likewise.
5348 * gnulib/import/m4/locale-zh.m4: Likewise.
5349 * gnulib/import/m4/mbrtowc.m4: Likewise.
5350 * gnulib/import/m4/mbsinit.m4: Likewise.
5351 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5352 * gnulib/import/m4/mbstate_t.m4: Likewise.
5353 * gnulib/import/m4/stdbool.m4: Likewise.
5354 * gnulib/import/m4/wchar_h.m4: Likewise.
5355 * gnulib/import/m4/wctype_h.m4: Likewise.
5356 * gnulib/import/m4/wint_t.m4: Likewise.
5357 * gnulib/import/mbrtowc.c: Likewise.
5358 * gnulib/import/mbsinit.c: Likewise.
5359 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5360 * gnulib/import/mbsrtowcs-state.c: Likewise.
5361 * gnulib/import/mbsrtowcs.c: Likewise.
5362 * gnulib/import/ref-add.sin: Likewise.
5363 * gnulib/import/ref-del.sin: Likewise.
5364 * gnulib/import/stdbool.in.h: Likewise.
5365 * gnulib/import/streq.h: Likewise.
5366 * gnulib/import/strnlen1.c: Likewise.
5367 * gnulib/import/strnlen1.h: Likewise.
5368 * gnulib/import/verify.h: Likewise.
5369 * gnulib/import/wchar.in.h: Likewise.
5370 * gnulib/import/wctype.in.h: Likewise.
5371
5372 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5373
5374 Support shell wildcards for 'set auto-load safe-path'.
5375 * auto-load.c: Include fnmatch.h.
5376 (filename_is_in_dir): Rename to ...
5377 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5378 it. Update function comment. Rename dir_len to pattern_len. New
5379 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5380 messages. Use gdb_filename_fnmatch.
5381 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5382 pattern.
5383 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5384 * defs.h (gdb_filename_fnmatch): New declaration.
5385 * utils.c: Include fnmatch.h.
5386 (gdb_filename_fnmatch): New function.
5387
5388 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5389
5390 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5391 `-probe' and `-probe-stap' options.
5392
5393 2012-07-01 Yao Qi <yao@codesourcery.com>
5394
5395 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5396 always_inserted_off, and always_inserted_enums.
5397 Change always_inserted_mode's type to 'enum auto_boolean'.
5398 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5399 callers.
5400 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5401 of add_setshow_enum_cmd.
5402 * infrun.c: Remove can_use_displaced_stepping_auto,
5403 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5404 can_use_displaced_stepping_enum.
5405 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5406 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5407 callers.
5408 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5409 add_setshow_enum_cmd.
5410
5411 2012-06-30 Doug Evans <dje@google.com>
5412
5413 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5414 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5415 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5416
5417 2012-06-29 Doug Evans <dje@google.com>
5418
5419 * linespec.c: #include "stack.h".
5420 (decode_line_with_current_source): Moved here from symtab.c and
5421 renamed from decode_line_spec. All callers updated.
5422 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5423 renamed from decode_line_spec_1. All callers updated.
5424 * linespec.h (decode_line_with_current_source): Move declaration here
5425 from symtab.h and renamed from decode_line_spec.
5426 (decode_line_with_last_displayed): Move declaration here from symtab.h
5427 and renamed from decode_line_spec_1.
5428 * macrocmd.c: #include "linespec.h".
5429 * symtab.c: Remove #include "linespec.h".
5430
5431 2012-06-28 Doug Evans <dje@google.com>
5432
5433 * dwarf2read.c (get_cu_length): New function.
5434 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5435 (create_debug_types_hash_table): Ditto.
5436 (init_cutu_and_read_dies): Ditto.
5437 (init_cutu_and_read_dies_no_follow): Ditto.
5438
5439 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5440
5441 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5442 (struct abbrev_table): Define.
5443 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5444 abbrev_table.
5445 (init_cutu_and_read_dies): Update.
5446 (abbrev_table_alloc_abbrev): New function. Replaces
5447 dwarf_alloc_abbrev. All callers updated.
5448 (abbrev_table_add_abbrev): New function.
5449 (abbrev_table_lookup_abbrev): New function. Replaces
5450 dwarf2_lookup_abbrev. All callers updated.
5451 (abbrev_table_read_table): New function. Contents moved here from
5452 dwarf2_read_abbrevs.
5453 (dwarf2_read_abbrevs): Call it.
5454 (abbrev_table_free): New function.
5455 (dwarf2_free_abbrev_table): Call it.
5456
5457 2012-06-28 Stan Shebs <stan@codesourcery.com>
5458
5459 * osdata.c (info_osdata_command): Filter out "Title" columns
5460 from non-MI uses.
5461 * common/linux-osdata.c (struct osdata_type): Add title field.
5462 (osdata_table): Add titles to each entry.
5463 (linux_command_xfer_osdata): Add a column for title data.
5464
5465 2012-06-28 Stan Shebs <stan@codesourcery.com>
5466
5467 Make logging work for MI.
5468 * NEWS: Mention it.
5469 * interps.h (interp_set_logging_ftype): New typedef.
5470 (struct interp_procs): New field set_logging_proc.
5471 (current_interp_set_logging): Declare.
5472 * interps.c (current_interp_set_logging): New function.
5473 * cli/cli-logging.c: Include interps.h.
5474 (set_logging_redirect): Call current_interp_set_logging.
5475 (pop_output_files): Ditto.
5476 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5477 * mi/mi-console.h (mi_console_set_raw): Declare.
5478 * mi/mi-console.c (mi_console_set_raw): New function.
5479 * mi/mi-interp.c (saved_raw_stdout): New global.
5480 (mi_set_logging): New function.
5481 (_initialize_mi_interp): Add it to interp procs.
5482
5483 2012-06-28 Doug Evans <dje@google.com>
5484
5485 * symtab.c (lookup_symbol_aux_objfile): Use
5486 ALL_OBJFILE_PRIMARY_SYMTABS.
5487
5488 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5489
5490 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5491
5492 * common/buffer.c: Include inttypes.h and stdint.h.
5493 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5494
5495 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5496 Pedro Alves <palves@redhat.com>
5497
5498 * gdbthread.h (ALL_THREADS): New macro.
5499 (thread_list): Declare.
5500 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5501 going, but instead fall through to the stepping handling.
5502 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5503 the passed in signal. Adjust debug output.
5504 (resume_callback): Rename to ...
5505 (linux_nat_resume_callback): ... this. Pass the thread's last
5506 stop signal, if in "pass" state.
5507 (linux_nat_resume): Adjust to rename.
5508 (stop_wait_callback): New assertion. Don't respawn signals;
5509 instead let the LWP remain with SIGNALLED set.
5510 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5511 * remote.c (append_pending_thread_resumptions): New.
5512 (remote_vcont_resume): Call it.
5513 * target.h (target_resume): Extend comment.
5514
5515 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5516
5517 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5518
5519 2012-06-27 Doug Evans <dje@google.com>
5520
5521 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5522 Delete have_addr_base, unused. All uses updated.
5523 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5524 (dwarf2_get_pc_bounds): Add ranges_base.
5525 (dwarf2_record_block_ranges): Ditto.
5526
5527 2012-06-27 Tom Tromey <tromey@redhat.com>
5528
5529 PR macros/7961:
5530 * varobj.c (varobj_create): Update.
5531 (varobj_set_value): Update.
5532 * tracepoint.c (validate_actionline): Update.
5533 (encode_actions_1): Update.
5534 * parse.c (parse_exp_1): Add 'pc' argument.
5535 (parse_exp_in_context): Add 'pc' argument. Change how
5536 expression_context_pc is set.
5537 (parse_expression): Update.
5538 (parse_field_expression): Update.
5539 * expression.h (parse_exp_1): Update.
5540 * eval.c (parse_to_comma_and_eval): Update.
5541 * breakpoint.c (set_breakpoint_condition): Update.
5542 (update_watchpoint): Update.
5543 (init_breakpoint_sal): Update
5544 (find_condition_and_thread): Update.
5545 (watch_command_1): Update.
5546 (update_breakpoint_locations): Update.
5547 * ada-lang.c (ada_read_renaming_var_value): Update.
5548 (create_excep_cond_exprs): Update.
5549
5550 2012-06-27 Doug Evans <dje@google.com>
5551
5552 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5553 type units.
5554
5555 2012-06-26 Doug Evans <dje@google.com>
5556
5557 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5558 prototype.
5559 (error_check_comp_unit_head): New arg abbrev_section. All callers
5560 updated.
5561 (read_and_check_comp_unit_head): Ditto.
5562 (read_and_check_type_unit_head): Ditto.
5563
5564 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5565
5566 New attribute 'last' for gdb.Symtab_and_line.
5567 * NEWS (Python Scripting): Add entry about the new attribute.
5568 * python/py-symtab.c (salpy_get_last): New function which
5569 implements the get method for the 'last' attribute of
5570 gdb.Symtab_and_line.
5571 (sal_object_getset): Add entry for the 'last' attribute.
5572
5573 2012-06-26 Doug Evans <dje@google.com>
5574
5575 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5576 (dwo_sections): Add macinfo, macro.
5577 (dwarf2_locate_dwo_sections): Watch for macro sections.
5578 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5579 All callers updated. Handle DWO files.
5580
5581 * NEWS: Mention new options "set debug dwarf2-read" and
5582 "set debug symtab-create".
5583 * dwarf2read.c (dwarf2_read_debug): New static global.
5584 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5585 (process_queue): Ditto.
5586 (process_full_comp_unit): Ditto.
5587 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5588 * elfread.c (elf_symfile_read): Add debugging printf.
5589 * minsyms.c (install_minimal_symbols): Ditto.
5590 * psymtab.c (allocate_psymtab): Ditto.
5591 * symfile.c (allocate_symtab): Ditto.
5592 * symtab.c (symtab_create_debug): New global.
5593 (_initialize_symtab): Add new option "set debug symtab-create".
5594 * symtab.h (symtab_create_debug): Declare.
5595
5596 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5597 (lookup_dwo_type_unit): Ditto.
5598
5599 2012-06-26 Roland McGrath <roland@hack.frob.com>
5600 H.J. Lu <hongjiu.lu@intel.com>
5601
5602 * amd64-linux-nat.c: Include <sys/user.h>.
5603 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5604 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5605 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5606
5607 * configure.ac: Check if the fs_base and gs_base members of
5608 `struct user_regs_struct' exist.
5609 * config.in: Regenerated.
5610 * configure: Likewise.
5611
5612 2012-06-25 Michael Eager <eager@eagercon.com>
5613
5614 PR python/14291
5615 * python/python.c (gdbpy_write): Check for interrupted output.
5616
5617 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5618
5619 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5620 register as a stack alignment in ARM mode.
5621
5622 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5623
5624 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5625 * gnulib/config.in: Regenerate.
5626 * gnulib/configure: Likewise.
5627 * gnulib/import/m4/extensions.m4: Update it.
5628 * gnulib/import/m4/gnulib-common.m4: Likewise.
5629 * gnulib/import/m4/memmem.m4: Likewise.
5630 * gnulib/import/m4/mmap-anon.m4: Likewise.
5631 * gnulib/import/m4/multiarch.m4: Likewise.
5632 * gnulib/import/stdint.in.h: Likewise.
5633
5634 2012-06-24 Yao Qi <yao@codesourcery.com>
5635
5636 * corefile.c (write_memory_with_notification): New.
5637 * gdbcore.h: Declare write_memory_with_notification.
5638 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5639 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5640 * valops.c (value_assign): Likewise.
5641 * python/py-inferior.c (infpy_write_memory): Call
5642 'write_memory_with_notification'.
5643
5644 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5645
5646 * cc-with-index.sh: Use also -ex "set auto-load no".
5647
5648 2012-06-23 Doug Evans <dje@google.com>
5649
5650 PR 14125
5651 * NEWS: Document additions to .gdb_index.
5652 * dwarf2read.c: #include "gdb/gdb-index.h".
5653 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5654 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5655 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5656 (dwarf2_read_index): Recognize version 7.
5657 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5658 block_kind, domain): All callers updated.
5659 (dw2_find_symbol_file): Handle new index CU values.
5660 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5661 (add_index_entry): New args is_static, kind. All callers updated.
5662 (offset_type_compare, uniquify_cu_indices): New functions
5663 (symbol_kind): New function.
5664 (write_psymtabs_to_index): Remove duplicate CU values.
5665 (write_psymtabs_to_index): Write .gdb_index version 7.
5666
5667 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5668
5669 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5670 * configure: Regenerate.
5671
5672 2012-06-20 Yao Qi <yao@codesourcery.com>
5673
5674 * python/py-inferior.c: Update comments of infpy_read_memory
5675 and infpy_write_memory.
5676
5677 2012-06-19 Tom Tromey <tromey@redhat.com>
5678
5679 PR exp/9514:
5680 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5681 (push_type_address_space): Remove.
5682 * parse.c (insert_into_type_stack): New function.
5683 (insert_type): Likewise.
5684 (insert_type_address_space): Rename from push_type_address_space.
5685 Insert tp_space_identifier.
5686 * c-exp.y (ptr_operator): New production.
5687 (abs_decl): Use ptr_operator.
5688 (space_identifier): Call insert_type_address_space.
5689 (ptype): Don't use const_or_volatile_or_space_identifier.
5690 (const_or_volatile_noopt): Call insert_type.
5691 (conversion_type_id, conversion_declarator): New productions.
5692 (operator): Use conversion_type_id.
5693
5694 2012-06-18 Doug Evans <dje@google.com>
5695
5696 * symtab.h (minimal_symbol): New member created_by_gdb.
5697 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5698 created by gdb.
5699 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5700 (search_symbols): Call it instead of lookup_symbol.
5701 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5702
5703 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5704 Adjust address for DW_OP_GNU_addr_index.
5705 * dwarf2expr.h (dwarf_expr_context): Update comment.
5706 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5707 all callers updated. Handle TLS vars described with
5708 DW_OP_GNU_const_index.
5709 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5710 and DW_OP_GNU_const_index.
5711 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5712
5713 * block.c (find_block_in_blockvector): Make explicit the fact that we
5714 ignore GLOBAL_BLOCK.
5715
5716 2012-06-18 Tom Tromey <tromey@redhat.com>
5717
5718 * c-exp.y (operator): Remove trailing space after "delete" and
5719 "delete[]".
5720
5721 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5722 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 Switch i386 and derived targets to ON_STACK.
5725 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5726 (amd64_dicos_init_abi): Remove its installment.
5727 * dicos-tdep.c (dicos_init_abi): Remove the
5728 set_gdbarch_call_dummy_location call. Update the comment here.
5729 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5730 (i386_dicos_init_abi): Remove its installment.
5731 * i386-tdep.c (i386_push_dummy_code): New function.
5732 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5733 i386_push_dummy_code.
5734
5735 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5736
5737 Remove stale dummy frames.
5738 * breakpoint.c: Include dummy-frame.h.
5739 (longjmp_breakpoint_ops): New variable.
5740 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5741 bp_longjmp_call_dummy.
5742 (bpstat_what, bptype_string, print_one_breakpoint_location)
5743 (init_bp_location): Support bp_longjmp_call_dummy.
5744 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5745 (set_longjmp_breakpoint_for_call_dummy)
5746 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5747 functions.
5748 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5749 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5750 FIXME comment and extend the other comment for bp_call_dummy.
5751 (set_longjmp_breakpoint_for_call_dummy)
5752 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5753 * dummy-frame.c: Include gdbthread.h.
5754 (pop_dummy_frame_bpt): New function.
5755 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5756 (dummy_frame_discard): New function.
5757 (cleanup_dummy_frames): Update the comment about longjmps.
5758 * dummy-frame.h (dummy_frame_discard): New declaration.
5759 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5760 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5761 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5762 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5763 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5764 keep_going if IS_LONGJMP and there is no other reason to stop.
5765
5766 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5767
5768 * remote-sim.c (sim_command_completer): Initialize
5769 variable 'result'.
5770
5771 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5772
5773 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5774 * dwarf2loc.c (call_site_parameter_matches): Support
5775 CALL_SITE_PARAMETER_PARAM_OFFSET.
5776 (needs_dwarf_reg_entry_value): Push stub value.
5777 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5778 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5779 * gdbtypes.h (enum call_site_parameter_kind): New item
5780 CALL_SITE_PARAMETER_PARAM_OFFSET.
5781 (struct call_site.parameter.u): New field param_offset.
5782
5783 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5784
5785 Code cleanup: Generalize call_site.parameter key.
5786 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5787 variable dwarf_reg. New variable kind_u. Update parameters to
5788 push_dwarf_reg_entry_value.
5789 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5790 * dwarf2expr.h (enum call_site_parameter_kind)
5791 (union call_site_parameter_u): Forward declarations.
5792 (struct dwarf_expr_context_funcs): Update parameters and their
5793 description for push_dwarf_reg_entry_value.
5794 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5795 * dwarf2loc.c (call_site_parameter_matches): New function.
5796 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5797 description. Use call_site_parameter_matches.
5798 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5799 Update parameters and their description.
5800 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5801 New variable kind_u. Adjust the caller for updated parameters.
5802 (needs_dwarf_reg_entry_value): Update parameters.
5803 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5804 instead of attr. Update for the changed fields of struct
5805 call_site_parameter.
5806 * gdbtypes.h: Include dwarf2expr.h.
5807 (enum call_site_parameter_kind): New.
5808 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5809 fb_offset into new union u.
5810
5811 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5812
5813 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5814 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5815 for x32.
5816
5817 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5818
5819 * amd64-linux-nat.c (compat_x32_clock_t): New.
5820 (compat_x32_siginfo_t): Likewise.
5821 (compat_x32_siginfo_from_siginfo): Likewise.
5822 (siginfo_from_compat_x32_siginfo): Likewise.
5823 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5824 and siginfo_from_compat_x32_siginfo for x32.
5825
5826 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5827
5828 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5829
5830 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5831
5832 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5833 instead of gdbarch_ptr_bit.
5834 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5835 (amd64_supply_native_gregset): Likewise.
5836 (amd64_collect_native_gregset): Likewise.
5837 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5838 (amd64_supply_xsave): Likewise.
5839 (amd64_collect_fxsave): Likewise.
5840 (amd64_collect_xsave): Likewise.
5841
5842 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5843
5844 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5845 (amd64_linux_read_description): Check DS segment register for
5846 x32 process.
5847
5848 2012-06-15 Tom Tromey <tromey@redhat.com>
5849
5850 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5851 init_cutu_and_read_dies.
5852
5853 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5854
5855 * MAINTAINERS (Write After Approval): Add myself to the list.
5856
5857 2012-06-15 Tom Tromey <tromey@redhat.com>
5858
5859 * valops.c (value_find_oload_method_list): Now static.
5860 * value.h (value_find_oload_method_list): Don't declare.
5861
5862 2012-06-15 Tom Tromey <tromey@redhat.com>
5863
5864 * valops.c (find_overload_match): Use value_ind.
5865
5866 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5867
5868 * infrun.c (handle_inferior_event): Correct indentation.
5869
5870 2012-06-14 Doug Evans <dje@google.com>
5871
5872 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5873 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5874 All uses updated.
5875 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5876 updated. Handle DEBUG_LOC_START_LENGTH.
5877 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5878 (loclist_describe_location): Ditto.
5879
5880 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5881
5882 PR backtrace/13866
5883 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5884 after hiding inline functions.
5885
5886 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5887
5888 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5889 _initialize_inf_ttrace.
5890
5891 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5892
5893 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5894 _initialize_hppa_hpux_nat.
5895
5896 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5897
5898 * remote-sim.c (sim_command_completer): Change type of return
5899 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5900
5901 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5902 Jan Kratochvil <jan.kratochvil@redhat.com>
5903
5904 PR tdep/14222
5905 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5906 stack on a 16-byte boundary.
5907
5908 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5909
5910 * jit.c (finalize_symtab): Set function's return type to 'void' by
5911 default.
5912
5913 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5914 H.J. Lu <hongjiu.lu@intel.com>
5915
5916 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5917 Move bits common to both the classic LP64 and the new x32 ILP32
5918 ABI here.
5919 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5920 (amd64_x32_linux_init_abi): New function.
5921 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5922 subtype.
5923
5924 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5925 * i386-tdep.c (i386_pseudo_register_name): Make public.
5926 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5927 * amd64-tdep.c (amd64_dword_names): Add "eip".
5928 (amd64_x32_pseudo_register_type): New function
5929 (amd64_x32_init_abi): New function.
5930
5931 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5932
5933 PR build/14003
5934 * inferior.h (struct inferior_suspend_state): Comment out.
5935 (struct inferior): Comment out the field suspend.
5936 * infrun.c (struct infcall_suspend_state): Comment out the field
5937 inferior_suspend.
5938 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5939 out its assignment.
5940
5941 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5942
5943 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5944 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5945 function comment. Return ERROR for unresolved cases. Implement
5946 returning proper NAME.
5947 (yylex): Accept also NAME from classify_inner_name.
5948 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5949 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5950 LOC_TYPEDEF type.
5951 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5952
5953 2012-06-13 Tom Tromey <tromey@redhat.com>
5954
5955 * breakpoint.c (condition_completer): New function.
5956 (_initialize_breakpoint): Use it.
5957 * value.c (complete_internalvar): New function.
5958 * value.h (complete_internalvar): Declare.
5959
5960 2012-06-13 Tom Tromey <tromey@redhat.com>
5961
5962 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5963 * breakpoint.c (catch_syscall_completer): Return a VEC.
5964 * cli/cli-cmds.c (complete_command): Update.
5965 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5966 (complete_on_enum): Likewise.
5967 * command.h: Include gdb_vecs.h.
5968 (completer_ftype): Change return type.
5969 (complete_on_cmdlist, complete_on_enum): Likewise.
5970 * completer.c (noop_completer, filename_completer)
5971 (location_completer): Return a VEC.
5972 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5973 to a VEC.
5974 (expression_completer, complete_line_internal, complete_line)
5975 (command_completer): Return a VEC.
5976 (gdb_completion_word_break_characters, line_completion_function):
5977 Update.
5978 * completer.h: Include gdb_vecs.h.
5979 (complete_line, noop_completer, filename_completer)
5980 (expression_completer, location_completer, command_completer):
5981 Update.
5982 * f-lang.c (f_word_break_characters): Return a VEC.
5983 * interps.c (interpreter_completer): Return a VEC.
5984 * language.h (struct language_defn)
5985 <la_make_symbol_completion_list>: Return a VEC.
5986 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5987 * symtab.c (free_completion_list): Take a VEC.
5988 (return_val_size, return_val_index): Remove.
5989 (return_val): Now a VEC.
5990 (completion_list_add_name): Update.
5991 (default_make_symbol_completion_list_break_on)
5992 (default_make_symbol_completion_list, make_symbol_completion_list)
5993 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5994 Return a VEC.
5995 (add_filename_to_list): Update.
5996 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5997 <list>: Now a VEC.
5998 (maybe_add_partial_symtab_filename): Update.
5999 (make_source_files_completion_list): Return a VEC.
6000 * symtab.h (default_make_symbol_completion_list_break_on)
6001 (default_make_symbol_completion_list, make_symbol_completion_list)
6002 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
6003 (make_source_files_completion_list): Update.
6004
6005 2012-06-13 Tom Tromey <tromey@redhat.com>
6006
6007 * breakpoint.c (add_catch_command): Use completer_ftype.
6008 * breakpoint.h: Include command.h.
6009 (add_catch_command): Use completer_ftype.
6010 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6011 * cli/cli-decode.h (struct cmd_list_element) <completer>:
6012 Use completer_ftype.
6013 * command.h (completer_ftype): New typedef.
6014 (set_cmd_completer): Use it.
6015 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6016 completer_ftype.
6017
6018 2012-06-13 Pedro Alves <palves@redhat.com>
6019
6020 Partial revert of previous change.
6021
6022 * serial.c (scb_base): New global.
6023 (serial_for_fd): New.
6024 (serial_open, serial_fdopen_ops): Link new serial in open serials
6025 chain.
6026 (do_serial_close): Unlink serial from the open serials chain.
6027
6028 2012-06-12 Pedro Alves <palves@redhat.com>
6029
6030 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6031 threads here.
6032 (prepare_for_detach): No longer context switch here in non-stop
6033 mode.
6034 (fetch_inferior_event): Ditto.
6035 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6036 to the event thread before removing breakpoints. Switch to the
6037 event thread before inserting breakpoints and resuming.
6038 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6039 event thread before resuming.
6040 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6041 Switch to the event thread before removing breakpoints.
6042
6043 2012-06-12 Eli Zaretskii <eliz@gnu.org>
6044
6045 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6046 special characters correctly for the Windows shells. See
6047 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6048 report.
6049 [!__MINGW32__]: Remove extra double quote character from special
6050 characters.
6051
6052 2012-06-11 Stan Shebs <stan@codesourcery.com>
6053
6054 * ui-out.h: Remove #if 0 declarations.
6055 * ui-out.c: Remove #if 0 functions.
6056
6057 2012-06-11 Pedro Alves <palves@redhat.com>
6058
6059 * ser-base.c (run_async_handler_and_reschedule): New.
6060 (fd_event, push_event): Use it.
6061 * serial.c (serial_open, serial_fdopen_ops): Set the initial
6062 reference count to 1.
6063 (do_serial_close): Set the bufp field to NULL. Use serial_unref
6064 instead of xfree.
6065 (serial_is_open, serial_ref, serial_unref): New.
6066 * serial.h (serial_open): Adjust comment.
6067 (serial_is_open): Declare.
6068 (serial_close): Adjust comment.
6069 (serial_ref, serial_unref) Declare.
6070 (struct serial): New field 'refcnt'.
6071
6072 2012-06-11 Pedro Alves <palves@redhat.com>
6073
6074 Remove #if 0'd "connect" command, and unnecessary associated
6075 refcounting and serial reuse bits.
6076
6077 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6078 * serial.c (last_serial_opened): Delete.
6079 (scb_base): Delete.
6080 (serial_open): Adjust.
6081 (serial_for_fd): Delete.
6082 (serial_fdopen_ops, do_serial_close): Adjust.
6083 (serial_fdopen_ops): Adjust.
6084
6085 2012-06-11 Pedro Alves <palves@redhat.com>
6086
6087 * serial.c (do_serial_close): Remove early return when SCB is
6088 null.
6089
6090 2012-06-11 Tom Tromey <tromey@redhat.com>
6091
6092 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6093
6094 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6095
6096 Fix regression by the "ambiguous linespec" series.
6097 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
6098 get_last_displayed_symtab and get_last_displayed_line and depending
6099 on CURSAL.
6100
6101 2012-06-11 Tom Tromey <tromey@redhat.com>
6102
6103 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6104 (dw2_find_symbol_file): Use it.
6105
6106 2012-06-11 Michael Eager <eager@eagercon.com>
6107
6108 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6109 * mips-linux-tdep.h (mips_signals): New
6110
6111 2012-06-11 Tom Tromey <tromey@redhat.com>
6112
6113 * infrun.c (handle_inferior_event)
6114 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6115 breakpoint.
6116 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6117 exception logic in all cases. Update comments.
6118 (insert_longjmp_resume_breakpoint): Set the exception resume
6119 breakpoint.
6120
6121 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
6122
6123 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6124
6125 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
6126
6127 * valarith.c (binop_types_user_defined_p): Fix a typo.
6128
6129 2012-06-08 Yao Qi <yao@codesourcery.com>
6130 Chung-Lin Tang <cltang@codesourcery.com>
6131
6132 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6133 * arch-utils.h: Declare.
6134 * gdbarch.sh: Add return_in_first_hidden_param_p.
6135 * gdbarch.c, gdbarch.h: Regenerated.
6136 * infcall.c (call_function_by_hand): Call
6137 gdbarch_return_in_first_hidden_param_p instead of
6138 language_pass_by_reference.
6139
6140 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6141 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6142 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6143 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6144 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6145 `cplus_return_struct_by_reference'.
6146 (tic6x_return_value): Handle language cplusplus.
6147 (tic6x_return_in_first_hidden_param_p): New.
6148 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6149
6150 2012-06-07 Doug Evans <dje@google.com>
6151
6152 * dwarf2read.c (dwarf2_cu): Add comment.
6153
6154 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6155
6156 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6157 variable.
6158 (mips_eabi_push_dummy_call): Likewise.
6159 (mips_n32n64_push_dummy_call): Likewise.
6160 (mips_o32_push_dummy_call): Likewise.
6161 (mips_o64_push_dummy_call): Likewise.
6162
6163 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6164
6165 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6166
6167 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6168
6169 * mips-tdep.c (mips_pseudo_register_type): Use
6170 mips_float_register_p.
6171
6172 2012-06-06 Pedro Alves <palves@redhat.com>
6173
6174 * infrun.c (handle_inferior_event): Remove calls to
6175 reinit_frame_cache that follow a context_switch call.
6176
6177 2012-06-06 Pedro Alves <palves@redhat.com>
6178
6179 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6180 context_switch and remove stale comment.
6181
6182 2012-06-06 Pedro Alves <palves@redhat.com>
6183
6184 * infrun.c (struct execution_control_state): Remove
6185 `new_thread_event' field.
6186 (handle_inferior_event): Simplify new threads handling; don't
6187 resume the inferior if we find a new thread.
6188
6189 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6190
6191 * NEWS: Document the deprecation of SH's 'regs' command.
6192 * inferior.h (all_registers_info): Add function declaration.
6193 * sh-tdep.c (sh_show_regs): Remove variable.
6194 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6195 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6196 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6197 (sh_show_regs_command): Remove functions.
6198 (sh_gdbarch_init): Don't set sh_show_regs.
6199 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6200 'info all-registers'.
6201 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6202 (sh64_show_regs): Remove functions.
6203 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6204
6205 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6206
6207 * configure.ac: Move development=true below AC_INIT.
6208 * configure: Regenerate.
6209
6210 2012-06-05 Stan Shebs <stan@codesourcery.com>
6211
6212 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6213 gdb_stdout.
6214
6215 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6216
6217 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6218 argument as ssize_t.
6219 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6220 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6221 * target.c (target_read_stack, target_write_memory)
6222 (target_write_raw_memory): Likewise.
6223 * target.h (target_read_stack, target_write_memory)
6224 (target_write_raw_memory): Likewise.
6225
6226 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6227
6228 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6229 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6230 * target.c (target_read_memory): Change LEN to ssize_t.
6231 * target.h (target_read_memory): Change LEN to ssize_t.
6232
6233 2012-06-05 Pedro Alves <palves@redhat.com>
6234
6235 PR backtrace/13866
6236
6237 * breakpoint.c (until_break_command): Only fetch the selected
6238 frame after decode_line_1.
6239
6240 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6241
6242 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6243 event breakpoint at _start, __start or main if a program
6244 interpreter is not found.
6245
6246 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6247
6248 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6249 Add declaration.
6250 * windows-tdep.c: #include "objfiles.h".
6251 (windows_iterate_over_objfiles_in_search_order): New function.
6252 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6253 iterate_over_objfiles_in_search_order gdbarch method to
6254 windows_iterate_over_objfiles_in_search_order.
6255 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6256
6257 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6258
6259 * gdbarch.sh: Add generation of
6260 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6261 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6262 (iterate_over_objfiles_in_search_order): New gdbarch method.
6263 * gdbarch.h, gdbarch.c: Regenerate.
6264 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6265 Add declaration.
6266 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6267 New function.
6268 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6269 out of lookup_symbol_aux_symtabs.
6270 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6271 call to lookup_symbol_aux_objfile.
6272 (struct global_sym_lookup_data): New type.
6273 (lookup_symbol_global_iterator_cb): New function.
6274 (lookup_symbol_global): Search for symbol using
6275 gdbarch_iterate_over_objfiles_in_search_order and
6276 lookup_symbol_global_iterator_cb.
6277 * findvar.c (struct minsym_lookup_data): New type.
6278 (minsym_lookup_iterator_cb): New function.
6279 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6280 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6281 and minsym_lookup_iterator_cb.
6282
6283 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6284
6285 Revert the following patch:
6286 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6287 try locating the symbol in the symbol's own objfile first, before
6288 extending the search to all objfiles.
6289 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6290 out of lookup_symbol_aux_symtabs.
6291 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6292 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6293 Do not search EXCLUDE_OBJFILE.
6294 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6295 (lookup_symbol_global): Search for matches in the block's objfile
6296 first, before searching all other objfiles.
6297
6298 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6299
6300 * breakpoint.c (find_condition_and_thread): Stop parsing
6301 as soon as the first invalid keyword is found.
6302
6303 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6304
6305 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6306
6307 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6308
6309 * config/djgpp/djcheck.sh: Add copyright header.
6310
6311 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6312
6313 * copyright.py (update_files, main): Fix path to update-copyright
6314 script.
6315
6316 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6317
6318 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6319 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6320 for which a reminder to update by hand is printed.
6321
6322 2012-06-04 Doug Evans <dje@google.com>
6323
6324 * buildsym.c (make_blockvector): Add comment.
6325
6326 2012-06-04 Pedro Alves <palves@redhat.com>
6327
6328 * arch-utils.c (default_gdb_signal_from_target): Delete.
6329 * arch-utils.h (default_gdb_signal_from_target): Delete.
6330 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6331 gdbarch_gdb_signal_from_target_p.
6332 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6333 predicate).
6334 * gdbarch.h: Regenerate.
6335 * gdbarch.c: Regenerate.
6336
6337 2012-06-04 Pedro Alves <palves@redhat.com>
6338
6339 * gdbarch.sh (gdb_signal_from_target): Mention that the
6340 implementation of the method must be host independent.
6341 * gdbarch.h: Regenerate.
6342
6343 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6344
6345 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6346 parameters.
6347 (target_read_memory_bfd): New function.
6348 (symbol_file_add_from_memory): Use it.
6349
6350 2012-06-03 Doug Evans <dje@google.com>
6351
6352 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6353 of primary symtab.
6354 (basic_lookup_transparent_type): Ditto.
6355
6356 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6357 (ALL_PRIMARY_SYMTABS): Use it.
6358 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6359 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6360 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6361 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6362 (basic_lookup_transparent_type): Ditto.
6363
6364 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6365
6366 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6367 it to optimize resolution of demangled name.
6368
6369 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6370
6371 * configure.ac (development): Define new variable.
6372 Call AC_CHECK_LIB for mcheck if $development.
6373 (ERROR_ON_WARNING): Enable it by default only if $development.
6374 * config.in: Regenerate.
6375 * configure: Regenerate.
6376
6377 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6378
6379 * target.c (target_read_memory): Make LEN argument as size_t.
6380 * target.h (target_read_memory): Likewise.
6381
6382 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6383
6384 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6385
6386 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6387
6388 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6389 BookE interface for PowerPC server processors if not available
6390 in the Linux Kernel.
6391
6392 2012-05-31 Keith Seitz <keiths@redhat.com>
6393
6394 * linespec.c (decode_objc): Add cleanup to free
6395 INFO.FILE_SYMTABS.
6396 (find_linespec_symbols): Add cleanup to free CLASSES.
6397 * symfile.c (find_separate_debug_file_by_debuglink): Add
6398 cleanup to free DEBUGLINK.
6399 * ui-out.c (clear_header_list): No need to check if
6400 HEADER_NEXT.COLHDR is NULL.
6401 Free HEADER_NEXT.COL_NAME.
6402
6403 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6404
6405 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6406 warning.
6407
6408 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6409
6410 * configure.host (gdb_host_cpu): Handle tilegx*.
6411 (gdb_host): Handle tilegx-*-linux*.
6412 * tilegx-linux-nat.c: New file.
6413 * config/tilegx/linux.mh: New file.
6414
6415 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6416
6417 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6418 tilegx-linux-tdep.o.
6419 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6420 tilegx-linux-tdep.c.
6421 * configure.tgt: Handle tilegx-*-linux*.
6422 * tilegx-tdep.h: New file.
6423 * tilegx-tdep.c: New file.
6424 * tilegx-linux-tdep.c: New file.
6425 * regformats/reg-tilegx.dat: New file.
6426
6427 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6428
6429 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6430 accounting of hw watchpoints on ppc.
6431
6432 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6433
6434 * source.c (openp): Expand tilde in path entries.
6435
6436 2012-05-29 Doug Evans <dje@google.com>
6437
6438 * buildsym.c (block_compar): Fix comment.
6439 (end_symtab): Fix and clarify some comments.
6440
6441 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6442 cleanup_undefined_types.
6443 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6444 All callers updated.
6445
6446 2012-05-29 Tom Tromey <tromey@redhat.com>
6447
6448 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6449 fails.
6450 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6451 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6452 fails.
6453 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6454 fails.
6455
6456 2012-05-29 Tristan Gingold <gingold@adacore.com>
6457
6458 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6459 (struct darwin_info): ... New struct.
6460 (solib_darwin_pspace_data): New variable.
6461 (darwin_pspace_data_cleanup): New function.
6462 (get_darwin_info): Likewise.
6463 (darwin_dyld_version_ok, darwin_load_image_infos)
6464 (darwin_solib_get_all_image_info_addr_at_init)
6465 (darwin_solib_read_all_image_info_addr): Add info argument.
6466 Adjust code.
6467 (darwin_current_sos): Use per pspace structure.
6468 (darwin_solib_create_inferior_hook): Likewise.
6469 (darwin_clear_solib): Likewise.
6470 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6471
6472 2012-05-28 Pedro Alves <palves@redhat.com>
6473
6474 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6475 block that uses them. Clear ecss before handling each event.
6476
6477 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6478
6479 * solib-svr4.c (svr4_current_sos): New comment on
6480 svr4_current_sos_via_xfer_libraries fall back.
6481
6482 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6483
6484 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6485 it as a fallback for TYPE_IS_OPAQUE.
6486 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6487 symbols for lookup_symbol.
6488
6489 2012-05-24 John Steele Scott <toojays@toojays.net>
6490
6491 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6492 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6493 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6494 (check_producer): ... this new function, which also checks for ICC
6495 and caches the result.
6496 (producer_is_icc): New function.
6497 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6498 producer was ICC.
6499
6500 2012-05-24 Pedro Alves <palves@redhat.com>
6501
6502 PR gdb/7205
6503
6504 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6505 (default_gdb_signal_to_target): ... this. Add comment.
6506 (default_gdb_signal_from_host): Rename to ...
6507 (default_gdb_signal_from_target): ... this. Add comment.
6508 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6509 (default_gdb_signal_to_target): ... this.
6510 (default_gdb_signal_from_host): Rename to ...
6511 (default_gdb_signal_from_target): ... this.
6512 * corelow.c (core_open): Adjust to naming change. Replace comment.
6513 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6514 (gdb_signal_from_target): ... this. Adjust to
6515 default_gdb_signal_from_host naming change. Extend comment.
6516 (gdb_signal_to_host): Rename to ...
6517 (gdb_signal_to_target): ... this. Adjust to
6518 default_gdb_signal_to_host naming change.
6519 * gdbarch.h, gdbarch.c: Renegerate.
6520
6521 2012-05-24 Pedro Alves <palves@redhat.com>
6522
6523 PR gdb/7205
6524
6525 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6526
6527 2012-05-24 Pedro Alves <palves@redhat.com>
6528
6529 PR gdb/7205
6530
6531 Replace target_signal with gdb_signal throughout.
6532
6533 2012-05-24 Pedro Alves <palves@redhat.com>
6534
6535 PR tui/14159
6536
6537 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6538 string, instead of reusing the va_list argument.
6539
6540 2012-05-24 Tom Tromey <tromey@redhat.com>
6541
6542 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6543 Remove.
6544
6545 2012-05-23 Doug Evans <dje@google.com>
6546
6547 * symtab.c (search_symbols): Formatting fixes.
6548 (print_symbol_info): Formatting fixes.
6549
6550 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6551 int64_t change to leb128 API.
6552 (read_encoded_value, decode_frame_entry_1): Ditto.
6553 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6554 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6555 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6556 (execute_stack_op): Ditto.
6557 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6558 (safe_read_uleb128, safe_read_sleb128): Ditto.
6559 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6560 (dwarf2_compile_expr_to_ax): Ditto.
6561 (locexpr_describe_location_piece): Ditto.
6562 (disassemble_dwarf_expression): Ditto.
6563 (locexpr_describe_location_1): Ditto.
6564
6565 2012-05-23 Stan Shebs <stan@codesourcery.com>
6566 Kwok Cheung Yeung <kcy@codesourcery.com>
6567
6568 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6569 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6570 (mi-cmd-info.o): New rule.
6571 * osdata.h (info_osdata_command): New declaration.
6572 * osdata.c (info_osdata_command): Change to non-static.
6573 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6574 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6575 * mi/mi-cmd-info.c: New file.
6576
6577 2012-05-23 Doug Evans <dje@google.com>
6578
6579 * symtab.c (search_symbols): Pass NULL for file_matcher to
6580 expand_symtabs_matching if there are no files to match.
6581
6582 * gdbtypes.c (lookup_typename): Simplify.
6583
6584 2012-05-23 Pedro Alves <palves@redhat.com>
6585
6586 * arch-utils.h (default_target_signal_to_host): Delete.
6587 * arch-utils.c (default_target_signal_to_host): Delete.
6588 * gdbarch.sh (target_signal_to_host): Remove.
6589 * gdbarch.h, gdbarch.c: Regenerate.
6590
6591 2012-05-22 Doug Evans <dje@google.com>
6592
6593 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6594 "const gdb_byte *".
6595 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6596 (execute_cfa_program): Update to match API of leb128 functions.
6597 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6598 "const gdb_byte *".
6599 (read_unsigned_leb128, read_signed_leb128): Delete.
6600 (read_initial_length): Change type of buf argument to
6601 "const gdb_byte *".
6602 (read_encoded_value): Update to match API of leb128 functions.
6603 (decode_frame_entry): Change result to "const gdb_byte *", and
6604 similarly for "start" parameter.
6605 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6606 (dwarf2_build_frame_info): Change local frame_ptr to
6607 "const gdb_byte *".
6608 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6609 read_uleb128, read_sleb128. All callers updated.
6610 (safe_skip_leb128): New function.
6611 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6612 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6613 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6614 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6615 read_uleb128, read_sleb128.
6616 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6617 (execute_stack_op): Update to match API of leb128 functions.
6618 * dwarf2expr.h: #include "leb128.h".
6619 (read_uleb128, read_sleb128): Delete.
6620 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6621 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6622 * dwarf2loc.c (debug_loc_kind): New enum.
6623 (decode_debug_loc_addresses): New function.
6624 (decode_debug_loc_dwo_addresses): New function.
6625 (dwarf2_find_location_expression): Rewrite.
6626 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6627 (locexpr_describe_location_piece): Ditto.
6628 (disassemble_dwarf_expression): Ditto.
6629 (locexpr_describe_location_1): Ditto.
6630 (loclist_describe_location): Rewrite.
6631 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6632 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6633 (dwarf2_section_buffer_overflow_complaint): Renamed from
6634 dwarf2_macros_too_long_complaint. All callers updated.
6635 (skip_leb128): Delete.
6636 (init_cu_die_reader): Initialize reader->buffer_end.
6637 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6638 (skip_form_bytes): New arg buffer_end. All callers updated.
6639 Replace call to skip_leb128 with gdb_skip_leb128.
6640 (skip_unknown_opcode): New arg mac_end. All callers updated.
6641 (fill_in_loclist_baton): Initialize baton->from_dwo.
6642
6643 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6644
6645 * mips-linux-nat.c (mips_linux_read_description): Use a more
6646 verbose error message.
6647
6648 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6649
6650 * NEWS: Add MIPS/Linux DSP support.
6651 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6652 (SIGCONTEXT_DSPCTL): New macro.
6653 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6654 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6655 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6656 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6657 (N64_SIGCONTEXT_HI3): Likewise.
6658 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6659 (N64_SIGCONTEXT_LO3): Likewise.
6660 (N64_SIGCONTEXT_DSPCTL): Likewise.
6661 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6662 (mips_linux_o32_sigframe_init): Handle DSP registers.
6663 (mips_linux_n32n64_sigframe_init): Likewise.
6664
6665 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6666
6667 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6668 call to abort.
6669
6670 2012-05-22 Pedro Alves <palves@redhat.com>
6671
6672 * target.h (store_waitstatus): Move declaration ...
6673 * inf-child.h (store_waitstatus): ... here.
6674 * target.c: Move inclusion of gdb_wait.h, and ...
6675 (store_waitstatus): ... this ...
6676 * inf-child.c: ... here.
6677 * linux-nat.c: Include inf-child.h.
6678 * rs6000-nat.c: Include inf-child.h.
6679 * spu-linux-nat.c: Include inf-child.h.
6680
6681 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6682
6683 * tracepoint.c (start_tracing): Add missing i18n markup.
6684 (stop_tracing, set_trace_user): Ditto.
6685 (set_trace_notes, set_trace_stop_notes): Ditto.
6686
6687 2012-05-21 Tom Tromey <tromey@redhat.com>
6688
6689 PR c++/7173:
6690 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6691 types.
6692 * value.h (value_cast_pointers): Update.
6693 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6694 (value_cast): Update.
6695 (update_search_result): New function.
6696 (do_search_struct_field): New, from search_struct_field. Check
6697 for ambiguous results.
6698 (search_struct_field): Rewrite.
6699 * infcall.c (value_arg_coerce): Update.
6700 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6701 value_cast_pointers.
6702 * ada-lang.c (ada_convert_actual): Update.
6703
6704 2012-05-21 Tom Tromey <tromey@redhat.com>
6705
6706 * macroexp.c (macro_stringify): Terminate the string.
6707
6708 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6709
6710 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6711 Describe it.
6712 * auto-load.c (auto_load_expand_dir_vars): New function.
6713 (auto_load_safe_path_vec_update): Use it, remove the
6714 substitute_path_component call thanks to it.
6715 (auto_load_objfile_script): Remove the debug_file_directory processing.
6716 Use auto_load_expand_dir_vars, remove the substitute_path_component
6717 call thanks to it.
6718 * configure: Regenerate.
6719 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6720 path. Escape $ also for $debugdir.
6721 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6722 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6723
6724 2012-05-20 Doug Evans <dje@google.com>
6725
6726 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6727 before use. Check for symtab->includes == NULL before scanning it.
6728
6729 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6730
6731 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6732
6733 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6734
6735 * NEWS: Add microMIPS support and "set mips compression",
6736 "show mips compression" commands.
6737 * mips-tdep.h (mips_isa): New enum.
6738 (gdbarch_tdep): Add mips_isa.
6739 (mips_pc_is_mips16): Update prototype.
6740 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6741 * mips-tdep.c (mips_compression_mips16): New variable.
6742 (mips_compression_micromips): Likewise.
6743 (mips_compression_strings): Likewise.
6744 (mips_compression_string): Likewise.
6745 (is_mips16_isa, is_micromips_isa): New functions.
6746 (is_mips16_addr): Rename to...
6747 (is_compact_addr): ... this.
6748 (unmake_mips16_addr): Likewise to...
6749 (unmake_compact_addr): ... this.
6750 (make_mips16_addr): Likewise to...
6751 (make_compact_addr): ... this.
6752 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6753 functions.
6754 (mips_elf_make_msymbol_special): Handle microMIPS code.
6755 (msymbol_is_special): Rename to...
6756 (msymbol_is_mips16): ... this.
6757 (mips_make_symbol_special, mips_pc_is_mips16): Update
6758 accordingly.
6759 (msymbol_is_mips, msymbol_is_micromips): New functions.
6760 (mips16_to_32_reg): Rename to...
6761 (mips_reg3_to_reg): ... this.
6762 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6763 (mips_pc_isa): Likewise.
6764 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6765 code.
6766 (mips_fetch_instruction): Pass return status instead of printing
6767 an error message if requested. Handle microMIPS code. Bail out
6768 on an invalid ISA.
6769 (micromips_op): New macro.
6770 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6771 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6772 (b6s4_op, b7s3_reg): Likewise.
6773 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6774 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6775 (mips_insn_size): New function.
6776 (mips32_next_pc): Update mips_fetch_instruction call.
6777 (micromips_relative_offset7): New function.
6778 (micromips_relative_offset10): Likewise.
6779 (micromips_relative_offset16): Likewise.
6780 (micromips_pc_insn_size): Likewise.
6781 (micromips_bc1_pc): Likewise.
6782 (micromips_next_pc): Likewise.
6783 (unpack_mips16): Update mips_fetch_instruction call.
6784 (extended_mips16_next_pc): Update according to change to
6785 mips16_to_32_reg.
6786 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6787 code.
6788 (mips16_scan_prologue): Update mips_fetch_instruction call.
6789 Update according to change to mips16_to_32_reg.
6790 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6791 (mips_insn16_frame_base_sniffer): Likewise.
6792 (micromips_decode_imm9): New function.
6793 (micromips_scan_prologue): Likewise.
6794 (mips_micro_frame_cache): Likewise.
6795 (mips_micro_frame_this_id): Likewise.
6796 (mips_micro_frame_prev_register): Likewise.
6797 (mips_micro_frame_sniffer): Likewise.
6798 (mips_micro_frame_unwind): New variable.
6799 (mips_micro_frame_base_address): New function.
6800 (mips_micro_frame_base): New variable.
6801 (mips_micro_frame_base_sniffer): New function.
6802 (mips32_scan_prologue): Update mips_fetch_instruction call.
6803 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6804 rather than for MIPS16.
6805 (mips_insn32_frame_base_sniffer): Likewise.
6806 (mips_addr_bits_remove): Handle microMIPS code.
6807 (deal_with_atomic_sequence): Rename to...
6808 (mips_deal_with_atomic_sequence): ... this. Update the type
6809 of the variable used to hold an instruction. Remove the ISA bit
6810 check. Update mips_fetch_instruction call.
6811 (micromips_deal_with_atomic_sequence): New function.
6812 (deal_with_atomic_sequence): Likewise.
6813 (mips_about_to_return): Handle microMIPS code. Update
6814 mips_fetch_instruction call.
6815 (heuristic_proc_start): Check for the standard MIPS ISA rather
6816 than for MIPS16. Update mips_pc_is_mips16 and
6817 mips_fetch_instruction calls. Handle microMIPS code.
6818 (mips_push_dummy_code): Handle microMIPS code.
6819 (mips_eabi_push_dummy_call): Likewise.
6820 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6821 (mips_o64_push_dummy_call): Handle microMIPS code.
6822 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6823 (is_delayed): Remove function.
6824 (mips_single_step_through_delay): Replace the call to is_delayed
6825 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6826 Handle microMIPS code.
6827 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6828 microMIPS code.
6829 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6830 call.
6831 (micromips_in_function_epilogue_p): New function.
6832 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6833 call.
6834 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6835 Handle microMIPS.
6836 (gdb_print_insn_mips): Likewise.
6837 (mips_breakpoint_from_pc): Likewise.
6838 (mips_remote_breakpoint_from_pc): New function.
6839 (mips32_instruction_has_delay_slot): Simplify making use of the
6840 updated mips_fetch_instruction interface.
6841 (micromips_instruction_has_delay_slot): New function.
6842 (mips16_instruction_has_delay_slot): Simplify making use of the
6843 updated mips_fetch_instruction interface.
6844 (mips_adjust_breakpoint_address): Check for the standard MIPS
6845 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6846 calls. Handle microMIPS code.
6847 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6848 (mips_skip_trampoline_code): Handle microMIPS code.
6849 (global_mips_compression): New function.
6850 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6851 file flags. Register the microMIPS remote breakpoint handler
6852 and heuristic frame unwinder.
6853 (show_mips_compression): New function.
6854 (_initialize_mips_tdep): Add the "set mips compression" and
6855 "show mips compression" commands.
6856
6857 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6858
6859 * ada-lang.c:
6860 * ada-tasks.c:
6861 * ada-varobj.c:
6862 * amd64-darwin-tdep.c:
6863 * arm-symbian-tdep.c:
6864 * arm-tdep.c:
6865 * avr-tdep.c:
6866 * ax-gdb.c:
6867 * bfin-linux-tdep.c:
6868 * breakpoint.c:
6869 * c-valprint.c:
6870 * cli/cli-cmds.c:
6871 * coffread.c:
6872 * cp-support.c:
6873 * cris-tdep.c:
6874 * dwarf2-frame-tailcall.c:
6875 * dwarf2-frame.c:
6876 * dwarf2expr.c:
6877 * dwarf2loc.c:
6878 * dwarf2read.c:
6879 * elfread.c:
6880 * eval.c:
6881 * expprint.c:
6882 * f-valprint.c:
6883 * frv-tdep.c:
6884 * h8300-tdep.c:
6885 * hppa-hpux-tdep.c:
6886 * hppa-tdep.c:
6887 * hppanbsd-tdep.c:
6888 * i386-nto-tdep.c:
6889 * i386-tdep.c:
6890 * i387-tdep.c:
6891 * ia64-tdep.c:
6892 * jit.c:
6893 * linespec.c:
6894 * linux-tdep.c:
6895 * lm32-tdep.c:
6896 * m2-valprint.c:
6897 * m32c-tdep.c:
6898 * m32r-rom.c:
6899 * m32r-tdep.c:
6900 * m68k-tdep.c:
6901 * m68klinux-tdep.c:
6902 * mi/mi-main.c:
6903 * microblaze-tdep.c:
6904 * mips-linux-tdep.c:
6905 * mips-tdep.c:
6906 * mn10300-tdep.c:
6907 * p-valprint.c:
6908 * parse.c:
6909 * ppc-linux-tdep.c:
6910 * ppc-sysv-tdep.c:
6911 * printcmd.c:
6912 * python/py-finishbreakpoint.c:
6913 * python/py-inferior.c:
6914 * python/py-infthread.c:
6915 * python/py-type.c:
6916 * python/python.c:
6917 * remote-fileio.c:
6918 * remote-m32r-sdi.c:
6919 * remote-mips.c:
6920 * reverse.c:
6921 * rl78-tdep.c:
6922 * rs6000-aix-tdep.c:
6923 * rs6000-tdep.c:
6924 * s390-tdep.c:
6925 * score-tdep.c:
6926 * sh64-tdep.c:
6927 * skip.c:
6928 * solib-darwin.c:
6929 * solib-dsbt.c:
6930 * solib-frv.c:
6931 * sparc-tdep.c:
6932 * spu-multiarch.c:
6933 * spu-tdep.c:
6934 * stack.c:
6935 * symfile.c:
6936 * symtab.c:
6937 * tic6x-tdep.c:
6938 * tracepoint.c:
6939 * v850-tdep.c:
6940 * valarith.c:
6941 * valprint.c:
6942 * value.c:
6943 * xcoffread.c:
6944 * xtensa-tdep.c:
6945 * ada-lang.c:
6946 * ada-tasks.c:
6947 * ada-varobj.c:
6948 * amd64-darwin-tdep.c:
6949 * arm-symbian-tdep.c:
6950 * arm-tdep.c: Delete unused variables.
6951
6952 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6953
6954 Rename $ddir to $datadir.
6955 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6956 * auto-load.c (auto_load_safe_path_vec_update)
6957 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6958 * configure: Regenerate.
6959 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6960 Likewise. Remove the 'use $ddir' help string.
6961
6962 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6963
6964 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6965 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6966
6967 2012-05-18 Tom Tromey <tromey@redhat.com>
6968
6969 PR exp/13907:
6970 * valprint.h (struct value_print_options) <symbol_print>: New
6971 field.
6972 * valprint.c (user_print_options): Add default for symbol_print.
6973 (show_symbol_print): New function.
6974 (generic_val_print): Respect symbol_print.
6975 (_initialize_valprint): Add "print symbol" setting.
6976 * f-valprint.c (f_val_print): Respect symbol_print.
6977 * c-valprint.c (c_val_print): Respect symbol_print.
6978 * NEWS: Update.
6979 * printcmd.c (print_address_symbolic): Return int. Ignore some
6980 zero-size symbols.
6981 (print_address_demangle): Return int.
6982 * defs.h: (print_address_symbolic): Return int.
6983 * value.h (print_address_demangle): Return int.
6984
6985 2012-05-18 Tom Tromey <tromey@redhat.com>
6986
6987 * valprint.c (val_print_string): Don't print leading space.
6988 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6989 print space before string or vtbl.
6990 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6991 before string.
6992 * jv-valprint.c (java_value_print): Print space before string.
6993 * go-valprint.c (print_go_string): Print space before string.
6994 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6995 space before string.
6996 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6997 space before string or vtbl.
6998 * auxv.c (fprint_target_auxv): Print space after address.
6999
7000 2012-05-18 Tom Tromey <tromey@redhat.com>
7001
7002 * printcmd.c (print_address_demangle): Remove special case for 0.
7003
7004 2012-05-18 Tom Tromey <tromey@redhat.com>
7005
7006 * printcmd.c (print_address_demangle): Add 'opts' argument.
7007 * p-valprint.c (pascal_val_print): Update.
7008 * jv-valprint.c (java_val_print): Update.
7009 * value.h: Update.
7010 * valprint.c (generic_val_print): Update.
7011 (print_function_pointer_address): Add 'options' argument. Remove
7012 'addressprint' argument. Update.
7013 * m2-valprint.c (print_unpacked_pointer): Update.
7014 * gnu-v3-abi.c (print_one_vtable): Update.
7015 (gnuv3_print_method_ptr): Update.
7016 * f-valprint.c (f_val_print): Update.
7017 * cp-valprint.c (cp_print_value_fields): Update.
7018 * valprint.h (print_function_pointer_address): Update.
7019 * c-valprint.c (c_val_print): Update.
7020
7021 2012-05-18 Tom Tromey <tromey@redhat.com>
7022
7023 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7024 directly corresponding to the found psymtab.
7025 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7026 (dw2_find_pc_sect_symtab): Use it.
7027 * block.h (blockvector_contains_pc): Declare.
7028 * block.c (find_block_in_blockvector): New function.
7029 (blockvector_for_pc_sect): Use it.
7030 (blockvector_contains_pc): New function.
7031
7032 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7033
7034 * mips-tdep.h (mips_write_pc): New prototype.
7035 * mips-tdep.c (mips_write_pc): Make external, add description.
7036 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7037 add description.
7038
7039 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7040
7041 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7042 mips_regnum->pc.
7043 (mips_unwind_pc, mips_write_pc): Likewise.
7044 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7045 gdbarch_read_pc.
7046
7047 2012-05-17 Joel Brobecker <brobecker@adacore.com>
7048
7049 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7050 proc_warn, proc_error, proc_get_status, proc_flags,
7051 proc_why, proc_what, proc_nsysarg, proc_sysargs,
7052 proc_set_run_on_last_close, proc_unset_run_on_last_close,
7053 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7054 proc_stop_process, proc_wait_for_stop, proc_run_process,
7055 proc_set_traced_signals, proc_set_traced_faults,
7056 proc_set_traced_sysentry, proc_set_traced_sysexit,
7057 proc_set_held_signals, proc_get_held_signals,
7058 proc_get_traced_signals, proc_get_traced_faults,
7059 proc_get_traced_sysentry, proc_get_traced_sysexit,
7060 proc_clear_current_fault, proc_set_current_signal,
7061 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7062 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7063 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7064 proc_get_current_thread, proc_get_current_thread,
7065 proc_get_current_thread, proc_update_threads,
7066 proc_update_threads, proc_update_threads, proc_update_threads,
7067 proc_iterate_over_threads, procfs_find_new_threads,
7068 procfs_pid_to_str): Make static. Remove advance declaration.
7069 (proc_cursig): Make static. Conditionalized defintion on
7070 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7071 (proc_syscall, proc_set_kill_on_last_close,
7072 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7073 proc_get_pending_signals, proc_get_signal_actions,
7074 proc_trace_signal, proc_ignore_signal): Delete.
7075
7076 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7077
7078 * coffread.c (cs_section_address): Passing proper argument for
7079 `bfd_get_section_vma'.
7080 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7081 `bfd_get_section_flags'.
7082 * remote.c (remote_trace_set_readonly_regions): Likewise, for
7083 `bfd_get_section_vma'.
7084
7085 2012-05-16 Tom Tromey <tromey@redhat.com>
7086
7087 PR macros/13205:
7088 * macrotab.h: (macro_define_special): Declare.
7089 (enum macro_special_kind): New.
7090 (struct macro_definition) <argc, replacement>: Update comments.
7091 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7092 (macro_define_object_internal): New function.
7093 (macro_define_object): Use it.
7094 (macro_define_special): New function.
7095 (fixup_definition): New function.
7096 (macro_lookup_definition, foreach_macro_in_scope)
7097 (foreach_macro): Use fixup_definition.
7098 * macroexp.h (macro_stringify): Declare.
7099 * macroexp.c (free_buffer_return_text): New function.
7100 (stringify): Constify "arg".
7101 (macro_stringify): New function.
7102 * dwarf2read.c (macro_start_file): Call macro_define_special.
7103
7104 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
7105 Maciej W. Rozycki <macro@mips.com>
7106
7107 * breakpoint.h (bp_location): Add related_address member.
7108 * inferior.h (get_return_value): Take a pointer to struct value
7109 instead of struct type for the function requested.
7110 * value.h (using_struct_return): Likewise.
7111 * gdbarch.sh (return_value): Take a pointer to struct value
7112 instead of struct type for the function requested.
7113 * breakpoint.c (set_breakpoint_location_function): Initialize
7114 related_address for bp_gnu_ifunc_resolver breakpoints.
7115 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7116 requested function's address to gdbarch_return_value.
7117 * eval.c (evaluate_subexp_standard): Pass the requested
7118 function's address to using_struct_return.
7119 * infcall.c (call_function_by_hand): Pass the requested
7120 function's address to using_struct_return and
7121 gdbarch_return_value.
7122 * infcmd.c (get_return_value): Take a pointer to struct value
7123 instead of struct type for the function requested.
7124 (print_return_value): Update accordingly.
7125 (finish_command_continuation): Likewise.
7126 * stack.c (return_command): Pass the requested function's
7127 address to using_struct_return and gdbarch_return_value.
7128 * value.c (using_struct_return): Take a pointer to struct value
7129 instead of struct type for the function requested. Pass the
7130 requested function's address to gdbarch_return_value.
7131 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7132 New function_value member, replacing function_type.
7133 (bpfinishpy_dealloc): Update accordingly.
7134 (bpfinishpy_pre_stop_hook): Likewise.
7135 (bpfinishpy_init): Likewise. Record the requested function's
7136 address.
7137 * mips-tdep.c (mips_fval_reg): New enum.
7138 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7139 words put in GP registers.
7140 (mips_o64_push_dummy_call): Update a comment.
7141 (mips_o32_return_value): Take a pointer to struct value instead
7142 of struct type for the function requested and use it to check if
7143 using the MIPS16 calling convention. Return the designated
7144 general purpose registers for floating-point values returned in
7145 MIPS16 mode.
7146 (mips_o64_return_value): Likewise.
7147 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7148 (ppc_sysv_abi_broken_return_value): Likewise.
7149 (ppc64_sysv_abi_return_value): Likewise.
7150 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7151 value instead of struct type for the function requested.
7152 * amd64-tdep.c (amd64_return_value): Likewise.
7153 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7154 * arm-tdep.c (arm_return_value): Likewise.
7155 * avr-tdep.c (avr_return_value): Likewise.
7156 * bfin-tdep.c (bfin_return_value): Likewise.
7157 * cris-tdep.c (cris_return_value): Likewise.
7158 * frv-tdep.c (frv_return_value): Likewise.
7159 * h8300-tdep.c (h8300_return_value): Likewise.
7160 (h8300h_return_value): Likewise.
7161 * hppa-tdep.c (hppa32_return_value): Likewise.
7162 (hppa64_return_value): Likewise.
7163 * i386-tdep.c (i386_return_value): Likewise.
7164 * ia64-tdep.c (ia64_return_value): Likewise.
7165 * iq2000-tdep.c (iq2000_return_value): Likewise.
7166 * lm32-tdep.c (lm32_return_value): Likewise.
7167 * m32c-tdep.c (m32c_return_value): Likewise.
7168 * m32r-tdep.c (m32r_return_value): Likewise.
7169 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7170 * m68k-tdep.c (m68k_return_value): Likewise.
7171 (m68k_svr4_return_value): Likewise.
7172 * m88k-tdep.c (m88k_return_value): Likewise.
7173 * mep-tdep.c (mep_return_value): Likewise.
7174 * microblaze-tdep.c (microblaze_return_value): Likewise.
7175 * mn10300-tdep.c (mn10300_return_value): Likewise.
7176 * moxie-tdep.c (moxie_return_value): Likewise.
7177 * mt-tdep.c (mt_return_value): Likewise.
7178 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7179 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7180 (ppc_sysv_abi_broken_return_value): Likewise.
7181 (ppc64_sysv_abi_return_value): Likewise.
7182 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7183 * rl78-tdep.c (rl78_return_value): Likewise.
7184 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7185 * rx-tdep.c (rx_return_value): Likewise.
7186 * s390-tdep.c (s390_return_value): Likewise.
7187 * score-tdep.c (score_return_value): Likewise.
7188 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7189 (sh_return_value_fpu): Likewise.
7190 * sh64-tdep.c (sh64_return_value): Likewise.
7191 * sparc-tdep.c (sparc32_return_value): Likewise.
7192 * sparc64-tdep.c (sparc64_return_value): Likewise.
7193 * spu-tdep.c (spu_return_value): Likewise.
7194 * tic6x-tdep.c (tic6x_return_value): Likewise.
7195 * v850-tdep.c (v850_return_value): Likewise.
7196 * vax-tdep.c (vax_return_value): Likewise.
7197 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7198 * xtensa-tdep.c (xtensa_return_value): Likewise.
7199 * gdbarch.c: Regenerate.
7200 * gdbarch.h: Regenerate.
7201
7202 2012-05-15 Tom Tromey <tromey@redhat.com>
7203
7204 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7205
7206 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7207
7208 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7209 of command in two error message.
7210
7211 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7212
7213 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7214
7215 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7216
7217 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7218
7219 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7220
7221 * NEWS (show auto-load scripts-directory): Add forgotten command.
7222
7223 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7224
7225 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7226 parameters.
7227
7228 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7229
7230 * amd64-tdep.c: Include features/i386/x32.c and
7231 features/i386/x32-avx.c.
7232 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7233 initialize_tdesc_x32_avx.
7234
7235 2012-05-14 Stan Shebs <stan@codesourcery.com>
7236
7237 Add dynamic printf.
7238 * breakpoint.h (enum bptype): New type bp_dprintf.
7239 (struct breakpoint): New field extra_string.
7240 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7241 (create_breakpoint): Add extra_string arg.
7242 * breakpoint.c (dprintf_breakpoint_ops): New.
7243 (is_breakpoint): Add bp_dprintf.
7244 (bpstat_what): Add dprintf case.
7245 (bptype_string): Ditto.
7246 (print_one_breakpoint_location): Ditto.
7247 (init_bp_location): Ditto.
7248 (bkpt_print_mention): Ditto.
7249 (dprintf_style_enums): New array.
7250 (dprintf_style): New global.
7251 (dprintf_function): New global.
7252 (dprintf_channel): New global.
7253 (update_dprintf_command_list): New function.
7254 (update_dprintf_commands): New function.
7255 (init_breakpoint_sal): Add extra_string argument, handle it.
7256 (create_breakpoint_sal): Add extra_string argument.
7257 (create_breakpoints_sal): Add extra_string argument, update callers.
7258 (find_condition_and_thread): Add extra argument.
7259 (create_breakpoint): Add extra_string argument, record it.
7260 (dprintf_command): New function.
7261 (break_command_1): Add arg to create_breakpoint call.
7262 (handle_gnu_v3_exceptions): Ditto.
7263 (trace_command): Ditto.
7264 (ftrace_command): Ditto.
7265 (strace_command): Ditto.
7266 (bkpt_print_mention): Add dprintf case.
7267 (create_breakpoint_sal_default): Add extra_string argument.
7268 (_initialize_breakpoint): Add new commands.
7269 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7270 * python/py-breakpoint.c (bppy_init): Ditto.
7271 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7272
7273 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7274
7275 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7276
7277 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7278
7279 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7280 unsigned long long.
7281
7282 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7283
7284 Add a new function gdb.find_pc_line to the Python API.
7285 * NEWS (Python Scripting): Add entry about the new function.
7286 * python/python.c (gdbpy_find_pc_line): New function which
7287 implements gdb.find_pc_line.
7288 (GdbMethods): Add entry for the new function.
7289
7290 2012-05-12 Pedro Alves <palves@redhat.com>
7291
7292 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7293 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7294
7295 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7296
7297 * inferior.c: Include completer.h
7298 (initialize_inferiors): Set completer of add-inferior to
7299 filename_completer.
7300
7301 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7302
7303 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7304 gdbarch_ptr_bit for x32 core dump.
7305
7306 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7307
7308 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7309 and features/i386/x32-avx-linux.c.
7310
7311 2012-05-11 Stan Shebs <stan@codesourcery.com>
7312 Kwok Cheung Yeung <kcy@codesourcery.com>
7313
7314 * NEWS: Describe new info os commands.
7315 * common/linux-osdata.c (PID_T, TIME_T): Define.
7316 (MAX_PID_T_STRLEN): New.
7317 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7318 MAX_PID_T_STRLEN.
7319 (command_from_pid): Add comment. Change to use PID_T.
7320 (commandline_from_pid): Change to use PID_T.
7321 (user_from_pid): Add comment.
7322 (get_process_owner): Add comment. Change to use PID_T and
7323 MAX_PID_T_STRLEN.
7324 (get_number_of_cpu_cores): Add comment.
7325 (get_cores_used_by_process): Add comment. Change to use PID_T and
7326 MAX_PID_T_STRLEN.
7327 (linux_xfer_osdata_processes): Change to use PID_T and
7328 MAX_PID_T_STRLEN.
7329 (compare_processes): New function.
7330 (linux_xfer_osdata_processgroups): New function.
7331 (linux_xfer_osdata_threads): Change to use PID_T.
7332 (linux_xfer_osdata_fds): New function.
7333 (format_socket_state, print_sockets): New functions.
7334 (union socket_addr): New union.
7335 (linux_xfer_osdata_isockets): New function.
7336 (time_from_time_t, group_from_gid): New functions.
7337 (linux_xfer_osdata_shm): New function.
7338 (linux_xfer_osdata_sem): New function.
7339 (linux_xfer_osdata_msg): New function.
7340 (linux_xfer_osdata_modules): New function.
7341 (osdata_table): Add new entries.
7342 * common/buffer.c (buffer_xml_printf): Add support for long and
7343 long long format specifiers.
7344
7345 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7346
7347 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7348 (tdesc_x32_avx_linux): Likewise.
7349
7350 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7351
7352 Implement multi-component --with-auto-load-dir.
7353 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7354 entries.
7355 (--with-auto-load-safe-path): Update the default value description.
7356 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7357 New.
7358 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7359 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7360 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7361 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7362 "set auto-load scripts-directory".
7363 * config.in: Regenerate.
7364 * configure: Regenerate.
7365 * configure.ac (--with-auto-load-dir): New configure option.
7366 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7367
7368 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7369
7370 Provide $ddir substitution for --with-auto-load-safe-path.
7371 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7372 entries.
7373 * auto-load.c: Include observer.h.
7374 (auto_load_safe_path_vec_update): Call substitute_path_component for
7375 each component. New variable ddir_subst.
7376 (auto_load_gdb_datadir_changed): New function.
7377 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7378 AUTO_LOAD_SAFE_PATH. New comment.
7379 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7380 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7381 * config.in: Regenerate.
7382 * configure: Regenerate.
7383 * configure.ac (--auto-load-safe-path): Rename
7384 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7385 GDB_DATADIR/auto-load.
7386 * defs.h (substitute_path_component): New declaration.
7387 * top.c: Include observer.h.
7388 (set_gdb_datadir): New function.
7389 (init_main): Install it for "set data-directory".
7390 * utils.c (substitute_path_component): New function.
7391
7392 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7393
7394 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7395 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7396 DEBUG_FILE_DIRECTORY. Handle multiple components of
7397 DEBUG_FILE_DIRECTORY.
7398
7399 2012-05-10 Tom Tromey <tromey@redhat.com>
7400
7401 * dwarf2read.c (recursively_write_psymbols): New function.
7402 (write_psymtabs_to_index): Use it.
7403
7404 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7405 field.
7406 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7407 (load_partial_comp_unit): Update.
7408 (queue_comp_unit): Add argument 'pretend_language'.
7409 (process_queue): Update.
7410 (psymtab_to_symtab_1): Skip dependencies that have a user.
7411 (load_partial_comp_unit_reader): Give meaning to the 'data'
7412 argument.
7413 (load_full_comp_unit): Add 'pretend_language' argument.
7414 (process_full_comp_unit): Add 'pretend_language' argument. Set
7415 language on CU.
7416 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7417 Update.
7418 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7419 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7420 Update.
7421 (prepare_one_comp_unit): Add 'pretend_language' argument.
7422
7423 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7424 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7425 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7426 (dw2_do_instantiate_symtab): Check whether symtab was read in
7427 before queueing.
7428 (dw2_instantiate_symtab): Add assertion. Call
7429 process_cu_includes.
7430 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7431 (partial_symtab_p): New typedef.
7432 (set_partial_user): New function.
7433 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7434 (scan_partial_symbols): Add imported CU to imported_symtabs.
7435 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7436 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7437 (get_symtab, recursively_compute_inclusions)
7438 (compute_symtab_includes, process_cu_includes)
7439 (process_imported_unit_die): New functions.
7440 (process_die) <DW_TAG_imported_unit>: New case.
7441 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7442
7443 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7444 comment.
7445 (struct partial_die_info) <locdesc>: Remove.
7446 <d>: New field.
7447 (process_psymtab_comp_unit): Add 'read_partial' argument.
7448 Update.
7449 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7450 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7451 (add_partial_symbol): Update.
7452 (process_die): Handle DW_TAG_partial_unit.
7453 (read_file_scope): Update comment.
7454 (load_partial_dies): Handle DW_TAG_imported_unit.
7455 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7456 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7457
7458 2012-05-10 Tom Tromey <tromey@redhat.com>
7459
7460 * cc-with-dwz.sh: New file.
7461
7462 2012-05-10 Tom Tromey <tromey@redhat.com>
7463
7464 * symtab.h (struct symtab) <includes, user>: New fields.
7465 * block.h (struct block_iterator) <d, idx, which>: New fields.
7466 * block.c (initialize_block_iterator, find_iterator_symtab)
7467 (block_iterator_step, block_iter_name_step)
7468 (block_iter_match_step): New functions.
7469 (block_iterator_first, block_iterator_next)
7470 (block_iter_name_first, block_iter_name_next)
7471 (block_iter_match_first, block_iter_match_next): Rewrite.
7472 (get_block_symtab): New function.
7473
7474 2012-05-10 Tom Tromey <tromey@redhat.com>
7475
7476 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7477 set_block_symtab.
7478 * jit.c (finalize_symtab): Use allocate_global_block,
7479 set_block_symtab.
7480 * buildsym.c (finish_block_internal): New function, from old
7481 finish_block.
7482 (finish_block): Rewrite.
7483 (end_symtab): Use finish_block_internal, set_block_symtab.
7484 * block.h (struct global_block): New.
7485 (allocate_global_block, set_block_symtab): Declare.
7486 * block.c (allocate_global_block, set_block_symtab): New
7487 functions.
7488
7489 2012-05-10 Tom Tromey <tromey@redhat.com>
7490
7491 * psymtab.c (partial_map_expand_apply): Add assertion.
7492 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7493 (psymtab_to_symtab): Find unshared psymtab.
7494 (dump_psymtab): Print including psymtabs.
7495 (recursively_search_psymtabs): New function.
7496 (expand_symtabs_matching_via_partial): Use it.
7497 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7498 fields.
7499 (enum psymtab_search_status): New.
7500
7501 2012-05-10 Tom Tromey <tromey@redhat.com>
7502
7503 * tracepoint.c (scope_info): Update.
7504 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7505 (find_pc_sect_symtab, search_symbols)
7506 (default_make_symbol_completion_list_break_on)
7507 (make_file_symbol_completion_list): Update.
7508 * symmisc.c (dump_symtab_1): Update.
7509 * stack.c (print_frame_args, iterate_over_block_locals)
7510 (print_frame_labels, iterate_over_block_arg_vars): Update.
7511 * python/py-block.c (block_object) <dict>: Remove.
7512 <block>: New field.
7513 <iter>: Change type.
7514 (blpy_iter): Update.
7515 (blpy_block_syms_iternext): Update.
7516 * psymtab.c (map_block): Use block iterators.
7517 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7518 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7519 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7520 * infrun.c (check_exception_resume): Update.
7521 * cp-support.c (make_symbol_overload_list_block): Update.
7522 * coffread.c (patch_opaque_types): Update.
7523 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7524 * block.h (struct block_iterator): New.
7525 (block_iterator_first, block_iterator_next, block_iter_name_first)
7526 (block_iter_name_next, block_iter_match_first)
7527 (block_iter_match_next): Declare.
7528 (ALL_BLOCK_SYMBOLS): Redefine.
7529 * block.c (block_iterator_first, block_iterator_next)
7530 (block_iter_name_first, block_iter_name_next)
7531 (block_iter_match_first, block_iter_match_next): New functions.
7532 * ada-lang.c (ada_add_block_symbols)
7533 (ada_make_symbol_completion_list): Use block iterator.
7534
7535 2012-05-10 Tom Tromey <tromey@redhat.com>
7536
7537 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7538 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7539 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7540 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7541 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7542 Update.
7543
7544 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7545
7546 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7547 print-file-var-lib2.c, print-file-var-main.c and
7548 print-file-var.exp (located in gdb/testsuite/gdb.base).
7549
7550 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7551
7552 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7553 try locating the symbol in the symbol's own objfile first, before
7554 extending the search to all objfiles.
7555 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7556 out of lookup_symbol_aux_symtabs.
7557 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7558 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7559 Do not search EXCLUDE_OBJFILE.
7560 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7561 (lookup_symbol_global): Search for matches in the block's objfile
7562 first, before searching all other objfiles.
7563
7564 2012-05-10 Tristan Gingold <gingold@adacore.com>
7565
7566 * printcmd.c (set_command): Add pre/post inc/dec.
7567
7568 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7569
7570 * gdb.1: Document -ex option.
7571
7572 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7573
7574 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7575 * inferior.h (AT_SYMBOL): Delete.
7576
7577 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7578
7579 * mips-tdep.c (mips_push_dummy_code): New function.
7580 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7581 ON_STACK and install mips_push_dummy_code as our gdbarch
7582 push_dummy_code routine.
7583
7584 2012-05-09 Pedro Alves <palves@redhat.com>
7585
7586 * target.c (set_maintenance_target_async_permitted): Rename to ...
7587 (set_target_async_command): ... this.
7588 (show_maintenance_target_async_permitted): Rename to ...
7589 (show_target_async_command): ... this.
7590 (initialize_targets): Adjust.
7591
7592 2012-05-08 Doug Evans <dje@google.com>
7593
7594 * go-exp.y (classify_name): Add missing assignment of fields of
7595 yylval.ssym.
7596
7597 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7598
7599 Display the ">" prompt in interactive mode while reading canned
7600 commands, even when the current interpreter is MI.
7601
7602 * interps.c (interp_set_temp): New function.
7603
7604 * interps.h (interp_set_temp): Add prototype.
7605
7606 * cli/cli-script.c (restore_interp): New cleanup function.
7607 (read_command_lines): Temporarily override the current interpreter
7608 with CLI and arrange for restoring the original one.
7609
7610 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7611
7612 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7613
7614 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7615
7616 * probe.c (parse_probes): Move conditional to check for
7617 debuginfo files from here...
7618 * stap-probe.c (stap_get_probes): ... to here.
7619
7620 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7621 H.J. Lu <hongjiu.lu@intel.com>
7622
7623 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7624 `movl %esp, %ebp' for the X32 ABI.
7625
7626 2012-05-07 Tom Tromey <tromey@redhat.com>
7627
7628 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7629 get_DW_TAG_name.
7630 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7631 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7632 (dwarf_stack_op_name): Remove.
7633 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7634 (decode_locdesc): Use get_DW_OP_name.
7635 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7636 (dwarf2_compile_expr_to_ax): Likewise.
7637 (disassemble_dwarf_expression): Likewise.
7638 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7639
7640 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7641
7642 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7643 (sh_linux_sigtramp_cache): New function.
7644 (sh_linux_sigreturn_init): New function.
7645 (sh_linux_rt_sigreturn_init): New function.
7646 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7647 patterns.
7648 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7649 syscall codes.
7650 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7651 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7652 (sh_linux_init_abi): Add init calls to register new tramp_frame
7653 definitions under 32-bit SH, update comments.
7654
7655 2012-05-07 Pedro Alves <palves@redhat.com>
7656
7657 PR gdb/10952
7658
7659 * amd64-linux-tdep.c: Include glibc-tdep.h.
7660 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7661 gdbarch_skip_solib_resolver callback.
7662
7663 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7664
7665 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7666 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7667 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7668 (add_auto_load_safe_path): Change the error message.
7669 (_initialize_auto_load): Change the "safe-path" help text.
7670 * configure: Regenerate
7671 * configure.ac (--without-auto-load-safe-path): Set
7672 WITH_AUTO_LOAD_SAFE_PATH to /.
7673
7674 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7675
7676 * stap-probe.h: Do not include unecessary `probe.h'.
7677
7678 2012-05-05 Alan Modra <amodra@gmail.com>
7679
7680 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7681 bfd_und_section_ptr.
7682 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7683 and bfd_com_section_ptr.
7684
7685 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7686
7687 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7688
7689 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7690
7691 * windows-nat.h (segment_register_p_ftype): New typedef.
7692 (windows_set_segment_register_p): Add declaration.
7693 * windows-nat.c (segment_register_p): New static global.
7694 (windows_set_segment_register_p): New function.
7695 (do_windows_fetch_inferior_registers): Add special handling
7696 for segment registers.
7697 * amd64-windows-nat.c: #include "amd64-tdep.h".
7698 (amd64_windows_segment_register_p): New function.
7699 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7700 * i386-windows-nat.c: #include "i386-tdep.h".
7701 (i386_windows_segment_register_p): New function.
7702 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7703
7704 2012-05-04 Tristan Gingold <gingold@adacore.com>
7705
7706 * printcmd.c (set_command): Emit a warning if the expression is not
7707 an assignment.
7708
7709 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7710
7711 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7712 Make static.
7713
7714 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7715
7716 * stap-probe.c (stap_is_operator): Change declaration.
7717 (stap_get_opcode): Change return value.
7718 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7719 `stap_parse_argument_1'.
7720
7721 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7722
7723 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7724 debug log.
7725
7726 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7727
7728 Add two new methods global_block and static_block to gdb.Symtab
7729 objects.
7730 * NEWS (Python scripting): Add entry about the new methods.
7731 * python/py-symtab.c (stpy_global_block): New function which
7732 implements the gdb.Symtab.global_block() method.
7733 (stpy_static_block): New function which implements the
7734 gdb.Symtab.static_block() method.
7735 (symtab_object_methods): Add entries for the two new methods.
7736
7737 2012-05-03 Doug Evans <dje@google.com>
7738
7739 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7740 files.
7741
7742 2012-05-03 Yao Qi <yao@codesourcery.com>
7743
7744 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7745 space.
7746 (i386_process_record): Ditto.
7747
7748 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7749
7750 * infcall.c (unwind_on_signal_p): Make static.
7751
7752 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7753
7754 * sol-thread.c (solaris_pid_to_str): Make static.
7755 (_initialize_sol_thread): Add prototype.
7756
7757 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7758
7759 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7760
7761 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7762
7763 * MAINTAINERS: Remove myself.
7764
7765 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7766
7767 Fix --without-auto-load-safe-path for MS-Windows host platform.
7768 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7769
7770 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7771
7772 * gdb_curses.h: Undefine KEY_EVENT before including curses
7773 headers. Move "#undef MOUSE_MOVED" before any curses header
7774 inclusion.
7775
7776 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7777
7778 * features/i386/i386-mmx-linux.c: Regenerate.
7779 * features/rs6000/powerpc-32.c: Likewise.
7780 * features/rs6000/powerpc-32l.c: Likewise.
7781 * features/rs6000/powerpc-403.c: Likewise.
7782 * features/rs6000/powerpc-403gc.c: Likewise.
7783 * features/rs6000/powerpc-405.c: Likewise.
7784 * features/rs6000/powerpc-505.c: Likewise.
7785 * features/rs6000/powerpc-601.c: Likewise.
7786 * features/rs6000/powerpc-602.c: Likewise.
7787 * features/rs6000/powerpc-603.c: Likewise.
7788 * features/rs6000/powerpc-604.c: Likewise.
7789 * features/rs6000/powerpc-64.c: Likewise.
7790 * features/rs6000/powerpc-64l.c: Likewise.
7791 * features/rs6000/powerpc-750.c: Likewise.
7792 * features/rs6000/powerpc-860.c: Likewise.
7793 * features/rs6000/powerpc-e500.c: Likewise.
7794 * features/rs6000/powerpc-e500l.c: Likewise.
7795 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7796 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7797 * features/rs6000/rs6000.c: Likewise.
7798
7799 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7800
7801 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7802 variable.
7803 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7804 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7805 (stap_parse_argument) <e>: Likewise.
7806 (handle_stap_probe) <byte_order>: Likewise.
7807
7808 2012-04-30 Doug Evans <dje@google.com>
7809
7810 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7811 init_and_read_dies_worker. All callers updated.
7812 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7813 replaced with init_cutu_and_read_dies.
7814 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7815 (find_partial_die): Remove FIXME. Don't free current CU.
7816
7817 2012-04-30 Sterling Augustine <saugustine@google.com>
7818
7819 * contrib: New directory.
7820 * contrib/test_pubnames_and_indexes.py: New file.
7821
7822 2012-04-30 Doug Evans <dje@google.com>
7823
7824 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7825 All callers updated.
7826 (init_cu_die_reader): Verify the section is non-empty.
7827 (dwarf_decode_line_header): Don't dereference section->asection
7828 until we know the section is present.
7829
7830 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7831
7832 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7833 probes.
7834
7835 2012-04-29 Yao Qi <yao@codesourcery.com>
7836
7837 * gdb-code-style.el: New hook gdb-markup-hook
7838 and gdb-comment-hook.
7839
7840 2012-04-28 Doug Evans <dje@google.com>
7841
7842 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7843 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7844 objfile->obfd.
7845 * symfile.h (dwarf2_debug_sections): New member addr.
7846 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7847 (ctx_no_get_addr_index): New function.
7848 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7849 (ctx_no_get_addr_index): Declare.
7850 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7851 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7852 (dwarf_expr_ctx_funcs): Update.
7853 (needs_get_addr_index): New function.
7854 (needs_frame_ctx_funcs): Update.
7855 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7856 * dwarf2read.c: #include "gdbcore.h".
7857 (dwarf2_per_objfile): New members addr, dwo_files.
7858 (dwarf2_elf_names): Add entry for addr.
7859 (struct dwo_section_names): New type.
7860 (dwo_section_names): New static global.
7861 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7862 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7863 old debug_types_section member updated to use this.
7864 Rename member debug_types_section to info_or_types_section,
7865 all uses updated.
7866 (signatured_type): Rename member type_offset to type_offset_in_tu,
7867 all uses updated. New member type_offset_in_section.
7868 (struct dwo_sections): New type.
7869 (struct dwo_unit): New type.
7870 (struct dwo_file): New type.
7871 (die_reader_specs): New member dwo_file.
7872 (dwarf2_locate_sections): Watch for .debug_addr.
7873 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7874 (dwarf2_read_section): Get bfd of section from bfd's asection,
7875 instead of objfile.
7876 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7877 (create_signatured_type_table_from_index): Initialize
7878 sig_type->info_or_types_section.
7879 (dw2_get_file_names): Statement lists for type units with DWO files
7880 live in the DWO file.
7881 (create_debug_types_hash_table): New function.
7882 (create_all_type_units): Rewrite.
7883 (init_cu_die_reader): New arg dwo_file, all callers updated.
7884 (init_and_read_dies_worker): Get section from
7885 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7886 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7887 continue reading the CU/TU from there.
7888 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7889 updated. Get section from this_cu->info_or_types_section.
7890 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7891 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7892 DW_FORM_GNU_str_index.
7893 (hash_dwo_file, eq_dwo_file): New functions.
7894 (allocate_dwo_file_hash_table): New function.
7895 (hash_dwo_unit, eq_dwo_unit): New functions.
7896 (allocate_dwo_unit_table): New function.
7897 (dwarf2_locate_dwo_sections): New function.
7898 (struct create_dwo_info_table_data): New type.
7899 (create_debug_info_hash_table_reader): New function.
7900 (create_debug_info_hash_table): New function.
7901 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7902 (lookup_dwo_file): New function.
7903 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7904 (free_dwo_file, free_dwo_file_cleanup): New functions.
7905 (free_dwo_file_from_slot, free_dwo_files): New functions.
7906 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7907 (dwarf2_record_block_ranges): Ditto.
7908 (read_partial_die): Ditto.
7909 (process_enumeration_scope): Update to use type_offset_in_section.
7910 (read_full_die_1): New function.
7911 (read_full_die): Rewrite.
7912 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7913 DW_FORM_GNU_str_index.
7914 (read_addr_index_1, read_addr_index): New functions.
7915 (read_addr_index_from_leb128): New function.
7916 (struct dwarf2_read_addr_index_data): New type.
7917 (dwarf2_read_addr_index_reader): New function.
7918 (dwarf2_read_addr_index): New function.
7919 (read_str_index): New function.
7920 (leb128_size): New function.
7921 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7922 If processing a type unit from a DWO file, get the line section
7923 from the DWO file.
7924 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7925 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7926 DW_FORM_GNU_str_index.
7927 (lookup_die_type): Check whether section offset of type's die is
7928 known before looking it up. Remove assert. Condition can
7929 legimately happen for inter-cu type references.
7930 (dwarf_attr_name): Handle Fission attributes.
7931 (dwarf_form_name): Handle Fission forms.
7932 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7933 DW_FORM_GNU_str_index.
7934 (follow_die_sig): Update to use type_offset_in_section.
7935 (decode_locdesc): New case DW_OP_GNU_addr_index.
7936 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7937 DW_FORM_GNU_str_index.
7938 (cu_debug_loc_section): New function.
7939 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7940 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7941 Free DWO files if present.
7942 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7943
7944 Refactor DIE reading.
7945 * dwarf2read.c (dwarf2_per_objfile): Replace members
7946 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7947 (die_reader_specs): New member "die_section". Temporarily make
7948 member "buffer" non-const, pending constifying all info_ptr uses.
7949 (die_reader_func_ftype): New typedef.
7950 (dw2_get_file_names_reader): New function.
7951 (dw2_get_file_names): Rewrite.
7952 (read_and_check_type_unit_head): Rename arg type_offset to
7953 type_offset_in_tu.
7954 (create_all_type_units): Improve debugging message.
7955 Improve dummy type unit check.
7956 (init_cu_die_reader): New arg "section". All callers updated.
7957 (init_and_read_dies_worker): New function.
7958 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7959 (init_cutu_and_read_dies_no_follow): New function.
7960 (init_cutu_and_read_dies_simple): New function.
7961 (process_psymtab_comp_unit_reader): New function.
7962 (process_psymtab_comp_unit): Delete args section,
7963 is_debug_types_section. Rewrite. All callers updated.
7964 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7965 All callers updated. Rewrite.
7966 (load_partial_comp_unit_reader): New function.
7967 (load_partial_comp_unit): Rewrite.
7968 (skip_children): New arg reader. Delete args buffer, cu.
7969 All callers updated.
7970 (skip_one_die): New arg reader. Delete args buffer, cu.
7971 All callers updated.
7972 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7973 All callers updated.
7974 (load_full_comp_unit_reader): New function.
7975 (load_full_comp_unit): Rewrite.
7976 (read_comp_unit): Delete.
7977 (read_die_and_children_1): Delete, contents moved ...
7978 (read_die_and_children): ... here.
7979 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7980 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7981 All callers updated.
7982 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7983 All callers updated.
7984 (find_partial_die): Rewrite load_all_dies support.
7985 (read_attribute_value): New arg reader. Delete args abfd, cu.
7986 All callers updated.
7987 (read_attribute): New arg reader. Delete args abfd, cu.
7988 All callers updated.
7989 (load_full_type_unit): Add assert.
7990 (read_signatured_type_reader): New function.
7991 (read_signatured_type): Rewrite.
7992 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7993 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7994 All callers updated. Set per_cu->cu = NULL after freeing it.
7995 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7996 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7997 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7998 (set_die_type): Update.
7999 (get_die_type_at_offset): Update.
8000 (read_file_scope): Call prepare_one_comp_unit.
8001 (read_type_unit_scope): Ditto.
8002 (prepare_one_comp_unit): Set producer if present.
8003
8004 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
8005
8006 * probe.c (compile_rx_or_error): Silence ARI warning about missing
8007 gettext function on `error'.
8008
8009 2012-04-27 Doug Evans <dje@google.com>
8010
8011 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8012 is empty.
8013
8014 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8015 Tom Tromey <tromey@redhat.com>
8016
8017 * breakpoint.c (struct breakpoint_objfile_data)
8018 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8019 <exception_probes>: New fields.
8020 (free_breakpoint_probes): New function.
8021 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8022 `_Unwind_DebugHook'.
8023 (create_exception_master_breakpoint): Likewise.
8024 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8025 * infrun.c: Including necessary header files for handling SystemTap
8026 probes.
8027 (handle_inferior_event): Handling longjmp breakpoint and exceptions
8028 via SystemTap probes.
8029 (check_exception_resume): Remove `func' argument. Handle exception
8030 unwinding breakpoint set via a SystemTap probe.
8031 (insert_exception_resume_from_probe): New function.
8032
8033 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8034 Tom Tromey <tromey@redhat.com>
8035 Jan Kratochvil <jan.kratochvil@redhat.com>
8036
8037 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8038 (COMMON_OBS): Likewise.
8039 (HFILES_NO_SRCDIR): Add `probe'.
8040 * NEWS: Mention support for static and SystemTap probes.
8041 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8042 SystemTap probes' arguments parser.
8043 * arm-linux-tdep.c: Including headers needed to perform the parsing
8044 of SystemTap probes' arguments.
8045 (arm_stap_is_single_operand): New function.
8046 (arm_stap_parse_special_token): Likewise.
8047 (arm_linux_init_abi): Initializing proper fields used by SystemTap
8048 probes' arguments parser.
8049 * ax-gdb.c (require_rvalue): Removing static declaration.
8050 (gen_expr): Likewise.
8051 * ax-gdb.h (gen_expr): Declaring function.
8052 (require_rvalue): Likewise.
8053 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8054 (bkpt_probe_breakpoint_ops): New variable.
8055 (momentary_breakpoint_from_master): Set the `probe' value.
8056 (add_location_to_breakpoint): Likewise.
8057 (break_command_1): Using proper breakpoint_ops according to the
8058 argument passed by the user in the command line.
8059 (bkpt_probe_insert_location): New function.
8060 (bkpt_probe_remove_location): Likewise.
8061 (bkpt_probe_create_sals_from_address): Likewise.
8062 (bkpt_probe_decode_linespec): Likewise.
8063 (tracepoint_probe_create_sals_from_address): Likewise.
8064 (tracepoint_probe_decode_linespec): Likewise.
8065 (tracepoint_probe_breakpoint_ops): New variable.
8066 (trace_command): Using proper breakpoint_ops according to the
8067 argument passed by the user in the command line.
8068 (initialize_breakpoint_ops): Initializing breakpoint_ops for
8069 static probes on breakpoints and tracepoints.
8070 * breakpoint.h (struct bp_location) <probe>: New field.
8071 * cli-utils.c (skip_spaces_const): New function.
8072 (extract_arg): Likewise.
8073 * cli-utils.h (skip_spaces_const): Likewise.
8074 (extract_arg): Likewise.
8075 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8076 * configure.ac: Append `stap-probe.o' to be generated when ELF
8077 support is present.
8078 * configure: Regenerate.
8079 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8080 * elfread.c: Include `probe.h' and `arch-utils.h'.
8081 (probe_key): New variable.
8082 (elf_get_probes): New function.
8083 (elf_get_probe_argument_count): Likewise.
8084 (elf_evaluate_probe_argument): Likewise.
8085 (elf_compile_to_ax): Likewise.
8086 (elf_symfile_relocate_probe): Likewise.
8087 (stap_probe_key_free): Likewise.
8088 (elf_probe_fns): New variable.
8089 (elf_sym_fns): Add `sym_probe_fns' value.
8090 (elf_sym_fns_lazy_psyms): Likewise.
8091 (elf_sym_fns_gdb_index): Likewise.
8092 (_initialize_elfread): Initialize objfile cache for static
8093 probes.
8094 * gdb_vecs.h (struct probe): New forward declaration.
8095 (probe_p): New VEC declaration.
8096 * gdbarch.c: Regenerate.
8097 * gdbarch.h: Regenerate.
8098 * gdbarch.sh (stap_integer_prefix): New variable.
8099 (stap_integer_suffix): Likewise.
8100 (stap_register_prefix): Likewise.
8101 (stap_register_suffix): Likewise.
8102 (stap_register_indirection_prefix): Likewise.
8103 (stap_register_indirection_suffix): Likewise.
8104 (stap_gdb_register_prefix): Likewise.
8105 (stap_gdb_register_suffix): Likewise.
8106 (stap_is_single_operand): New function.
8107 (stap_parse_special_token): Likewise.
8108 (struct stap_parse_info): Forward declaration.
8109 * i386-tdep.c: Including headers needed to perform the parsing
8110 of SystemTap probes' arguments.
8111 (i386_stap_is_single_operand): New function.
8112 (i386_stap_parse_special_token): Likewise.
8113 (i386_elf_init_abi): Initializing proper fields used by SystemTap
8114 probes' arguments parser.
8115 * i386-tdep.h (i386_stap_is_single_operand): New function.
8116 (i386_stap_parse_special_token): Likewise.
8117 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8118 * mipsread.c (ecoff_sym_fns): Likewise.
8119 * objfiles.c (objfile_relocate1): Support relocation for static
8120 probes.
8121 * parse.c (prefixify_expression): Remove static declaration.
8122 (initialize_expout): Likewise.
8123 (reallocate_expout): Likewise.
8124 * parser-defs.h (initialize_expout): Declare function.
8125 (reallocate_expout): Likewise.
8126 (prefixify_expression): Likewise.
8127 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8128 of SystemTap probes' arguments.
8129 (ppc_stap_is_single_operand): New function.
8130 (ppc_stap_parse_special_token): Likewise.
8131 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8132 probes' arguments parser.
8133 * probe.c: New file, for generic statically defined probe support.
8134 * probe.h: Likewise.
8135 * s390-tdep.c: Including headers needed to perform the parsing of
8136 SystemTap probes' arguments.
8137 (s390_stap_is_single_operand): New function.
8138 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8139 probes' arguments parser.
8140 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8141 * stap-probe.c: New file, for SystemTap probe support.
8142 * stap-probe.h: Likewise.
8143 * symfile.h: Include `gdb_vecs.h'.
8144 (struct sym_probe_fns): New struct.
8145 (struct sym_fns) <sym_probe_fns>: New field.
8146 * symtab.c (init_sal): Initialize `probe' field.
8147 * symtab.h (struct probe): Forward declaration.
8148 (struct symtab_and_line) <probe>: New field.
8149 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8150 locations.
8151 (stop_tracing): Likewise.
8152 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8153
8154 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8155 Tom Tromey <tromey@redhat.com>
8156
8157 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8158 and to compile agent expressions.
8159 * infrun.c (siginfo_make_value): New argument `ignore'.
8160 (siginfo_funcs): New struct.
8161 (_initialize_infrun): New argument when calling
8162 `create_internalvar_type_lazy'.
8163 * thread.c (thread_id_make_value): New argument `ignore'.
8164 (thread_funcs): New struct.
8165 (_initialize_thread): New argument when calling
8166 `create_internalvar_type_lazy'.
8167 * tracepoint.c (sdata_make_value): New argument `ignore'.
8168 (sdata_funcs): New struct.
8169 (_initialize_tracepoint): New argument when calling
8170 `create_internalvar_type_lazy'.
8171 * value.c (make_value): New struct.
8172 (create_internalvar_type_lazy): New argument `data'.
8173 (compile_internalvar_to_ax): New function.
8174 (value_of_internalvar): Properly handling `make_value' case.
8175 (clear_internalvar): Likewise.
8176 (show_convenience): Adding `TRY_CATCH' block.
8177 * value.h (internalvar_make_value): Delete, replace by...
8178 (struct internalvar_funcs): ... this.
8179 (create_internalvar_type_lazy) <fun>: Delete argument.
8180 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8181 (compile_internalvar_to_ax): New function.
8182 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8183 (tlb_funcs): New struct.
8184 (_initialize_windows_tdep): New argument when calling
8185 `create_internalvar_type_lazy'.
8186
8187 2012-04-27 Mark Wielaard <mjw@redhat.com>
8188
8189 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8190 see whether it is an address or a constant offset from DW_AT_low_pc.
8191 (dwarf2_record_block_ranges): Likewise.
8192 (read_partial_die): Likewise.
8193
8194 2012-04-26 Mark Wielaard <mjw@redhat.com>
8195
8196 * MAINTAINERS (Write After Approval): Add myself to the list.
8197
8198 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8199
8200 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8201 (proc_prettyprint_signal): Likewise.
8202 (proc_prettyprint_faultset): Likewise.
8203 (proc_prettyprint_fault): Likewise.
8204 (proc_prettyprint_actionset): Likewise.
8205 (proc_prettyprint_flags): Move to new proc-flags.c section.
8206 (proc_prettyfprint_flags): New prototype.
8207 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8208 (proc_syscall, proc_cursig): Likewise.
8209 (proc_set_kill_on_last_close): Likewise.
8210 (proc_unset_kill_on_last_close): Likewise.
8211 (proc_set_watchpoint): Make static.
8212 (proc_delete_dead_threads): Likewise.
8213 (procfs_set_watchpoint): Likewise.
8214 (_initialize_procfs): Add prototype.
8215 * proc-events.c: Include proc-utils.h.
8216 (init_syscall_table): Make static.
8217 * proc-api.c (_initialize_proc_api): Add prototype.
8218 * proc-flags.c: Include proc-utils.h.
8219
8220 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8221
8222 * configure.ac: Add AC_ARG_PROGRAM.
8223 * configure: Regenerate.
8224
8225 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8226
8227 Fix DW_AT_lower_bound defaults for DWARF-4+.
8228 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8229 high. New variable low_default_is_valid. Implement DWARF-4+
8230 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8231 no default by the DWARF standard.
8232
8233 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8234 Maciej W. Rozycki <macro@codesourcery.com>
8235
8236 * infrun.c (handle_inferior_event): Move the check for return
8237 trampolines ahead of the check for function trampolines.
8238 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8239 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8240 (mips_str_mips16_ret_stub): Likewise.
8241 (mips_str_call_fp_stub): Likewise.
8242 (mips_str_call_stub): Likewise.
8243 (mips_str_fn_stub): Likewise.
8244 (mips_str_pic): Likewise.
8245 (mips_in_frame_stub): New function.
8246 (mips_unwind_pc): Return the return address rather than the PC
8247 if the PC of an intermediate frame is inside a call thunk.
8248 (mips_is_stub_suffix): New function.
8249 (mips_is_stub_mode): Likewise.
8250 (mips_get_mips16_fn_stub_pc): Likewise.
8251 (mips_skip_mips16_trampoline_code): Update to handle all the
8252 currently generated stub types. Don't recurse into __fn_stub
8253 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8254 Use cooked register accesses.
8255 (mips_in_return_stub): Reintroduce function.
8256 (mips_skip_trampoline_code): Traverse trampolines recursively.
8257 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8258
8259 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8260
8261 GDB 7.4.1 released.
8262
8263 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8264
8265 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8266 * features/arm-with-m-vfp-d16.xml: New file. Describes
8267 Cortex-M with VFPv4-sp-d16 FPU register layout.
8268 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8269 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8270 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8271 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8272 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8273
8274 2012-04-25 Doug Evans <dje@google.com>
8275
8276 * cli/cli-decode.c (print_doc_line): Use stream instead of
8277 current_uiout.
8278
8279 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8280
8281 * features/arm-with-iwmmxt.c: Regenerate.
8282 * features/arm-with-m-fpa-layout.c: Likewise.
8283 * features/arm-with-m.c: Likewise.
8284 * features/arm-with-neon.c: Likewise.
8285 * features/arm-with-vfpv2.c: Likewise.
8286 * features/arm-with-vfpv3.c: Likewise.
8287 * features/mips-dsp-linux.c: Likewise.
8288 * features/mips-linux.c: Likewise.
8289 * features/mips64-dsp-linux.c: Likewise.
8290 * features/mips64-linux.c: Likewise.
8291 * features/s390-linux32.c: Likewise.
8292 * features/s390-linux32v1.c: Likewise.
8293 * features/s390-linux32v2.c: Likewise.
8294 * features/s390-linux64.c: Likewise.
8295 * features/s390-linux64v1.c: Likewise.
8296 * features/s390-linux64v2.c: Likewise.
8297 * features/s390x-linux64.c: Likewise.
8298 * features/s390x-linux64v1.c: Likewise.
8299 * features/s390x-linux64v2.c: Likewise.
8300 * features/tic6x-c62x-linux.c: Likewise.
8301 * features/tic6x-c62x.c: Likewise.
8302 * features/tic6x-c64x-linux.c: Likewise.
8303 * features/tic6x-c64x.c: Likewise.
8304 * features/tic6x-c64xp-linux.c: Likewise.
8305 * features/tic6x-c64xp.c: Likewise.
8306 * target-descriptions.c: Only generate `field_type' and `type'
8307 variables when needed.
8308
8309 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8310
8311 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8312
8313 2012-04-25 Doug Evans <dje@google.com>
8314
8315 Initial pass at Go language support.
8316 * NEWS: Mention Go.
8317 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8318 go-valprint.c.
8319 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8320 (YYFILES): Add go-exp.c.
8321 (YYOBJ): Add go-exp.o.
8322 (local-maintainer-clean): Delete go-exp.c.
8323 * defs.h (enum language): Add language_go.
8324 * dwarf2read.c: #include "go-lang.h".
8325 (fixup_go_packaging): New function.
8326 (process_full_comp_unit): Call it when processing Go CUs.
8327 (dwarf2_physname): Add Go support.
8328 (read_file_scope): Handle missing language spec for GNU Go.
8329 (set_cu_language): Handle DW_LANG_Go.
8330 * go-exp.y: New file.
8331 * go-lang.h: New file.
8332 * go-lang.c: New file.
8333 * go-typeprint.c: New file.
8334 * go-valprint.c: New file.
8335 * symtab.c: #include "go-lang.h".
8336 (symbol_set_language): Handle language_go.
8337 (symbol_find_demangled_name, symbol_set_names): Ditto.
8338 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8339
8340 2012-04-24 Jim Meyering <meyering@redhat.com>
8341
8342 avoid a few strncpy-induced buffer overruns
8343 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8344 fname and psargs before trying to concatenate.
8345 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8346 "name" before applying strchr.
8347
8348 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8349
8350 * CONTRIBUTE: Use unified diff instead of context diff when
8351 generating patches.
8352
8353 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8354
8355 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8356 code. Handle JR.HB correctly.
8357
8358 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8359
8360 * mips-tdep.c
8361 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8362 with the other MIPS16 helpers.
8363
8364 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8365
8366 * observer.sh: Conditionally declare `args', thus cleaning up
8367 unused instances of this variable.
8368
8369 2012-04-24 Yao Qi <yao@codesourcery.com>
8370
8371 Revert this patch to allow breakpoint always-inserted
8372 in record target.
8373 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8374 * breakpoint.c: Include record.h.
8375 (breakpoints_always_inserted_mode): Return false when the record
8376 target is in use.
8377
8378 * breakpoint.c (iterate_over_bp_locations): New.
8379 * breakpoint.h: Declare.
8380 New typedef walk_bp_location_callback.
8381 * record.c (record_open): Call record_init_record_breakpoints.
8382 (record_sync_record_breakpoints): New.
8383 (record_init_record_breakpoints): New.
8384 * NEWS: Mention supporting breakpoint always-inserted mode in
8385 record target.
8386
8387 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8388
8389 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8390 any thread.
8391
8392 2012-04-24 Yao Qi <yao@codesourcery.com>
8393
8394 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8395 (is_catchpoint): ... it.
8396 (print_one_breakpoint_location): Caller update.
8397 * breakpoint.h: Update declaration.
8398
8399 2012-04-23 David S. Miller <davem@davemloft.net>
8400
8401 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8402
8403 2012-04-23 Tom Tromey <tromey@redhat.com>
8404
8405 * buildsym.c (add_free_pendings): Remove.
8406 * buildsym.h (add_free_pendings): Remove.
8407
8408 2012-04-23 Doug Evans <dje@google.com>
8409
8410 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8411 attr.u.unsnd instead of attr.u.addr.
8412 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8413 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8414 DW_FORM_ref_udata.
8415 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8416 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8417 DW_FORM_ref_udata.
8418 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8419
8420 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8421
8422 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8423 (mips_o32_return_value): Likewise.
8424 (mips_o64_return_value): Likewise.
8425
8426 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8427
8428 * ada-lang.c (ada_evaluate_subexp): Add cases for
8429 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8430 their treatment in eval.c.
8431
8432 2012-04-21 David S. Miller <davem@davemloft.net>
8433
8434 * sparc-tdep.c (X_DISP10): Define.
8435 (sparc_analyze_control_transfer): Handle compare-and-branch.
8436
8437 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8438
8439 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8440 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8441
8442 2012-04-20 Nigel Stephens <nigel@mips.com>
8443 Maciej W. Rozycki <macro@codesourcery.com>
8444
8445 * mips-tdep.c (mips_float_register_p): New function.
8446 (mips_convert_register_float_case_p): Use mips_float_register_p.
8447 (mips_register_type): Likewise.
8448 (mips_print_register): Likewise.
8449 (print_gp_register_row): Likewise.
8450 (mips_print_registers_info): Likewise.
8451
8452 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8453
8454 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8455 of mips16 symbols.
8456
8457 2012-04-20 Andrew Pinski <apinski@cavium.com>
8458
8459 * MAINTAINERS (Write After Approval): Add myself to the list.
8460
8461 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8462
8463 * MAINTAINERS: Update my e-mail address.
8464
8465 2012-04-20 Pedro Alves <palves@redhat.com>
8466
8467 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8468 $srcdir.
8469 * configure: Regenerate.
8470
8471 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8472
8473 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8474 declaration.
8475 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8476
8477 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8478
8479 Fix compilation compatibility with python-2.4
8480 * python/py-type.c (convert_field): Cast ADDRSTRING for
8481 PyObject_SetAttrString as non-const. New comment.
8482
8483 2012-04-19 Tom Tromey <tromey@redhat.com>
8484
8485 * top.c (quit_target): Use all_cleanups.
8486 * main.c (captured_command_loop): Use all_cleanups.
8487 * exceptions.c (throw_exception): Use all_cleanups.
8488
8489 2012-04-19 Pedro Alves <palves@redhat.com>
8490
8491 * Makefile.in (GNULIB_BUILDDIR): New.
8492 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8493 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8494 (CLEANDIRS). Remove gnulib/import.
8495 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8496 (all-lib): Ditto.
8497 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8498 (gnulib/import/Makefile): Replace gnulib/import with
8499 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8500 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8501 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8502 acx_configure_dir.m4.
8503 * acinclude.m4: Include acx_configure_dir.m4.
8504 * acx_configure_dir.m4: New file.
8505 * aclocal.m4: Regenerate.
8506 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8507 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8508 (GNULIB): New variable.
8509 (GNULIB_STDINT_H): Adjust.
8510 (AC_OUTPUT): Don't output gnulib/Makefile.
8511 * gdb/defs.h: Include build-gnulib/config.h.
8512 * aclocal.m4: Regenerate.
8513 * config.in: Regenerate.
8514 * configure: Regenerate.
8515
8516 * gnulib/Makefile.in: New file.
8517 * gnulib/configure.ac: New file.
8518 * gnulib/aclocal.m4: New file.
8519 * gnulib/config.in: New file.
8520 * gnulib/configure: New file.
8521 * gnulib/: Re-run gnulib-tool to adjust.
8522
8523 2012-04-19 Doug Evans <dje@google.com>
8524
8525 * cleanups.h (struct cleanup): Move to cleanups.c.
8526 (make_cleanup_dtor_ftype): New typedef.
8527 (make_cleanup_dtor): Use it.
8528 (ALL_CLEANUPS): Replace with ...
8529 (all_cleanups): ... this. Declare. All uses updated.
8530 * cleanups.c: #include "gdb_assert.h".
8531 (sentinel_cleanup): New static global.
8532 (SENTINEL_CLEANUP): Define.
8533 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8534 (make_my_cleanup2): Assert result is non-NULL.
8535 (all_cleanups): New function.
8536 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8537 of NULL.
8538
8539 2012-04-19 Pedro Alves <palves@redhat.com>
8540
8541 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8542 Adjust paths to gnulib imported files.
8543
8544 2012-04-19 Pedro Alves <palves@redhat.com>
8545
8546 * gnulib/: Move whole directory ...
8547 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8548 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8549 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8550 (aclocal_m4_deps): Adjust.
8551 * aclocal.m4: Regenerate.
8552 * configure: Regenerate.
8553 * configure.ac: Adjust AC_OUTPUT output.
8554
8555 2012-04-19 Yao Qi <yao@codesourcery.com>
8556
8557 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8558 (vec.o): New rule.
8559 * vec.c: Move it ...
8560 * common/vec.c: ... here.
8561 * vec.h: Move it ...
8562 * common/vec.h: ... here.
8563
8564 2012-04-19 Yao Qi <yao@codesourcery.com>
8565
8566 * gdb-code-style.el: New.
8567
8568 2012-04-18 Pedro Alves <palves@redhat.com>
8569
8570 Update gnulib from latest git.
8571 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8572
8573 * gnulib/Makefile.am: Update.
8574 * gnulib/dummy.c: Update.
8575 * gnulib/extra/arg-nonnull.h: Update.
8576 * gnulib/extra/c++defs.h: Update.
8577 * gnulib/extra/update-copyright: Update.
8578 * gnulib/extra/warn-on-use.h: Update.
8579 * gnulib/inttypes.in.h: Update.
8580 * gnulib/m4/00gnulib.m4: Update.
8581 * gnulib/m4/extensions.m4: Update.
8582 * gnulib/m4/gnulib-cache.m4: Update.
8583 * gnulib/m4/gnulib-common.m4: Update.
8584 * gnulib/m4/gnulib-comp.m4: Update.
8585 * gnulib/m4/gnulib-tool.m4: Update.
8586 * gnulib/m4/include_next.m4: Update.
8587 * gnulib/m4/inttypes-pri.m4: Update.
8588 * gnulib/m4/inttypes.m4: Update.
8589 * gnulib/m4/longlong.m4: Update.
8590 * gnulib/m4/memchr.m4: Update.
8591 * gnulib/m4/memmem.m4: Update.
8592 * gnulib/m4/mmap-anon.m4: Update.
8593 * gnulib/m4/multiarch.m4: Update.
8594 * gnulib/m4/onceonly.m4: Update.
8595 * gnulib/m4/stddef_h.m4: Update.
8596 * gnulib/m4/stdint.m4: Update.
8597 * gnulib/m4/string_h.m4: Update.
8598 * gnulib/m4/warn-on-use.m4: Update.
8599 * gnulib/m4/wchar_h.m4: Update.
8600 * gnulib/m4/wchar_t.m4: Update.
8601 * gnulib/m4/wint_t.m4: Update.
8602 * gnulib/memchr.c: Update.
8603 * gnulib/memmem.c: Update.
8604 * gnulib/stddef.in.h: Update.
8605 * gnulib/stdint.in.h: Update.
8606 * gnulib/str-two-way.h: Update.
8607 * gnulib/string.in.h: Update.
8608 * gnulib/wchar.in.h: Update.
8609
8610 * gnulib/extra/arg-nonnull.h: Delete.
8611 * gnulib/extra/c++defs.h: Delete.
8612 * gnulib/extra/warn-on-use.h: Delete.
8613 * gnulib/m4/wchar_h.m4: Delete.
8614 * gnulib/m4/wint_t.m4: Delete.
8615 * gnulib/wchar.in.h: Delete.
8616
8617 * gnulib/extra/snippets/arg-nonnull.h: New.
8618 * gnulib/extra/snippets/c++defs.h: New.
8619 * gnulib/extra/snippets/warn-on-use.h: New.
8620
8621 * aclocal.m4: Regenerate.
8622 * config.in: Regenerate.
8623 * configure: Regenerate.
8624 * gnulib/Makefile.in: Regenerate.
8625
8626 2012-04-18 Pedro Alves <palves@redhat.com>
8627
8628 Reimport the update-copyright module from gnulib
8629 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8630
8631 * configure: Regenerate.
8632 * gnulib/Makefile.am: Update.
8633 * gnulib/Makefile.in: Regenerate.
8634 * gnulib/extra/update-copyright: Update.
8635 * gnulib/m4/gnulib-cache.m4: Update.
8636 * gnulib/m4/gnulib-comp.m4: Update.
8637
8638 2012-04-18 Tristan Gingold <gingold@adacore.com>
8639
8640 * configure.ac (aix): Put -lpthread into libs.
8641 * configure: Regenerate.
8642
8643 2012-04-18 Tom Tromey <tromey@redhat.com>
8644
8645 * linespec.c (convert_linespec_to_sals): Don't use
8646 SYMBOL_OBJ_SECTION.
8647 (compare_msymbols): Arguments are minsym_and_objfile, not
8648 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8649
8650 2012-04-18 Pedro Alves <palves@redhat.com>
8651
8652 Revert gnulib/ part of:
8653 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8654 Copyright year update in most files (performed by copyright.sh).
8655
8656 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8657
8658 Fix 64-bit constants on 32-bit hosts.
8659 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8660 from unsigned long to ULONGEST.
8661 (read_signed_leb128): Change declaration return type from long to
8662 LONGEST.
8663 (dwarf2_const_value_attr): Change declaration parameter value from long
8664 to LONGEST.
8665 (dwarf2_compute_name): Change variable value from long to LONGEST.
8666 (read_unsigned_leb128): Change return type, variable result and some
8667 casts from unsigned long to ULONGEST.
8668 (read_signed_leb128): Change return type, variable result and some
8669 casts from long to LONGEST.
8670 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8671 value from long to LONGEST.
8672 (dwarf2_const_value): Change variable value from long to LONGEST.
8673 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8674 plongest and hex_string.
8675 * symtab.h (struct general_symbol_info): Change ivalue from long to
8676 LONGEST, remove the comment.
8677 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8678 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8679
8680 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8681
8682 PR symtab/7259:
8683 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8684 * ada-lang.c (ada_discrete_type_high_bound)
8685 (ada_discrete_type_low_bound): Fix function comment. Use
8686 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8687 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8688 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8689 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8690 Use TYPE_FIELD_ENUMVAL.
8691 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8692 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8693 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8694 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8695 TYPE_CODE_ENUM.
8696 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8697 * dwarf2read.c (process_enumeration_scope): Likewise.
8698 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8699 field.bitpos.
8700 (class StructMainTypePrettyPrinter): Support also
8701 FIELD_LOC_KIND_ENUMVAL.
8702 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8703 TYPE_CODE_ENUM.
8704 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8705 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8706 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8707 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8708 field enumval.
8709 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8710 accommodate enumval.
8711 (struct call_site): Adjust loc_kind to accommodate enumval.
8712 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8713 (TYPE_FIELD_ENUMVAL): New macros.
8714 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8715 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8716 TYPE_CODE_ENUM.
8717 * p-typeprint.c (pascal_type_print_base): Likewise.
8718 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8719 enumval.
8720 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8721 * python/py-type.c (convert_field): New variable addrstring. Use
8722 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8723 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8724 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8725 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8726 TYPE_CODE_ENUM.
8727 * valprint.c (generic_val_print): Likewise.
8728
8729 2012-04-17 Doug Evans <dje@google.com>
8730
8731 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8732
8733 * dwarf2read.c: Whitespace fixes.
8734 (lookup_signatured_type): Tweak comment.
8735 (get_die_type_at_offset): Fix comment.
8736
8737 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8738
8739 * xcoffread.c (xcoff_secnum_to_sections): New function.
8740 (secnum_to_section, secnum_to_bfd_section): Reimplement
8741 using xcoff_secnum_to_sections. Rename "secnum" parameter
8742 into "n_scnum".
8743 (RECORD_MINIMAL_SYMBOL): Delete.
8744 (record_minimal_symbol): New function.
8745 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8746 by call to record_minimal_symbol and set misc_func_recorded
8747 to 1. Set last_csect_sec to the XCOFF section index instead
8748 of GDB's section_offset index. Update calls to
8749 prim_record_minimal_symbol_and_info to pass the BFD section
8750 as well.
8751
8752 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8753
8754 * xcoffread.c (read_xcoff_symtab): Delete variables
8755 last_csect_val and last_csect_sec and associated code.
8756
8757 2012-04-17 Doug Evans <dje@google.com>
8758
8759 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8760 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8761 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8762 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8763
8764 * cleanups.h: New file.
8765 * cleanups.c: New file.
8766 * Makefile.in (SFILES): Add cleanups.c.
8767 (HFILES_NO_SRCDIR): Add cleanups.h.
8768 (COMMON_OBS): Add cleanups.o.
8769 * defs.h (struct cleanup): Moved to cleanups.h.
8770 (do_cleanups,do_final_cleanups): Ditto.
8771 (discard_cleanups,discard_final_cleanups): Ditto
8772 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8773 (save_cleanups,save_final_cleanups): Ditto.
8774 (restore_cleanups,restore_final_cleanups): Ditto.
8775 (null_cleanup): Ditto.
8776 (make_my_cleanup,make_my_cleanup2): Ditto.
8777 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8778 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8779 (do_cleanups,do_final_cleanups): Ditto.
8780 (discard_cleanups,discard_final_cleanups): Ditto
8781 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8782 (save_cleanups,save_final_cleanups): Ditto.
8783 (restore_cleanups,restore_final_cleanups): Ditto.
8784 (null_cleanup): Ditto.
8785 (make_my_cleanup,make_my_cleanup2): Ditto.
8786 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8787
8788 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8789 make_my_cleanup.
8790 (make_cleanup_dyn_string_delete): Ditto.
8791 (make_cleanup_ui_file_delete): Ditto.
8792 (make_cleanup_ui_out_redirect_pop): Ditto.
8793 (make_cleanup_free_section_addr_info): Ditto.
8794 (make_cleanup_restore_integer): Ditto.
8795 (make_cleanup_unpush_target): Ditto.
8796 (make_cleanup_value_free_to_mark): Ditto.
8797 (make_cleanup_value_free): Ditto.
8798 (make_cleanup_free_so): Ditto.
8799
8800 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8801
8802 New option "set debug auto-load".
8803 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8804 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8805 (auto_load_safe_path_vec_update)
8806 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8807 if DEBUG_AUTO_LOAD.
8808 (file_is_auto_load_safe): New parameters debug_fmt and ....
8809 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8810 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8811 caller by explanatory string.
8812 (_initialize_auto_load): Register "set debug auto-load".
8813 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8814 and ....
8815 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8816 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8817 by explanatory string.
8818 * main.c (captured_main): Likewise.
8819 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8820 (source_section_scripts): Likewise.
8821
8822 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8823
8824 New option "set auto-load safe-path".
8825 * NEWS: New commands "set auto-load safe-path"
8826 and "show auto-load safe-path".
8827 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8828 (auto_load_safe_path, auto_load_safe_path_vec)
8829 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8830 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8831 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8832 (source_gdb_script_for_objfile): New variable is_safe. Call
8833 file_is_auto_load_safe. Return if it is not.
8834 (struct loaded_script): New field loaded.
8835 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8836 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8837 output "Missing" to "No".
8838 (_initialize_auto_load): New variable cmd. Initialize
8839 auto_load_safe_path. Register "set auto-load safe-path",
8840 "show auto-load safe-path" and "add-auto-load-safe-path".
8841 * auto-load.h (maybe_add_script): Add parameter loaded.
8842 (file_is_auto_load_safe): New declaration.
8843 * config.in: Regenerate.
8844 * configure: Regenerate.
8845 * configure.ac: New parameters --with-auto-load-safe-path
8846 and --without-auto-load-safe-path.
8847 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8848 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8849 * main.c (captured_main): Check file_is_auto_load_safe for
8850 LOCAL_GDBINIT.
8851 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8852 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8853 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8854 not.
8855
8856 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8857
8858 auto-load: Implementation.
8859 * NEWS: New descriptions for "info auto-load",
8860 "info auto-load gdb-scripts", "info auto-load python-scripts",
8861 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8862 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8863 and "show auto-load-scripts". New description for "set auto-load",
8864 "show auto-load", "set auto-load gdb-scripts",
8865 "show auto-load gdb-scripts", "set auto-load python-scripts",
8866 "show auto-load python-scripts", "set auto-load local-gdbinit",
8867 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8868 "show auto-load libthread-db".
8869 * auto-load.c: Remove include python/python-internal.h. Add includes
8870 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8871 cli/cli-setshow.h.
8872 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8873 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8874 (gdbpy_global_auto_load): Rename to ...
8875 (global_auto_load): ... here.
8876 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8877 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8878 (script_language_gdb, source_gdb_script_for_objfile): New.
8879 (struct loaded_script): New field language.
8880 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8881 LANGUAGE.
8882 (maybe_add_script): Add parameter language. Drop redundant
8883 entry.full_path initialization. Initialize entry.language and
8884 (*slot)->language.
8885 (auto_load_objfile_script): Change parameter suffix to language.
8886 Remove the call of maybe_add_script.
8887 Call language->source_script_for_objfile.
8888 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8889 New.
8890 (collect_matching_scripts): Adjust it for
8891 struct collect_matching_scripts_data.
8892 (auto_load_info_scripts_pattern_nl): New variable.
8893 (info_auto_load_scripts): Rename to ...
8894 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8895 for struct collect_matching_scripts_data.
8896 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8897 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8898 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8899 (auto_load_info_cmdlist_get): New.
8900 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8901 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8902 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8903 "info auto-load local-gdbinit".
8904 * auto-load.h (struct script_language): New.
8905 (gdbpy_global_auto_load): Rename to ...
8906 (global_auto_load): ... here.
8907 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8908 (auto_load_local_gdbinit_loaded): New declarations.
8909 (maybe_add_script): New parameter language.
8910 (auto_load_objfile_script): Change parameter suffix to language.
8911 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8912 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8913 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8914 declarations.
8915 * linux-thread-db.c: Include auto-load.h and ctype.h.
8916 (auto_load_thread_db, show_auto_load_thread_db): New.
8917 (struct thread_db_info): New field filename.
8918 (delete_thread_db_info): Call xfree for FILENAME.
8919 (try_thread_db_load): Initialize FILENAME.
8920 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8921 if !AUTO_LOAD_THREAD_DB.
8922 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8923 (_initialize_thread_db): Install auto_load_thread_db
8924 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8925 as "info auto-load libthread-db".
8926 * main.c (captured_main): Rename gdbpy_global_auto_load to
8927 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8928 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8929 (print_gdb_help): Extend the help for 'local init file'.
8930 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8931 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8932 (auto_load_scripts): Rename to ...
8933 (auto_load_python_scripts): ... here, update the comment.
8934 (gdbpy_load_auto_script_for_objfile): New declaration.
8935 (show_auto_load_python_scripts, script_language_python)
8936 (gdbpy_load_auto_script_for_objfile): New.
8937 (source_section_scripts): Refactor the code.
8938 (load_auto_scripts_for_objfile): Rename to ...
8939 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8940 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8941 (info_auto_load_python_scripts): New.
8942 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8943 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8944 Register "set auto-load-scripts" as its deprecated alias. Register
8945 "info auto-load python-scripts". Register "info auto-load-scripts" as
8946 its deprecated alias.
8947 (load_auto_scripts_for_objfile): Rename to ...
8948 (gdbpy_load_auto_scripts_for_objfile): ... here.
8949 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8950 (gdbpy_load_auto_scripts_for_objfile): ... here.
8951
8952 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8953
8954 auto-load: Move files.
8955 * Makefile.in (SFILES): Add auto-load.c.
8956 (HFILES_NO_SRCDIR): Add auto-load.h.
8957 (COMMON_OBS): Add auto-load.o.
8958 (distclean): Change .gdbinit for gdb-gdb.gdb.
8959 * auto-load.c: New file, with parts from python/py-auto-load.c.
8960 * auto-load.h: New file, with parts from python/python.h.
8961 * configure: Regenerate.
8962 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8963 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8964 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8965 * main.c: Include auto-load.h.
8966 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8967 command.h, observer.h and progspace.h to auto-load.c. Add include
8968 auto-load.h.
8969 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8970 (struct loaded_script, auto_load_pspace_data)
8971 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8972 (hash_loaded_script_entry, eq_loaded_script_entry)
8973 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8974 (maybe_add_script): Move to auto-load.c.
8975 (source_section_scripts): Change maybe_add_script parameters passing,
8976 use script_not_found_warning_print.
8977 (clear_section_scripts, auto_load_objfile_script)
8978 (auto_load_new_objfile, loaded_script_ptr)
8979 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8980 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8981 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8982 auto_load_new_objfile and info_auto_load_scripts initizations to
8983 auto-load.c.
8984 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8985
8986 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 Code cleanup.
8989 * charset.c (find_charset_names): Remove variables ix and elt.
8990 Use free_char_ptr_vec.
8991 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8992 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8993 debugdir_end. New variable debugdir_len.
8994 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8995 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8996 declarations.
8997 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8998 and elt. Use free_char_ptr_vec.
8999 * source.c (add_path): Remove variables argv, arg and argv_index.
9000 New variables dir_vec, back_to, ix and name.
9001 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
9002 make_cleanup_freeargv. Remove variable separator. Simplify the code
9003 no longer expecting DIRNAME_SEPARATOR.
9004 (openp): Remove variable p, p1 and len. New variables dir_vec,
9005 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
9006 no longer expecting DIRNAME_SEPARATOR.
9007 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
9008 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9009 debugdir_end.
9010 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9011 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9012 (dirnames_to_char_ptr_vec): New functions.
9013
9014 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9015
9016 Code cleanup.
9017 * source.c (add_path): Remove always true conditional 'p == 0' and
9018 unindent its code block.
9019
9020 2012-04-17 Pedro Alves <palves@redhat.com>
9021
9022 * gdbtypes.h (FIELD_BITPOS): Rename to ...
9023 (FIELD_BITPOS_LVAL): ... this.
9024 (FIELD_BITPOS): New.
9025 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9026 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9027 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9028 SET_FIELD_BITPOS.
9029 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9030 SET_FIELD_BITPOS.
9031 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9032 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9033 * target-descriptions.c (tdesc_gdb_type): Adjust to use
9034 SET_FIELD_BITPOS.
9035
9036 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9037
9038 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9039 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9040 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9041 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9042 * jv-lang.c (java_link_class_type): Likewise, once.
9043 * stabsread.c (read_enum_type): Likewise.
9044
9045 2012-04-16 Yao Qi <yao@codesourcery.com>
9046
9047 * common/agent.c (agent_run_command): Add one more parameter `len'.
9048 Update callers.
9049 * common/agent.h: Update declaration.
9050 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9051 Update.
9052 (linux_child_static_tracepoint_markers_by_strid): Ditto.
9053
9054 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
9055
9056 PR mi/13393
9057 * value.c (value_actual_type): New function.
9058 * value.h (value_actual_type): New declaration.
9059 * varobj.c (update_type_if_necessary): New function.
9060 (varobj_create): Call value_actual_type instead of
9061 value_type.
9062 (install_dynamic_child): distinct changed and type changed MI variable
9063 objects.
9064 (update_dynamic_varobj_children): Updated for install_dynamic_child
9065 change. All callers updated.
9066 (varobj_update): Support for MI variable object type change if
9067 the value changed and RTTI is used to determine the type.
9068 (create_child_with_value): Call value_actual_type instead of
9069 value_type.
9070 (adjust_value_for_child_access): Extended with a new parameter which
9071 specify whether the given value should be casted to enclosing type.
9072 All callers updated.
9073
9074 2012-04-14 Yao Qi <yao@codesourcery.com>
9075
9076 Import gnulib module inttypes from git
9077 (250b80067c1e1d8faa0c42fb572f721975b929c5)
9078 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
9079 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9080 gnulib/m4/inttypes-pri.m4
9081 * aclocal.m4, config.in, configure: Regenerated.
9082 * gnulib/Makefile.am: Update.
9083 * gnulib/Makefile.in: Update.
9084 * gnulib/m4/gnulib-cache.m4: Update.
9085 * gnulib/m4/gnulib-comp.m4: Update.
9086 * gnulib/inttypes.in.h: New.
9087 * gnulib/m4/inttypes-pri.m4: New.
9088 * gnulib/m4/inttypes.m4: New.
9089
9090 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
9091
9092 * infrun.c (resume): Update PC address to the real PC after
9093 preparing to do displaced stepping.
9094
9095 2012-04-12 Doug Evans <dje@google.com>
9096
9097 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9098 All callers updated.
9099
9100 2012-04-12 Mark Kettenis <kettenis@gnu.org>
9101
9102 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9103
9104 2012-04-12 Doug Evans <dje@google.com>
9105
9106 * dwarf2read.c (create_all_type_units): Renamed from
9107 create_debug_types_hash_table. All callers updated.
9108
9109 * dwarf2read.c (create_signatured_type_table_from_index): Rename
9110 local type_sig to sig_type, type_offset to type_offset_in_tu.
9111 (hash_signatured_type): Renamed from hash_type_signature,
9112 all callers updated.
9113 (eq_signatured_type): Renamed from eq_type_signature,
9114 all callers updated.
9115 (create_debug_types_hash_table): Rename local type_sig to sig_type.
9116 (process_enumeration_scope): Ditto.
9117 (lookup_signatured_type_at_offset): Ditto.
9118 (load_full_type_unit, read_signatured_type): Ditto.
9119
9120 2012-04-12 Yao Qi <yao@codesourcery.com>
9121
9122 * remote.c (async_remote_interrupt): Correct function name in
9123 debug message.
9124 (async_remote_interrupt_twice): Ditto.
9125
9126 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
9127
9128 * source.c (find_and_open_source): Consistently pass resulting
9129 full path through xfullpath.
9130
9131 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9132
9133 Provide more specific displaced-stepping memory error message.
9134 * infrun.c (displaced_step_prepare): New variable status. Call
9135 target_read_memory instead of read_memory, provide more specific
9136 error message.
9137
9138 2012-04-11 Tristan Gingold <gingold@adacore.com>
9139
9140 PR gdb/13901
9141 * darwin-nat.c (darwin_execvp): Revert previous patch.
9142
9143 2012-04-11 Tristan Gingold <gingold@adacore.com>
9144
9145 PR gdb/13901
9146 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9147 in case of change.
9148
9149 2012-04-11 Tristan Gingold <gingold@adacore.com>
9150
9151 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9152 warning.
9153
9154 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9155
9156 New command 'explore' which helps explore values and types in
9157 scope.
9158 * NEWS: Add an entry about the new 'explore' command.
9159 * data-directory/Makefile.in: Add gdb/command/explore.py
9160 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9161 command using the GDB Python API.
9162
9163 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9164
9165 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9166 extension in jump target calculation.
9167
9168 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9169
9170 * mips-tdep.c (mips32_next_pc): Handle JALX.
9171
9172 2012-04-10 Yao Qi <yao@codesourcery.com>
9173
9174 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9175
9176 2012-04-10 Yao Qi <yao@codesourcery.com>
9177
9178 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9179 and gnulib/m4/gnulib-tool.m4.
9180
9181 2012-04-10 Doug Evans <dje@google.com>
9182
9183 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9184 (load_partial_dies): Clarify comment.
9185 (find_partial_die): Support rereading type units.
9186 Clarify CU handling, if we know offset is in CU, don't search for the
9187 containing CU. Add comment regarding memory waste.
9188
9189 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9190
9191 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9192 i386/x32-avx and i386/x32-avx-linux.
9193 (i386/x32-expedite): New.
9194 (i386/x32-linux-expedite): Likewise.
9195 (i386/x32-avx-expedite): Likewise.
9196 (i386/x32-avx-linux-expedite): Likewise.
9197 ($(outdir)/i386/x32.dat): Likewise.
9198 ($(outdir)/i386/x32-linux.dat): Likewise.
9199 ($(outdir)/i386/x32-avx.dat): Likewise.
9200 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9201
9202 * features/i386/x32-avx-linux.xml: New file.
9203 * features/i386/x32-avx.xml: Likewise.
9204 * features/i386/x32-core.xml: Likewise.
9205 * features/i386/x32-linux.xml: Likewise.
9206 * features/i386/x32.xml: Likewise.
9207
9208 * features/i386/x32-avx-linux.c: New. Generated.
9209 * features/i386/x32-avx.c: Likewise.
9210 * features/i386/x32-linux.c: Likewise.
9211 * features/i386/x32.c: Likewise.
9212 * regformats/i386/x32-avx-linux.dat: Likewise.
9213 * regformats/i386/x32-avx.dat: Likewise.
9214 * regformats/i386/x32-linux.dat: Likewise.
9215 * regformats/i386/x32.dat: Likewise.
9216
9217 2012-04-10 Tristan Gingold <gingold@adacore.com>
9218
9219 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9220 code to kill the inferior.
9221
9222 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9223
9224 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9225 defines.
9226 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9227 defines.
9228 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9229 (yyvsp): New defines.
9230 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9231 defines.
9232 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9233 defines.
9234 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9235 defines.
9236 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9237 defines.
9238 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9239 defines.
9240
9241 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9242
9243 * sparc64-tdep.c (sparc64_store_arguments)
9244 (sparc64_store_arguments): Fix coding style.
9245
9246 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9247
9248 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9249 complex floats, adjust some related comments and tighten a related
9250 assertion.
9251 (sparc64_extract_return_value): Handle complex floats.
9252
9253 2012-04-07 Doug Evans <dje@google.com>
9254
9255 * dwarf2read.c (load_partial_dies): Change condition to assert.
9256
9257 2012-04-06 Doug Evans <dje@google.com>
9258
9259 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9260 "mov %rsp,%rbp".
9261
9262 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9263
9264 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9265 fencepost error.
9266 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9267 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9268 architecture.
9269
9270 2012-04-05 Keith Seitz <keiths@redhat.com>
9271
9272 * linespec.c (decode_compound): Remove.
9273 (enum offset_relative_sign): New enum.
9274 (struct line_offset): New struct.
9275 (struct linespec): New struct.
9276 (struct linespec_state): Move file_symtabs,
9277 user_filename, and user_function into struct linespec.
9278 Make result an anonymous struct holding vectors of
9279 symbolp and minsym_and_objfile_d.
9280 Add language member.
9281 (enum ls_token_type): New enum.
9282 (linespec_keywords): New array.
9283 (struct ls_token): New struct.
9284 (struct ls_parser): New struct.
9285 (linespec_lexer_lex_number): New function.
9286 (linespec_lexer_lex_keyword): New function.
9287 (is_ada_operator): New function.
9288 (skip_quote_char): New function.
9289 (copy_token_string): New function.
9290 (is_closing_quote_enclosed): New function.
9291 (find_parameter_list_end): New function.
9292 (linespec_lexer_lex_string): New function.
9293 (linespec_lexer_lex_one): New function.
9294 (linespec_lexer_consume_token): New function.
9295 (linespec_lexer_peek_token): New function.
9296 (cplusplus_error): Remove unused function.
9297 (find_methods): Update comment.
9298 (find_toplevel_char): Return const.
9299 (is_objc_method_format): Remove unused function.
9300 (find_toplevel_string): New function.
9301 (is_linespec_boundary): Remove.
9302 (symbol_not_found_error): New function.
9303 (find_method_overload_end): Remove function.
9304 (unexpected_linespec_error): New function.
9305 (keep_name_info): Remove.
9306 (linespec_parse_line_offset): New function.
9307 (linespec_parse_basic): New function.
9308 (canonicalize_linespec): New function.
9309 (decode_line_internal): Remove.
9310 (create_sals_line_offset): New function adapted from
9311 decode_all_digits.
9312 (convert_linespec_to_sals): New function.
9313 (parse_linespec): New function.
9314 (linespec_parser_new): New function.
9315 (linespec_state_destructor): Change parameter type to
9316 struct linespec_state *.
9317 Add language parameter.
9318 Remove freeing of moved members.
9319 (linespec_parser_delete): New function.
9320 (decode_line_full): Use parse_linespec and linespec_parser_new.
9321 (decode_line_1): Likewise.
9322 (decode_indirect): Rename to ...
9323 (linespec_expression_to_pc): ... this and rewrite
9324 to simply find CORE_ADDR, storing this result for later
9325 conversion to SALs.
9326 (locate_first_half): Remove.
9327 (deocde_objc): Add parameter LS.
9328 Initialize new struct collect_info members.
9329 Handle minimal symbols, too.
9330 (decode_compound): Delete.
9331 (lookup_prefix_sym): Rewrite.
9332 (compare_msymbols): New function.
9333 (find_method): Rewrite.
9334 Do not call cplusplus_error.
9335 (symtabs_from_filename): Rewrite.
9336 (collect_function_symbols): Delete.
9337 (find_function_symbols): Rewrite without ARGPTR-style
9338 processing.
9339 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9340 (decode_dollar): Adapted and renamed to ...
9341 (linespec_parse_variable): ... this.
9342 (find_linespec_symbols): New function.
9343 (decode_label): Adapted and renamed to ...
9344 (find_label_symbols): ... this.
9345 (decode_digits_list_mode): Add and use LS argument.
9346 (decode_digits_ordinary): Likewise.
9347 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9348 If in list mode, allow any symbol class. Otherwise, only
9349 permit LOC_BLOCK symbols.
9350 (minsym_found): Update comments.
9351 (search_minsyms_for_name): Do not convert the matching symbol
9352 into a SAL. Simply push the symbol and objfile into the
9353 result vector.
9354 (decode_variable): Delete. Contents adapted into
9355 find_linespec_symbols.
9356
9357 * cp-support.c (SKIP_SPACE): Remove.
9358 (operator_tokens): Remove unused global.
9359 (cp_validate_operator): Remove.
9360 * cp-support.h (cp_validate_operator): Remove declaration.
9361
9362 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9363
9364 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9365 for TYPE_VPTR_FIELDNO.
9366 * valprint.c (valprint_check_validity): Make it global, move the
9367 function comment ...
9368 * value.h (valprint_check_validity): ... to this new declaration.
9369
9370 2012-04-02 Tristan Gingold <gingold@adacore.com>
9371
9372 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9373 the STATE32 api for i386 state.
9374 (i386_darwin_store_inferior_registers): Likewise.
9375
9376 2012-04-02 Tristan Gingold <gingold@adacore.com>
9377
9378 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9379 SS offset.
9380 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9381 format_string.
9382
9383 2012-04-02 Tristan Gingold <gingold@adacore.com>
9384
9385 PR gdb/13901
9386 * darwin-nat.c (darwin_execvp): Set binary preference.
9387
9388 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9389
9390 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9391
9392 2012-03-30 Tom Tromey <tromey@redhat.com>
9393
9394 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9395 of TRY_CATCH. Fix error handling.
9396 * python/py-value.c (convert_value_from_python): Move 'old'
9397 declaration to innermost scope.
9398
9399 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9400 Andrey Smirnov <andrew.smirnov@gmail.com>
9401
9402 -Wshadow warning fix.
9403 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9404 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9405 Adjust code accordingly.
9406
9407 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9408
9409 * ada-lang.c (symbol_completion_add): Rename parameter
9410 "encoded" into "encoded_p". Ajust code and documentation
9411 accordingly.
9412
9413 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9414 Andrey Smirnov <andrew.smirnov@gmail.com>
9415
9416 -Wshadow warning fix.
9417 * ada-lang.c (symbol_completion_add): Rename parameter
9418 "wild_match" into wild_match_p. Update code and documentation
9419 accordingly.
9420
9421 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9422
9423 * ada-lang.c (symbol_completion_match): Rename parameter
9424 "encoded" into "encoded_p". Ajust code and documentation
9425 accordingly.
9426
9427 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9428 Andrey Smirnov <andrew.smirnov@gmail.com>
9429
9430 -Wshadow warning fix.
9431 * ada-lang.c (symbol_completion_match): Rename parameter
9432 "wild_match" into "wild_match_p". Adjust code and function
9433 documentation accordingly.
9434
9435 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9436 Andrey Smirnov <andrew.smirnov@gmail.com>
9437
9438 -Wshadow warning fix.
9439 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9440 "symbol_info" into "info". Adjust code accordingly.
9441 (ada_lookup_symbol): Likewise.
9442
9443 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9444
9445 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9446 of this function's documentation.
9447
9448 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9449 Andrey Smirnov <andrew.smirnov@gmail.com>
9450
9451 -Wshadow warning fix.
9452 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9453 variable into "wild_match_p". Adjust code accordingly.
9454
9455 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9456 Andrey Smirnov <andrew.smirnov@gmail.com>
9457
9458 -Wshadow warning fix.
9459 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9460 parameter into "wild_match_p". Adjust code accordingly.
9461 Document this parameter in the function description.
9462
9463 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9464 Andrey Smirnov <andrew.smirnov@gmail.com>
9465
9466 -Wshadow warning fix.
9467 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9468 "wild_match" parameter to "wild_match_p" (-Wshadow).
9469
9470 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9471
9472 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9473 in function documentation.
9474
9475 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9476 Andrey Smirnov <andrew.smirnov@gmail.com>
9477
9478 -Wshadow warning fix.
9479 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9480 variable into wild_match_p. Adjust code accordingly.
9481
9482 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9483 Andrey Smirnov <andrew.smirnov@gmail.com>
9484
9485 * ada-valprint.c (ada_val_print_1): Move the code handling
9486 TYPE_CODE_ENUM inside its own lexical block. Declare
9487 variables len and val there, instead of in the function's
9488 top level block. Avoid declaring deref_val again in a way
9489 that shadows another variable of the same name declared
9490 in one of the up-level blocks. Just re-use the up-level
9491 variable instead.
9492
9493 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9494
9495 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9496 Replace block_found argument by symbol_info. Adjust
9497 implementation accordingly. Add function documentation.
9498 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9499 Fix documentation.
9500 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9501 * ada-exp.y (write_object_renaming): Adjust to new
9502 ada_lookup_encoded_symbol API.
9503
9504 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9505
9506 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9507 documentation.
9508
9509 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9510
9511 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9512 (v850_register_name): Add the mpu and fpu register names.
9513 (v850e_register_name): Add the mpu and fpu register names.
9514 (v850e2_register_name): New function.
9515 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9516 bfd_mach_v850e2v3.
9517
9518 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9519
9520 * NEWS: Add entry for Ada varobj support.
9521
9522 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9523
9524 * varobj.c (default_value_is_changeable_p): New function,
9525 extracted from varobj_value_is_changeable_p. Add declaration.
9526 (ada_value_is_changeable_p): New function, extracted from
9527 varobj_value_is_changeable_p. Add declaration.
9528 (struct language_specific): New field "value_is_changeable_p".
9529 (languages): Add entries for new field.
9530 (varobj_create): Set language before calling install_new_value.
9531 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9532 "value_is_changeable_p" language callback.
9533
9534 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9535
9536 * ada-varobj.h, ada-varobj.c: New files.
9537 * Makefile.in (SFILES): Add ada-varobj.c.
9538 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9539 (COMMON_OBS): Add ada-varobj.o.
9540
9541 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9542
9543 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9544 (struct language_specific): New field "value_has_mutated".
9545 (languages): Set field "value_has_mutated" in each entry of array.
9546 (varobj_value_has_mutated): New function.
9547 (varobj_udpdate): Add handling of type mutation.
9548 (value_of_root): Add handling of type mutation.
9549 (ada_value_has_mutated): New function.
9550
9551 2012-03-28 Pedro Alves <palves@redhat.com>
9552
9553 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9554 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9555
9556 2012-03-28 Tom Tromey <tromey@redhat.com>
9557
9558 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9559 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9560 before returning.
9561
9562 2012-03-28 Tom Tromey <tromey@redhat.com>
9563
9564 * .dir-locals.el: New file.
9565
9566 2012-03-28 Pedro Alves <palves@redhat.com>
9567
9568 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9569
9570 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9571
9572 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9573 handling for r0.
9574
9575 2012-03-27 Pedro Alves <palves@redhat.com>
9576
9577 Eliminate struct ui_stream.
9578
9579 * ui-out.h (struct ui_stream): Delete.
9580 (ui_out_field_stream): Adjust prototype.
9581 (ui_out_stream_new, ui_out_stream_delete)
9582 (make_cleanup_ui_out_stream_delete): Delete declarations.
9583 * ui-out.c (ui_out_field_stream): Change prototype to take a
9584 ui_file instead of a ui_stream. Adjust.
9585 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9586 (make_cleanup_ui_out_stream_delete): Delete.
9587 * breakpoint.c (print_breakpoint_location)
9588 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9589 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9590 * disasm.c (dump_insns): Ditto.
9591 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9592 prototype.
9593 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9594 ui_stream/ui_out_stream_new.
9595 * infcmd.c (print_return_value): Ditto.
9596 * osdata.c (info_osdata_command): Don't allocate a local
9597 ui_stream.
9598 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9599 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9600 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9601 allocate a local ui_stream.
9602 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9603 instead of ui_stream/ui_out_stream_new.
9604 (list_args_or_locals): Don't allocate a local ui_stream.
9605 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9606 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9607 ui_stream/ui_out_stream_new.
9608 * cli/cli-setshow.c (do_setshow_command): Ditto.
9609
9610 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9611
9612 * arm-linux-tdep.c (arm_linux_init_abi): Call
9613 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9614 * arm-tdep.c (arm_process_record): New function.
9615 (deallocate_reg_mem): New function.
9616 (decode_insn): New function.
9617 (thumb_record_branch): New function.
9618 (thumb_record_ldm_stm_swi(): New function.
9619 (thumb_record_misc): New function.
9620 (thumb_record_ld_st_stack): New function.
9621 (thumb_record_ld_st_imm_offset): New function.
9622 (thumb_record_ld_st_reg_offset(): New function.
9623 (thumb_record_add_sub_cmp_mov): New function.
9624 (thumb_record_shift_add_sub): New function.
9625 (arm_record_coproc_data_proc): New function.
9626 (arm_record_coproc): New function.
9627 (arm_record_b_bl): New function.
9628 (arm_record_ld_st_multiple): New function.
9629 (arm_record_ld_st_reg_offset): New function.
9630 (arm_record_ld_st_imm_offset): New function.
9631 (arm_record_data_proc_imm): New function.
9632 (arm_record_data_proc_misc_ld_str): New function.
9633 (arm_record_extension_space): New function.
9634 (arm_record_strx): New function.
9635 (sbo_sbz): New function.
9636 (struct insn_decode_record): New structure for arm insn record.
9637 (REG_ALLOC): New macro for reg allocations.
9638 (MEM_ALLOC): New macro for memory allocations.
9639 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9640
9641 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9642
9643 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9644 (store_register): Likewise.
9645
9646 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9647
9648 * MAINTAINERS (Write After Approval): Add myself to the list.
9649
9650 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9651
9652 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9653 Describe also the option "auto".
9654
9655 2012-03-22 Richard Henderson <rth@redhat.com>
9656
9657 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9658 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9659
9660 2012-03-22 Richard Henderson <rth@redhat.com>
9661
9662 * jit.c (jit_read_code_entry): Compute alignment and offset of
9663 int64_t member before computing entry_size.
9664
9665 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9666
9667 Python scripting: Add new method Value.referenced_value to
9668 gdb.Value which can dereference pointer as well as reference
9669 values.
9670 * NEWS: Add entry under 'Python scripting' about the new method
9671 Value.referenced_value on gdb.Value objects.
9672 * python/py-value.c (valpy_referenced_value): New function
9673 defining a new method on gdb.Value objects which can dereference
9674 pointer and reference values.
9675
9676 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9677
9678 * MAINTAINERS (Write After Approval): Add myself to the list.
9679
9680 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9681
9682 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9683 in addition to "main".
9684
9685 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9686
9687 * expression.h (op_name): Add declaration.
9688 * expprint.c (op_name): Remove declaration. Make non-static.
9689 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9690
9691 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9692
9693 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9694 of struct siginfo.
9695 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9696 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9697 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9698 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9699 (linux_nat_get_siginfo): Likewise.
9700 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9701 (linux_nat_get_siginfo): Likewise.
9702 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9703 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9704 * procfs.c (gdb_siginfo_t): Likewise.
9705
9706 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9707
9708 * .gitignore: Ignore more files.
9709
9710 2012-03-20 Pedro Alves <palves@redhat.com>
9711
9712 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9713 returns.
9714
9715 2012-03-20 Yao Qi <yao@codesourcery.com>
9716
9717 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9718 comment.
9719
9720 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9721
9722 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9723 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9724 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9725 sect_offset.
9726 * dwarf2expr.h (cu_offset, sect_offset): New types.
9727 (struct dwarf_expr_context_funcs) <dwarf_call>
9728 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9729 sect_offset.
9730 (struct dwarf_expr_context) <len>: Improve the comment.
9731 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9732 cu_offset and sect_offset.
9733 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9734 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9735 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9736 * dwarf2loc.h: Include dwarf2expr.h.
9737 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9738 and sect_offset.
9739 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9740 Improve the comment.
9741 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9742 (struct signatured_type, struct line_header, struct partial_die_info)
9743 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9744 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9745 (get_die_type_at_offset, create_cus_from_index)
9746 (create_signatured_type_table_from_index, dw2_get_file_names)
9747 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9748 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9749 (create_debug_types_hash_table, process_psymtab_comp_unit)
9750 (load_partial_comp_unit, create_all_comp_units)
9751 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9752 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9753 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9754 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9755 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9756 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9757 (find_partial_die, read_attribute_value, lookup_die_type)
9758 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9759 (is_ref_attr): New function comment.
9760 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9761 Use cu_offset and sect_offset.
9762 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9763 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9764 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9765 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9766 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9767 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9768 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9769 sect_offset.
9770
9771 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9772
9773 Code cleanup.
9774 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9775 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9776 with xfree.
9777 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9778
9779 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9780
9781 * NEWS: Describe new options --init-command=FILE, -ix and
9782 --init-eval-command=COMMAND, -iex.
9783 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9784 CMDARG_INIT_COMMAND.
9785 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9786 "init-command", "init-eval-command", "ix" and "iex" to the variable
9787 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9788 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9789 (print_gdb_help): Describe --init-command=FILE, -ix and
9790 --init-eval-command=COMMAND, -iex.
9791
9792 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9793
9794 Code cleanup.
9795 * main.c (struct cmdarg): Move it here from main. Add more comments.
9796 (cmdarg_s, VEC (cmdarg_s)): New.
9797 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9798 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9799 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9800 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9801 of CMDARG.
9802
9803 2012-03-19 Tom Tromey <tromey@redhat.com>
9804
9805 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9806
9807 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9808
9809 PR symtab/13777
9810 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9811 GCC >=4.5.
9812
9813 2012-03-16 Chris January <chris.january@allinea.com>
9814
9815 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9816 of clear.
9817
9818 2012-03-16 Chris January <chris.january@allinea.com>
9819
9820 * source.c (add_path): Use memmove instead of strcpy because the
9821 strings overlap.
9822
9823 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9824
9825 * value.h (set_value_parent): Add declaration.
9826 * value.c (set_value_parent): New function.
9827 (value_address): If VALUE->PARENT is not NULL, then use it as
9828 the base address instead of VALUE->LOCATION.address.
9829 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9830 the same as OBJ's address. Adjust V's offset accordingly.
9831 Set V's parent.
9832
9833 2012-03-16 Gary Benson <gbenson@redhat.com>
9834
9835 PR breakpoints/10738
9836 * dwarf2read.c (use_deprecated_index_sections): New global.
9837 (struct partial_die_info): New member may_be_inlined.
9838 (read_partial_die): Set may_be_inlined where appropriate.
9839 (add_partial_subprogram): Add partial symbols for partial
9840 DIEs that may be inlined.
9841 (new_symbol_full): Add inlined subroutines to the current
9842 scope.
9843 (write_psymtabs_to_index): Bump version number.
9844 (dwarf2_read_index): Read only version 6 indices unless
9845 use_deprecated_index_sections is set.
9846 * linespec.c (symbol_and_data_callback): New structure.
9847 (iterate_inline_only): New function.
9848 (iterate_over_all_matching_symtabs): New argument
9849 "include_inline". If nonzero, also call the callback for
9850 symbols representing inlined subroutines.
9851 (lookup_prefix_sym): Pass extra argument to the above.
9852 (find_function_symbols): Likewise.
9853 (add_matching_symbols_to_info): Likewise.
9854 * NEWS: Mention that GDB can now set breakpoints on inlined
9855 functions.
9856
9857 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9858
9859 * p-typeprint.c (pascal_type_print_method_args):
9860 Fix display of parameter of methods.
9861
9862 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9863
9864 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9865 Add missing prototype.
9866
9867 2012-03-16 Yao Qi <yao@codesourcery.com>
9868 Jan Kratochvil <jan.kratochvil@redhat.com>
9869
9870 Fix false compilation warning.
9871 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9872
9873 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9874 Pedro Alves <pedro@codesourcery.com>
9875
9876 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9877 (arm_register_g_packet_guesses): New function.
9878 (arm_gdbarch_init): Don't force a target description with
9879 registers when the executable is detected as M-profile. Instead
9880 set gdbarch->tdep->is_m. Register `g' packet guesses.
9881 (_initialize_arm_tdep): Initialize the new target description.
9882 * features/arm-with-m-fpa-layout.xml: New description.
9883 * features/arm-with-m-fpa-layout.c: New, generated.
9884
9885 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9886
9887 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9888 Update function description.
9889 (insert_bp_location): Do not wipe bl->target_info out.
9890 * mem-break.c: #include "gdb_string.h".
9891 (default_memory_insert_breakpoint): Do not call target_read_memory
9892 with a pointer to the breakpoint's shadow_contents buffer. Use
9893 a local buffer instead.
9894 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9895
9896 2012-03-15 Tom Tromey <tromey@redhat.com>
9897
9898 * NEWS: Mention "info vtbl", not "info vtable".
9899 * cp-support.c (info_vtbl_command): Fix comment.
9900 (_initialize_cp_support): Fix text.
9901
9902 2012-03-15 Tom Tromey <tromey@redhat.com>
9903
9904 * cp-valprint.c (cp_print_value_fields): Use
9905 print_function_pointer_address for vtable slot.
9906
9907 2012-03-15 Tom Tromey <tromey@redhat.com>
9908
9909 * gnu-v3-abi.c (struct value_and_voffset): New.
9910 (hash_value_and_voffset, eq_value_and_voffset)
9911 (compare_value_and_voffset, compute_vtable_size)
9912 (print_one_vtable, gnuv3_print_vtable): New functions.
9913 (init_gnuv3_ops): Initialize 'print_vtable' field.
9914 * cp-support.c (info_vtbl_command): New function.
9915 (_initialize_cp_support): Add "info vtbl".
9916 * cp-abi.h (cplus_print_vtable): Declare.
9917 (struct cp_abi_ops) <print_vtable>: New field.
9918 * cp-abi.c (cplus_print_vtable): New function.
9919 * NEWS: Update.
9920
9921 2012-03-15 Tom Tromey <tromey@redhat.com>
9922
9923 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9924 iterate_over_symbols.
9925
9926 2012-03-14 Doug Evans <dje@google.com>
9927
9928 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9929 DW_OP_GNU_parameter_ref.
9930
9931 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9932
9933 Fix double prompt of 'interpreter-exec mi'.
9934 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9935 (mi_interpreter_resume): use it.
9936 (mi_execute_command_input_handler): New function.
9937 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9938 mi_execute_command_input_handler.
9939
9940 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9941
9942 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9943 prototype.
9944 (darwin_debug_port_info): Make static.
9945 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9946 * machoread.c (_initialize_machoread): Add prototype.
9947 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9948 (i386_darwin_set_control, i386_darwin_get_control)
9949 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9950 i386_darwin_get_status, i386_darwin_get_control):
9951 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9952
9953 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9954
9955 * ax-gdb.c (gen_usual_unary): Remove special handling of
9956 enum and bool types.
9957
9958 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9959
9960 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9961
9962 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9963
9964 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9965
9966 2012-03-13 Chris January <chris.january@allinea.com>
9967
9968 * aix-thread.c (fill_sprs): Store the floating point registers
9969 at the correct offsets into vals.
9970
9971 2012-03-13 Doug Evans <dje@google.com>
9972
9973 * NEWS: Mention symbol-reloading has been deleted.
9974 * symfile.c (symbol_reloading): Delete.
9975 (show_symbol_reloading): Delete.
9976 (_initialize_symfile): Delete set/show symbol-reloading.
9977
9978 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9979 read_in_chain until we have successfully read it in.
9980 (load_full_comp_unit): Ditto.
9981 (read_signatured_type): Add comment.
9982
9983 2012-03-13 Chris January <chris.january@allinea.com>
9984
9985 * stabsread.c (fix_common_block): Change type of valu argument
9986 to CORE_ADDR.
9987
9988 2012-03-13 Chris January <chris.january@allinea.com>
9989
9990 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9991 instruction.
9992
9993 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9994
9995 * common/linux-procfs.c (linux_proc_get_int): New, from
9996 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9997 field.
9998 (linux_proc_get_tgid): Only call linux_proc_get_int.
9999 (linux_proc_get_tracerpid): New.
10000 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
10001 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
10002 linux_proc_pid_has_state.
10003 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
10004 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
10005 (linux_ptrace_attach_warnings): New.
10006 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
10007 New declaration.
10008 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
10009 (linux_nat_attach): New variables ex, buffer, message and message_s.
10010 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10011
10012 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10013
10014 * Makefile.in (linux-ptrace.o): New.
10015 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10016 from linux-nat.c.
10017 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10018 * common/linux-ptrace.c: New file.
10019 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10020 * config/arm/linux.mh: Likewise.
10021 * config/i386/linux.mh: Likewise.
10022 * config/i386/linux64.mh: Likewise.
10023 * config/ia64/linux.mh: Likewise.
10024 * config/m32r/linux.mh: Likewise.
10025 * config/m68k/linux.mh: Likewise.
10026 * config/mips/linux.mh: Likewise.
10027 * config/pa/linux.mh: Likewise.
10028 * config/powerpc/linux.mh: Likewise.
10029 * config/powerpc/ppc64-linux.mh: Likewise.
10030 * config/powerpc/spu-linux.mh: Likewise.
10031 * config/s390/s390.mh: Likewise.
10032 * config/sparc/linux.mh: Likewise.
10033 * config/sparc/linux64.mh: Likewise.
10034 * config/xtensa/linux.mh: Likewise.
10035 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10036 common/linux-procfs.c.
10037 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10038
10039 2012-03-13 Hui Zhu <teawater@gmail.com>
10040 Pedro Alves <palves@redhat.com>
10041
10042 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
10043 CREATE_BREAKPOINT_FLAGS_INSERTED.
10044 (create_breakpoint_sal, create_breakpoints_sal)
10045 (base_breakpoint_create_breakpoints_sal)
10046 (tracepoint_create_breakpoints_sal)
10047 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
10048 down.
10049 (break_command_1, handle_gnu_v3_exceptions, trace_command)
10050 (ftrace_command, strace_command): Adjust.
10051 (create_tracepoint_from_upload): Pass
10052 CREATE_BREAKPOINT_FLAGS_INSERTED.
10053 * breakpoint.h (enum breakpoint_create_flags): New.
10054 (create_breakpoint): New flags parameter.
10055 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10056 * python/py-breakpoint.c (bppy_init): Adjust.
10057 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10058 * spu-tdep.c (spu_catch_start): Adjust.
10059
10060 2012-03-13 Pedro Alves <palves@redhat.com>
10061 Hui Zhu <teawater@gmail.com>
10062 Yao Qi <yao@codesourcery.com>
10063
10064 * remote.c (struct remote_state): New field `starting_up'.
10065 (remote_start_remote): Set and clear it.
10066 (remote_can_download_tracepoint): If starting up, return false.
10067
10068 2012-03-13 Yao Qi <yao@codesourcery.com>
10069
10070 * inferior.h (struct inferior): Remove fields any_syscall_count,
10071 syscalls_counts and total_syscalls_count. Move them to new
10072 struct catch_syscall_inferior_data in breakpoint.c.
10073 * breakpoint.c: Call DEF_VEC_I(int).
10074 (struct catch_syscall_inferior_data): New.
10075 (get_catch_syscall_inferior_data): New.
10076 (catch_syscall_inferior_data_cleanup): New.
10077 (insert_catch_syscall): Update to access data in
10078 struct catch_syscall_inferior_data.
10079 (insert_catch_syscall): Likewise.
10080 (remove_catch_syscall): Likewise.
10081 (remove_catch_syscall): Likewise.
10082 (is_syscall_catchpoint_enabled): Likewise.
10083 (add_catch_command): Likewise.
10084 (_initialize_breakpoint): Register cleanup.
10085 * breakpoint.h: Removed DEF_VEC_I(int).
10086 * dwarf2loc.c: Call DEF_VEC_I(int).
10087 * mi/mi-main.c: Likewise.
10088
10089 2012-03-12 Mark Kettenis <kettenis@gnu.org>
10090
10091 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10092
10093 2012-03-12 Chris January <chris.january@allinea.com>
10094
10095 * aix-thread.c (_initialize_aix_thread): Add prototype.
10096 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10097 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10098
10099 2012-03-12 Joel Brobecker <brobecker@adacore.com>
10100
10101 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10102 include of "amd64-nat.h".
10103
10104 2012-03-12 Tom Tromey <tromey@redhat.com>
10105
10106 * buildsym.c (record_pending_block): Now static.
10107 * buildsym.h: (record_pending_block): Remove.
10108
10109 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
10110
10111 * amd64bsd-nat.c: Include amd64bsd-nat.h.
10112
10113 2012-03-09 Tom Tromey <tromey@redhat.com>
10114
10115 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10116 producer_is_gxx_lt_4_6>: New fields.
10117 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10118
10119 2012-03-09 Tom Tromey <tromey@redhat.com>
10120
10121 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10122
10123 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10124
10125 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10126 prototype.
10127
10128 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10129
10130 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10131
10132 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10133
10134 Fix -Wmissing-prototypes build.
10135 * arm-linux-nat.c (get_thread_id): Make it static.
10136 * xtensa-linux-nat.c (get_thread_id): Likewise.
10137
10138 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10139
10140 * server.c (process_point_options): If a conditional expression
10141 is found, only print a message if remote_debug is nonzero.
10142
10143 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
10144
10145 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10146 of internal error for unknown/unsupported types.
10147
10148 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10149
10150 Fix CU relative vs. absolute DIE offsets.
10151 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10152 offset to offset_in_cu.
10153 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10154 TYPE_OFFSET.
10155 (dwarf2_fetch_die_location_block): Rename parameter offset to
10156 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10157
10158 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10159
10160 * libunwind-frame.c: Rename to ...
10161 * ia64-libunwind-tdep.c: ... here.
10162 * libunwind-frame.h: Rename to ...
10163 * ia64-libunwind-tdep.h: ... here.
10164 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10165 ia64-libunwind-tdep.h.
10166 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10167 * README (--with-libunwind): Rename to ...
10168 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10169 * config.in: Regenerate.
10170 * configure: Regenerate.
10171 * configure.ac: New option --with-libunwind-ia64, make the
10172 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10173 Remove AC_DEFINE for HAVE_LIBUNWIND.
10174 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10175 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10176 Rename libunwind-frame in the general comment.
10177 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10178 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10179 Move forward declarations inside #ifndef. Rename libunwind-frame in
10180 the general comment.
10181 * ia64-tdep.c: Rename libunwind-frame.h #include to
10182 ia64-libunwind-tdep.h.
10183 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10184 (ia64_libunwind_descr): Rename libunwind-frame to
10185 ia64-libunwind-tdep in these function comments.
10186 * ia64-tdep.h: Rename libunwind-frame.h #include to
10187 ia64-libunwind-tdep.h.
10188 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10189 ia64-libunwind-tdep in that data comment.
10190
10191 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10192
10193 * libunwind-frame.h (struct frame_unwind): New declaration.
10194
10195 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10196
10197 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10198 "set breakpoint condition-evaluation" command.
10199
10200 2012-03-08 Tristan Gingold <gingold@adacore.com>
10201
10202 * sparc-stub.c: Move to stubs/
10203 * sh-stub.c: Likewise.
10204 * m68k-stub.c: Likewise.
10205 * m32r-stub.c: Likewise.
10206 * i386-stub.c: Likewise.
10207
10208 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10209
10210 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10211 linux_get_siginfo_type.
10212
10213 * m68klinux-nat.c: Include "gdb_proc_service.h".
10214 (PTRACE_GET_THREAD_AREA): Define.
10215 (ps_get_thread_area): New function.
10216
10217 2012-03-08 Yao Qi <yao@codesourcery.com>
10218
10219 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10220 `xsnprintf'.
10221 (remote_query_attached): Likewise.
10222 (remote_static_tracepoint_marker_at): Likewise.
10223 (remote_set_permissions): Likewise.
10224 (remote_detach_1, extended_remote_attach_1): Likewise.
10225 (send_g_packet, remote_vkill): Likewise.
10226 (extended_remote_disable_randomization): Likewise.
10227 (remote_add_target_side_condition): Likewise.
10228 (remote_insert_breakpoint): Likewise.
10229 (remote_remove_breakpoint): Likewise.
10230 (remote_insert_watchpoint): Likewise.
10231 (remote_remove_watchpoint): Likewise.
10232 (remote_insert_hw_breakpoint): Likewise.
10233 (remote_insert_hw_breakpoint): Likewise.
10234 (remote_remove_hw_breakpoint): Likewise.
10235 (remote_download_command_source): Likewise.
10236 (remote_download_tracepoint): Likewise.
10237 (remote_download_trace_state_variable): Likewise.
10238 (remote_disable_tracepoint): Likewise.
10239 (remote_trace_set_readonly_regions): Likewise.
10240 (remote_get_tracepoint_status): Likewise.
10241 (remote_trace_find): Likewise.
10242 (remote_get_trace_state_variable_value): Likewise.
10243 (remote_set_disconnected_tracing): Likewise.
10244 (remote_set_circular_trace_buffer): Likewise.
10245 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10246 (remote_use_agent): Likewise.
10247 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10248 Update callers.
10249
10250 2012-03-07 Pedro Alves <palves@redhat.com>
10251
10252 * NEWS: Mention QProgramSignals.
10253 * inferior.h (update_signals_program_target): Declare.
10254 * infrun.c: (update_signals_program_target): New.
10255 (handle_command): Update the target of the new program signals
10256 array changes.
10257 * remote.c (PACKET_QProgramSignals): New enum.
10258 (last_program_signals_packet): New global.
10259 (remote_program_signals): New.
10260 (remote_start_remote): Update the target with the program signals
10261 list.
10262 (remote_protocol_features): Add entry for QPassSignals.
10263 (remote_open_1): Free anc clear last_program_signals_packet.
10264 (init_remote_ops): Install remote_program_signals.
10265 * target.c (update_current_target): Adjust.
10266 (target_program_signals): New.
10267 * target.h (struct target_ops) <to_program_signals>: New field.
10268 (target_program_signals): Declare.
10269
10270 2012-03-07 Pedro Alves <palves@redhat.com>
10271
10272 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10273 extensions.
10274
10275 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10276
10277 * m68klinux-nat.c (getregs_supplies): Make static.
10278 (getfpregs_supplies): Likewise.
10279 (have_ptrace_getregs): Likewise.
10280
10281 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10282
10283 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10284 in call to get_die_type_at_offset.
10285
10286 2012-03-06 Stan Shebs <stan@codesourcery.com>
10287
10288 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10289 * mi/mi-cmd-disas.c: Ditto.
10290 * mi/mi-cmd-env.c: Ditto.
10291 * mi/mi-cmd-file.c: Ditto.
10292 * mi/mi-cmd-stack.c: Ditto.
10293 * mi/mi-cmd-target.c: Ditto.
10294 * mi/mi-cmd-var.c: Ditto.
10295 * mi/mi-cmds.c: Ditto.
10296 * mi/mi-cmds.h: Ditto.
10297 * mi/mi-console.c: Ditto.
10298 * mi/mi-getopt.c: Ditto.
10299 * mi/mi-getopt.h: Ditto.
10300 * mi/mi-interp.c: Ditto.
10301 * mi/mi-main.c: Ditto.
10302 * mi/mi-out.c: Ditto.
10303 * mi/mi-parse.c: Ditto.
10304 * mi/mi-parse.h: Ditto.
10305 * mi/mi-symbol-cmds.c: Ditto.
10306
10307 * mi/mi-getopt.h: Move mi_opt struct up.
10308 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10309 return.
10310 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10311
10312 2012-03-06 Tom Tromey <tromey@redhat.com>
10313
10314 * proc-service.c (ps_pglobal_lookup): Set the current program
10315 space.
10316
10317 2012-03-06 Pedro Alves <palves@redhat.com>
10318
10319 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10320
10321 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10322
10323 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10324
10325 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10326
10327 Code cleanup.
10328 * common/linux-osdata.c (linux_common_core_of_thread): New function
10329 comment.
10330 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10331 call by linux_common_core_of_thread.
10332 (linux_nat_core_of_thread_1): Remove.
10333 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10334 * linux-thread-db.c: Include linux-osdata.h.
10335 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10336 linux_common_core_of_thread.
10337
10338 2012-03-05 Tom Tromey <tromey@redhat.com>
10339
10340 * value.c (value_primitive_field): Don't fetch contents for
10341 non-virtual bases.
10342
10343 2012-03-05 Tom Tromey <tromey@redhat.com>
10344
10345 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10346
10347 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10348
10349 * s390-nat.c: Include "gregset.h".
10350
10351 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10352
10353 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10354 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10355 (libunwind_load): New variable so_error, use it for dlerror. Try to
10356 load also LIBUNWIND_SO_7.
10357
10358 2012-03-05 Pedro Alves <palves@redhat.com>
10359
10360 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10361 is not NULL, and remove resulting dead code.
10362
10363 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10364
10365 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10366 prologue to sh_analyze_prologue.
10367 (sh_analyze_prologue): Make better use of such an upper limit, and
10368 generally be more cautious about accessing memory.
10369
10370 2012-03-05 Tom Tromey <tromey@redhat.com>
10371
10372 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10373 _initialize_ia64_hpux_tdep.
10374
10375 2012-03-05 Pedro Alves <palves@redhat.com>
10376
10377 PR gdb/13766
10378
10379 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10380 the register state is clear, supply explicit zero, instead of
10381 marking the register unavailable.
10382
10383 2012-03-05 Tristan Gingold <gingold@adacore.com>
10384
10385 * NEWS: Mention OpenVMS ia64 new target.
10386
10387 2012-03-05 Tristan Gingold <gingold@adacore.com>
10388
10389 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10390 (ia64_unw_accessors, ia64_unw_rse_accessors)
10391 (ia64_libunwind_descr): Declare.
10392 * ia64-vms-tdep.c: New file.
10393 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10394 (ia64_libunwind_descr): Make them public.
10395 * configure.tgt: Add ia64-*-*vms*.
10396 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10397 (ALLDEPFILES): Add ia64-vms-tdep.c
10398
10399 2012-03-05 Tristan Gingold <gingold@adacore.com>
10400
10401 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10402 * remote.c (PACKET_qXfer_uib): New enum value.
10403 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10404 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10405 (_initialize_remote): Call add_packet_config_cmd for
10406 xfer:uib packet.
10407
10408 2012-03-05 Tristan Gingold <gingold@adacore.com>
10409
10410 * osabi.c (gdb_osabi_names): Add OpenVMS.
10411 (generic_elf_osabi_sniffer): Likewise.
10412 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10413
10414 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10415
10416 Removed unused code.
10417 * libunwind-frame.c (libunwind_frame_unwind)
10418 (libunwind_frame_base_address): Remove.
10419 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10420
10421 2012-03-04 Yao Qi <yao@codesourcery.com>
10422
10423 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10424 remove trailing new line.
10425 (agent_run_command, agent_run_command): Add _ markup.
10426 (agent_capability_check): Likewise.
10427
10428 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10429
10430 * breakpoint.c (set_condition_evaluation_mode): Set
10431 CONDITION_EVALUATION_MODE unconditionally.
10432
10433 2012-03-03 Yao Qi <yao@codesourcery.com>
10434
10435 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10436 * common/agent.h: Update declaration.
10437 * inf-child.c (inf_child_use_agent): New.
10438 (inf_child_can_use_agent): New.
10439 (inf_child_target): Initialize fields `to_use_agent'
10440 and `to_can_use_agent'.
10441 * agent.c (agent_new_objfile): New.
10442 (_initialize_agent): Add agent_new_objfile to new_objfile
10443 observer.
10444
10445 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10446 New.
10447 (linux_target_install_ops): Initialize field
10448 `to_static_tracepoint_markers_by_strid'.
10449 * remote.c (free_current_marker): Move it to ...
10450 * tracepoint.c (free_current_marker): ... here. New.
10451 (cleanup_target_stop): New.
10452 * tracepoint.h: Declare free_current_marker.
10453 * NEWS: Add one entry about `info static-tracepoint-marker'.
10454
10455 2012-03-03 Yao Qi <yao@codesourcery.com>
10456
10457 * common/agent.c (agent_loaded_p): New.
10458 (agent_look_up_symbols): New global.
10459 * common/agent.h: Declare agent_loaded_p.
10460
10461 2012-03-03 Yao Qi <yao@codesourcery.com>
10462
10463 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10464 (agent_capability_check, agent_capability_invalidate): New.
10465 (symbol_list): New array element.
10466 * common/agent.h (enum agent_capa): New.
10467 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10468
10469 2012-03-03 Yao Qi <yao@codesourcery.com>
10470
10471 * target.h (struct target_ops) <to_use_agent>: New field.
10472 (struct target_ops) <to_can_use_agent>: New field.
10473 (target_use_agent, target_can_use_agent): New macro.
10474 * target.c (update_current_target): Update.
10475 * remote.c: New enum `PACKET_QAgent'.
10476 (remote_protocol_features): Add a new element.
10477 (remote_use_agent, remote_can_use_agent): New.
10478 (init_remote_ops): Initialize field `can_use_agent' with
10479 remote_can_use_agent. Intiailize field `use_agent' with
10480 remote_use_agent.
10481 * common/agent.c (use_agent): New global.
10482 * common/agent.h: Declare it.
10483 * tracepoint.c (info_static_tracepoint_markers_command): Add
10484 comment.
10485 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10486 (COMMON_OBS): Add common/agent.o and agent.o
10487 (common-agent.o): New rule.
10488 * agent.c: New.
10489
10490 2012-03-03 Yao Qi <yao@codesourcery.com>
10491
10492 * common/agent.c: New.
10493 * common/agent.h: New.
10494 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10495 AC_CHECK_HEADERS.
10496 * configure, configh.in: Regenerated.
10497
10498 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10499
10500 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10501 unless it exists for this architecture.
10502
10503 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10504
10505 * language.h (struct language_defn): New "method" la_read_var_value.
10506 * findvar.c: #include "language.h".
10507 (default_read_var_value): Renames read_var_value. Rewrite
10508 function description.
10509 (read_var_value): New function.
10510 * value.h (default_read_var_value): Add prototype.
10511 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10512 New functions.
10513 (ada_language_defn): Add entry for la_read_var_value.
10514 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10515 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10516 language_defn structures to add entry for new la_read_var_value
10517 field.
10518
10519 2012-03-02 Tom Tromey <tromey@redhat.com>
10520 Pedro Alves <palves@redhat.com>
10521
10522 PR breakpoints/13776:
10523 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10524 breakpoints.
10525 (delete_longjmp_breakpoint_at_next_stop): New.
10526 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10527 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10528 before deleting the inferior. Add comments.
10529 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10530 breakpoints immediately, but only on next stop. Move that code
10531 next to where we mark other breakpoints for deletion.
10532
10533 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10534
10535 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10536 marker.
10537 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10538 violation.
10539
10540 2012-03-02 Pedro Alves <palves@redhat.com>
10541
10542 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10543
10544 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10545
10546 Fix -Wmissing-prototypes build.
10547 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10548 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10549 (gdbsim_has_memory): Likewise.
10550
10551 2012-03-02 Yao Qi <yao@codesourcery.com>
10552
10553 Fix -Wmissing-prototypes build.
10554 * charset.c (phony_iconv_open): Make static.
10555 (phony_iconv_close, phony_iconv): Likewise.
10556 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10557 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10558 prototype.
10559 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10560 * ser-mingw.c (create_select_thread): Make static.
10561 * windows-termcap.c (tgetent): New prototype.
10562 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10563
10564 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10565
10566 Fix -Wmissing-prototypes build.
10567 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10568 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10569 (_initialize_loadable): New prototypes.
10570
10571 2012-03-02 Doug Evans <dje@google.com>
10572
10573 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10574 abbrev table, read_comp_unit will do it.
10575
10576 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 Fix -Wmissing-prototypes build.
10579 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10580 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10581 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10582 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10583 (_initialize_arm_symbian_tdep): New prototype.
10584 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10585 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10586 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10587 static.
10588 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10589 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10590 prototype.
10591 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10592 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10593 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10594 static.
10595 * moxie-tdep.c (moxie_process_record): Likewise.
10596 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10597 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10598 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10599 (_initialize_rl78_tdep): New prototype.
10600 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10601 (_initialize_rx_tdep): New prototype.
10602 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10603 (_initialize_darwin_solib): New prototype.
10604 * solib-spu.c: Include solib-spu.h.
10605 (_initialize_spu_solib): New prototype.
10606 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10607 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10608 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10609 (tic6x_software_single_step): Make it static.
10610 (_initialize_tic6x_tdep): New prototype.
10611
10612 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10613
10614 Fix -Wmissing-prototypes build.
10615 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10616 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10617
10618 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10619
10620 Fix -Wmissing-prototypes build.
10621 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10622 (frv_have_stopped_data_address): Remove.
10623
10624 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10625
10626 Fix -Wmissing-prototypes build.
10627 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10628 * sh-tdep.c: Include sh64-tdep.h.
10629 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10630 * sh64-tdep.c: Include sh64-tdep.h.
10631 * sh64-tdep.h: New file.
10632
10633 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10634
10635 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10636
10637 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10638
10639 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10640 sp_regnum once the gdbarch_init_osabi hook has been called.
10641
10642 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10643
10644 * mips-tdep.c (mips32_bc1_pc): New function.
10645 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10646 BPOSGE32 and BPOSGE64 instructions.
10647 (deal_with_atomic_sequence): Likewise.
10648 (mips32_instruction_has_delay_slot): Likewise.
10649
10650 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10651 Chris Dearman <chris@mips.com>
10652 Maciej W. Rozycki <macro@codesourcery.com>
10653 Joseph Myers <joseph@codesourcery.com>
10654
10655 * features/mips-dsp.xml: New file.
10656 * features/mips64-dsp.xml: New file.
10657 * features/mips-dsp-linux.xml: New file.
10658 * features/mips64-dsp-linux.xml: New file.
10659 * features/Makefile (WHICH): Add mips-dsp-linux and
10660 mips64-dsp-linux.
10661 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10662 * features/mips-dsp-linux.c: New file.
10663 * features/mips64-dsp-linux.c: New file.
10664 * regformats/mips-dsp-linux.dat: New file.
10665 * regformats/mips64-dsp-linux.dat: New file.
10666 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10667 registers.
10668 (mips64_linux_register_addr): Likewise.
10669 (mips64_linux_regsets_fetch_registers): Likewise.
10670 (mips64_linux_regsets_store_registers): Likewise.
10671 (mips64_linux_fetch_registers): Update call to
10672 mips64_linux_regsets_fetch_registers.
10673 (mips64_linux_store_registers): Update call to
10674 mips64_linux_regsets_store_registers.
10675 (mips_linux_read_description): Probe for DSP registers.
10676 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10677 and initialize_tdesc_mips64_dsp_linux.
10678 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10679 Remove padding of no longer used embedded register slots.
10680 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10681 (MIPS_RESTART_REGNUM): Redefine enum value.
10682 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10683 strings.
10684 (mips_tx39_reg_names): Likewise.
10685 (mips_linux_reg_names): New array of register names for Linux
10686 targets.
10687 (mips_register_name): Check for a null pointer in
10688 mips_processor_reg_names and return an empty string.
10689 (mips_register_type): Exclude embedded registers for the IRIX
10690 and Linux ABIs.
10691 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10692 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10693 DSP registers.
10694 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10695 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10696 (mips_gdbarch_init): Likewise. Initialize internal register
10697 indices for the Linux ABI. Use dynamic numbers to refer to
10698 registers, as applicable, while parsing the target description.
10699 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10700
10701 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10702
10703 * frame.h (read_frame_register_unsigned): Fix typo in function
10704 description.
10705
10706 2012-03-01 Pedro Alves <palves@redhat.com>
10707
10708 * jit-reader.in [!__cplusplus]
10709 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10710
10711 2012-03-01 Pedro Alves <palves@redhat.com>
10712
10713 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10714 * configure: Regenerate.
10715
10716 2012-03-01 Pedro Alves <palves@redhat.com>
10717
10718 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10719 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10720 (ftrace_command, strace_command): Make static.
10721 * d-lang.c (_initialize_d_language): Declare.
10722 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10723 * dwarf2loc.c (_initialize_dwarf2loc):
10724 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10725 * exec.c (exec_get_section_table): Make static.
10726 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10727 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10728 * inferior.c (remove_inferior_command, add_inferior_command)
10729 (clone_inferior_command): Make static.
10730 * linux-nat.c (linux_nat_thread_address_space)
10731 (linux_nat_core_of_thread): Make static.
10732 * linux-tdep.c (_initialize_linux_tdep): Declare.
10733 * objc-lang.c (_initialize_objc_lang): Declare.
10734 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10735 Make static.
10736 (_initialize_opencl_language): Declare.
10737 * record.c (_initialize_record): Declare.
10738 * remote.c (demand_private_info, remote_get_tib_address)
10739 (remote_supports_cond_tracepoints)
10740 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10741 Make static.
10742 * skip.c (_initialize_step_skip): Declare.
10743 * symtab.c (skip_prologue_using_lineinfo): Make static.
10744 * tracepoint.c (delete_trace_state_variable)
10745 (trace_variable_command, delete_trace_variable_command)
10746 (get_uploaded_tsv, find_matching_tracepoint_location)
10747 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10748 Make static.
10749 * value.c (pack_unsigned_long): Make static.
10750 * varobj.c (varobj_ensure_python_env): Make static.
10751 * windows-tdep.c (_initialize_windows_tdep): Declare.
10752 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10753
10754 2012-03-01 Pedro Alves <palves@redhat.com>
10755
10756 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10757 gdbarch parameter.
10758 (linux_init_abi): Install it as has_shared_address_space gdbarch
10759 callback.
10760
10761 2012-03-01 Pedro Alves <palves@redhat.com>
10762
10763 * observer.c (observer_test_first_notification_function)
10764 (observer_test_second_notification_function)
10765 (observer_test_third_notification_function): Add declarations.
10766
10767 2012-03-01 Pedro Alves <palves@redhat.com>
10768
10769 * common/signals.c (default_target_signal_to_host)
10770 (default_target_signal_from_host): Move ...
10771 * arch-utils.c: ... here.
10772 * arch-utils.h (default_target_signal_to_host)
10773 (default_target_signal_from_host): Declare.
10774
10775 * common/signals.c (target_signal_from_command): Move ...
10776 * infrun.c: ... here.
10777 * inferior.h (target_signal_from_command): Declare.
10778 * target.h (target_signal_from_command)
10779 (default_target_signal_from_host, default_target_signal_to_host):
10780 Delete declarations.
10781
10782 * common/signals.c (_initialize_signals): Delete.
10783
10784 2012-03-01 Pedro Alves <palves@redhat.com>
10785
10786 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10787 both __cplusplus and !__cplusplus.
10788
10789 2012-03-01 Pedro Alves <palves@redhat.com>
10790
10791 * psymtab.c (find_and_open_source): Delete declaration.
10792 * source.c (find_and_open_source): Move comment ...
10793 * source.h (find_and_open_source): ... to this new declaration.
10794
10795 2012-03-01 Pedro Alves <palves@redhat.com>
10796
10797 * inline-frame.c: Include inline-frame.h.
10798
10799 2012-03-01 Pedro Alves <palves@redhat.com>
10800
10801 * tui/tui-data.c (set_gen_win_origin): Delete.
10802 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10803 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10804
10805 2012-03-01 Pedro Alves <palves@redhat.com>
10806
10807 * remote.c (encode_actions): Delete declaration.
10808 * tracepoint.c (encode_actions): Make extern.
10809 * tracepoint.h (encode_actions): Declare.
10810
10811 2012-03-01 Pedro Alves <palves@redhat.com>
10812
10813 * python/py-breakpoint.c: Include python.h.
10814 * python/py-continueevent.c (create_continue_event_object): Make
10815 static.
10816 * python/py-lazy-string.c (stpy_get_type): Make static.
10817 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10818 Make static.
10819 * python/py-utils.c (unicode_to_target_python_string): Make
10820 static.
10821 * python/py-value.c: Include python.h.
10822
10823 2012-03-01 Pedro Alves <palves@redhat.com>
10824
10825 * inferior.c (delete_threads_of_inferior): Delete.
10826
10827 2012-03-01 Pedro Alves <palves@redhat.com>
10828
10829 Import fallback definitions from glibc.
10830
10831 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10832 ps_prochandle): Forward declare.
10833 (ps_err_e): Use glibc's comments.
10834 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10835 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10836 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10837 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10838 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10839 (struct ps_prochandle): Adjust comment.
10840
10841 2012-03-01 Pedro Alves <palves@redhat.com>
10842
10843 * ada-lang.c (ada_modulus_from_name): Delete.
10844 * ada-lex.l (lexer_init): Make static.
10845
10846 2012-03-01 Pedro Alves <palves@redhat.com>
10847
10848 PR gdb/13767
10849
10850 * frame.c (read_frame_register_unsigned): New.
10851 * frame.h (read_frame_register_unsigned): Declare.
10852 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10853 Handle it.
10854 (print_i387_control_word): New parameter `control_p'. Handle it.
10855 (i387_print_float_info): Handle unavailable float registers.
10856
10857 2012-03-01 Keith Seitz <keiths@redhat.com>
10858
10859 * linespec.c (decode_line_2): Sort the list of methods
10860 alphabetically before presenting the user with a selection
10861 menu.
10862
10863 2012-03-01 Doug Evans <dje@google.com>
10864
10865 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10866 has_namespace_info.
10867 (dwarf2_read_abbrevs): Remove corresponding initialization.
10868
10869 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10870
10871 * NEWS: Mention new python command class gdb.COMMAND_USER.
10872 * cli/cli-cmds.c (show_user): Print error when used on a python
10873 command.
10874 (init_cli_cmds): Update documentation strings for "show user" and
10875 "set/show max-user-call-depth" to clarify that it does not apply to
10876 python commands.
10877 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10878 error check.
10879 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10880 gdb python api.
10881 * top.c (execute_command): Only execute a user-defined command as a
10882 legacy macro if c->user_commands is set.
10883
10884 2012-03-01 Tom Tromey <tromey@redhat.com>
10885
10886 * valprint.h (struct generic_val_print_decorations): New.
10887 (generic_val_print): Declare.
10888 * valprint.c (generic_val_print): New function.
10889 * p-valprint.c (p_decorations): New global.
10890 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10891 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10892 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10893 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10894 * m2-valprint.c (m2_decorations): New global.
10895 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10896 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10897 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10898 TYPE_CODE_ERROR>: Call generic_val_print.
10899 * f-valprint.c (f_decorations): New global.
10900 (f_val_print): Use print_function_pointer_address.
10901 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10902 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10903 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10904 generic_val_print.
10905 * c-valprint.c (c_decorations): New global.
10906 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10907 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10908 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10909 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10910 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10911 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10912 case.
10913
10914 2012-03-01 Tom Tromey <tromey@redhat.com>
10915
10916 * valprint.c (val_print): Update.
10917 * p-valprint (pascal_val_print): Return void.
10918 * p-lang.h (pascal_val_print): Return void.
10919 * m2-valprint.c (m2_val_print): Return void.
10920 * m2-lang.h (m2_val_print): Return void.
10921 * language.h (struct language_defn) <la_val_print>: Return void.
10922 * language.c (unk_lang_val_print): Return void.
10923 * jv-valprint.c (java_val_print): Return void.
10924 * jv-lang.h (java_val_print): Return void.
10925 * f-valprint.c (f_val_print): Return void.
10926 * f-lang.h (f_val_print): Return void.
10927 * d-valprint.c (d_val_print): Return void.
10928 (dynamic_array_type): Update.
10929 * d-lang.h (d_val_print): Return void.
10930 * c-valprint.c (c_val_print): Return void.
10931 * c-lang.h (c_val_print): Return void.
10932 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10933 void.
10934 * ada-lang.h (ada_val_print): Return void.
10935
10936 2012-03-01 Tom Tromey <tromey@redhat.com>
10937
10938 * value.h (val_print): Return void.
10939 * valprint.c (val_print): Return void.
10940
10941 2012-03-01 Tom Tromey <tromey@redhat.com>
10942
10943 * value.h (common_val_print): Return void.
10944 * valprint.c (common_val_print): Return void.
10945
10946 2012-03-01 Tom Tromey <tromey@redhat.com>
10947
10948 * value.h (value_print): Return void.
10949 * valprint.c (value_print): Return void.
10950 * p-valprint.c (pascal_value_print): Return void.
10951 * p-lang.h (pascal_value_print): Return void.
10952 * language.h (struct language_defn) <la_value_print>: Return
10953 void.
10954 * language.c (unk_lang_value_print): Return void.
10955 * jv-valprint.c (java_value_print): Return void.
10956 * jv-lang.h (java_value_print): Return void.
10957 * f-valprint.c (c_value_print): Don't declare.
10958 Include c-lang.h.
10959 * c-valprint.c (c_value_print): Return void.
10960 * c-lang.h (c_value_print): Return void.
10961 * ada-valprint.c (ada_value_print): Return void.
10962 * ada-lang.h (ada_value_print): Return void.
10963
10964 2012-03-01 Tom Tromey <tromey@redhat.com>
10965
10966 * value.c (value_primitive_field): Handle virtual base classes.
10967
10968 2012-03-01 Tom Tromey <tromey@redhat.com>
10969
10970 * gdbtypes.h (struct vbase): Remove.
10971
10972 2012-03-01 Tom Tromey <tromey@redhat.com>
10973
10974 * c-valprint.c (print_function_pointer_address): Move...
10975 * valprint.c: ... here. Make non-static.
10976 * m2-valprint.c (print_function_pointer_address): Remove.
10977 * valprint.h (print_function_pointer_address): Declare.
10978
10979 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10980
10981 * NEWS: Document the fact that one can provide a condition when
10982 creating an Ada exception catchpoint.
10983
10984 2012-03-01 Tom Tromey <tromey@redhat.com>
10985
10986 * valprint.c (val_print_type_code_flags): Fix placement of
10987 trailing brace.
10988
10989 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10990
10991 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10992 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10993 environment variable before calling update-copyright.
10994
10995 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10996
10997 * gnulib/extra/update-copyright: Update to the latest from
10998 gnulib's git repository.
10999 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
11000 variable to 2 instead of 1.
11001
11002 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11003
11004 * varobj.c (c_value_of_variable): Remove dead code.
11005
11006 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11007
11008 * ada-lex.p (processId): Do not modify already encoded IDs.
11009 Update function documentation.
11010
11011 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11012
11013 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11014 "name" with "struct symbol *name_sym".
11015 * ada-exp.y (write_var_or_type): Update call to
11016 ada_find_renaming_symbol.
11017 "name" with "struct symbol *name_sym". Adjust Implementation
11018 accordingly. Adjust the function documentation.
11019
11020 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11021
11022 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11023 * ada-lang.c (ada_find_any_type): Add advance declaration.
11024 Make static. Replace ada_find_any_symbol by
11025 ada_find_any_type_symbol.
11026 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11027 Improve function description. Make static.
11028 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11029 Replace ada_find_any_symbol by ada_find_any_type_symbol.
11030
11031 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11032
11033 * ada-lang.c (struct tag_args): Delete.
11034 (ada_get_tsd_type): Function body moved up in source file.
11035 (ada_tag_name_1, ada_tag_name_2): Delete.
11036 (ada_get_tsd_from_tag): New function.
11037 (ada_tag_name_from_tsd): New function.
11038 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11039 to determine the tag name.
11040
11041 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11042
11043 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11044 declaration.
11045 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11046 function.
11047
11048 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11049
11050 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11051
11052 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11053
11054 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11055 full searches.
11056
11057 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11058
11059 * ada-lang.c (constrained_packed_array_type): If there is a
11060 parallel XA type, use it to determine the array index type.
11061
11062 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11063
11064 * ada-valprint.c (ada_val_print_1): If our value is a reference
11065 to an array descriptor, dereference it before converting it
11066 to a simple array.
11067
11068 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11069
11070 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11071 creating fixed value.
11072 (ada_value_ind, ada_coerce_ref, assign_component)
11073 (ada_evaluate_subexp): Remove call to unwrap_value before
11074 call to ada_to_fixed_value.
11075
11076 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11077
11078 * ada-lang.c (to_fixed_array_type): Set result's type name.
11079
11080 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11081
11082 * ada-lang.c (catch_ada_exception_command_split): Add new
11083 argument cond_string. Add support for condition at end of
11084 "catch exception" commands.
11085 (ada_decode_exception_location): Add new argument cond_string.
11086 Update call to catch_ada_exception_command_split.
11087 (create_ada_exception_catchpoint): Add new argument cond_string.
11088 Set the breakpoint condition if needed.
11089 (catch_ada_exception_command): Update call to
11090 ada_decode_exception_location.
11091 (ada_decode_assert_location): Add function documentation.
11092 Add support for condition at end of "catch assert" command.
11093 (catch_assert_command): Update calls to ada_decode_assert_location
11094 and create_ada_exception_catchpoint.
11095
11096 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11097
11098 Fix disp-step-syscall.exp: fork: single step over fork.
11099 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11100 (i386_linux_get_syscall_number_from_regcache): ... here, new function
11101 comment, change parameters gdbarch and ptid to regcache. Remove
11102 parameter regcache, initialize gdbarch from regcache here.
11103 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11104 New functions.
11105 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11106 instead.
11107 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11108 'syscall'. Make the 'int' check more strict.
11109
11110 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11111
11112 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11113 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11114 (i386_linux_intx80_sysenter_syscall_record): ... here.
11115 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11116 Use the renamed function name.
11117
11118 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11119
11120 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11121 * breakpoint.c (until_break_command): Likewise.
11122 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11123 * infcall.c (call_function_by_hand): Likewise.
11124 * infcmd.c (finish_forward): Likewise.
11125 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11126
11127 2012-02-28 Tristan Gingold <gingold@adacore.com>
11128
11129 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11130 avoid variable assignments inside condition.
11131
11132 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11133
11134 Fix static analysis issue found by cppcheck.
11135 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11136 uninitialized BUF for size 2.
11137
11138 2012-02-27 Chris Dearman <chris@mips.com>
11139 Nathan Froyd <froydnj@codesourcery.com>
11140 Maciej W. Rozycki <macro@codesourcery.com>
11141
11142 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11143 (mips16_instruction_has_delay_slot): Likewise.
11144 (mips_segment_boundary): Likewise.
11145 (mips_adjust_breakpoint_address): Likewise.
11146 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11147
11148 2012-02-27 Maciej W. Rozycki <macro@mips.com>
11149 Maciej W. Rozycki <macro@codesourcery.com>
11150
11151 * infrun.c (handle_inferior_event): Don't proceed through
11152 shared library trampolines if stepping at the machine
11153 instruction level.
11154
11155 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11156
11157 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11158 too.
11159
11160 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11161
11162 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11163 (sh_stub_unwind_sniffer): New functions.
11164 (sh_stub_unwind): New variable.
11165 (sh_gdbarch_init): Wire everything.
11166
11167 2012-02-27 Pedro Alves <palves@redhat.com>
11168
11169 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11170 (linux_nat_post_attach_wait): Adjust to use
11171 linux_proc_pid_is_stopped.
11172 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11173 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11174 based on pid_is_stopped from both linux-nat.c and
11175 gdbserver/linux-low.c, and renamed.
11176
11177 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11178
11179 * remote.c (remote_watchpoint_addr_within_range): New function.
11180 (init_remote_ops): Use it.
11181
11182 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11183
11184 * target.h (target_watchpoint_addr_within_range): Document macro.
11185
11186 2012-02-24 Pedro Alves <palves@redhat.com>
11187
11188 * stack.c (set_last_displayed_sal): Issue internal_error instead
11189 of warning, and issue it after clearing the last displayed sal.
11190
11191 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11192 Pedro Alves <palves@redhat.com>
11193
11194 * breakpoint.c (until_break_command): Install breakpoints after
11195 all frame manipulations.
11196
11197 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11198
11199 * remote.c (remote_supports_cond_breakpoints): New forward
11200 declaration.
11201 (remote_add_target_side_condition): New function.
11202 (remote_insert_breakpoint): Add target-side breakpoint
11203 conditional if supported.
11204 (remote_insert_hw_breakpoint): Likewise.
11205 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11206 hook.
11207
11208 * target.c (update_current_target): Inherit
11209 to_supports_evaluation_of_breakpoint_conditions.
11210 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11211
11212 * target.h (struct target_ops)
11213 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11214 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11215
11216 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11217 (condition_evaluation_both, condition_evaluation_auto,
11218 condition_evaluation_host, condition_evaluation_target,
11219 condition_evaluation_enums, condition_evaluation_mode_1,
11220 condition_evaluation_mode): New static globals.
11221 (translate_condition_evaluation_mode): New function.
11222 (breakpoint_condition_evaluation_mode): New function.
11223 (gdb_evaluates_breakpoint_condition_p): New function.
11224 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11225 (mark_breakpoint_modified): New function.
11226 (mark_breakpoint_location_modified): New function.
11227 (set_condition_evaluation_mode): New function.
11228 (show_condition_evaluation_mode): New function.
11229 (bp_location_compare_addrs): New function.
11230 (get_first_location_gte_addr): New helper function.
11231 (set_breakpoint_condition): Free condition bytecode if locations
11232 has become unconditional. Call mark_breakpoint_modified (...).
11233 (condition_command): Call update_global_location_list (1) for
11234 breakpoints.
11235 (breakpoint_xfer_memory): Use is_breakpoint (...).
11236 (is_breakpoint): New function.
11237 (parse_cond_to_aexpr): New function.
11238 (build_target_condition_list): New function.
11239 (insert_bp_location): Handle target-side conditional
11240 breakpoints and call build_target_condition_list (...).
11241 (update_inserted_breakpoint_locations): New function.
11242 (insert_breakpoint_locations): Handle target-side conditional
11243 breakpoints.
11244 (bpstat_check_breakpoint_conditions): Add comment.
11245 (bp_condition_evaluator): New function.
11246 (bp_location_condition_evaluator): New function.
11247 (print_breakpoint_location): Print information on where the condition
11248 will be evaluated.
11249 (print_one_breakpoint_location): Likewise.
11250 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11251 breakpoint location.
11252 (force_breakpoint_reinsertion): New functions.
11253 (update_global_location_list): Handle target-side breakpoint
11254 conditions.
11255 Reinsert locations that are already inserted if conditions have
11256 changed.
11257 (bp_location_dtor): Free agent expression bytecode.
11258 (disable_breakpoint): Call mark_breakpoint_modified (...).
11259 Call update_global_location_list (...) with parameter 1 for breakpoints.
11260 (disable_command): Call mark_breakpoint_location_modified (...).
11261 Call update_global_location_list (...) with parameter 1 for breakpoints.
11262 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11263 (enable_command): mark_breakpoint_location_modified (...).
11264 (_initialize_breakpoint): Update documentation and add
11265 condition-evaluation breakpoint subcommand.
11266
11267 * breakpoint.h: Include ax.h.
11268 (condition_list): New data structure.
11269 (condition_status): New enum.
11270 (bp_target_info) <cond_list>: New field.
11271 (bp_location) <condition_changed, cond_bytecode>: New fields.
11272 (is_breakpoint): New prototype.
11273
11274 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11275
11276 * remote.c (remote_state) <cond_breakpoints>: New field.
11277 (PACKET_ConditionalBreakpoints): New enum.
11278 (remote_cond_breakpoint_feature): New function.
11279 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11280 (remote_supports_cond_breakpoints): New function.
11281 (_initialize_remote): Add new packet configuration for
11282 target-side conditional breakpoints.
11283
11284 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11285
11286 * NEWS: Mention target-side conditional breakpoint support,
11287 new condition-evaluation breakpoint subcommand and remote
11288 packet extensions.
11289
11290 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11291
11292 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11293 number.
11294
11295 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11296
11297 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11298 (after_prologue): Remove.
11299
11300 2012-02-23 Tom Tromey <tromey@redhat.com>
11301
11302 * jv-valprint.c (java_val_print): Remove dead code.
11303
11304 2012-02-23 Tristan Gingold <gingold@adacore.com>
11305
11306 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11307 known_tasks_element and known_tasks_length fields.
11308 (read_known_tasks_array): Change argument type. Use pointer type
11309 and number of elements from DATA. Adjust.
11310 (read_known_tasks_list): Likewise.
11311 (get_known_tasks_addr): Remove.
11312 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11313 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11314 type and array length. Merge former get_known_tasks_addr code.
11315
11316 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11317
11318 PR backtrace/13716
11319 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11320 it after set_momentary_breakpoint.
11321
11322 2012-02-22 Sterling Augustine <saugustine@google.com>
11323
11324 PR 13689:
11325 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11326
11327 2012-02-22 Gary Benson <gbenson@redhat.com>
11328
11329 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11330 (find_slot_in_mapped_hash): Likewise.
11331
11332 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11333
11334 PR build/13638
11335 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11336 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11337 * configure: Regenerate.
11338
11339 2012-02-21 Tristan Gingold <gingold@adacore.com>
11340 Pedro Alves <palves@redhat.com>
11341
11342 * ia64-tdep.c: Do not include libunwind-ia64.h.
11343 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11344 Include libunwind-ia64.h instead of libunwind.h.
11345 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11346 for libunwind.h existence.
11347 * configure, config.in: Regenerate.
11348
11349 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11350
11351 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11352 instead of value_rtti_target_type.
11353 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11354 instead of value_rtti_target_type.
11355 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11356 value_rtti_target_type.
11357 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11358 (value_rtti_target_type): Rename to ...
11359 (value_rtti_indirect_type): ... here and make it indirect. Update
11360 function comment.
11361 * value.c (readjust_indirect_value_type): New function.
11362 (coerce_ref): Support for enclosing type setting for references
11363 with readjust_indirect_value_type.
11364 * value.h (readjust_value_type): New declaration.
11365 (value_rtti_target_type): Rename to ...
11366 (value_rtti_indirect_type): ... here.
11367
11368 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11369
11370 * MAINTAINERS (Write After Approval): Add myself to the list.
11371
11372 2012-02-20 Doug Evans <dje@google.com>
11373
11374 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11375 Rename objfile_p_char parameter to objfilep.
11376 (build_objfile_section_table): Result is now void. All callers
11377 updated.
11378 * objfiles.h (struct objfile): Tweak comments, whitespace.
11379 (build_objfile_section_table): Update.
11380
11381 * elfread.c (elf_symfile_segments): Fix warning text.
11382
11383 2012-02-20 Tom Tromey <tromey@redhat.com>
11384
11385 PR gdb/13498:
11386 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11387 particular set of file names once.
11388 (dw2_map_symbol_filenames): Likewise.
11389
11390 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11391
11392 Code cleanup.
11393 * main.c (write_files): Remove the declaration.
11394 (external_editor_command): Move the declaration ...
11395 [GDBTK] (external_editor_command): ... here. Fix the comment.
11396
11397 2012-02-20 Tom Tromey <tromey@redhat.com>
11398
11399 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11400 extraneous block.
11401
11402 2012-02-20 Tristan Gingold <gingold@adacore.com>
11403
11404 * darwin-nat.h (enum darwin_msg_state): Add comments.
11405
11406 2012-02-20 Tristan Gingold <gingold@adacore.com>
11407
11408 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11409 value.
11410
11411 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11412
11413 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11414 between function description and implementation.
11415
11416 2012-02-17 Tom Tromey <tromey@redhat.com>
11417
11418 PR python/12070:
11419 * python/py-event.c (event_object_getset): New global.
11420 (event_object_type): Reference it.
11421 * python/py-type.c (field_object_getset): New global.
11422 (field_object_type): Reference it.
11423 * python/python-internal.h (gdb_py_generic_dict): Declare.
11424 * python/py-utils.c (gdb_py_generic_dict): New function.
11425
11426 2012-02-17 Tristan Gingold <gingold@adacore.com>
11427
11428 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11429
11430 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11431
11432 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11433 TYPE_CALLING_CONVENTION annotation.
11434
11435 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11436
11437 * MAINTAINERS: Add rx to target ISA section.
11438 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11439 (ALLDEPFILES): Add rx-tdep.c.
11440
11441 2012-02-16 Tom Tromey <tromey@redhat.com>
11442
11443 * symfile.c (symbol_file_add_main_1): Use inferior's
11444 symfile_flags.
11445 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11446 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11447 inferior.
11448 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11449 inferior.
11450 (follow_exec): Use inferior's symfile_flags.
11451 * inferior.h (struct inferior) <symfile_flags>: New field.
11452
11453 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11454
11455 PR gdb/9734:
11456 * remote-sim.c (gdbsim_create_inferior): Call error() when
11457 sim_create_inferior() fails.
11458
11459 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11460
11461 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11462
11463 2012-02-16 Tom Tromey <tromey@redhat.com>
11464
11465 PR c++/13653:
11466 * thread.c (struct current_thread_cleanup) <was_removable>: New
11467 field.
11468 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11469 (make_cleanup_restore_current_thread): Initialize new field.
11470
11471 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11472
11473 * MAINTAINERS: Add rl78 to target ISA section.
11474 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11475 (ALLDEPFILES): Add rl78-tdep.c.
11476 * NEWS: Mention rl78 as a new target.
11477
11478 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11479
11480 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11481 data.
11482 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11483
11484 2012-02-15 Tom Tromey <tromey@redhat.com>
11485
11486 PR gdb/12659:
11487 * infcmd.c (registers_info): Print just the current register's
11488 name.
11489
11490 2012-02-15 Tom Tromey <tromey@redhat.com>
11491
11492 * python/py-symbol.c (sympy_value): Use _().
11493
11494 2012-02-15 Pedro Alves <palves@redhat.com>
11495
11496 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11497 output to be like native targets'.
11498 (remote_pid_to_str): Special case the null ptid.
11499
11500 2012-02-14 Stan Shebs <stan@codesourcery.com>
11501
11502 * NEWS: Mention enable count command.
11503 * breakpoint.h (struct breakpoint): New field enable_count.
11504 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11505 (enable_breakpoint): Add arg to call.
11506 (struct disp_data): New struct.
11507 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11508 (do_map_enable_once_breakpoint): Create a struct and pass it.
11509 (do_map_enable_delete_breakpoint): Ditto.
11510 (do_map_enable_count_breakpoint): New function.
11511 (enable_count_command): New function.
11512 (bpstat_stop_status): Decrement enable_count.
11513 (print_one_breakpoint_location): Report enable count.
11514 (_initialize_breakpoint): Add enable count command.
11515
11516 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11517
11518 * rl78-tdep.c (reggroups.h): Include.
11519 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11520 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11521 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11522 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11523 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11524 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11525 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11526 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11527 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11528 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11529 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11530 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11531 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11532 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11533 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11534 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11535 beginning of register list.
11536 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11537 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11538 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11539 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11540 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11541 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11542 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11543 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11544 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11545 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11546 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11547 the pseudo registers. Rearrange other pseudo registers too so
11548 that the bank registers appear at the end.
11549 (rl78_register_type): Account for the fact that the byte sized
11550 bank registers are now pseudo-registers.
11551 (rl78_register_name): Rearrange the register name array. Make
11552 initial set of raw banked registers inaccessible.
11553 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11554 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11555 case for copying bytes back and forth between raw and pseudo
11556 versions of the banked registers. Update other cases to reflect
11557 the changed names.
11558 (rl78_return_value): Update to account for changed names of
11559 raw registers.
11560 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11561 rl78_register_sim_regno().
11562
11563 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11564
11565 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11566 the name parameter being passed to find_pc_partial_function().
11567
11568 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11569
11570 * MAINTAINERS: Step down from being ia64 target maintainer.
11571
11572 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11573
11574 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11575 compilation warning.
11576
11577 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11578
11579 Fix crash on loaded shlibs without loaded exec_bfd.
11580 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11581 (set_section_command): Replace exec_bfd by p->bfd.
11582
11583 2012-02-10 Tom Tromey <tromey@redhat.com>
11584
11585 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11586 when we have a C++ qualified name.
11587
11588 2012-02-10 Pedro Alves <palves@redhat.com>
11589
11590 * inferior.c (inferior_pid_to_str): New.
11591 (print_inferior, inferior_command): Use it.
11592
11593 2012-02-10 Pedro Alves <palves@redhat.com>
11594
11595 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11596 the test CFLAGS.
11597 * configure: Regenerate.
11598
11599 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11600
11601 * linespec.c (decode_line_internal): Fix comment correctness.
11602
11603 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11604
11605 PR gdb/12953
11606 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11607 * amd64bsd-nat.c: Add support for debug registers (adapted from
11608 i386bsd-nat.c).
11609 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11610 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11611 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11612 (amd64bsd_dr_get_control): New functions.
11613 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11614 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11615 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11616 watchpoints initialization.
11617 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11618
11619 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11620
11621 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11622 flds_bnds.fields.
11623 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11624
11625 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11626
11627 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11628
11629 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11630
11631 * language.h (symbol_name_cmp_ftype): Renames
11632 symbol_name_match_p_ftype.
11633 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11634 la_get_symbol_name_match_p.
11635 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11636 ada_get_symbol_name_match_p. Update comment.
11637 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11638 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11639 Renames symbol_name_match_p. Update field type.
11640 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11641 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11642 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11643 "la_get_symbol_name_cmp" in comments.
11644 * language.c: Likewise.
11645
11646 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11647
11648 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11649 %eflags offset.
11650 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11651 (amd64_sol2_gregset32_reg_offs): Likewise.
11652
11653 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11654
11655 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11656 of the returned BFD is allocated by GDB.
11657
11658 2012-02-07 Tom Tromey <tromey@redhat.com>
11659
11660 PR python/12027:
11661 * python/python-internal.h (frame_object_type): Declare.
11662 * python/py-symbol.c (sympy_needs_frame): New function.
11663 (sympy_value): New function.
11664 (symbol_object_getset): Add "needs_frame".
11665 (symbol_object_methods): Add "value".
11666 * python/py-frame.c (frame_object_type): No longer static.
11667
11668 2012-02-07 Tom Tromey <tromey@redhat.com>
11669
11670 PR python/13599:
11671 * python/py-symbol.c (sympy_line): New function.
11672 (symbol_object_getset): Add "line".
11673
11674 2012-02-07 Tom Tromey <tromey@redhat.com>
11675
11676 * charset.c (find_charset_names): Check 'in' against NULL.
11677
11678 2012-02-06 Doug Evans <dje@google.com>
11679
11680 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11681 and fields.name members from char * to const char *. All uses updated.
11682 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11683 from char * to const char *. All uses updated.
11684 (type_name_no_tag): Update.
11685 (lookup_unsigned_typename, lookup_signed_typename): Update.
11686 * gdbtypes.c (type_name_no_tag): Change result type
11687 from char * to const char *. All callers updated.
11688 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11689 name parameter from char * to const char *.
11690 * symtab.h (struct cplus_specific): Change type of demangled_name
11691 member from char * to const char *. All uses updated.
11692 (struct general_symbol_info): Change type of name and
11693 mangled_lang.demangled_name members from char * to const char *.
11694 All uses updated.
11695 (symbol_get_demangled_name, symbol_natural_name): Update.
11696 (symbol_demangled_name, symbol_search_name): Update.
11697 * symtab.c (symbol_get_demangled_name): Change result type
11698 from char * to const char *. All callers updated.
11699 (symbol_natural_name, symbol_demangled_name): Ditto.
11700 (symbol_search_name): Ditto.
11701 (completion_list_add_name): Change type of symname,sym_text,
11702 text,word parameters from char * to const char *.
11703 (completion_list_objc_symbol): Change type of sym_text,
11704 text,word parameters from char * to const char *.
11705 * ada-lang.c (find_struct_field): Change type of name parameter
11706 from char * to const char *.
11707 (encoded_ordered_before): Similarly for N0,N1 parameters.
11708 (old_renaming_is_invisible): Similarly for function_name parameter.
11709 (ada_type_name): Change result type from char * to const char *.
11710 All callers updated.
11711 * ada-lang.h (ada_type_name): Update.
11712 * buildsym.c (hashname): Change type of name parameter
11713 from char * to const char *.
11714 * buildsym.h (hashname): Update.
11715 * dbxread.c (end_psymtab): Change type of include_list parameter
11716 from char ** to const char **.
11717 * dwarf2read.c (determine_prefix): Change result type
11718 from char * to const char *. All callers updated.
11719 * f-lang.c (find_common_for_function): Change type of name, funcname
11720 parameters from char * to const char *.
11721 * f-lang.c (find_common_for_function): Update.
11722 * f-valprint.c (list_all_visible_commons): Change type of funcname
11723 parameters from char * to const char *.
11724 * gdbarch.sh (static_transform_name): Change type of name parameter
11725 and result from char * to const char *.
11726 * gdbarch.c: Regenerate.
11727 * gdbarch.h: Regenerate.
11728 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11729 of name parameter from char * to const char *.
11730 * jv-lang.c (java_primitive_type_from_name): Ditto.
11731 (java_demangled_signature_length): Similarly for signature parameter.
11732 (java_demangled_signature_copy): Ditto.
11733 (java_demangle_type_signature): Ditto.
11734 * jv-lang.h (java_primitive_type_from_name): Update.
11735 (java_demangle_type_signature): Update.
11736 * objc-lang.c (specialcmp): Change type of a,b parameters
11737 from char * to const char *.
11738 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11739 from char * to const char *. All callers updated.
11740 * p-lang.h (is_pascal_string_type): Update.
11741 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11742 of name parameter from char * to const char *.
11743 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11744 * utils.c (fprintf_symbol_filtered): Ditto.
11745 * defs.h (fprintf_symbol_filtered): Update.
11746 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11747 * stabsread.h (end_psymtab): Update.
11748 * stack.c (find_frame_funname): Change type of funname parameter
11749 from char ** to const char **.
11750 * stack.h (find_frame_funname): Update.
11751 * typeprint.c (type_print): Change type of varstring parameter
11752 from char * to const char *.
11753 * value.h (type_print): Update.
11754 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11755 from char * to const char *. All callers updated.
11756 (xcoff_end_psymtab): Change type of include_list parameter
11757 from char ** to const char **. All callers updated.
11758 (swap_sym): Similarly for name parameter. All callers updated.
11759 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11760 Use xstrdup.
11761 (process_coff_symbol): Use xstrdup.
11762 * stabsread.c (stabs_method_name_from_physname): Renamed from
11763 update_method_name_from_physname. Change result type from void
11764 to char *. All callers updated.
11765 (read_member_functions): In has_destructor case, store name in objfile
11766 obstack instead of malloc space. In !has_stub case, fix mem leak.
11767
11768 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11769
11770 * configure: Rebuild.
11771 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11772 LDFLAGS.
11773
11774 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11775
11776 * configure.tgt (rl78-*-elf): New target.
11777 * rl78-tdep.c: New file.
11778
11779 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11780
11781 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11782 and continue the loop. Add QUIT statement.
11783
11784 2012-02-03 Tom Tromey <tromey@redhat.com>
11785
11786 PR gdb/13596:
11787 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11788 bfd_lookup_symbol_from_symtab.
11789 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11790 gdb_bfd_lookup_symbol_from_symtab.
11791
11792 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11793
11794 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11795 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11796 symbol. Add assertion that sym2 is never NULL.
11797
11798 2012-02-02 Doug Evans <dje@google.com>
11799
11800 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11801 "name" parameter to const char ** from char **. All callers updated.
11802 (find_pc_partial_function): Ditto.
11803 (cache_pc_function_name): Change type to const char * from char *.
11804 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11805 (find_pc_partial_function): Update.
11806 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11807 type of "name" parameter to const char * from char *.
11808 All uses updated.
11809 * arch-utils.c (generic_in_solib_return_trampoline): Change
11810 type of "name" parameter to const char * from char *.
11811 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11812 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11813 type of "name" parameter to const char * from char *.
11814 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11815 * gdbarch.c: Regenerate.
11816 * gdbarch.h: Regenerate.
11817 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11818 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11819 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11820 type of "name" parameter to const char * from char *.
11821 * skip.c (skip_function_pc): Ditto.
11822 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11823 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11824 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11825 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11826 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11827 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11828 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11829 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11830 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11831
11832 2012-02-02 Pedro Alves <palves@redhat.com>
11833
11834 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11835 the current inferior has no execution. Make sure the current
11836 remote process matches gdb's current inferior.
11837
11838 2012-02-02 Tom Tromey <tromey@redhat.com>
11839
11840 PR gdb/13405:
11841 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11842 read-only memory.
11843
11844 2012-02-02 Tom Tromey <tromey@redhat.com>
11845
11846 PR gdb/9307:
11847 * symtab.c (lookup_language_this): Set block_found.
11848
11849 2012-02-01 Tom Tromey <tromey@redhat.com>
11850
11851 PR gdb/13431:
11852 * jit.c (struct jit_inferior_data): Rewrite.
11853 (struct jit_objfile_data): New.
11854 (get_jit_objfile_data): New function.
11855 (add_objfile_entry): Update.
11856 (jit_read_descriptor): Return int. Replace descriptor_addr
11857 argument with inf_data. Update. Don't call error.
11858 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11859 descriptor here.
11860 (jit_inferior_init): Don't look up descriptor. Don't call error.
11861 (jit_reset_inferior_data_and_breakpoints)
11862 (jit_inferior_created_observer): Remove.
11863 (jit_inferior_exit_hook): Update.
11864 (jit_executable_changed_observer): Remove.
11865 (jit_event_handler): Update.
11866 (free_objfile_data): Reset inferior data if needed.
11867 (_initialize_jit): Update.
11868
11869 2012-02-01 Tom Tromey <tromey@redhat.com>
11870
11871 * jit.c (bfd_open_from_target_memory): Move higher in file.
11872
11873 2012-02-01 Tristan Gingold <gingold@adacore.com>
11874
11875 * libunwind-frame.c (libunwind_load): Display message if dlopen
11876 failed.
11877
11878 2012-02-01 Gary Benson <gbenson@redhat.com>
11879
11880 * symtab.h (symbol_found_callback_ftype): New typedef.
11881 (iterate_over_symbols): Use the above.
11882 * symtab.c (iterate_over_symbols): Likewise.
11883 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11884 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11885 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11886 (iterate_name_matcher): Document return values.
11887 (collect_one_symbol): Likewise.
11888 (collect_function_symbols): Likewise.
11889 (collect_symbols): Likewise.
11890
11891 2012-02-01 Tom Tromey <tromey@redhat.com>
11892
11893 * ada-lang.c (resolve_subexp): Update.
11894 (ada_lookup_symbol_list): Add 'full_search' argument.
11895 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11896 ada_lookup_symbol_list.
11897 (ada_lookup_encoded_symbol): Update.
11898 (get_var_value): Update.
11899 * ada-exp.y (block_lookup): Update.
11900 (write_var_or_type): Update.
11901 (write_name_assoc): Update.
11902 * ada-lang.h (ada_lookup_symbol_list): Update.
11903
11904 2012-01-31 Tom Tromey <tromey@redhat.com>
11905
11906 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11907 comment.
11908
11909 2012-01-31 Doug Evans <dje@google.com>
11910
11911 * symtab.h: Remove outdated comment.
11912 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11913
11914 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11915
11916 Fix build error in Darwin port.
11917 * i386-darwin-nat.c: Include i386-nat.h.
11918
11919 2012-01-30 Tom Tromey <tromey@redhat.com>
11920
11921 PR breakpoints/13568:
11922 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11923 argument. Check for recursive includes.
11924 (dwarf_decode_macros): Create an include hash.
11925
11926 2012-01-30 Michael Eager <eager@eagercon.com>
11927
11928 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11929 * ppc-linux-tdep.c: Include glibc-tdep.h.
11930 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11931 (powerpc_linux_in_plt_stub): New function.
11932 (powerpc_linux_in_dynsym_resolve_code): New function.
11933 (ppc_skip_trampoline_code): New function.
11934 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11935 Use glibc_skip_solib_resolver.
11936
11937 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11938
11939 Code cleanup: Make 1440 bytes of data segment read-only.
11940 * arch-utils.c (endian_enum): Make it const char *const [].
11941 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11942 Likewise.
11943 * breakpoint.c (always_inserted_enums): Likewise.
11944 * cli/cli-cmds.c (script_ext_enums): Likewise.
11945 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11946 enumlist parameter const char *const *.
11947 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11948 const char *const *.
11949 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11950 parameter const char *const *.
11951 * cris-tdep.c (cris_modes): Make it const char *const [].
11952 * filesystem.c (target_file_system_kinds): Likewise.
11953 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11954 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11955 (can_use_displaced_stepping_enum, scheduler_enums)
11956 (exec_direction_names): Likewise.
11957 * language.c (_initialize_language): Make the type_or_range_names and
11958 case_sensitive_names variables const char *const [].
11959 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11960 * python/python.c (python_excp_enums): Likewise.
11961 * remote.c (interrupt_sequence_modes): Likewise.
11962 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11963 * serial.c (logbase_enums): Likewise.
11964 * sh-tdep.c (sh_cc_enum): Likewise.
11965 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11966 Likewise.
11967 * symtab.c (multiple_symbols_modes): Likewise.
11968 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11969 Likewise.
11970 * utils.c (internal_problem_modes): Likewise.
11971
11972 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11973
11974 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11975 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11976 result.
11977
11978 2012-01-27 Doug Evans <dje@google.com>
11979
11980 * configure.ac (with_python): Fix absolute path handling for win32.
11981 * configure: Regenerate.
11982
11983 2012-01-26 Doug Evans <dje@google.com>
11984
11985 * symtab.c: Whitespace cleanup, no code changes.
11986
11987 * symtab.c (lookup_symbol_in_language): Improve comment.
11988 (lookup_symbol_aux): Fix comment.
11989
11990 * psymtab.c (add_psymbol_to_list): Result is now "void".
11991 * psympriv.h (add_psymbol_to_list): Update.
11992
11993 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11994
11995 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11996
11997 Do not open script filenames twice.
11998 * cli/cli-cmds.c (source_script_from_stream): Pass to
11999 source_python_script also STREAM.
12000 * python/py-auto-load.c (source_section_scripts): Pass to
12001 source_python_script_for_objfile also STREAM.
12002 (auto_load_objfile_script): Pass to source_python_script_for_objfile
12003 also INPUT.
12004 * python/python-internal.h (source_python_script_for_objfile): New
12005 parameter file, rename parameter file to filename.
12006 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
12007 instead if !_WIN32. Update the function comment.
12008 (source_python_script, source_python_script_for_objfile)
12009 (source_python_script): New parameter file, rename parameter file to
12010 filename. Pass FILENAME to python_run_simple_file.
12011 * python/python.h (source_python_script): New parameter file, rename
12012 parameter file to filename.
12013
12014 2012-01-26 Pedro Alves <palves@redhat.com>
12015
12016 * corelow.c (core_has_fake_pid): Delete.
12017 (core_close): Delete references to `core_has_fake_pid'.
12018 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12019 (core_open): Delete references to `core_has_fake_pid'.
12020 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12021 the removed global.
12022
12023 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12024
12025 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12026 Remove language parameter from name_matcher. Adjust the comment.
12027 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12028 Remove language parameter.
12029 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12030 * linespec.c (iterate_name_matcher): Likewise.
12031 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12032 name_matcher. Adjust call accordingly.
12033 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12034 (maintenance_check_symtabs): Adjust type of parameter "fun".
12035 * psymtab.h (maintenance_check_symtabs): Likewise.
12036
12037 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12038
12039 * language.h (symbol_name_match_p_ftype): New typedef.
12040 (struct language_defn): Replace field la_symbol_name_compare
12041 by la_get_symbol_name_match_p.
12042 * ada-lang.c (ada_get_symbol_name_match_p): New function.
12043 (ada_language_defn): Use it.
12044 * linespec.c (struct symbol_matcher_data): New type.
12045 (iterate_name_matcher): Rewrite.
12046 (iterate_over_all_matching_symtabs): Pass a pointer to
12047 a symbol_matcher_data struct to expand_symtabs_matching
12048 instead of just the lookup name.
12049 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12050 opencl-lang.c, p-lang.c, language.c: Delete field
12051 la_symbol_name_compare, and replace by NULL for new field
12052 la_get_symbol_name_match_p.
12053 * symfile.h (struct quick_symbol_functions): Update comment.
12054
12055 2012-01-25 Tom Tromey <tromey@redhat.com>
12056
12057 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12058 dereferencing.
12059
12060 2012-01-24 Tom Tromey <tromey@redhat.com>
12061
12062 PR symtab/12406:
12063 * solib.c (update_solib_list): Update the program space's
12064 added_solibs and deleted_solibs fields.
12065 * progspace.h (struct program_space) <added_solibs,
12066 deleted_solibs>: New fields.
12067 (clear_program_space_solib_cache): Declare.
12068 * progspace.c (release_program_space): Call
12069 clear_program_space_solib_cache.
12070 (clear_program_space_solib_cache): New function.
12071 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12072 bpstat_stop_status. Use handle_solib_event.
12073 * breakpoint.c: Include gdb_regex.h.
12074 (print_solib_event): New function.
12075 (bpstat_print): Use print_solib_event.
12076 (bpstat_stop_status): Add special case for bp_shlib_event.
12077 (handle_solib_event): New function.
12078 (bpstat_what): Use handle_solib_event.
12079 (struct solib_catchpoint): New.
12080 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12081 (breakpoint_hit_catch_solib, check_status_catch_solib)
12082 (print_it_catch_solib, print_one_catch_solib)
12083 (print_mention_catch_solib, print_recreate_catch_solib): New
12084 functions.
12085 (catch_solib_breakpoint_ops): New global.
12086 (catch_load_or_unload, catch_load_command_1)
12087 (catch_unload_command_1): New functions.
12088 (internal_bkpt_check_status): Add special case for
12089 bp_shlib_event.
12090 (internal_bkpt_print_it): Use print_solib_event.
12091 (initialize_breakpoint_ops): Initialize
12092 catch_solib_breakpoint_ops.
12093 (_initialize_breakpoint): Register "catch load" and "catch
12094 unload".
12095 * breakpoint.h (handle_solib_event): Declare.
12096 * NEWS: Add entry for "catch load" and "catch unload".
12097
12098 2012-01-24 Tom Tromey <tromey@redhat.com>
12099
12100 * ada-lang.c: Include gdb_vecs.h.
12101 * charset.c: Include gdb_vecs.h.
12102 * tracepoint.h: Include gdb_vecs.h.
12103 * gdb_vecs.h: New file.
12104
12105 2012-01-24 Pedro Alves <pedro@codesourcery.com>
12106
12107 * breakpoint.c (breakpoint_hit_catch_fork)
12108 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12109 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12110 * infrun.c (inferior_has_forked, inferior_has_vforked)
12111 (inferior_has_execd, inferior_has_called_syscall): Delete.
12112 (handle_syscall_event): Get syscall_number from the execution
12113 control state's wait status.
12114 (wait_for_inferior): Don't clear syscall_number.
12115
12116 2012-01-24 Pedro Alves <palves@redhat.com>
12117
12118 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12119 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12120 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12121 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12122 `ws' parameter.
12123 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12124 false for events other than TARGET_SIGNAL_TRAP.
12125 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12126 Add `ws' parameter.
12127 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12128 events other than TARGET_SIGNAL_TRAP.
12129 (tracepoint_breakpoint_hit): Add `ws' parameter.
12130 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12131 parameter.
12132 (bpstat_stop_status): Same.
12133 (pc_at_non_inline_function): Same.
12134 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12135 to pass the current event's waitstatus to bpstat_stop_status
12136 and pc_at_non_inline_function.
12137
12138 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12139
12140 Code cleanup.
12141 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12142 Update the function comment for it.
12143 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12144 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12145 for STREAM.
12146
12147 2012-01-24 Pedro Alves <palves@redhat.com>
12148
12149 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12150 outside `bs->stop' block.
12151 (bpstat_what): Rework bp_shlib_event handling.
12152 (internal_bkpt_check_status): If the breakpoint is a
12153 bp_shlib_event, then set bs->stop and bs->print if
12154 stop_on_solib_events is set.
12155
12156 2012-01-24 Gary Benson <gbenson@redhat.com>
12157
12158 Delete #if 0'd out code.
12159 * stack.c (print_frame_label_vars): Remove.
12160 (catch_info): Likewise.
12161 (_initialize_stack): Remove "info catch" command.
12162 * NEWS: Mention the above.
12163
12164 2012-01-24 Pedro Alves <palves@redhat.com>
12165
12166 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12167 it.
12168 (remote_notice_new_inferior): If the remote end doesn't support
12169 the multiprocess extensions, then the PID is fake.
12170 (add_current_inferior_and_thread): New.
12171 (remote_start_remote): Use it.
12172 (extended_remote_attach_1): Adjust.
12173 (extended_remote_create_inferior_1): Use
12174 add_current_inferior_and_thread.
12175
12176 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12177
12178 Fix watchpoints to be specific for each inferior.
12179 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12180 current_program_space.
12181 * i386-nat.c (i386_inferior_data_cleanup): New.
12182 (i386_inferior_data_get): Replace variable inf_data_local by an
12183 inferior_data call.
12184 (i386_use_watchpoints): Initialize i386_inferior_data.
12185 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12186 specific iterate_over_lwps.
12187
12188 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12189
12190 Fix watchpoints across inferior fork.
12191 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12192 comment for linux_nat_iterate_watchpoint_lwps.
12193 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12194 linux_nat_iterate_watchpoint_lwps.
12195 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12196 * i386-linux-nat.c (update_debug_registers_callback): Update the
12197 comment for linux_nat_iterate_watchpoint_lwps.
12198 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12199 linux_nat_iterate_watchpoint_lwps.
12200 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12201 * i386-nat.c: Include inferior.h.
12202 (dr_mirror): Remove.
12203 (i386_inferior_data, struct i386_inferior_data)
12204 (i386_inferior_data_get): New.
12205 (i386_debug_reg_state): Use i386_inferior_data_get.
12206 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12207 (i386_insert_watchpoint, i386_remove_watchpoint)
12208 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12209 (i386_remove_hw_breakpoint): New variable state, use
12210 i386_debug_reg_state instead of DR_MIRROR.
12211 * linux-nat.c (delete_lwp): New declaration.
12212 (num_lwps): Move here from downwards.
12213 (delete_lwp_cleanup): New.
12214 (linux_child_follow_fork): Create new child_lp, call
12215 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12216 PTRACE_DETACH.
12217 (num_lwps): Move upwards.
12218 (linux_nat_iterate_watchpoint_lwps): New.
12219 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12220 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12221
12222 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12223
12224 GDB 7.4 released.
12225
12226 2012-01-23 Pedro Alves <palves@redhat.com>
12227
12228 * top.c (caution): Rename to ...
12229 (confirm): ... this.
12230 (show_caution): Rename to ...
12231 (show_confirm): ... this.
12232 (quit_cover): Adjust.
12233 (init_main): Adjust.
12234 * top.h (caution): Rename to ...
12235 (confirm): ... this.
12236 * utils.c (internal_vproblem, defaulted_query): Adjust.
12237
12238 2012-01-23 Pedro Alves <palves@redhat.com>
12239
12240 * top.c (caution): Update comment.
12241 (execute_command): Don't consider the current value of `caution'.
12242
12243 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12244
12245 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12246
12247 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12248
12249 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12250 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12251 * target.c (target_fileio_pwrite): Remove buffer address from
12252 debug output.
12253 (target_fileio_pread): Likewise.
12254
12255 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12256
12257 * NEWS: Document remote "info proc" and "generate-core-file".
12258
12259 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12260
12261 * gdbarch.sh (find_memory_regions): New callback.
12262 * gdbarch.c, gdbarch.h: Regenerate.
12263
12264 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12265 callback before falling back to target method.
12266
12267 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12268 (linux_target_install_ops): No longer install it.
12269
12270 * linux-tdep.c (linux_find_memory_regions): New function.
12271 (linux_init_abi): Install it.
12272
12273 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12274
12275 * gdbarch.sh (make_corefile_notes): New architecture callback.
12276 * gdbarch.c: Regenerate.
12277 * gdbarch.h: Likewise.
12278
12279 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12280 before target_make_corefile_notes. If NULL is returned, the
12281 target does not support core file generation.
12282
12283 * linux-nat.c: Include "linux-tdep.h".
12284 (find_signalled_thread, find_stop_signal): Remove.
12285 (linux_nat_do_thread_registers): Likewise.
12286 (struct linux_nat_corefile_thread_data): Likewise.
12287 (linux_nat_corefile_thread_callback): Likewise.
12288 (iterate_over_spus): Likewise.
12289 (struct linux_spu_corefile_data): Likewise.
12290 (linux_spu_corefile_callback): Likewise.
12291 (linux_spu_make_corefile_notes): Likewise.
12292 (linux_nat_collect_thread_registers): New function.
12293 (linux_nat_make_corefile_notes): Replace contents by call to
12294 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12295 as native-only callback.
12296
12297 * linux-tdep.h: Include "bfd.h".
12298 (struct regcache): Add forward declaration.
12299 (linux_collect_thread_registers_ftype): New typedef.
12300 (linux_make_corefile_notes): Add prototype.
12301 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12302 "regset.h", and "elf-bfd.h".
12303 (find_signalled_thread, find_stop_signal): New functions.
12304 (linux_spu_make_corefile_notes): Likewise.
12305 (linux_collect_thread_registers): Likewise.
12306 (struct linux_corefile_thread_data): New data structure.
12307 (linux_corefile_thread_callback): New funcion.
12308 (linux_make_corefile_notes): Likewise.
12309 (linux_make_corefile_notes_1): Likewise.
12310 (linux_init_abi): Install it.
12311
12312 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12313
12314 * gdbarch.sh (info_proc): New callback.
12315 * gdbarch.c, gdbarch.h: Regenerate.
12316
12317 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12318 before falling back to the target info_proc callback.
12319
12320 * linux-nat.c: Do not include "cli/cli-utils.h".
12321 (linux_nat_info_proc): Remove.
12322 (linux_target_install_ops): No longer install it.
12323
12324 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12325 (read_mapping): New function.
12326 (linux_info_proc): Likewise.
12327 (linux_init_abi): Install it.
12328
12329 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12330
12331 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12332 * infcmd.c: (info_proc_cmd_1): New function.
12333 (info_proc_cmd): New function, moved here from equivalent routine
12334 orignally in linux-nat.c.
12335 (info_proc_cmd_mappings): Likewise.
12336 (info_proc_cmd_stat): Likewise.
12337 (info_proc_cmd_status): Likewise.
12338 (info_proc_cmd_cwd): Likewise.
12339 (info_proc_cmd_cmdline): Likewise.
12340 (info_proc_cmd_exe): Likewise.
12341 (info_proc_cmd_all): Likewise.
12342 (_initialize_infcmd): Install "info proc" command and subcommands.
12343
12344 * target.h (struct target_ops): Add to_info_proc.
12345 (target_info_proc): Add prototype.
12346 * target.c (target_info_proc): New function.
12347
12348 * procfs.c (procfs_info_proc): Add prototype.
12349 (info_proc_cmd): Rename into ...
12350 (procfs_info_proc): ... this. Update argument types as appropriate
12351 for a to_info_proc implementation. Handle "what" argument.
12352 (procfs_target): Install procfs_info_proc.
12353 (_initialize_procfs): No longer install "info proc" command.
12354
12355 * linux-nat.c: (enum info_proc_what): Remove.
12356 (linux_nat_info_proc_cmd_1): Rename into ...
12357 (linux_nat_info_proc): ... this. Update argument types as appropriate
12358 for a to_info_proc implementation.
12359 (linux_nat_info_proc_cmd): Remove.
12360 (linux_nat_info_proc_cmd_mappings): Likewise.
12361 (linux_nat_info_proc_cmd_stat): Likewise.
12362 (linux_nat_info_proc_cmd_status): Likewise.
12363 (linux_nat_info_proc_cmd_cwd): Likewise.
12364 (linux_nat_info_proc_cmd_cmdline): Likewise.
12365 (linux_nat_info_proc_cmd_exe): Likewise.
12366 (linux_nat_info_proc_cmd_all): Likewise.
12367 (linux_target_install_ops): Install linux_nat_info_proc.
12368 (_initialize_linux_nat): No longer install "info proc" command
12369 and subcommands.
12370
12371 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12372
12373 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12374 * config.in, configure: Regenerate.
12375
12376 * target.h (struct target_ops): Add to_fileio_readlink.
12377 (target_fileio_readlink): Add prototype.
12378 * target.c (target_fileio_readlink): New function.
12379
12380 * inf-child.c: Conditionally include <sys/param.h>.
12381 (inf_child_fileio_readlink): New function.
12382 (inf_child_target): Install it.
12383
12384 * remote.c (PACKET_vFile_readlink): New enum value.
12385 (remote_hostio_readlink): New function.
12386 (init_remote_ops): Install it.
12387 (_initialize_remote): Handle vFile:readlink packet type.
12388
12389 2012-01-20 Pedro Alves <palves@redhat.com>
12390 Ulrich Weigand <ulrich.weigand@linaro.org>
12391
12392 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12393 * config.in, configure: Regenerate.
12394
12395 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12396 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12397 (target_fileio_open): Add prototype.
12398 (target_fileio_pwrite): Likewise.
12399 (target_fileio_pread): Likewise.
12400 (target_fileio_close): Likewise.
12401 (target_fileio_unlink): Likewise.
12402 (target_fileio_read_alloc): Likewise.
12403 (target_fileio_read_stralloc): Likewise.
12404
12405 * target.c: Include "gdb/fileio.h".
12406 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12407 (default_fileio_target): New function.
12408 (target_fileio_open): Likewise.
12409 (target_fileio_pwrite): Likewise.
12410 (target_fileio_pread): Likewise.
12411 (target_fileio_close): Likewise.
12412 (target_fileio_unlink): Likewise.
12413 (target_fileio_close_cleanup): Likewise.
12414 (target_fileio_read_alloc_1): Likewise.
12415 (target_fileio_read_alloc): Likewise.
12416 (target_fileio_read_stralloc): Likewise.
12417
12418 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12419 <fcntl.h>, and <unistd.h>.
12420 (inf_child_fileio_open_flags_to_host): New function.
12421 (inf_child_errno_to_fileio_error): Likewise.
12422 (inf_child_fileio_open): Likewise.
12423 (inf_child_fileio_pwrite): Likewise.
12424 (inf_child_fileio_pread): Likewise.
12425 (inf_child_fileio_close): Likewise.
12426 (inf_child_fileio_unlink): Likewise.
12427 (inf_child_target): Install to_fileio routines.
12428
12429 * remote.c (init_remote_ops): Install to_fileio routines.
12430
12431 2012-01-20 Pedro Alves <palves@redhat.com>
12432 Ulrich Weigand <ulrich.weigand@linaro.org>
12433
12434 * remote.c (remote_multi_process_p): Only check for multi-process
12435 protocol feature, do not check for extended protocol.
12436 (remote_supports_multi_process): Check for extended protocol here.
12437 (set_general_process): Likewise.
12438 (extended_remote_kill): Likewise.
12439 (remote_pid_to_str): Likewise.
12440 (remote_query_supported): Always query multiprocess mode.
12441
12442 2012-01-20 Pedro Alves <palves@redhat.com>
12443 Ulrich Weigand <ulrich.weigand@linaro.org>
12444
12445 * inferior.h (struct inferior): Add fake_pid_p.
12446 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12447 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12448 magic_null_ptid since the remote side doesn't provide a real PID.
12449
12450 2012-01-19 Tom Tromey <tromey@redhat.com>
12451
12452 * NEWS: Combine the two Python sections.
12453
12454 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12455
12456 * target.h (target_close): Update comment on the target's unpush state.
12457
12458 2012-01-19 Pedro Alves <palves@redhat.com>
12459
12460 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12461 linux_nat_async directly instead of going through the target
12462 vector.
12463 * target.c (unpush_target): Close target after unpushing it, not
12464 before.
12465
12466 2012-01-19 Gary Benson <gbenson@redhat.com>
12467
12468 * mdebugread.c (sort_blocks): Replace integer constants with ones
12469 derived from FIRST_LOCAL_BLOCK.
12470
12471 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12472 Jan Kratochvil <jan.kratochvil@redhat.com>
12473
12474 PR gdb/9538
12475 * symfile.c (find_separate_debug_file): New function.
12476 (terminate_after_last_dir_separator): Likewise.
12477 (find_separate_debug_file_by_debuglink): Also try realpath.
12478 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12479 * configure: Regenerate.
12480 * config.in: Regenerate.
12481
12482 2012-01-18 Doug Evans <dje@google.com>
12483
12484 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12485 (main.o): Remove rule.
12486 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12487 (--with-sysroot): Rewrite.
12488 * configure: Regenerate.
12489 * config.in: Regenerate.
12490
12491 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12492
12493 * parse.c (initialize_expout): New function.
12494 (reallocate_expout): Likewise.
12495 (parse_exp_in_context): Use `initialize_expout' and
12496 `reallocate_expout' when appropriate.
12497
12498 2012-01-18 Pedro Alves <palves@redhat.com>
12499
12500 * record.c (struct record_breakpoint, record_breakpoint_p)
12501 (record_breakpoints): New.
12502 (record_insert_breakpoint, record_remove_breakpoint): Manage
12503 record breakpoints list. Only remove breakpoints from the
12504 inferior if they had been inserted there in the first place.
12505
12506 2012-01-17 Doug Evans <dje@google.com>
12507
12508 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12509 if we know we don't have a file name to look for.
12510
12511 2012-01-17 Pedro Alves <palves@redhat.com>
12512
12513 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12514 the frame's stop reason is UNWIND_UNAVAILABLE.
12515
12516 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12517
12518 Fix compilation error.
12519 * m2-exp.y (yyerror): Use ANSI C prototype.
12520
12521 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12522
12523 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12524 (growbuf_by_size): Likewise.
12525 (yyerror): Likewise.
12526 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12527 (modblock): Remove variable (was #if 0'ed).
12528 (parse_number): Convert prototype from K&R to ANSI C.
12529 (yyerror): Likewise.
12530 * objc-exp.y (parse_number): Likewise.
12531 (yyerror): Likewise.
12532 (yylex): Remove #if 0'ed code.
12533 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12534 (yyerror): Likewise.
12535
12536 2012-01-16 Tom Tromey <tromey@redhat.com>
12537
12538 * NEWS: Add item.
12539 * symtab.h (compare_filenames_for_search): Declare.
12540 * symtab.c (compare_filenames_for_search): New function.
12541 (iterate_over_some_symtabs): Use it.
12542 * symfile.h (struct quick_symbol_functions)
12543 <map_symtabs_matching_filename>: Change spec.
12544 * psymtab.c (partial_map_symtabs_matching_filename): Use
12545 compare_filenames_for_search. Update for new spec.
12546 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12547 compare_filenames_for_search. Update for new spec.
12548 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12549
12550 2012-01-16 Tom Tromey <tromey@redhat.com>
12551
12552 PR python/13281:
12553 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12554 (struct main_type) <flag_flag_enum>: New field.
12555 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12556 * NEWS: Add entries.
12557 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12558 enums.
12559 * python/lib/gdb/printing.py (_EnumInstance): New class.
12560 (FlagEnumerationPrinter): Likewise.
12561
12562 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12563
12564 * breakpoint.c (create_sals_from_address_default): New function.
12565 (create_breakpoints_sal_default): Likewise.
12566 (decode_linespec_default): Likewise.
12567 (is_marker_spec): Removed.
12568 (strace_marker_p): New function.
12569 (init_breakpoint_sal): Using `strace_marker_p' instead of
12570 `is_marker_spec'.
12571 (create_breakpoint): Call method `create_sals_from_address' from
12572 breakpoint_ops, replacing code that created SALs conditionally
12573 on the type of the breakpoint. Call method `create_breakpoints_sal',
12574 replacing code that created breakpoints conditionally on the type
12575 wanted.
12576 (base_breakpoint_create_sals_from_address): New function.
12577 (base_breakpoint_create_breakpoints_sal): Likewise.
12578 (base_breakpoint_decode_linespec): Likewise.
12579 (base_breakpoint_ops): Add methods
12580 `base_breakpoint_create_sals_from_address',
12581 `base_breakpoint_create_breakpoints_sal' and
12582 `base_breakpoint_decode_linespec'.
12583 (bkpt_create_sals_from_address): New function.
12584 (bkpt_create_breakpoints_sal): Likewise.
12585 (bkpt_decode_linespec): Likewise.
12586 (tracepoint_create_sals_from_address): Likewise.
12587 (tracepoint_create_breakpoints_sal): Likewise.
12588 (tracepoint_decode_linespec): Likewise.
12589 (strace_marker_create_sals_from_address): Likewise.
12590 (strace_marker_create_breakpoints_sal): Likewise.
12591 (strace_marker_decode_linespec): Likewise.
12592 (strace_marker_breakpoint_ops): New variable.
12593 (addr_string_to_sals): Remove `marker_spec'. Call method
12594 `decode_linespec' from breakpoint_ops, replacing code that decoded
12595 an address string into a SAL. Use `strace_marker_p' instead of
12596 `marker_spec'.
12597 (strace_command): Decide whether we are dealing with a static
12598 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12599 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12600 * breakpoint.h (linespec_result, linespec_sals): New forward
12601 declarations.
12602 (breakpoint_ops) <create_sals_from_address>,
12603 <create_breakpoints_sal>, <decode_linespec>: New methods.
12604
12605 2012-01-14 Doug Evans <dje@google.com>
12606
12607 * NEWS: Update text for "maint set python print-stack".
12608 It is deprecated in gdb 7.4 and deleted in 7.5.
12609
12610 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12611
12612 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12613 including curses.h.
12614
12615 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12616
12617 * configure: Regenerate.
12618 * config.in: Regenerate.
12619
12620 2012-01-12 Keith Seitz <keiths@redhat.com>
12621
12622 PR mi/10586
12623 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12624 (ANONYMOUS_UNION_NAME): Define.
12625 (is_path_expr_parent): New function.
12626 (get_path_expr_parent): New function.
12627 (is_anonymous_child): New function.
12628 (create_child_with_value): If the child is anonymous and without
12629 a name, assign an object name to it.
12630 (c_describe_child): Use get_path_expr_parent to determine
12631 the parent expression.
12632 If there field represents an anonymous struct or union and
12633 has no name, set an appropriate display name and expression.
12634 (cplus_describe_child): Likewise.
12635
12636 2012-01-12 Pedro Alves <palves@redhat.com>
12637
12638 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12639 available when %ebp is found to be zero (outermost).
12640
12641 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12642
12643 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12644 an internal gdb_static_assert.
12645 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12646
12647 2012-01-11 Tom Tromey <tromey@redhat.com>
12648
12649 PR gdb/9598:
12650 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12651 catch" and "catch throw".
12652
12653 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12654
12655 * blockframe.c (block_innermost_frame): Start search from selected
12656 frame, if present, or otherwise the current frame.
12657
12658 * c-exp.y (variable): Update innermost_block for
12659 'block COLONCOLON NAME' clause.
12660 * m2-exp.y (variable): Ditto.
12661 * objc-exp.y (variable): Ditto.
12662
12663 2012-01-10 Tom Tromey <tromey@redhat.com>
12664
12665 PR python/13199:
12666 * python/python.c (finish_python_initialization): Set sys.argv.
12667
12668 2012-01-10 Doug Evans <dje@google.com>
12669
12670 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12671 "want_line_info". All callers updated.
12672 (dwarf_decode_lines_1): New function.
12673 (handle_DW_AT_stmt_list): Add function comment.
12674 New arg "want_line_info". All callers updated.
12675 (read_file_scope,read_type_unit_scope): Move comment from
12676 handle_DW_AT_stmt_list to here.
12677
12678 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12679
12680 Fix regression after libiberty/ update for GCC PR 6057 and others.
12681 * c-exp.y (operator) <OPERATOR DELETE>
12682 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12683 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12684 (make_builtin_type, make_name): New variable i, add gdb_assert.
12685 (operator) <OPERATOR NEW>: Update ARGS to 3.
12686 (operator) <OPERATOR DELETE>: Add trailing space.
12687 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12688 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12689 * cp-support.c (cp_canonicalize_string): Check NULL from
12690 cp_comp_to_string, call warning and return.
12691
12692 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12693
12694 Fix duplicate .o files after omitting libbfd.a.
12695 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12696 (SFILES): Add corelow.c.
12697 (COMMON_OBS): Add corelow.o.
12698 (ALLDEPFILES): Remove corelow.c.
12699 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12700 * config/alpha/alpha-osf3.mh: Likewise.
12701 * config/alpha/fbsd.mh: Likewise.
12702 * config/arm/nbsdaout.mh: Likewise.
12703 * config/arm/nbsdelf.mh: Likewise.
12704 * config/i386/i386gnu.mh: Likewise.
12705 * config/ia64/hpux.mh: Likewise.
12706 * config/ia64/linux.mh: Likewise.
12707 * config/m32r/linux.mh: Likewise.
12708 * config/m68k/linux.mh: Likewise.
12709 * config/mips/irix5.mh: Likewise.
12710 * config/mips/irix6.mh: Likewise.
12711 * config/pa/hpux.mh: Likewise.
12712 * config/pa/linux.mh: Likewise.
12713 * config/powerpc/aix.mh: Likewise.
12714 * config/sparc/linux.mh: Likewise.
12715 * config/sparc/linux64.mh: Likewise.
12716 * config/sparc/sol2.mh: Likewise.
12717 * config/vax/vax.mh: Likewise.
12718 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12719 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12720 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12721 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12722 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12723 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12724 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12725 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12726 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12727 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12728 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12729 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12730 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12731 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12732 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12733 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12734 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12735 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12736 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12737 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12738 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12739 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12740 corelow.o from gdb_target_obs.
12741 * corefile.c (core_target): Update the comment on NULL value.
12742 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12743 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12744 MATCHES. Drop YUMMY set on NULL.
12745 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12746 reclaim CORE_DATA if it is already NULL.
12747
12748 2012-01-09 Doug Evans <dje@google.com>
12749
12750 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12751 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12752
12753 2012-01-09 Keith Seitz <keiths@redhat.com>
12754
12755 * breakpoint.c (wrapper.h): Don't include.
12756
12757 2012-01-09 Keith Seitz <keiths@redhat.com>
12758
12759 * Makefile.in (SFILES): Remove wrapper.c.
12760 (HFILES_NO_SRCDIR): Remove wrapper.h.
12761 (COMMON_OBS): Remove wrapper.o.
12762 * cli/cli-interp.c: Don't inlude wrapper.h.
12763 * corelow.c: Likewise.
12764 (core_open): Replace gdb_target_find_new_threads with
12765 TRY_CATCH around target_find_new_threads.
12766 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12767 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12768 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12769 evaluate_expression.
12770 (varobj_set_value): Likewise for evaluate_expression and
12771 value_assign.
12772 (install_new_variable): Likewise for value_fetch_lazy.
12773 (adjust_value_for_child_access): Likewise for value_ind.
12774 (c_describe_child): Likewise for value_subscript and
12775 value_ind.
12776 (c_value_of_root): Likewise for evaluate_expression.
12777 * wrapper.c: Remove.
12778 * wrapper.h: Remove.
12779
12780 2012-01-09 Doug Evans <dje@google.com>
12781
12782 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12783 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12784 "abfd" args with "section". All callers updated.
12785 Error checking code moved ...
12786 (error_check_comp_unit_head): ... here. New function.
12787 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12788 Delete arg "abfd". New arg "type_offset". All callers updated.
12789 (create_debug_types_hash_table): Simplify by using
12790 read_and_check_type_unit_head.
12791
12792 * parser-defs.h (namecopy): Delete.
12793 * parse.c (namecopy, namecopy_size): Move into copy_name.
12794
12795 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12796
12797 Partially fix duplicate .o files after omitting libbfd.a.
12798 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12799 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12800 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12801 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12802 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12803 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12804 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12805
12806 2012-01-09 Pedro Alves <palves@redhat.com>
12807
12808 * MAINTAINERS: Update my email address.
12809
12810 2012-01-08 Doug Evans <dje@google.com>
12811
12812 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12813 n_type_units. Rename type_comp_units to all_type_units.
12814 All uses updated.
12815 (add_signatured_type_cu_to_table): Renamed from
12816 add_signatured_type_cu_to_list. All callers updated.
12817
12818 * gdbtypes.h (struct cplus_struct_type): Delete member
12819 nfn_fields_total. All uses removed.
12820
12821 2012-01-06 Doug Evans <dje@google.com>
12822
12823 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12824 to top of file.
12825 (dwarf2_find_comp_unit): Delete.
12826 (process_psymtab_comp_unit): Make result "void".
12827 Delete args buffer, info_ptr, buffer_size, and replace with
12828 "section". All callers updated.
12829 (dwarf2_build_psymtabs_hard): Simplify.
12830
12831 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12832 Thiago Jung Bauermann <bauerman@br.ibm.com>
12833
12834 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12835 before `struct gdb_exception'.
12836 * breakpoint.c (update_global_location_list_nothrow)
12837 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12838 * cp-abi.c (value_rtti_type): Likewise.
12839 * cp-support.c (cp_validate_operator): Likewise.
12840 * infrun.c (insert_exception_resume_breakpoint)
12841 (check_exception_resume, keep_going): Likewise.
12842 * mi-interp.c (mi_breakpoint_created)
12843 (mi_breakpoint_modified): Likewise.
12844 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12845 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12846 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12847
12848 2012-01-05 Doug Evans <dje@google.com>
12849
12850 * dwarf2read.c (statement_prologue): Delete, unused.
12851
12852 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12853 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12854
12855 * dwarf2read.c (comp_unit_header): Delete, unused.
12856
12857 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12858
12859 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12860 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12861
12862 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12863
12864 * infrun.c (normal_stop): Don't skip calling the normal_stop
12865 observers if the thread was doing a multi-step, but stopped for
12866 some reason other than stepping.
12867
12868 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12869
12870 * cli/cli-decode.h: Add comments.
12871 (CMD_LIST_AMBIGUOUS): Moved to command.h
12872 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12873 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12874 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12875 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12876 (add_com, add_com_alias, add_info, add_info_alias)
12877 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12878 declarations.
12879 * command.h: Add and adjust comments.
12880 (CMD_LIST_AMBIGUOUS): Moved here.
12881 (help_cmd, help_cmd_list): Delete declarations.
12882
12883 2012-01-04 Doug Evans <dje@google.com>
12884
12885 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12886 All callers updated.
12887 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12888 Replace all arguments with "per_cu". All callers updated.
12889
12890 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12891
12892 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12893 New arg "per_cu". All callers updated.
12894
12895 Delete #if 0'd out code.
12896 * language.c (binop_result_type): Delete.
12897 (simple_type, ordered_type, same_type, integral_type): Delete.
12898 (numeric_type, character_type, string_type, boolean_type): Delete.
12899 (float_type, structured_type): Delete.
12900 * language.h: Update.
12901
12902 2012-01-04 Tom Tromey <tromey@redhat.com>
12903
12904 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12905
12906 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12907
12908 * corefile.c (close_exec_file): Delete.
12909 (reopen_exec_file): Remove commented out code that seems related
12910 to close_exec_file, which is being deleted here.
12911 * inferior.h (close_exec_file): Delete.
12912 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12913
12914 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12915
12916 * ada-lang.c: #include "cli/cli-utils.h".
12917 (get_selections): Use skip_spaces.
12918 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12919 (catch_ada_exception_command_split): Use skip_spaces.
12920 (ada_decode_assert_location): Likewise.
12921
12922 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12923
12924 * linespec.c (decode_line_internal): Check for C++ or Java
12925 compound constructs only if the current language is C, C++
12926 or Java.
12927
12928 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12929
12930 Revert:
12931 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12932 Joel Brobecker <brobecker@adacore.com>
12933 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12934 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12935 3 times.
12936 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12937 fall through into AT_ENTRY_POINT.
12938 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12939 DUMMY_ADDR with it.
12940 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12941 PPC_INSN_SIZE skip to 3 times.
12942
12943 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12944
12945 * linespec.c (add_minsym): Preserve function descriptors.
12946
12947 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12948
12949 * breakpoint.c (all_locations_are_pending): Consider locations
12950 in program spaces executing during startup pending as well.
12951
12952 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12953
12954 Copyright year update in most files of the GDB Project.
12955
12956 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12957
12958 * copyright.sh: Delete.
12959 * copyright.py: Rewrite.
12960
12961 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12962
12963 * gnulib/extra/update-copyright: New file, imported from gnulib.
12964
12965 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12966
12967 * README (Copyright and License Notices): New section.
12968
12969 2012-01-03 Tom Tromey <tromey@redhat.com>
12970
12971 PR python/12533:
12972 * python/py-value.c (valpy_dereference, valpy_get_address
12973 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12974 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12975 (valpy_absolute, valpy_richcompare): Free intermediate values.
12976
12977 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12978
12979 * ada-lang.c: Reformat the copyright notice.
12980
12981 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12982
12983 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12984 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12985 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12986 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12987 Revert this part of:
12988 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12989 Build gdb directly from *.o files not using libgdb.a.
12990 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12991
12992 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12993
12994 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12995 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12996 Reformat the copyright header.
12997
12998 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12999
13000 Revert this part of:
13001 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13002 Remove the gdbtui binary.
13003 * gdb.c (main): Remove args.interpreter_p initialization.
13004 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13005 * main.h (struct captured_main_args): Remove interpreter_p.
13006
13007 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13008
13009 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
13010
13011 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13012
13013 * top.c (print_gdb_version): Update copyright year.
13014
13015 2012-01-02 Yao Qi <yao@codesourcery.com>
13016
13017 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13018
13019 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13020 Joel Brobecker <brobecker@adacore.com>
13021
13022 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13023 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13024 3 times.
13025 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13026 fall through into AT_ENTRY_POINT.
13027 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13028 DUMMY_ADDR with it.
13029 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13030 PPC_INSN_SIZE skip to 3 times.
13031
13032 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13033
13034 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13035 the return value.
13036 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13037
13038 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13039
13040 Build gdb directly from *.o files not using libgdb.a.
13041 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13042 (COMMON_OBS): Remove solib-target.o.
13043 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13044 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13045 (LIBGDB_OBS, libgdb.a): Move it above.
13046 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13047 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13048 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13049 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13050 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13051 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13052 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13053 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13054 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13055 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13056 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13057 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13058 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13059 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13060 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13061 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13062 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13063 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13064 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13065 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13066 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13067 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13068 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13069 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13070 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13071 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13072 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13073
13074 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13075
13076 Remove the gdbtui binary.
13077 * .gitignore (/gdbtui): Remove.
13078 * Makefile.in (TUI): Remove.
13079 (SUBDIR_TUI_OBS): Remove tui-main.o.
13080 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13081 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13082 (tui-main.o): Remove.
13083 (all_object_files): Remove tui-main.o.
13084 * NEWS: New note for the gdbtui removal.
13085 * configure: Rebuilt.
13086 * configure.ac: No longer add all-tui, clean-tui, install-tui and
13087 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13088 CONFIG_UNINSTALL respectively.
13089 * gdb.c (main): Remove args.interpreter_p initialization.
13090 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13091 * main.h (struct captured_main_args): Remove interpreter_p.
13092 * tui/tui-main.c: Remove.
13093
13094 2012-01-01 Doug Evans <dje@google.com>
13095
13096 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13097 (dwarf2_physname, read_import_statement): Ditto.
13098 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13099 (process_structure_scope read_subroutine_type): Ditto.
13100 (read_typedef, load_partial_dies, read_partial_die): Ditto.
13101 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13102 (dwarf2_fetch_die_location_block): Ditto.
13103 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13104
13105 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13106 All callers updated.
13107 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13108 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13109 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13110
13111 * dwarf2read.c (load_cu): Move assert to more useful location.
13112
13113 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13114 All callers updated.
13115
13116 * dwarf2read.c (dwarf2_per_objfile): Add comment.
13117 (dwarf2_elf_names): Minor reformat.
13118 (dwarf2_per_cu_data): Tweak comment.
13119 (dwarf2_read_section): Fix comment.
13120 (create_all_comp_units): Fix comment.
13121 (load_full_comp_unit): Fix comment.
13122 (process_full_comp_unit): Fix comment.
13123 (read_signatured_type): Fix comment.
13124
13125 For older changes see ChangeLog-2011.
13126 \f
13127 Local Variables:
13128 mode: change-log
13129 left-margin: 8
13130 fill-column: 74
13131 version-control: never
13132 coding: utf-8
13133 End: