Port GDB to powerpc-lynx178.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-18 Joel Brobecker <brobecker@adacore.com>
2
3 * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
4 * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
5 * xcoffread.c (xcoff_get_core_n_import_files): New function.
6 (xcoff_get_n_import_files): New function.
7 * xcoffread.h (xcoffread.h): Add declaration.
8 * rs6000-aix-tdep.c: #include "xcoffread.h".
9 (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
10 XCOFF executables that do not depend on any shared library.
11 * rs6000-lynx178-tdep.c: New file.
12 * configure.tgt: Add powerpc-*-lynx*178 handling.
13 * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
14 (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
15
16 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
17
18 * ui-file.c (ui_file): Add to_fseek.
19 (ui_file_new): Call set_ui_file_fseek.
20 (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
21 stdio_file_fseek): New functions.
22 (stdio_file_new): Call set_ui_file_fseek.
23 * ui-file.h (ui_file_fseek_ftype): New typedef.
24 (set_ui_file_fseek, ui_file_fseek): New externs.
25
26 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
27
28 * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
29 (set_ui_file_isatty): Change isatty to isatty_ptr.
30 (set_ui_file_rewind): Change rewind to rewind_ptr.
31 (set_ui_file_put): Change put to put_ptr.
32 (set_ui_file_write): Change write to write_ptr.
33 (set_ui_file_write_async_safe): Change write_async_safe to
34 write_async_safe_ptr.
35 (set_ui_file_read): Change read to read_ptr.
36 (set_ui_file_fputs): Change fputs to fputs_ptr.
37 (set_ui_file_data): Change delete to delete_ptr.
38
39 2012-12-18 Joel Brobecker <brobecker@adacore.com>
40
41 * solib-darwin.c (darwin_current_sos): Fix indentation.
42 (darwin_read_exec_load_addr): New function.
43 (darwin_solib_create_inferior_hook): Rebase executable.
44 * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
45 * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
46
47 2012-12-18 Joel Brobecker <brobecker@adacore.com>
48
49 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
50 * gnulib/import/errno.in.h: Import.
51 * gnulib/import/m4/errno_h.m4: Import.
52 * gnulib/aclocal.m4: Regenerate.
53 * gnulib/configure: Regenerate.
54 * gnulib/import/Makefile.am: Update.
55 * gnulib/import/Makefile.in: Update.
56 * gnulib/import/m4/gnulib-cache.m4: Update.
57 * gnulib/import/m4/gnulib-comp.m4: Update.
58
59 2012-12-18 Joel Brobecker <brobecker@adacore.com>
60
61 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
62 8d5bd1402003bd0153984b138735adf537d960b0.
63 * gnulib/aclocal.m4, configure, config.in: Regenerate.
64 * gnulib/import/m4/extern-inline.m4: Import.
65 * gnulib/import/wctype-h.c: Import.
66 * gnulib/import/Makefile.am: Update.
67 * gnulib/import/Makefile.in: Update.
68 * gnulib/import/alloca.in.h: Update.
69 * gnulib/import/extra/snippet/warn-on-use.h: Update.
70 * gnulib/import/localcharset.c: Update.
71 * gnulib/import/m4/fcntl-o.m4: Update.
72 * gnulib/import/m4/gnulib-cache.m4: Update.
73 * gnulib/import/m4/gnulib-comp.m4: Update.
74 * gnulib/import/m4/wctype_h.m4: Update.
75 * gnulib/import/stdbool.in.h: Update.
76 * gnulib/import/verify.h: Update.
77 * gnulib/import/wctype.in.h: Update.
78
79 2012-12-18 Joel Brobecker <brobecker@adacore.com>
80
81 * gnulib/update-gnulib.sh: Add call to autoheader.
82
83 2012-12-17 Tom Tromey <tromey@redhat.com>
84
85 * top.c (xgdb_verbose): Remove.
86
87 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
88
89 Code cleanup.
90 * skip.c (skip_function_command, skip_file_command, skip_info): Remove
91 unused forward declarations.
92 (skip_file_command): Make variables symtab and filename targets const.
93 Use proper 0 vs. NULL constant everywhere.
94 (skip_function_command): Use proper 0 vs. NULL constant everywhere.
95 Include empty line after declarations. Use GNU spacing in a comment.
96 Do not use strlen for end of string check.
97 (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
98 comments.
99 (skip_enable_command, skip_disable_command, skip_delete_command)
100 (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
101 (function_pc_is_marked_for_skip): Make variable filename target const.
102 Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
103 comment formatting.
104 (skip_re_set): Add empty line after function comment. Use proper 0 vs.
105 NULL constant everywhere. Include empty line after declarations. Make
106 variable symtab target const. Do not use strlen for end of string
107 check.
108
109 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
110
111 Code cleanup.
112 * breakpoint.c (clear_command): Remove variable sal_name_len and its
113 initialization, remove it from the compare_filenames_for_search call.
114 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
115 name_len and its initialization, remove it from the
116 compare_filenames_for_search calls.
117 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
118 * symtab.c (compare_filenames_for_search): Remove the search_len
119 parameter, update the function comment, new variable search_len
120 initialized from SEARCH_NAME.
121 (iterate_over_some_symtabs): Remove variable name_len and its
122 initialization, remove it from the compare_filenames_for_search calls.
123 * symtab.h (compare_filenames_for_search): Remove the search_len
124 parameter,
125
126 2012-12-16 Joel Brobecker <brobecker@adacore.com>
127
128 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
129 (ALLDEPFILES): ... to there.
130
131 2012-12-15 Joel Brobecker <brobecker@adacore.com>
132
133 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
134
135 2012-12-15 Joel Brobecker <brobecker@adacore.com>
136
137 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
138 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
139 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
140 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
141 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
142 to gdb_target_obs for every target that uses rs6000-tdep.o.
143 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
144 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
145 or register_ppc_ravenscar_ops.
146
147 2012-12-15 Joel Brobecker <brobecker@adacore.com>
148
149 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
150 RAVENSCAR_SPARC_THREAD_H.
151 * sparc-ravenscar-thread.c: Rename all global entities
152 whose name is uses "ravenscar_sparc" as the prefix to use
153 "sparc_ravenscar" instead.
154
155 2012-12-15 Joel Brobecker <brobecker@adacore.com>
156
157 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
158 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
159 Adjust sparc-ravenscar-thread.h #include.
160 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
161 accordingly.
162 * Makefile.in: Replace ravenscar-sparc-thread with
163 sparc-ravenscar-thread throughout.
164 * configure.tgt: Likewise.
165
166 2012-12-15 Joel Brobecker <brobecker@adacore.com>
167
168 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
169 declaration.
170 (ravenscar_ops): New gdbarch variable.
171 * gdbarch.h, gdbarch.c: Regenerate.
172 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
173 * ravenscar-thread.c (current_arch_ops): Delete.
174 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
175 from the gdbarch.
176 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
177 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
178 (ravenscar_register_arch_ops): Delete.
179 * ravenscar-sparc-thread.h: New file.
180 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
181 (ravenscar_sparc_ops): Define value statically.
182 (_initialize_ravenscar_sparc): Delete.
183 (register_sparc_ravenscar_ops): New function.
184 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
185 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
186 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
187 ravenscar-sparc-thread.o.
188 (SFILES): Add ravenscar-thread.c.
189 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
190 (ALLDEPFILES): ravenscar-sparc-thread.c.
191 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
192 to gdb_target_obs
193 for all the targets that use sparc-tdep.o.
194
195 2012-12-15 Joel Brobecker <brobecker@adacore.com>
196
197 * ravenscar-thread.c (ravenscar_is_open): Delete.
198 (ravenscar_initialize): Move most of the code from here...
199 (ravenscar_inferior_created): ... to there. Invert logic.
200 (ravenscar_close): Delete.
201 (init_ravenscar_thread_ops): Remove setting of
202 ravenscar_ops.to_close.
203
204 2012-12-15 Joel Brobecker <brobecker@adacore.com>
205
206 * objfiles.c (init_entry_point_info): Move function from here...
207 * symfile.c (init_entry_point_info): ... to there. Make static.
208 * objfiles.h (objfiles.h): Delete declaration.
209
210 2012-12-15 Joel Brobecker <brobecker@adacore.com>
211
212 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
213 Remove call to init_entry_point_info. Add OBJFILE's
214 section_offsets and num_sections initialization. Add note
215 about entry info in the function documentation.
216 (syms_from_objfile): New function.
217 * coffread.c (coff_symfile_init): Remove call to
218 init_entry_point_info.
219 * machoread.c (macho_symfile_init): Likewise.
220 * xcoffread.c(xcoff_symfile_init): Likewise.
221
222 2012-12-15 Yao Qi <yao@codesourcery.com>
223
224 * remote-notif.c (_initialize_notif): Add new commands
225 'set debug notification' and 'show debug notification'.
226 * NEWS: Mention these new commands.
227
228 2012-12-15 Yao Qi <yao@codesourcery.com>
229
230 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
231 (SFILES): Add "remote-notif.c".
232 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
233 * remote-notif.c: New. Factored out from remote.c.
234 * remote-notif.h: New.
235 * remote.c: Include "remote-notif.h".
236 (stop_reply_xmalloc, do_stop_reply_xfree):
237 (remote_parse_stop_reply, remote_get_pending_stop_replies):
238 (remote_async_get_pending_events_handler): Remove declarations.
239 (remote_parse_stop_reply): Declare.
240 (pending_stop_reply): Remove.
241 (remote_async_get_pending_events_token): Move to
242 remote-notif.c.
243 (remote_close): Replace 'delete_async_event_handler' with
244 remote_notif_unregister_async_event_handler.
245 Don't call discard_pending_stop_replies.
246 (remote_start_remote): Replace code with remote_notif_parse
247 and remote_notif_get_pending_replies.
248 (remote_open_1): Replace 'create_async_event_handler' with
249 remote_notif_register_async_event_handler.
250 (extended_remote_attach_1): Call remote_notif_parse and
251 notif_stop_reply_push.
252 (struct stop_reply) <next>: Remove.
253 <base>: New field.
254 Callers update.
255 (stop_reply_queue): Change its type.
256 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
257 (remote_notif_remove_all): New.
258 (discard_pending_stop_replies): Update.
259 (remote_notif_stop_ack, stop_reply_dtr): New.
260 (remote_notif_stop_alloc_event): New.
261 (notif_client_stop): New variable.
262 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
263 (queued_stop_reply, peek_stop_reply): Adjust.
264 (remote_get_pending_stop_replies): Rename to
265 remote_notif_get_pending_events.
266 (handle_notification): Move to remote-notif.c.
267 (remote_async_get_pending_events_handler): Likewise.
268 (remote_wait_as): Adjust to call remote_notif_parse.
269 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
270 Return minus_one_ptid early if gets a notification.
271 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
272 (_initialize_remote): Call QUEUE_alloc. Update caller.
273 (remote_resume): Call 'remote_notif_process' in all-stop mode.
274 * remote.h: Include "remote-notif.h".
275 (remote_notif_get_pending_replies): Declare.
276
277 2012-12-15 Yao Qi <yao@codesourcery.com>
278
279 * remote.c (discard_pending_stop_replies): Update declaration.
280 (remote_detach_1, extended_remote_mourn_1): Likewise.
281 (discard_pending_stop_replies): Change parameter from PID to
282 INF.
283 (remote_close): Update caller.
284 (_initialize_remote): Attach discard_pending_stop_replies to
285 inferior_exit observer.
286
287 2012-12-15 Yao Qi <yao@codesourcery.com>
288
289 * remote.c (getpkt_or_notif_sane): Add one more argument in
290 its declaration.
291 (getpkt_or_notif_sane_1): Add one more argument.
292 (getpkt_sane): Update caller.
293 (getpkt_or_notif_sane): Likewise. Update call
294 togetpkt_or_notif_sane_1.
295 (remote_wait_ns): Update caller.
296
297 2012-12-15 Yao Qi <yao@codesourcery.com>
298 Doug Evans <dje@google.com>
299
300 * common/queue.h: New.
301
302 2012-12-15 Yao Qi <yao@codesourcery.com>
303
304 * breakpoint.c (print_one_breakpoint_location): Display the
305 state of 'installed' of each non-pending location of a tracepoint
306 in both CLI and MI.
307 (download_tracepoint_locations): Notify 'breakpoint-modified'
308 observer if any tracepoint location is downloaded.
309 * tracepoint.c (start_tracing): Likewise.
310 (merge_uploaded_tracepoints): Record all modified
311 tracepoints and notify 'breakpoint-modified' observer for them.
312
313 * NEWS: Mention the change for CLI and MI.
314
315 2012-12-15 Yao Qi <yao@codesourcery.com>
316
317 * breakpoint.c (download_tracepoint_locations): Iterate over
318 ALL_TRACEPOINTS first and then iterate over locations of
319 each tracepoint.
320
321 2012-12-14 Pierre Muller <muller@sourceware.org>
322 Pedro Alves <palves@redhat.com>
323
324 * solib-target.c (solib_target_current_sos): Remove 'const'
325 qualifier from type of library_document local variable to be
326 able to free it and avoid a memory leak.
327 Use cleanup chain to avoid leak even if exceptino is generated.
328
329 2012-12-14 Tom Tromey <tromey@redhat.com>
330
331 PR c++/8888:
332 * symtab.c (lookup_symbol_aux): If constructor is found, consider
333 returning the type instead.
334 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
335 found.
336
337 2012-12-14 Tom Tromey <tromey@redhat.com>
338
339 Partial fix for PR c++/14160:
340 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
341 * dwarf2read.c (dwarf2_is_constructor): New function.
342 (dwarf2_add_member_fn): Use it.
343 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
344 TYPE_FN_FIELD_CONSTRUCTOR.
345 * jv-typeprint.c (java_type_print_base): Use
346 TYPE_FN_FIELD_CONSTRUCTOR.
347 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
348 <dummy>: Shrink.
349 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
350
351 2012-12-14 Tom Tromey <tromey@redhat.com>
352
353 * c-exp.y (block, variable, name_not_typename, lex_one_token,
354 classify_name): Update.
355 * c-valprint.c (c_val_print): Update.
356 * f-exp.y (yylex): Update.
357 * go-exp.y (package_name_p, classify_packaged_name)
358 (classify_name): Update.
359 * jv-exp.y (push_variable): Update.
360 * m2-exp.y (variable): Update.
361 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
362 * p-exp.y (block, variable, yylex): Update.
363 * p-valprint.c (pascal_val_print): Update.
364 * parse.c (write_dollar_variable): Update.
365 * printcmd.c (address_info): Update.
366 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
367 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
368 (lookup_symbol): Change type of 'is_a_field_of_this'.
369 (check_field): Add 'is_a_field_of_this' argument.
370 * symtab.h (struct field_of_this_result): New.
371 (lookup_symbol, lookup_symbol_in_language): Update.
372
373 2012-12-14 Tom Tromey <tromey@redhat.com>
374
375 * symtab.c (check_field): Now static. Move from...
376 * valops.c (check_field): ... here. Remove.
377 * value.h (check_field): Don't declare.
378
379 2012-12-14 Tom Tromey <tromey@redhat.com>
380
381 * NEWS: Mention "info proc" and core files.
382 * corelow.c (core_info_proc): New function.
383 (init_core_ops): Set to_info_proc.
384 * gdbarch.c, gdbarch.h: Rebuild.
385 * gdbarch.sh (core_info_proc): New method.
386 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
387 * linux-tdep.c (linux_core_info_proc_mappings)
388 (linux_core_info_proc): New functions.
389 (linux_find_memory_region_ftype): New typedef.
390 (linux_find_memory_regions_full): New function, from
391 linux_find_memory_regions.
392 (struct linux_find_memory_regions_data): New.
393 (linux_find_memory_regions_thunk): New function.
394 (linux_find_memory_regions): Rewrite.
395 (struct linux_make_mappings_data): New.
396 (linux_make_mappings_callback)
397 (linux_make_mappings_corefile_notes): New functions.
398 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
399 (linux_init_abi): Call set_gdbarch_core_info_proc.
400 * target.c (target_info_proc): Return 'int'.
401 * target.h (target_info_proc): Update.
402
403 2012-12-14 Pierre Muller <muller@sourceware.org>
404
405 * windows-nat.c (windows_xfer_shared_libraries): Avoid
406 memory leak when OFFSET >= LEN_AVAIL.
407
408 2012-12-13 Tom Tromey <tromey@redhat.com>
409
410 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
411
412 2012-12-13 Tom Tromey <tromey@redhat.com>
413
414 * acinclude.m4 (CY_AC_C_WORKS): Remove.
415
416 2012-12-13 Pierre Muller <muller@sourceware.org>
417
418 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
419 local variable and zero terminate it to avoid possible problems
420 in strcmp.
421
422 2012-12-13 Pedro Alves <palves@redhat.com>
423
424 * coff-pe-read.c: Include coff/internal.h.
425 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
426 Null terminate buffer explicitly instead of memset the whole
427 buffer.
428
429 2012-12-13 Pierre Muller <muller@sourceware.org>
430
431 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
432 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
433 for already defined macros.
434
435 2012-12-13 Pierre Muller <muller@sourceware.org>
436
437 * coff-pe-read.h (pe_text_section_offset): Declare new function.
438 * coff-pe-read.c (debug_coff_pe_read): New static variable.
439 (struct read_pe_section_data): Add section_name field.
440 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
441 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
442 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
443 (get_pe_section_index): New function.
444 (struct pe_sections_info): New type.
445 (get_section_vmas): Use new struct pe_sections_info.
446 (add_pe_exported_sym): Handle unnamed exported function.
447 (add_pe_forwarded_sym): New function.
448 (read_pe_truncate_name): Truncate at last dot.
449 (pe_as16): New function.
450 (read_pe_exported_syms): Use ordinal of function to
451 retrieve correct RVA address of function and handle
452 forwarded symbol.
453 (pe_text_section_offset): New function.
454 (show_debug_coff_pe_read): New function.
455 (_initialize_coff_pe_read): New function adding
456 'set/show debug coff_pe_read' commands.
457
458 * windows-tdep.c (windows_xfer_shared_library): Use
459 pe_text_section_offset function instead of possibly wrong
460 0x1000 constant for .text sextion offset.
461
462 2012-12-13 Pedro Alves <palves@redhat.com>
463
464 * gdbarch.sh (do_read): Set IFS to blank.
465
466 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
467
468 * NEWS: Mention the -catch-load/-catch-unload MI commands.
469
470 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
471
472 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
473 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
474 * breakpoint.c (add_solib_catchpoint): New function that
475 can be used by both CLI and MI, factored out from
476 catch_load_or_unload.
477 (catch_load_or_unload): Strip it down and make it use the
478 new add_solib_catchpoint.
479 * breakpoint.h (add_solib_catchpoint): Declare it.
480 * mi/mi-cmd-break.h: New file.
481 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
482 (setup_breakpoint_reporting): New function used for both
483 catchpoints and breakpoints.
484 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
485 * mi/mi-cmd-catch.c: New file.
486 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
487 and -catch-unload.
488 * mi/mi-cmds.h: Declare the handlers for -catch-load and
489 -catch-unload.
490
491 2012-11-28 Tom Tromey <tromey@redhat.com>
492
493 * dbxread.c (read_dbx_symtab): Update.
494 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
495 (read_ofile_symtab): Add 'objfile' argument.
496 * dwarf2read.c (process_psymtab_comp_unit_reader)
497 (build_type_psymtabs_reader): Update.
498 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
499 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
500 argument.
501 (parse_procedure, parse_partial_symbols): Update.
502 (psymtab_to_symtab_1): Add 'objfile' argument.
503 * psympriv.h (struct partial_symtab) <objfile>: Remove.
504 <read_symtab>: Add 'objfile' argument.
505 (sort_pst_symbols, discard_psymtab): Update.
506 * psymtab.c (partial_map_expand_apply): Update.
507 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
508 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
509 (find_pc_sect_psymbol): Add 'objfile' argument.
510 (lookup_symbol_aux_psymtabs): Update.
511 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
512 Add 'objfile' argument.
513 (find_last_source_symtab_from_partial, dump_psymtab)
514 (dump_psymtabs_for_objfile, read_symtabs_for_function)
515 (expand_partial_symbol_tables, read_psymtabs_with_filename)
516 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
517 (expand_symtabs_matching_via_partial): Update.
518 (sort_pst_symbols): Add 'objfile' argument.
519 (allocate_psymtab): Update.
520 (discard_psymtab): Add 'objfile' argument.
521 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
522 * stabsread.h (end_psymtab): Update.
523 * xcoffread.c (this_symtab_objfile): New global.
524 (process_linenos, enter_line_range, xcoff_next_symbol_text):
525 Update.
526 (read_xcoff_symtab): Add 'objfile' argument.
527 (read_symbol, read_symbol_lineno): Update.
528 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
529 (xcoff_end_psymtab): Add 'objfile' argument.
530 (scan_xcoff_symtab): Update.
531
532 2012-12-12 Paul Koning <paul_koning@dell.com>
533
534 Add support for Python 3.
535 * NEWS: Mention Python 3 support.
536 * varobj.c (value_get_print_value): Use
537 python_string_to_target_string.
538 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
539 of type objects.
540 * python/py-breakpoint.c: Ditto.
541 * python/py-cmd.c: Ditto.
542 * python/py-event.c: Ditto.
543 * python/py-event.h: Ditto.
544 * python/py-evtregistry.c: Ditto.
545 * python/py-finishbreakpoint.c: Ditto.
546 * python/py-frame.c: Ditto.
547 * python/py-function.c: Ditto.
548 * python/py-infthread.c: Ditto.
549 * python/py-lazy-string.c: Ditto.
550 * python/py-progspace.c: Ditto.
551 * /python/py-symbol.c: Ditto.
552 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
553 initialization for Python 3.
554 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
555 of type objects.
556 (infpy_read_memory): Return memoryview object if Python 3.
557 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
558 (infpy_search_memory): Ditto.
559 (get_buffer): New function for Python 3.
560 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
561 of type objects.
562 (objfpy_dealloc): Use Py_TYPE to call tp_free.
563 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
564 of type objects.
565 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
566 (set_attr): Ditto.
567 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
568 instead of PyString methods if Python 3.
569 (print_children): Skip push_dummy_python_frame call if Python 3.
570 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
571 of type objects.
572 (salpy_dealloc): Use Py_TYPE to call tp_free.
573 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
574 of type objects.
575 (field_dealloc): Use Py_TYPE to call tp_free.
576 (typy_dealloc): Ditto.
577 (type_object_as_number): Adjust struct initializations for
578 differences in layout for Python 2 vs. Python 3.
579 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
580 string case for Python 3.
581 (unicode_to_encoded_python_string): Shorten code (no functional
582 change).
583 (python_string_to_target_python_string): Comment that in Python 3
584 returned value is a Python "bytes" type.
585 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
586 (gdb_py_object_from_longest): Omit non-long integer case in Python
587 3.
588 (gdb_py_object_from_ulongest): Ditto.
589 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
590 of type objects.
591 (valpy_dealloc): Use Py_TYPE to call tp_free.
592 (valpy_int): Omit function if Python 3.
593 (convert_value_from_python): Use "%S" format (Python object as a
594 string) if Python 3.
595 (value_object_as_number): Adjust struct initializations for
596 differences in layout for Python 2 vs. Python 3.
597 * python/python-config.py: Adjust syntax for Python 3
598 compatibility.
599 Include "sys.abiflags" string as part of python library name, if
600 that attribute exists (Python 3).
601 * python/python-internal.h (IS_PY3): Define if Python 3.
602 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
603 placeholder value if Python 3.
604 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
605 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
606 analogous Python 3 API function if Python 3.
607 (PyVarObject_HEAD_INIT): Define if not already defined.
608 (Py_TYPE): Ditto.
609 * python/python.c (eval_python_command): Omit Py_FlushLine call if
610 Python 3.
611 Check return values of all Python API calls for error.
612 Supply dummy "python" and "python-interactive" commands if Python
613 initialization failed.
614 (_initialize_python): Convert argc to wchar_t** if Python 3.
615 Add module initialization for Python 3.
616 (finish_python_initialization): Pass wchar_t * argument to
617 PySys_SetPath if Python 3.
618 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
619 (_GdbFile): New class for common output file behavior.
620 (GdbOutFile): Subclass from _GdbFile.
621 (GdbOutputErrorFile): Ditto.
622 (auto_load_packages): Adjust syntax for Python 3 compatibility.
623 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
624 * python/lib/gdb/prompt.py: Use sorted() function rather than
625 sort() method.
626 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
627 Adjust syntax for Python 3 compatibility.
628 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
629 rather than sort() method.
630 Adjust syntax for Python 3 compatibility.
631 * python/lib/gdb/command/type_printers.py: Ditto.
632 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
633 value is a memoryview object if Python 3.
634
635 2012-12-12 Tom Tromey <tromey@redhat.com>
636
637 * coffread.c (coff_objfile_data_key): New global.
638 (coff_symfile_init): Use set_objfile_data.
639 (coff_symfile_read): Use objfile_data.
640 (coff_symfile_finish): Don't free deprecated_sym_private.
641 (coff_free_info): New function.
642 (_initialize_coffread): Initialize coff_objfile_data_key.
643 * mdebugread.c (pending_list): Update comment.
644 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
645 * symfile.c (reread_symbols): Don't mention
646 deprecated_sym_private.
647 * xcoffread.c (xcoff_objfile_data_key): New global.
648 (XCOFF_DATA): New macro.
649 (process_linenos, enter_line_range, xcoff_next_symbol_text)
650 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
651 XCOFF_DATA.
652 (xcoff_new_init) Use set_objfile_data.
653 (xcoff_symfile_finish): Don't free deprecated_sym_private.
654 (init_stringtab, swap_sym, scan_xcoff_symtab)
655 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
656 (xcoff_free_info): New function.
657 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
658
659 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
660
661 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
662
663 2012-12-12 Tom Tromey <tromey@redhat.com>
664
665 * coffread.c (coff_symfile_init): Use set_objfile_data.
666 (coff_symfile_read): Use DBX_SYMFILE_INFO.
667 * dbxread.c (dbx_objfile_data_key): New global.
668 (dbx_symfile_init): Use set_objfile_data.
669 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
670 (dbx_free_symfile_info): New function.
671 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
672 DBX_SYMFILE_INFO.
673 (stabsect_build_psymtabs): Use set_objfile_data.
674 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
675 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
676 set_objfile_data.
677 (free_elfinfo): Use DBX_SYMFILE_INFO.
678 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
679 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
680 * gdb-stabs.h (dbx_objfile_data_key): Declare.
681 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
682 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
683 * somread.c (som_symfile_finish): Don't free
684 deprecated_sym_stab_info.
685
686 2012-12-12 Joel Brobecker <brobecker@adacore.com>
687
688 * gdbarch.sh (software_single_step): Remove trailing space in
689 comment (gdbarch.h is already correct).
690
691 2012-12-11 Tom Tromey <tromey@redhat.com>
692
693 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
694
695 2012-12-11 Tom Tromey <tromey@redhat.com>
696
697 * dsrec.c (report_transfer_performance): Don't declare.
698 (load_srec): Use gettimeofday, print_transfer_performance.
699 * symfile.c (report_transfer_performance): Remove.
700
701 2012-12-11 Pedro Alves <pedro@codesourcery.com>
702 Pedro Alves <palves@redhat.com>
703
704 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
705 NT_PSTATUS note.
706 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
707 differently from LWP IDs.
708
709 2012-12-11 Pedro Alves <palves@redhat.com>
710
711 * configure.ac (detect type of /proc): Remove Unixware handling.
712 * configure: Regenerate.
713 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
714 (ioctl_table) [PCRESET]: Remove entry.
715 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
716 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
717 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
718 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
719 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
720 Unixware in comments throughout.
721 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
722 and remove mention of Unixware.
723
724 2012-12-10 Doug Evans <dje@google.com>
725
726 * dwarf2read.c (dwarf2_cu): Enhance comment.
727 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
728 the DWO file.
729 (dwarf2_record_block_ranges): Ditto.
730
731 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
732
733 * symtab.c (find_pc_sect_symtab): Add comment.
734
735 2012-12-10 Tom Tromey <tromey@redhat.com>
736
737 * defs.h: Don't check for definition of LONGEST.
738 (min, max): Remove duplicates.
739
740 2012-12-10 Tom Tromey <tromey@redhat.com>
741
742 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
743 (dwarf2_fetch_die_loc_cu_off): Rename from
744 dwarf2_fetch_die_location_block. Rewrite to use
745 dwarf2_fetch_die_loc_sect_off.
746 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
747 (dwarf2_fetch_die_loc_cu_off): Rename.
748 * dwarf2loc.c (indirect_pieced_value): Use
749 dwarf2_fetch_die_loc_sect_off.
750 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
751 comment.
752 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
753 * dwarf2expr.c (add_piece): Update.
754 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
755
756 2012-12-10 Tom Tromey <tromey@redhat.com>
757
758 * buildsym.c (struct pending_block): Move from buildsym.h.
759 (pending_blocks): Likewise; now static.
760 (pending_block_obstack): New global.
761 (free_pending_blocks): Free blocks.
762 (record_pending_block): Use pending_block_obstack.
763 * buildsym.h (struct pending_block): Move definition to
764 buildsym.c.
765 (pending_blocks): Don't declare.
766
767 2012-12-10 Pedro Alves <palves@redhat.com>
768
769 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
770 dead SCO code, and adjust function description comment.
771
772 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
773
774 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
775 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
776 CC_HAS_LONG_LONG.
777 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
778 * dwarf2read.c (extract_cu_value): Remove the function.
779 (create_cus_from_index_list): Make the return type void, inline the
780 extract_cu_value caller, include new gdb_static_assert.
781 (create_cus_from_index): Make the return type void, update the function
782 comment, update the create_cus_from_index_list caller.
783 (create_signatured_type_table_from_index): Make the return type void,
784 inline the extract_cu_value caller, include new gdb_static_assert.
785 (dwarf2_read_index): Update the create_cus_from_index and
786 create_signatured_type_table_from_index caller.
787 * printcmd.c (ui_printf): Remove conditionalizations for
788 CC_HAS_LONG_LONG.
789 * config.in: Regenerate.
790 * configure: Regenerate.
791
792 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
793
794 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
795 Update the comment for checked_producer.
796 (check_producer): New forward declaration.
797 (producer_is_gcc_lt_4_3): New function.
798 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
799 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
800
801 2012-12-07 Tom Tromey <tromey@redhat.com>
802
803 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
804 argument, assertion.
805 * c-exp.y (typebase): Add completion productions.
806 * completer.c (expression_completer): Handle tag completion.
807 * expression.h (parse_expression_for_completion): Add argument.
808 * f-lang.c (f_make_symbol_completion_list): Add 'code'
809 argument.
810 * language.h (struct language_defn)
811 <la_make_symbol_completion_list>: Add 'code' argument.
812 * parse.c (expout_tag_completion_type, expout_completion_name):
813 New globals.
814 (mark_struct_expression): Add assertion.
815 (mark_completion_tag): New function.
816 (parse_exp_in_context): Initialize new globals.
817 (parse_expression_for_completion): Add 'code' argument. Handle
818 tag completion.
819 * parser-defs.h (mark_completion_tag): Declare.
820 * symtab.c (default_make_symbol_completion_list_break_on): Add
821 'code' argument. Update.
822 (default_make_symbol_completion_list): Add 'code' argument.
823 (make_symbol_completion_list): Update.
824 (make_symbol_completion_type): New function.
825 * symtab.h (default_make_symbol_completion_list_break_on)
826 (default_make_symbol_completion_list): Update.
827 (make_symbol_completion_type): Declare.
828
829 2012-12-07 Tom Tromey <tromey@redhat.com>
830
831 * expression.h (parse_expression_for_completion): Rename
832 from parse_field_expression.
833 (parse_completion): Rename from in_parse_field.
834 * c-exp.y (lex_one_token): Update.
835 * completer.c (expression_completer): Update.
836 * go-exp.y (lex_one_token): Update.
837 * p-exp.y (yylex): Update.
838 * parse.c (parse_completion): Rename from in_parse_field.
839 (parse_exp_in_context): Update.
840 (parse_expression_for_completion): Rename from
841 parse_field_expression. Update.
842
843 2012-12-07 Tom Tromey <tromey@redhat.com>
844
845 * typeprint.c (_initialize_typeprint): Set completer
846 for "whatis" and "ptype".
847
848 2012-12-07 Joel Brobecker <brobecker@adacore.com>
849
850 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
851 "sim/common/cgen-fpu.h". Remove invalid entries
852 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
853 which actually have an FSF copyright header.
854
855 2012-12-07 Joel Brobecker <brobecker@adacore.com>
856
857 * osf-share/AT386/cma_thread_io.h: Delete.
858 * osf-share/HP800/cma_thread_io.h: Delete.
859 * osf-share/README: Delete.
860 * osf-share/RIOS/cma_thread_io.h: Delete.
861 * osf-share/cma_attr.h: Delete.
862 * osf-share/cma_deb_core.h: Delete.
863 * osf-share/cma_debug_client.h: Delete.
864 * osf-share/cma_errors.h: Delete.
865 * osf-share/cma_handle.h: Delete.
866 * osf-share/cma_init.h: Delete.
867 * osf-share/cma_list.h: Delete.
868 * osf-share/cma_mutex.h: Delete.
869 * osf-share/cma_sched.h: Delete.
870 * osf-share/cma_semaphore_defs.h: Delete.
871 * osf-share/cma_sequence.h: Delete.
872 * osf-share/cma_stack.h: Delete.
873 * osf-share/cma_stack_int.h: Delete.
874 * osf-share/cma_tcb_defs.h: Delete.
875 * osf-share/cma_util.h: Delete.
876 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
877 in osf-share.
878 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
879 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
880 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
881
882 2012-12-06 Pedro Alves <palves@redhat.com>
883 Tom Tromey <tromey@redhat.com>
884
885 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
886
887 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
888
889 PR mi/14741:
890 * mi/mi-cmd-var.c (varobj_update_one): Take value of
891 attribute "dynamic" and "displayhint" from printed child,
892 not the root variable.
893
894 2012-12-06 Joel Brobecker <brobecker@adacore.com>
895
896 * aix-thread.c (getthrds): Fix type of 4th parameter.
897 (get_signaled_thread): Change type of variable ktid to tid_t.
898
899 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
900
901 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
902 value of get_frame_block.
903
904 2012-12-05 Pierre Muller <muller@sourceware.org>
905
906 Avoid memory leaks on struct cmd_list_element.doc field.
907 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
908 if flags contains DOC_ALLOCATED.
909 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
910 flags.
911 (delete_cmd): Handle DOC_ALLOCATED flag.
912 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
913 in flags filed of struct cmd_list_element.
914 (struct cmd_list_element): Document new flag item.
915
916 2012-12-04 Doug Evans <dje@google.com>
917
918 * symmisc.c: Whitespace fixes.
919
920 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
921
922 * i386-tdep.c (i386_skip_prologue): Using symbol table
923 to find the end of prologue for clang compiled binaries.
924 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
925 to find the end of prologue for clang compiled binaries.
926
927 2012-12-03 Doug Evans <dje@google.com>
928
929 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
930 (dw2_find_symbol_file): Delete unused local file_data.
931
932 2012-12-03 Tom Tromey <tromey@redhat.com>
933
934 * ada-exp.y (write_object_renaming, write_var_or_type)
935 (write_ambiguous_var, write_var_from_sym): Make blocks const.
936 * ada-lang.c (replace_operator_with_call)
937 (find_old_style_renaming_symbol): Make blocks const.
938 * ada-lang.h (ada_find_renaming_symbol): Update.
939 (struct ada_symbol_info) <block>: Now const.
940 * breakpoint.c (watch_command_1): Update.
941 * breakpoint.h (struct watchpoint) <exp_valid_block,
942 cond_exp_valid_block>: Now const.
943 * c-exp.y (classify_inner_name, classify_name): Make block
944 argument const.
945 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
946 const.
947 * expression.h (innermost_block, parse_exp_1): Update.
948 (union exp_element) <block>: Now const.
949 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
950 (lookup_struct): Make block argument const.
951 * gdbtypes.h (lookup_template_type): Update.
952 * go-exp.y (classify_name, classify_packaged_name)
953 (package_name_p): Make block argument const.
954 * objc-lang.c (lookup_struct_typedef): Make block argument const.
955 * objc-lang.h (lookup_struct_typedef): Update.
956 * parse.c (parse_exp_in_context, parse_exp_1)
957 (write_exp_elt_block): Make block arguments const.
958 (expression_context_block, innermost_block): Now const.
959 * parser-defs.h (write_exp_elt_block): Update.
960 (expression_context_block, innermost_block, block_found): Now
961 const.
962 * printcmd.c (struct display) <block>: Now const.
963 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
964 * valops.c (address_of_variable): Make block argument const.
965 * value.h (value_of_variable): Update.
966 * varobj.c (struct varobj_root) <valid_block>: Now const.
967
968 2012-11-30 Yao Qi <yao@codesourcery.com>
969
970 * breakpoint.c (print_one_breakpoint_location): Indent code.
971
972 2012-11-30 Yao Qi <yao@codesourcery.com>
973
974 * breakpoint.c (print_one_breakpoint_location): Combine two
975 blocks handling 'hit count' together.
976
977 2012-11-30 Yao Qi <yao@codesourcery.com>
978
979 * infrun.c (error_is_running, ensure_not_running): Move them
980 to ...
981 * infcmd.c (error_is_running, ensure_not_running): ... here.
982 Make them 'static'.
983 * inferior.h: Remove declarations of error_is_running and
984 ensure_not_running.
985
986 2012-11-30 Yao Qi <yao@codesourcery.com>
987
988 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
989 check REGNUM >= 0.
990
991 2012-11-30 Yao Qi <yao@codesourcery.com>
992
993 * infrun.c: Make the declaration of 'init_infwait_state'
994 static.
995 (init_infwait_state): Make it 'static'.
996
997 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
998
999 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1000 return value to void to avoid compiler warning.
1001
1002 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1003
1004 * opencl-lang.c (opencl_print_type): New function.
1005 (opencl_language_arch_info): Install it.
1006
1007 2012-11-29 Tom Tromey <tromey@redhat.com>
1008
1009 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1010 xvasprintf.
1011 * common/common-utils.c (xasprintf, xvasprintf): Remove.
1012 * common/common-utils.h (xasprintf, xvasprintf): Remove.
1013
1014 2012-11-29 Jerome Guitton <guitton@adacore.com>
1015
1016 * ada-lang.c (ada_is_interface_tag): New function.
1017 (ada_is_ignored_field): Add interface tags to the list
1018 of ignored fields.
1019
1020 2012-11-29 Jerome Guitton <guitton@adacore.com>
1021
1022 * ada-lang.h (ada_tag_value_at_base_address): New function
1023 declaration.
1024 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1025 New functions.
1026 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1027 relocate the class-wide value if need be.
1028 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1029 Let ada_tag_value_at_base_address relocate the class-wide access/ref
1030 before dereferencing it.
1031 * ada-valprint.c (ada_val_print_1): Relocate to base address
1032 before displaying the content of an interface-wide ref.
1033
1034 2012-11-29 Jerome Guitton <guitton@adacore.com>
1035
1036 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1037
1038 2012-11-29 Joel Brobecker <brobecker@adacore.com>
1039
1040 GDB 7.5.1 released.
1041
1042 2012-11-29 Yao Qi <yao@codesourcery.com>
1043 Tom Tromey <tromey@redhat.com>
1044
1045 * eval.c (evaluate_subexp_standard): Get the correct pointer
1046 type for TYPE_CODE_MEMBERPTR.
1047
1048 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
1049
1050 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1051 since now it is being done by binutils' powerpc_init_dialect().
1052
1053 2012-11-28 Tom Tromey <tromey@redhat.com>
1054
1055 PR gdb/14290:
1056 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1057 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1058 Use it.
1059 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1060 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1061 (gdb_bfd_openr_next_archived_file): Use it.
1062
1063 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
1064
1065 * configure.ac: Check for linux/perf_event.h.
1066 * config.in: Regenerated.
1067 * configure: Regenerated.
1068
1069 2012-11-28 Yao Qi <yao@codesourcery.com>
1070
1071 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1072 abbreviate 'delete tracepoints' to 'delete tr'.
1073 * corefile.c (_initialize_core): Call add_alias_cmd to
1074 abbreviate 'set gnutarget' to 'set g'.
1075 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1076 'show convenience' to 'show conv'.
1077
1078 2012-11-27 Joel Brobecker <brobecker@adacore.com>
1079
1080 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1081 call to sparc_supply_fpregset.
1082 (fill_fpregset): Fix first parameter in call to
1083 sparc_collect_fpregset.
1084
1085 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1086 Kazu Hirata <kazu@codesourcery.com>
1087 Yao Qi <yao@codesourcery.com>
1088
1089 * objfiles.c (init_entry_point_info): Call
1090 gdbarch_convert_from_func_ptr_addr and
1091 gdbarch_addr_bits_remove here ...
1092 (entry_point_address_query): ... instead of here.
1093 * solib-svr4.c (exec_entry_point): Call
1094 gdbarch_addr_bits_remove.
1095 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1096 the entry address.
1097
1098 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1099 Yao Qi <yao@codesourcery.com>
1100
1101 * eval.c (evaluate_subexp_standard): Add handling of
1102 TYPE_CODE_MEMBERPTR when calling functions. Correct the
1103 result of ptype for calling a TYPE_CODE_METHODPTR.
1104
1105 2012-11-27 Yao Qi <yao@codesourcery.com>
1106
1107 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1108 warning.
1109 Add i18n markup.
1110
1111 2012-11-26 Alexander Larsson <alexl@redhat.com>
1112 Jan Kratochvil <jan.kratochvil@redhat.com>
1113 Tom Tromey <tromey@redhat.com>
1114
1115 * NEWS: Mention mini debuginfo feature.
1116 * minidebug.c: New file.
1117 * configure.ac: Check for lzma.
1118 * configure, config.in: Rebuild.
1119 * Makefile.in (LIBLZMA): New variable.
1120 (CLIBS): Include LIBLZMA.
1121 (SFILES): Mention minidebug.c.
1122 (COMMON_OBS): Mention minidebug.o.
1123 * symfile.c (read_symbols): New function.
1124 (syms_from_objfile, reread_symbols): Call it.
1125 * symfile.h (find_separate_debug_file_in_section): Declare.
1126
1127 2012-11-26 Keith Seitz <keiths@redhat.com>
1128
1129 * exec.c (exec_file_attach): Move cleanup after verifying that
1130 memory has in fact been allocated.
1131
1132 2012-11-26 Tom Tromey <tromey@redhat.com>
1133
1134 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1135 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1136 SYMBOL_SYMTAB.
1137 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1138
1139 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1140 Pedro Alves <palves@redhat.com>
1141
1142 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1143 size parameter passed to readlink by one byte.
1144 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1145 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1146 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1147 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1148 size by one byte.
1149
1150 2012-11-26 Yao Qi <yao@codesourcery.com>
1151
1152 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1153 extraneous parentheses.
1154
1155 2012-11-26 Yao Qi <yao@codesourcery.com>
1156
1157 * remote.c (remote_start_remote): Typo fix.
1158
1159 2012-11-23 David S. Miller <davem@davemloft.net>
1160
1161 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1162 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1163 sparc32_sol2_fpregset): Declare new globals.
1164 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1165 'fpregset' argument.
1166 * sparc64-tdep.h (sparc64_supply_fpregset,
1167 sparc64_collect_fpregset): Likewise.
1168 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1169 globals.
1170 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1171 (sparc_fpregset): Declare new global.
1172 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1173 'fpregset' argument.
1174 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1175 into handler.
1176 (fill_fpregset): Likewise.
1177 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1178 sparc32_bsd_fpregset.
1179 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1180 sparc32_bsd_fpregset down into handler.
1181 (sparc32_linux_collect_core_fpregset): Likewise.
1182 * sparc-nat.c (sparc_fpregset): Define.
1183 (sparc_supply_fpregset): Add 'fpregset' argument.
1184 (sparc_collect_fpregset): Likewise.
1185 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1186 into fpregset handler.
1187 (sparc_store_inferior_registers): Likewise.
1188 (_initialize_sparc_nat): Set sparc_fpregset to
1189 sparc32_sunos4_fpregset if NULL.
1190 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1191 down into handler.
1192 (fill_fpregset): Likewise.
1193 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1194 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1195 use it to compute offsets.
1196 (sparc32_collect_fpregset): Likewise.
1197 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1198 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1199 down into handler.
1200 (fill_fpregset): Likewise.
1201 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1202 Likewise.
1203 (sparc64_linux_collect_core_fpregset): Likewise.
1204 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1205 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1206 use it to compute offsets.
1207 (sparc64_collect_fpregset): Likewise.
1208 (sparc64_bsd_fpregset): Define.
1209 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1210 sparc64_bsd_fpregset down into handler.
1211 (sparc64fbsd_collect_fpregset): Likewise.
1212 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1213 and pass sparc{32,64}_bsd_fpregset down into handler.
1214 (sparc64nbsd_collect_fpregset): Likewise.
1215 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1216 sparc64_bsd_fpregset down into handler.
1217 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1218 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1219 to sparc32_bsd_fpregset.
1220 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1221 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1222 (sparc32nbsd_supply_fpregset): Likewise.
1223
1224 2012-11-21 Tom Tromey <tromey@redhat.com>
1225
1226 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1227 field.
1228 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1229 Remove.
1230 * c-typeprint.c (c_type_print_base): Update.
1231
1232 2012-11-21 Yao Qi <yao@codesourcery.com>
1233
1234 PR tdep/7438
1235 * gdbarch.sh (smash_text_address): Remove.
1236 * gdbarch.c, gdbarch.h: Regenerate.
1237 * arm-tdep.c (arm_smash_text_address): Remove.
1238 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1239 * hppa-tdep.c (hppa_smash_text_address): Remove.
1240 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1241 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1242 Caller update.
1243 * coffread.c (coff_symtab_read): Caller update.
1244 * dbxread.c (process_one_symbol): Likewise.
1245 * elfread.c (record_minimal_symbol): Likewise.
1246 * somread.c (som_symtab_read): Likewise.
1247
1248 2012-11-20 Pierre Muller <muller@sourceware.org>
1249
1250 ARI fixes: sprintf rule.
1251 Replace sprintf function calls for char arrays by
1252 calls to xsnprintf calls.
1253 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1254 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1255 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1256 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1257 * breakpoint.c (condition_completer): Ditto.
1258 (create_tracepoint_from_upload): Ditto.
1259 * dwarf2read.c (file_full_name): Ditto.
1260 * gcore.c (gcore_command): Ditto.
1261 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1262 * go32-nat.c (go32_sysinfo): Ditto.
1263 * interps.c (interp_set): Ditto.
1264 * m32c-tdep.c (make_types): Ditto.
1265 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1266 * remote-m32r-sdi.c (m32r_open): Ditto.
1267 * sol-thread.c (td_err_string): Ditto.
1268 (td_state_string, solaris_pid_to_str): Ditto.
1269 * symtab.c (gdb_mangle_name): Ditto.
1270 * cli/cli-script.c (execute_control_command): Ditto.
1271 (define_command, document_command): Ditto.
1272 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1273 * tui/tui-stack.c (tui_make_status_line): Ditto.
1274 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1275
1276 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1277
1278 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1279 it when looking at ptr->func.
1280 * command.h (complete_on_cmdlist): Add a fourth arg.
1281 * completer.c (complete_line_internal): Add local ignore_help_classes,
1282 and set it to 1 when reason is not handle_help. Pass this down to
1283 lookup_cmd_1 and complete_on_cmdlist.
1284
1285 2012-11-20 Tom Tromey <tromey@redhat.com>
1286
1287 * completer.c (count_struct_fields): Remove.
1288 (expression_completer): Don't call count_struct_fields.
1289
1290 2012-11-20 Pedro Alves <palves@redhat.com>
1291
1292 * annotate.c (breakpoints_changed): Rename to ...
1293 (annotate_breakpoints_changed): ... this.
1294 (annotate_stopped, breakpoint_changed): Adjust caller.
1295 * annotate.h (breakpoints_changed): Rename to ...
1296 (annotate_breakpoints_changed): ... this.
1297 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1298 (do_map_commands_command, init_raw_breakpoint, clear_command)
1299 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1300
1301 2012-11-20 David S. Miller <davem@davemloft.net>
1302
1303 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1304 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1305 sysconf.
1306 (get_cores_used_by_process): Update comment.
1307
1308 2012-11-20 Yao Qi <yao@codesourcery.com>
1309
1310 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1311
1312 2012-11-20 Yao Qi <yao@codesourcery.com>
1313
1314 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1315 to deprecated_context_hook.
1316
1317 2012-11-19 Yao Qi <yao@codesourcery.com>
1318
1319 * infrun.c (infwait_state): Add static.
1320
1321 2012-11-16 Keith Seitz <keiths@redhat.com>
1322
1323 PR c++/13615
1324 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1325 parameter and pass it to lookup_symbol_file.
1326 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1327 to search base classes.
1328 (cp_lookup_symbol_namespace): Likewise.
1329 (lookup_namespace_scope): Likewise.
1330 (lookup_symbol_file): Add SEARCH parameter.
1331 If SEARCH is non-zero and no symbol is found, lookup the class
1332 and call cp_lookup_nested_symbol.
1333 (find_symbol_in_baseclass): New function.
1334 (cp_lookup_nested_symbol): Do not let
1335 cp_lookup_symbol_in_namespace search through base classes.
1336 Do that later when there is no global symbol match.
1337
1338 2012-11-16 Doug Evans <dje@google.com>
1339
1340 * main.c (gdb_datadir_provided): New static global.
1341 (get_init_files): If --data-directory is provided,
1342 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1343 * NEWS: Mention it.
1344
1345 2012-11-15 Pierre Muller <muller@sourceware.org>
1346
1347 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1348 * gdb_stat.h: Delete. Moved to common directory.
1349 * common/gdb_stat.h: New file.
1350 * gdb_wait.h: Delete. Moved to common directory.
1351 * common/gdb_wait.h: New file.
1352 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1353 location.
1354 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1355 location.
1356 (stat.h rule): Adapt to new gdb_stat.h location.
1357 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1358 <sys/stat.h> header.
1359 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1360 <sys/wait.h> header.
1361
1362 2012-11-15 Pierre Muller <muller@sourceware.org>
1363
1364 * configure.ac (AC_HEADER_STAT): Remove.
1365 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1366 and corresponding code.
1367 * configure: Regenerate.
1368 * config.in: Regenerate.
1369
1370 2012-11-15 Pierre Muller <muller@sourceware.org>
1371
1372 ARI xasprintf rule fixes.
1373 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1374 instead of xasprintf.
1375 (open_and_init_dwp_file): Ditto.
1376
1377 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1378
1379 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1380 target types.
1381
1382 2012-11-14 Tom Tromey <tromey@redhat.com>
1383
1384 * configure, config.in: Rebuild.
1385 * configure.ac: Don't check for ctype.h, time.h.
1386 * expprint.c: Don't use HAVE_CTYPE_H.
1387
1388 2012-11-13 Tom Tromey <tromey@redhat.com>
1389
1390 * gdbarch.h, gdbarch.c: Rebuild.
1391 * gdbarch.sh (set_target_gdbarch): Rename from
1392 deprecated_target_gdbarch_select_hack.
1393 * arch-utils.c (gdbarch_update_p): Update.
1394 (set_gdbarch_from_file): Update.
1395
1396 2012-11-14 Pierre Muller <muller@sourceware.org>
1397
1398 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1399 as responsible of contrib/ari directory.
1400
1401 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1402 Yao Qi <yao@codesourcery.com>
1403
1404 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1405 bit of EXC_RETURN.
1406 (arm_m_exception_cache, arm_m_exception_this_id)
1407 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1408 (arm_m_exception_unwind): New.
1409 (arm_gdbarch_init): Register arm_m_exception_unwind.
1410
1411 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1412
1413 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1414 parameter COUNT, for pattern filling of memory regions.
1415 * NEWS: Mention it.
1416
1417 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1418
1419 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1420 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1421 to print_source_lines ().
1422 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1423 flag.
1424 * source.c (print_source_lines_base): Prefix source line with
1425 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1426
1427 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1428
1429 * symtab.h (print_source_lines_flags): New enum.
1430 * source.c (print_source_lines_base): Change noerror to flags.
1431 (print_source_lines): Change noerror to flags.
1432
1433 2012-11-13 Pierre Muller <muller@sourceware.org>
1434
1435 ARI fixes: Avoid sprintf function use rule.
1436 * charset.c (convert_between_encodings): Use xsnprintf.
1437 * cli-out.c (cli_field_int): Likewise.
1438 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1439 * expprint.c (op_name_standard): Likewise.
1440 * frv-tdep.c (set_variant_num_gprs): Likewise.
1441 (set_variant_num_fprs): Likewise.
1442 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1443 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1444 (nto_init_solib_absolute_prefix): Likewise.
1445 * source.c (init_source_path): Likewise.
1446 (print_source_lines_base): Likewise.
1447 * valprint.c (print_wchar): Likewise.
1448 * mi/mi-out.c (mi_field_int): Likewise.
1449 windows-nat.c (windows_pid_to_exec_file): Likewise.
1450 (windows_create_inferior): Likewise.
1451 (_initialize_check_for_gdb_ini): Likewise.
1452
1453 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1454
1455 * frame.h (deprecated_frame_register_read): Renames
1456 frame_register_read.
1457 * frame.c (deprecated_frame_register_read): Renames
1458 frame_register_read. Update all callers.
1459 * i386-tdep.c: Update all callers of frame_register_read.
1460 * infcmd.c: Likewise.
1461 * jit.c: Likewise.
1462 * mips-tdep.c: Likewise.
1463 * mt-tdep.c: Likewise.
1464 * sh64-tdep.c: Likewise.
1465
1466 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1467
1468 * frame.h (frame_register_read): Remove FIXME comment.
1469 * frame.c (frame_register_read): Add suggestion explaining
1470 which function to use in place of this one.
1471
1472 2012-11-12 Tom Tromey <tromey@redhat.com>
1473
1474 * python/python.c (start_type_printers): Initialize 'result_obj'.
1475
1476 2012-11-12 Tom Tromey <tromey@redhat.com>
1477
1478 * NEWS: Update.
1479 * data-directory/Makefile.in (PYTHON_FILES): Add
1480 type_printers.py.
1481 * python/lib/gdb/command/type_printers.py: New file.
1482 * python/lib/gdb/command/types.py (TypePrinter): New class.
1483 (_get_some_type_recognizers, get_type_recognizers,
1484 apply_type_recognizers, register_type_printer): New
1485 functions.
1486 * python/py-objfile.c (objfile_object) <type_printers>: New
1487 field.
1488 (objfpy_dealloc): Decref new field.
1489 (objfpy_new): Set new field.
1490 (objfpy_get_type_printers, objfpy_set_type_printers): New
1491 functions.
1492 (objfile_to_objfile_object): Set new field.
1493 (objfile_getset): Add "type_printers".
1494 * python/py-progspace.c (pspace_object) <type_printers>: New
1495 field.
1496 (pspy_dealloc): Decref new field.
1497 (pspy_new): Set new field.
1498 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1499 (pspace_to_pspace_object): Set new field.
1500 (pspace_getset): Add "type_printers".
1501 * python/python.c (start_type_printers, apply_type_printers,
1502 free_type_printers): New functions.
1503 (_initialize_python): Set gdb.type_printers.
1504 * python/python.h (start_type_printers, apply_type_printers,
1505 free_type_printers): Declare.
1506 * typeprint.c (type_print_raw_options, default_ptype_flags):
1507 Update for new fields.
1508 (do_free_global_table, create_global_typedef_table,
1509 find_global_typedef): New functions.
1510 (find_typedef_in_hash): Use find_global_typedef.
1511 (whatis_exp): Use create_global_typedef_table. Change cleanup
1512 handling.
1513 * typeprint.h (struct type_print_options) <global_typedefs,
1514 global_printers>: New fields.
1515
1516 2012-11-12 Tom Tromey <tromey@redhat.com>
1517
1518 * c-typeprint.c (find_typedef_for_canonicalize,
1519 print_name_maybe_canonical): New functions.
1520 (c_print_type): Look up type name.
1521 (cp_type_print_derivation_info): Add flags argument. Use
1522 print_name_maybe_canonical.
1523 (cp_type_print_method_args): Add wrapping.
1524 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1525 (c_type_print_template_args): New function.
1526 (c_type_print_base): Change wrapping. Use
1527 print_name_maybe_canonical.
1528 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1529 type name lookups.
1530 * gdbtypes.c (types_equal): No longer static.
1531 * gdbtypes.h (types_equal): Declare.
1532 * typeprint.c (type_print_raw_options, default_ptype_flags):
1533 Update.
1534 (struct typedef_hash_table): New.
1535 (hash_typedef_field, eq_typedef_field,
1536 recursively_update_typedef_hash, add_template_parameters,
1537 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1538 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1539 copy_typedef_hash, find_typedef_in_hash): New functions.
1540 * typeprint.h (struct type_print_options) <local_typedefs>:
1541 New field.
1542 (recursively_update_typedef_hash, add_template_parameters,
1543 create_typedef_hash, free_typedef_hash,
1544 make_cleanup_free_typedef_hash, copy_typedef_hash,
1545 find_typedef_in_hash): Declare.
1546
1547 2012-11-12 Tom Tromey <tromey@redhat.com>
1548
1549 * cp-support.c (inspect_type,
1550 replace_typedefs_qualified_name, replace_typedefs): Add
1551 finder, data arguments. Call as needed.
1552 (cp_canonicalize_string_full): New function.
1553 (cp_canonicalize_string_no_typedefs): Rewrite.
1554 * cp-support.h (canonicalization_ftype): New typedef.
1555 (cp_canonicalize_string_full): Declare.
1556
1557 2012-11-12 Tom Tromey <tromey@redhat.com>
1558
1559 * NEWS: Update.
1560 * c-typeprint.c (c_type_print_base): Handle print_method and
1561 print_typedefs flags.
1562 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1563 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1564 options.
1565 * typeprint.c (type_print_raw_options, default_ptype_flags):
1566 Update for new field.s
1567 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1568 (setprinttypelist, showprinttypelist, print_methods,
1569 print_typedefs): New globals.
1570 (set_print_type, show_print_type, set_print_type_methods,
1571 show_print_type_methods, set_print_type_typedefs,
1572 show_print_type_typedefs): New functions.
1573 (_initialize_typeprint): Update documentation. Add "print
1574 type methods" and "print type typedefs" parameters.
1575 * typeprint.h (struct type_print_options) <print_methods,
1576 print_typedefs>: New fields.
1577
1578 2012-11-12 Tom Tromey <tromey@redhat.com>
1579
1580 * c-typeprint.c (cp_type_print_method_args): Add flags
1581 argument. Call c_print_type, not type_print.
1582 (c_type_print_base): Call c_print_type, not type_print.
1583 Update.
1584
1585 2012-11-12 Tom Tromey <tromey@redhat.com>
1586
1587 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1588 to type-printing functions.
1589 * ada-lang.h (ada_print_type): Add argument.
1590 * ada-typeprint.c (print_array_type, print_variant_clauses,
1591 print_variant_part, print_selected_record_field_types,
1592 print_record_field_types, print_unchecked_union_type,
1593 print_func_type, ada_print_type): Add flags argument.
1594 (ada_print_typedef): Update.
1595 * c-exp.y (OPERATOR conversion_type_id): Update.
1596 * c-lang.h (c_print_type, c_type_print_base): Update.
1597 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1598 c_type_print_modifier, c_type_print_args,
1599 c_type_print_varspec_suffix, c_type_print_base): Add flags
1600 argument.
1601 * cp-valprint.c (cp_print_class_member): Update.
1602 * dwarf2read.c (dwarf2_compute_name): Update.
1603 * f-lang.h (f_print_type): Add argument.
1604 * f-typeprint.c (f_print_type): Add flags argument.
1605 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1606 * go-lang.h (go_print_type): Add argument.
1607 * go-typeprint.c (go_print_type): Add flags argument.
1608 * jv-lang.h (java_print_type): Add argument.
1609 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1610 flags argument.
1611 * language.c (unk_lang_print_type): Add flags argument.
1612 * language.h (struct language_defn) <la_print_type>: Add flags
1613 argument.
1614 (LA_PRINT_TYPE): Likewise.
1615 * m2-lang.h (m2_print_type): Add argument.
1616 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1617 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1618 m2_unbounded_array, m2_record_fields): Add flags argument.
1619 * p-lang.h (pascal_print_type, pascal_type_print_base,
1620 pascal_type_print_varspec_prefix): Add argument.
1621 * p-typeprint.c (pascal_print_type,
1622 pascal_type_print_varspec_prefix, pascal_print_func_args,
1623 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1624 flags argument.
1625 * symmisc.c (print_symbol): Update.
1626 * typeprint.c (type_print_raw_options, default_ptype_flags):
1627 New globals.
1628 (type_print): Update.
1629 * typeprint.h (struct type_print_options): New.
1630 (type_print_raw_options): Declare.
1631 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1632
1633 2012-11-10 Keith Seitz <keiths@redhat.com>
1634
1635 * breakpoint.c (clear_command): Add cleanup for
1636 sals.sals if an argument is given.
1637
1638 * linespec.c (parse_linespec): Do cleanups after
1639 parsing a convenience variable.
1640
1641 2012-11-10 Keith Seitz <keiths@redhat.com>
1642
1643 PR gdb/14288
1644 * c-valprint.c (c_val_print): For character arrays
1645 with "print null" option on, print ellipses if
1646 the output is truncated and the next character is not \000.
1647 * valprint.c (MAX_WCHARS): Define.
1648 (WCHAR_BUFLEN): Likewise.
1649 (WCHAR_BUFLEN_MAX): Likewise.
1650 (struct converted_character): New structure.
1651 (count_next_character): New function.
1652 (print_converted_chars_to_obstack): New function.
1653 (generic_printstr): Rewrite using count_next_character
1654 and print_converted_chars_to_obstack.
1655
1656 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1657
1658 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1659 while executing the gdb command.
1660 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1661 are called from prompt_for_continue.
1662 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1663
1664 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1665
1666 PR tui/9584
1667
1668 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1669 but insert the command to execute in readline's buffer.
1670
1671 2012-11-09 Tom Tromey <tromey@redhat.com>
1672
1673 * gdbarch.sh (target_gdbarch): Remove macro.
1674 (get_target_gdbarch): Rename to target_gdbarch.
1675 * gdbarch.c, gdbarch.h: Rebuild.
1676 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1677 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1678 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1679 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1680 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1681 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1682 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1683 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1684 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1685 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1686 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1687 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1688 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1689 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1690 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1691 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1692 target-descriptions.c, target.c, target.h, tracepoint.c,
1693 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1694 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1695 python/py-inferior.c, python/python.c: Update.
1696
1697 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1698
1699 * source.c (print_source_lines_base): Add fullname field giving
1700 full path to file in mi output.
1701 * NEWS: Mention the new fullname field.
1702
1703 2012-11-09 Yao Qi <yao@codesourcery.com>
1704
1705 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1706
1707 2012-11-09 Pedro Alves <palves@redhat.com>
1708
1709 PR gdb/14306
1710
1711 * infrun.c: Include target-descriptions.h.
1712 (follow_exec): Fetch new target description.
1713
1714 2012-11-09 Yao Qi <yao@codesourcery.com>
1715
1716 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1717 0x8d (lea).
1718
1719 2012-11-09 Yao Qi <yao@codesourcery.com>
1720
1721 * breakpoint.c: Declare set_tracepoint_count.
1722 (install_breakpoint): Call set_tracepoint_count if B is a
1723 tracepoint.
1724 (trace_command): Don't call set_tracepoint_count. Re-indent.
1725 (strace_command, ftrace_command):
1726 (create_tracepoint_from_upload): Likewise.
1727
1728 2012-11-09 Pedro Alves <palves@redhat.com>
1729
1730 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1731 (get_target_gdbarch) <gdbarch.h>: New function.
1732 (startup_gdbarch) <gdbarch.h>: Declare.
1733 <gdbarch.c> (target_gdbarch): Delete.
1734 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1735 current inferior's gdbarch.
1736 <gdbarch.c> (get_target_gdbarch): New function.
1737 * inferior.c: Include target-descriptions.h.
1738 (free_inferior): Free target description info.
1739 (add_inferior_with_spaces): Set the inferior's initial
1740 architecture.
1741 (clone_inferior_command): Copy the original inferior's target
1742 description if it was user specified.
1743 (initialize_inferiors): Add comment.
1744 * inferior.h (struct target_desc_info): Forward declare.
1745 (struct inferior) <gdbarch>: New field.
1746 * linux-nat.c: Include target-descriptions.h.
1747 (linux_child_follow_fork): Copy the parent's architecture and
1748 target description to the child.
1749 * target-descriptions.c: Include inferior.h.
1750 (struct target_desc_info): New structure, holding the equivalents
1751 of ...
1752 (target_desc_fetched, current_target_desc)
1753 (target_description_filename): ... these removed globals.
1754 (get_tdesc_info, target_desc_info_from_user_p)
1755 (copy_inferior_target_desc_info, target_desc_info_free): New.
1756 (target_desc_fetched, current_target_desc)
1757 (target_description_filename): Reimplemented as convenience
1758 macros.
1759 (tdesc_filename_cmd_string): New global.
1760 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1761 tdescs filename ..." commands to the per-inferior equivalent.
1762 (show_tdesc_filename_cmd): Get the value to show from the
1763 per-inferior description filename.
1764 (_initilize_target_descriptions): Change the "set/show tdesc
1765 filename" commands' variable.
1766 * target-descriptions.h (struct target_desc, struct target_desc_info)
1767 (struct inferior): Forward declare.
1768 (target_find_description, target_clear_description)
1769 (target_current_description): Adjust comments.
1770 (copy_inferior_target_desc_info, target_desc_info_free)
1771 (target_desc_info_from_user_p). Declare.
1772
1773 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1774
1775 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1776 (tui_target_wait_hook): Remove.
1777 (tui_install_hooks): Install the about_to_proceed observer.
1778 (tui_remove_hooks): And remove it here.
1779
1780 2012-11-08 Tom Tromey <tromey@redhat.com>
1781
1782 * linux-tdep.c (linux_make_siginfo_note): New function.
1783 (linux_make_corefile_notes): Use it.
1784 * corelow.c (get_core_siginfo): New function.
1785 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1786
1787 2012-11-08 Tom Tromey <tromey@redhat.com>
1788
1789 PR gdb/14704:
1790 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1791 (zlib_decompress_section): Remove.
1792 (gdb_bfd_map_section): Only check for compressed section
1793 in mmap case. Use bfd_get_full_section_contents.
1794 * osabi.c (check_note): Add 'sectsize' argument. Read
1795 section data.
1796 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1797 section data. Update for check_note change.
1798 * xcoffread.c (xcoff_initial_scan): Use
1799 bfd_get_full_section_contents.
1800 * py-auto-load.c (auto_load_section_scripts): Use
1801 bfd_get_full_section_contents.
1802 * contrib/cc-with-tweaks.sh: Add -Z option.
1803
1804 2012-11-08 Tom Tromey <tromey@redhat.com>
1805
1806 * python/py-bpevent.c: Include defs.h.
1807 * python/py-continueevent.c: Include defs.h.
1808 * python/py-event.c: Include defs.h.
1809 * python/py-event.h: Don't include defs.h.
1810 * python/py-events.h: Don't include defs.h.
1811 * python/py-evts.c: Include defs.h.
1812 * python/py-exitedevent.c: Include defs.h.
1813 * python/py-newobjfileevent.c: Include defs.h.
1814 * python/py-signalevent.c: Include defs.h.
1815 * python/py-stopevent.c: Include defs.h.
1816 * python/py-threadevent.c: Include defs.h.
1817
1818 2012-11-08 Pierre Muller <muller@sourceware.org>
1819
1820 * update-web-ari.sh (print_heading): Add number of files
1821 checked.
1822 (nb_files): New variable counting the number of sources
1823 files found by gdb_find.sh script.
1824 (debug_awk): New variable to allow extra debug output.
1825 (indexes): Add more information if DEBUG_AWK is set.
1826
1827 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1828
1829 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1830 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1831 following the change in PLT call stubs on linker.
1832
1833 2012-11-08 Pierre Muller <muller@sourceware.org>
1834
1835 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1836 as default language.
1837 (AWK): Use = instead of == for sh test to avoid warning.
1838 (Linux rule): Correct [:digit] into [[:digit:]].
1839 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1840 (vasprintf rule): Adapt to common subdirectory moves.
1841 (xasprintf rule): Idem.
1842 (xvasprintf rule): Idem.
1843 (var_boolean rule): Accept occurence in == or != test.
1844
1845 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1846
1847 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1848
1849 * tui/tui-hooks.c (tui_inferior_exit): New function.
1850 (tui_detach_hook): Remove.
1851 (tui_install_hooks): Install the inferior exit observer.
1852 (tui_remove_hooks): Remove it.
1853
1854 2012-11-08 Yao Qi <yao@codesourcery.com>
1855
1856 PR gdb/14777.
1857 * source.c (_initialize_source): Call add_com_alias to abbreviate
1858 'forward-search' as 'fo'.
1859
1860 2012-11-07 Pedro Alves <palves@redhat.com>
1861
1862 * arm-tdep.c: Make defs.h be the first include.
1863 * coff-pe-read.c: Ditto.
1864 * gnu-nat.c: Ditto.
1865 * go32-nat.c: Ditto.
1866 * i386-nat.c: Ditto.
1867 * ppcnbsd-nat.c: Ditto.
1868 * ada-varobj.h: Don't include defs.h.
1869 * i386-darwin-tdep.h: Ditto.
1870 * i386-nat.h: Ditto.
1871
1872 2012-11-07 Pedro Alves <palves@redhat.com>
1873
1874 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1875 Committee.
1876
1877 2012-11-07 Pierre Muller <muller@sourceware.org>
1878
1879 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1880 File already uses "gdb_dirent.h" header.
1881
1882 2012-11-07 Yao Qi <yao@codesourcery.com>
1883
1884 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1885 tracepoint_count'.
1886
1887 2012-11-06 Tom Tromey <tromey@redhat.com>
1888
1889 * target.h (inferior_has_forked, inferior_has_vforked)
1890 (inferior_has_execd, inferior_has_called_syscall): Remove
1891 declarations.
1892
1893 2012-11-06 Pierre Muller <muller@sourceware.org>
1894
1895 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1896 add missing internalization markup.
1897
1898 2012-11-06 Pedro Alves <palves@redhat.com>
1899
1900 PR gdb/14810
1901
1902 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1903
1904 2012-11-06 Pierre Muller <muller@sourceware.org>
1905
1906 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1907 is not executable.
1908
1909 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1910
1911 * gnulib/update-gnulib.sh: New script.
1912
1913 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1914
1915 * MAINTAINERS: Update my email address.
1916
1917 2012-11-05 Tom Tromey <tromey@redhat.com>
1918
1919 * frame.c (put_frame_register): Don't use temporary buffer.
1920
1921 2012-11-05 Pedro Alves <palves@redhat.com>
1922
1923 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1924 child. Clear 'pending_detach'.
1925 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1926 'pending_detach' in the vfork parent.
1927
1928 2012-11-05 Doug Evans <dje@google.com>
1929
1930 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1931 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1932 * dwarf2read.c: #include "elf-bfd.h".
1933 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1934 (dwop_section_names): Renamed from dwo_section names. All uses
1935 updated. Add entries for .debug_cu_index, .debug_tu_index.
1936 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1937 All uses updated.
1938 (struct dwp_sections): New type.
1939 (struct virtual_dwo_sections): New type.
1940 (struct dwp_hash_table): New type.
1941 (struct dwp_file): New type.
1942 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1943 read in. Handle DWOs coming from DWP files.
1944 (lookup_dwo_file_slot): New function.
1945 (dwarf2_locate_dwo_sections): Move definition closer to use.
1946 (create_dwo_debug_info_hash_table_reader): Renamed from
1947 create_debug_info_hash_table_reader. All callers updated.
1948 (create_dwo_debug_info_hash_table): Renamed from
1949 create_debug_info_hash_table. All callers updated.
1950 (create_dwp_hash_table): New function.
1951 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1952 (lookup_dwo_in_dwp): New function.
1953 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1954 is_dwp. All callers updated.
1955 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1956 (open_and_init_dwo_file): Renamed from init_dwo_file.
1957 All callers updated.
1958 (lookup_dwo_file): Delete.
1959 (dwarf2_locate_dwp_sections): New function.
1960 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1961 (allocate_dwp_loaded_cutus_table): New function.
1962 (open_and_init_dwp_file): New function.
1963 (lookup_dwo_cutu): New function.
1964 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1965
1966 2012-11-03 Yao Qi <yao@codesourcery.com>
1967
1968 Fix PR gdb/14617.
1969 * breakpoint.c (trace_pass_set_count): Call
1970 observer_notify_breakpoint_modified instead of
1971 observer_notify_tracepoint_modified.
1972 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1973
1974 2012-11-02 Tom Tromey <tromey@redhat.com>
1975
1976 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1977 argument to complete_on_enum.
1978
1979 2012-11-02 Tom Tromey <tromey@redhat.com>
1980
1981 * configure: Rebuild.
1982 * configure.ac (build_warnings): Add -Wempty-body.
1983 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1984 * remote.c (handle_notification): Use braces for empty 'else' body.
1985 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1986 'else' body.
1987 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1988 'else' body.
1989 * solib-som.c (som_relocate_section_addresses): Use braces
1990 for empty 'else' body.
1991 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1992 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1993
1994 2012-11-02 Pedro Alves <palves@redhat.com>
1995
1996 PR gdb/14766
1997
1998 * infrun.c (handle_inferior_event)
1999 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2000 null_ptid before handling a vfork child exec or exit. Switch to
2001 the event ptid afterwards.
2002
2003 2012-11-02 Yao Qi <yao@codesourcery.com>
2004
2005 * std-operator.def: Remove OP_LABELED.
2006 * eval.c: Remove the declaration of 'get_label'.
2007 (get_label): Remove.
2008 (evaluate_struct_tuple): Remove code handling OP_LABELED.
2009 Update comment.
2010 Remove local variable 'variantno' and related code.
2011 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
2012 with 'fieldno'.
2013 * expprint.c (print_subexp_standard): Likewise.
2014 (dump_subexp_body_standard): Likewise.
2015 * parse.c (operator_length_standard): Likewise.
2016
2017 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
2018
2019 Incorporate ARI web page generator into GDB sources.
2020 * contrib/ari/create-web-ari-in-src.sh: New file.
2021 * contrib/ari/gdb_ari.sh: New file.
2022 * contrib/ari/gdb_find.sh: New file.
2023 * contrib/ari/update-web-ari.sh: New file.
2024
2025 2012-10-31 Tom Tromey <tromey@redhat.com>
2026
2027 * gdbarch.c: Rebuild.
2028 * gdbarch.sh: Remove references to gdbarch_swap.
2029 * corelow.c (core_open): Remove obsolete comment.
2030
2031 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
2032
2033 PR cli/14772
2034 * c-typeprint.c (c_print_type): Don't print a space for vector
2035 types, this is handled within the suffix.
2036 (c_type_print_varspec_suffix): Add a space to vector suffix.
2037
2038 2012-10-26 Pedro Alves <palves@redhat.com>
2039
2040 * amd64-tdep.c (amd64_relocate_instruction): Use
2041 store_unsigned_integer instead of memcpy.
2042 * i386-tdep.c (i386_relocate_instruction): Ditto.
2043
2044 2012-10-26 Pedro Alves <palves@redhat.com>
2045
2046 * infrun.c (handle_inferior_event): Merge handling of
2047 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2048 switch case.
2049
2050 2012-10-26 Pedro Alves <palves@redhat.com>
2051
2052 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2053 Remove comment.
2054
2055 2012-10-26 Pedro Alves <palves@redhat.com>
2056
2057 * target.c (target_waitstatus_to_string): Handle
2058 TARGET_WAITKIND_VFORK_DONE.
2059
2060 2012-10-26 Pedro Alves <palves@redhat.com>
2061
2062 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2063 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2064
2065 2012-10-24 Tristan Gingold <gingold@adacore.com>
2066
2067 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2068 Add comments.
2069
2070 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2071
2072 * ravenscar-thread.c (ravenscar_wait): Only update the list
2073 of threads and inferior_ptid if the inferior is still alive.
2074
2075 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2076
2077 * ada-lang.c (is_known_support_routine): Use lbasename when
2078 matching the symtab's filename against
2079 known_runtime_file_name_patterns.
2080
2081 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2082
2083 * ada-lang.c (ada_same_array_size_p): New function.
2084 (ada_promote_array_of_integrals): New function.
2085 (coerce_for_assign): Add handling of arrays where the elements
2086 are integrals of a smaller size than the size of the target
2087 array element type.
2088
2089 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2090
2091 * doublest.c (convert_doublest_to_floatformat): Fix comparison
2092 against maximum exponent value.
2093
2094 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2095
2096 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2097 "unwind-seh.c".
2098
2099 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2100
2101 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2102 strip typedef layer when computing the fixed type's field type,
2103 only when computing its size.
2104
2105 2012-10-24 Mark Kettenis <kettenis@gnu.org>
2106
2107 PR gdb/12783
2108 * i386-tdep.c (i386_return_value): Handle complex double and long
2109 double.
2110
2111 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2112
2113 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2114 New local variable args_len.
2115 Quote the name of the executable when computing the command line.
2116
2117 2012-10-23 Mark Kettenis <kettenis@gnu.org>
2118
2119 PR gdb/12796
2120 PR gdb/12798
2121 PR gdb/12800
2122 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2123 AMD64_FTAG_REGNUM.
2124 * amd64-tdep.c (amd64_classify): Classify complex types.
2125 (amd64_return_value): Handle the COMPLEX_X87 class.
2126
2127 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2128
2129 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2130 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2131
2132 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2133
2134 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2135 function.
2136 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2137 to amd64_windows_auto_wide_charset.
2138
2139 2012-10-23 Yao Qi <yao@codesourcery.com>
2140
2141 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2142 * event-top.h: Remove its declaration.
2143 (async_request_quit): Call mark_async_signal_handler instead of
2144 mark_async_signal_handler_wrapper.
2145 (async_do_nothing, async_disconnect): Likewise.
2146 (async_stop_sig): Likewise.
2147 * remote.c (handle_remote_sigint): Likewise.
2148 (handle_remote_sigint_twice): Likewise.
2149
2150 2012-10-23 Yao Qi <yao@codesourcery.com>
2151
2152 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2153 with 'static struct async_signal_handler *'.
2154 (sighup_token, sigquit_token, sigstp_token): Likewise.
2155
2156 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2157
2158 * gdbarch.sh (function_list): Use 'pstring' when printing
2159 a variable which could return NULL.
2160 * gdbarch.c: Regenerate.
2161
2162 2012-10-10 Joel Brobecker <brobecker@adacore.com>
2163 Tom Tromey <tromey@redhat.com>
2164
2165 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2166 inneffective if condition by gdb assertion. Add function
2167 description comment.
2168
2169 2012-10-19 Joel Brobecker <brobecker@adacore.com>
2170
2171 * parser-defs.h (struct exp_descriptor): Document constraint
2172 on return value for "op_name" callbacks.
2173
2174 2012-10-18 Tom Tromey <tromey@redhat.com>
2175
2176 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2177 * symtab.c (iterate_over_some_symtabs): Constify.
2178 * source.h (symtab_to_fullname): Return 'const char *'.
2179 * source.c (symtab_to_fullname): Return 'const char *'.
2180 * python/py-symtab.c (stpy_fullname): Constify.
2181 * cli/cli-cmds.c (edit_command): Constify.
2182 * breakpoint.c (print_breakpoint_location)
2183 (update_static_tracepoint): Constify.
2184
2185 2012-10-18 Tom Tromey <tromey@redhat.com>
2186
2187 * breakpoint.c (compare_breakpoints): Fix comparison.
2188
2189 2012-10-18 Tom Tromey <tromey@redhat.com>
2190
2191 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2192 gdb_wchar_t to convert_between_encodings.
2193
2194 2012-10-17 Yao Qi <yao@codesourcery.com>
2195
2196 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2197 more parameter 'inferior'.
2198 * corefile.c (write_memory_with_notification): Caller update.
2199
2200 * mi/mi-cmd-var.c: Include "mi-main.h".
2201 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2202 to 1 and restore it later.
2203 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2204 and "data-write-memory-bytes.
2205 * mi/mi-interp.c: Include objfiles.h.
2206 (mi_interpreter_init): Call observer_attach_memory_changed.
2207 (mi_memory_changed): New.
2208 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2209 New field.
2210
2211 * NEWS: Mention new MI notification "memory-changed".
2212
2213 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2214
2215 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2216
2217 2012-10-15 Doug Evans <dje@google.com>
2218
2219 New option -nh: inhibit loading of ~/.gdbinit.
2220 * NEWS: Mention -nh.
2221 * main.c (captured_main): Recognize and process -nh.
2222 (print_gdb_help): Mention -nh.
2223 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2224
2225 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2226
2227 PR backtrace/14646
2228 PR gdb/14647
2229 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2230 pc_regnum_from_eax.
2231 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2232 nor pc_regnum_from_eax.
2233 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2234 nor pc_regnum_from_eax.
2235
2236 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2237
2238 Fix entry values resolving in inlined frames.
2239 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2240 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2241 entries of FRAME.
2242
2243 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2244
2245 * configure.ac: Build with -DMS_WIN64 if building with Python
2246 enabled using GCC on amd64-windows.
2247 * configure: Regenerate.
2248
2249 2012-10-15 Tom Tromey <tromey@redhat.com>
2250
2251 PR python/14635:
2252 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2253 to Py_None.
2254
2255 2012-10-15 Tom Tromey <tromey@redhat.com>
2256
2257 PR python/14634:
2258 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2259
2260 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2261
2262 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2263 reset thread numbering back to 1.
2264
2265 2012-10-11 Doug Evans <dje@google.com>
2266
2267 PR breakpoints/14643.
2268 * linespec.c (struct ls_parser): New member keyword_ok.
2269 (linespec_lexer_lex_string): Add comment.
2270 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2271 for one.
2272 (parse_linespec): Set keyword_ok.
2273
2274 2012-10-10 Doug Evans <dje@google.com>
2275
2276 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2277 "0x" prefix on address in log message.
2278
2279 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2280 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2281 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2282 (lookup_dwo_file): Add const to dwo_name parameter.
2283 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2284
2285 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2286
2287 Fix crash during stepping on ppc32.
2288 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2289 SYM.
2290
2291 2012-10-03 Doug Evans <dje@google.com>
2292
2293 PR symtab/14601
2294 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2295
2296 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2297
2298 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2299 output and use uint32_t not long to ensure 4 byte size.
2300
2301 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2302
2303 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2304 unref'ed it.
2305
2306 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2307
2308 * target.c (simple_search_memory): Include access length in
2309 warning message.
2310
2311 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2312 Edjunior Machado <emachado@linux.vnet.ibm.com>
2313
2314 PR gdb/13989
2315 * solib.c (solib_find): Prevent GDB from loading native libraries when
2316 debugging a cross-target corefile.
2317
2318 2012-09-28 selven <pcthegreat@gmail.com>
2319
2320 Make definition match declaration.
2321
2322 * regcache.c (regcache_register_status): Change return type to
2323 enum register_status.
2324
2325 2012-09-28 Yao Qi <yao@codesourcery.com>
2326
2327 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2328 write_memory_with_notification instead of write_memory.
2329 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2330 instead of target_write_memory.
2331
2332 2012-09-28 Yao Qi <yao@codesourcery.com>
2333
2334 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2335 when the length of content is not an even number.
2336
2337 2012-09-27 Tom Tromey <tromey@redhat.com>
2338
2339 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2340 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2341
2342 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2343
2344 * sol-thread.c (sol_thread_fetch_registers)
2345 (sol_thread_store_registers): Delete commented out code.
2346
2347 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2348
2349 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2350 Move these functions to sparc-sol-thread.c.
2351 * sparc-sol-thread.c: New file.
2352 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2353 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2354 configurations.
2355 * configure: Regenerate.
2356
2357 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2358
2359 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2360 Remove commented-out code.
2361
2362 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2363
2364 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2365 Enable this code for sparc hosts only.
2366
2367 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2368
2369 * procfs.h (procfs_find_LDT_entry): Add declaration.
2370 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2371 function procfs_find_LDT_entry.
2372
2373 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2374
2375 * procfs.c (proc_get_LDT_entry): Make static.
2376
2377 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2378
2379 * procfs.c (proc_find_memory_regions): Fix declaration.
2380
2381 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2382
2383 * amd64-tdep.c (amd64_return_value): Revert previous change
2384 that used TYPE_LENGTH directly.
2385 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2386 (bfin_store_return_value): Likewise.
2387 * cris-tdep.c (cris_store_return_value): Likewise.
2388 (cris_extract_return_value): Likewise.
2389 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2390 * hppa-tdep.c (hppa64_return_value): Likewise.
2391 * lm32-tdep.c (lm32_store_return_value): Likewise.
2392 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2393 * spu-tdep.c (spu_value_from_register): Likewise.
2394 * vax-tdep.c (vax_return_value): Likewise.
2395
2396 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2397
2398 * gdbtypes.c (lookup_array_range_type): Expand parameters
2399 LOW_BOUND and HIGH_BOUND to LONGEST.
2400 (lookup_string_range_type): Likewise.
2401 * gdbtypes.h (lookup_array_range_type): Likewise.
2402 (lookup_string_range_type): Likewise.
2403 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2404 Expand HIGHBOUND to ssize_t.
2405 (value_string): Likewise.
2406 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2407 (value_string): Likewise.
2408
2409 2012-09-27 Yao Qi <yao@codesourcery.com>
2410
2411 PR breakpoints/13898
2412 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2413 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2414 per breakpoint type.
2415
2416 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2417
2418 * procfs.c: Add gdb_bfd header.
2419 * rs6000-nat.c: Likewise.
2420 * solib-pa64.c: Likewise.
2421 * spu-linux-nat.c: Likewise.
2422 * windows-nat.c: Likewise.
2423
2424 2012-09-26 Tom Tromey <tromey@redhat.com>
2425
2426 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2427
2428 2012-09-26 Tom Tromey <tromey@redhat.com>
2429
2430 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2431 (read_common_block): Handle child DIEs with
2432 DW_AT_data_member_location.
2433 (new_symbol_full): Add special case for common blocks.
2434
2435 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2436 Tom Tromey <tromey@redhat.com>
2437
2438 * dwarf2read.c (read_common_block): Rewrite.
2439 (new_symbol_full): Handle DW_TAG_common_block.
2440 * f-lang.c (head_common_list, find_common_for_function):
2441 Remove.
2442 * f-lang.h (struct common_entry, struct saved_f77_common,
2443 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2444 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2445 BLANK_COMMON_NAME_LOCAL): Remove.
2446 (struct common_block): New.
2447 * f-valprint.c (list_all_visible_commons): Remove.
2448 (info_common_command_for_block): New function.
2449 (info_common_command): Use it.
2450 * stack.c (iterate_over_block_locals): Special case for
2451 COMMON_BLOCK_DOMAIN.
2452 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2453 constant.
2454 (struct general_symbol_info) <value.common_block>: New field.
2455 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2456
2457 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2458 Tom Tromey <tromey@redhat.com>
2459
2460 * f-lang.c (allocate_saved_bf_node,
2461 allocate_saved_function_node, allocate_saved_f77_common_node,
2462 allocate_common_entry_node, tail_common_list, current_common,
2463 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2464 tmp_bf_ptr, add_common_block, add_common_entry,
2465 find_first_common_named, patch_common_entries,
2466 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2467 global_remote_debug, get_bf_for_fcn, saved_function_list,
2468 saved_function_list_end, clear_function_list, struct saved_fcn,
2469 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2470 SAVED_BF, SAVED_BF_PTR): Remove.
2471 * f-lang.h (tail_common_list, current_common,
2472 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2473 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2474 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2475 real_main_c_value): Remove.
2476 * f-valprint.c (there_is_a_visible_common_named): Remove.
2477
2478 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2479
2480 * breakpoint.c (update_global_location_list): Ignore previous
2481 duplicate status of a breakpoint when starting a new scan for
2482 duplicate breakpoints.
2483
2484 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2485 PR breakpoints/14419
2486 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2487 support LLVM compiler.
2488
2489 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2490
2491 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2492 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2493 (bfin_store_return_value): Likewise.
2494 * cris-tdep.c (cris_store_return_value): Likewise.
2495 (cris_extract_return_value): Likewise.
2496 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2497 * hppa-tdep.c (hppa64_return_value): Likewise.
2498 * lm32-tdep.c (lm32_store_return_value): Likewise.
2499 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2500 * spu-tdep.c (spu_value_from_register): Likewise.
2501 * vax-tdep.c (vax_return_value): Likewise.
2502
2503 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2504
2505 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2506 parameter LEN to ssize_t.
2507
2508 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2509
2510 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2511 variable LEN.
2512 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2513 directly.
2514 (alpha_store_return_value): Likewise.
2515 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2516 (amd64_push_arguments): Likewise.
2517 * ax-gdb.c (gen_trace_static_fields): Likewise.
2518 (gen_traced_pop): Likewise.
2519 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2520 * breakpoint.c (update_watchpoint): Likewise.
2521 * findcmd.c (parse_find_args): Use local variable for type
2522 instead of length.
2523 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2524 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2525 (h8300_store_return_value): Likewise.
2526 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2527 Use i386_darwin_arg_type_alignment directly.
2528 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2529 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2530 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2531 (m68hc11_extract_return_value): Likewise.
2532 * mep-tdep.c (mep_push_dummy_call): Likewise.
2533 * printcmd.c (float_type_from_length): Likewise.
2534 * s390-tdep.c (s390_value_from_register): Likewise.
2535 * stack.c (read_frame_arg): Likewise.
2536 * tracepoint.c (encode_actions_1): Likewise.
2537 * valops.c (value_fetch_lazy): Use local variable for type
2538 instead of length. Use TYPE_LENGTH directly.
2539 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2540
2541 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2542
2543 * symtab.c (skip_prologue_sal): Fix typo in comment.
2544
2545 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2546
2547 * linespec.c (create_sals_line_offset): Fix typo in comment.
2548
2549 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2550
2551 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2552 use plongest to print the array size.
2553
2554 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2555
2556 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2557 * p-valprint.c (pascal_type_print_base): Likewise.
2558
2559 2012-09-22 Yao Qi <yao@codesourcery.com>
2560
2561 * remote.c (remote_get_trace_status): Remove setting default
2562 values of fields of 'ts'.
2563
2564 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2565
2566 Fix internal error on canonicalization of clang types.
2567 * cp-name-parser.y (operator): New comment at make_operator call for
2568 new, delete, new[] and delete[].
2569 (exp): Use "sizeof ". Add new comment at make_operator call.
2570
2571 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2572
2573 Fix disassemble without parameters in tailcall frame.
2574 * cli/cli-cmds.c (disassemble_current_function): Use
2575 get_frame_address_in_block.
2576
2577 2012-09-21 Tom Tromey <tromey@redhat.com>
2578
2579 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2580 TYPE_CODE_UNION>: Unify, removing a goto.
2581
2582 2012-09-21 Tom Tromey <tromey@redhat.com>
2583
2584 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2585
2586 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2587
2588 * findvar.c (read_frame_register_value): Mark the result value as
2589 optimized out if any of the input registers have been optimized out.
2590
2591 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2592
2593 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2594
2595 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2596
2597 * eval.c (evaluate_subexp_standard): Eliminate single-use
2598 variable LOWER.
2599
2600 2012-09-21 Yao Qi <yao@codesourcery.com>
2601
2602 * mi/mi-interp.c: Declare mi_record_changed.
2603 (mi_interpreter_init): Call observer_attach_record_changed.
2604 (mi_record_changed): New.
2605 * record.c (record_open): Call observer_notify_record_changed.
2606 (cmd_record_stop): Call observer_notify_record_changed.
2607 * NEWS: Mention it.
2608
2609 2012-09-20 Tom Tromey <tromey@redhat.com>
2610
2611 * NEWS: Update.
2612 * python/python.c (finalize_python): New function.
2613 (_initialize_python): Make a final cleanup.
2614
2615 2012-09-19 Doug Evans <dje@google.com>
2616
2617 * buildsym.h (param_symbols): Delete, unused.
2618 (context_stack): Delete member "params", unused.
2619 * buildsym.c (push_context): Update.
2620 * dwarf2read.c (read_func_scope): Update.
2621
2622 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2623
2624 * sh-tdep.c (sh_register_convert_to_virtual)
2625 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2626 all callers. Just do a memcpy if not the little-endian case.
2627
2628 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2629 set_gdbarch_double_format and set_gdbarch_long_double_format.
2630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2631 set_gdbarch_double_format.
2632 * sh-tdep.c (sh_gdbarch_init): Likewise.
2633
2634 * NEWS: Document the removal of SH's 'regs' command.
2635 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2636 command.
2637
2638 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2639
2640 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2641 `jump'.
2642
2643 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2644
2645 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2646 language when iterating over symbols.
2647
2648 2012-09-18 Yao Qi <yao@codesourcery.com>
2649
2650 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2651 (mi_interpreter_init): Call observer_attach_tsv_created and
2652 observer_attach_tsv_deleted.
2653 (mi_tsv_created, mi_tsv_deleted): New.
2654 * tracepoint.c (delete_trace_state_variable): Call
2655 observer_notify_tsv_deleted.
2656 (trace_variable_command): Call observer_notify_tsv_created.
2657 (delete_trace_variable_command): Call
2658 observer_notify_tsv_deleted.
2659 (create_tsv_from_upload): Call observer_notify_tsv_created.
2660 * NEWS: Mention it.
2661
2662 2012-09-18 Yao Qi <yao@codesourcery.com>
2663
2664 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2665 if traceframe changed.
2666 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2667 "trace-find".
2668 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2669 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2670 'traceframe_changed'.
2671 (mi_traceframe_changed): New.
2672 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2673 New field.
2674 * NEWS: Mention the new MI notification.
2675
2676 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2677
2678 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2679
2680 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2681
2682 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2683 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2684 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2685 Extend code also for PaX support. Convert all gdb_assert to warning
2686 calls.
2687
2688 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2689
2690 Implement auto-load user conveniences suggested by Doug Evans.
2691 * auto-load.c: Include top.h.
2692 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2693 (_initialize_auto_load): New variable scripts_directory_help. Mention
2694 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2695 scripts-directory. Document in online help one can use also files for
2696 set auto-load safe-path.
2697 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2698 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2699
2700 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2701
2702 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2703 of LEN.
2704
2705 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2706
2707 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2708 ELTLEN and use TYPE_LENGTH directly.
2709 (m2_val_print): Likewise.
2710 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2711 variable LEN and use TYPE_LENGTH directly.
2712 (m68k_svr4_store_return_value): Likewise.
2713 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2714 ARGLEN and use TYPE_LENGTH directly.
2715 (mips_o64_push_dummy_call): Likewise.
2716 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2717 variable LENGTH and use TYPE_LENGTH directly.
2718 (s390_function_arg_float): Likewise.
2719 (s390_function_arg_integer): Likewise.
2720 (s390_push_dummy_call): Likewise.
2721 (s390_return_value_convention): Likewise.
2722 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2723 TYPE_LENGTH directly.
2724
2725 2012-09-17 Yao Qi <yao@codesourcery.com>
2726
2727 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2728 Update comment to add_setshow_integer_cmd.
2729 * cli/cli-setshow.c (do_set_command): Handle case
2730 'var_zuinteger_unlimited'.
2731 (do_show_command): Likewise.
2732 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2733 for command 'remotetimeout'.
2734 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2735 to var_integer.
2736 * source.c (_initialize_source): Call
2737 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2738
2739 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2740
2741 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2742 variable LEN.
2743
2744 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2745
2746 PR 14119
2747 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2748 (frame_pop): Drop also TAILCALL_FRAME frames.
2749 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2750
2751 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2752 Pedro Alves <palves@redhat.com>
2753
2754 PR 14548
2755 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2756 function start if we are already at function start. Both for
2757 reverse-next and for reverse-step into function without line number
2758 info.
2759
2760 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2761
2762 Code cleanup - rename 'inline' depth to 'artificial' depth.
2763 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2764 frame_id_artificial_p, extend the comment.
2765 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2766 * frame.c (fprint_frame_id): Rename at a user, change debug output
2767 text to "artificial=".
2768 (skip_inlined_frames): Rename to ...
2769 (skip_artificial_frames): ... here. Extend the comment.
2770 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2771 (frame_id_inlined_p): Rename to ...
2772 (frame_id_artificial_p): ... here. Rename at a user.
2773 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2774 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2775 at a user.
2776 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2777 Extend the comment.
2778 (frame_id_inlined_p): Rename to ...
2779 (frame_id_artificial_p): ... here.
2780 * inline-frame.c (inline_frame_this_id): Rename at a user.
2781
2782 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2783
2784 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2785 vector variables using vector_size syntax rather than array
2786 syntax.
2787
2788 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2789
2790 * valarith.c (value_concat): Replace unsafe ALLOCA with
2791 XMALLOC/XFREE.
2792
2793 2012-09-14 Pedro Alves <palves@redhat.com>
2794
2795 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2796
2797 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2798
2799 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2800 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2801 data-directory as appropriate.
2802
2803 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2804
2805 * printcmd.c (ui_printf): Eliminate single-use variable
2806 PARAM_LEN.
2807
2808 2012-09-14 Yao Qi <yao@codesourcery.com>
2809 Pedro Alves <palves@redhat.com>
2810
2811 * valops.c (value_assign): Move observer_notify_target_changed
2812 below to replace reinit_frame_cache.
2813
2814 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2815
2816 Refactor Python "gdb" module into a proper Python package, by
2817 introducing a new "_gdb" module for code implemented in C, and
2818 using reload/__import__ instead of exec.
2819 * python/lib/gdb/__init__.py: Import * from _gdb.
2820 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2821 prompt_hook, sys.argv): Moved from finish_python_initialization.
2822 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2823 (packages, auto_load_packages): New list and function replacing
2824 module_dict and auto-loading code, using __file__ instead of
2825 gdb.PYTHONDIR and reload/__import__ instead of exec.
2826 (GdbSetPythonDirectory): Replacing function of the same name
2827 from finish_python_initialization, using reload/__import__ instead
2828 of exec, as well as call auto_load_packages.
2829 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2830 gdb_python_module and not gdb_module.
2831 * python/python-internal.h (gdb_python_module): Declare.
2832 * python/python.c (gdb_python_module): New global.
2833 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2834 (_initialize_python): Rename gdb module to _gdb.
2835 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2836 (finish_python_initialization): Move Python code to
2837 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2838 __main__.
2839
2840 2012-09-13 Pedro Alves <palves@redhat.com>
2841
2842 * Makefile.in (COMMON_OBS): Add registry.o.
2843 * registry.c: New file.
2844 * registry.h (struct registry_container): Declare.
2845 (registry_data_callback): New typedef.
2846 (struct registry_data, struct registry_data_registration, struct
2847 registry_data_registry): New type.
2848 (register_data_with_cleanup, registry_alloc_data)
2849 (registry_callback_adaptor, registry_clear_data)
2850 (registry_container_free_data, registry_set_data, registry_data):
2851 Declare.
2852 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2853 the new common structures and functions.
2854 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2855 callback typedefs.
2856
2857 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2858
2859 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2860 there is an error inserting hardware breakpoints and use the
2861 error message from the target.
2862
2863 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2864 Catch this exception and print the error message contained within.
2865 Do not print the default hardware error breakpoint message in this
2866 case.
2867
2868 2012-09-12 Doug Evans <dje@google.com>
2869
2870 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2871 cu == NULL.
2872
2873 2012-09-11 Doug Evans <dje@google.com>
2874
2875 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2876 .gdb_index symbol attributes if there are none.
2877
2878 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2879
2880 * symtab.h (struct minimal_symbol) [has_size]: New field.
2881 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2882 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2883 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2884 minimal symbols if the symbol's size is actually known.
2885 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2886 of msymbol's size field. Add comment.
2887 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2888 SET_MSYMBOL_SIZE to set the minimal symbol size.
2889
2890 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2891
2892 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2893 minimal_symbol struct object, rather than setting some of its
2894 fields one by one.
2895
2896 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2897
2898 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2899 passed_a_ptr flag when displaying typedef types.
2900
2901 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2902
2903 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2904 the optimized_out flag is preserved.
2905
2906 2012-09-10 Anthony Green <green@moxielogic.com>
2907
2908 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2909 prologue changes in GCC.
2910
2911 2012-09-10 Keith Seitz <keiths@redhat.com>
2912
2913 PR gdb/13483
2914 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2915 (BOOL_CONVERSION_BADNESS): ... this.
2916 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2917 (rank_one_type): Allow all boolean conversions
2918 permitted by the standard.
2919
2920 2012-09-06 Tom Tromey <tromey@redhat.com>
2921
2922 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2923 Don't decref py_objfile.
2924
2925 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2926
2927 Do not enable -lmcheck by default when Python is enabled with
2928 threading support.
2929 * configure.ac: (python_has_threads) New variable, by testing
2930 if WITH_THREAD is defined in Python.h.
2931 Move --enable-lmcheck after --with-python.
2932 Do not enable -lmcheck by default if python_has_threads=yes.
2933 Warn if --enable-lmcheck and python_has_threads=yes.
2934 * configure: Regenerate.
2935
2936 2012-08-31 Yao Qi <yao@codesourcery.com>
2937
2938 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2939 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2940 Update some commands.
2941 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2942 * mi/mi-main.c (mi_cmd_execute): Set
2943 '*parse->cmd->suppress_notification' to 1.
2944
2945 2012-08-31 Yao Qi <yao@codesourcery.com>
2946
2947 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2948
2949 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2950
2951 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2952
2953 2012-08-29 Doug Evans <dje@google.com>
2954
2955 * main.c (print_gdb_help): Remove reference to
2956 --use-deprecated-index-sections.
2957
2958 2012-08-28 Yao Qi <yao@codesourcery.com>
2959
2960 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2961 (init_cmds): Call add_setshow_uinteger_cmd for command
2962 'max-user-call-depth'.
2963 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2964 declaration of 'max_user_call_depth'.
2965 * frame.c (backtrace_limit): Add 'unsigned'.
2966 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2967 'limit'.
2968 * remote.c (remoteaddresssize): Add 'unsigned'.
2969 (remote_address_masked): Change local var 'address_size' to
2970 'unsigned'.
2971 (_initialize_remote): Call add_setshow_uinteger_cmd for
2972 'remoteaddresssize'.
2973 * top.c (history_size): Add 'unsigned'.
2974 (show_commands): Change local variables to 'unsigned'.
2975 (set_history_size_command): Don't check history_size is negative.
2976 Adjust the condition to call unstifle_history and set history_size
2977 to UNIT_MAX.
2978
2979 2012-08-28 Pedro Alves <palves@redhat.com>
2980
2981 PR gdb/14428
2982
2983 * infcmd.c (default_print_one_register_info): New, factored out
2984 from default_print_registers_info.
2985 (default_print_registers_info): Use it. Mark value unavailable if
2986 necessary.
2987 (registers_info): Print user registers with
2988 default_print_one_register_info.
2989
2990 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2991
2992 PR tui/14486
2993 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2994 is not NULL before referencing it.
2995
2996 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2997
2998 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2999 variable pc. Call find_pc_line instead of find_pc_overlay, restore
3000 original PC for it.
3001
3002 2012-08-27 Eli Zaretskii <eliz@gnu.org>
3003 Jan Kratochvil <jan.kratochvil@redhat.com>
3004
3005 * auto-load.c (auto_load_objfile_script): Rename to ...
3006 (auto_load_objfile_script_1): ... here, change variable realname to
3007 parameter realname, document it, add return value, add variable retval.
3008 (auto_load_objfile_script): New function.
3009
3010 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3011
3012 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3013 followed by a whitespace.
3014
3015 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3016
3017 PR gdb/14494.
3018 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3019 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3020 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3021 here.
3022
3023 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
3024
3025 * memattr.c (create_mem_region): Fix memory region overlapping
3026 checking.
3027
3028 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
3029
3030 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3031 with xmalloc/cleanup.
3032 * mt-tdep.c (mt_push_dummy_call): Likewise.
3033 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3034 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3035
3036 2012-08-24 Yao Qi <yao@codesourcery.com>
3037
3038 * jv-exp.y (push_expression_name): Add "." at the end of error
3039 message.
3040
3041 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
3042
3043 Document how to return from "python-interactive" to GDB.
3044 * python/python.c (_initialize_python): Update documentation.
3045
3046 2012-08-23 Pedro Alves <palves@redhat.com>
3047
3048 * infrun.c (_initialize_infrun) <handle command help text>:
3049 Mention that multiple signals are supported.
3050
3051 2012-08-23 Pedro Alves <palves@redhat.com>
3052
3053 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3054 string.
3055
3056 2012-08-23 Yao Qi <yao@codesourcery.com>
3057
3058 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3059 (tfind_1): Don't call registers_changed, set_traceframe_num,
3060 and clear_traceframe_info.
3061 Call set_current_traceframe.
3062 (set_current_traceframe): call set_traceframe_num.
3063
3064 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
3065
3066 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3067 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3068
3069 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3070
3071 Enable readline in Python in a GDB-specific way and block the
3072 standard Python readline module to prevent conflicts with GDB.
3073 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3074 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3075 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3076 * python/py-gdb-readline.c: New file.
3077 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3078 prototype.
3079 * python/python.c (_initialize_python): Call
3080 gdbpy_initialize_gdb_readline.
3081
3082 2012-08-22 Keith Seitz <keiths@redhat.com>
3083
3084 * defs.h: Include build-gnulib/config.h
3085
3086 2012-08-22 Joseph Myers <joseph@codesourcery.com>
3087
3088 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3089 and blx pc.
3090
3091 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3092
3093 Add a new "python-interactive" command that starts a standard
3094 Python interactive prompt with "pi" as alias, and add "py" as
3095 an alias to "python".
3096 * NEWS: Mention the new commands.
3097 * python/python.c (eval_python_command): New function.
3098 (python_interactive_command): For "python-interactive" with
3099 arguments, call eval_python_command. For "python-interactive"
3100 without arguments, call PyRun_InteractiveLoop.
3101 (_initialize_python): Add "python-interactive" command with
3102 "pi" as alias, and add "py" as an alias to "python".
3103
3104 2012-08-22 Tom Tromey <tromey@redhat.com>
3105
3106 * defs.h (quit_flag): Don't declare.
3107 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3108 (QUIT): Use new functions.
3109 * event-top.c (command_handler): Use clear_quit_flag.
3110 (handle_sigint): Use set_quit_flag.
3111 (async_request_quit): Use check_quit_flag. Don't check
3112 immediate_quit.
3113 * exceptions.c (throw_exception): Use clear_quit_flag.
3114 * main.c (captured_main): Use clear_quit_flag.
3115 * python/python.c (clear_quit_flag, set_quit_flag)
3116 (check_quit_flag): New functions.
3117 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3118 clear_quit_flag.
3119 * remote.c (remote_wait_as): Use check_quit_flag,
3120 clear_quit_flag.
3121 (remote_start_remote): Call QUIT.
3122 * symfile.c (load_progress): Use check_quit_flag.
3123 * top.c (command_loop): Use clear_quit_flag.
3124 (command_line_input): Call QUIT.
3125 * utils.c (quit_flag): Conditionally define.
3126 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3127 functions.
3128 (prompt_for_continue): Call QUIT. Use quit, not
3129 async_request_quit.
3130 * remote-mips.c (mips_expect_timeout): Call QUIT.
3131 * monitor.c (monitor_expect): Call QUIT.
3132
3133 2012-08-22 Tom Tromey <tromey@redhat.com>
3134
3135 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3136 (async_init_signals): Update.
3137 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3138 (SIGWINCH_HANDLER_BODY): Remove.
3139
3140 2012-08-22 Tom Tromey <tromey@redhat.com>
3141
3142 * jit.c (jit_object_close_impl): Don't malloc the objfile
3143 name.
3144 * objfiles.c (allocate_objfile): Don't malloc the objfile
3145 name.
3146 (free_objfile): Don't free the objfile name.
3147 * objfiles.h (struct objfile) <name>: Update comment.
3148 * symfile.c (reread_symbols): Fix reference counting. Don't
3149 malloc objfile name.
3150
3151 2012-08-22 Tom Tromey <tromey@redhat.com>
3152
3153 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3154 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3155 (symfile_bfd_open): Likewise.
3156 (generic_load): Likewise.
3157 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3158 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3159 gdb_bfd_open.
3160 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3161 Use gdb_bfd_open.
3162 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3163 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3164 (pmon_load_fast): Likewise.
3165 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3166 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3167 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3168 (macho_check_dsym): Likewise.
3169 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3170 (m32r_upload_command): Likewise.
3171 * gdb_bfd.h (gdb_bfd_cache): Declare.
3172 * gdb_bfd.c (struct gdb_bfd_data): New.
3173 (gdb_bfd_cache): New global.
3174 (struct gdb_bfd_cache_search): New.
3175 (hash_bfd): New function.
3176 (eq_bfd): Likewise.
3177 (gdb_bfd_open): Likewise.
3178 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3179 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3180 gdb_bfd_data.
3181 * exec.c (exec_file_attach): Use gdb_bfd_open.
3182 * dsrec.c (load_srec): Use gdb_bfd_open.
3183
3184 2012-08-22 Tom Tromey <tromey@redhat.com>
3185
3186 * dwarf2read.c (macro_start_file): Update.
3187 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3188 (free_objfile_per_bfd_storage): Destroy macro_cache.
3189 (allocate_objfile, free_objfile): Update.
3190 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3191 New field.
3192 (struct objfile) <macro_cache>: Remove.
3193 * symfile.c (reread_symbols): Update.
3194 * symmisc.c (print_symbol_bcache_statistics): Update.
3195 (print_objfile_statistics): Update.
3196
3197 2012-08-22 Tom Tromey <tromey@redhat.com>
3198
3199 * elfread.c (elf_symtab_read): Update.
3200 * objfiles.c (objfiles_bfd_data): New global.
3201 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3202 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3203 (allocate_objfile, free_objfile): Update.
3204 (_initialize_objfiles): Initialize objfiles_bfd_data.
3205 * objfiles.h (struct objfile_per_bfd_storage): New.
3206 (struct objfile) <per_bfd>: New field.
3207 <filename_cache>: Remove.
3208 (set_objfile_per_bfd): Declare.
3209 * symfile.c (reread_symbols): Update. Call
3210 set_objfile_per_bfd.
3211 (allocate_symtab): Update.
3212 * symmisc.c (print_symbol_bcache_statistics): Update.
3213 (print_objfile_statistics): Print the size of the BFD obstack.
3214
3215 2012-08-22 Tom Tromey <tromey@redhat.com>
3216
3217 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3218 * gdb_bfd.c: Use DEFINE_REGISTRY.
3219 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3220 (gdb_bfd_ref): Call bfd_alloc_data.
3221 (gdb_bfd_unref): Call bfd_free_data.
3222
3223 2012-08-22 Tom Tromey <tromey@redhat.com>
3224
3225 * registry.h (struct registry_fields): New.
3226 (REGISTRY_FIELDS): Redefine.
3227 (REGISTRY_ACCESS_FIELD): New macro.
3228 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3229 functions.
3230
3231 2012-08-22 Tom Tromey <tromey@redhat.com>
3232
3233 * auto-load.c (_initialize_auto_load): Update.
3234 * solib-svr4.c (_initialize_svr4_solib): Update
3235 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3236 * solib-darwin.c (_initialize_darwin_solib): Update.
3237 * registry.h: New file.
3238 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3239 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3240 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3241 (register_program_space_data_with_cleanup)
3242 (register_program_space_data, program_space_alloc_data)
3243 (clear_program_space_data, set_program_space_data)
3244 (program_space_data): Don't declare.
3245 * progspace.c: Use DEFINE_REGISTRY.
3246 (struct program_space_data, struct
3247 program_space_data_registration, struct
3248 program_space_data_registry, program_space_data_registry)
3249 (register_program_space_data_with_cleanup)
3250 (register_program_space_data, program_space_alloc_data)
3251 (program_space_free_data, clear_program_space_data)
3252 (set_program_space_data, program_space_data): Remove.
3253 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3254 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3255 (register_objfile_data_with_cleanup, register_objfile_data)
3256 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3257 declare.
3258 * objfiles.c: Use DEFINE_REGISTRY.
3259 (struct objfile_data, struct objfile_data_registration, struct
3260 objfile_data_registry, objfile_data_registry)
3261 (register_objfile_data_with_cleanup, register_objfile_data)
3262 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3263 (set_objfile_data, objfile_data): Remove.
3264 (_initialize_objfiles): Update.
3265 * jit.c (_initialize_jit): Update.
3266 * inflow.c (_initialize_inflow): Update.
3267 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3268 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3269 (register_inferior_data_with_cleanup, register_inferior_data)
3270 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3271 declare.
3272 * inferior.c: Use DEFINE_REGISTRY.
3273 (struct inferior_data, struct inferior_data_registration, struct
3274 inferior_data_registry, inferior_data_registry)
3275 (register_inferior_data_with_cleanup, register_inferior_data)
3276 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3277 (set_inferior_data, inferior_data): Remove.
3278 * auxv.c (_initialize_auxv): Update.
3279 * ada-lang.c (_initialize_ada_language): Update.
3280 * breakpoint.c (_initialize_breakpoint): Update.
3281 * i386-nat.c (i386_use_watchpoints): Update.
3282
3283 2012-08-22 Tom Tromey <tromey@redhat.com>
3284
3285 * exec.c (exec_close, exec_file_attach): Update.
3286 (add_to_section_table): Initialize 'key' field.
3287 (add_target_sections, remove_target_sections): Add 'key' argument.
3288 * exec.h (add_target_sections, remove_target_sections): Add
3289 'key' argument.
3290 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3291 (reload_shared_libraries_1): Update.
3292 * target.h (struct target_section) <key>: New field.
3293
3294 2012-08-22 Tom Tromey <tromey@redhat.com>
3295
3296 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3297
3298 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3299
3300 * symfile.c (allocate_symtab): Use host_address_to_string
3301 function instead of cast of pointer to long which is not
3302 compatible with x86_64-w64-mingw32 build.
3303
3304 2012-08-19 Andrew Pinski <apinski@cavium.com>
3305
3306 * mips-tdep.c (is_octeon): New function.
3307 (is_octeon_bbit_op): New function.
3308 (mips32_next_pc): Handle Octeon's bbit instructions.
3309 (mips32_instruction_has_delay_slot): Likewise.
3310
3311 2012-08-19 Andrew Pinski <apinski@cavium.com>
3312
3313 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3314 before the function.
3315
3316 2012-08-19 Andrew Pinski <apinski@cavium.com>
3317
3318 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3319
3320 2012-08-19 Keith Seitz <keiths@redhat.com>
3321
3322 PR c++/14365
3323 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3324 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3325
3326 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3327
3328 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3329 The typo broke "make TAGS".
3330
3331 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3332
3333 GDB 7.5 released.
3334
3335 2012-08-17 Keith Seitz <keiths@redhat.com>
3336
3337 PR c++/13356
3338 * gdbtypes.c (strict_type_checking): New variable.
3339 (show_strict_type_checking): New function.
3340 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3341 if strict type checking is disabled.
3342 (_initialize_gdbtypes): Add "check type" subcommand.
3343 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3344
3345 2012-08-17 Keith Seitz <keiths@redhat.com>
3346
3347 * language.h (type_mode): Remove.
3348 (type_check): Remove.
3349 (struct language_defn): Remove la_type_check.
3350 (STRICT_TYPE): Remove unused macro.
3351 (type_error): Remove.
3352 * language.c (set_type_range_case): Renamed to ...
3353 (set_range_case): ... this. Update all callers.
3354 Remove type_mode/type_check.
3355 (type_mode): Remove.
3356 (type_check): Remove.
3357 (show_type_command): Remove.
3358 (set_type_command): Remove.
3359 (language_info): Remove type checking output.
3360 (type_error): Remove unused function.
3361 (range_error): Update comment.
3362 (unknown_language_defn): Remove la_type_check.
3363 (auto_language_defn): Likewise.
3364 (local_language_defn): Likewise.
3365 (_initialize_language): Remove "check type" subcommand.
3366 * ada-lang.c (ada_language_defn): Remove la_type_check.
3367 * c-lang.c (c_language_defn): Likewise.
3368 (cplus_language_defn): Likewise.
3369 (asm_language_defn): Likewise.
3370 (minimal_language_defn): Likewise.
3371 * d-lang.c (d_language_defn): Likewise.
3372 * f-lang.c (f_language_defn): Likewise.
3373 * go-lang.c (go_language_defn): Likewise.
3374 * jv-lang.c (java_language_defn): Likewise.
3375 * m2-lang.c (m2_language_defn): Likewise.
3376 * objc-lang.c (objc_language_defn): Likewise.
3377 * opencl-lang.c (opencl_language_defn): Likewise.
3378 * p-lang.c (pascal_language_defn): Likewise.
3379
3380 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3381
3382 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3383
3384 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3385
3386 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3387 New function.
3388 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3389 using the regache. Use ia64_hpux_get_register_from_save_state_t
3390 to access the bsp and bspstore registers if not.
3391
3392 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3393
3394 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3395 * breakpoint.c (detach_breakpoints): Change pid parameter into
3396 a ptid. Adjust code accordingly.
3397 * infrun.c (handle_inferior_event): Delete variable child_pid.
3398 Update call to detach_breakpoints to pass the child ptid for
3399 fork events.
3400 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3401 assert that inferior_ptid's lwp is zero.
3402 (linux_handle_extended_wait): Update call to detach_breakpoints.
3403 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3404 detach_breakpoints.
3405
3406 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3407
3408 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3409 parent, only call detach_breakpoints if tts.tts_event ==
3410 TTEVT_VFORK.
3411
3412 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3413
3414 * dwarf2-frame.c (dwarf2_frame_cache): Use
3415 get_frame_address_in_block instead of get_frame_pc as
3416 the bound for executing the frame's FDE.
3417
3418 2012-08-16 Yao Qi <yao@codesourcery.com>
3419
3420 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3421 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3422 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3423 (c_type_print_varspec_suffix): Likewise.
3424 * eval.c (evaluate_subexp_standard): Likewise.
3425 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3426 (f_type_print_varspec_suffix): Likewise.
3427 * gdbtypes.c (is_scalar_type): Likewise.
3428 (recursive_dump_type): Likewise.
3429 * infcall.c (value_arg_coerce): Likewise.
3430 * m2-valprint.c (m2_val_print): Likewise.
3431 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3432 (pascal_type_print_varspec_suffix): Likewise.
3433 (pascal_type_print_base): Likewise.
3434 * p-valprint.c (pascal_val_print): Likewise.
3435 (pascal_val_print): Likewise.
3436 * valops.c (value_slice): Likewise.
3437 * valprint.c (scalar_type_p): Likewise.
3438 * valarith.c (value_bitstring_subscript): Remove.
3439 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3440 Remove comment on TYPE_CODE_BITSTRING.
3441
3442 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3443 TYPE_CODE_BITSTRING.
3444
3445 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3446 slot 0.
3447
3448 2012-08-16 Yao Qi <yao@codesourcery.com>
3449
3450 * tracepoint.c (trace_find_none_command): Remove.
3451 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3452
3453 2012-08-16 Yao Qi <yao@codesourcery.com>
3454
3455 * remote.c (handle_notification): Remove parameter 'length'.
3456 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3457
3458 2012-08-15 Keith Seitz <keiths@redhat.com>
3459
3460 * gdbtypes.c (opaque_type_resolution): Make static.
3461 Add missing comment.
3462 (overload_debug): Add missing comment.
3463 (show_opaque_type_resolution): Likewise.
3464 (show_overload_debug): Likewise.
3465 (print_bit_vector): Remove unnecessary forward declaration.
3466 (print_arg_types): Likewise.
3467 (dump_fn_fieldlists): Likewise.
3468 (print_cplus_stuff): Likewise.
3469
3470 2012-08-15 Tom Tromey <tromey@redhat.com>
3471
3472 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3473 (gdb_bfd_ref): Initialize new field.
3474 (gdb_bfd_unref): Unref the archive BFD.
3475 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3476 parent archive.
3477
3478 2012-08-15 Tom Tromey <tromey@redhat.com>
3479
3480 PR python/14387:
3481 * python/py-bpevent.c (create_breakpoint_event_object): Update
3482 comment.
3483 * python/py-event.c (evpy_add_attribute): Update comment.
3484 * python/py-exitedevent.c (create_exited_event_object): Fix
3485 reference counting and error handling.
3486 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3487 Fix reference counting.
3488 * python/py-signalevent.c (create_signal_event_object): Fix
3489 reference counting and error handling.
3490 * python/py-stopevent.c (emit_stop_event): Fix reference
3491 counting.
3492 * python/py-threadevent.c (get_event_thread): Return a
3493 borrowed reference.
3494 * python/py-type.c (convert_field): Fix reference counting.
3495
3496 2012-08-15 Tom Tromey <tromey@redhat.com>
3497
3498 * dwarf2read.c (dwarf_decode_macro_bytes)
3499 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3500 as hash key.
3501
3502 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3503
3504 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3505 stepi, nexti, finish, next, step, jump, and continue commands.
3506 * infrun.c (_initialize_infrun): Update help text for the handle
3507 command.
3508
3509 2012-08-14 Doug Evans <dje@google.com>
3510
3511 * gdbtypes.c (struct extra): Delete, unused.
3512
3513 * gdbtypes.c: Whitespace cleanup.
3514 (address_space_name_to_int): Remove "extern" from definition.
3515 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3516
3517 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3518 TYPE_POINTER_TYPE (type).
3519
3520 2012-08-14 Gary Benson <gbenson@redhat.com>
3521
3522 * solib-svr4.c (svr4_free_library_list): Use free_so.
3523
3524 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3525
3526 * .gitignore: Add go-exp.c.
3527
3528 2012-08-13 Doug Evans <dje@google.com>
3529
3530 * value.c (show_convenience): Tweak comment.
3531 (_initialize_values): Mention convenience functions in the help text
3532 for "show convenience".
3533
3534 2012-08-13 Yao Qi <yao@codesourcery.com>
3535
3536 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3537 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3538 TERNOP_SLICE_COUNT.
3539 * eval.c (evaluate_subexp_standard): Likewise.
3540 * expprint.c (print_subexp_standard): Likewise.
3541 (dump_subexp_body_standard): Likewise.
3542 * parse.c (operator_length_standard): Likewise.
3543
3544 2012-08-13 Yao Qi <yao@codesourcery.com>
3545
3546 * std-operator.def: Remove OP_BITSTRING.
3547 * breakpoint.c (watchpoint_exp_is_const): Update.
3548 * eval.c (evaluate_subexp_standard): Remove handling to
3549 OP_BITSTRING.
3550 * expprint.c (print_subexp_standard): Likewise.
3551 (dump_subexp_body_standard): Likewise.
3552 * parse.c (operator_length_standard): Likewise.
3553 * valops.c (value_bitstring): Remove.
3554 * value.h: Remove the declaration of 'value_bitstring'.
3555
3556 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3557
3558 * linespec.c (find_methods): Remove unused variables `i1' and
3559 `name_len'.
3560 (decode_line_full): Likewise for `arg_start'.
3561
3562 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3563
3564 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3565 (zlib_decompress_section): Likewise for `section_data'.
3566 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3567
3568 2012-08-10 Doug Evans <dje@google.com>
3569
3570 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3571 * NEWS: Document them.
3572 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3573 function/strfns.py.
3574 * python/py-type.c (typy_array_1): New function.
3575 (typy_array): Call it.
3576 (typy_vector): New function.
3577 (type_object_methods): Add "vector".
3578 * python/lib/gdb/function/__init__.py: New file.
3579 * python/lib/gdb/function/strfns.py: New file.
3580
3581 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3582
3583 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3584 for TYPE_FIELD_BITPOS.
3585 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3586
3587 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3588
3589 PR cli/10436:
3590 * common/vec.h (VEC_merge): Define.
3591 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3592 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3593 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3594 * completer.c: Include gdb_signals.h.
3595 (signal_completer): Define.
3596 * completer.h (signal_completer): Add prototype.
3597 * infcmd.c (_initialize_infcmd): Assign the command
3598 completer for "signal" to handle_completer.
3599 * infrun.c: Include completer.h.
3600 (handle_completer): Define.
3601 (_initialize_infrun): Declare a new local variable c. Store the
3602 result of add_com("handle") to it. Assign the command
3603 completer for "handle" to handle_completer.
3604
3605 2012-08-09 Yao Qi <yao@codesourcery.com>
3606
3607 * cli/cli-decode.c (set_cmd_prefix): New.
3608 (lookup_cmd_for_prefixlist): New.
3609 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3610 of each cmd_list_element in *prefixlist.
3611 (add_setshow_cmd_full): set_cmd_prefix.
3612 (add_alias_cmd): Likewise.
3613 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3614 Declare 'auto_boolean_enums'.
3615 * cli/cli-setshow.c: Include "observer.h".
3616 (notify_command_param_changed_p): New.
3617 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3618 Remove 'static'.
3619 (do_setshow_command): Split it to ...
3620 (do_set_command, do_show_command): ... them. New.
3621 (do_set_command): Call observer_notify_command_param_changed if
3622 notify_command_param_changed_p returns true.
3623 (cmd_show_list): Caller update.
3624 * auto-load.c (set_auto_load_cmd): Likewise.
3625 * remote.c (show_remote_cmd): Likewise.
3626 * cli/cli-setshow.h: Update declarations.
3627 * top.c (execute_command): Call do_set_command and do_show_command.
3628
3629 * NEWS: Mention new MI notification.
3630 * mi/mi-interp.c: Declare mi_command_param_changed.
3631 (mi_interpreter_init): Attach mi_command_param_changed to
3632 observer command_param_changed.
3633 (mi_command_param_changed): New.
3634 Remove mi_suppress_breakpoint_notifications.
3635 Define global variable mi_suppress_notification.
3636 (mi_breakpoint_created): Update.
3637 (mi_breakpoint_deleted): Likewise.
3638 (mi_breakpoint_modified): Likewise.
3639 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3640 'gdb-set' and set mi_suppress_notification.
3641 * mi/mi-main.h: (mi_suppress_notification): New struct.
3642
3643 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3644 Jan Kratochvil <jan.kratochvil@redhat.com>
3645
3646 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3647
3648 2012-08-09 Yao Qi <yao@codesourcery.com>
3649
3650 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3651 (skiplist): Move it to skip.c.
3652 (init_cmd_lists): Remove code setting enablebreaklist and
3653 skiplist to NULL.
3654 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3655 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3656 skiplist.
3657 * gdbcmd.h: Likewise.
3658 * skip.c (_initialize_step_skip): Move 'skiplist' from
3659 cli/cli-cmds.c.
3660
3661 2012-08-09 Yao Qi <yao@codesourcery.com>
3662
3663 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3664 * gnu-nat.c, symfile.c: Likewise.
3665
3666 2012-08-08 Aaron Gamble <agamble@google.com>
3667
3668 * utils.c (prompt_for_continue_wait_time): New static global.
3669 (make_command_stats_cleanup): Initialize it.
3670 (report_command_stats): Subtract time waiting for user.
3671 (prompt_for_continue): Track time waiting for user.
3672 (defaulted_query): Track time waiting for user.
3673
3674 2012-08-08 Doug Evans <dje@google.com>
3675
3676 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3677 UNOP_MEMVAL_TYPE.
3678 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3679 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3680 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3681 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3682 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3683 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3684 elt.
3685 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3686 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3687 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3688 (dump_prefix_expression): Handle OP_TYPE.
3689
3690 2012-08-08 Keith Seitz <keiths@redhat.com>
3691
3692 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3693 addr_start.
3694
3695 2012-08-08 Doug Evans <dje@google.com>
3696
3697 * linux-thread-db.c: #include "gdb_vecs.h".
3698 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3699 updated.
3700 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3701 (thread_db_load_search): Use a vector to iterate over path elements.
3702 Handle text appearing after "$pdir".
3703
3704 * gdb_string.h: Moved to ...
3705 * common/gdb_string.h: ... here.
3706 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3707 gdb_string.h and gdb_assert.h.
3708
3709 2012-08-08 Yao Qi <yao@codesourcery.com>
3710
3711 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3712 (tic6x_value_to_register): Likewise.
3713 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3714 and set_gdbarch_value_to_register.
3715
3716 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 Jean-Marc Saffroy <saffroy@gmail.com>
3718
3719 PR 11804
3720 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3721 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3722 * gcore.c (gcore_create_callback): New function comment. Add modified
3723 parameter. Only write modified regions. Set SEC_READONLY exactly
3724 according to MODIFIED.
3725 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3726 the passed modified value to FUNC.
3727 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3728 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3729 first. New variables modified and has_anonymous. Parse the lines of
3730 smaps file. Add the passed MODIFIED value to FUNC.
3731 * procfs.c (find_memory_regions_callback): Add the passed modified
3732 value.
3733
3734 2012-08-06 Tom Tromey <tromey@redhat.com>
3735
3736 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3737 (dwarf2_frame_cache): Use it.
3738 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3739 cache initialization constraint.
3740
3741 2012-08-06 Tom Tromey <tromey@redhat.com>
3742
3743 PR python/14386:
3744 * varobj.c (update_dynamic_varobj_children): Don't call
3745 PyIter_Check.
3746
3747 2012-08-06 Tom Tromey <tromey@redhat.com>
3748
3749 PR cli/14392:
3750 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3751
3752 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3753
3754 * NEWS: New entry for 'cd' default parameters.
3755 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3756
3757 2012-08-03 Tom Tromey <tromey@redhat.com>
3758
3759 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3760 return.
3761
3762 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3763
3764 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3765 to attempting lseek/write.
3766 (inf_child_fileio_pread): Likewise for pread.
3767
3768 2012-08-02 Yao Qi <yao@codesourcery.com>
3769
3770 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3771 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3772 add_setshow_zinteger_cmd.
3773 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3774 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3775 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3776 instead of add_setshow_zinteger_cmd.
3777 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3778 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3779 instead of add_setshow_zinteger_cmd.
3780 * frame.c (frame_debug): Add 'unsigned'.
3781 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3782 add_setshow_zinteger_cmd.
3783 * frame.h: Update the declaration of 'frame_debug'.
3784 * gdbtypes.c (overload_debug): Add 'unsigned'.
3785 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3786 add_setshow_zinteger_cmd.
3787 * inferior.h: Update declaration of 'debug_infrun'.
3788 * infrun.c (debug_infrun): Add 'unsigned'.
3789 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3790 add_setshow_zinteger_cmd.
3791 * jit.c (jit_debug): Add 'unsigned'.
3792 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3793 add_setshow_zinteger_cmd.
3794 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3795 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3796 instead of add_setshow_zinteger_cmd.
3797 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3798 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3799 add_setshow_zinteger_cmd.
3800 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3801 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3802 instead of add_setshow_zinteger_cmd.
3803 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3804 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3805 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3806 intead of add_setshow_zinteger_cmd.
3807 * mips-tdep.c (mips_debug): Add 'unsigned'.
3808 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3809 instead of add_setshow_zinteger_cmd.
3810 * monitor.c (monitor_debug): Add 'unsigned'.
3811 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3812 add_setshow_zinteger_cmd.
3813 * observer.c (observer_debug): Add 'unsigned'.
3814 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3815 add_setshow_zinteger_cmd.
3816 * parse.c (expressiondebug): Add 'unsigned'.
3817 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3818 add_setshow_zinteger_cmd.
3819 * record.c (record_debug): Add 'unsigned'.
3820 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3821 add_setshow_zinteger_cmd.
3822 * record.h: Update the declaration of 'record_debug'.
3823 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3824 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3825 add_setshow_zinteger_cmd.
3826 * serial.c (global_serial_debug_p): Add 'unsigned'.
3827 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3828 add_setshow_zinteger_cmd.
3829 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3830 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3831 add_setshow_zinteger_cmd.
3832 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3833 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3834 add_setshow_zinteger_cmd.
3835 * target.c (targetdebug): Add 'unsigned'.
3836 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3837 add_setshow_zinteger_cmd.
3838 * valops.c (overload_debug): Add 'unsigned'.
3839 * varobj.c (varobjdebug): Add 'unsigned'.
3840 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3841 add_setshow_zinteger_cmd.
3842 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3843 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3844 instead of add_setshow_zinteger_cmd.
3845
3846 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3847 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3848 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3849 instead of add_setshow_zinteger_cmd.
3850 * gdbarch.c, gdbarch.h: Re-generated.
3851
3852 2012-08-02 Yao Qi <yao@codesourcery.com>
3853
3854 * nto-tdep.c: Don't include cli/cli-decode.h and
3855 cli/cli-cmds.h.
3856 (_initialize_nto_tdep): Remove.
3857 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3858 Remove field.
3859 Remove macro nto_internal_debugging.
3860
3861 2012-08-01 Richard Henderson <rth@redhat.com>
3862
3863 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3864 (mep-*-*) [gdb_target_obs]: Likewise.
3865
3866 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3867
3868 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3869 linux_get_siginfo_type.
3870
3871 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3872
3873 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3874 AT_ENTRY_POINT.
3875 (call_function_by_hand) <ON_STACK>: Call write_memory with
3876 gdbarch_breakpoint_from_pc, if possible.
3877 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3878 here.
3879
3880 2012-07-31 Yao Qi <yao@codesourcery.com>
3881
3882 * tracepoint.c: Add 'static' for some variables.
3883
3884 2012-07-31 Yao Qi <yao@codesourcery.com>
3885
3886 * go32-nat.c: Declare _initialize_go32_nat.
3887 * ser-go32.c: Declare _initialize_ser_dos.
3888 * top.c (do_chdir_cleanup): Add 'static'.
3889
3890 2012-07-30 Keith Seitz <keiths@redhat.com>
3891
3892 * linespec.c (linespec_lex_number): A number followed
3893 by quotes is a valid number, too.
3894
3895 2012-07-30 Tom Tromey <tromey@redhat.com>
3896
3897 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3898
3899 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3900
3901 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3902 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3903
3904 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3905
3906 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3907 invalid or reevaluated to prevent prevent references to possibly
3908 delete'd type objects being left in the varobj.
3909
3910 2012-07-27 Tom Tromey <tromey@redhat.com>
3911 Jan Kratochvil <jan.kratochvil@redhat.com>
3912
3913 * copying.awk: Print buffer-read-only and vi ro markers.
3914 * copying.c: Rebuild.
3915 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3916 * gdbarch.c, gdbarch.h: Rebuild.
3917 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3918 buffer-read-only and vi ro markers.
3919 * features/arm-with-iwmmxt.c: Rebuild.
3920 * features/arm-with-m-fpa-layout.c: Rebuild.
3921 * features/arm-with-m-vfp-d16.c: Rebuild.
3922 * features/arm-with-m.c: Rebuild.
3923 * features/arm-with-neon.c: Rebuild.
3924 * features/arm-with-vfpv2.c: Rebuild.
3925 * features/arm-with-vfpv3.c: Rebuild.
3926 * features/i386/amd64-avx-linux.c: Rebuild.
3927 * features/i386/amd64-avx.c: Rebuild.
3928 * features/i386/amd64-linux.c: Rebuild.
3929 * features/i386/amd64.c: Rebuild.
3930 * features/i386/i386-avx-linux.c: Rebuild.
3931 * features/i386/i386-avx.c: Rebuild.
3932 * features/i386/i386-linux.c: Rebuild.
3933 * features/i386/i386-mmx-linux.c: Rebuild.
3934 * features/i386/i386-mmx.c: Rebuild.
3935 * features/i386/i386.c: Rebuild.
3936 * features/i386/x32-avx-linux.c: Rebuild.
3937 * features/i386/x32-avx.c: Rebuild.
3938 * features/i386/x32-linux.c: Rebuild.
3939 * features/i386/x32.c: Rebuild.
3940 * features/mips-dsp-linux.c: Rebuild.
3941 * features/mips-linux.c: Rebuild.
3942 * features/mips64-dsp-linux.c: Rebuild.
3943 * features/mips64-linux.c: Rebuild.
3944 * features/rs6000/powerpc-32.c: Rebuild.
3945 * features/rs6000/powerpc-32l.c: Rebuild.
3946 * features/rs6000/powerpc-403.c: Rebuild.
3947 * features/rs6000/powerpc-403gc.c: Rebuild.
3948 * features/rs6000/powerpc-405.c: Rebuild.
3949 * features/rs6000/powerpc-505.c: Rebuild.
3950 * features/rs6000/powerpc-601.c: Rebuild.
3951 * features/rs6000/powerpc-602.c: Rebuild.
3952 * features/rs6000/powerpc-603.c: Rebuild.
3953 * features/rs6000/powerpc-604.c: Rebuild.
3954 * features/rs6000/powerpc-64.c: Rebuild.
3955 * features/rs6000/powerpc-64l.c: Rebuild.
3956 * features/rs6000/powerpc-7400.c: Rebuild.
3957 * features/rs6000/powerpc-750.c: Rebuild.
3958 * features/rs6000/powerpc-860.c: Rebuild.
3959 * features/rs6000/powerpc-altivec32.c: Rebuild.
3960 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3961 * features/rs6000/powerpc-altivec64.c: Rebuild.
3962 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3963 * features/rs6000/powerpc-cell32l.c: Rebuild.
3964 * features/rs6000/powerpc-cell64l.c: Rebuild.
3965 * features/rs6000/powerpc-e500.c: Rebuild.
3966 * features/rs6000/powerpc-e500l.c: Rebuild.
3967 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3968 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3969 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3970 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3971 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3972 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3973 * features/rs6000/powerpc-vsx32.c: Rebuild.
3974 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3975 * features/rs6000/powerpc-vsx64.c: Rebuild.
3976 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3977 * features/rs6000/rs6000.c: Rebuild.
3978 * features/s390-linux32.c: Rebuild.
3979 * features/s390-linux32v1.c: Rebuild.
3980 * features/s390-linux32v2.c: Rebuild.
3981 * features/s390-linux64.c: Rebuild.
3982 * features/s390-linux64v1.c: Rebuild.
3983 * features/s390-linux64v2.c: Rebuild.
3984 * features/s390x-linux64.c: Rebuild.
3985 * features/s390x-linux64v1.c: Rebuild.
3986 * features/s390x-linux64v2.c: Rebuild.
3987 * features/tic6x-c62x-linux.c: Rebuild.
3988 * features/tic6x-c62x.c: Rebuild.
3989 * features/tic6x-c64x-linux.c: Rebuild.
3990 * features/tic6x-c64x.c: Rebuild.
3991 * features/tic6x-c64xp-linux.c: Rebuild.
3992 * features/tic6x-c64xp.c: Rebuild.
3993
3994 2012-07-27 Tom Tromey <tromey@redhat.com>
3995
3996 * c-exp.y (classify_name): Avoid assignment in condition.
3997
3998 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3999
4000 * amd64-windows-tdep.c: Include "frame.h".
4001 (amd64_windows_skip_trampoline_code): New function.
4002 (amd64_windows_init_abi): Add trampoline registration.
4003
4004 2012-07-27 Yao Qi <yao@codesourcery.com>
4005
4006 * tracepoint.c (cur_traceframe_number): Remove.
4007 (set_tfile_traceframe): Remove.
4008 (tfile_trace_find, tfile_fetch_registers): Update callers.
4009 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4010 (tfile_open, tfile_trace_find): Likewise.
4011
4012 2012-07-27 Yao Qi <yao@codesourcery.com>
4013
4014 * thread.c (switch_to_thread): Don't call registers_changed.
4015
4016 2012-07-26 Tom Tromey <tromey@redhat.com>
4017
4018 * Makefile.in (SFILES): Remove objc-exp.y.
4019 (YYFILES): Remove objc-exp.c.
4020 (YYOBJ): Remove objc-exp.o.
4021 (local-maintainer-clean): Don't mention objc-exp.c.
4022 * c-exp.y: Include objc-lang.h.
4023 (%union) <class>: New field.
4024 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4025 (exp): Clone subscript production for OBJC_LBRAC. Add various
4026 Objective C productions.
4027 (msglist, msgarglist, msgarg): New productions.
4028 (array_mod, func_mod, operator): Clone productions for
4029 OBJC_LBRAC.
4030 (parse_string_or_char): Handle '@' strings.
4031 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
4032 (classify_name): Check la_name_of_this. Recognize ObjC class
4033 names.
4034 * objc-exp.y: Remove.
4035 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4036 * objc-lang.h (objc_parse, objc_error): Don't declare.
4037
4038 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
4039
4040 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4041
4042 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4045 and decrement.
4046
4047 2012-07-26 Tom Tromey <tromey@redhat.com>
4048
4049 * copying.c: Rebuild.
4050 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
4051 'no_class'.
4052
4053 2012-07-26 Tom Tromey <tromey@redhat.com>
4054
4055 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4056 immediate_quit.
4057 (print_objfile_statistics): Likewise.
4058 (maintenance_print_symbols): Likewise.
4059 (maintenance_print_msymbols): Likewise.
4060 (maintenance_print_objfiles): Likewise.
4061 * psymtab.c (print_partial_symbols): Call QUIT.
4062 (maintenance_print_psymbols): Likewise. Don't modify
4063 immediate_quit.
4064 * copying.c (show_copying_command): Don't modify immediate_quit.
4065 (show_warranty_command): Likewise.
4066 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4067
4068 2012-07-26 Keith Seitz <keiths@redhat.com>
4069
4070 * linespec.c (linespec_lexer_lex_number): The input
4071 is also a valid number if the next character is a comma
4072 or colon.
4073
4074 2012-07-26 Joel Brobecker <brobecker@adacore.com>
4075
4076 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4077 configure options.
4078
4079 2012-07-26 Tristan Gingold <gingold@adacore.com>
4080
4081 * machoread.c: Include gdb_bfd.h.
4082
4083 2012-07-26 Tristan Gingold <gingold@adacore.com>
4084
4085 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4086 offset.
4087
4088 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
4089
4090 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4091 SIZE to size_t.
4092 (dwarf2_evaluate_loc_desc): Likewise.
4093 (dwarf2_loc_desc_needs_frame): Likewise.
4094 (locexpr_describe_location_1): Likewise.
4095 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4096 size_t.
4097 (struct dwarf2_loclist_baton): Likewise.
4098 * dwarf2read.c (struct dwarf_block): Likewise.
4099 (dump_die_shallow): Use pulongest to print dwarf_block.size.
4100 (decode_locdesc): Expand SIZE and I to size_t.
4101
4102 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4103
4104 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4105
4106 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4107
4108 * doublest.c (convert_doublest_to_floatformat): If the exponent
4109 is too small, treat the value as zero. If the exponent is too
4110 large, treat the value as infinity.
4111
4112 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4113
4114 * configure.ac: Add --enable-lmcheck configure option.
4115 * configure: Regenerate.
4116
4117 2012-07-25 Tom Tromey <tromey@redhat.com>
4118
4119 * NEWS: Mention maint info bfds.
4120 * gdb_bfd.c (all_bfds): New global.
4121 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4122 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4123 New functions.
4124
4125 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
4126
4127 * configure.tgt: Add v850*-*-rtems*.
4128
4129 2012-07-25 Tom Tromey <tromey@redhat.com>
4130
4131 * macrotab.c (macro_bcache_str): Remove cast.
4132
4133 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
4134
4135 * linespec.c (linespec_lexer_lex_number): Update comments,
4136 change the return and add check to make sure the input is
4137 the decimal numbers.
4138 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4139 false, call linespec_lexer_lex_string.
4140
4141 2012-07-24 Tom Tromey <tromey@redhat.com>
4142
4143 * symfile.c (symbol_file_add): Don't open BFD twice.
4144
4145 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
4146
4147 * breakpoint.c (create_breakpoint): Store condition for pending
4148 breakpoints.
4149
4150 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4151
4152 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4153 (m68k_return_value): Handle complex types like structures.
4154 (m68k_svr4_return_value): Likewise.
4155
4156 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4157
4158 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4159 parameters to bfd_get_section_name.
4160
4161 2012-07-24 Yao Qi <yao@codesourcery.com>
4162
4163 * cli/cli-setshow.c: Handle case 'var_uinteger'
4164 and 'var_zuninteger' together. Handle case 'var_integer' and
4165 'var_zinteger' together.
4166
4167 2012-07-23 Keith Seitz <keiths@redhat.com>
4168
4169 * linespec.c (convert_linespec_to_sal): Don't add
4170 any symbols to the result vector if symbol_to_sal
4171 returns zero.
4172
4173 2012-07-23 Keith Seitz <keiths@redhat.com>
4174
4175 * linespec.c (decode_objc): Record the function name
4176 in the linespec.
4177
4178 2012-07-23 Tom Tromey <tromey@redhat.com>
4179
4180 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4181 counting.
4182 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4183 (map_vmap): Acquire a reference to the BFD.
4184
4185 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4186
4187 * p-valprint.c (pascal_object_print_value): Replace potentially
4188 unsafe alloca with xmalloc/xfree.
4189 * valops.c (search_struct_method): Likewise.
4190
4191 2012-07-23 Tom Tromey <tromey@redhat.com>
4192
4193 * solib-svr4.c (enable_break): Update.
4194 * bfd-target.h (target_bfd_reopen): Update documentation.
4195
4196 2012-07-23 Tom Tromey <tromey@redhat.com>
4197
4198 * symfile.c (separate_debug_file_exists): Update.
4199 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4200 (reread_symbols): Update.
4201 * elfread.c (build_id_verify): Update.
4202 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4203 bfd_open_maybe_remote.
4204
4205 2012-07-23 Tom Tromey <tromey@redhat.com>
4206
4207 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4208
4209 2012-07-23 Tom Tromey <tromey@redhat.com>
4210
4211 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4212 and 'abfd'.
4213 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4214 and 'abfd'.
4215 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4216 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4217 'abfd'.
4218 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4219 * objfiles.c (allocate_objfile): Acquire a new reference.
4220 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4221 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4222 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4223 a cleanup for 'nbfd'.
4224 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4225 for 'nbfd'.
4226 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4227 make a cleanup for 'abfd'.
4228 (symbol_file_add): Make a BFD cleanup.
4229
4230 2012-07-23 Tom Tromey <tromey@redhat.com>
4231
4232 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4233 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4234 * corelow.c (core_open): Use gdb_bfd_fopen.
4235 * dsrec.c (load_srec): Use gdb_bfd_openr.
4236 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4237 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4238 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4239 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4240 (gdb_bfd_fdopenr): New functions.
4241 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4242 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4243 (gdb_bfd_fdopenr): Declare.
4244 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4245 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4246 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4247 gdb_bfd_openr_next_archived_file.
4248 (macho_check_dsym): Use gdb_bfd_openr.
4249 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4250 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4251 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4252 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4253 gdb_bfd_openr.
4254 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4255 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4256 gdb_bfd_openr_next_archived_file.
4257 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4258 Use gdb_bfd_openr.
4259 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4260 gdb_bfd_openr.
4261 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4262 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4263 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4264 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4265 (symfile_bfd_open): Use gdb_bfd_fopen.
4266 (generic_load): Use gdb_bfd_openr.
4267 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4268
4269 2012-07-23 Tom Tromey <tromey@redhat.com>
4270
4271 * bfd-target.c (target_bfd_reopen): Update.
4272 * cli/cli-dump.c (bfd_openr_with_cleanup)
4273 (bfd_openw_with_cleanup): Update.
4274 * corelow.c (core_open): Update.
4275 * dsrec.c (load_srec): Update.
4276 * exec.c (exec_file_attach): Update.
4277 * gcore.c (create_gcore_bfd): Update.
4278 * gdb_bfd.c (gdb_bfd_ref): Return void.
4279 (gdb_bfd_open): Update.
4280 * gdb_bfd.h (gdb_bfd_ref): Return void.
4281 Update comments.
4282 * jit.c (jit_bfd_try_read_symtab): Update.
4283 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4284 * machoread.c (macho_symfile_read_all_oso): Update.
4285 (macho_check_dsym): Update.
4286 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4287 * remote-m32r-sdi.c (m32r_load): Update.
4288 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4289 * rs6000-nat.c (add_vmap): Update.
4290 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4291 Update.
4292 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4293 * solib-spu.c (spu_bfd_open): Update.
4294 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4295 * spu-linux-nat.c (spu_bfd_open): Update.
4296 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4297 (generic_load): Update.
4298 * windows-nat.c (windows_make_so): Update.
4299
4300 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4301
4302 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4303
4304 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4305
4306 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4307 SIGTRAMP_FRAME unwinding.
4308
4309 2012-07-20 Doug Evans <dje@google.com>
4310
4311 * NEWS: Document new options "set/show use-deprecated-index-sections",
4312 and delete reference to --use-deprecated-index-sections.
4313 * symfile.h (use_deprecated_index_sections): Delete.
4314 * dwarf2read.c (use_deprecated_index_sections): Make static.
4315 (read_index_from_section): Update wording of how to load
4316 deprecated index sections.
4317 (_initialize_dwarf2_read): New options
4318 "set/show use-deprecated-index-sections".
4319 * main.c (captured_main): Delete --use-deprecated-index-sections.
4320
4321 2012-07-20 Pedro Alves <palves@redhat.com>
4322
4323 PR threads/11692
4324 PR gdb/12203
4325
4326 * infrun.c (handle_inferior_event) <new thread>: Don't special
4327 case minus_one_ptid.
4328 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4329 * linux-thread-db.c (thread_get_info_callback): Don't return early
4330 if the thread is zombie.
4331 (thread_from_lwp): Change return type to void. Rewrite stale
4332 comment.
4333 (attach_thread): Don't return early if the thread is zombie,
4334 instead set its "dying" flag.
4335 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4336 (find_new_threads_callback): Don't return early if the thread is
4337 zombie.
4338
4339 2012-07-20 Pedro Alves <palves@redhat.com>
4340
4341 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4342 * target.c (target_wait): Likewise.
4343 (str_comma_list_concat_elem, do_option, target_options_to_string):
4344 New functions.
4345 * target.h (target_options_to_string): Declare.
4346
4347 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4348 Tom Tromey <tromey@redhat.com>
4349
4350 * dwarf2read.c (dwarf_decode_macros)
4351 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4352 DW_MACRO_GNU_transparent_include_alt>: New cases.
4353 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4354 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4355
4356 2012-07-20 Tom Tromey <tromey@redhat.com>
4357
4358 * dwarf2read.c (try_open_dwo_file): Don't call
4359 gdb_bfd_stash_filename.
4360
4361 2012-07-20 Pedro Alves <palves@redhat.com>
4362
4363 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4364 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4365 (i386_process_record): Tweak description comments.
4366
4367 2012-07-20 Pedro Alves <palves@redhat.com>
4368
4369 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4370 (i386_process_record): Use record_read_memory.
4371 * record.c (record_read_memory): New function.
4372 (record_arch_list_add_mem, record_exec_insn): Use
4373 record_read_memory.
4374 * record.h (record_read_memory): Declare.
4375
4376 2012-07-20 Yao Qi <yao@codesourcery.com>
4377
4378 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4379 NULL for xfree.
4380
4381 2012-07-19 Pedro Alves <palves@redhat.com>
4382
4383 * record.c (record_resume): Ask the target beneath to report all
4384 signals.
4385
4386 2012-07-19 Doug Evans <dje@google.com>
4387
4388 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4389 there's no section at address zero.
4390 (dwarf2_record_block_ranges): Ditto.
4391
4392 2012-07-19 Yao Qi <yao@codesourcery.com>
4393
4394 * command.h, remote.c: Fix a typo in comment.
4395
4396 2012-07-19 Tom Tromey <tromey@redhat.com>
4397
4398 PR exp/13206:
4399 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4400 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4401 OP_DECLTYPE>: New cases.
4402 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4403 (type_exp): Add new productions.
4404 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4405 and decltype.
4406 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4407 New case.
4408 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4409 OP_DECLTYPE>: New case.
4410 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4411 New case.
4412 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4413 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4414
4415 2012-07-19 Tom Tromey <tromey@redhat.com>
4416
4417 * c-exp.y (enum token_flags): New.
4418 (struct token) <cxx_only>: Remove.
4419 <flags>: New field.
4420 (tokentab3, tokentab2, ident_tokens): Update.
4421 (lex_one_token): Update. Handle FLAG_SHADOW.
4422
4423 2012-07-19 Tom Tromey <tromey@redhat.com>
4424
4425 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4426 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4427 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4428 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4429 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4430 type_exp production where appropriate.
4431 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4432 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4433 <UNOP_MEMVAL_TYPE>: New case.
4434 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4435 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4436 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4437 <UNOP_MEMVAL_TYPE>: New case.
4438 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4439 UNOP_REINTERPRET_CAST>: Update.
4440 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4441 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4442 UNOP_REINTERPRET_CAST>: Update.
4443 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4444 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4445 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4446 constants.
4447
4448 2012-07-19 Yao Qi <yao@codesourcery.com>
4449 Jan Kratochvil <jan.kratochvil@redhat.com>
4450
4451 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4452 and case 'var_optional_filename' together.
4453 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4454 instead of add_setshow_optional_filename_cmd for setshow command
4455 'args'. Set completer for 'set args'.
4456
4457 2012-07-18 Doug Evans <dje@google.com>
4458
4459 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4460 * common/gdb_vecs.c: New file, contents from utils.c.
4461 * common/host-defs.h: New file, contents from defs.h.
4462 * utils.h: New file, contents from defs.h.
4463 * defs.h: Move all declarations of objects defined in utils.c
4464 to utils.h (except QUIT() and related).
4465 #include "utils.h", "host-defs.h".
4466 * probe.h (probe_p): Move here from gdb_vecs.h.
4467 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4468 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4469 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4470 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4471 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4472 (COMMON_OBS): Add gdb_vecs.o.
4473 (gdb_vecs.o): New rule.
4474
4475 2012-07-18 Keith Seitz <keiths@redhat.com>
4476
4477 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4478 parameter. If non-zero, use SYMNAME as the canonical name
4479 for the SaL.
4480 Update all callers.
4481 (convert_linespec_to_sals): Use add_sal_to_sals for
4482 expressions, too.
4483 (decode_line_full): No need to "fill in missing canonical names"
4484 anymore. Simply make cleanups for the allocated names.
4485
4486 2012-07-18 Keith Seitz <keiths@redhat.com>
4487
4488 * linespec.c (struct linespec): Constify expression,
4489 source_filename, function_name, and label_name.
4490 (symbol_not_found_error): Make all parameters const.
4491 (linespec_parser_delete): No need to check for NULL
4492 when using xfree. Cast const char * to char * for xfree.
4493
4494 2012-07-18 Keith Seitz <keiths@redhat.com>
4495
4496 * breakpoint.c (invalid_thread_id_error): New function.
4497 (find_condition_and_thread): Use invalid_thread_id_error.
4498 (watch_command_1): Likewise.
4499
4500 2012-07-18 Tom Tromey <tromey@redhat.com>
4501
4502 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4503 * contrib/cc-with-tweaks.sh: New file.
4504
4505 2012-07-18 Tom Tromey <tromey@redhat.com>
4506
4507 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4508 (locate_dwz_sections): Recognize .gdb_index.
4509 (create_cus_from_index_list): New function.
4510 (create_cus_from_index): Use it. Handle .dwz data.
4511 (read_index_from_section): New function, extracted from
4512 dwarf2_read_index.
4513 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4514 if needed.
4515
4516 2012-07-18 Tom Tromey <tromey@redhat.com>
4517
4518 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4519 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4520 <is_dwz>: New field.
4521 (struct dwz_file): New.
4522 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4523 (locate_dwz_sections, dwarf2_get_dwz_file)
4524 (get_abbrev_section_for_cu): New functions.
4525 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4526 (read_and_check_type_unit_head): Add abbrev_section argument.
4527 (create_debug_types_hash_table): Update.
4528 (init_cutu_and_read_dies): Use proper abbrev section.
4529 (init_cutu_and_read_dies_no_follow): Likewise.
4530 (set_partial_user): Do nothing if PST==NULL.
4531 (read_comp_units_from_section): New function.
4532 (create_all_comp_units): Use it.
4533 (scan_partial_symbols, partial_die_parent_scope): Update.
4534 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4535 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4536 (find_partial_die): Add offset_in_dwz argument. Update.
4537 (guess_partial_die_structure_name, fixup_partial_die): Update.
4538 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4539 DW_FORM_GNU_strp_alt.
4540 (read_indirect_string_from_dwz): New function.
4541 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4542 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4543 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4544 (follow_die_offset): Add offset_in_dwz argument.
4545 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4546 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4547 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4548 Handle new macro forms.
4549 (dwarf_decode_macros): Update.
4550 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4551 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4552 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4553 (create_debug_types_hash_table): Use correct abbrev section.
4554 (get_debug_line_section): New function.
4555 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4556 (process_full_comp_unit): Pass 'required' argument to
4557 end_symtab_get_static_block.
4558 * buildsym.h (end_symtab_get_static_block): Update.
4559 * buildsym.c (end_symtab_get_static_block): Add 'required'
4560 argument.
4561 (end_symtab, end_expandable_symtab): Update.
4562
4563 2012-07-18 Tom Tromey <tromey@redhat.com>
4564
4565 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4566 (pagesize): Remove.
4567 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4568 (zlib_decompress_section): Remove.
4569 (dwarf2_read_section): Use gdb_bfd_map_section.
4570 (munmap_section_buffer): Remove.
4571 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4572 munmap_section_buffer.
4573 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4574 (struct gdb_bfd_section_data): New.
4575 (free_one_bfd_section): New function.
4576 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4577 (get_section_descriptor, zlib_decompress_section)
4578 (gdb_bfd_map_section): New functions.
4579 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4580
4581 2012-07-18 Tom Tromey <tromey@redhat.com>
4582
4583 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4584
4585 2012-07-18 Tom Tromey <tromey@redhat.com>
4586
4587 * gdb_bfd.c (struct gdb_bfd_data): New.
4588 (gdb_bfd_cache): New global.
4589 (struct gdb_bfd_cache_search): New.
4590 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4591 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4592 * gdb_bfd.h (gdb_bfd_open): Declare.
4593
4594 2012-07-18 Tom Tromey <tromey@redhat.com>
4595
4596 * utils.c (make_cleanup_bfd_unref): Rename from
4597 make_cleanup_bfd_close.
4598 * defs.h (make_cleanup_bfd_unref): Rename from
4599 make_cleanup_bfd_close.
4600 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4601 (bfd_openw_with_cleanup): Update.
4602 * corelow.c (core_open): Update.
4603 * dsrec.c (load_srec): Update.
4604 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4605 * remote-m32r-sdi.c (m32r_load): Update.
4606 * remote-mips.c (mips_load_srec): Update.
4607 (pmon_load_fast): Update.
4608 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4609 Update.
4610 (darwin_bfd_open): Update.
4611 * solib.c (solib_bfd_fopen): Update.
4612 * symfile-mem.c (symbol_file_add_from_memory): Update.
4613 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4614 (symfile_bfd_open): Update.
4615 (generic_load): Update.
4616
4617 2012-07-18 Tom Tromey <tromey@redhat.com>
4618
4619 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4620 (pmon_load_fast): Likewise.
4621 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4622 (m32r_upload_command): Likewise.
4623 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4624 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4625 Use make_cleanup_bfd_close.
4626
4627 2012-07-18 Tom Tromey <tromey@redhat.com>
4628
4629 * symfile.c (symfile_bfd_open): Don't copy name. Call
4630 gdb_bfd_stash_filename.
4631 (load_command): Open the new BFD before freeing the old.
4632 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4633 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4634 Call gdb_bfd_stash_filename.
4635 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4636 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4637 gdb_bfd_stash_filename.
4638 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4639 Free found_pathname.
4640 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4641 gdb_bfd_stash_filename.
4642 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4643 * machoread.c (macho_add_oso_symfile): Call
4644 gdb_bfd_stash_filename.
4645 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4646 gdb_bfd_stash_filename.
4647 (macho_check_dsym): Don't copy filename. Call
4648 gdb_bfd_stash_filename.
4649 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4650 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4651 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4652 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4653 * exec.c (exec_close): Don't free the BFD's filename.
4654 (exec_file_attach): Don't copy the filename. Call
4655 gdb_bfd_stash_filename.
4656 * corelow.c (core_close): Don't free the BFD's filename.
4657 (core_open): Call gdb_bfd_stash_filename.
4658 * corefile.c (reopen_exec_file): Remove #if 0 code.
4659 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4660 pathname.
4661 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4662
4663 2012-07-18 Tom Tromey <tromey@redhat.com>
4664
4665 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4666 gdb_bfd_unref.
4667 (free_dwo_file): Use gdb_bfd_unref.
4668 * cli/cli-dump.c: Include gdb_bfd.h.
4669 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4670 (bfd_openr_with_cleanup): Likewise.
4671 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4672 gdb_bfd_unref.
4673 * utils.c: Include gdb_bfd.h.
4674 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4675 * symfile.c: Include gdb_bfd.h.
4676 (separate_debug_file_exists): Use gdb_bfd_unref.
4677 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4678 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4679 (generic_load): Use gdb_bfd_ref.
4680 (reread_symbols): Use gdb_bfd_unref.
4681 * symfile-mem.c: Include gdb_bfd.h.
4682 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4683 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4684 * solib.c: Include gdb_bfd.h.
4685 (solib_bfd_fopen): Use gdb_bfd_ref.
4686 (solib_bfd_open): Use gdb_bfd_unref.
4687 (free_so_symbols): Use gdb_bfd_unref.
4688 (reload_shared_libraries_1): Use gdb_bfd_unref.
4689 * solib-spu.c: Include gdb_bfd.h.
4690 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4691 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4692 gdb_bfd_unref.
4693 * solib-frv.c: Include gdb_bfd.h.
4694 (enable_break2): Use gdb_bfd_unref.
4695 * solib-dsbt.c: Include gdb_bfd.h.
4696 (enable_break2): Use gdb_bfd_unref.
4697 * solib-darwin.c: Include gdb_bfd.h.
4698 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4699 gdb_bfd_unref.
4700 (darwin_bfd_open): Use gdb_bfd_unref.
4701 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4702 * remote-mips.c: Include gdb_bfd.h.
4703 (mips_load_srec): Use gdb_bfd_ref.
4704 (pmon_load_fast): Use gdb_bfd_ref.
4705 * remote-m32r-sdi.c: Include gdb_bfd.h.
4706 (m32r_load): Use gdb_bfd_ref.
4707 * record.c: Include gdb_bfd.h.
4708 (record_save_cleanups): Use gdb_bfd_unref.
4709 (cmd_record_save): Use gdb_bfd_unref.
4710 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4711 gdb_bfd_unref.
4712 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4713 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4714 * objfiles.c: Include gdb_bfd.h.
4715 (free_objfile): Use gdb_bfd_unref.
4716 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4717 gdb_bfd.c.
4718 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4719 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4720 (macho_check_dsym): Likewise.
4721 * m32r-rom.c: Include gdb_bfd.h.
4722 (m32r_load): Use gdb_bfd_ref.
4723 (m32r_upload_command): Use gdb_bfd_ref.
4724 * jit.c: Include gdb_bfd.h.
4725 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4726 * gdb_bfd.h: New file.
4727 * gdb_bfd.c: New file.
4728 * gcore.c: Include gdb_bfd.h.
4729 (create_gcore_bfd): Use gdb_bfd_ref.
4730 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4731 (gcore_command): Use gdb_bfd_unref.
4732 * exec.c: Include gdb_bfd.h.
4733 (exec_close): Use gdb_bfd_unref.
4734 (exec_close_1): Use gdb_bfd_unref.
4735 (exec_file_attach): Use gdb_bfd_ref.
4736 * elfread.c: Include gdb_bfd.h.
4737 (build_id_verify): Use gdb_bfd_unref.
4738 * dsrec.c: Include gdb_bfd.h.
4739 (load_srec): Use gdb_bfd_ref.
4740 * corelow.c: Include gdb_bfd.h.
4741 (core_close): Use gdb_bfd_unref.
4742 (core_open): Use gdb_bfd_ref.
4743 * bfd-target.c: Include gdb_bfd.h.
4744 (target_bfd_xclose): Use gdb_bfd_unref.
4745 (target_bfd_reopen): Use gdb_bfd_ref.
4746 * Makefile.in (SFILES): Add gdb_bfd.c.
4747 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4748 (COMMON_OBS): Add gdb_bfd.o.
4749
4750 2012-07-18 Keith Seitz <keiths@redhat.com>
4751
4752 * breakpoint.c (find_condition_and_thread): Initialize
4753 TASK and REST.
4754 (create_breakpiont): find_condition_and_thread will now
4755 initialize COND_STRING, THREAD, and REST (and TASK).
4756 (addr_string_to_sals): Likewise.
4757
4758 2012-07-18 Pedro Alves <palves@redhat.com>
4759
4760 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4761 Pull the single step breakpoints out of the target.
4762
4763 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4764
4765 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4766 * stap-probe.c (compile_probe_arg): Likewise.
4767
4768 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4769
4770 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4771 (elf_compile_to_ax): Likewise.
4772 * infrun.c (insert_exception_resume_from_probe): Likewise.
4773 (check_exception_resume): Remove `objfile' variable.
4774 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4775 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4776 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4777 (compare_entries): Rename to...
4778 (compare_probes): ...this. Adjust function to work with
4779 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4780 respectively.
4781 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4782 `VEC (probe_p) *'.
4783 (print_ui_out_info): Adjust argument to be `struct probe *'.
4784 (info_probes_for_ops): Adjust internal computations to use
4785 `VEC (probe_p) *'.
4786 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4787 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4788 gen_info_probes_table_values>: Remove `objfile' argument.
4789 (struct probe) <objfile>: New field.
4790 (find_probe_by_pc): Remove `objfile' argument.
4791 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4792 (stap_get_probe_argument_count): Likewise.
4793 (stap_get_arg): Likewise.
4794 (stap_evaluate_probe_argument): Likewise.
4795 (stap_compile_to_ax): Likewise.
4796 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4797 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4798 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4799 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4800 sym_compile_to_ax>: Likewise.
4801
4802 2012-07-18 Terry Guo <terry.guo@arm.com>
4803
4804 PR 14329
4805 * defs.h (GDB_MI_MSG_WIDTH): New.
4806 * ser_base (ser_base_read_error_fd): New function.
4807 (do_ser_base_readchar): Poll error file descriptor as well as
4808 standard output.
4809 (generic_readchar): Refactor error handling.
4810
4811 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4812
4813 * NEWS: Create a new section for the next release branch.
4814 Rename the section of the current branch, now that it has
4815 been cut.
4816
4817 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4818
4819 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4820 * version.in: Bump version to 7.5.50.20120718-cvs.
4821
4822 2012-07-17 Keith Seitz <keiths@redhat.com>
4823
4824 * linespec.c (linespec_parse_line_offset): Make parameter
4825 const.
4826
4827 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4828
4829 PR 11914
4830 * f-valprint.c (info_common_command): New variable frame_id.
4831 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4832 * printcmd.c (print_variable_and_value): Extend function comment.
4833 Add comment for invalidated FRAME.
4834 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4835 FI form FRAME_ID after each print_frame_local_vars.
4836 (struct print_variable_and_value_data): Change frame to frame_id.
4837 (do_print_variable_and_value): New variable frame, initialize it from
4838 p->frame_id. Add comment for invalidated FRAME.
4839 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4840 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4841 for invalidated FRAME.
4842
4843 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4844 Pedro Alves <palves@redhat.com>
4845
4846 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4847 loop.
4848
4849 2012-07-16 Tom Tromey <tromey@redhat.com>
4850
4851 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4852
4853 2012-07-15 Doug Evans <dje@google.com>
4854
4855 * dwarf2read.c (stmt_list_hash): New struct.
4856 (type_unit_group): Embed "per_cu" member, remove pointer.
4857 New union member "t", move member "tus" into it, all uses updated.
4858 New member "hash", replaces member "line_offset, all uses updated.
4859 (quick_file_names): Replace member "offset" with "hash", all uses
4860 updated.
4861 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4862 (hash_file_name_entry, eq_file_name_entry): Call them.
4863 (hash_type_unit_group, eq_type_unit_group): Ditto.
4864 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4865 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4866 (dw2_get_file_names): Update.
4867 (create_type_unit_group): Replace "per_cu" arg with "cu".
4868 All callers updated. Fix "quick" (.gdb_index) handling.
4869 (get_type_unit_group): Replace "per_cu" arg with "cu".
4870 All callers updated.
4871 (build_type_unit_groups): Don't reset tu_stats.
4872
4873 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4874 "tab_cur_size". Change member "tab" to be a htab_t.
4875 (create_filename_seen_cache): Update.
4876 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4877 (filename_seen): Update.
4878
4879 2012-07-13 Doug Evans <dje@google.com>
4880
4881 * symtab.c (filename_seen): Update comment.
4882
4883 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4884 Doug Evans <dje@google.com>
4885
4886 * buildsym.c (end_symtab_1): Split it to ...
4887 (end_symtab_get_static_block): ... this ...
4888 (end_symtab_from_static_block): ... and this function.
4889 (end_symtab, end_expandable_symtab): Call them.
4890 * buildsym.h (end_symtab_get_static_block)
4891 (end_symtab_from_static_block): New declarations.
4892 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4893 Set its valid CU ranges.
4894
4895 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4896
4897 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4898 DW_OP_GNU_parameter_ref.
4899
4900 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4901
4902 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4903 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4904
4905 2012-07-13 Doug Evans <dje@google.com>
4906
4907 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4908 (filename_seen_cache): New struct.
4909 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4910 (create_filename_seen_cache): New function.
4911 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4912 (filename_seen): Delete arg "first". New arg "cache". All callers
4913 updated.
4914 (output_source_filename_data): New struct.
4915 (output_source_filename): Delete arg "first". New arg "data".
4916 All callers updated.
4917 (sources_info): Delete local "first". New locals "data", "cleanups".
4918 Rewrite to use filename_seen_cache.
4919 (add_partial_filename_data): Delete member "first". New member
4920 "filename_seen_cache". All uses updated.
4921 (make_source_files_completion_list): Rewrite to use
4922 filename_seen_cache.
4923
4924 2012-07-12 Doug Evans <dje@google.com>
4925
4926 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4927
4928 2012-07-10 Doug Evans <dje@google.com>
4929
4930 PR gdb/13498
4931 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4932 all_type_unit_groups, type_unit_groups, tu_stats.
4933 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4934 All uses updated. Add type_unit_group to union "s".
4935 (type_unit_group): New struct.
4936 (IS_TYPE_UNIT_GROUP): New macro.
4937 (abbrev_table): Delete unused member "section".
4938 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4939 (dw2_get_cu): Assert not used with type_unit_group.
4940 (dw2_get_primary_cu): New function.
4941 (dw2_build_type_unit_groups_reader): New function.
4942 (dw2_build_type_unit_groups): New function.
4943 (dw2_get_file_names): Assert not called on type units.
4944 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4945 Redo loop to iterate over type unit groups instead of type units.
4946 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4947 (read_abbrev_offset): New function.
4948 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4949 updated.
4950 (create_partial_symtab): New function.
4951 (process_psymtab_comp_unit_reader): Assert not used with type units.
4952 Call create_partial_symtab.
4953 (process_psymtab_type_unit): Delete.
4954 (hash_type_unit_group, eq_type_unit_group): New functions.
4955 (allocate_type_unit_groups_table): New function.
4956 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4957 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4958 (create_type_unit_group, get_type_unit_group): New functions.
4959 (tu_abbrev_offset): New struct.
4960 (sort_tu_by_abbrev_offset): New function.
4961 (add_type_unit_group_to_table): New function.
4962 (build_type_unit_groups): New function.
4963 (build_type_psymtabs_reader): New function.
4964 (build_type_psymtab_dependencies): New function.
4965 (build_type_psymtabs): Rewrite.
4966 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4967 is seen in a type unit.
4968 (process_queue): Move symtab expansion debugging printfs here.
4969 Call process_full_type_unit for type units.
4970 (compute_symtab_includes): Assert not called for type units.
4971 (process_cu_includes): Don't call compute_symtab_includes for
4972 type units.
4973 (process_full_type_unit): New function.
4974 (process_imported_unit_die): Flag an error if called for type units.
4975 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4976 updated. Assert not called for type units.
4977 (read_file_scope): Call dwarf2_start_symtab.
4978 (setup_type_unit_groups): New function.
4979 (read_type_unit_scope): Rewrite.
4980 (abbrev_table_read_table): Initialize abbrev_table->offset.
4981 (abbrev_table_free_cleanup): New function.
4982 (dwarf2_start_symtab): New function.
4983 (load_full_type_unit): Assert not called for type unit groups.
4984 * buildsym.c (finish_block_internal): New arg "expandable".
4985 All callers updated.
4986 (start_symtab): Move most contents to ...
4987 (restart_symtab): ... here. New function.
4988 (reset_symtab_globals): New function.
4989 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4990 Call reset_symtab_globals.
4991 (end_symtab, end_expandable_symtab): New functions.
4992 (set_missing_symtab, augment_type_symtab): New functions.
4993 * buildsym.h (end_expandable_symtab): Declare.
4994 (augment_type_symtab, restart_symtab): Declare.
4995 * psympriv.h (struct partial_symtab): New member "anonymous".
4996 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4997 anonymous psymtabs.
4998 (read_psymtabs_with_filename): Ditto.
4999 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5000 (expand_symtabs_matching_via_partial): Ditto.
5001 (dump_psymtab): Update.
5002 * dictionary.c (dict_add_pending): New function.
5003 * dictionary.h (dict_add_pending): Declare.
5004
5005 2012-07-09 Doug Evans <dje@google.com>
5006
5007 * buildsym.c (start_subfile): Remove unnecessary check for
5008 name == NULL.
5009
5010 * psymtab.c (allocate_psymtab): Use host_address_to_string.
5011
5012 * dwarf2read.c (load_full_type_unit): Simplify.
5013
5014 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5015 to struct signatured_type **. All uses updated.
5016
5017 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5018 All callers updated.
5019
5020 2012-07-09 Tom Tromey <tromey@redhat.com>
5021
5022 * c-exp.y (check_parameter_typelist): New function.
5023 (parameter_typelist): Call it.
5024 * eval.c (make_params): Handle '(void)' case.
5025 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5026 '(void)' case.
5027
5028 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5029
5030 * common/linux-ptrace.c: Include gdb_assert.h.
5031 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5032 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5033 stdint.h.
5034 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5035 functions.
5036 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5037 * linux-nat.c (linux_child_post_attach)
5038 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5039
5040 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5041
5042 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5043 nptl <2.7 bug workaround for core files.
5044
5045 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5046
5047 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5048 clearing.
5049 (save_siginfo): Remove.
5050 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5051 call.
5052 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5053 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5054 * linux-nat.h (struct lwp_info): Remove field siginfo.
5055
5056 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5057
5058 Code cleanup for the next patch.
5059 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5060 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5061 call for it.
5062 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5063 (ia64_linux_stopped_data_address):
5064 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5065 the return value.
5066 * linux-nat.h (linux_nat_get_siginfo): Likewise.
5067 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5068 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5069 call for it.
5070
5071 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5072
5073 PR 14321
5074 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5075 Increase buffer sizes to 2x we need, not just 2x of the previous size.
5076
5077 2012-07-06 Tom Tromey <tromey@redhat.com>
5078
5079 * c-exp.y (DOTDOTDOT): New token.
5080 (func_mod, exp): Use parameter_typelist.
5081 (parameter_typelist): New production.
5082 (tokentab3): Add "..." token.
5083 * eval.c (make_params): Handle varargs.
5084 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5085 varargs.
5086
5087 2012-07-06 Tom Tromey <tromey@redhat.com>
5088
5089 PR exp/9608:
5090 * c-exp.y (%union) <tvec>: Change type.
5091 (func_mod): Now uses <tvec> type.
5092 (exp): Update for tvec change.
5093 (direct_abs_decl): Push the typelist.
5094 (func_mod): Return a typelist.
5095 (nonempty_typelist): Update for tvec change.
5096 * gdbtypes.c (lookup_function_type_with_arguments): New function.
5097 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5098 * parse.c (pop_type_list): New function.
5099 (push_typelist): New function.
5100 (follow_types): Handle tp_function_with_arguments.
5101 * parser-defs.h (type_ptr): New typedef. Define a VEC.
5102 (enum type_pieces) <tp_function_with_arguments>: New constant.
5103 (union type_stack_elt) <typelist_val>: New field.
5104 (push_typelist): Declare.
5105
5106 2012-07-06 Tom Tromey <tromey@redhat.com>
5107
5108 * c-exp.y (%union) <type_stack>: New field.
5109 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5110 (ptr_operator_ts): New production.
5111 (ptype): Update.
5112 * parse.c (type_stack_reserve): New function.
5113 (check_type_stack_depth): Use it.
5114 (pop_type_stack, append_type_stack, push_type_stack)
5115 (get_type_stack, type_stack_cleanup): New functions.
5116 (follow_types): Handle tp_type_stack.
5117 (_initialize_parse): Simplify initialization.
5118 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5119 constant.
5120 (union type_stack_elt) <stack_val>: New field.
5121 (get_type_stack, append_type_stack, push_type_stack)
5122 (type_stack_cleanup): Declare.
5123
5124 2012-07-06 Tom Tromey <tromey@redhat.com>
5125
5126 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5127 Remove.
5128 (struct type_stack): New.
5129 * parse.c (type_stack, type_stack_size, type_stack_depth):
5130 Remove.
5131 (type_stack): New global.
5132 (parse_exp_in_context, check_type_stack_depth)
5133 (insert_into_type_stack, insert_type, push_type, push_type_int)
5134 (insert_type_address_space, pop_type, pop_type_int)
5135 (_initialize_parse): Update.
5136
5137 2012-07-06 Tom Tromey <tromey@redhat.com>
5138
5139 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5140 Remove %type.
5141
5142 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5143
5144 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5145
5146 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5147 Jan Kratochvil <jan.kratochvil@redhat.com>
5148
5149 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5150 alloca with xmalloc/xfree.
5151
5152 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5153
5154 * MAINTAINERS (Write After Approval): Add myself to the list.
5155
5156 2012-07-05 Doug Evans <dje@google.com>
5157
5158 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5159
5160 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5161
5162 * ax-gdb.c (cli/cli-utils.h): New include.
5163 (linespec.h): Ditto.
5164 (agent_eval_command_one): New function.
5165 (agent_command_1): Ditto.
5166 (agent_command): Call function agent_command_1.
5167 (agent_eval_command): Ditto.
5168 (_initialize_ax_gdb): Change help for "maint agent"
5169 and "maint agent-eval".
5170
5171 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5172
5173 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5174 * cli/cli-utils.c (check_for_argument): New function.
5175 * cli/cli-utils.h (check_for_argument): Ditto.
5176
5177 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5178
5179 * NEWS: Mention x32 ABI support.
5180
5181 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5182
5183 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5184 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5185
5186 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5187 and pc_regnum_from_eax to -1. Update SP regnum from
5188 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5189 needed.
5190
5191 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5192 pc_regnum_from_eax.
5193
5194 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5195
5196 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5197 * dwarf2expr.h: Include gdbtypes.h.
5198 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5199 these forward declarations.
5200 (cu_offset, sect_offset): Move these ...
5201 * gdbtypes.h: Remove include dwarf2expr.h.
5202 (cu_offset, sect_offset): ... here.
5203
5204 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5205
5206 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5207 (amd64_linux_sigtramp_code): This.
5208 (amd64_x32_linux_sigtramp_code): New.
5209 (LINUX_SIGTRAMP_LEN): Updated.
5210 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5211
5212 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5213
5214 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5215
5216 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5217
5218 * config.in: Regenerate.
5219 * configure: Regenerate.
5220 * configure.ac: Remove check for gnu/libc-version.h.
5221 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5222 gnu/libc-version.h.
5223 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5224 variables libc_version, libc_major and libc_minor. Replace sscanf by
5225 inferior_has_bug. Extend the comment.
5226
5227 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5228
5229 * linux-thread-db.c (inferior_has_bug): New function.
5230 (thread_db_find_new_threads_silently): Return boolean as checked by
5231 inferior_has_bug, describe it in the comments.
5232 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5233 earlier. Abort the initialization if it returned non-zero.
5234 (thread_db_new_objfile): Exclude debug files.
5235 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5236 if UNTIL_NO_NEW,
5237
5238 2012-07-02 Doug Evans <dje@google.com>
5239
5240 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5241 related to queue management.
5242
5243 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5244 instead of "debug dwarf2-die" in debugging printfs.
5245 (create_debug_info_hash_table_reader): Ditto.
5246 (create_debug_info_hash_table): Ditto.
5247 (init_dwo_file): Ditto.
5248 (init_cutu_and_read_dies): Add debugging printf.
5249 (init_cutu_and_read_dies_no_follow): Ditto.
5250 (process_psymtab_comp_unit_reader): Ditto.
5251
5252 2012-07-02 Stan Shebs <stan@codesourcery.com>
5253
5254 Add target-side support for dynamic printf.
5255 * NEWS: Mention the additional style.
5256 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5257 (struct bp_location): New field cmd_bytecode.
5258 * breakpoint.c: Include format.h.
5259 (disconnected_dprintf): New global.
5260 (parse_cmd_to_aexpr): New function.
5261 (build_target_command_list): New function.
5262 (insert_bp_location): Call it.
5263 (remove_breakpoints_pid): Skip dprintf breakpoints.
5264 (print_one_breakpoint_location): Ditto.
5265 (dprintf_style_agent): New global.
5266 (dprintf_style_enums): Add dprintf_style_agent.
5267 (update_dprintf_command_list): Add agent case.
5268 (agent_printf_command): New function.
5269 (_initialize_breakpoint): Add new commands.
5270 * common/ax.def (printf): New bytecode.
5271 * ax.h (ax_string): Declare.
5272 * ax-gdb.h (gen_printf): Declare.
5273 * ax-gdb.c: Include cli-utils.h, format.h.
5274 (gen_printf): New function.
5275 (maint_agent_print_command): New function.
5276 (_initialize_ax_gdb): Add maint agent-printf command.
5277 * ax-general.c (ax_string): New function.
5278 (ax_print): Add printf disassembly.
5279 * Makefile.in (SFILES): Add format.c
5280 (COMMON_OBS): Add format.o.
5281 * common/format.h: New file.
5282 * common/format.c: New file.
5283 * printcmd.c: Include format.h.
5284 (ui_printf): Call parse_format_string.
5285 * remote.c (remote_state): New field breakpoint_commands.
5286 (PACKET_BreakpointCommands): New enum.
5287 (remote_breakpoint_commands_feature): New function.
5288 (remote_protocol_features): Add new BreakpointCommands entry.
5289 (remote_can_run_breakpoint_commands): New function.
5290 (remote_add_target_side_commands): New function.
5291 (remote_insert_breakpoint): Call it.
5292 (remote_insert_hw_breakpoint): Ditto.
5293 (_initialize_remote): Add new packet configuration for
5294 target-side breakpoint commands.
5295 * target.h (struct target_ops): New field
5296 to_can_run_breakpoint_commands.
5297 (target_can_run_breakpoint_commands): New macro.
5298 * target.c (update_current_target): Handle
5299 to_can_run_breakpoint_commands.
5300
5301 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5302
5303 Execute -ix and -iex only after system and user gdbinit files.
5304 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5305 processing down after gdbinit files.
5306
5307 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5308
5309 Add fnmatch-gnu module.
5310 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5311 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5312 * gnulib/aclocal.m4: Regenerate.
5313 * gnulib/config.in: Regenerate.
5314 * gnulib/configure: Regenerate.
5315 * gnulib/import/dummy.c: Remove.
5316 * gnulib/import/Makefile.am: Regenerate.
5317 * gnulib/import/Makefile.in: Likewise.
5318 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5319 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5320 * gnulib/import/alloca.c: New file.
5321 * gnulib/import/alloca.in.h: Likewise.
5322 * gnulib/import/config.charset: Likewise.
5323 * gnulib/import/fnmatch.c: Likewise.
5324 * gnulib/import/fnmatch.in.h: Likewise.
5325 * gnulib/import/fnmatch_loop.c: Likewise.
5326 * gnulib/import/localcharset.c: Likewise.
5327 * gnulib/import/localcharset.h: Likewise.
5328 * gnulib/import/m4/alloca.m4: Likewise.
5329 * gnulib/import/m4/codeset.m4: Likewise.
5330 * gnulib/import/m4/configmake.m4: Likewise.
5331 * gnulib/import/m4/fcntl-o.m4: Likewise.
5332 * gnulib/import/m4/fnmatch.m4: Likewise.
5333 * gnulib/import/m4/glibc21.m4: Likewise.
5334 * gnulib/import/m4/localcharset.m4: Likewise.
5335 * gnulib/import/m4/locale-fr.m4: Likewise.
5336 * gnulib/import/m4/locale-ja.m4: Likewise.
5337 * gnulib/import/m4/locale-zh.m4: Likewise.
5338 * gnulib/import/m4/mbrtowc.m4: Likewise.
5339 * gnulib/import/m4/mbsinit.m4: Likewise.
5340 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5341 * gnulib/import/m4/mbstate_t.m4: Likewise.
5342 * gnulib/import/m4/stdbool.m4: Likewise.
5343 * gnulib/import/m4/wchar_h.m4: Likewise.
5344 * gnulib/import/m4/wctype_h.m4: Likewise.
5345 * gnulib/import/m4/wint_t.m4: Likewise.
5346 * gnulib/import/mbrtowc.c: Likewise.
5347 * gnulib/import/mbsinit.c: Likewise.
5348 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5349 * gnulib/import/mbsrtowcs-state.c: Likewise.
5350 * gnulib/import/mbsrtowcs.c: Likewise.
5351 * gnulib/import/ref-add.sin: Likewise.
5352 * gnulib/import/ref-del.sin: Likewise.
5353 * gnulib/import/stdbool.in.h: Likewise.
5354 * gnulib/import/streq.h: Likewise.
5355 * gnulib/import/strnlen1.c: Likewise.
5356 * gnulib/import/strnlen1.h: Likewise.
5357 * gnulib/import/verify.h: Likewise.
5358 * gnulib/import/wchar.in.h: Likewise.
5359 * gnulib/import/wctype.in.h: Likewise.
5360
5361 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5362
5363 Support shell wildcards for 'set auto-load safe-path'.
5364 * auto-load.c: Include fnmatch.h.
5365 (filename_is_in_dir): Rename to ...
5366 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5367 it. Update function comment. Rename dir_len to pattern_len. New
5368 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5369 messages. Use gdb_filename_fnmatch.
5370 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5371 pattern.
5372 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5373 * defs.h (gdb_filename_fnmatch): New declaration.
5374 * utils.c: Include fnmatch.h.
5375 (gdb_filename_fnmatch): New function.
5376
5377 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5378
5379 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5380 `-probe' and `-probe-stap' options.
5381
5382 2012-07-01 Yao Qi <yao@codesourcery.com>
5383
5384 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5385 always_inserted_off, and always_inserted_enums.
5386 Change always_inserted_mode's type to 'enum auto_boolean'.
5387 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5388 callers.
5389 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5390 of add_setshow_enum_cmd.
5391 * infrun.c: Remove can_use_displaced_stepping_auto,
5392 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5393 can_use_displaced_stepping_enum.
5394 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5395 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5396 callers.
5397 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5398 add_setshow_enum_cmd.
5399
5400 2012-06-30 Doug Evans <dje@google.com>
5401
5402 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5403 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5404 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5405
5406 2012-06-29 Doug Evans <dje@google.com>
5407
5408 * linespec.c: #include "stack.h".
5409 (decode_line_with_current_source): Moved here from symtab.c and
5410 renamed from decode_line_spec. All callers updated.
5411 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5412 renamed from decode_line_spec_1. All callers updated.
5413 * linespec.h (decode_line_with_current_source): Move declaration here
5414 from symtab.h and renamed from decode_line_spec.
5415 (decode_line_with_last_displayed): Move declaration here from symtab.h
5416 and renamed from decode_line_spec_1.
5417 * macrocmd.c: #include "linespec.h".
5418 * symtab.c: Remove #include "linespec.h".
5419
5420 2012-06-28 Doug Evans <dje@google.com>
5421
5422 * dwarf2read.c (get_cu_length): New function.
5423 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5424 (create_debug_types_hash_table): Ditto.
5425 (init_cutu_and_read_dies): Ditto.
5426 (init_cutu_and_read_dies_no_follow): Ditto.
5427
5428 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5429
5430 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5431 (struct abbrev_table): Define.
5432 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5433 abbrev_table.
5434 (init_cutu_and_read_dies): Update.
5435 (abbrev_table_alloc_abbrev): New function. Replaces
5436 dwarf_alloc_abbrev. All callers updated.
5437 (abbrev_table_add_abbrev): New function.
5438 (abbrev_table_lookup_abbrev): New function. Replaces
5439 dwarf2_lookup_abbrev. All callers updated.
5440 (abbrev_table_read_table): New function. Contents moved here from
5441 dwarf2_read_abbrevs.
5442 (dwarf2_read_abbrevs): Call it.
5443 (abbrev_table_free): New function.
5444 (dwarf2_free_abbrev_table): Call it.
5445
5446 2012-06-28 Stan Shebs <stan@codesourcery.com>
5447
5448 * osdata.c (info_osdata_command): Filter out "Title" columns
5449 from non-MI uses.
5450 * common/linux-osdata.c (struct osdata_type): Add title field.
5451 (osdata_table): Add titles to each entry.
5452 (linux_command_xfer_osdata): Add a column for title data.
5453
5454 2012-06-28 Stan Shebs <stan@codesourcery.com>
5455
5456 Make logging work for MI.
5457 * NEWS: Mention it.
5458 * interps.h (interp_set_logging_ftype): New typedef.
5459 (struct interp_procs): New field set_logging_proc.
5460 (current_interp_set_logging): Declare.
5461 * interps.c (current_interp_set_logging): New function.
5462 * cli/cli-logging.c: Include interps.h.
5463 (set_logging_redirect): Call current_interp_set_logging.
5464 (pop_output_files): Ditto.
5465 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5466 * mi/mi-console.h (mi_console_set_raw): Declare.
5467 * mi/mi-console.c (mi_console_set_raw): New function.
5468 * mi/mi-interp.c (saved_raw_stdout): New global.
5469 (mi_set_logging): New function.
5470 (_initialize_mi_interp): Add it to interp procs.
5471
5472 2012-06-28 Doug Evans <dje@google.com>
5473
5474 * symtab.c (lookup_symbol_aux_objfile): Use
5475 ALL_OBJFILE_PRIMARY_SYMTABS.
5476
5477 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5478
5479 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5480
5481 * common/buffer.c: Include inttypes.h and stdint.h.
5482 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5483
5484 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5485 Pedro Alves <palves@redhat.com>
5486
5487 * gdbthread.h (ALL_THREADS): New macro.
5488 (thread_list): Declare.
5489 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5490 going, but instead fall through to the stepping handling.
5491 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5492 the passed in signal. Adjust debug output.
5493 (resume_callback): Rename to ...
5494 (linux_nat_resume_callback): ... this. Pass the thread's last
5495 stop signal, if in "pass" state.
5496 (linux_nat_resume): Adjust to rename.
5497 (stop_wait_callback): New assertion. Don't respawn signals;
5498 instead let the LWP remain with SIGNALLED set.
5499 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5500 * remote.c (append_pending_thread_resumptions): New.
5501 (remote_vcont_resume): Call it.
5502 * target.h (target_resume): Extend comment.
5503
5504 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5505
5506 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5507
5508 2012-06-27 Doug Evans <dje@google.com>
5509
5510 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5511 Delete have_addr_base, unused. All uses updated.
5512 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5513 (dwarf2_get_pc_bounds): Add ranges_base.
5514 (dwarf2_record_block_ranges): Ditto.
5515
5516 2012-06-27 Tom Tromey <tromey@redhat.com>
5517
5518 PR macros/7961:
5519 * varobj.c (varobj_create): Update.
5520 (varobj_set_value): Update.
5521 * tracepoint.c (validate_actionline): Update.
5522 (encode_actions_1): Update.
5523 * parse.c (parse_exp_1): Add 'pc' argument.
5524 (parse_exp_in_context): Add 'pc' argument. Change how
5525 expression_context_pc is set.
5526 (parse_expression): Update.
5527 (parse_field_expression): Update.
5528 * expression.h (parse_exp_1): Update.
5529 * eval.c (parse_to_comma_and_eval): Update.
5530 * breakpoint.c (set_breakpoint_condition): Update.
5531 (update_watchpoint): Update.
5532 (init_breakpoint_sal): Update
5533 (find_condition_and_thread): Update.
5534 (watch_command_1): Update.
5535 (update_breakpoint_locations): Update.
5536 * ada-lang.c (ada_read_renaming_var_value): Update.
5537 (create_excep_cond_exprs): Update.
5538
5539 2012-06-27 Doug Evans <dje@google.com>
5540
5541 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5542 type units.
5543
5544 2012-06-26 Doug Evans <dje@google.com>
5545
5546 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5547 prototype.
5548 (error_check_comp_unit_head): New arg abbrev_section. All callers
5549 updated.
5550 (read_and_check_comp_unit_head): Ditto.
5551 (read_and_check_type_unit_head): Ditto.
5552
5553 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5554
5555 New attribute 'last' for gdb.Symtab_and_line.
5556 * NEWS (Python Scripting): Add entry about the new attribute.
5557 * python/py-symtab.c (salpy_get_last): New function which
5558 implements the get method for the 'last' attribute of
5559 gdb.Symtab_and_line.
5560 (sal_object_getset): Add entry for the 'last' attribute.
5561
5562 2012-06-26 Doug Evans <dje@google.com>
5563
5564 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5565 (dwo_sections): Add macinfo, macro.
5566 (dwarf2_locate_dwo_sections): Watch for macro sections.
5567 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5568 All callers updated. Handle DWO files.
5569
5570 * NEWS: Mention new options "set debug dwarf2-read" and
5571 "set debug symtab-create".
5572 * dwarf2read.c (dwarf2_read_debug): New static global.
5573 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5574 (process_queue): Ditto.
5575 (process_full_comp_unit): Ditto.
5576 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5577 * elfread.c (elf_symfile_read): Add debugging printf.
5578 * minsyms.c (install_minimal_symbols): Ditto.
5579 * psymtab.c (allocate_psymtab): Ditto.
5580 * symfile.c (allocate_symtab): Ditto.
5581 * symtab.c (symtab_create_debug): New global.
5582 (_initialize_symtab): Add new option "set debug symtab-create".
5583 * symtab.h (symtab_create_debug): Declare.
5584
5585 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5586 (lookup_dwo_type_unit): Ditto.
5587
5588 2012-06-26 Roland McGrath <roland@hack.frob.com>
5589 H.J. Lu <hongjiu.lu@intel.com>
5590
5591 * amd64-linux-nat.c: Include <sys/user.h>.
5592 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5593 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5594 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5595
5596 * configure.ac: Check if the fs_base and gs_base members of
5597 `struct user_regs_struct' exist.
5598 * config.in: Regenerated.
5599 * configure: Likewise.
5600
5601 2012-06-25 Michael Eager <eager@eagercon.com>
5602
5603 PR python/14291
5604 * python/python.c (gdbpy_write): Check for interrupted output.
5605
5606 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5607
5608 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5609 register as a stack alignment in ARM mode.
5610
5611 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5612
5613 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5614 * gnulib/config.in: Regenerate.
5615 * gnulib/configure: Likewise.
5616 * gnulib/import/m4/extensions.m4: Update it.
5617 * gnulib/import/m4/gnulib-common.m4: Likewise.
5618 * gnulib/import/m4/memmem.m4: Likewise.
5619 * gnulib/import/m4/mmap-anon.m4: Likewise.
5620 * gnulib/import/m4/multiarch.m4: Likewise.
5621 * gnulib/import/stdint.in.h: Likewise.
5622
5623 2012-06-24 Yao Qi <yao@codesourcery.com>
5624
5625 * corefile.c (write_memory_with_notification): New.
5626 * gdbcore.h: Declare write_memory_with_notification.
5627 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5628 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5629 * valops.c (value_assign): Likewise.
5630 * python/py-inferior.c (infpy_write_memory): Call
5631 'write_memory_with_notification'.
5632
5633 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5634
5635 * cc-with-index.sh: Use also -ex "set auto-load no".
5636
5637 2012-06-23 Doug Evans <dje@google.com>
5638
5639 PR 14125
5640 * NEWS: Document additions to .gdb_index.
5641 * dwarf2read.c: #include "gdb/gdb-index.h".
5642 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5643 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5644 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5645 (dwarf2_read_index): Recognize version 7.
5646 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5647 block_kind, domain): All callers updated.
5648 (dw2_find_symbol_file): Handle new index CU values.
5649 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5650 (add_index_entry): New args is_static, kind. All callers updated.
5651 (offset_type_compare, uniquify_cu_indices): New functions
5652 (symbol_kind): New function.
5653 (write_psymtabs_to_index): Remove duplicate CU values.
5654 (write_psymtabs_to_index): Write .gdb_index version 7.
5655
5656 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5657
5658 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5659 * configure: Regenerate.
5660
5661 2012-06-20 Yao Qi <yao@codesourcery.com>
5662
5663 * python/py-inferior.c: Update comments of infpy_read_memory
5664 and infpy_write_memory.
5665
5666 2012-06-19 Tom Tromey <tromey@redhat.com>
5667
5668 PR exp/9514:
5669 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5670 (push_type_address_space): Remove.
5671 * parse.c (insert_into_type_stack): New function.
5672 (insert_type): Likewise.
5673 (insert_type_address_space): Rename from push_type_address_space.
5674 Insert tp_space_identifier.
5675 * c-exp.y (ptr_operator): New production.
5676 (abs_decl): Use ptr_operator.
5677 (space_identifier): Call insert_type_address_space.
5678 (ptype): Don't use const_or_volatile_or_space_identifier.
5679 (const_or_volatile_noopt): Call insert_type.
5680 (conversion_type_id, conversion_declarator): New productions.
5681 (operator): Use conversion_type_id.
5682
5683 2012-06-18 Doug Evans <dje@google.com>
5684
5685 * symtab.h (minimal_symbol): New member created_by_gdb.
5686 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5687 created by gdb.
5688 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5689 (search_symbols): Call it instead of lookup_symbol.
5690 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5691
5692 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5693 Adjust address for DW_OP_GNU_addr_index.
5694 * dwarf2expr.h (dwarf_expr_context): Update comment.
5695 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5696 all callers updated. Handle TLS vars described with
5697 DW_OP_GNU_const_index.
5698 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5699 and DW_OP_GNU_const_index.
5700 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5701
5702 * block.c (find_block_in_blockvector): Make explicit the fact that we
5703 ignore GLOBAL_BLOCK.
5704
5705 2012-06-18 Tom Tromey <tromey@redhat.com>
5706
5707 * c-exp.y (operator): Remove trailing space after "delete" and
5708 "delete[]".
5709
5710 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5711 Jan Kratochvil <jan.kratochvil@redhat.com>
5712
5713 Switch i386 and derived targets to ON_STACK.
5714 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5715 (amd64_dicos_init_abi): Remove its installment.
5716 * dicos-tdep.c (dicos_init_abi): Remove the
5717 set_gdbarch_call_dummy_location call. Update the comment here.
5718 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5719 (i386_dicos_init_abi): Remove its installment.
5720 * i386-tdep.c (i386_push_dummy_code): New function.
5721 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5722 i386_push_dummy_code.
5723
5724 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5725
5726 Remove stale dummy frames.
5727 * breakpoint.c: Include dummy-frame.h.
5728 (longjmp_breakpoint_ops): New variable.
5729 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5730 bp_longjmp_call_dummy.
5731 (bpstat_what, bptype_string, print_one_breakpoint_location)
5732 (init_bp_location): Support bp_longjmp_call_dummy.
5733 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5734 (set_longjmp_breakpoint_for_call_dummy)
5735 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5736 functions.
5737 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5738 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5739 FIXME comment and extend the other comment for bp_call_dummy.
5740 (set_longjmp_breakpoint_for_call_dummy)
5741 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5742 * dummy-frame.c: Include gdbthread.h.
5743 (pop_dummy_frame_bpt): New function.
5744 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5745 (dummy_frame_discard): New function.
5746 (cleanup_dummy_frames): Update the comment about longjmps.
5747 * dummy-frame.h (dummy_frame_discard): New declaration.
5748 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5749 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5750 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5751 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5752 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5753 keep_going if IS_LONGJMP and there is no other reason to stop.
5754
5755 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5756
5757 * remote-sim.c (sim_command_completer): Initialize
5758 variable 'result'.
5759
5760 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5761
5762 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5763 * dwarf2loc.c (call_site_parameter_matches): Support
5764 CALL_SITE_PARAMETER_PARAM_OFFSET.
5765 (needs_dwarf_reg_entry_value): Push stub value.
5766 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5767 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5768 * gdbtypes.h (enum call_site_parameter_kind): New item
5769 CALL_SITE_PARAMETER_PARAM_OFFSET.
5770 (struct call_site.parameter.u): New field param_offset.
5771
5772 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5773
5774 Code cleanup: Generalize call_site.parameter key.
5775 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5776 variable dwarf_reg. New variable kind_u. Update parameters to
5777 push_dwarf_reg_entry_value.
5778 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5779 * dwarf2expr.h (enum call_site_parameter_kind)
5780 (union call_site_parameter_u): Forward declarations.
5781 (struct dwarf_expr_context_funcs): Update parameters and their
5782 description for push_dwarf_reg_entry_value.
5783 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5784 * dwarf2loc.c (call_site_parameter_matches): New function.
5785 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5786 description. Use call_site_parameter_matches.
5787 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5788 Update parameters and their description.
5789 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5790 New variable kind_u. Adjust the caller for updated parameters.
5791 (needs_dwarf_reg_entry_value): Update parameters.
5792 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5793 instead of attr. Update for the changed fields of struct
5794 call_site_parameter.
5795 * gdbtypes.h: Include dwarf2expr.h.
5796 (enum call_site_parameter_kind): New.
5797 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5798 fb_offset into new union u.
5799
5800 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5801
5802 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5803 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5804 for x32.
5805
5806 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5807
5808 * amd64-linux-nat.c (compat_x32_clock_t): New.
5809 (compat_x32_siginfo_t): Likewise.
5810 (compat_x32_siginfo_from_siginfo): Likewise.
5811 (siginfo_from_compat_x32_siginfo): Likewise.
5812 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5813 and siginfo_from_compat_x32_siginfo for x32.
5814
5815 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5816
5817 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5818
5819 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5820
5821 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5822 instead of gdbarch_ptr_bit.
5823 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5824 (amd64_supply_native_gregset): Likewise.
5825 (amd64_collect_native_gregset): Likewise.
5826 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5827 (amd64_supply_xsave): Likewise.
5828 (amd64_collect_fxsave): Likewise.
5829 (amd64_collect_xsave): Likewise.
5830
5831 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5832
5833 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5834 (amd64_linux_read_description): Check DS segment register for
5835 x32 process.
5836
5837 2012-06-15 Tom Tromey <tromey@redhat.com>
5838
5839 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5840 init_cutu_and_read_dies.
5841
5842 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5843
5844 * MAINTAINERS (Write After Approval): Add myself to the list.
5845
5846 2012-06-15 Tom Tromey <tromey@redhat.com>
5847
5848 * valops.c (value_find_oload_method_list): Now static.
5849 * value.h (value_find_oload_method_list): Don't declare.
5850
5851 2012-06-15 Tom Tromey <tromey@redhat.com>
5852
5853 * valops.c (find_overload_match): Use value_ind.
5854
5855 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5856
5857 * infrun.c (handle_inferior_event): Correct indentation.
5858
5859 2012-06-14 Doug Evans <dje@google.com>
5860
5861 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5862 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5863 All uses updated.
5864 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5865 updated. Handle DEBUG_LOC_START_LENGTH.
5866 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5867 (loclist_describe_location): Ditto.
5868
5869 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5870
5871 PR backtrace/13866
5872 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5873 after hiding inline functions.
5874
5875 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5876
5877 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5878 _initialize_inf_ttrace.
5879
5880 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5881
5882 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5883 _initialize_hppa_hpux_nat.
5884
5885 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5886
5887 * remote-sim.c (sim_command_completer): Change type of return
5888 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5889
5890 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5891 Jan Kratochvil <jan.kratochvil@redhat.com>
5892
5893 PR tdep/14222
5894 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5895 stack on a 16-byte boundary.
5896
5897 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5898
5899 * jit.c (finalize_symtab): Set function's return type to 'void' by
5900 default.
5901
5902 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5903 H.J. Lu <hongjiu.lu@intel.com>
5904
5905 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5906 Move bits common to both the classic LP64 and the new x32 ILP32
5907 ABI here.
5908 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5909 (amd64_x32_linux_init_abi): New function.
5910 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5911 subtype.
5912
5913 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5914 * i386-tdep.c (i386_pseudo_register_name): Make public.
5915 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5916 * amd64-tdep.c (amd64_dword_names): Add "eip".
5917 (amd64_x32_pseudo_register_type): New function
5918 (amd64_x32_init_abi): New function.
5919
5920 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5921
5922 PR build/14003
5923 * inferior.h (struct inferior_suspend_state): Comment out.
5924 (struct inferior): Comment out the field suspend.
5925 * infrun.c (struct infcall_suspend_state): Comment out the field
5926 inferior_suspend.
5927 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5928 out its assignment.
5929
5930 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5931
5932 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5933 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5934 function comment. Return ERROR for unresolved cases. Implement
5935 returning proper NAME.
5936 (yylex): Accept also NAME from classify_inner_name.
5937 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5938 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5939 LOC_TYPEDEF type.
5940 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5941
5942 2012-06-13 Tom Tromey <tromey@redhat.com>
5943
5944 * breakpoint.c (condition_completer): New function.
5945 (_initialize_breakpoint): Use it.
5946 * value.c (complete_internalvar): New function.
5947 * value.h (complete_internalvar): Declare.
5948
5949 2012-06-13 Tom Tromey <tromey@redhat.com>
5950
5951 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5952 * breakpoint.c (catch_syscall_completer): Return a VEC.
5953 * cli/cli-cmds.c (complete_command): Update.
5954 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5955 (complete_on_enum): Likewise.
5956 * command.h: Include gdb_vecs.h.
5957 (completer_ftype): Change return type.
5958 (complete_on_cmdlist, complete_on_enum): Likewise.
5959 * completer.c (noop_completer, filename_completer)
5960 (location_completer): Return a VEC.
5961 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5962 to a VEC.
5963 (expression_completer, complete_line_internal, complete_line)
5964 (command_completer): Return a VEC.
5965 (gdb_completion_word_break_characters, line_completion_function):
5966 Update.
5967 * completer.h: Include gdb_vecs.h.
5968 (complete_line, noop_completer, filename_completer)
5969 (expression_completer, location_completer, command_completer):
5970 Update.
5971 * f-lang.c (f_word_break_characters): Return a VEC.
5972 * interps.c (interpreter_completer): Return a VEC.
5973 * language.h (struct language_defn)
5974 <la_make_symbol_completion_list>: Return a VEC.
5975 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5976 * symtab.c (free_completion_list): Take a VEC.
5977 (return_val_size, return_val_index): Remove.
5978 (return_val): Now a VEC.
5979 (completion_list_add_name): Update.
5980 (default_make_symbol_completion_list_break_on)
5981 (default_make_symbol_completion_list, make_symbol_completion_list)
5982 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5983 Return a VEC.
5984 (add_filename_to_list): Update.
5985 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5986 <list>: Now a VEC.
5987 (maybe_add_partial_symtab_filename): Update.
5988 (make_source_files_completion_list): Return a VEC.
5989 * symtab.h (default_make_symbol_completion_list_break_on)
5990 (default_make_symbol_completion_list, make_symbol_completion_list)
5991 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5992 (make_source_files_completion_list): Update.
5993
5994 2012-06-13 Tom Tromey <tromey@redhat.com>
5995
5996 * breakpoint.c (add_catch_command): Use completer_ftype.
5997 * breakpoint.h: Include command.h.
5998 (add_catch_command): Use completer_ftype.
5999 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6000 * cli/cli-decode.h (struct cmd_list_element) <completer>:
6001 Use completer_ftype.
6002 * command.h (completer_ftype): New typedef.
6003 (set_cmd_completer): Use it.
6004 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6005 completer_ftype.
6006
6007 2012-06-13 Pedro Alves <palves@redhat.com>
6008
6009 Partial revert of previous change.
6010
6011 * serial.c (scb_base): New global.
6012 (serial_for_fd): New.
6013 (serial_open, serial_fdopen_ops): Link new serial in open serials
6014 chain.
6015 (do_serial_close): Unlink serial from the open serials chain.
6016
6017 2012-06-12 Pedro Alves <palves@redhat.com>
6018
6019 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6020 threads here.
6021 (prepare_for_detach): No longer context switch here in non-stop
6022 mode.
6023 (fetch_inferior_event): Ditto.
6024 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6025 to the event thread before removing breakpoints. Switch to the
6026 event thread before inserting breakpoints and resuming.
6027 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6028 event thread before resuming.
6029 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6030 Switch to the event thread before removing breakpoints.
6031
6032 2012-06-12 Eli Zaretskii <eliz@gnu.org>
6033
6034 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6035 special characters correctly for the Windows shells. See
6036 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6037 report.
6038 [!__MINGW32__]: Remove extra double quote character from special
6039 characters.
6040
6041 2012-06-11 Stan Shebs <stan@codesourcery.com>
6042
6043 * ui-out.h: Remove #if 0 declarations.
6044 * ui-out.c: Remove #if 0 functions.
6045
6046 2012-06-11 Pedro Alves <palves@redhat.com>
6047
6048 * ser-base.c (run_async_handler_and_reschedule): New.
6049 (fd_event, push_event): Use it.
6050 * serial.c (serial_open, serial_fdopen_ops): Set the initial
6051 reference count to 1.
6052 (do_serial_close): Set the bufp field to NULL. Use serial_unref
6053 instead of xfree.
6054 (serial_is_open, serial_ref, serial_unref): New.
6055 * serial.h (serial_open): Adjust comment.
6056 (serial_is_open): Declare.
6057 (serial_close): Adjust comment.
6058 (serial_ref, serial_unref) Declare.
6059 (struct serial): New field 'refcnt'.
6060
6061 2012-06-11 Pedro Alves <palves@redhat.com>
6062
6063 Remove #if 0'd "connect" command, and unnecessary associated
6064 refcounting and serial reuse bits.
6065
6066 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6067 * serial.c (last_serial_opened): Delete.
6068 (scb_base): Delete.
6069 (serial_open): Adjust.
6070 (serial_for_fd): Delete.
6071 (serial_fdopen_ops, do_serial_close): Adjust.
6072 (serial_fdopen_ops): Adjust.
6073
6074 2012-06-11 Pedro Alves <palves@redhat.com>
6075
6076 * serial.c (do_serial_close): Remove early return when SCB is
6077 null.
6078
6079 2012-06-11 Tom Tromey <tromey@redhat.com>
6080
6081 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6082
6083 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6084
6085 Fix regression by the "ambiguous linespec" series.
6086 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
6087 get_last_displayed_symtab and get_last_displayed_line and depending
6088 on CURSAL.
6089
6090 2012-06-11 Tom Tromey <tromey@redhat.com>
6091
6092 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6093 (dw2_find_symbol_file): Use it.
6094
6095 2012-06-11 Michael Eager <eager@eagercon.com>
6096
6097 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6098 * mips-linux-tdep.h (mips_signals): New
6099
6100 2012-06-11 Tom Tromey <tromey@redhat.com>
6101
6102 * infrun.c (handle_inferior_event)
6103 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6104 breakpoint.
6105 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6106 exception logic in all cases. Update comments.
6107 (insert_longjmp_resume_breakpoint): Set the exception resume
6108 breakpoint.
6109
6110 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
6111
6112 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6113
6114 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
6115
6116 * valarith.c (binop_types_user_defined_p): Fix a typo.
6117
6118 2012-06-08 Yao Qi <yao@codesourcery.com>
6119 Chung-Lin Tang <cltang@codesourcery.com>
6120
6121 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6122 * arch-utils.h: Declare.
6123 * gdbarch.sh: Add return_in_first_hidden_param_p.
6124 * gdbarch.c, gdbarch.h: Regenerated.
6125 * infcall.c (call_function_by_hand): Call
6126 gdbarch_return_in_first_hidden_param_p instead of
6127 language_pass_by_reference.
6128
6129 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6130 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6131 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6132 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6133 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6134 `cplus_return_struct_by_reference'.
6135 (tic6x_return_value): Handle language cplusplus.
6136 (tic6x_return_in_first_hidden_param_p): New.
6137 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6138
6139 2012-06-07 Doug Evans <dje@google.com>
6140
6141 * dwarf2read.c (dwarf2_cu): Add comment.
6142
6143 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6144
6145 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6146 variable.
6147 (mips_eabi_push_dummy_call): Likewise.
6148 (mips_n32n64_push_dummy_call): Likewise.
6149 (mips_o32_push_dummy_call): Likewise.
6150 (mips_o64_push_dummy_call): Likewise.
6151
6152 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6153
6154 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6155
6156 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6157
6158 * mips-tdep.c (mips_pseudo_register_type): Use
6159 mips_float_register_p.
6160
6161 2012-06-06 Pedro Alves <palves@redhat.com>
6162
6163 * infrun.c (handle_inferior_event): Remove calls to
6164 reinit_frame_cache that follow a context_switch call.
6165
6166 2012-06-06 Pedro Alves <palves@redhat.com>
6167
6168 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6169 context_switch and remove stale comment.
6170
6171 2012-06-06 Pedro Alves <palves@redhat.com>
6172
6173 * infrun.c (struct execution_control_state): Remove
6174 `new_thread_event' field.
6175 (handle_inferior_event): Simplify new threads handling; don't
6176 resume the inferior if we find a new thread.
6177
6178 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6179
6180 * NEWS: Document the deprecation of SH's 'regs' command.
6181 * inferior.h (all_registers_info): Add function declaration.
6182 * sh-tdep.c (sh_show_regs): Remove variable.
6183 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6184 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6185 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6186 (sh_show_regs_command): Remove functions.
6187 (sh_gdbarch_init): Don't set sh_show_regs.
6188 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6189 'info all-registers'.
6190 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6191 (sh64_show_regs): Remove functions.
6192 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6193
6194 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6195
6196 * configure.ac: Move development=true below AC_INIT.
6197 * configure: Regenerate.
6198
6199 2012-06-05 Stan Shebs <stan@codesourcery.com>
6200
6201 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6202 gdb_stdout.
6203
6204 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6205
6206 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6207 argument as ssize_t.
6208 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6209 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6210 * target.c (target_read_stack, target_write_memory)
6211 (target_write_raw_memory): Likewise.
6212 * target.h (target_read_stack, target_write_memory)
6213 (target_write_raw_memory): Likewise.
6214
6215 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6216
6217 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6218 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6219 * target.c (target_read_memory): Change LEN to ssize_t.
6220 * target.h (target_read_memory): Change LEN to ssize_t.
6221
6222 2012-06-05 Pedro Alves <palves@redhat.com>
6223
6224 PR backtrace/13866
6225
6226 * breakpoint.c (until_break_command): Only fetch the selected
6227 frame after decode_line_1.
6228
6229 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6230
6231 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6232 event breakpoint at _start, __start or main if a program
6233 interpreter is not found.
6234
6235 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6236
6237 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6238 Add declaration.
6239 * windows-tdep.c: #include "objfiles.h".
6240 (windows_iterate_over_objfiles_in_search_order): New function.
6241 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6242 iterate_over_objfiles_in_search_order gdbarch method to
6243 windows_iterate_over_objfiles_in_search_order.
6244 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6245
6246 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6247
6248 * gdbarch.sh: Add generation of
6249 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6250 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6251 (iterate_over_objfiles_in_search_order): New gdbarch method.
6252 * gdbarch.h, gdbarch.c: Regenerate.
6253 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6254 Add declaration.
6255 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6256 New function.
6257 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6258 out of lookup_symbol_aux_symtabs.
6259 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6260 call to lookup_symbol_aux_objfile.
6261 (struct global_sym_lookup_data): New type.
6262 (lookup_symbol_global_iterator_cb): New function.
6263 (lookup_symbol_global): Search for symbol using
6264 gdbarch_iterate_over_objfiles_in_search_order and
6265 lookup_symbol_global_iterator_cb.
6266 * findvar.c (struct minsym_lookup_data): New type.
6267 (minsym_lookup_iterator_cb): New function.
6268 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6269 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6270 and minsym_lookup_iterator_cb.
6271
6272 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6273
6274 Revert the following patch:
6275 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6276 try locating the symbol in the symbol's own objfile first, before
6277 extending the search to all objfiles.
6278 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6279 out of lookup_symbol_aux_symtabs.
6280 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6281 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6282 Do not search EXCLUDE_OBJFILE.
6283 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6284 (lookup_symbol_global): Search for matches in the block's objfile
6285 first, before searching all other objfiles.
6286
6287 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6288
6289 * breakpoint.c (find_condition_and_thread): Stop parsing
6290 as soon as the first invalid keyword is found.
6291
6292 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6293
6294 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6295
6296 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6297
6298 * config/djgpp/djcheck.sh: Add copyright header.
6299
6300 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6301
6302 * copyright.py (update_files, main): Fix path to update-copyright
6303 script.
6304
6305 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6306
6307 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6308 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6309 for which a reminder to update by hand is printed.
6310
6311 2012-06-04 Doug Evans <dje@google.com>
6312
6313 * buildsym.c (make_blockvector): Add comment.
6314
6315 2012-06-04 Pedro Alves <palves@redhat.com>
6316
6317 * arch-utils.c (default_gdb_signal_from_target): Delete.
6318 * arch-utils.h (default_gdb_signal_from_target): Delete.
6319 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6320 gdbarch_gdb_signal_from_target_p.
6321 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6322 predicate).
6323 * gdbarch.h: Regenerate.
6324 * gdbarch.c: Regenerate.
6325
6326 2012-06-04 Pedro Alves <palves@redhat.com>
6327
6328 * gdbarch.sh (gdb_signal_from_target): Mention that the
6329 implementation of the method must be host independent.
6330 * gdbarch.h: Regenerate.
6331
6332 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6333
6334 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6335 parameters.
6336 (target_read_memory_bfd): New function.
6337 (symbol_file_add_from_memory): Use it.
6338
6339 2012-06-03 Doug Evans <dje@google.com>
6340
6341 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6342 of primary symtab.
6343 (basic_lookup_transparent_type): Ditto.
6344
6345 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6346 (ALL_PRIMARY_SYMTABS): Use it.
6347 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6348 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6349 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6350 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6351 (basic_lookup_transparent_type): Ditto.
6352
6353 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6354
6355 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6356 it to optimize resolution of demangled name.
6357
6358 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6359
6360 * configure.ac (development): Define new variable.
6361 Call AC_CHECK_LIB for mcheck if $development.
6362 (ERROR_ON_WARNING): Enable it by default only if $development.
6363 * config.in: Regenerate.
6364 * configure: Regenerate.
6365
6366 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6367
6368 * target.c (target_read_memory): Make LEN argument as size_t.
6369 * target.h (target_read_memory): Likewise.
6370
6371 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6372
6373 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6374
6375 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6376
6377 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6378 BookE interface for PowerPC server processors if not available
6379 in the Linux Kernel.
6380
6381 2012-05-31 Keith Seitz <keiths@redhat.com>
6382
6383 * linespec.c (decode_objc): Add cleanup to free
6384 INFO.FILE_SYMTABS.
6385 (find_linespec_symbols): Add cleanup to free CLASSES.
6386 * symfile.c (find_separate_debug_file_by_debuglink): Add
6387 cleanup to free DEBUGLINK.
6388 * ui-out.c (clear_header_list): No need to check if
6389 HEADER_NEXT.COLHDR is NULL.
6390 Free HEADER_NEXT.COL_NAME.
6391
6392 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6393
6394 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6395 warning.
6396
6397 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6398
6399 * configure.host (gdb_host_cpu): Handle tilegx*.
6400 (gdb_host): Handle tilegx-*-linux*.
6401 * tilegx-linux-nat.c: New file.
6402 * config/tilegx/linux.mh: New file.
6403
6404 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6405
6406 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6407 tilegx-linux-tdep.o.
6408 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6409 tilegx-linux-tdep.c.
6410 * configure.tgt: Handle tilegx-*-linux*.
6411 * tilegx-tdep.h: New file.
6412 * tilegx-tdep.c: New file.
6413 * tilegx-linux-tdep.c: New file.
6414 * regformats/reg-tilegx.dat: New file.
6415
6416 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6417
6418 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6419 accounting of hw watchpoints on ppc.
6420
6421 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6422
6423 * source.c (openp): Expand tilde in path entries.
6424
6425 2012-05-29 Doug Evans <dje@google.com>
6426
6427 * buildsym.c (block_compar): Fix comment.
6428 (end_symtab): Fix and clarify some comments.
6429
6430 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6431 cleanup_undefined_types.
6432 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6433 All callers updated.
6434
6435 2012-05-29 Tom Tromey <tromey@redhat.com>
6436
6437 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6438 fails.
6439 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6440 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6441 fails.
6442 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6443 fails.
6444
6445 2012-05-29 Tristan Gingold <gingold@adacore.com>
6446
6447 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6448 (struct darwin_info): ... New struct.
6449 (solib_darwin_pspace_data): New variable.
6450 (darwin_pspace_data_cleanup): New function.
6451 (get_darwin_info): Likewise.
6452 (darwin_dyld_version_ok, darwin_load_image_infos)
6453 (darwin_solib_get_all_image_info_addr_at_init)
6454 (darwin_solib_read_all_image_info_addr): Add info argument.
6455 Adjust code.
6456 (darwin_current_sos): Use per pspace structure.
6457 (darwin_solib_create_inferior_hook): Likewise.
6458 (darwin_clear_solib): Likewise.
6459 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6460
6461 2012-05-28 Pedro Alves <palves@redhat.com>
6462
6463 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6464 block that uses them. Clear ecss before handling each event.
6465
6466 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6467
6468 * solib-svr4.c (svr4_current_sos): New comment on
6469 svr4_current_sos_via_xfer_libraries fall back.
6470
6471 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6472
6473 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6474 it as a fallback for TYPE_IS_OPAQUE.
6475 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6476 symbols for lookup_symbol.
6477
6478 2012-05-24 John Steele Scott <toojays@toojays.net>
6479
6480 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6481 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6482 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6483 (check_producer): ... this new function, which also checks for ICC
6484 and caches the result.
6485 (producer_is_icc): New function.
6486 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6487 producer was ICC.
6488
6489 2012-05-24 Pedro Alves <palves@redhat.com>
6490
6491 PR gdb/7205
6492
6493 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6494 (default_gdb_signal_to_target): ... this. Add comment.
6495 (default_gdb_signal_from_host): Rename to ...
6496 (default_gdb_signal_from_target): ... this. Add comment.
6497 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6498 (default_gdb_signal_to_target): ... this.
6499 (default_gdb_signal_from_host): Rename to ...
6500 (default_gdb_signal_from_target): ... this.
6501 * corelow.c (core_open): Adjust to naming change. Replace comment.
6502 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6503 (gdb_signal_from_target): ... this. Adjust to
6504 default_gdb_signal_from_host naming change. Extend comment.
6505 (gdb_signal_to_host): Rename to ...
6506 (gdb_signal_to_target): ... this. Adjust to
6507 default_gdb_signal_to_host naming change.
6508 * gdbarch.h, gdbarch.c: Renegerate.
6509
6510 2012-05-24 Pedro Alves <palves@redhat.com>
6511
6512 PR gdb/7205
6513
6514 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6515
6516 2012-05-24 Pedro Alves <palves@redhat.com>
6517
6518 PR gdb/7205
6519
6520 Replace target_signal with gdb_signal throughout.
6521
6522 2012-05-24 Pedro Alves <palves@redhat.com>
6523
6524 PR tui/14159
6525
6526 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6527 string, instead of reusing the va_list argument.
6528
6529 2012-05-24 Tom Tromey <tromey@redhat.com>
6530
6531 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6532 Remove.
6533
6534 2012-05-23 Doug Evans <dje@google.com>
6535
6536 * symtab.c (search_symbols): Formatting fixes.
6537 (print_symbol_info): Formatting fixes.
6538
6539 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6540 int64_t change to leb128 API.
6541 (read_encoded_value, decode_frame_entry_1): Ditto.
6542 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6543 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6544 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6545 (execute_stack_op): Ditto.
6546 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6547 (safe_read_uleb128, safe_read_sleb128): Ditto.
6548 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6549 (dwarf2_compile_expr_to_ax): Ditto.
6550 (locexpr_describe_location_piece): Ditto.
6551 (disassemble_dwarf_expression): Ditto.
6552 (locexpr_describe_location_1): Ditto.
6553
6554 2012-05-23 Stan Shebs <stan@codesourcery.com>
6555 Kwok Cheung Yeung <kcy@codesourcery.com>
6556
6557 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6558 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6559 (mi-cmd-info.o): New rule.
6560 * osdata.h (info_osdata_command): New declaration.
6561 * osdata.c (info_osdata_command): Change to non-static.
6562 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6563 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6564 * mi/mi-cmd-info.c: New file.
6565
6566 2012-05-23 Doug Evans <dje@google.com>
6567
6568 * symtab.c (search_symbols): Pass NULL for file_matcher to
6569 expand_symtabs_matching if there are no files to match.
6570
6571 * gdbtypes.c (lookup_typename): Simplify.
6572
6573 2012-05-23 Pedro Alves <palves@redhat.com>
6574
6575 * arch-utils.h (default_target_signal_to_host): Delete.
6576 * arch-utils.c (default_target_signal_to_host): Delete.
6577 * gdbarch.sh (target_signal_to_host): Remove.
6578 * gdbarch.h, gdbarch.c: Regenerate.
6579
6580 2012-05-22 Doug Evans <dje@google.com>
6581
6582 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6583 "const gdb_byte *".
6584 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6585 (execute_cfa_program): Update to match API of leb128 functions.
6586 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6587 "const gdb_byte *".
6588 (read_unsigned_leb128, read_signed_leb128): Delete.
6589 (read_initial_length): Change type of buf argument to
6590 "const gdb_byte *".
6591 (read_encoded_value): Update to match API of leb128 functions.
6592 (decode_frame_entry): Change result to "const gdb_byte *", and
6593 similarly for "start" parameter.
6594 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6595 (dwarf2_build_frame_info): Change local frame_ptr to
6596 "const gdb_byte *".
6597 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6598 read_uleb128, read_sleb128. All callers updated.
6599 (safe_skip_leb128): New function.
6600 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6601 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6602 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6603 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6604 read_uleb128, read_sleb128.
6605 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6606 (execute_stack_op): Update to match API of leb128 functions.
6607 * dwarf2expr.h: #include "leb128.h".
6608 (read_uleb128, read_sleb128): Delete.
6609 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6610 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6611 * dwarf2loc.c (debug_loc_kind): New enum.
6612 (decode_debug_loc_addresses): New function.
6613 (decode_debug_loc_dwo_addresses): New function.
6614 (dwarf2_find_location_expression): Rewrite.
6615 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6616 (locexpr_describe_location_piece): Ditto.
6617 (disassemble_dwarf_expression): Ditto.
6618 (locexpr_describe_location_1): Ditto.
6619 (loclist_describe_location): Rewrite.
6620 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6621 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6622 (dwarf2_section_buffer_overflow_complaint): Renamed from
6623 dwarf2_macros_too_long_complaint. All callers updated.
6624 (skip_leb128): Delete.
6625 (init_cu_die_reader): Initialize reader->buffer_end.
6626 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6627 (skip_form_bytes): New arg buffer_end. All callers updated.
6628 Replace call to skip_leb128 with gdb_skip_leb128.
6629 (skip_unknown_opcode): New arg mac_end. All callers updated.
6630 (fill_in_loclist_baton): Initialize baton->from_dwo.
6631
6632 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6633
6634 * mips-linux-nat.c (mips_linux_read_description): Use a more
6635 verbose error message.
6636
6637 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6638
6639 * NEWS: Add MIPS/Linux DSP support.
6640 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6641 (SIGCONTEXT_DSPCTL): New macro.
6642 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6643 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6644 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6645 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6646 (N64_SIGCONTEXT_HI3): Likewise.
6647 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6648 (N64_SIGCONTEXT_LO3): Likewise.
6649 (N64_SIGCONTEXT_DSPCTL): Likewise.
6650 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6651 (mips_linux_o32_sigframe_init): Handle DSP registers.
6652 (mips_linux_n32n64_sigframe_init): Likewise.
6653
6654 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6655
6656 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6657 call to abort.
6658
6659 2012-05-22 Pedro Alves <palves@redhat.com>
6660
6661 * target.h (store_waitstatus): Move declaration ...
6662 * inf-child.h (store_waitstatus): ... here.
6663 * target.c: Move inclusion of gdb_wait.h, and ...
6664 (store_waitstatus): ... this ...
6665 * inf-child.c: ... here.
6666 * linux-nat.c: Include inf-child.h.
6667 * rs6000-nat.c: Include inf-child.h.
6668 * spu-linux-nat.c: Include inf-child.h.
6669
6670 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6671
6672 * tracepoint.c (start_tracing): Add missing i18n markup.
6673 (stop_tracing, set_trace_user): Ditto.
6674 (set_trace_notes, set_trace_stop_notes): Ditto.
6675
6676 2012-05-21 Tom Tromey <tromey@redhat.com>
6677
6678 PR c++/7173:
6679 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6680 types.
6681 * value.h (value_cast_pointers): Update.
6682 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6683 (value_cast): Update.
6684 (update_search_result): New function.
6685 (do_search_struct_field): New, from search_struct_field. Check
6686 for ambiguous results.
6687 (search_struct_field): Rewrite.
6688 * infcall.c (value_arg_coerce): Update.
6689 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6690 value_cast_pointers.
6691 * ada-lang.c (ada_convert_actual): Update.
6692
6693 2012-05-21 Tom Tromey <tromey@redhat.com>
6694
6695 * macroexp.c (macro_stringify): Terminate the string.
6696
6697 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6698
6699 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6700 Describe it.
6701 * auto-load.c (auto_load_expand_dir_vars): New function.
6702 (auto_load_safe_path_vec_update): Use it, remove the
6703 substitute_path_component call thanks to it.
6704 (auto_load_objfile_script): Remove the debug_file_directory processing.
6705 Use auto_load_expand_dir_vars, remove the substitute_path_component
6706 call thanks to it.
6707 * configure: Regenerate.
6708 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6709 path. Escape $ also for $debugdir.
6710 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6711 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6712
6713 2012-05-20 Doug Evans <dje@google.com>
6714
6715 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6716 before use. Check for symtab->includes == NULL before scanning it.
6717
6718 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6719
6720 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6721
6722 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6723
6724 * NEWS: Add microMIPS support and "set mips compression",
6725 "show mips compression" commands.
6726 * mips-tdep.h (mips_isa): New enum.
6727 (gdbarch_tdep): Add mips_isa.
6728 (mips_pc_is_mips16): Update prototype.
6729 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6730 * mips-tdep.c (mips_compression_mips16): New variable.
6731 (mips_compression_micromips): Likewise.
6732 (mips_compression_strings): Likewise.
6733 (mips_compression_string): Likewise.
6734 (is_mips16_isa, is_micromips_isa): New functions.
6735 (is_mips16_addr): Rename to...
6736 (is_compact_addr): ... this.
6737 (unmake_mips16_addr): Likewise to...
6738 (unmake_compact_addr): ... this.
6739 (make_mips16_addr): Likewise to...
6740 (make_compact_addr): ... this.
6741 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6742 functions.
6743 (mips_elf_make_msymbol_special): Handle microMIPS code.
6744 (msymbol_is_special): Rename to...
6745 (msymbol_is_mips16): ... this.
6746 (mips_make_symbol_special, mips_pc_is_mips16): Update
6747 accordingly.
6748 (msymbol_is_mips, msymbol_is_micromips): New functions.
6749 (mips16_to_32_reg): Rename to...
6750 (mips_reg3_to_reg): ... this.
6751 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6752 (mips_pc_isa): Likewise.
6753 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6754 code.
6755 (mips_fetch_instruction): Pass return status instead of printing
6756 an error message if requested. Handle microMIPS code. Bail out
6757 on an invalid ISA.
6758 (micromips_op): New macro.
6759 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6760 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6761 (b6s4_op, b7s3_reg): Likewise.
6762 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6763 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6764 (mips_insn_size): New function.
6765 (mips32_next_pc): Update mips_fetch_instruction call.
6766 (micromips_relative_offset7): New function.
6767 (micromips_relative_offset10): Likewise.
6768 (micromips_relative_offset16): Likewise.
6769 (micromips_pc_insn_size): Likewise.
6770 (micromips_bc1_pc): Likewise.
6771 (micromips_next_pc): Likewise.
6772 (unpack_mips16): Update mips_fetch_instruction call.
6773 (extended_mips16_next_pc): Update according to change to
6774 mips16_to_32_reg.
6775 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6776 code.
6777 (mips16_scan_prologue): Update mips_fetch_instruction call.
6778 Update according to change to mips16_to_32_reg.
6779 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6780 (mips_insn16_frame_base_sniffer): Likewise.
6781 (micromips_decode_imm9): New function.
6782 (micromips_scan_prologue): Likewise.
6783 (mips_micro_frame_cache): Likewise.
6784 (mips_micro_frame_this_id): Likewise.
6785 (mips_micro_frame_prev_register): Likewise.
6786 (mips_micro_frame_sniffer): Likewise.
6787 (mips_micro_frame_unwind): New variable.
6788 (mips_micro_frame_base_address): New function.
6789 (mips_micro_frame_base): New variable.
6790 (mips_micro_frame_base_sniffer): New function.
6791 (mips32_scan_prologue): Update mips_fetch_instruction call.
6792 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6793 rather than for MIPS16.
6794 (mips_insn32_frame_base_sniffer): Likewise.
6795 (mips_addr_bits_remove): Handle microMIPS code.
6796 (deal_with_atomic_sequence): Rename to...
6797 (mips_deal_with_atomic_sequence): ... this. Update the type
6798 of the variable used to hold an instruction. Remove the ISA bit
6799 check. Update mips_fetch_instruction call.
6800 (micromips_deal_with_atomic_sequence): New function.
6801 (deal_with_atomic_sequence): Likewise.
6802 (mips_about_to_return): Handle microMIPS code. Update
6803 mips_fetch_instruction call.
6804 (heuristic_proc_start): Check for the standard MIPS ISA rather
6805 than for MIPS16. Update mips_pc_is_mips16 and
6806 mips_fetch_instruction calls. Handle microMIPS code.
6807 (mips_push_dummy_code): Handle microMIPS code.
6808 (mips_eabi_push_dummy_call): Likewise.
6809 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6810 (mips_o64_push_dummy_call): Handle microMIPS code.
6811 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6812 (is_delayed): Remove function.
6813 (mips_single_step_through_delay): Replace the call to is_delayed
6814 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6815 Handle microMIPS code.
6816 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6817 microMIPS code.
6818 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6819 call.
6820 (micromips_in_function_epilogue_p): New function.
6821 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6822 call.
6823 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6824 Handle microMIPS.
6825 (gdb_print_insn_mips): Likewise.
6826 (mips_breakpoint_from_pc): Likewise.
6827 (mips_remote_breakpoint_from_pc): New function.
6828 (mips32_instruction_has_delay_slot): Simplify making use of the
6829 updated mips_fetch_instruction interface.
6830 (micromips_instruction_has_delay_slot): New function.
6831 (mips16_instruction_has_delay_slot): Simplify making use of the
6832 updated mips_fetch_instruction interface.
6833 (mips_adjust_breakpoint_address): Check for the standard MIPS
6834 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6835 calls. Handle microMIPS code.
6836 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6837 (mips_skip_trampoline_code): Handle microMIPS code.
6838 (global_mips_compression): New function.
6839 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6840 file flags. Register the microMIPS remote breakpoint handler
6841 and heuristic frame unwinder.
6842 (show_mips_compression): New function.
6843 (_initialize_mips_tdep): Add the "set mips compression" and
6844 "show mips compression" commands.
6845
6846 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6847
6848 * ada-lang.c:
6849 * ada-tasks.c:
6850 * ada-varobj.c:
6851 * amd64-darwin-tdep.c:
6852 * arm-symbian-tdep.c:
6853 * arm-tdep.c:
6854 * avr-tdep.c:
6855 * ax-gdb.c:
6856 * bfin-linux-tdep.c:
6857 * breakpoint.c:
6858 * c-valprint.c:
6859 * cli/cli-cmds.c:
6860 * coffread.c:
6861 * cp-support.c:
6862 * cris-tdep.c:
6863 * dwarf2-frame-tailcall.c:
6864 * dwarf2-frame.c:
6865 * dwarf2expr.c:
6866 * dwarf2loc.c:
6867 * dwarf2read.c:
6868 * elfread.c:
6869 * eval.c:
6870 * expprint.c:
6871 * f-valprint.c:
6872 * frv-tdep.c:
6873 * h8300-tdep.c:
6874 * hppa-hpux-tdep.c:
6875 * hppa-tdep.c:
6876 * hppanbsd-tdep.c:
6877 * i386-nto-tdep.c:
6878 * i386-tdep.c:
6879 * i387-tdep.c:
6880 * ia64-tdep.c:
6881 * jit.c:
6882 * linespec.c:
6883 * linux-tdep.c:
6884 * lm32-tdep.c:
6885 * m2-valprint.c:
6886 * m32c-tdep.c:
6887 * m32r-rom.c:
6888 * m32r-tdep.c:
6889 * m68k-tdep.c:
6890 * m68klinux-tdep.c:
6891 * mi/mi-main.c:
6892 * microblaze-tdep.c:
6893 * mips-linux-tdep.c:
6894 * mips-tdep.c:
6895 * mn10300-tdep.c:
6896 * p-valprint.c:
6897 * parse.c:
6898 * ppc-linux-tdep.c:
6899 * ppc-sysv-tdep.c:
6900 * printcmd.c:
6901 * python/py-finishbreakpoint.c:
6902 * python/py-inferior.c:
6903 * python/py-infthread.c:
6904 * python/py-type.c:
6905 * python/python.c:
6906 * remote-fileio.c:
6907 * remote-m32r-sdi.c:
6908 * remote-mips.c:
6909 * reverse.c:
6910 * rl78-tdep.c:
6911 * rs6000-aix-tdep.c:
6912 * rs6000-tdep.c:
6913 * s390-tdep.c:
6914 * score-tdep.c:
6915 * sh64-tdep.c:
6916 * skip.c:
6917 * solib-darwin.c:
6918 * solib-dsbt.c:
6919 * solib-frv.c:
6920 * sparc-tdep.c:
6921 * spu-multiarch.c:
6922 * spu-tdep.c:
6923 * stack.c:
6924 * symfile.c:
6925 * symtab.c:
6926 * tic6x-tdep.c:
6927 * tracepoint.c:
6928 * v850-tdep.c:
6929 * valarith.c:
6930 * valprint.c:
6931 * value.c:
6932 * xcoffread.c:
6933 * xtensa-tdep.c:
6934 * ada-lang.c:
6935 * ada-tasks.c:
6936 * ada-varobj.c:
6937 * amd64-darwin-tdep.c:
6938 * arm-symbian-tdep.c:
6939 * arm-tdep.c: Delete unused variables.
6940
6941 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6942
6943 Rename $ddir to $datadir.
6944 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6945 * auto-load.c (auto_load_safe_path_vec_update)
6946 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6947 * configure: Regenerate.
6948 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6949 Likewise. Remove the 'use $ddir' help string.
6950
6951 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6952
6953 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6954 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6955
6956 2012-05-18 Tom Tromey <tromey@redhat.com>
6957
6958 PR exp/13907:
6959 * valprint.h (struct value_print_options) <symbol_print>: New
6960 field.
6961 * valprint.c (user_print_options): Add default for symbol_print.
6962 (show_symbol_print): New function.
6963 (generic_val_print): Respect symbol_print.
6964 (_initialize_valprint): Add "print symbol" setting.
6965 * f-valprint.c (f_val_print): Respect symbol_print.
6966 * c-valprint.c (c_val_print): Respect symbol_print.
6967 * NEWS: Update.
6968 * printcmd.c (print_address_symbolic): Return int. Ignore some
6969 zero-size symbols.
6970 (print_address_demangle): Return int.
6971 * defs.h: (print_address_symbolic): Return int.
6972 * value.h (print_address_demangle): Return int.
6973
6974 2012-05-18 Tom Tromey <tromey@redhat.com>
6975
6976 * valprint.c (val_print_string): Don't print leading space.
6977 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6978 print space before string or vtbl.
6979 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6980 before string.
6981 * jv-valprint.c (java_value_print): Print space before string.
6982 * go-valprint.c (print_go_string): Print space before string.
6983 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6984 space before string.
6985 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6986 space before string or vtbl.
6987 * auxv.c (fprint_target_auxv): Print space after address.
6988
6989 2012-05-18 Tom Tromey <tromey@redhat.com>
6990
6991 * printcmd.c (print_address_demangle): Remove special case for 0.
6992
6993 2012-05-18 Tom Tromey <tromey@redhat.com>
6994
6995 * printcmd.c (print_address_demangle): Add 'opts' argument.
6996 * p-valprint.c (pascal_val_print): Update.
6997 * jv-valprint.c (java_val_print): Update.
6998 * value.h: Update.
6999 * valprint.c (generic_val_print): Update.
7000 (print_function_pointer_address): Add 'options' argument. Remove
7001 'addressprint' argument. Update.
7002 * m2-valprint.c (print_unpacked_pointer): Update.
7003 * gnu-v3-abi.c (print_one_vtable): Update.
7004 (gnuv3_print_method_ptr): Update.
7005 * f-valprint.c (f_val_print): Update.
7006 * cp-valprint.c (cp_print_value_fields): Update.
7007 * valprint.h (print_function_pointer_address): Update.
7008 * c-valprint.c (c_val_print): Update.
7009
7010 2012-05-18 Tom Tromey <tromey@redhat.com>
7011
7012 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7013 directly corresponding to the found psymtab.
7014 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7015 (dw2_find_pc_sect_symtab): Use it.
7016 * block.h (blockvector_contains_pc): Declare.
7017 * block.c (find_block_in_blockvector): New function.
7018 (blockvector_for_pc_sect): Use it.
7019 (blockvector_contains_pc): New function.
7020
7021 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7022
7023 * mips-tdep.h (mips_write_pc): New prototype.
7024 * mips-tdep.c (mips_write_pc): Make external, add description.
7025 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7026 add description.
7027
7028 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7029
7030 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7031 mips_regnum->pc.
7032 (mips_unwind_pc, mips_write_pc): Likewise.
7033 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7034 gdbarch_read_pc.
7035
7036 2012-05-17 Joel Brobecker <brobecker@adacore.com>
7037
7038 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7039 proc_warn, proc_error, proc_get_status, proc_flags,
7040 proc_why, proc_what, proc_nsysarg, proc_sysargs,
7041 proc_set_run_on_last_close, proc_unset_run_on_last_close,
7042 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7043 proc_stop_process, proc_wait_for_stop, proc_run_process,
7044 proc_set_traced_signals, proc_set_traced_faults,
7045 proc_set_traced_sysentry, proc_set_traced_sysexit,
7046 proc_set_held_signals, proc_get_held_signals,
7047 proc_get_traced_signals, proc_get_traced_faults,
7048 proc_get_traced_sysentry, proc_get_traced_sysexit,
7049 proc_clear_current_fault, proc_set_current_signal,
7050 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7051 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7052 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7053 proc_get_current_thread, proc_get_current_thread,
7054 proc_get_current_thread, proc_update_threads,
7055 proc_update_threads, proc_update_threads, proc_update_threads,
7056 proc_iterate_over_threads, procfs_find_new_threads,
7057 procfs_pid_to_str): Make static. Remove advance declaration.
7058 (proc_cursig): Make static. Conditionalized defintion on
7059 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7060 (proc_syscall, proc_set_kill_on_last_close,
7061 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7062 proc_get_pending_signals, proc_get_signal_actions,
7063 proc_trace_signal, proc_ignore_signal): Delete.
7064
7065 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7066
7067 * coffread.c (cs_section_address): Passing proper argument for
7068 `bfd_get_section_vma'.
7069 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7070 `bfd_get_section_flags'.
7071 * remote.c (remote_trace_set_readonly_regions): Likewise, for
7072 `bfd_get_section_vma'.
7073
7074 2012-05-16 Tom Tromey <tromey@redhat.com>
7075
7076 PR macros/13205:
7077 * macrotab.h: (macro_define_special): Declare.
7078 (enum macro_special_kind): New.
7079 (struct macro_definition) <argc, replacement>: Update comments.
7080 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7081 (macro_define_object_internal): New function.
7082 (macro_define_object): Use it.
7083 (macro_define_special): New function.
7084 (fixup_definition): New function.
7085 (macro_lookup_definition, foreach_macro_in_scope)
7086 (foreach_macro): Use fixup_definition.
7087 * macroexp.h (macro_stringify): Declare.
7088 * macroexp.c (free_buffer_return_text): New function.
7089 (stringify): Constify "arg".
7090 (macro_stringify): New function.
7091 * dwarf2read.c (macro_start_file): Call macro_define_special.
7092
7093 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
7094 Maciej W. Rozycki <macro@mips.com>
7095
7096 * breakpoint.h (bp_location): Add related_address member.
7097 * inferior.h (get_return_value): Take a pointer to struct value
7098 instead of struct type for the function requested.
7099 * value.h (using_struct_return): Likewise.
7100 * gdbarch.sh (return_value): Take a pointer to struct value
7101 instead of struct type for the function requested.
7102 * breakpoint.c (set_breakpoint_location_function): Initialize
7103 related_address for bp_gnu_ifunc_resolver breakpoints.
7104 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7105 requested function's address to gdbarch_return_value.
7106 * eval.c (evaluate_subexp_standard): Pass the requested
7107 function's address to using_struct_return.
7108 * infcall.c (call_function_by_hand): Pass the requested
7109 function's address to using_struct_return and
7110 gdbarch_return_value.
7111 * infcmd.c (get_return_value): Take a pointer to struct value
7112 instead of struct type for the function requested.
7113 (print_return_value): Update accordingly.
7114 (finish_command_continuation): Likewise.
7115 * stack.c (return_command): Pass the requested function's
7116 address to using_struct_return and gdbarch_return_value.
7117 * value.c (using_struct_return): Take a pointer to struct value
7118 instead of struct type for the function requested. Pass the
7119 requested function's address to gdbarch_return_value.
7120 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7121 New function_value member, replacing function_type.
7122 (bpfinishpy_dealloc): Update accordingly.
7123 (bpfinishpy_pre_stop_hook): Likewise.
7124 (bpfinishpy_init): Likewise. Record the requested function's
7125 address.
7126 * mips-tdep.c (mips_fval_reg): New enum.
7127 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7128 words put in GP registers.
7129 (mips_o64_push_dummy_call): Update a comment.
7130 (mips_o32_return_value): Take a pointer to struct value instead
7131 of struct type for the function requested and use it to check if
7132 using the MIPS16 calling convention. Return the designated
7133 general purpose registers for floating-point values returned in
7134 MIPS16 mode.
7135 (mips_o64_return_value): Likewise.
7136 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7137 (ppc_sysv_abi_broken_return_value): Likewise.
7138 (ppc64_sysv_abi_return_value): Likewise.
7139 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7140 value instead of struct type for the function requested.
7141 * amd64-tdep.c (amd64_return_value): Likewise.
7142 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7143 * arm-tdep.c (arm_return_value): Likewise.
7144 * avr-tdep.c (avr_return_value): Likewise.
7145 * bfin-tdep.c (bfin_return_value): Likewise.
7146 * cris-tdep.c (cris_return_value): Likewise.
7147 * frv-tdep.c (frv_return_value): Likewise.
7148 * h8300-tdep.c (h8300_return_value): Likewise.
7149 (h8300h_return_value): Likewise.
7150 * hppa-tdep.c (hppa32_return_value): Likewise.
7151 (hppa64_return_value): Likewise.
7152 * i386-tdep.c (i386_return_value): Likewise.
7153 * ia64-tdep.c (ia64_return_value): Likewise.
7154 * iq2000-tdep.c (iq2000_return_value): Likewise.
7155 * lm32-tdep.c (lm32_return_value): Likewise.
7156 * m32c-tdep.c (m32c_return_value): Likewise.
7157 * m32r-tdep.c (m32r_return_value): Likewise.
7158 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7159 * m68k-tdep.c (m68k_return_value): Likewise.
7160 (m68k_svr4_return_value): Likewise.
7161 * m88k-tdep.c (m88k_return_value): Likewise.
7162 * mep-tdep.c (mep_return_value): Likewise.
7163 * microblaze-tdep.c (microblaze_return_value): Likewise.
7164 * mn10300-tdep.c (mn10300_return_value): Likewise.
7165 * moxie-tdep.c (moxie_return_value): Likewise.
7166 * mt-tdep.c (mt_return_value): Likewise.
7167 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7168 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7169 (ppc_sysv_abi_broken_return_value): Likewise.
7170 (ppc64_sysv_abi_return_value): Likewise.
7171 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7172 * rl78-tdep.c (rl78_return_value): Likewise.
7173 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7174 * rx-tdep.c (rx_return_value): Likewise.
7175 * s390-tdep.c (s390_return_value): Likewise.
7176 * score-tdep.c (score_return_value): Likewise.
7177 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7178 (sh_return_value_fpu): Likewise.
7179 * sh64-tdep.c (sh64_return_value): Likewise.
7180 * sparc-tdep.c (sparc32_return_value): Likewise.
7181 * sparc64-tdep.c (sparc64_return_value): Likewise.
7182 * spu-tdep.c (spu_return_value): Likewise.
7183 * tic6x-tdep.c (tic6x_return_value): Likewise.
7184 * v850-tdep.c (v850_return_value): Likewise.
7185 * vax-tdep.c (vax_return_value): Likewise.
7186 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7187 * xtensa-tdep.c (xtensa_return_value): Likewise.
7188 * gdbarch.c: Regenerate.
7189 * gdbarch.h: Regenerate.
7190
7191 2012-05-15 Tom Tromey <tromey@redhat.com>
7192
7193 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7194
7195 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7196
7197 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7198 of command in two error message.
7199
7200 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7201
7202 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7203
7204 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7205
7206 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7207
7208 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7209
7210 * NEWS (show auto-load scripts-directory): Add forgotten command.
7211
7212 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7213
7214 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7215 parameters.
7216
7217 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7218
7219 * amd64-tdep.c: Include features/i386/x32.c and
7220 features/i386/x32-avx.c.
7221 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7222 initialize_tdesc_x32_avx.
7223
7224 2012-05-14 Stan Shebs <stan@codesourcery.com>
7225
7226 Add dynamic printf.
7227 * breakpoint.h (enum bptype): New type bp_dprintf.
7228 (struct breakpoint): New field extra_string.
7229 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7230 (create_breakpoint): Add extra_string arg.
7231 * breakpoint.c (dprintf_breakpoint_ops): New.
7232 (is_breakpoint): Add bp_dprintf.
7233 (bpstat_what): Add dprintf case.
7234 (bptype_string): Ditto.
7235 (print_one_breakpoint_location): Ditto.
7236 (init_bp_location): Ditto.
7237 (bkpt_print_mention): Ditto.
7238 (dprintf_style_enums): New array.
7239 (dprintf_style): New global.
7240 (dprintf_function): New global.
7241 (dprintf_channel): New global.
7242 (update_dprintf_command_list): New function.
7243 (update_dprintf_commands): New function.
7244 (init_breakpoint_sal): Add extra_string argument, handle it.
7245 (create_breakpoint_sal): Add extra_string argument.
7246 (create_breakpoints_sal): Add extra_string argument, update callers.
7247 (find_condition_and_thread): Add extra argument.
7248 (create_breakpoint): Add extra_string argument, record it.
7249 (dprintf_command): New function.
7250 (break_command_1): Add arg to create_breakpoint call.
7251 (handle_gnu_v3_exceptions): Ditto.
7252 (trace_command): Ditto.
7253 (ftrace_command): Ditto.
7254 (strace_command): Ditto.
7255 (bkpt_print_mention): Add dprintf case.
7256 (create_breakpoint_sal_default): Add extra_string argument.
7257 (_initialize_breakpoint): Add new commands.
7258 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7259 * python/py-breakpoint.c (bppy_init): Ditto.
7260 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7261
7262 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7263
7264 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7265
7266 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7267
7268 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7269 unsigned long long.
7270
7271 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7272
7273 Add a new function gdb.find_pc_line to the Python API.
7274 * NEWS (Python Scripting): Add entry about the new function.
7275 * python/python.c (gdbpy_find_pc_line): New function which
7276 implements gdb.find_pc_line.
7277 (GdbMethods): Add entry for the new function.
7278
7279 2012-05-12 Pedro Alves <palves@redhat.com>
7280
7281 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7282 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7283
7284 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7285
7286 * inferior.c: Include completer.h
7287 (initialize_inferiors): Set completer of add-inferior to
7288 filename_completer.
7289
7290 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7291
7292 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7293 gdbarch_ptr_bit for x32 core dump.
7294
7295 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7296
7297 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7298 and features/i386/x32-avx-linux.c.
7299
7300 2012-05-11 Stan Shebs <stan@codesourcery.com>
7301 Kwok Cheung Yeung <kcy@codesourcery.com>
7302
7303 * NEWS: Describe new info os commands.
7304 * common/linux-osdata.c (PID_T, TIME_T): Define.
7305 (MAX_PID_T_STRLEN): New.
7306 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7307 MAX_PID_T_STRLEN.
7308 (command_from_pid): Add comment. Change to use PID_T.
7309 (commandline_from_pid): Change to use PID_T.
7310 (user_from_pid): Add comment.
7311 (get_process_owner): Add comment. Change to use PID_T and
7312 MAX_PID_T_STRLEN.
7313 (get_number_of_cpu_cores): Add comment.
7314 (get_cores_used_by_process): Add comment. Change to use PID_T and
7315 MAX_PID_T_STRLEN.
7316 (linux_xfer_osdata_processes): Change to use PID_T and
7317 MAX_PID_T_STRLEN.
7318 (compare_processes): New function.
7319 (linux_xfer_osdata_processgroups): New function.
7320 (linux_xfer_osdata_threads): Change to use PID_T.
7321 (linux_xfer_osdata_fds): New function.
7322 (format_socket_state, print_sockets): New functions.
7323 (union socket_addr): New union.
7324 (linux_xfer_osdata_isockets): New function.
7325 (time_from_time_t, group_from_gid): New functions.
7326 (linux_xfer_osdata_shm): New function.
7327 (linux_xfer_osdata_sem): New function.
7328 (linux_xfer_osdata_msg): New function.
7329 (linux_xfer_osdata_modules): New function.
7330 (osdata_table): Add new entries.
7331 * common/buffer.c (buffer_xml_printf): Add support for long and
7332 long long format specifiers.
7333
7334 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7335
7336 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7337 (tdesc_x32_avx_linux): Likewise.
7338
7339 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7340
7341 Implement multi-component --with-auto-load-dir.
7342 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7343 entries.
7344 (--with-auto-load-safe-path): Update the default value description.
7345 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7346 New.
7347 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7348 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7349 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7350 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7351 "set auto-load scripts-directory".
7352 * config.in: Regenerate.
7353 * configure: Regenerate.
7354 * configure.ac (--with-auto-load-dir): New configure option.
7355 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7356
7357 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7358
7359 Provide $ddir substitution for --with-auto-load-safe-path.
7360 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7361 entries.
7362 * auto-load.c: Include observer.h.
7363 (auto_load_safe_path_vec_update): Call substitute_path_component for
7364 each component. New variable ddir_subst.
7365 (auto_load_gdb_datadir_changed): New function.
7366 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7367 AUTO_LOAD_SAFE_PATH. New comment.
7368 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7369 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7370 * config.in: Regenerate.
7371 * configure: Regenerate.
7372 * configure.ac (--auto-load-safe-path): Rename
7373 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7374 GDB_DATADIR/auto-load.
7375 * defs.h (substitute_path_component): New declaration.
7376 * top.c: Include observer.h.
7377 (set_gdb_datadir): New function.
7378 (init_main): Install it for "set data-directory".
7379 * utils.c (substitute_path_component): New function.
7380
7381 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7382
7383 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7384 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7385 DEBUG_FILE_DIRECTORY. Handle multiple components of
7386 DEBUG_FILE_DIRECTORY.
7387
7388 2012-05-10 Tom Tromey <tromey@redhat.com>
7389
7390 * dwarf2read.c (recursively_write_psymbols): New function.
7391 (write_psymtabs_to_index): Use it.
7392
7393 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7394 field.
7395 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7396 (load_partial_comp_unit): Update.
7397 (queue_comp_unit): Add argument 'pretend_language'.
7398 (process_queue): Update.
7399 (psymtab_to_symtab_1): Skip dependencies that have a user.
7400 (load_partial_comp_unit_reader): Give meaning to the 'data'
7401 argument.
7402 (load_full_comp_unit): Add 'pretend_language' argument.
7403 (process_full_comp_unit): Add 'pretend_language' argument. Set
7404 language on CU.
7405 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7406 Update.
7407 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7408 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7409 Update.
7410 (prepare_one_comp_unit): Add 'pretend_language' argument.
7411
7412 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7413 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7414 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7415 (dw2_do_instantiate_symtab): Check whether symtab was read in
7416 before queueing.
7417 (dw2_instantiate_symtab): Add assertion. Call
7418 process_cu_includes.
7419 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7420 (partial_symtab_p): New typedef.
7421 (set_partial_user): New function.
7422 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7423 (scan_partial_symbols): Add imported CU to imported_symtabs.
7424 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7425 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7426 (get_symtab, recursively_compute_inclusions)
7427 (compute_symtab_includes, process_cu_includes)
7428 (process_imported_unit_die): New functions.
7429 (process_die) <DW_TAG_imported_unit>: New case.
7430 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7431
7432 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7433 comment.
7434 (struct partial_die_info) <locdesc>: Remove.
7435 <d>: New field.
7436 (process_psymtab_comp_unit): Add 'read_partial' argument.
7437 Update.
7438 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7439 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7440 (add_partial_symbol): Update.
7441 (process_die): Handle DW_TAG_partial_unit.
7442 (read_file_scope): Update comment.
7443 (load_partial_dies): Handle DW_TAG_imported_unit.
7444 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7445 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7446
7447 2012-05-10 Tom Tromey <tromey@redhat.com>
7448
7449 * cc-with-dwz.sh: New file.
7450
7451 2012-05-10 Tom Tromey <tromey@redhat.com>
7452
7453 * symtab.h (struct symtab) <includes, user>: New fields.
7454 * block.h (struct block_iterator) <d, idx, which>: New fields.
7455 * block.c (initialize_block_iterator, find_iterator_symtab)
7456 (block_iterator_step, block_iter_name_step)
7457 (block_iter_match_step): New functions.
7458 (block_iterator_first, block_iterator_next)
7459 (block_iter_name_first, block_iter_name_next)
7460 (block_iter_match_first, block_iter_match_next): Rewrite.
7461 (get_block_symtab): New function.
7462
7463 2012-05-10 Tom Tromey <tromey@redhat.com>
7464
7465 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7466 set_block_symtab.
7467 * jit.c (finalize_symtab): Use allocate_global_block,
7468 set_block_symtab.
7469 * buildsym.c (finish_block_internal): New function, from old
7470 finish_block.
7471 (finish_block): Rewrite.
7472 (end_symtab): Use finish_block_internal, set_block_symtab.
7473 * block.h (struct global_block): New.
7474 (allocate_global_block, set_block_symtab): Declare.
7475 * block.c (allocate_global_block, set_block_symtab): New
7476 functions.
7477
7478 2012-05-10 Tom Tromey <tromey@redhat.com>
7479
7480 * psymtab.c (partial_map_expand_apply): Add assertion.
7481 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7482 (psymtab_to_symtab): Find unshared psymtab.
7483 (dump_psymtab): Print including psymtabs.
7484 (recursively_search_psymtabs): New function.
7485 (expand_symtabs_matching_via_partial): Use it.
7486 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7487 fields.
7488 (enum psymtab_search_status): New.
7489
7490 2012-05-10 Tom Tromey <tromey@redhat.com>
7491
7492 * tracepoint.c (scope_info): Update.
7493 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7494 (find_pc_sect_symtab, search_symbols)
7495 (default_make_symbol_completion_list_break_on)
7496 (make_file_symbol_completion_list): Update.
7497 * symmisc.c (dump_symtab_1): Update.
7498 * stack.c (print_frame_args, iterate_over_block_locals)
7499 (print_frame_labels, iterate_over_block_arg_vars): Update.
7500 * python/py-block.c (block_object) <dict>: Remove.
7501 <block>: New field.
7502 <iter>: Change type.
7503 (blpy_iter): Update.
7504 (blpy_block_syms_iternext): Update.
7505 * psymtab.c (map_block): Use block iterators.
7506 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7507 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7508 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7509 * infrun.c (check_exception_resume): Update.
7510 * cp-support.c (make_symbol_overload_list_block): Update.
7511 * coffread.c (patch_opaque_types): Update.
7512 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7513 * block.h (struct block_iterator): New.
7514 (block_iterator_first, block_iterator_next, block_iter_name_first)
7515 (block_iter_name_next, block_iter_match_first)
7516 (block_iter_match_next): Declare.
7517 (ALL_BLOCK_SYMBOLS): Redefine.
7518 * block.c (block_iterator_first, block_iterator_next)
7519 (block_iter_name_first, block_iter_name_next)
7520 (block_iter_match_first, block_iter_match_next): New functions.
7521 * ada-lang.c (ada_add_block_symbols)
7522 (ada_make_symbol_completion_list): Use block iterator.
7523
7524 2012-05-10 Tom Tromey <tromey@redhat.com>
7525
7526 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7527 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7528 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7529 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7530 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7531 Update.
7532
7533 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7534
7535 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7536 print-file-var-lib2.c, print-file-var-main.c and
7537 print-file-var.exp (located in gdb/testsuite/gdb.base).
7538
7539 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7540
7541 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7542 try locating the symbol in the symbol's own objfile first, before
7543 extending the search to all objfiles.
7544 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7545 out of lookup_symbol_aux_symtabs.
7546 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7547 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7548 Do not search EXCLUDE_OBJFILE.
7549 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7550 (lookup_symbol_global): Search for matches in the block's objfile
7551 first, before searching all other objfiles.
7552
7553 2012-05-10 Tristan Gingold <gingold@adacore.com>
7554
7555 * printcmd.c (set_command): Add pre/post inc/dec.
7556
7557 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7558
7559 * gdb.1: Document -ex option.
7560
7561 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7562
7563 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7564 * inferior.h (AT_SYMBOL): Delete.
7565
7566 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7567
7568 * mips-tdep.c (mips_push_dummy_code): New function.
7569 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7570 ON_STACK and install mips_push_dummy_code as our gdbarch
7571 push_dummy_code routine.
7572
7573 2012-05-09 Pedro Alves <palves@redhat.com>
7574
7575 * target.c (set_maintenance_target_async_permitted): Rename to ...
7576 (set_target_async_command): ... this.
7577 (show_maintenance_target_async_permitted): Rename to ...
7578 (show_target_async_command): ... this.
7579 (initialize_targets): Adjust.
7580
7581 2012-05-08 Doug Evans <dje@google.com>
7582
7583 * go-exp.y (classify_name): Add missing assignment of fields of
7584 yylval.ssym.
7585
7586 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7587
7588 Display the ">" prompt in interactive mode while reading canned
7589 commands, even when the current interpreter is MI.
7590
7591 * interps.c (interp_set_temp): New function.
7592
7593 * interps.h (interp_set_temp): Add prototype.
7594
7595 * cli/cli-script.c (restore_interp): New cleanup function.
7596 (read_command_lines): Temporarily override the current interpreter
7597 with CLI and arrange for restoring the original one.
7598
7599 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7600
7601 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7602
7603 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7604
7605 * probe.c (parse_probes): Move conditional to check for
7606 debuginfo files from here...
7607 * stap-probe.c (stap_get_probes): ... to here.
7608
7609 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7610 H.J. Lu <hongjiu.lu@intel.com>
7611
7612 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7613 `movl %esp, %ebp' for the X32 ABI.
7614
7615 2012-05-07 Tom Tromey <tromey@redhat.com>
7616
7617 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7618 get_DW_TAG_name.
7619 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7620 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7621 (dwarf_stack_op_name): Remove.
7622 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7623 (decode_locdesc): Use get_DW_OP_name.
7624 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7625 (dwarf2_compile_expr_to_ax): Likewise.
7626 (disassemble_dwarf_expression): Likewise.
7627 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7628
7629 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7630
7631 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7632 (sh_linux_sigtramp_cache): New function.
7633 (sh_linux_sigreturn_init): New function.
7634 (sh_linux_rt_sigreturn_init): New function.
7635 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7636 patterns.
7637 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7638 syscall codes.
7639 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7640 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7641 (sh_linux_init_abi): Add init calls to register new tramp_frame
7642 definitions under 32-bit SH, update comments.
7643
7644 2012-05-07 Pedro Alves <palves@redhat.com>
7645
7646 PR gdb/10952
7647
7648 * amd64-linux-tdep.c: Include glibc-tdep.h.
7649 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7650 gdbarch_skip_solib_resolver callback.
7651
7652 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7653
7654 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7655 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7656 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7657 (add_auto_load_safe_path): Change the error message.
7658 (_initialize_auto_load): Change the "safe-path" help text.
7659 * configure: Regenerate
7660 * configure.ac (--without-auto-load-safe-path): Set
7661 WITH_AUTO_LOAD_SAFE_PATH to /.
7662
7663 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7664
7665 * stap-probe.h: Do not include unecessary `probe.h'.
7666
7667 2012-05-05 Alan Modra <amodra@gmail.com>
7668
7669 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7670 bfd_und_section_ptr.
7671 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7672 and bfd_com_section_ptr.
7673
7674 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7675
7676 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7677
7678 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7679
7680 * windows-nat.h (segment_register_p_ftype): New typedef.
7681 (windows_set_segment_register_p): Add declaration.
7682 * windows-nat.c (segment_register_p): New static global.
7683 (windows_set_segment_register_p): New function.
7684 (do_windows_fetch_inferior_registers): Add special handling
7685 for segment registers.
7686 * amd64-windows-nat.c: #include "amd64-tdep.h".
7687 (amd64_windows_segment_register_p): New function.
7688 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7689 * i386-windows-nat.c: #include "i386-tdep.h".
7690 (i386_windows_segment_register_p): New function.
7691 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7692
7693 2012-05-04 Tristan Gingold <gingold@adacore.com>
7694
7695 * printcmd.c (set_command): Emit a warning if the expression is not
7696 an assignment.
7697
7698 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7699
7700 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7701 Make static.
7702
7703 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7704
7705 * stap-probe.c (stap_is_operator): Change declaration.
7706 (stap_get_opcode): Change return value.
7707 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7708 `stap_parse_argument_1'.
7709
7710 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7711
7712 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7713 debug log.
7714
7715 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7716
7717 Add two new methods global_block and static_block to gdb.Symtab
7718 objects.
7719 * NEWS (Python scripting): Add entry about the new methods.
7720 * python/py-symtab.c (stpy_global_block): New function which
7721 implements the gdb.Symtab.global_block() method.
7722 (stpy_static_block): New function which implements the
7723 gdb.Symtab.static_block() method.
7724 (symtab_object_methods): Add entries for the two new methods.
7725
7726 2012-05-03 Doug Evans <dje@google.com>
7727
7728 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7729 files.
7730
7731 2012-05-03 Yao Qi <yao@codesourcery.com>
7732
7733 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7734 space.
7735 (i386_process_record): Ditto.
7736
7737 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7738
7739 * infcall.c (unwind_on_signal_p): Make static.
7740
7741 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7742
7743 * sol-thread.c (solaris_pid_to_str): Make static.
7744 (_initialize_sol_thread): Add prototype.
7745
7746 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7747
7748 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7749
7750 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7751
7752 * MAINTAINERS: Remove myself.
7753
7754 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7755
7756 Fix --without-auto-load-safe-path for MS-Windows host platform.
7757 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7758
7759 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7760
7761 * gdb_curses.h: Undefine KEY_EVENT before including curses
7762 headers. Move "#undef MOUSE_MOVED" before any curses header
7763 inclusion.
7764
7765 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7766
7767 * features/i386/i386-mmx-linux.c: Regenerate.
7768 * features/rs6000/powerpc-32.c: Likewise.
7769 * features/rs6000/powerpc-32l.c: Likewise.
7770 * features/rs6000/powerpc-403.c: Likewise.
7771 * features/rs6000/powerpc-403gc.c: Likewise.
7772 * features/rs6000/powerpc-405.c: Likewise.
7773 * features/rs6000/powerpc-505.c: Likewise.
7774 * features/rs6000/powerpc-601.c: Likewise.
7775 * features/rs6000/powerpc-602.c: Likewise.
7776 * features/rs6000/powerpc-603.c: Likewise.
7777 * features/rs6000/powerpc-604.c: Likewise.
7778 * features/rs6000/powerpc-64.c: Likewise.
7779 * features/rs6000/powerpc-64l.c: Likewise.
7780 * features/rs6000/powerpc-750.c: Likewise.
7781 * features/rs6000/powerpc-860.c: Likewise.
7782 * features/rs6000/powerpc-e500.c: Likewise.
7783 * features/rs6000/powerpc-e500l.c: Likewise.
7784 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7785 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7786 * features/rs6000/rs6000.c: Likewise.
7787
7788 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7789
7790 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7791 variable.
7792 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7793 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7794 (stap_parse_argument) <e>: Likewise.
7795 (handle_stap_probe) <byte_order>: Likewise.
7796
7797 2012-04-30 Doug Evans <dje@google.com>
7798
7799 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7800 init_and_read_dies_worker. All callers updated.
7801 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7802 replaced with init_cutu_and_read_dies.
7803 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7804 (find_partial_die): Remove FIXME. Don't free current CU.
7805
7806 2012-04-30 Sterling Augustine <saugustine@google.com>
7807
7808 * contrib: New directory.
7809 * contrib/test_pubnames_and_indexes.py: New file.
7810
7811 2012-04-30 Doug Evans <dje@google.com>
7812
7813 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7814 All callers updated.
7815 (init_cu_die_reader): Verify the section is non-empty.
7816 (dwarf_decode_line_header): Don't dereference section->asection
7817 until we know the section is present.
7818
7819 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7820
7821 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7822 probes.
7823
7824 2012-04-29 Yao Qi <yao@codesourcery.com>
7825
7826 * gdb-code-style.el: New hook gdb-markup-hook
7827 and gdb-comment-hook.
7828
7829 2012-04-28 Doug Evans <dje@google.com>
7830
7831 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7832 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7833 objfile->obfd.
7834 * symfile.h (dwarf2_debug_sections): New member addr.
7835 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7836 (ctx_no_get_addr_index): New function.
7837 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7838 (ctx_no_get_addr_index): Declare.
7839 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7840 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7841 (dwarf_expr_ctx_funcs): Update.
7842 (needs_get_addr_index): New function.
7843 (needs_frame_ctx_funcs): Update.
7844 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7845 * dwarf2read.c: #include "gdbcore.h".
7846 (dwarf2_per_objfile): New members addr, dwo_files.
7847 (dwarf2_elf_names): Add entry for addr.
7848 (struct dwo_section_names): New type.
7849 (dwo_section_names): New static global.
7850 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7851 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7852 old debug_types_section member updated to use this.
7853 Rename member debug_types_section to info_or_types_section,
7854 all uses updated.
7855 (signatured_type): Rename member type_offset to type_offset_in_tu,
7856 all uses updated. New member type_offset_in_section.
7857 (struct dwo_sections): New type.
7858 (struct dwo_unit): New type.
7859 (struct dwo_file): New type.
7860 (die_reader_specs): New member dwo_file.
7861 (dwarf2_locate_sections): Watch for .debug_addr.
7862 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7863 (dwarf2_read_section): Get bfd of section from bfd's asection,
7864 instead of objfile.
7865 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7866 (create_signatured_type_table_from_index): Initialize
7867 sig_type->info_or_types_section.
7868 (dw2_get_file_names): Statement lists for type units with DWO files
7869 live in the DWO file.
7870 (create_debug_types_hash_table): New function.
7871 (create_all_type_units): Rewrite.
7872 (init_cu_die_reader): New arg dwo_file, all callers updated.
7873 (init_and_read_dies_worker): Get section from
7874 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7875 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7876 continue reading the CU/TU from there.
7877 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7878 updated. Get section from this_cu->info_or_types_section.
7879 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7880 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7881 DW_FORM_GNU_str_index.
7882 (hash_dwo_file, eq_dwo_file): New functions.
7883 (allocate_dwo_file_hash_table): New function.
7884 (hash_dwo_unit, eq_dwo_unit): New functions.
7885 (allocate_dwo_unit_table): New function.
7886 (dwarf2_locate_dwo_sections): New function.
7887 (struct create_dwo_info_table_data): New type.
7888 (create_debug_info_hash_table_reader): New function.
7889 (create_debug_info_hash_table): New function.
7890 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7891 (lookup_dwo_file): New function.
7892 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7893 (free_dwo_file, free_dwo_file_cleanup): New functions.
7894 (free_dwo_file_from_slot, free_dwo_files): New functions.
7895 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7896 (dwarf2_record_block_ranges): Ditto.
7897 (read_partial_die): Ditto.
7898 (process_enumeration_scope): Update to use type_offset_in_section.
7899 (read_full_die_1): New function.
7900 (read_full_die): Rewrite.
7901 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7902 DW_FORM_GNU_str_index.
7903 (read_addr_index_1, read_addr_index): New functions.
7904 (read_addr_index_from_leb128): New function.
7905 (struct dwarf2_read_addr_index_data): New type.
7906 (dwarf2_read_addr_index_reader): New function.
7907 (dwarf2_read_addr_index): New function.
7908 (read_str_index): New function.
7909 (leb128_size): New function.
7910 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7911 If processing a type unit from a DWO file, get the line section
7912 from the DWO file.
7913 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7914 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7915 DW_FORM_GNU_str_index.
7916 (lookup_die_type): Check whether section offset of type's die is
7917 known before looking it up. Remove assert. Condition can
7918 legimately happen for inter-cu type references.
7919 (dwarf_attr_name): Handle Fission attributes.
7920 (dwarf_form_name): Handle Fission forms.
7921 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7922 DW_FORM_GNU_str_index.
7923 (follow_die_sig): Update to use type_offset_in_section.
7924 (decode_locdesc): New case DW_OP_GNU_addr_index.
7925 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7926 DW_FORM_GNU_str_index.
7927 (cu_debug_loc_section): New function.
7928 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7929 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7930 Free DWO files if present.
7931 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7932
7933 Refactor DIE reading.
7934 * dwarf2read.c (dwarf2_per_objfile): Replace members
7935 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7936 (die_reader_specs): New member "die_section". Temporarily make
7937 member "buffer" non-const, pending constifying all info_ptr uses.
7938 (die_reader_func_ftype): New typedef.
7939 (dw2_get_file_names_reader): New function.
7940 (dw2_get_file_names): Rewrite.
7941 (read_and_check_type_unit_head): Rename arg type_offset to
7942 type_offset_in_tu.
7943 (create_all_type_units): Improve debugging message.
7944 Improve dummy type unit check.
7945 (init_cu_die_reader): New arg "section". All callers updated.
7946 (init_and_read_dies_worker): New function.
7947 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7948 (init_cutu_and_read_dies_no_follow): New function.
7949 (init_cutu_and_read_dies_simple): New function.
7950 (process_psymtab_comp_unit_reader): New function.
7951 (process_psymtab_comp_unit): Delete args section,
7952 is_debug_types_section. Rewrite. All callers updated.
7953 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7954 All callers updated. Rewrite.
7955 (load_partial_comp_unit_reader): New function.
7956 (load_partial_comp_unit): Rewrite.
7957 (skip_children): New arg reader. Delete args buffer, cu.
7958 All callers updated.
7959 (skip_one_die): New arg reader. Delete args buffer, cu.
7960 All callers updated.
7961 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7962 All callers updated.
7963 (load_full_comp_unit_reader): New function.
7964 (load_full_comp_unit): Rewrite.
7965 (read_comp_unit): Delete.
7966 (read_die_and_children_1): Delete, contents moved ...
7967 (read_die_and_children): ... here.
7968 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7969 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7970 All callers updated.
7971 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7972 All callers updated.
7973 (find_partial_die): Rewrite load_all_dies support.
7974 (read_attribute_value): New arg reader. Delete args abfd, cu.
7975 All callers updated.
7976 (read_attribute): New arg reader. Delete args abfd, cu.
7977 All callers updated.
7978 (load_full_type_unit): Add assert.
7979 (read_signatured_type_reader): New function.
7980 (read_signatured_type): Rewrite.
7981 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7982 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7983 All callers updated. Set per_cu->cu = NULL after freeing it.
7984 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7985 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7986 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7987 (set_die_type): Update.
7988 (get_die_type_at_offset): Update.
7989 (read_file_scope): Call prepare_one_comp_unit.
7990 (read_type_unit_scope): Ditto.
7991 (prepare_one_comp_unit): Set producer if present.
7992
7993 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7994
7995 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7996 gettext function on `error'.
7997
7998 2012-04-27 Doug Evans <dje@google.com>
7999
8000 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8001 is empty.
8002
8003 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8004 Tom Tromey <tromey@redhat.com>
8005
8006 * breakpoint.c (struct breakpoint_objfile_data)
8007 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8008 <exception_probes>: New fields.
8009 (free_breakpoint_probes): New function.
8010 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8011 `_Unwind_DebugHook'.
8012 (create_exception_master_breakpoint): Likewise.
8013 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8014 * infrun.c: Including necessary header files for handling SystemTap
8015 probes.
8016 (handle_inferior_event): Handling longjmp breakpoint and exceptions
8017 via SystemTap probes.
8018 (check_exception_resume): Remove `func' argument. Handle exception
8019 unwinding breakpoint set via a SystemTap probe.
8020 (insert_exception_resume_from_probe): New function.
8021
8022 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8023 Tom Tromey <tromey@redhat.com>
8024 Jan Kratochvil <jan.kratochvil@redhat.com>
8025
8026 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8027 (COMMON_OBS): Likewise.
8028 (HFILES_NO_SRCDIR): Add `probe'.
8029 * NEWS: Mention support for static and SystemTap probes.
8030 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8031 SystemTap probes' arguments parser.
8032 * arm-linux-tdep.c: Including headers needed to perform the parsing
8033 of SystemTap probes' arguments.
8034 (arm_stap_is_single_operand): New function.
8035 (arm_stap_parse_special_token): Likewise.
8036 (arm_linux_init_abi): Initializing proper fields used by SystemTap
8037 probes' arguments parser.
8038 * ax-gdb.c (require_rvalue): Removing static declaration.
8039 (gen_expr): Likewise.
8040 * ax-gdb.h (gen_expr): Declaring function.
8041 (require_rvalue): Likewise.
8042 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8043 (bkpt_probe_breakpoint_ops): New variable.
8044 (momentary_breakpoint_from_master): Set the `probe' value.
8045 (add_location_to_breakpoint): Likewise.
8046 (break_command_1): Using proper breakpoint_ops according to the
8047 argument passed by the user in the command line.
8048 (bkpt_probe_insert_location): New function.
8049 (bkpt_probe_remove_location): Likewise.
8050 (bkpt_probe_create_sals_from_address): Likewise.
8051 (bkpt_probe_decode_linespec): Likewise.
8052 (tracepoint_probe_create_sals_from_address): Likewise.
8053 (tracepoint_probe_decode_linespec): Likewise.
8054 (tracepoint_probe_breakpoint_ops): New variable.
8055 (trace_command): Using proper breakpoint_ops according to the
8056 argument passed by the user in the command line.
8057 (initialize_breakpoint_ops): Initializing breakpoint_ops for
8058 static probes on breakpoints and tracepoints.
8059 * breakpoint.h (struct bp_location) <probe>: New field.
8060 * cli-utils.c (skip_spaces_const): New function.
8061 (extract_arg): Likewise.
8062 * cli-utils.h (skip_spaces_const): Likewise.
8063 (extract_arg): Likewise.
8064 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8065 * configure.ac: Append `stap-probe.o' to be generated when ELF
8066 support is present.
8067 * configure: Regenerate.
8068 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8069 * elfread.c: Include `probe.h' and `arch-utils.h'.
8070 (probe_key): New variable.
8071 (elf_get_probes): New function.
8072 (elf_get_probe_argument_count): Likewise.
8073 (elf_evaluate_probe_argument): Likewise.
8074 (elf_compile_to_ax): Likewise.
8075 (elf_symfile_relocate_probe): Likewise.
8076 (stap_probe_key_free): Likewise.
8077 (elf_probe_fns): New variable.
8078 (elf_sym_fns): Add `sym_probe_fns' value.
8079 (elf_sym_fns_lazy_psyms): Likewise.
8080 (elf_sym_fns_gdb_index): Likewise.
8081 (_initialize_elfread): Initialize objfile cache for static
8082 probes.
8083 * gdb_vecs.h (struct probe): New forward declaration.
8084 (probe_p): New VEC declaration.
8085 * gdbarch.c: Regenerate.
8086 * gdbarch.h: Regenerate.
8087 * gdbarch.sh (stap_integer_prefix): New variable.
8088 (stap_integer_suffix): Likewise.
8089 (stap_register_prefix): Likewise.
8090 (stap_register_suffix): Likewise.
8091 (stap_register_indirection_prefix): Likewise.
8092 (stap_register_indirection_suffix): Likewise.
8093 (stap_gdb_register_prefix): Likewise.
8094 (stap_gdb_register_suffix): Likewise.
8095 (stap_is_single_operand): New function.
8096 (stap_parse_special_token): Likewise.
8097 (struct stap_parse_info): Forward declaration.
8098 * i386-tdep.c: Including headers needed to perform the parsing
8099 of SystemTap probes' arguments.
8100 (i386_stap_is_single_operand): New function.
8101 (i386_stap_parse_special_token): Likewise.
8102 (i386_elf_init_abi): Initializing proper fields used by SystemTap
8103 probes' arguments parser.
8104 * i386-tdep.h (i386_stap_is_single_operand): New function.
8105 (i386_stap_parse_special_token): Likewise.
8106 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8107 * mipsread.c (ecoff_sym_fns): Likewise.
8108 * objfiles.c (objfile_relocate1): Support relocation for static
8109 probes.
8110 * parse.c (prefixify_expression): Remove static declaration.
8111 (initialize_expout): Likewise.
8112 (reallocate_expout): Likewise.
8113 * parser-defs.h (initialize_expout): Declare function.
8114 (reallocate_expout): Likewise.
8115 (prefixify_expression): Likewise.
8116 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8117 of SystemTap probes' arguments.
8118 (ppc_stap_is_single_operand): New function.
8119 (ppc_stap_parse_special_token): Likewise.
8120 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8121 probes' arguments parser.
8122 * probe.c: New file, for generic statically defined probe support.
8123 * probe.h: Likewise.
8124 * s390-tdep.c: Including headers needed to perform the parsing of
8125 SystemTap probes' arguments.
8126 (s390_stap_is_single_operand): New function.
8127 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8128 probes' arguments parser.
8129 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8130 * stap-probe.c: New file, for SystemTap probe support.
8131 * stap-probe.h: Likewise.
8132 * symfile.h: Include `gdb_vecs.h'.
8133 (struct sym_probe_fns): New struct.
8134 (struct sym_fns) <sym_probe_fns>: New field.
8135 * symtab.c (init_sal): Initialize `probe' field.
8136 * symtab.h (struct probe): Forward declaration.
8137 (struct symtab_and_line) <probe>: New field.
8138 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8139 locations.
8140 (stop_tracing): Likewise.
8141 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8142
8143 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8144 Tom Tromey <tromey@redhat.com>
8145
8146 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8147 and to compile agent expressions.
8148 * infrun.c (siginfo_make_value): New argument `ignore'.
8149 (siginfo_funcs): New struct.
8150 (_initialize_infrun): New argument when calling
8151 `create_internalvar_type_lazy'.
8152 * thread.c (thread_id_make_value): New argument `ignore'.
8153 (thread_funcs): New struct.
8154 (_initialize_thread): New argument when calling
8155 `create_internalvar_type_lazy'.
8156 * tracepoint.c (sdata_make_value): New argument `ignore'.
8157 (sdata_funcs): New struct.
8158 (_initialize_tracepoint): New argument when calling
8159 `create_internalvar_type_lazy'.
8160 * value.c (make_value): New struct.
8161 (create_internalvar_type_lazy): New argument `data'.
8162 (compile_internalvar_to_ax): New function.
8163 (value_of_internalvar): Properly handling `make_value' case.
8164 (clear_internalvar): Likewise.
8165 (show_convenience): Adding `TRY_CATCH' block.
8166 * value.h (internalvar_make_value): Delete, replace by...
8167 (struct internalvar_funcs): ... this.
8168 (create_internalvar_type_lazy) <fun>: Delete argument.
8169 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8170 (compile_internalvar_to_ax): New function.
8171 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8172 (tlb_funcs): New struct.
8173 (_initialize_windows_tdep): New argument when calling
8174 `create_internalvar_type_lazy'.
8175
8176 2012-04-27 Mark Wielaard <mjw@redhat.com>
8177
8178 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8179 see whether it is an address or a constant offset from DW_AT_low_pc.
8180 (dwarf2_record_block_ranges): Likewise.
8181 (read_partial_die): Likewise.
8182
8183 2012-04-26 Mark Wielaard <mjw@redhat.com>
8184
8185 * MAINTAINERS (Write After Approval): Add myself to the list.
8186
8187 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8188
8189 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8190 (proc_prettyprint_signal): Likewise.
8191 (proc_prettyprint_faultset): Likewise.
8192 (proc_prettyprint_fault): Likewise.
8193 (proc_prettyprint_actionset): Likewise.
8194 (proc_prettyprint_flags): Move to new proc-flags.c section.
8195 (proc_prettyfprint_flags): New prototype.
8196 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8197 (proc_syscall, proc_cursig): Likewise.
8198 (proc_set_kill_on_last_close): Likewise.
8199 (proc_unset_kill_on_last_close): Likewise.
8200 (proc_set_watchpoint): Make static.
8201 (proc_delete_dead_threads): Likewise.
8202 (procfs_set_watchpoint): Likewise.
8203 (_initialize_procfs): Add prototype.
8204 * proc-events.c: Include proc-utils.h.
8205 (init_syscall_table): Make static.
8206 * proc-api.c (_initialize_proc_api): Add prototype.
8207 * proc-flags.c: Include proc-utils.h.
8208
8209 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8210
8211 * configure.ac: Add AC_ARG_PROGRAM.
8212 * configure: Regenerate.
8213
8214 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8215
8216 Fix DW_AT_lower_bound defaults for DWARF-4+.
8217 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8218 high. New variable low_default_is_valid. Implement DWARF-4+
8219 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8220 no default by the DWARF standard.
8221
8222 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8223 Maciej W. Rozycki <macro@codesourcery.com>
8224
8225 * infrun.c (handle_inferior_event): Move the check for return
8226 trampolines ahead of the check for function trampolines.
8227 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8228 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8229 (mips_str_mips16_ret_stub): Likewise.
8230 (mips_str_call_fp_stub): Likewise.
8231 (mips_str_call_stub): Likewise.
8232 (mips_str_fn_stub): Likewise.
8233 (mips_str_pic): Likewise.
8234 (mips_in_frame_stub): New function.
8235 (mips_unwind_pc): Return the return address rather than the PC
8236 if the PC of an intermediate frame is inside a call thunk.
8237 (mips_is_stub_suffix): New function.
8238 (mips_is_stub_mode): Likewise.
8239 (mips_get_mips16_fn_stub_pc): Likewise.
8240 (mips_skip_mips16_trampoline_code): Update to handle all the
8241 currently generated stub types. Don't recurse into __fn_stub
8242 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8243 Use cooked register accesses.
8244 (mips_in_return_stub): Reintroduce function.
8245 (mips_skip_trampoline_code): Traverse trampolines recursively.
8246 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8247
8248 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8249
8250 GDB 7.4.1 released.
8251
8252 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8253
8254 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8255 * features/arm-with-m-vfp-d16.xml: New file. Describes
8256 Cortex-M with VFPv4-sp-d16 FPU register layout.
8257 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8258 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8259 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8260 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8261 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8262
8263 2012-04-25 Doug Evans <dje@google.com>
8264
8265 * cli/cli-decode.c (print_doc_line): Use stream instead of
8266 current_uiout.
8267
8268 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8269
8270 * features/arm-with-iwmmxt.c: Regenerate.
8271 * features/arm-with-m-fpa-layout.c: Likewise.
8272 * features/arm-with-m.c: Likewise.
8273 * features/arm-with-neon.c: Likewise.
8274 * features/arm-with-vfpv2.c: Likewise.
8275 * features/arm-with-vfpv3.c: Likewise.
8276 * features/mips-dsp-linux.c: Likewise.
8277 * features/mips-linux.c: Likewise.
8278 * features/mips64-dsp-linux.c: Likewise.
8279 * features/mips64-linux.c: Likewise.
8280 * features/s390-linux32.c: Likewise.
8281 * features/s390-linux32v1.c: Likewise.
8282 * features/s390-linux32v2.c: Likewise.
8283 * features/s390-linux64.c: Likewise.
8284 * features/s390-linux64v1.c: Likewise.
8285 * features/s390-linux64v2.c: Likewise.
8286 * features/s390x-linux64.c: Likewise.
8287 * features/s390x-linux64v1.c: Likewise.
8288 * features/s390x-linux64v2.c: Likewise.
8289 * features/tic6x-c62x-linux.c: Likewise.
8290 * features/tic6x-c62x.c: Likewise.
8291 * features/tic6x-c64x-linux.c: Likewise.
8292 * features/tic6x-c64x.c: Likewise.
8293 * features/tic6x-c64xp-linux.c: Likewise.
8294 * features/tic6x-c64xp.c: Likewise.
8295 * target-descriptions.c: Only generate `field_type' and `type'
8296 variables when needed.
8297
8298 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8299
8300 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8301
8302 2012-04-25 Doug Evans <dje@google.com>
8303
8304 Initial pass at Go language support.
8305 * NEWS: Mention Go.
8306 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8307 go-valprint.c.
8308 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8309 (YYFILES): Add go-exp.c.
8310 (YYOBJ): Add go-exp.o.
8311 (local-maintainer-clean): Delete go-exp.c.
8312 * defs.h (enum language): Add language_go.
8313 * dwarf2read.c: #include "go-lang.h".
8314 (fixup_go_packaging): New function.
8315 (process_full_comp_unit): Call it when processing Go CUs.
8316 (dwarf2_physname): Add Go support.
8317 (read_file_scope): Handle missing language spec for GNU Go.
8318 (set_cu_language): Handle DW_LANG_Go.
8319 * go-exp.y: New file.
8320 * go-lang.h: New file.
8321 * go-lang.c: New file.
8322 * go-typeprint.c: New file.
8323 * go-valprint.c: New file.
8324 * symtab.c: #include "go-lang.h".
8325 (symbol_set_language): Handle language_go.
8326 (symbol_find_demangled_name, symbol_set_names): Ditto.
8327 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8328
8329 2012-04-24 Jim Meyering <meyering@redhat.com>
8330
8331 avoid a few strncpy-induced buffer overruns
8332 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8333 fname and psargs before trying to concatenate.
8334 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8335 "name" before applying strchr.
8336
8337 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8338
8339 * CONTRIBUTE: Use unified diff instead of context diff when
8340 generating patches.
8341
8342 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8343
8344 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8345 code. Handle JR.HB correctly.
8346
8347 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8348
8349 * mips-tdep.c
8350 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8351 with the other MIPS16 helpers.
8352
8353 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8354
8355 * observer.sh: Conditionally declare `args', thus cleaning up
8356 unused instances of this variable.
8357
8358 2012-04-24 Yao Qi <yao@codesourcery.com>
8359
8360 Revert this patch to allow breakpoint always-inserted
8361 in record target.
8362 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8363 * breakpoint.c: Include record.h.
8364 (breakpoints_always_inserted_mode): Return false when the record
8365 target is in use.
8366
8367 * breakpoint.c (iterate_over_bp_locations): New.
8368 * breakpoint.h: Declare.
8369 New typedef walk_bp_location_callback.
8370 * record.c (record_open): Call record_init_record_breakpoints.
8371 (record_sync_record_breakpoints): New.
8372 (record_init_record_breakpoints): New.
8373 * NEWS: Mention supporting breakpoint always-inserted mode in
8374 record target.
8375
8376 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8377
8378 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8379 any thread.
8380
8381 2012-04-24 Yao Qi <yao@codesourcery.com>
8382
8383 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8384 (is_catchpoint): ... it.
8385 (print_one_breakpoint_location): Caller update.
8386 * breakpoint.h: Update declaration.
8387
8388 2012-04-23 David S. Miller <davem@davemloft.net>
8389
8390 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8391
8392 2012-04-23 Tom Tromey <tromey@redhat.com>
8393
8394 * buildsym.c (add_free_pendings): Remove.
8395 * buildsym.h (add_free_pendings): Remove.
8396
8397 2012-04-23 Doug Evans <dje@google.com>
8398
8399 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8400 attr.u.unsnd instead of attr.u.addr.
8401 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8402 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8403 DW_FORM_ref_udata.
8404 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8405 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8406 DW_FORM_ref_udata.
8407 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8408
8409 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8410
8411 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8412 (mips_o32_return_value): Likewise.
8413 (mips_o64_return_value): Likewise.
8414
8415 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8416
8417 * ada-lang.c (ada_evaluate_subexp): Add cases for
8418 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8419 their treatment in eval.c.
8420
8421 2012-04-21 David S. Miller <davem@davemloft.net>
8422
8423 * sparc-tdep.c (X_DISP10): Define.
8424 (sparc_analyze_control_transfer): Handle compare-and-branch.
8425
8426 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8427
8428 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8429 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8430
8431 2012-04-20 Nigel Stephens <nigel@mips.com>
8432 Maciej W. Rozycki <macro@codesourcery.com>
8433
8434 * mips-tdep.c (mips_float_register_p): New function.
8435 (mips_convert_register_float_case_p): Use mips_float_register_p.
8436 (mips_register_type): Likewise.
8437 (mips_print_register): Likewise.
8438 (print_gp_register_row): Likewise.
8439 (mips_print_registers_info): Likewise.
8440
8441 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8442
8443 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8444 of mips16 symbols.
8445
8446 2012-04-20 Andrew Pinski <apinski@cavium.com>
8447
8448 * MAINTAINERS (Write After Approval): Add myself to the list.
8449
8450 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8451
8452 * MAINTAINERS: Update my e-mail address.
8453
8454 2012-04-20 Pedro Alves <palves@redhat.com>
8455
8456 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8457 $srcdir.
8458 * configure: Regenerate.
8459
8460 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8461
8462 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8463 declaration.
8464 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8465
8466 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8467
8468 Fix compilation compatibility with python-2.4
8469 * python/py-type.c (convert_field): Cast ADDRSTRING for
8470 PyObject_SetAttrString as non-const. New comment.
8471
8472 2012-04-19 Tom Tromey <tromey@redhat.com>
8473
8474 * top.c (quit_target): Use all_cleanups.
8475 * main.c (captured_command_loop): Use all_cleanups.
8476 * exceptions.c (throw_exception): Use all_cleanups.
8477
8478 2012-04-19 Pedro Alves <palves@redhat.com>
8479
8480 * Makefile.in (GNULIB_BUILDDIR): New.
8481 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8482 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8483 (CLEANDIRS). Remove gnulib/import.
8484 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8485 (all-lib): Ditto.
8486 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8487 (gnulib/import/Makefile): Replace gnulib/import with
8488 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8489 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8490 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8491 acx_configure_dir.m4.
8492 * acinclude.m4: Include acx_configure_dir.m4.
8493 * acx_configure_dir.m4: New file.
8494 * aclocal.m4: Regenerate.
8495 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8496 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8497 (GNULIB): New variable.
8498 (GNULIB_STDINT_H): Adjust.
8499 (AC_OUTPUT): Don't output gnulib/Makefile.
8500 * gdb/defs.h: Include build-gnulib/config.h.
8501 * aclocal.m4: Regenerate.
8502 * config.in: Regenerate.
8503 * configure: Regenerate.
8504
8505 * gnulib/Makefile.in: New file.
8506 * gnulib/configure.ac: New file.
8507 * gnulib/aclocal.m4: New file.
8508 * gnulib/config.in: New file.
8509 * gnulib/configure: New file.
8510 * gnulib/: Re-run gnulib-tool to adjust.
8511
8512 2012-04-19 Doug Evans <dje@google.com>
8513
8514 * cleanups.h (struct cleanup): Move to cleanups.c.
8515 (make_cleanup_dtor_ftype): New typedef.
8516 (make_cleanup_dtor): Use it.
8517 (ALL_CLEANUPS): Replace with ...
8518 (all_cleanups): ... this. Declare. All uses updated.
8519 * cleanups.c: #include "gdb_assert.h".
8520 (sentinel_cleanup): New static global.
8521 (SENTINEL_CLEANUP): Define.
8522 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8523 (make_my_cleanup2): Assert result is non-NULL.
8524 (all_cleanups): New function.
8525 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8526 of NULL.
8527
8528 2012-04-19 Pedro Alves <palves@redhat.com>
8529
8530 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8531 Adjust paths to gnulib imported files.
8532
8533 2012-04-19 Pedro Alves <palves@redhat.com>
8534
8535 * gnulib/: Move whole directory ...
8536 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8537 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8538 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8539 (aclocal_m4_deps): Adjust.
8540 * aclocal.m4: Regenerate.
8541 * configure: Regenerate.
8542 * configure.ac: Adjust AC_OUTPUT output.
8543
8544 2012-04-19 Yao Qi <yao@codesourcery.com>
8545
8546 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8547 (vec.o): New rule.
8548 * vec.c: Move it ...
8549 * common/vec.c: ... here.
8550 * vec.h: Move it ...
8551 * common/vec.h: ... here.
8552
8553 2012-04-19 Yao Qi <yao@codesourcery.com>
8554
8555 * gdb-code-style.el: New.
8556
8557 2012-04-18 Pedro Alves <palves@redhat.com>
8558
8559 Update gnulib from latest git.
8560 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8561
8562 * gnulib/Makefile.am: Update.
8563 * gnulib/dummy.c: Update.
8564 * gnulib/extra/arg-nonnull.h: Update.
8565 * gnulib/extra/c++defs.h: Update.
8566 * gnulib/extra/update-copyright: Update.
8567 * gnulib/extra/warn-on-use.h: Update.
8568 * gnulib/inttypes.in.h: Update.
8569 * gnulib/m4/00gnulib.m4: Update.
8570 * gnulib/m4/extensions.m4: Update.
8571 * gnulib/m4/gnulib-cache.m4: Update.
8572 * gnulib/m4/gnulib-common.m4: Update.
8573 * gnulib/m4/gnulib-comp.m4: Update.
8574 * gnulib/m4/gnulib-tool.m4: Update.
8575 * gnulib/m4/include_next.m4: Update.
8576 * gnulib/m4/inttypes-pri.m4: Update.
8577 * gnulib/m4/inttypes.m4: Update.
8578 * gnulib/m4/longlong.m4: Update.
8579 * gnulib/m4/memchr.m4: Update.
8580 * gnulib/m4/memmem.m4: Update.
8581 * gnulib/m4/mmap-anon.m4: Update.
8582 * gnulib/m4/multiarch.m4: Update.
8583 * gnulib/m4/onceonly.m4: Update.
8584 * gnulib/m4/stddef_h.m4: Update.
8585 * gnulib/m4/stdint.m4: Update.
8586 * gnulib/m4/string_h.m4: Update.
8587 * gnulib/m4/warn-on-use.m4: Update.
8588 * gnulib/m4/wchar_h.m4: Update.
8589 * gnulib/m4/wchar_t.m4: Update.
8590 * gnulib/m4/wint_t.m4: Update.
8591 * gnulib/memchr.c: Update.
8592 * gnulib/memmem.c: Update.
8593 * gnulib/stddef.in.h: Update.
8594 * gnulib/stdint.in.h: Update.
8595 * gnulib/str-two-way.h: Update.
8596 * gnulib/string.in.h: Update.
8597 * gnulib/wchar.in.h: Update.
8598
8599 * gnulib/extra/arg-nonnull.h: Delete.
8600 * gnulib/extra/c++defs.h: Delete.
8601 * gnulib/extra/warn-on-use.h: Delete.
8602 * gnulib/m4/wchar_h.m4: Delete.
8603 * gnulib/m4/wint_t.m4: Delete.
8604 * gnulib/wchar.in.h: Delete.
8605
8606 * gnulib/extra/snippets/arg-nonnull.h: New.
8607 * gnulib/extra/snippets/c++defs.h: New.
8608 * gnulib/extra/snippets/warn-on-use.h: New.
8609
8610 * aclocal.m4: Regenerate.
8611 * config.in: Regenerate.
8612 * configure: Regenerate.
8613 * gnulib/Makefile.in: Regenerate.
8614
8615 2012-04-18 Pedro Alves <palves@redhat.com>
8616
8617 Reimport the update-copyright module from gnulib
8618 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8619
8620 * configure: Regenerate.
8621 * gnulib/Makefile.am: Update.
8622 * gnulib/Makefile.in: Regenerate.
8623 * gnulib/extra/update-copyright: Update.
8624 * gnulib/m4/gnulib-cache.m4: Update.
8625 * gnulib/m4/gnulib-comp.m4: Update.
8626
8627 2012-04-18 Tristan Gingold <gingold@adacore.com>
8628
8629 * configure.ac (aix): Put -lpthread into libs.
8630 * configure: Regenerate.
8631
8632 2012-04-18 Tom Tromey <tromey@redhat.com>
8633
8634 * linespec.c (convert_linespec_to_sals): Don't use
8635 SYMBOL_OBJ_SECTION.
8636 (compare_msymbols): Arguments are minsym_and_objfile, not
8637 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8638
8639 2012-04-18 Pedro Alves <palves@redhat.com>
8640
8641 Revert gnulib/ part of:
8642 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8643 Copyright year update in most files (performed by copyright.sh).
8644
8645 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8646
8647 Fix 64-bit constants on 32-bit hosts.
8648 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8649 from unsigned long to ULONGEST.
8650 (read_signed_leb128): Change declaration return type from long to
8651 LONGEST.
8652 (dwarf2_const_value_attr): Change declaration parameter value from long
8653 to LONGEST.
8654 (dwarf2_compute_name): Change variable value from long to LONGEST.
8655 (read_unsigned_leb128): Change return type, variable result and some
8656 casts from unsigned long to ULONGEST.
8657 (read_signed_leb128): Change return type, variable result and some
8658 casts from long to LONGEST.
8659 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8660 value from long to LONGEST.
8661 (dwarf2_const_value): Change variable value from long to LONGEST.
8662 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8663 plongest and hex_string.
8664 * symtab.h (struct general_symbol_info): Change ivalue from long to
8665 LONGEST, remove the comment.
8666 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8667 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8668
8669 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8670
8671 PR symtab/7259:
8672 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8673 * ada-lang.c (ada_discrete_type_high_bound)
8674 (ada_discrete_type_low_bound): Fix function comment. Use
8675 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8676 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8677 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8678 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8679 Use TYPE_FIELD_ENUMVAL.
8680 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8681 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8682 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8683 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8684 TYPE_CODE_ENUM.
8685 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8686 * dwarf2read.c (process_enumeration_scope): Likewise.
8687 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8688 field.bitpos.
8689 (class StructMainTypePrettyPrinter): Support also
8690 FIELD_LOC_KIND_ENUMVAL.
8691 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8692 TYPE_CODE_ENUM.
8693 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8694 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8695 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8696 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8697 field enumval.
8698 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8699 accommodate enumval.
8700 (struct call_site): Adjust loc_kind to accommodate enumval.
8701 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8702 (TYPE_FIELD_ENUMVAL): New macros.
8703 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8704 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8705 TYPE_CODE_ENUM.
8706 * p-typeprint.c (pascal_type_print_base): Likewise.
8707 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8708 enumval.
8709 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8710 * python/py-type.c (convert_field): New variable addrstring. Use
8711 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8712 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8713 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8714 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8715 TYPE_CODE_ENUM.
8716 * valprint.c (generic_val_print): Likewise.
8717
8718 2012-04-17 Doug Evans <dje@google.com>
8719
8720 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8721
8722 * dwarf2read.c: Whitespace fixes.
8723 (lookup_signatured_type): Tweak comment.
8724 (get_die_type_at_offset): Fix comment.
8725
8726 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8727
8728 * xcoffread.c (xcoff_secnum_to_sections): New function.
8729 (secnum_to_section, secnum_to_bfd_section): Reimplement
8730 using xcoff_secnum_to_sections. Rename "secnum" parameter
8731 into "n_scnum".
8732 (RECORD_MINIMAL_SYMBOL): Delete.
8733 (record_minimal_symbol): New function.
8734 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8735 by call to record_minimal_symbol and set misc_func_recorded
8736 to 1. Set last_csect_sec to the XCOFF section index instead
8737 of GDB's section_offset index. Update calls to
8738 prim_record_minimal_symbol_and_info to pass the BFD section
8739 as well.
8740
8741 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8742
8743 * xcoffread.c (read_xcoff_symtab): Delete variables
8744 last_csect_val and last_csect_sec and associated code.
8745
8746 2012-04-17 Doug Evans <dje@google.com>
8747
8748 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8749 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8750 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8751 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8752
8753 * cleanups.h: New file.
8754 * cleanups.c: New file.
8755 * Makefile.in (SFILES): Add cleanups.c.
8756 (HFILES_NO_SRCDIR): Add cleanups.h.
8757 (COMMON_OBS): Add cleanups.o.
8758 * defs.h (struct cleanup): Moved to cleanups.h.
8759 (do_cleanups,do_final_cleanups): Ditto.
8760 (discard_cleanups,discard_final_cleanups): Ditto
8761 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8762 (save_cleanups,save_final_cleanups): Ditto.
8763 (restore_cleanups,restore_final_cleanups): Ditto.
8764 (null_cleanup): Ditto.
8765 (make_my_cleanup,make_my_cleanup2): Ditto.
8766 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8767 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8768 (do_cleanups,do_final_cleanups): Ditto.
8769 (discard_cleanups,discard_final_cleanups): Ditto
8770 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8771 (save_cleanups,save_final_cleanups): Ditto.
8772 (restore_cleanups,restore_final_cleanups): Ditto.
8773 (null_cleanup): Ditto.
8774 (make_my_cleanup,make_my_cleanup2): Ditto.
8775 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8776
8777 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8778 make_my_cleanup.
8779 (make_cleanup_dyn_string_delete): Ditto.
8780 (make_cleanup_ui_file_delete): Ditto.
8781 (make_cleanup_ui_out_redirect_pop): Ditto.
8782 (make_cleanup_free_section_addr_info): Ditto.
8783 (make_cleanup_restore_integer): Ditto.
8784 (make_cleanup_unpush_target): Ditto.
8785 (make_cleanup_value_free_to_mark): Ditto.
8786 (make_cleanup_value_free): Ditto.
8787 (make_cleanup_free_so): Ditto.
8788
8789 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8790
8791 New option "set debug auto-load".
8792 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8793 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8794 (auto_load_safe_path_vec_update)
8795 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8796 if DEBUG_AUTO_LOAD.
8797 (file_is_auto_load_safe): New parameters debug_fmt and ....
8798 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8799 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8800 caller by explanatory string.
8801 (_initialize_auto_load): Register "set debug auto-load".
8802 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8803 and ....
8804 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8805 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8806 by explanatory string.
8807 * main.c (captured_main): Likewise.
8808 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8809 (source_section_scripts): Likewise.
8810
8811 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8812
8813 New option "set auto-load safe-path".
8814 * NEWS: New commands "set auto-load safe-path"
8815 and "show auto-load safe-path".
8816 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8817 (auto_load_safe_path, auto_load_safe_path_vec)
8818 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8819 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8820 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8821 (source_gdb_script_for_objfile): New variable is_safe. Call
8822 file_is_auto_load_safe. Return if it is not.
8823 (struct loaded_script): New field loaded.
8824 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8825 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8826 output "Missing" to "No".
8827 (_initialize_auto_load): New variable cmd. Initialize
8828 auto_load_safe_path. Register "set auto-load safe-path",
8829 "show auto-load safe-path" and "add-auto-load-safe-path".
8830 * auto-load.h (maybe_add_script): Add parameter loaded.
8831 (file_is_auto_load_safe): New declaration.
8832 * config.in: Regenerate.
8833 * configure: Regenerate.
8834 * configure.ac: New parameters --with-auto-load-safe-path
8835 and --without-auto-load-safe-path.
8836 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8837 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8838 * main.c (captured_main): Check file_is_auto_load_safe for
8839 LOCAL_GDBINIT.
8840 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8841 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8842 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8843 not.
8844
8845 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8846
8847 auto-load: Implementation.
8848 * NEWS: New descriptions for "info auto-load",
8849 "info auto-load gdb-scripts", "info auto-load python-scripts",
8850 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8851 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8852 and "show auto-load-scripts". New description for "set auto-load",
8853 "show auto-load", "set auto-load gdb-scripts",
8854 "show auto-load gdb-scripts", "set auto-load python-scripts",
8855 "show auto-load python-scripts", "set auto-load local-gdbinit",
8856 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8857 "show auto-load libthread-db".
8858 * auto-load.c: Remove include python/python-internal.h. Add includes
8859 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8860 cli/cli-setshow.h.
8861 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8862 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8863 (gdbpy_global_auto_load): Rename to ...
8864 (global_auto_load): ... here.
8865 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8866 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8867 (script_language_gdb, source_gdb_script_for_objfile): New.
8868 (struct loaded_script): New field language.
8869 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8870 LANGUAGE.
8871 (maybe_add_script): Add parameter language. Drop redundant
8872 entry.full_path initialization. Initialize entry.language and
8873 (*slot)->language.
8874 (auto_load_objfile_script): Change parameter suffix to language.
8875 Remove the call of maybe_add_script.
8876 Call language->source_script_for_objfile.
8877 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8878 New.
8879 (collect_matching_scripts): Adjust it for
8880 struct collect_matching_scripts_data.
8881 (auto_load_info_scripts_pattern_nl): New variable.
8882 (info_auto_load_scripts): Rename to ...
8883 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8884 for struct collect_matching_scripts_data.
8885 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8886 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8887 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8888 (auto_load_info_cmdlist_get): New.
8889 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8890 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8891 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8892 "info auto-load local-gdbinit".
8893 * auto-load.h (struct script_language): New.
8894 (gdbpy_global_auto_load): Rename to ...
8895 (global_auto_load): ... here.
8896 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8897 (auto_load_local_gdbinit_loaded): New declarations.
8898 (maybe_add_script): New parameter language.
8899 (auto_load_objfile_script): Change parameter suffix to language.
8900 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8901 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8902 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8903 declarations.
8904 * linux-thread-db.c: Include auto-load.h and ctype.h.
8905 (auto_load_thread_db, show_auto_load_thread_db): New.
8906 (struct thread_db_info): New field filename.
8907 (delete_thread_db_info): Call xfree for FILENAME.
8908 (try_thread_db_load): Initialize FILENAME.
8909 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8910 if !AUTO_LOAD_THREAD_DB.
8911 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8912 (_initialize_thread_db): Install auto_load_thread_db
8913 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8914 as "info auto-load libthread-db".
8915 * main.c (captured_main): Rename gdbpy_global_auto_load to
8916 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8917 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8918 (print_gdb_help): Extend the help for 'local init file'.
8919 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8920 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8921 (auto_load_scripts): Rename to ...
8922 (auto_load_python_scripts): ... here, update the comment.
8923 (gdbpy_load_auto_script_for_objfile): New declaration.
8924 (show_auto_load_python_scripts, script_language_python)
8925 (gdbpy_load_auto_script_for_objfile): New.
8926 (source_section_scripts): Refactor the code.
8927 (load_auto_scripts_for_objfile): Rename to ...
8928 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8929 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8930 (info_auto_load_python_scripts): New.
8931 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8932 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8933 Register "set auto-load-scripts" as its deprecated alias. Register
8934 "info auto-load python-scripts". Register "info auto-load-scripts" as
8935 its deprecated alias.
8936 (load_auto_scripts_for_objfile): Rename to ...
8937 (gdbpy_load_auto_scripts_for_objfile): ... here.
8938 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8939 (gdbpy_load_auto_scripts_for_objfile): ... here.
8940
8941 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8942
8943 auto-load: Move files.
8944 * Makefile.in (SFILES): Add auto-load.c.
8945 (HFILES_NO_SRCDIR): Add auto-load.h.
8946 (COMMON_OBS): Add auto-load.o.
8947 (distclean): Change .gdbinit for gdb-gdb.gdb.
8948 * auto-load.c: New file, with parts from python/py-auto-load.c.
8949 * auto-load.h: New file, with parts from python/python.h.
8950 * configure: Regenerate.
8951 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8952 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8953 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8954 * main.c: Include auto-load.h.
8955 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8956 command.h, observer.h and progspace.h to auto-load.c. Add include
8957 auto-load.h.
8958 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8959 (struct loaded_script, auto_load_pspace_data)
8960 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8961 (hash_loaded_script_entry, eq_loaded_script_entry)
8962 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8963 (maybe_add_script): Move to auto-load.c.
8964 (source_section_scripts): Change maybe_add_script parameters passing,
8965 use script_not_found_warning_print.
8966 (clear_section_scripts, auto_load_objfile_script)
8967 (auto_load_new_objfile, loaded_script_ptr)
8968 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8969 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8970 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8971 auto_load_new_objfile and info_auto_load_scripts initizations to
8972 auto-load.c.
8973 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8974
8975 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8976
8977 Code cleanup.
8978 * charset.c (find_charset_names): Remove variables ix and elt.
8979 Use free_char_ptr_vec.
8980 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8981 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8982 debugdir_end. New variable debugdir_len.
8983 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8984 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8985 declarations.
8986 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8987 and elt. Use free_char_ptr_vec.
8988 * source.c (add_path): Remove variables argv, arg and argv_index.
8989 New variables dir_vec, back_to, ix and name.
8990 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8991 make_cleanup_freeargv. Remove variable separator. Simplify the code
8992 no longer expecting DIRNAME_SEPARATOR.
8993 (openp): Remove variable p, p1 and len. New variables dir_vec,
8994 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8995 no longer expecting DIRNAME_SEPARATOR.
8996 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8997 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8998 debugdir_end.
8999 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9000 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9001 (dirnames_to_char_ptr_vec): New functions.
9002
9003 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9004
9005 Code cleanup.
9006 * source.c (add_path): Remove always true conditional 'p == 0' and
9007 unindent its code block.
9008
9009 2012-04-17 Pedro Alves <palves@redhat.com>
9010
9011 * gdbtypes.h (FIELD_BITPOS): Rename to ...
9012 (FIELD_BITPOS_LVAL): ... this.
9013 (FIELD_BITPOS): New.
9014 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9015 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9016 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9017 SET_FIELD_BITPOS.
9018 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9019 SET_FIELD_BITPOS.
9020 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9021 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9022 * target-descriptions.c (tdesc_gdb_type): Adjust to use
9023 SET_FIELD_BITPOS.
9024
9025 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9026
9027 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9028 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9029 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9030 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9031 * jv-lang.c (java_link_class_type): Likewise, once.
9032 * stabsread.c (read_enum_type): Likewise.
9033
9034 2012-04-16 Yao Qi <yao@codesourcery.com>
9035
9036 * common/agent.c (agent_run_command): Add one more parameter `len'.
9037 Update callers.
9038 * common/agent.h: Update declaration.
9039 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9040 Update.
9041 (linux_child_static_tracepoint_markers_by_strid): Ditto.
9042
9043 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
9044
9045 PR mi/13393
9046 * value.c (value_actual_type): New function.
9047 * value.h (value_actual_type): New declaration.
9048 * varobj.c (update_type_if_necessary): New function.
9049 (varobj_create): Call value_actual_type instead of
9050 value_type.
9051 (install_dynamic_child): distinct changed and type changed MI variable
9052 objects.
9053 (update_dynamic_varobj_children): Updated for install_dynamic_child
9054 change. All callers updated.
9055 (varobj_update): Support for MI variable object type change if
9056 the value changed and RTTI is used to determine the type.
9057 (create_child_with_value): Call value_actual_type instead of
9058 value_type.
9059 (adjust_value_for_child_access): Extended with a new parameter which
9060 specify whether the given value should be casted to enclosing type.
9061 All callers updated.
9062
9063 2012-04-14 Yao Qi <yao@codesourcery.com>
9064
9065 Import gnulib module inttypes from git
9066 (250b80067c1e1d8faa0c42fb572f721975b929c5)
9067 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
9068 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9069 gnulib/m4/inttypes-pri.m4
9070 * aclocal.m4, config.in, configure: Regenerated.
9071 * gnulib/Makefile.am: Update.
9072 * gnulib/Makefile.in: Update.
9073 * gnulib/m4/gnulib-cache.m4: Update.
9074 * gnulib/m4/gnulib-comp.m4: Update.
9075 * gnulib/inttypes.in.h: New.
9076 * gnulib/m4/inttypes-pri.m4: New.
9077 * gnulib/m4/inttypes.m4: New.
9078
9079 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
9080
9081 * infrun.c (resume): Update PC address to the real PC after
9082 preparing to do displaced stepping.
9083
9084 2012-04-12 Doug Evans <dje@google.com>
9085
9086 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9087 All callers updated.
9088
9089 2012-04-12 Mark Kettenis <kettenis@gnu.org>
9090
9091 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9092
9093 2012-04-12 Doug Evans <dje@google.com>
9094
9095 * dwarf2read.c (create_all_type_units): Renamed from
9096 create_debug_types_hash_table. All callers updated.
9097
9098 * dwarf2read.c (create_signatured_type_table_from_index): Rename
9099 local type_sig to sig_type, type_offset to type_offset_in_tu.
9100 (hash_signatured_type): Renamed from hash_type_signature,
9101 all callers updated.
9102 (eq_signatured_type): Renamed from eq_type_signature,
9103 all callers updated.
9104 (create_debug_types_hash_table): Rename local type_sig to sig_type.
9105 (process_enumeration_scope): Ditto.
9106 (lookup_signatured_type_at_offset): Ditto.
9107 (load_full_type_unit, read_signatured_type): Ditto.
9108
9109 2012-04-12 Yao Qi <yao@codesourcery.com>
9110
9111 * remote.c (async_remote_interrupt): Correct function name in
9112 debug message.
9113 (async_remote_interrupt_twice): Ditto.
9114
9115 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
9116
9117 * source.c (find_and_open_source): Consistently pass resulting
9118 full path through xfullpath.
9119
9120 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9121
9122 Provide more specific displaced-stepping memory error message.
9123 * infrun.c (displaced_step_prepare): New variable status. Call
9124 target_read_memory instead of read_memory, provide more specific
9125 error message.
9126
9127 2012-04-11 Tristan Gingold <gingold@adacore.com>
9128
9129 PR gdb/13901
9130 * darwin-nat.c (darwin_execvp): Revert previous patch.
9131
9132 2012-04-11 Tristan Gingold <gingold@adacore.com>
9133
9134 PR gdb/13901
9135 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9136 in case of change.
9137
9138 2012-04-11 Tristan Gingold <gingold@adacore.com>
9139
9140 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9141 warning.
9142
9143 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9144
9145 New command 'explore' which helps explore values and types in
9146 scope.
9147 * NEWS: Add an entry about the new 'explore' command.
9148 * data-directory/Makefile.in: Add gdb/command/explore.py
9149 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9150 command using the GDB Python API.
9151
9152 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9153
9154 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9155 extension in jump target calculation.
9156
9157 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9158
9159 * mips-tdep.c (mips32_next_pc): Handle JALX.
9160
9161 2012-04-10 Yao Qi <yao@codesourcery.com>
9162
9163 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9164
9165 2012-04-10 Yao Qi <yao@codesourcery.com>
9166
9167 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9168 and gnulib/m4/gnulib-tool.m4.
9169
9170 2012-04-10 Doug Evans <dje@google.com>
9171
9172 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9173 (load_partial_dies): Clarify comment.
9174 (find_partial_die): Support rereading type units.
9175 Clarify CU handling, if we know offset is in CU, don't search for the
9176 containing CU. Add comment regarding memory waste.
9177
9178 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9179
9180 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9181 i386/x32-avx and i386/x32-avx-linux.
9182 (i386/x32-expedite): New.
9183 (i386/x32-linux-expedite): Likewise.
9184 (i386/x32-avx-expedite): Likewise.
9185 (i386/x32-avx-linux-expedite): Likewise.
9186 ($(outdir)/i386/x32.dat): Likewise.
9187 ($(outdir)/i386/x32-linux.dat): Likewise.
9188 ($(outdir)/i386/x32-avx.dat): Likewise.
9189 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9190
9191 * features/i386/x32-avx-linux.xml: New file.
9192 * features/i386/x32-avx.xml: Likewise.
9193 * features/i386/x32-core.xml: Likewise.
9194 * features/i386/x32-linux.xml: Likewise.
9195 * features/i386/x32.xml: Likewise.
9196
9197 * features/i386/x32-avx-linux.c: New. Generated.
9198 * features/i386/x32-avx.c: Likewise.
9199 * features/i386/x32-linux.c: Likewise.
9200 * features/i386/x32.c: Likewise.
9201 * regformats/i386/x32-avx-linux.dat: Likewise.
9202 * regformats/i386/x32-avx.dat: Likewise.
9203 * regformats/i386/x32-linux.dat: Likewise.
9204 * regformats/i386/x32.dat: Likewise.
9205
9206 2012-04-10 Tristan Gingold <gingold@adacore.com>
9207
9208 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9209 code to kill the inferior.
9210
9211 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9212
9213 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9214 defines.
9215 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9216 defines.
9217 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9218 (yyvsp): New defines.
9219 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9220 defines.
9221 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9222 defines.
9223 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9224 defines.
9225 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9226 defines.
9227 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9228 defines.
9229
9230 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9231
9232 * sparc64-tdep.c (sparc64_store_arguments)
9233 (sparc64_store_arguments): Fix coding style.
9234
9235 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9236
9237 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9238 complex floats, adjust some related comments and tighten a related
9239 assertion.
9240 (sparc64_extract_return_value): Handle complex floats.
9241
9242 2012-04-07 Doug Evans <dje@google.com>
9243
9244 * dwarf2read.c (load_partial_dies): Change condition to assert.
9245
9246 2012-04-06 Doug Evans <dje@google.com>
9247
9248 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9249 "mov %rsp,%rbp".
9250
9251 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9252
9253 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9254 fencepost error.
9255 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9256 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9257 architecture.
9258
9259 2012-04-05 Keith Seitz <keiths@redhat.com>
9260
9261 * linespec.c (decode_compound): Remove.
9262 (enum offset_relative_sign): New enum.
9263 (struct line_offset): New struct.
9264 (struct linespec): New struct.
9265 (struct linespec_state): Move file_symtabs,
9266 user_filename, and user_function into struct linespec.
9267 Make result an anonymous struct holding vectors of
9268 symbolp and minsym_and_objfile_d.
9269 Add language member.
9270 (enum ls_token_type): New enum.
9271 (linespec_keywords): New array.
9272 (struct ls_token): New struct.
9273 (struct ls_parser): New struct.
9274 (linespec_lexer_lex_number): New function.
9275 (linespec_lexer_lex_keyword): New function.
9276 (is_ada_operator): New function.
9277 (skip_quote_char): New function.
9278 (copy_token_string): New function.
9279 (is_closing_quote_enclosed): New function.
9280 (find_parameter_list_end): New function.
9281 (linespec_lexer_lex_string): New function.
9282 (linespec_lexer_lex_one): New function.
9283 (linespec_lexer_consume_token): New function.
9284 (linespec_lexer_peek_token): New function.
9285 (cplusplus_error): Remove unused function.
9286 (find_methods): Update comment.
9287 (find_toplevel_char): Return const.
9288 (is_objc_method_format): Remove unused function.
9289 (find_toplevel_string): New function.
9290 (is_linespec_boundary): Remove.
9291 (symbol_not_found_error): New function.
9292 (find_method_overload_end): Remove function.
9293 (unexpected_linespec_error): New function.
9294 (keep_name_info): Remove.
9295 (linespec_parse_line_offset): New function.
9296 (linespec_parse_basic): New function.
9297 (canonicalize_linespec): New function.
9298 (decode_line_internal): Remove.
9299 (create_sals_line_offset): New function adapted from
9300 decode_all_digits.
9301 (convert_linespec_to_sals): New function.
9302 (parse_linespec): New function.
9303 (linespec_parser_new): New function.
9304 (linespec_state_destructor): Change parameter type to
9305 struct linespec_state *.
9306 Add language parameter.
9307 Remove freeing of moved members.
9308 (linespec_parser_delete): New function.
9309 (decode_line_full): Use parse_linespec and linespec_parser_new.
9310 (decode_line_1): Likewise.
9311 (decode_indirect): Rename to ...
9312 (linespec_expression_to_pc): ... this and rewrite
9313 to simply find CORE_ADDR, storing this result for later
9314 conversion to SALs.
9315 (locate_first_half): Remove.
9316 (deocde_objc): Add parameter LS.
9317 Initialize new struct collect_info members.
9318 Handle minimal symbols, too.
9319 (decode_compound): Delete.
9320 (lookup_prefix_sym): Rewrite.
9321 (compare_msymbols): New function.
9322 (find_method): Rewrite.
9323 Do not call cplusplus_error.
9324 (symtabs_from_filename): Rewrite.
9325 (collect_function_symbols): Delete.
9326 (find_function_symbols): Rewrite without ARGPTR-style
9327 processing.
9328 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9329 (decode_dollar): Adapted and renamed to ...
9330 (linespec_parse_variable): ... this.
9331 (find_linespec_symbols): New function.
9332 (decode_label): Adapted and renamed to ...
9333 (find_label_symbols): ... this.
9334 (decode_digits_list_mode): Add and use LS argument.
9335 (decode_digits_ordinary): Likewise.
9336 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9337 If in list mode, allow any symbol class. Otherwise, only
9338 permit LOC_BLOCK symbols.
9339 (minsym_found): Update comments.
9340 (search_minsyms_for_name): Do not convert the matching symbol
9341 into a SAL. Simply push the symbol and objfile into the
9342 result vector.
9343 (decode_variable): Delete. Contents adapted into
9344 find_linespec_symbols.
9345
9346 * cp-support.c (SKIP_SPACE): Remove.
9347 (operator_tokens): Remove unused global.
9348 (cp_validate_operator): Remove.
9349 * cp-support.h (cp_validate_operator): Remove declaration.
9350
9351 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9352
9353 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9354 for TYPE_VPTR_FIELDNO.
9355 * valprint.c (valprint_check_validity): Make it global, move the
9356 function comment ...
9357 * value.h (valprint_check_validity): ... to this new declaration.
9358
9359 2012-04-02 Tristan Gingold <gingold@adacore.com>
9360
9361 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9362 the STATE32 api for i386 state.
9363 (i386_darwin_store_inferior_registers): Likewise.
9364
9365 2012-04-02 Tristan Gingold <gingold@adacore.com>
9366
9367 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9368 SS offset.
9369 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9370 format_string.
9371
9372 2012-04-02 Tristan Gingold <gingold@adacore.com>
9373
9374 PR gdb/13901
9375 * darwin-nat.c (darwin_execvp): Set binary preference.
9376
9377 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9378
9379 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9380
9381 2012-03-30 Tom Tromey <tromey@redhat.com>
9382
9383 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9384 of TRY_CATCH. Fix error handling.
9385 * python/py-value.c (convert_value_from_python): Move 'old'
9386 declaration to innermost scope.
9387
9388 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9389 Andrey Smirnov <andrew.smirnov@gmail.com>
9390
9391 -Wshadow warning fix.
9392 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9393 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9394 Adjust code accordingly.
9395
9396 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9397
9398 * ada-lang.c (symbol_completion_add): Rename parameter
9399 "encoded" into "encoded_p". Ajust code and documentation
9400 accordingly.
9401
9402 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9403 Andrey Smirnov <andrew.smirnov@gmail.com>
9404
9405 -Wshadow warning fix.
9406 * ada-lang.c (symbol_completion_add): Rename parameter
9407 "wild_match" into wild_match_p. Update code and documentation
9408 accordingly.
9409
9410 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9411
9412 * ada-lang.c (symbol_completion_match): Rename parameter
9413 "encoded" into "encoded_p". Ajust code and documentation
9414 accordingly.
9415
9416 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9417 Andrey Smirnov <andrew.smirnov@gmail.com>
9418
9419 -Wshadow warning fix.
9420 * ada-lang.c (symbol_completion_match): Rename parameter
9421 "wild_match" into "wild_match_p". Adjust code and function
9422 documentation accordingly.
9423
9424 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9425 Andrey Smirnov <andrew.smirnov@gmail.com>
9426
9427 -Wshadow warning fix.
9428 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9429 "symbol_info" into "info". Adjust code accordingly.
9430 (ada_lookup_symbol): Likewise.
9431
9432 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9433
9434 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9435 of this function's documentation.
9436
9437 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9438 Andrey Smirnov <andrew.smirnov@gmail.com>
9439
9440 -Wshadow warning fix.
9441 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9442 variable into "wild_match_p". Adjust code accordingly.
9443
9444 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9445 Andrey Smirnov <andrew.smirnov@gmail.com>
9446
9447 -Wshadow warning fix.
9448 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9449 parameter into "wild_match_p". Adjust code accordingly.
9450 Document this parameter in the function description.
9451
9452 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9453 Andrey Smirnov <andrew.smirnov@gmail.com>
9454
9455 -Wshadow warning fix.
9456 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9457 "wild_match" parameter to "wild_match_p" (-Wshadow).
9458
9459 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9460
9461 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9462 in function documentation.
9463
9464 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9465 Andrey Smirnov <andrew.smirnov@gmail.com>
9466
9467 -Wshadow warning fix.
9468 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9469 variable into wild_match_p. Adjust code accordingly.
9470
9471 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9472 Andrey Smirnov <andrew.smirnov@gmail.com>
9473
9474 * ada-valprint.c (ada_val_print_1): Move the code handling
9475 TYPE_CODE_ENUM inside its own lexical block. Declare
9476 variables len and val there, instead of in the function's
9477 top level block. Avoid declaring deref_val again in a way
9478 that shadows another variable of the same name declared
9479 in one of the up-level blocks. Just re-use the up-level
9480 variable instead.
9481
9482 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9483
9484 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9485 Replace block_found argument by symbol_info. Adjust
9486 implementation accordingly. Add function documentation.
9487 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9488 Fix documentation.
9489 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9490 * ada-exp.y (write_object_renaming): Adjust to new
9491 ada_lookup_encoded_symbol API.
9492
9493 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9494
9495 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9496 documentation.
9497
9498 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9499
9500 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9501 (v850_register_name): Add the mpu and fpu register names.
9502 (v850e_register_name): Add the mpu and fpu register names.
9503 (v850e2_register_name): New function.
9504 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9505 bfd_mach_v850e2v3.
9506
9507 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9508
9509 * NEWS: Add entry for Ada varobj support.
9510
9511 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9512
9513 * varobj.c (default_value_is_changeable_p): New function,
9514 extracted from varobj_value_is_changeable_p. Add declaration.
9515 (ada_value_is_changeable_p): New function, extracted from
9516 varobj_value_is_changeable_p. Add declaration.
9517 (struct language_specific): New field "value_is_changeable_p".
9518 (languages): Add entries for new field.
9519 (varobj_create): Set language before calling install_new_value.
9520 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9521 "value_is_changeable_p" language callback.
9522
9523 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9524
9525 * ada-varobj.h, ada-varobj.c: New files.
9526 * Makefile.in (SFILES): Add ada-varobj.c.
9527 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9528 (COMMON_OBS): Add ada-varobj.o.
9529
9530 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9531
9532 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9533 (struct language_specific): New field "value_has_mutated".
9534 (languages): Set field "value_has_mutated" in each entry of array.
9535 (varobj_value_has_mutated): New function.
9536 (varobj_udpdate): Add handling of type mutation.
9537 (value_of_root): Add handling of type mutation.
9538 (ada_value_has_mutated): New function.
9539
9540 2012-03-28 Pedro Alves <palves@redhat.com>
9541
9542 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9543 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9544
9545 2012-03-28 Tom Tromey <tromey@redhat.com>
9546
9547 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9548 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9549 before returning.
9550
9551 2012-03-28 Tom Tromey <tromey@redhat.com>
9552
9553 * .dir-locals.el: New file.
9554
9555 2012-03-28 Pedro Alves <palves@redhat.com>
9556
9557 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9558
9559 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9560
9561 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9562 handling for r0.
9563
9564 2012-03-27 Pedro Alves <palves@redhat.com>
9565
9566 Eliminate struct ui_stream.
9567
9568 * ui-out.h (struct ui_stream): Delete.
9569 (ui_out_field_stream): Adjust prototype.
9570 (ui_out_stream_new, ui_out_stream_delete)
9571 (make_cleanup_ui_out_stream_delete): Delete declarations.
9572 * ui-out.c (ui_out_field_stream): Change prototype to take a
9573 ui_file instead of a ui_stream. Adjust.
9574 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9575 (make_cleanup_ui_out_stream_delete): Delete.
9576 * breakpoint.c (print_breakpoint_location)
9577 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9578 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9579 * disasm.c (dump_insns): Ditto.
9580 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9581 prototype.
9582 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9583 ui_stream/ui_out_stream_new.
9584 * infcmd.c (print_return_value): Ditto.
9585 * osdata.c (info_osdata_command): Don't allocate a local
9586 ui_stream.
9587 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9588 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9589 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9590 allocate a local ui_stream.
9591 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9592 instead of ui_stream/ui_out_stream_new.
9593 (list_args_or_locals): Don't allocate a local ui_stream.
9594 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9595 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9596 ui_stream/ui_out_stream_new.
9597 * cli/cli-setshow.c (do_setshow_command): Ditto.
9598
9599 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9600
9601 * arm-linux-tdep.c (arm_linux_init_abi): Call
9602 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9603 * arm-tdep.c (arm_process_record): New function.
9604 (deallocate_reg_mem): New function.
9605 (decode_insn): New function.
9606 (thumb_record_branch): New function.
9607 (thumb_record_ldm_stm_swi(): New function.
9608 (thumb_record_misc): New function.
9609 (thumb_record_ld_st_stack): New function.
9610 (thumb_record_ld_st_imm_offset): New function.
9611 (thumb_record_ld_st_reg_offset(): New function.
9612 (thumb_record_add_sub_cmp_mov): New function.
9613 (thumb_record_shift_add_sub): New function.
9614 (arm_record_coproc_data_proc): New function.
9615 (arm_record_coproc): New function.
9616 (arm_record_b_bl): New function.
9617 (arm_record_ld_st_multiple): New function.
9618 (arm_record_ld_st_reg_offset): New function.
9619 (arm_record_ld_st_imm_offset): New function.
9620 (arm_record_data_proc_imm): New function.
9621 (arm_record_data_proc_misc_ld_str): New function.
9622 (arm_record_extension_space): New function.
9623 (arm_record_strx): New function.
9624 (sbo_sbz): New function.
9625 (struct insn_decode_record): New structure for arm insn record.
9626 (REG_ALLOC): New macro for reg allocations.
9627 (MEM_ALLOC): New macro for memory allocations.
9628 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9629
9630 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9631
9632 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9633 (store_register): Likewise.
9634
9635 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9636
9637 * MAINTAINERS (Write After Approval): Add myself to the list.
9638
9639 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9640
9641 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9642 Describe also the option "auto".
9643
9644 2012-03-22 Richard Henderson <rth@redhat.com>
9645
9646 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9647 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9648
9649 2012-03-22 Richard Henderson <rth@redhat.com>
9650
9651 * jit.c (jit_read_code_entry): Compute alignment and offset of
9652 int64_t member before computing entry_size.
9653
9654 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9655
9656 Python scripting: Add new method Value.referenced_value to
9657 gdb.Value which can dereference pointer as well as reference
9658 values.
9659 * NEWS: Add entry under 'Python scripting' about the new method
9660 Value.referenced_value on gdb.Value objects.
9661 * python/py-value.c (valpy_referenced_value): New function
9662 defining a new method on gdb.Value objects which can dereference
9663 pointer and reference values.
9664
9665 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9666
9667 * MAINTAINERS (Write After Approval): Add myself to the list.
9668
9669 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9670
9671 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9672 in addition to "main".
9673
9674 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9675
9676 * expression.h (op_name): Add declaration.
9677 * expprint.c (op_name): Remove declaration. Make non-static.
9678 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9679
9680 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9681
9682 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9683 of struct siginfo.
9684 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9685 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9686 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9687 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9688 (linux_nat_get_siginfo): Likewise.
9689 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9690 (linux_nat_get_siginfo): Likewise.
9691 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9692 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9693 * procfs.c (gdb_siginfo_t): Likewise.
9694
9695 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9696
9697 * .gitignore: Ignore more files.
9698
9699 2012-03-20 Pedro Alves <palves@redhat.com>
9700
9701 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9702 returns.
9703
9704 2012-03-20 Yao Qi <yao@codesourcery.com>
9705
9706 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9707 comment.
9708
9709 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9710
9711 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9712 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9713 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9714 sect_offset.
9715 * dwarf2expr.h (cu_offset, sect_offset): New types.
9716 (struct dwarf_expr_context_funcs) <dwarf_call>
9717 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9718 sect_offset.
9719 (struct dwarf_expr_context) <len>: Improve the comment.
9720 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9721 cu_offset and sect_offset.
9722 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9723 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9724 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9725 * dwarf2loc.h: Include dwarf2expr.h.
9726 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9727 and sect_offset.
9728 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9729 Improve the comment.
9730 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9731 (struct signatured_type, struct line_header, struct partial_die_info)
9732 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9733 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9734 (get_die_type_at_offset, create_cus_from_index)
9735 (create_signatured_type_table_from_index, dw2_get_file_names)
9736 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9737 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9738 (create_debug_types_hash_table, process_psymtab_comp_unit)
9739 (load_partial_comp_unit, create_all_comp_units)
9740 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9741 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9742 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9743 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9744 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9745 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9746 (find_partial_die, read_attribute_value, lookup_die_type)
9747 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9748 (is_ref_attr): New function comment.
9749 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9750 Use cu_offset and sect_offset.
9751 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9752 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9753 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9754 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9755 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9756 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9757 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9758 sect_offset.
9759
9760 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9761
9762 Code cleanup.
9763 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9764 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9765 with xfree.
9766 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9767
9768 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9769
9770 * NEWS: Describe new options --init-command=FILE, -ix and
9771 --init-eval-command=COMMAND, -iex.
9772 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9773 CMDARG_INIT_COMMAND.
9774 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9775 "init-command", "init-eval-command", "ix" and "iex" to the variable
9776 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9777 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9778 (print_gdb_help): Describe --init-command=FILE, -ix and
9779 --init-eval-command=COMMAND, -iex.
9780
9781 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9782
9783 Code cleanup.
9784 * main.c (struct cmdarg): Move it here from main. Add more comments.
9785 (cmdarg_s, VEC (cmdarg_s)): New.
9786 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9787 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9788 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9789 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9790 of CMDARG.
9791
9792 2012-03-19 Tom Tromey <tromey@redhat.com>
9793
9794 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9795
9796 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9797
9798 PR symtab/13777
9799 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9800 GCC >=4.5.
9801
9802 2012-03-16 Chris January <chris.january@allinea.com>
9803
9804 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9805 of clear.
9806
9807 2012-03-16 Chris January <chris.january@allinea.com>
9808
9809 * source.c (add_path): Use memmove instead of strcpy because the
9810 strings overlap.
9811
9812 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9813
9814 * value.h (set_value_parent): Add declaration.
9815 * value.c (set_value_parent): New function.
9816 (value_address): If VALUE->PARENT is not NULL, then use it as
9817 the base address instead of VALUE->LOCATION.address.
9818 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9819 the same as OBJ's address. Adjust V's offset accordingly.
9820 Set V's parent.
9821
9822 2012-03-16 Gary Benson <gbenson@redhat.com>
9823
9824 PR breakpoints/10738
9825 * dwarf2read.c (use_deprecated_index_sections): New global.
9826 (struct partial_die_info): New member may_be_inlined.
9827 (read_partial_die): Set may_be_inlined where appropriate.
9828 (add_partial_subprogram): Add partial symbols for partial
9829 DIEs that may be inlined.
9830 (new_symbol_full): Add inlined subroutines to the current
9831 scope.
9832 (write_psymtabs_to_index): Bump version number.
9833 (dwarf2_read_index): Read only version 6 indices unless
9834 use_deprecated_index_sections is set.
9835 * linespec.c (symbol_and_data_callback): New structure.
9836 (iterate_inline_only): New function.
9837 (iterate_over_all_matching_symtabs): New argument
9838 "include_inline". If nonzero, also call the callback for
9839 symbols representing inlined subroutines.
9840 (lookup_prefix_sym): Pass extra argument to the above.
9841 (find_function_symbols): Likewise.
9842 (add_matching_symbols_to_info): Likewise.
9843 * NEWS: Mention that GDB can now set breakpoints on inlined
9844 functions.
9845
9846 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9847
9848 * p-typeprint.c (pascal_type_print_method_args):
9849 Fix display of parameter of methods.
9850
9851 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9852
9853 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9854 Add missing prototype.
9855
9856 2012-03-16 Yao Qi <yao@codesourcery.com>
9857 Jan Kratochvil <jan.kratochvil@redhat.com>
9858
9859 Fix false compilation warning.
9860 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9861
9862 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9863 Pedro Alves <pedro@codesourcery.com>
9864
9865 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9866 (arm_register_g_packet_guesses): New function.
9867 (arm_gdbarch_init): Don't force a target description with
9868 registers when the executable is detected as M-profile. Instead
9869 set gdbarch->tdep->is_m. Register `g' packet guesses.
9870 (_initialize_arm_tdep): Initialize the new target description.
9871 * features/arm-with-m-fpa-layout.xml: New description.
9872 * features/arm-with-m-fpa-layout.c: New, generated.
9873
9874 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9875
9876 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9877 Update function description.
9878 (insert_bp_location): Do not wipe bl->target_info out.
9879 * mem-break.c: #include "gdb_string.h".
9880 (default_memory_insert_breakpoint): Do not call target_read_memory
9881 with a pointer to the breakpoint's shadow_contents buffer. Use
9882 a local buffer instead.
9883 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9884
9885 2012-03-15 Tom Tromey <tromey@redhat.com>
9886
9887 * NEWS: Mention "info vtbl", not "info vtable".
9888 * cp-support.c (info_vtbl_command): Fix comment.
9889 (_initialize_cp_support): Fix text.
9890
9891 2012-03-15 Tom Tromey <tromey@redhat.com>
9892
9893 * cp-valprint.c (cp_print_value_fields): Use
9894 print_function_pointer_address for vtable slot.
9895
9896 2012-03-15 Tom Tromey <tromey@redhat.com>
9897
9898 * gnu-v3-abi.c (struct value_and_voffset): New.
9899 (hash_value_and_voffset, eq_value_and_voffset)
9900 (compare_value_and_voffset, compute_vtable_size)
9901 (print_one_vtable, gnuv3_print_vtable): New functions.
9902 (init_gnuv3_ops): Initialize 'print_vtable' field.
9903 * cp-support.c (info_vtbl_command): New function.
9904 (_initialize_cp_support): Add "info vtbl".
9905 * cp-abi.h (cplus_print_vtable): Declare.
9906 (struct cp_abi_ops) <print_vtable>: New field.
9907 * cp-abi.c (cplus_print_vtable): New function.
9908 * NEWS: Update.
9909
9910 2012-03-15 Tom Tromey <tromey@redhat.com>
9911
9912 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9913 iterate_over_symbols.
9914
9915 2012-03-14 Doug Evans <dje@google.com>
9916
9917 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9918 DW_OP_GNU_parameter_ref.
9919
9920 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9921
9922 Fix double prompt of 'interpreter-exec mi'.
9923 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9924 (mi_interpreter_resume): use it.
9925 (mi_execute_command_input_handler): New function.
9926 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9927 mi_execute_command_input_handler.
9928
9929 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9930
9931 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9932 prototype.
9933 (darwin_debug_port_info): Make static.
9934 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9935 * machoread.c (_initialize_machoread): Add prototype.
9936 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9937 (i386_darwin_set_control, i386_darwin_get_control)
9938 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9939 i386_darwin_get_status, i386_darwin_get_control):
9940 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9941
9942 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9943
9944 * ax-gdb.c (gen_usual_unary): Remove special handling of
9945 enum and bool types.
9946
9947 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9948
9949 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9950
9951 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9952
9953 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9954
9955 2012-03-13 Chris January <chris.january@allinea.com>
9956
9957 * aix-thread.c (fill_sprs): Store the floating point registers
9958 at the correct offsets into vals.
9959
9960 2012-03-13 Doug Evans <dje@google.com>
9961
9962 * NEWS: Mention symbol-reloading has been deleted.
9963 * symfile.c (symbol_reloading): Delete.
9964 (show_symbol_reloading): Delete.
9965 (_initialize_symfile): Delete set/show symbol-reloading.
9966
9967 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9968 read_in_chain until we have successfully read it in.
9969 (load_full_comp_unit): Ditto.
9970 (read_signatured_type): Add comment.
9971
9972 2012-03-13 Chris January <chris.january@allinea.com>
9973
9974 * stabsread.c (fix_common_block): Change type of valu argument
9975 to CORE_ADDR.
9976
9977 2012-03-13 Chris January <chris.january@allinea.com>
9978
9979 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9980 instruction.
9981
9982 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9983
9984 * common/linux-procfs.c (linux_proc_get_int): New, from
9985 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9986 field.
9987 (linux_proc_get_tgid): Only call linux_proc_get_int.
9988 (linux_proc_get_tracerpid): New.
9989 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9990 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9991 linux_proc_pid_has_state.
9992 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9993 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9994 (linux_ptrace_attach_warnings): New.
9995 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9996 New declaration.
9997 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9998 (linux_nat_attach): New variables ex, buffer, message and message_s.
9999 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10000
10001 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10002
10003 * Makefile.in (linux-ptrace.o): New.
10004 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10005 from linux-nat.c.
10006 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10007 * common/linux-ptrace.c: New file.
10008 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10009 * config/arm/linux.mh: Likewise.
10010 * config/i386/linux.mh: Likewise.
10011 * config/i386/linux64.mh: Likewise.
10012 * config/ia64/linux.mh: Likewise.
10013 * config/m32r/linux.mh: Likewise.
10014 * config/m68k/linux.mh: Likewise.
10015 * config/mips/linux.mh: Likewise.
10016 * config/pa/linux.mh: Likewise.
10017 * config/powerpc/linux.mh: Likewise.
10018 * config/powerpc/ppc64-linux.mh: Likewise.
10019 * config/powerpc/spu-linux.mh: Likewise.
10020 * config/s390/s390.mh: Likewise.
10021 * config/sparc/linux.mh: Likewise.
10022 * config/sparc/linux64.mh: Likewise.
10023 * config/xtensa/linux.mh: Likewise.
10024 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10025 common/linux-procfs.c.
10026 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10027
10028 2012-03-13 Hui Zhu <teawater@gmail.com>
10029 Pedro Alves <palves@redhat.com>
10030
10031 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
10032 CREATE_BREAKPOINT_FLAGS_INSERTED.
10033 (create_breakpoint_sal, create_breakpoints_sal)
10034 (base_breakpoint_create_breakpoints_sal)
10035 (tracepoint_create_breakpoints_sal)
10036 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
10037 down.
10038 (break_command_1, handle_gnu_v3_exceptions, trace_command)
10039 (ftrace_command, strace_command): Adjust.
10040 (create_tracepoint_from_upload): Pass
10041 CREATE_BREAKPOINT_FLAGS_INSERTED.
10042 * breakpoint.h (enum breakpoint_create_flags): New.
10043 (create_breakpoint): New flags parameter.
10044 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10045 * python/py-breakpoint.c (bppy_init): Adjust.
10046 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10047 * spu-tdep.c (spu_catch_start): Adjust.
10048
10049 2012-03-13 Pedro Alves <palves@redhat.com>
10050 Hui Zhu <teawater@gmail.com>
10051 Yao Qi <yao@codesourcery.com>
10052
10053 * remote.c (struct remote_state): New field `starting_up'.
10054 (remote_start_remote): Set and clear it.
10055 (remote_can_download_tracepoint): If starting up, return false.
10056
10057 2012-03-13 Yao Qi <yao@codesourcery.com>
10058
10059 * inferior.h (struct inferior): Remove fields any_syscall_count,
10060 syscalls_counts and total_syscalls_count. Move them to new
10061 struct catch_syscall_inferior_data in breakpoint.c.
10062 * breakpoint.c: Call DEF_VEC_I(int).
10063 (struct catch_syscall_inferior_data): New.
10064 (get_catch_syscall_inferior_data): New.
10065 (catch_syscall_inferior_data_cleanup): New.
10066 (insert_catch_syscall): Update to access data in
10067 struct catch_syscall_inferior_data.
10068 (insert_catch_syscall): Likewise.
10069 (remove_catch_syscall): Likewise.
10070 (remove_catch_syscall): Likewise.
10071 (is_syscall_catchpoint_enabled): Likewise.
10072 (add_catch_command): Likewise.
10073 (_initialize_breakpoint): Register cleanup.
10074 * breakpoint.h: Removed DEF_VEC_I(int).
10075 * dwarf2loc.c: Call DEF_VEC_I(int).
10076 * mi/mi-main.c: Likewise.
10077
10078 2012-03-12 Mark Kettenis <kettenis@gnu.org>
10079
10080 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10081
10082 2012-03-12 Chris January <chris.january@allinea.com>
10083
10084 * aix-thread.c (_initialize_aix_thread): Add prototype.
10085 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10086 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10087
10088 2012-03-12 Joel Brobecker <brobecker@adacore.com>
10089
10090 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10091 include of "amd64-nat.h".
10092
10093 2012-03-12 Tom Tromey <tromey@redhat.com>
10094
10095 * buildsym.c (record_pending_block): Now static.
10096 * buildsym.h: (record_pending_block): Remove.
10097
10098 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
10099
10100 * amd64bsd-nat.c: Include amd64bsd-nat.h.
10101
10102 2012-03-09 Tom Tromey <tromey@redhat.com>
10103
10104 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10105 producer_is_gxx_lt_4_6>: New fields.
10106 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10107
10108 2012-03-09 Tom Tromey <tromey@redhat.com>
10109
10110 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10111
10112 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10113
10114 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10115 prototype.
10116
10117 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10118
10119 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10120
10121 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10122
10123 Fix -Wmissing-prototypes build.
10124 * arm-linux-nat.c (get_thread_id): Make it static.
10125 * xtensa-linux-nat.c (get_thread_id): Likewise.
10126
10127 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10128
10129 * server.c (process_point_options): If a conditional expression
10130 is found, only print a message if remote_debug is nonzero.
10131
10132 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
10133
10134 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10135 of internal error for unknown/unsupported types.
10136
10137 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10138
10139 Fix CU relative vs. absolute DIE offsets.
10140 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10141 offset to offset_in_cu.
10142 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10143 TYPE_OFFSET.
10144 (dwarf2_fetch_die_location_block): Rename parameter offset to
10145 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10146
10147 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10148
10149 * libunwind-frame.c: Rename to ...
10150 * ia64-libunwind-tdep.c: ... here.
10151 * libunwind-frame.h: Rename to ...
10152 * ia64-libunwind-tdep.h: ... here.
10153 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10154 ia64-libunwind-tdep.h.
10155 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10156 * README (--with-libunwind): Rename to ...
10157 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10158 * config.in: Regenerate.
10159 * configure: Regenerate.
10160 * configure.ac: New option --with-libunwind-ia64, make the
10161 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10162 Remove AC_DEFINE for HAVE_LIBUNWIND.
10163 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10164 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10165 Rename libunwind-frame in the general comment.
10166 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10167 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10168 Move forward declarations inside #ifndef. Rename libunwind-frame in
10169 the general comment.
10170 * ia64-tdep.c: Rename libunwind-frame.h #include to
10171 ia64-libunwind-tdep.h.
10172 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10173 (ia64_libunwind_descr): Rename libunwind-frame to
10174 ia64-libunwind-tdep in these function comments.
10175 * ia64-tdep.h: Rename libunwind-frame.h #include to
10176 ia64-libunwind-tdep.h.
10177 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10178 ia64-libunwind-tdep in that data comment.
10179
10180 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10181
10182 * libunwind-frame.h (struct frame_unwind): New declaration.
10183
10184 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10185
10186 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10187 "set breakpoint condition-evaluation" command.
10188
10189 2012-03-08 Tristan Gingold <gingold@adacore.com>
10190
10191 * sparc-stub.c: Move to stubs/
10192 * sh-stub.c: Likewise.
10193 * m68k-stub.c: Likewise.
10194 * m32r-stub.c: Likewise.
10195 * i386-stub.c: Likewise.
10196
10197 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10198
10199 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10200 linux_get_siginfo_type.
10201
10202 * m68klinux-nat.c: Include "gdb_proc_service.h".
10203 (PTRACE_GET_THREAD_AREA): Define.
10204 (ps_get_thread_area): New function.
10205
10206 2012-03-08 Yao Qi <yao@codesourcery.com>
10207
10208 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10209 `xsnprintf'.
10210 (remote_query_attached): Likewise.
10211 (remote_static_tracepoint_marker_at): Likewise.
10212 (remote_set_permissions): Likewise.
10213 (remote_detach_1, extended_remote_attach_1): Likewise.
10214 (send_g_packet, remote_vkill): Likewise.
10215 (extended_remote_disable_randomization): Likewise.
10216 (remote_add_target_side_condition): Likewise.
10217 (remote_insert_breakpoint): Likewise.
10218 (remote_remove_breakpoint): Likewise.
10219 (remote_insert_watchpoint): Likewise.
10220 (remote_remove_watchpoint): Likewise.
10221 (remote_insert_hw_breakpoint): Likewise.
10222 (remote_insert_hw_breakpoint): Likewise.
10223 (remote_remove_hw_breakpoint): Likewise.
10224 (remote_download_command_source): Likewise.
10225 (remote_download_tracepoint): Likewise.
10226 (remote_download_trace_state_variable): Likewise.
10227 (remote_disable_tracepoint): Likewise.
10228 (remote_trace_set_readonly_regions): Likewise.
10229 (remote_get_tracepoint_status): Likewise.
10230 (remote_trace_find): Likewise.
10231 (remote_get_trace_state_variable_value): Likewise.
10232 (remote_set_disconnected_tracing): Likewise.
10233 (remote_set_circular_trace_buffer): Likewise.
10234 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10235 (remote_use_agent): Likewise.
10236 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10237 Update callers.
10238
10239 2012-03-07 Pedro Alves <palves@redhat.com>
10240
10241 * NEWS: Mention QProgramSignals.
10242 * inferior.h (update_signals_program_target): Declare.
10243 * infrun.c: (update_signals_program_target): New.
10244 (handle_command): Update the target of the new program signals
10245 array changes.
10246 * remote.c (PACKET_QProgramSignals): New enum.
10247 (last_program_signals_packet): New global.
10248 (remote_program_signals): New.
10249 (remote_start_remote): Update the target with the program signals
10250 list.
10251 (remote_protocol_features): Add entry for QPassSignals.
10252 (remote_open_1): Free anc clear last_program_signals_packet.
10253 (init_remote_ops): Install remote_program_signals.
10254 * target.c (update_current_target): Adjust.
10255 (target_program_signals): New.
10256 * target.h (struct target_ops) <to_program_signals>: New field.
10257 (target_program_signals): Declare.
10258
10259 2012-03-07 Pedro Alves <palves@redhat.com>
10260
10261 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10262 extensions.
10263
10264 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10265
10266 * m68klinux-nat.c (getregs_supplies): Make static.
10267 (getfpregs_supplies): Likewise.
10268 (have_ptrace_getregs): Likewise.
10269
10270 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10271
10272 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10273 in call to get_die_type_at_offset.
10274
10275 2012-03-06 Stan Shebs <stan@codesourcery.com>
10276
10277 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10278 * mi/mi-cmd-disas.c: Ditto.
10279 * mi/mi-cmd-env.c: Ditto.
10280 * mi/mi-cmd-file.c: Ditto.
10281 * mi/mi-cmd-stack.c: Ditto.
10282 * mi/mi-cmd-target.c: Ditto.
10283 * mi/mi-cmd-var.c: Ditto.
10284 * mi/mi-cmds.c: Ditto.
10285 * mi/mi-cmds.h: Ditto.
10286 * mi/mi-console.c: Ditto.
10287 * mi/mi-getopt.c: Ditto.
10288 * mi/mi-getopt.h: Ditto.
10289 * mi/mi-interp.c: Ditto.
10290 * mi/mi-main.c: Ditto.
10291 * mi/mi-out.c: Ditto.
10292 * mi/mi-parse.c: Ditto.
10293 * mi/mi-parse.h: Ditto.
10294 * mi/mi-symbol-cmds.c: Ditto.
10295
10296 * mi/mi-getopt.h: Move mi_opt struct up.
10297 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10298 return.
10299 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10300
10301 2012-03-06 Tom Tromey <tromey@redhat.com>
10302
10303 * proc-service.c (ps_pglobal_lookup): Set the current program
10304 space.
10305
10306 2012-03-06 Pedro Alves <palves@redhat.com>
10307
10308 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10309
10310 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10311
10312 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10313
10314 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10315
10316 Code cleanup.
10317 * common/linux-osdata.c (linux_common_core_of_thread): New function
10318 comment.
10319 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10320 call by linux_common_core_of_thread.
10321 (linux_nat_core_of_thread_1): Remove.
10322 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10323 * linux-thread-db.c: Include linux-osdata.h.
10324 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10325 linux_common_core_of_thread.
10326
10327 2012-03-05 Tom Tromey <tromey@redhat.com>
10328
10329 * value.c (value_primitive_field): Don't fetch contents for
10330 non-virtual bases.
10331
10332 2012-03-05 Tom Tromey <tromey@redhat.com>
10333
10334 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10335
10336 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10337
10338 * s390-nat.c: Include "gregset.h".
10339
10340 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10341
10342 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10343 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10344 (libunwind_load): New variable so_error, use it for dlerror. Try to
10345 load also LIBUNWIND_SO_7.
10346
10347 2012-03-05 Pedro Alves <palves@redhat.com>
10348
10349 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10350 is not NULL, and remove resulting dead code.
10351
10352 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10353
10354 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10355 prologue to sh_analyze_prologue.
10356 (sh_analyze_prologue): Make better use of such an upper limit, and
10357 generally be more cautious about accessing memory.
10358
10359 2012-03-05 Tom Tromey <tromey@redhat.com>
10360
10361 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10362 _initialize_ia64_hpux_tdep.
10363
10364 2012-03-05 Pedro Alves <palves@redhat.com>
10365
10366 PR gdb/13766
10367
10368 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10369 the register state is clear, supply explicit zero, instead of
10370 marking the register unavailable.
10371
10372 2012-03-05 Tristan Gingold <gingold@adacore.com>
10373
10374 * NEWS: Mention OpenVMS ia64 new target.
10375
10376 2012-03-05 Tristan Gingold <gingold@adacore.com>
10377
10378 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10379 (ia64_unw_accessors, ia64_unw_rse_accessors)
10380 (ia64_libunwind_descr): Declare.
10381 * ia64-vms-tdep.c: New file.
10382 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10383 (ia64_libunwind_descr): Make them public.
10384 * configure.tgt: Add ia64-*-*vms*.
10385 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10386 (ALLDEPFILES): Add ia64-vms-tdep.c
10387
10388 2012-03-05 Tristan Gingold <gingold@adacore.com>
10389
10390 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10391 * remote.c (PACKET_qXfer_uib): New enum value.
10392 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10393 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10394 (_initialize_remote): Call add_packet_config_cmd for
10395 xfer:uib packet.
10396
10397 2012-03-05 Tristan Gingold <gingold@adacore.com>
10398
10399 * osabi.c (gdb_osabi_names): Add OpenVMS.
10400 (generic_elf_osabi_sniffer): Likewise.
10401 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10402
10403 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10404
10405 Removed unused code.
10406 * libunwind-frame.c (libunwind_frame_unwind)
10407 (libunwind_frame_base_address): Remove.
10408 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10409
10410 2012-03-04 Yao Qi <yao@codesourcery.com>
10411
10412 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10413 remove trailing new line.
10414 (agent_run_command, agent_run_command): Add _ markup.
10415 (agent_capability_check): Likewise.
10416
10417 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10418
10419 * breakpoint.c (set_condition_evaluation_mode): Set
10420 CONDITION_EVALUATION_MODE unconditionally.
10421
10422 2012-03-03 Yao Qi <yao@codesourcery.com>
10423
10424 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10425 * common/agent.h: Update declaration.
10426 * inf-child.c (inf_child_use_agent): New.
10427 (inf_child_can_use_agent): New.
10428 (inf_child_target): Initialize fields `to_use_agent'
10429 and `to_can_use_agent'.
10430 * agent.c (agent_new_objfile): New.
10431 (_initialize_agent): Add agent_new_objfile to new_objfile
10432 observer.
10433
10434 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10435 New.
10436 (linux_target_install_ops): Initialize field
10437 `to_static_tracepoint_markers_by_strid'.
10438 * remote.c (free_current_marker): Move it to ...
10439 * tracepoint.c (free_current_marker): ... here. New.
10440 (cleanup_target_stop): New.
10441 * tracepoint.h: Declare free_current_marker.
10442 * NEWS: Add one entry about `info static-tracepoint-marker'.
10443
10444 2012-03-03 Yao Qi <yao@codesourcery.com>
10445
10446 * common/agent.c (agent_loaded_p): New.
10447 (agent_look_up_symbols): New global.
10448 * common/agent.h: Declare agent_loaded_p.
10449
10450 2012-03-03 Yao Qi <yao@codesourcery.com>
10451
10452 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10453 (agent_capability_check, agent_capability_invalidate): New.
10454 (symbol_list): New array element.
10455 * common/agent.h (enum agent_capa): New.
10456 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10457
10458 2012-03-03 Yao Qi <yao@codesourcery.com>
10459
10460 * target.h (struct target_ops) <to_use_agent>: New field.
10461 (struct target_ops) <to_can_use_agent>: New field.
10462 (target_use_agent, target_can_use_agent): New macro.
10463 * target.c (update_current_target): Update.
10464 * remote.c: New enum `PACKET_QAgent'.
10465 (remote_protocol_features): Add a new element.
10466 (remote_use_agent, remote_can_use_agent): New.
10467 (init_remote_ops): Initialize field `can_use_agent' with
10468 remote_can_use_agent. Intiailize field `use_agent' with
10469 remote_use_agent.
10470 * common/agent.c (use_agent): New global.
10471 * common/agent.h: Declare it.
10472 * tracepoint.c (info_static_tracepoint_markers_command): Add
10473 comment.
10474 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10475 (COMMON_OBS): Add common/agent.o and agent.o
10476 (common-agent.o): New rule.
10477 * agent.c: New.
10478
10479 2012-03-03 Yao Qi <yao@codesourcery.com>
10480
10481 * common/agent.c: New.
10482 * common/agent.h: New.
10483 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10484 AC_CHECK_HEADERS.
10485 * configure, configh.in: Regenerated.
10486
10487 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10488
10489 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10490 unless it exists for this architecture.
10491
10492 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10493
10494 * language.h (struct language_defn): New "method" la_read_var_value.
10495 * findvar.c: #include "language.h".
10496 (default_read_var_value): Renames read_var_value. Rewrite
10497 function description.
10498 (read_var_value): New function.
10499 * value.h (default_read_var_value): Add prototype.
10500 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10501 New functions.
10502 (ada_language_defn): Add entry for la_read_var_value.
10503 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10504 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10505 language_defn structures to add entry for new la_read_var_value
10506 field.
10507
10508 2012-03-02 Tom Tromey <tromey@redhat.com>
10509 Pedro Alves <palves@redhat.com>
10510
10511 PR breakpoints/13776:
10512 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10513 breakpoints.
10514 (delete_longjmp_breakpoint_at_next_stop): New.
10515 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10516 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10517 before deleting the inferior. Add comments.
10518 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10519 breakpoints immediately, but only on next stop. Move that code
10520 next to where we mark other breakpoints for deletion.
10521
10522 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10523
10524 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10525 marker.
10526 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10527 violation.
10528
10529 2012-03-02 Pedro Alves <palves@redhat.com>
10530
10531 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10532
10533 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10534
10535 Fix -Wmissing-prototypes build.
10536 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10537 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10538 (gdbsim_has_memory): Likewise.
10539
10540 2012-03-02 Yao Qi <yao@codesourcery.com>
10541
10542 Fix -Wmissing-prototypes build.
10543 * charset.c (phony_iconv_open): Make static.
10544 (phony_iconv_close, phony_iconv): Likewise.
10545 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10546 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10547 prototype.
10548 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10549 * ser-mingw.c (create_select_thread): Make static.
10550 * windows-termcap.c (tgetent): New prototype.
10551 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10552
10553 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10554
10555 Fix -Wmissing-prototypes build.
10556 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10557 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10558 (_initialize_loadable): New prototypes.
10559
10560 2012-03-02 Doug Evans <dje@google.com>
10561
10562 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10563 abbrev table, read_comp_unit will do it.
10564
10565 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10566
10567 Fix -Wmissing-prototypes build.
10568 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10569 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10570 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10571 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10572 (_initialize_arm_symbian_tdep): New prototype.
10573 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10574 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10575 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10576 static.
10577 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10578 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10579 prototype.
10580 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10581 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10582 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10583 static.
10584 * moxie-tdep.c (moxie_process_record): Likewise.
10585 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10586 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10587 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10588 (_initialize_rl78_tdep): New prototype.
10589 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10590 (_initialize_rx_tdep): New prototype.
10591 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10592 (_initialize_darwin_solib): New prototype.
10593 * solib-spu.c: Include solib-spu.h.
10594 (_initialize_spu_solib): New prototype.
10595 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10596 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10597 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10598 (tic6x_software_single_step): Make it static.
10599 (_initialize_tic6x_tdep): New prototype.
10600
10601 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10602
10603 Fix -Wmissing-prototypes build.
10604 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10605 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10606
10607 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10608
10609 Fix -Wmissing-prototypes build.
10610 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10611 (frv_have_stopped_data_address): Remove.
10612
10613 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10614
10615 Fix -Wmissing-prototypes build.
10616 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10617 * sh-tdep.c: Include sh64-tdep.h.
10618 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10619 * sh64-tdep.c: Include sh64-tdep.h.
10620 * sh64-tdep.h: New file.
10621
10622 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10623
10624 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10625
10626 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10627
10628 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10629 sp_regnum once the gdbarch_init_osabi hook has been called.
10630
10631 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10632
10633 * mips-tdep.c (mips32_bc1_pc): New function.
10634 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10635 BPOSGE32 and BPOSGE64 instructions.
10636 (deal_with_atomic_sequence): Likewise.
10637 (mips32_instruction_has_delay_slot): Likewise.
10638
10639 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10640 Chris Dearman <chris@mips.com>
10641 Maciej W. Rozycki <macro@codesourcery.com>
10642 Joseph Myers <joseph@codesourcery.com>
10643
10644 * features/mips-dsp.xml: New file.
10645 * features/mips64-dsp.xml: New file.
10646 * features/mips-dsp-linux.xml: New file.
10647 * features/mips64-dsp-linux.xml: New file.
10648 * features/Makefile (WHICH): Add mips-dsp-linux and
10649 mips64-dsp-linux.
10650 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10651 * features/mips-dsp-linux.c: New file.
10652 * features/mips64-dsp-linux.c: New file.
10653 * regformats/mips-dsp-linux.dat: New file.
10654 * regformats/mips64-dsp-linux.dat: New file.
10655 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10656 registers.
10657 (mips64_linux_register_addr): Likewise.
10658 (mips64_linux_regsets_fetch_registers): Likewise.
10659 (mips64_linux_regsets_store_registers): Likewise.
10660 (mips64_linux_fetch_registers): Update call to
10661 mips64_linux_regsets_fetch_registers.
10662 (mips64_linux_store_registers): Update call to
10663 mips64_linux_regsets_store_registers.
10664 (mips_linux_read_description): Probe for DSP registers.
10665 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10666 and initialize_tdesc_mips64_dsp_linux.
10667 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10668 Remove padding of no longer used embedded register slots.
10669 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10670 (MIPS_RESTART_REGNUM): Redefine enum value.
10671 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10672 strings.
10673 (mips_tx39_reg_names): Likewise.
10674 (mips_linux_reg_names): New array of register names for Linux
10675 targets.
10676 (mips_register_name): Check for a null pointer in
10677 mips_processor_reg_names and return an empty string.
10678 (mips_register_type): Exclude embedded registers for the IRIX
10679 and Linux ABIs.
10680 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10681 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10682 DSP registers.
10683 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10684 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10685 (mips_gdbarch_init): Likewise. Initialize internal register
10686 indices for the Linux ABI. Use dynamic numbers to refer to
10687 registers, as applicable, while parsing the target description.
10688 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10689
10690 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10691
10692 * frame.h (read_frame_register_unsigned): Fix typo in function
10693 description.
10694
10695 2012-03-01 Pedro Alves <palves@redhat.com>
10696
10697 * jit-reader.in [!__cplusplus]
10698 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10699
10700 2012-03-01 Pedro Alves <palves@redhat.com>
10701
10702 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10703 * configure: Regenerate.
10704
10705 2012-03-01 Pedro Alves <palves@redhat.com>
10706
10707 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10708 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10709 (ftrace_command, strace_command): Make static.
10710 * d-lang.c (_initialize_d_language): Declare.
10711 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10712 * dwarf2loc.c (_initialize_dwarf2loc):
10713 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10714 * exec.c (exec_get_section_table): Make static.
10715 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10716 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10717 * inferior.c (remove_inferior_command, add_inferior_command)
10718 (clone_inferior_command): Make static.
10719 * linux-nat.c (linux_nat_thread_address_space)
10720 (linux_nat_core_of_thread): Make static.
10721 * linux-tdep.c (_initialize_linux_tdep): Declare.
10722 * objc-lang.c (_initialize_objc_lang): Declare.
10723 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10724 Make static.
10725 (_initialize_opencl_language): Declare.
10726 * record.c (_initialize_record): Declare.
10727 * remote.c (demand_private_info, remote_get_tib_address)
10728 (remote_supports_cond_tracepoints)
10729 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10730 Make static.
10731 * skip.c (_initialize_step_skip): Declare.
10732 * symtab.c (skip_prologue_using_lineinfo): Make static.
10733 * tracepoint.c (delete_trace_state_variable)
10734 (trace_variable_command, delete_trace_variable_command)
10735 (get_uploaded_tsv, find_matching_tracepoint_location)
10736 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10737 Make static.
10738 * value.c (pack_unsigned_long): Make static.
10739 * varobj.c (varobj_ensure_python_env): Make static.
10740 * windows-tdep.c (_initialize_windows_tdep): Declare.
10741 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10742
10743 2012-03-01 Pedro Alves <palves@redhat.com>
10744
10745 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10746 gdbarch parameter.
10747 (linux_init_abi): Install it as has_shared_address_space gdbarch
10748 callback.
10749
10750 2012-03-01 Pedro Alves <palves@redhat.com>
10751
10752 * observer.c (observer_test_first_notification_function)
10753 (observer_test_second_notification_function)
10754 (observer_test_third_notification_function): Add declarations.
10755
10756 2012-03-01 Pedro Alves <palves@redhat.com>
10757
10758 * common/signals.c (default_target_signal_to_host)
10759 (default_target_signal_from_host): Move ...
10760 * arch-utils.c: ... here.
10761 * arch-utils.h (default_target_signal_to_host)
10762 (default_target_signal_from_host): Declare.
10763
10764 * common/signals.c (target_signal_from_command): Move ...
10765 * infrun.c: ... here.
10766 * inferior.h (target_signal_from_command): Declare.
10767 * target.h (target_signal_from_command)
10768 (default_target_signal_from_host, default_target_signal_to_host):
10769 Delete declarations.
10770
10771 * common/signals.c (_initialize_signals): Delete.
10772
10773 2012-03-01 Pedro Alves <palves@redhat.com>
10774
10775 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10776 both __cplusplus and !__cplusplus.
10777
10778 2012-03-01 Pedro Alves <palves@redhat.com>
10779
10780 * psymtab.c (find_and_open_source): Delete declaration.
10781 * source.c (find_and_open_source): Move comment ...
10782 * source.h (find_and_open_source): ... to this new declaration.
10783
10784 2012-03-01 Pedro Alves <palves@redhat.com>
10785
10786 * inline-frame.c: Include inline-frame.h.
10787
10788 2012-03-01 Pedro Alves <palves@redhat.com>
10789
10790 * tui/tui-data.c (set_gen_win_origin): Delete.
10791 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10792 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10793
10794 2012-03-01 Pedro Alves <palves@redhat.com>
10795
10796 * remote.c (encode_actions): Delete declaration.
10797 * tracepoint.c (encode_actions): Make extern.
10798 * tracepoint.h (encode_actions): Declare.
10799
10800 2012-03-01 Pedro Alves <palves@redhat.com>
10801
10802 * python/py-breakpoint.c: Include python.h.
10803 * python/py-continueevent.c (create_continue_event_object): Make
10804 static.
10805 * python/py-lazy-string.c (stpy_get_type): Make static.
10806 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10807 Make static.
10808 * python/py-utils.c (unicode_to_target_python_string): Make
10809 static.
10810 * python/py-value.c: Include python.h.
10811
10812 2012-03-01 Pedro Alves <palves@redhat.com>
10813
10814 * inferior.c (delete_threads_of_inferior): Delete.
10815
10816 2012-03-01 Pedro Alves <palves@redhat.com>
10817
10818 Import fallback definitions from glibc.
10819
10820 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10821 ps_prochandle): Forward declare.
10822 (ps_err_e): Use glibc's comments.
10823 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10824 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10825 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10826 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10827 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10828 (struct ps_prochandle): Adjust comment.
10829
10830 2012-03-01 Pedro Alves <palves@redhat.com>
10831
10832 * ada-lang.c (ada_modulus_from_name): Delete.
10833 * ada-lex.l (lexer_init): Make static.
10834
10835 2012-03-01 Pedro Alves <palves@redhat.com>
10836
10837 PR gdb/13767
10838
10839 * frame.c (read_frame_register_unsigned): New.
10840 * frame.h (read_frame_register_unsigned): Declare.
10841 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10842 Handle it.
10843 (print_i387_control_word): New parameter `control_p'. Handle it.
10844 (i387_print_float_info): Handle unavailable float registers.
10845
10846 2012-03-01 Keith Seitz <keiths@redhat.com>
10847
10848 * linespec.c (decode_line_2): Sort the list of methods
10849 alphabetically before presenting the user with a selection
10850 menu.
10851
10852 2012-03-01 Doug Evans <dje@google.com>
10853
10854 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10855 has_namespace_info.
10856 (dwarf2_read_abbrevs): Remove corresponding initialization.
10857
10858 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10859
10860 * NEWS: Mention new python command class gdb.COMMAND_USER.
10861 * cli/cli-cmds.c (show_user): Print error when used on a python
10862 command.
10863 (init_cli_cmds): Update documentation strings for "show user" and
10864 "set/show max-user-call-depth" to clarify that it does not apply to
10865 python commands.
10866 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10867 error check.
10868 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10869 gdb python api.
10870 * top.c (execute_command): Only execute a user-defined command as a
10871 legacy macro if c->user_commands is set.
10872
10873 2012-03-01 Tom Tromey <tromey@redhat.com>
10874
10875 * valprint.h (struct generic_val_print_decorations): New.
10876 (generic_val_print): Declare.
10877 * valprint.c (generic_val_print): New function.
10878 * p-valprint.c (p_decorations): New global.
10879 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10880 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10881 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10882 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10883 * m2-valprint.c (m2_decorations): New global.
10884 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10885 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10886 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10887 TYPE_CODE_ERROR>: Call generic_val_print.
10888 * f-valprint.c (f_decorations): New global.
10889 (f_val_print): Use print_function_pointer_address.
10890 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10891 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10892 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10893 generic_val_print.
10894 * c-valprint.c (c_decorations): New global.
10895 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10896 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10897 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10898 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10899 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10900 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10901 case.
10902
10903 2012-03-01 Tom Tromey <tromey@redhat.com>
10904
10905 * valprint.c (val_print): Update.
10906 * p-valprint (pascal_val_print): Return void.
10907 * p-lang.h (pascal_val_print): Return void.
10908 * m2-valprint.c (m2_val_print): Return void.
10909 * m2-lang.h (m2_val_print): Return void.
10910 * language.h (struct language_defn) <la_val_print>: Return void.
10911 * language.c (unk_lang_val_print): Return void.
10912 * jv-valprint.c (java_val_print): Return void.
10913 * jv-lang.h (java_val_print): Return void.
10914 * f-valprint.c (f_val_print): Return void.
10915 * f-lang.h (f_val_print): Return void.
10916 * d-valprint.c (d_val_print): Return void.
10917 (dynamic_array_type): Update.
10918 * d-lang.h (d_val_print): Return void.
10919 * c-valprint.c (c_val_print): Return void.
10920 * c-lang.h (c_val_print): Return void.
10921 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10922 void.
10923 * ada-lang.h (ada_val_print): Return void.
10924
10925 2012-03-01 Tom Tromey <tromey@redhat.com>
10926
10927 * value.h (val_print): Return void.
10928 * valprint.c (val_print): Return void.
10929
10930 2012-03-01 Tom Tromey <tromey@redhat.com>
10931
10932 * value.h (common_val_print): Return void.
10933 * valprint.c (common_val_print): Return void.
10934
10935 2012-03-01 Tom Tromey <tromey@redhat.com>
10936
10937 * value.h (value_print): Return void.
10938 * valprint.c (value_print): Return void.
10939 * p-valprint.c (pascal_value_print): Return void.
10940 * p-lang.h (pascal_value_print): Return void.
10941 * language.h (struct language_defn) <la_value_print>: Return
10942 void.
10943 * language.c (unk_lang_value_print): Return void.
10944 * jv-valprint.c (java_value_print): Return void.
10945 * jv-lang.h (java_value_print): Return void.
10946 * f-valprint.c (c_value_print): Don't declare.
10947 Include c-lang.h.
10948 * c-valprint.c (c_value_print): Return void.
10949 * c-lang.h (c_value_print): Return void.
10950 * ada-valprint.c (ada_value_print): Return void.
10951 * ada-lang.h (ada_value_print): Return void.
10952
10953 2012-03-01 Tom Tromey <tromey@redhat.com>
10954
10955 * value.c (value_primitive_field): Handle virtual base classes.
10956
10957 2012-03-01 Tom Tromey <tromey@redhat.com>
10958
10959 * gdbtypes.h (struct vbase): Remove.
10960
10961 2012-03-01 Tom Tromey <tromey@redhat.com>
10962
10963 * c-valprint.c (print_function_pointer_address): Move...
10964 * valprint.c: ... here. Make non-static.
10965 * m2-valprint.c (print_function_pointer_address): Remove.
10966 * valprint.h (print_function_pointer_address): Declare.
10967
10968 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10969
10970 * NEWS: Document the fact that one can provide a condition when
10971 creating an Ada exception catchpoint.
10972
10973 2012-03-01 Tom Tromey <tromey@redhat.com>
10974
10975 * valprint.c (val_print_type_code_flags): Fix placement of
10976 trailing brace.
10977
10978 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10979
10980 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10981 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10982 environment variable before calling update-copyright.
10983
10984 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10985
10986 * gnulib/extra/update-copyright: Update to the latest from
10987 gnulib's git repository.
10988 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10989 variable to 2 instead of 1.
10990
10991 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10992
10993 * varobj.c (c_value_of_variable): Remove dead code.
10994
10995 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10996
10997 * ada-lex.p (processId): Do not modify already encoded IDs.
10998 Update function documentation.
10999
11000 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11001
11002 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11003 "name" with "struct symbol *name_sym".
11004 * ada-exp.y (write_var_or_type): Update call to
11005 ada_find_renaming_symbol.
11006 "name" with "struct symbol *name_sym". Adjust Implementation
11007 accordingly. Adjust the function documentation.
11008
11009 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11010
11011 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11012 * ada-lang.c (ada_find_any_type): Add advance declaration.
11013 Make static. Replace ada_find_any_symbol by
11014 ada_find_any_type_symbol.
11015 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11016 Improve function description. Make static.
11017 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11018 Replace ada_find_any_symbol by ada_find_any_type_symbol.
11019
11020 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11021
11022 * ada-lang.c (struct tag_args): Delete.
11023 (ada_get_tsd_type): Function body moved up in source file.
11024 (ada_tag_name_1, ada_tag_name_2): Delete.
11025 (ada_get_tsd_from_tag): New function.
11026 (ada_tag_name_from_tsd): New function.
11027 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11028 to determine the tag name.
11029
11030 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11031
11032 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11033 declaration.
11034 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11035 function.
11036
11037 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11038
11039 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11040
11041 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11042
11043 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11044 full searches.
11045
11046 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11047
11048 * ada-lang.c (constrained_packed_array_type): If there is a
11049 parallel XA type, use it to determine the array index type.
11050
11051 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11052
11053 * ada-valprint.c (ada_val_print_1): If our value is a reference
11054 to an array descriptor, dereference it before converting it
11055 to a simple array.
11056
11057 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11058
11059 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11060 creating fixed value.
11061 (ada_value_ind, ada_coerce_ref, assign_component)
11062 (ada_evaluate_subexp): Remove call to unwrap_value before
11063 call to ada_to_fixed_value.
11064
11065 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11066
11067 * ada-lang.c (to_fixed_array_type): Set result's type name.
11068
11069 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11070
11071 * ada-lang.c (catch_ada_exception_command_split): Add new
11072 argument cond_string. Add support for condition at end of
11073 "catch exception" commands.
11074 (ada_decode_exception_location): Add new argument cond_string.
11075 Update call to catch_ada_exception_command_split.
11076 (create_ada_exception_catchpoint): Add new argument cond_string.
11077 Set the breakpoint condition if needed.
11078 (catch_ada_exception_command): Update call to
11079 ada_decode_exception_location.
11080 (ada_decode_assert_location): Add function documentation.
11081 Add support for condition at end of "catch assert" command.
11082 (catch_assert_command): Update calls to ada_decode_assert_location
11083 and create_ada_exception_catchpoint.
11084
11085 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11086
11087 Fix disp-step-syscall.exp: fork: single step over fork.
11088 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11089 (i386_linux_get_syscall_number_from_regcache): ... here, new function
11090 comment, change parameters gdbarch and ptid to regcache. Remove
11091 parameter regcache, initialize gdbarch from regcache here.
11092 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11093 New functions.
11094 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11095 instead.
11096 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11097 'syscall'. Make the 'int' check more strict.
11098
11099 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11100
11101 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11102 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11103 (i386_linux_intx80_sysenter_syscall_record): ... here.
11104 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11105 Use the renamed function name.
11106
11107 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11108
11109 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11110 * breakpoint.c (until_break_command): Likewise.
11111 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11112 * infcall.c (call_function_by_hand): Likewise.
11113 * infcmd.c (finish_forward): Likewise.
11114 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11115
11116 2012-02-28 Tristan Gingold <gingold@adacore.com>
11117
11118 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11119 avoid variable assignments inside condition.
11120
11121 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11122
11123 Fix static analysis issue found by cppcheck.
11124 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11125 uninitialized BUF for size 2.
11126
11127 2012-02-27 Chris Dearman <chris@mips.com>
11128 Nathan Froyd <froydnj@codesourcery.com>
11129 Maciej W. Rozycki <macro@codesourcery.com>
11130
11131 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11132 (mips16_instruction_has_delay_slot): Likewise.
11133 (mips_segment_boundary): Likewise.
11134 (mips_adjust_breakpoint_address): Likewise.
11135 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11136
11137 2012-02-27 Maciej W. Rozycki <macro@mips.com>
11138 Maciej W. Rozycki <macro@codesourcery.com>
11139
11140 * infrun.c (handle_inferior_event): Don't proceed through
11141 shared library trampolines if stepping at the machine
11142 instruction level.
11143
11144 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11145
11146 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11147 too.
11148
11149 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11150
11151 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11152 (sh_stub_unwind_sniffer): New functions.
11153 (sh_stub_unwind): New variable.
11154 (sh_gdbarch_init): Wire everything.
11155
11156 2012-02-27 Pedro Alves <palves@redhat.com>
11157
11158 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11159 (linux_nat_post_attach_wait): Adjust to use
11160 linux_proc_pid_is_stopped.
11161 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11162 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11163 based on pid_is_stopped from both linux-nat.c and
11164 gdbserver/linux-low.c, and renamed.
11165
11166 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11167
11168 * remote.c (remote_watchpoint_addr_within_range): New function.
11169 (init_remote_ops): Use it.
11170
11171 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11172
11173 * target.h (target_watchpoint_addr_within_range): Document macro.
11174
11175 2012-02-24 Pedro Alves <palves@redhat.com>
11176
11177 * stack.c (set_last_displayed_sal): Issue internal_error instead
11178 of warning, and issue it after clearing the last displayed sal.
11179
11180 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11181 Pedro Alves <palves@redhat.com>
11182
11183 * breakpoint.c (until_break_command): Install breakpoints after
11184 all frame manipulations.
11185
11186 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11187
11188 * remote.c (remote_supports_cond_breakpoints): New forward
11189 declaration.
11190 (remote_add_target_side_condition): New function.
11191 (remote_insert_breakpoint): Add target-side breakpoint
11192 conditional if supported.
11193 (remote_insert_hw_breakpoint): Likewise.
11194 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11195 hook.
11196
11197 * target.c (update_current_target): Inherit
11198 to_supports_evaluation_of_breakpoint_conditions.
11199 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11200
11201 * target.h (struct target_ops)
11202 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11203 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11204
11205 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11206 (condition_evaluation_both, condition_evaluation_auto,
11207 condition_evaluation_host, condition_evaluation_target,
11208 condition_evaluation_enums, condition_evaluation_mode_1,
11209 condition_evaluation_mode): New static globals.
11210 (translate_condition_evaluation_mode): New function.
11211 (breakpoint_condition_evaluation_mode): New function.
11212 (gdb_evaluates_breakpoint_condition_p): New function.
11213 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11214 (mark_breakpoint_modified): New function.
11215 (mark_breakpoint_location_modified): New function.
11216 (set_condition_evaluation_mode): New function.
11217 (show_condition_evaluation_mode): New function.
11218 (bp_location_compare_addrs): New function.
11219 (get_first_location_gte_addr): New helper function.
11220 (set_breakpoint_condition): Free condition bytecode if locations
11221 has become unconditional. Call mark_breakpoint_modified (...).
11222 (condition_command): Call update_global_location_list (1) for
11223 breakpoints.
11224 (breakpoint_xfer_memory): Use is_breakpoint (...).
11225 (is_breakpoint): New function.
11226 (parse_cond_to_aexpr): New function.
11227 (build_target_condition_list): New function.
11228 (insert_bp_location): Handle target-side conditional
11229 breakpoints and call build_target_condition_list (...).
11230 (update_inserted_breakpoint_locations): New function.
11231 (insert_breakpoint_locations): Handle target-side conditional
11232 breakpoints.
11233 (bpstat_check_breakpoint_conditions): Add comment.
11234 (bp_condition_evaluator): New function.
11235 (bp_location_condition_evaluator): New function.
11236 (print_breakpoint_location): Print information on where the condition
11237 will be evaluated.
11238 (print_one_breakpoint_location): Likewise.
11239 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11240 breakpoint location.
11241 (force_breakpoint_reinsertion): New functions.
11242 (update_global_location_list): Handle target-side breakpoint
11243 conditions.
11244 Reinsert locations that are already inserted if conditions have
11245 changed.
11246 (bp_location_dtor): Free agent expression bytecode.
11247 (disable_breakpoint): Call mark_breakpoint_modified (...).
11248 Call update_global_location_list (...) with parameter 1 for breakpoints.
11249 (disable_command): Call mark_breakpoint_location_modified (...).
11250 Call update_global_location_list (...) with parameter 1 for breakpoints.
11251 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11252 (enable_command): mark_breakpoint_location_modified (...).
11253 (_initialize_breakpoint): Update documentation and add
11254 condition-evaluation breakpoint subcommand.
11255
11256 * breakpoint.h: Include ax.h.
11257 (condition_list): New data structure.
11258 (condition_status): New enum.
11259 (bp_target_info) <cond_list>: New field.
11260 (bp_location) <condition_changed, cond_bytecode>: New fields.
11261 (is_breakpoint): New prototype.
11262
11263 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11264
11265 * remote.c (remote_state) <cond_breakpoints>: New field.
11266 (PACKET_ConditionalBreakpoints): New enum.
11267 (remote_cond_breakpoint_feature): New function.
11268 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11269 (remote_supports_cond_breakpoints): New function.
11270 (_initialize_remote): Add new packet configuration for
11271 target-side conditional breakpoints.
11272
11273 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11274
11275 * NEWS: Mention target-side conditional breakpoint support,
11276 new condition-evaluation breakpoint subcommand and remote
11277 packet extensions.
11278
11279 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11280
11281 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11282 number.
11283
11284 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11285
11286 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11287 (after_prologue): Remove.
11288
11289 2012-02-23 Tom Tromey <tromey@redhat.com>
11290
11291 * jv-valprint.c (java_val_print): Remove dead code.
11292
11293 2012-02-23 Tristan Gingold <gingold@adacore.com>
11294
11295 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11296 known_tasks_element and known_tasks_length fields.
11297 (read_known_tasks_array): Change argument type. Use pointer type
11298 and number of elements from DATA. Adjust.
11299 (read_known_tasks_list): Likewise.
11300 (get_known_tasks_addr): Remove.
11301 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11302 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11303 type and array length. Merge former get_known_tasks_addr code.
11304
11305 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11306
11307 PR backtrace/13716
11308 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11309 it after set_momentary_breakpoint.
11310
11311 2012-02-22 Sterling Augustine <saugustine@google.com>
11312
11313 PR 13689:
11314 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11315
11316 2012-02-22 Gary Benson <gbenson@redhat.com>
11317
11318 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11319 (find_slot_in_mapped_hash): Likewise.
11320
11321 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11322
11323 PR build/13638
11324 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11325 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11326 * configure: Regenerate.
11327
11328 2012-02-21 Tristan Gingold <gingold@adacore.com>
11329 Pedro Alves <palves@redhat.com>
11330
11331 * ia64-tdep.c: Do not include libunwind-ia64.h.
11332 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11333 Include libunwind-ia64.h instead of libunwind.h.
11334 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11335 for libunwind.h existence.
11336 * configure, config.in: Regenerate.
11337
11338 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11339
11340 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11341 instead of value_rtti_target_type.
11342 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11343 instead of value_rtti_target_type.
11344 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11345 value_rtti_target_type.
11346 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11347 (value_rtti_target_type): Rename to ...
11348 (value_rtti_indirect_type): ... here and make it indirect. Update
11349 function comment.
11350 * value.c (readjust_indirect_value_type): New function.
11351 (coerce_ref): Support for enclosing type setting for references
11352 with readjust_indirect_value_type.
11353 * value.h (readjust_value_type): New declaration.
11354 (value_rtti_target_type): Rename to ...
11355 (value_rtti_indirect_type): ... here.
11356
11357 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11358
11359 * MAINTAINERS (Write After Approval): Add myself to the list.
11360
11361 2012-02-20 Doug Evans <dje@google.com>
11362
11363 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11364 Rename objfile_p_char parameter to objfilep.
11365 (build_objfile_section_table): Result is now void. All callers
11366 updated.
11367 * objfiles.h (struct objfile): Tweak comments, whitespace.
11368 (build_objfile_section_table): Update.
11369
11370 * elfread.c (elf_symfile_segments): Fix warning text.
11371
11372 2012-02-20 Tom Tromey <tromey@redhat.com>
11373
11374 PR gdb/13498:
11375 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11376 particular set of file names once.
11377 (dw2_map_symbol_filenames): Likewise.
11378
11379 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11380
11381 Code cleanup.
11382 * main.c (write_files): Remove the declaration.
11383 (external_editor_command): Move the declaration ...
11384 [GDBTK] (external_editor_command): ... here. Fix the comment.
11385
11386 2012-02-20 Tom Tromey <tromey@redhat.com>
11387
11388 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11389 extraneous block.
11390
11391 2012-02-20 Tristan Gingold <gingold@adacore.com>
11392
11393 * darwin-nat.h (enum darwin_msg_state): Add comments.
11394
11395 2012-02-20 Tristan Gingold <gingold@adacore.com>
11396
11397 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11398 value.
11399
11400 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11401
11402 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11403 between function description and implementation.
11404
11405 2012-02-17 Tom Tromey <tromey@redhat.com>
11406
11407 PR python/12070:
11408 * python/py-event.c (event_object_getset): New global.
11409 (event_object_type): Reference it.
11410 * python/py-type.c (field_object_getset): New global.
11411 (field_object_type): Reference it.
11412 * python/python-internal.h (gdb_py_generic_dict): Declare.
11413 * python/py-utils.c (gdb_py_generic_dict): New function.
11414
11415 2012-02-17 Tristan Gingold <gingold@adacore.com>
11416
11417 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11418
11419 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11420
11421 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11422 TYPE_CALLING_CONVENTION annotation.
11423
11424 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11425
11426 * MAINTAINERS: Add rx to target ISA section.
11427 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11428 (ALLDEPFILES): Add rx-tdep.c.
11429
11430 2012-02-16 Tom Tromey <tromey@redhat.com>
11431
11432 * symfile.c (symbol_file_add_main_1): Use inferior's
11433 symfile_flags.
11434 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11435 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11436 inferior.
11437 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11438 inferior.
11439 (follow_exec): Use inferior's symfile_flags.
11440 * inferior.h (struct inferior) <symfile_flags>: New field.
11441
11442 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11443
11444 PR gdb/9734:
11445 * remote-sim.c (gdbsim_create_inferior): Call error() when
11446 sim_create_inferior() fails.
11447
11448 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11449
11450 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11451
11452 2012-02-16 Tom Tromey <tromey@redhat.com>
11453
11454 PR c++/13653:
11455 * thread.c (struct current_thread_cleanup) <was_removable>: New
11456 field.
11457 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11458 (make_cleanup_restore_current_thread): Initialize new field.
11459
11460 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11461
11462 * MAINTAINERS: Add rl78 to target ISA section.
11463 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11464 (ALLDEPFILES): Add rl78-tdep.c.
11465 * NEWS: Mention rl78 as a new target.
11466
11467 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11468
11469 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11470 data.
11471 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11472
11473 2012-02-15 Tom Tromey <tromey@redhat.com>
11474
11475 PR gdb/12659:
11476 * infcmd.c (registers_info): Print just the current register's
11477 name.
11478
11479 2012-02-15 Tom Tromey <tromey@redhat.com>
11480
11481 * python/py-symbol.c (sympy_value): Use _().
11482
11483 2012-02-15 Pedro Alves <palves@redhat.com>
11484
11485 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11486 output to be like native targets'.
11487 (remote_pid_to_str): Special case the null ptid.
11488
11489 2012-02-14 Stan Shebs <stan@codesourcery.com>
11490
11491 * NEWS: Mention enable count command.
11492 * breakpoint.h (struct breakpoint): New field enable_count.
11493 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11494 (enable_breakpoint): Add arg to call.
11495 (struct disp_data): New struct.
11496 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11497 (do_map_enable_once_breakpoint): Create a struct and pass it.
11498 (do_map_enable_delete_breakpoint): Ditto.
11499 (do_map_enable_count_breakpoint): New function.
11500 (enable_count_command): New function.
11501 (bpstat_stop_status): Decrement enable_count.
11502 (print_one_breakpoint_location): Report enable count.
11503 (_initialize_breakpoint): Add enable count command.
11504
11505 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11506
11507 * rl78-tdep.c (reggroups.h): Include.
11508 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11509 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11510 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11511 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11512 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11513 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11514 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11515 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11516 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11517 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11518 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11519 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11520 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11521 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11522 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11523 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11524 beginning of register list.
11525 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11526 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11527 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11528 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11529 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11530 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11531 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11532 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11533 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11534 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11535 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11536 the pseudo registers. Rearrange other pseudo registers too so
11537 that the bank registers appear at the end.
11538 (rl78_register_type): Account for the fact that the byte sized
11539 bank registers are now pseudo-registers.
11540 (rl78_register_name): Rearrange the register name array. Make
11541 initial set of raw banked registers inaccessible.
11542 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11543 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11544 case for copying bytes back and forth between raw and pseudo
11545 versions of the banked registers. Update other cases to reflect
11546 the changed names.
11547 (rl78_return_value): Update to account for changed names of
11548 raw registers.
11549 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11550 rl78_register_sim_regno().
11551
11552 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11553
11554 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11555 the name parameter being passed to find_pc_partial_function().
11556
11557 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11558
11559 * MAINTAINERS: Step down from being ia64 target maintainer.
11560
11561 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11562
11563 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11564 compilation warning.
11565
11566 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11567
11568 Fix crash on loaded shlibs without loaded exec_bfd.
11569 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11570 (set_section_command): Replace exec_bfd by p->bfd.
11571
11572 2012-02-10 Tom Tromey <tromey@redhat.com>
11573
11574 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11575 when we have a C++ qualified name.
11576
11577 2012-02-10 Pedro Alves <palves@redhat.com>
11578
11579 * inferior.c (inferior_pid_to_str): New.
11580 (print_inferior, inferior_command): Use it.
11581
11582 2012-02-10 Pedro Alves <palves@redhat.com>
11583
11584 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11585 the test CFLAGS.
11586 * configure: Regenerate.
11587
11588 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11589
11590 * linespec.c (decode_line_internal): Fix comment correctness.
11591
11592 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11593
11594 PR gdb/12953
11595 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11596 * amd64bsd-nat.c: Add support for debug registers (adapted from
11597 i386bsd-nat.c).
11598 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11599 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11600 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11601 (amd64bsd_dr_get_control): New functions.
11602 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11603 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11604 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11605 watchpoints initialization.
11606 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11607
11608 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11609
11610 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11611 flds_bnds.fields.
11612 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11613
11614 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11615
11616 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11617
11618 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11619
11620 * language.h (symbol_name_cmp_ftype): Renames
11621 symbol_name_match_p_ftype.
11622 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11623 la_get_symbol_name_match_p.
11624 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11625 ada_get_symbol_name_match_p. Update comment.
11626 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11627 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11628 Renames symbol_name_match_p. Update field type.
11629 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11630 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11631 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11632 "la_get_symbol_name_cmp" in comments.
11633 * language.c: Likewise.
11634
11635 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11636
11637 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11638 %eflags offset.
11639 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11640 (amd64_sol2_gregset32_reg_offs): Likewise.
11641
11642 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11643
11644 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11645 of the returned BFD is allocated by GDB.
11646
11647 2012-02-07 Tom Tromey <tromey@redhat.com>
11648
11649 PR python/12027:
11650 * python/python-internal.h (frame_object_type): Declare.
11651 * python/py-symbol.c (sympy_needs_frame): New function.
11652 (sympy_value): New function.
11653 (symbol_object_getset): Add "needs_frame".
11654 (symbol_object_methods): Add "value".
11655 * python/py-frame.c (frame_object_type): No longer static.
11656
11657 2012-02-07 Tom Tromey <tromey@redhat.com>
11658
11659 PR python/13599:
11660 * python/py-symbol.c (sympy_line): New function.
11661 (symbol_object_getset): Add "line".
11662
11663 2012-02-07 Tom Tromey <tromey@redhat.com>
11664
11665 * charset.c (find_charset_names): Check 'in' against NULL.
11666
11667 2012-02-06 Doug Evans <dje@google.com>
11668
11669 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11670 and fields.name members from char * to const char *. All uses updated.
11671 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11672 from char * to const char *. All uses updated.
11673 (type_name_no_tag): Update.
11674 (lookup_unsigned_typename, lookup_signed_typename): Update.
11675 * gdbtypes.c (type_name_no_tag): Change result type
11676 from char * to const char *. All callers updated.
11677 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11678 name parameter from char * to const char *.
11679 * symtab.h (struct cplus_specific): Change type of demangled_name
11680 member from char * to const char *. All uses updated.
11681 (struct general_symbol_info): Change type of name and
11682 mangled_lang.demangled_name members from char * to const char *.
11683 All uses updated.
11684 (symbol_get_demangled_name, symbol_natural_name): Update.
11685 (symbol_demangled_name, symbol_search_name): Update.
11686 * symtab.c (symbol_get_demangled_name): Change result type
11687 from char * to const char *. All callers updated.
11688 (symbol_natural_name, symbol_demangled_name): Ditto.
11689 (symbol_search_name): Ditto.
11690 (completion_list_add_name): Change type of symname,sym_text,
11691 text,word parameters from char * to const char *.
11692 (completion_list_objc_symbol): Change type of sym_text,
11693 text,word parameters from char * to const char *.
11694 * ada-lang.c (find_struct_field): Change type of name parameter
11695 from char * to const char *.
11696 (encoded_ordered_before): Similarly for N0,N1 parameters.
11697 (old_renaming_is_invisible): Similarly for function_name parameter.
11698 (ada_type_name): Change result type from char * to const char *.
11699 All callers updated.
11700 * ada-lang.h (ada_type_name): Update.
11701 * buildsym.c (hashname): Change type of name parameter
11702 from char * to const char *.
11703 * buildsym.h (hashname): Update.
11704 * dbxread.c (end_psymtab): Change type of include_list parameter
11705 from char ** to const char **.
11706 * dwarf2read.c (determine_prefix): Change result type
11707 from char * to const char *. All callers updated.
11708 * f-lang.c (find_common_for_function): Change type of name, funcname
11709 parameters from char * to const char *.
11710 * f-lang.c (find_common_for_function): Update.
11711 * f-valprint.c (list_all_visible_commons): Change type of funcname
11712 parameters from char * to const char *.
11713 * gdbarch.sh (static_transform_name): Change type of name parameter
11714 and result from char * to const char *.
11715 * gdbarch.c: Regenerate.
11716 * gdbarch.h: Regenerate.
11717 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11718 of name parameter from char * to const char *.
11719 * jv-lang.c (java_primitive_type_from_name): Ditto.
11720 (java_demangled_signature_length): Similarly for signature parameter.
11721 (java_demangled_signature_copy): Ditto.
11722 (java_demangle_type_signature): Ditto.
11723 * jv-lang.h (java_primitive_type_from_name): Update.
11724 (java_demangle_type_signature): Update.
11725 * objc-lang.c (specialcmp): Change type of a,b parameters
11726 from char * to const char *.
11727 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11728 from char * to const char *. All callers updated.
11729 * p-lang.h (is_pascal_string_type): Update.
11730 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11731 of name parameter from char * to const char *.
11732 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11733 * utils.c (fprintf_symbol_filtered): Ditto.
11734 * defs.h (fprintf_symbol_filtered): Update.
11735 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11736 * stabsread.h (end_psymtab): Update.
11737 * stack.c (find_frame_funname): Change type of funname parameter
11738 from char ** to const char **.
11739 * stack.h (find_frame_funname): Update.
11740 * typeprint.c (type_print): Change type of varstring parameter
11741 from char * to const char *.
11742 * value.h (type_print): Update.
11743 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11744 from char * to const char *. All callers updated.
11745 (xcoff_end_psymtab): Change type of include_list parameter
11746 from char ** to const char **. All callers updated.
11747 (swap_sym): Similarly for name parameter. All callers updated.
11748 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11749 Use xstrdup.
11750 (process_coff_symbol): Use xstrdup.
11751 * stabsread.c (stabs_method_name_from_physname): Renamed from
11752 update_method_name_from_physname. Change result type from void
11753 to char *. All callers updated.
11754 (read_member_functions): In has_destructor case, store name in objfile
11755 obstack instead of malloc space. In !has_stub case, fix mem leak.
11756
11757 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11758
11759 * configure: Rebuild.
11760 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11761 LDFLAGS.
11762
11763 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11764
11765 * configure.tgt (rl78-*-elf): New target.
11766 * rl78-tdep.c: New file.
11767
11768 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11769
11770 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11771 and continue the loop. Add QUIT statement.
11772
11773 2012-02-03 Tom Tromey <tromey@redhat.com>
11774
11775 PR gdb/13596:
11776 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11777 bfd_lookup_symbol_from_symtab.
11778 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11779 gdb_bfd_lookup_symbol_from_symtab.
11780
11781 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11782
11783 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11784 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11785 symbol. Add assertion that sym2 is never NULL.
11786
11787 2012-02-02 Doug Evans <dje@google.com>
11788
11789 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11790 "name" parameter to const char ** from char **. All callers updated.
11791 (find_pc_partial_function): Ditto.
11792 (cache_pc_function_name): Change type to const char * from char *.
11793 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11794 (find_pc_partial_function): Update.
11795 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11796 type of "name" parameter to const char * from char *.
11797 All uses updated.
11798 * arch-utils.c (generic_in_solib_return_trampoline): Change
11799 type of "name" parameter to const char * from char *.
11800 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11801 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11802 type of "name" parameter to const char * from char *.
11803 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11804 * gdbarch.c: Regenerate.
11805 * gdbarch.h: Regenerate.
11806 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11807 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11808 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11809 type of "name" parameter to const char * from char *.
11810 * skip.c (skip_function_pc): Ditto.
11811 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11812 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11813 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11814 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11815 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11816 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11817 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11818 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11819 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11820
11821 2012-02-02 Pedro Alves <palves@redhat.com>
11822
11823 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11824 the current inferior has no execution. Make sure the current
11825 remote process matches gdb's current inferior.
11826
11827 2012-02-02 Tom Tromey <tromey@redhat.com>
11828
11829 PR gdb/13405:
11830 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11831 read-only memory.
11832
11833 2012-02-02 Tom Tromey <tromey@redhat.com>
11834
11835 PR gdb/9307:
11836 * symtab.c (lookup_language_this): Set block_found.
11837
11838 2012-02-01 Tom Tromey <tromey@redhat.com>
11839
11840 PR gdb/13431:
11841 * jit.c (struct jit_inferior_data): Rewrite.
11842 (struct jit_objfile_data): New.
11843 (get_jit_objfile_data): New function.
11844 (add_objfile_entry): Update.
11845 (jit_read_descriptor): Return int. Replace descriptor_addr
11846 argument with inf_data. Update. Don't call error.
11847 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11848 descriptor here.
11849 (jit_inferior_init): Don't look up descriptor. Don't call error.
11850 (jit_reset_inferior_data_and_breakpoints)
11851 (jit_inferior_created_observer): Remove.
11852 (jit_inferior_exit_hook): Update.
11853 (jit_executable_changed_observer): Remove.
11854 (jit_event_handler): Update.
11855 (free_objfile_data): Reset inferior data if needed.
11856 (_initialize_jit): Update.
11857
11858 2012-02-01 Tom Tromey <tromey@redhat.com>
11859
11860 * jit.c (bfd_open_from_target_memory): Move higher in file.
11861
11862 2012-02-01 Tristan Gingold <gingold@adacore.com>
11863
11864 * libunwind-frame.c (libunwind_load): Display message if dlopen
11865 failed.
11866
11867 2012-02-01 Gary Benson <gbenson@redhat.com>
11868
11869 * symtab.h (symbol_found_callback_ftype): New typedef.
11870 (iterate_over_symbols): Use the above.
11871 * symtab.c (iterate_over_symbols): Likewise.
11872 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11873 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11874 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11875 (iterate_name_matcher): Document return values.
11876 (collect_one_symbol): Likewise.
11877 (collect_function_symbols): Likewise.
11878 (collect_symbols): Likewise.
11879
11880 2012-02-01 Tom Tromey <tromey@redhat.com>
11881
11882 * ada-lang.c (resolve_subexp): Update.
11883 (ada_lookup_symbol_list): Add 'full_search' argument.
11884 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11885 ada_lookup_symbol_list.
11886 (ada_lookup_encoded_symbol): Update.
11887 (get_var_value): Update.
11888 * ada-exp.y (block_lookup): Update.
11889 (write_var_or_type): Update.
11890 (write_name_assoc): Update.
11891 * ada-lang.h (ada_lookup_symbol_list): Update.
11892
11893 2012-01-31 Tom Tromey <tromey@redhat.com>
11894
11895 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11896 comment.
11897
11898 2012-01-31 Doug Evans <dje@google.com>
11899
11900 * symtab.h: Remove outdated comment.
11901 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11902
11903 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11904
11905 Fix build error in Darwin port.
11906 * i386-darwin-nat.c: Include i386-nat.h.
11907
11908 2012-01-30 Tom Tromey <tromey@redhat.com>
11909
11910 PR breakpoints/13568:
11911 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11912 argument. Check for recursive includes.
11913 (dwarf_decode_macros): Create an include hash.
11914
11915 2012-01-30 Michael Eager <eager@eagercon.com>
11916
11917 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11918 * ppc-linux-tdep.c: Include glibc-tdep.h.
11919 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11920 (powerpc_linux_in_plt_stub): New function.
11921 (powerpc_linux_in_dynsym_resolve_code): New function.
11922 (ppc_skip_trampoline_code): New function.
11923 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11924 Use glibc_skip_solib_resolver.
11925
11926 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11927
11928 Code cleanup: Make 1440 bytes of data segment read-only.
11929 * arch-utils.c (endian_enum): Make it const char *const [].
11930 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11931 Likewise.
11932 * breakpoint.c (always_inserted_enums): Likewise.
11933 * cli/cli-cmds.c (script_ext_enums): Likewise.
11934 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11935 enumlist parameter const char *const *.
11936 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11937 const char *const *.
11938 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11939 parameter const char *const *.
11940 * cris-tdep.c (cris_modes): Make it const char *const [].
11941 * filesystem.c (target_file_system_kinds): Likewise.
11942 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11943 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11944 (can_use_displaced_stepping_enum, scheduler_enums)
11945 (exec_direction_names): Likewise.
11946 * language.c (_initialize_language): Make the type_or_range_names and
11947 case_sensitive_names variables const char *const [].
11948 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11949 * python/python.c (python_excp_enums): Likewise.
11950 * remote.c (interrupt_sequence_modes): Likewise.
11951 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11952 * serial.c (logbase_enums): Likewise.
11953 * sh-tdep.c (sh_cc_enum): Likewise.
11954 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11955 Likewise.
11956 * symtab.c (multiple_symbols_modes): Likewise.
11957 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11958 Likewise.
11959 * utils.c (internal_problem_modes): Likewise.
11960
11961 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11962
11963 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11964 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11965 result.
11966
11967 2012-01-27 Doug Evans <dje@google.com>
11968
11969 * configure.ac (with_python): Fix absolute path handling for win32.
11970 * configure: Regenerate.
11971
11972 2012-01-26 Doug Evans <dje@google.com>
11973
11974 * symtab.c: Whitespace cleanup, no code changes.
11975
11976 * symtab.c (lookup_symbol_in_language): Improve comment.
11977 (lookup_symbol_aux): Fix comment.
11978
11979 * psymtab.c (add_psymbol_to_list): Result is now "void".
11980 * psympriv.h (add_psymbol_to_list): Update.
11981
11982 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11983
11984 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11985
11986 Do not open script filenames twice.
11987 * cli/cli-cmds.c (source_script_from_stream): Pass to
11988 source_python_script also STREAM.
11989 * python/py-auto-load.c (source_section_scripts): Pass to
11990 source_python_script_for_objfile also STREAM.
11991 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11992 also INPUT.
11993 * python/python-internal.h (source_python_script_for_objfile): New
11994 parameter file, rename parameter file to filename.
11995 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11996 instead if !_WIN32. Update the function comment.
11997 (source_python_script, source_python_script_for_objfile)
11998 (source_python_script): New parameter file, rename parameter file to
11999 filename. Pass FILENAME to python_run_simple_file.
12000 * python/python.h (source_python_script): New parameter file, rename
12001 parameter file to filename.
12002
12003 2012-01-26 Pedro Alves <palves@redhat.com>
12004
12005 * corelow.c (core_has_fake_pid): Delete.
12006 (core_close): Delete references to `core_has_fake_pid'.
12007 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12008 (core_open): Delete references to `core_has_fake_pid'.
12009 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12010 the removed global.
12011
12012 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12013
12014 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12015 Remove language parameter from name_matcher. Adjust the comment.
12016 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12017 Remove language parameter.
12018 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12019 * linespec.c (iterate_name_matcher): Likewise.
12020 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12021 name_matcher. Adjust call accordingly.
12022 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12023 (maintenance_check_symtabs): Adjust type of parameter "fun".
12024 * psymtab.h (maintenance_check_symtabs): Likewise.
12025
12026 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12027
12028 * language.h (symbol_name_match_p_ftype): New typedef.
12029 (struct language_defn): Replace field la_symbol_name_compare
12030 by la_get_symbol_name_match_p.
12031 * ada-lang.c (ada_get_symbol_name_match_p): New function.
12032 (ada_language_defn): Use it.
12033 * linespec.c (struct symbol_matcher_data): New type.
12034 (iterate_name_matcher): Rewrite.
12035 (iterate_over_all_matching_symtabs): Pass a pointer to
12036 a symbol_matcher_data struct to expand_symtabs_matching
12037 instead of just the lookup name.
12038 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12039 opencl-lang.c, p-lang.c, language.c: Delete field
12040 la_symbol_name_compare, and replace by NULL for new field
12041 la_get_symbol_name_match_p.
12042 * symfile.h (struct quick_symbol_functions): Update comment.
12043
12044 2012-01-25 Tom Tromey <tromey@redhat.com>
12045
12046 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12047 dereferencing.
12048
12049 2012-01-24 Tom Tromey <tromey@redhat.com>
12050
12051 PR symtab/12406:
12052 * solib.c (update_solib_list): Update the program space's
12053 added_solibs and deleted_solibs fields.
12054 * progspace.h (struct program_space) <added_solibs,
12055 deleted_solibs>: New fields.
12056 (clear_program_space_solib_cache): Declare.
12057 * progspace.c (release_program_space): Call
12058 clear_program_space_solib_cache.
12059 (clear_program_space_solib_cache): New function.
12060 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12061 bpstat_stop_status. Use handle_solib_event.
12062 * breakpoint.c: Include gdb_regex.h.
12063 (print_solib_event): New function.
12064 (bpstat_print): Use print_solib_event.
12065 (bpstat_stop_status): Add special case for bp_shlib_event.
12066 (handle_solib_event): New function.
12067 (bpstat_what): Use handle_solib_event.
12068 (struct solib_catchpoint): New.
12069 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12070 (breakpoint_hit_catch_solib, check_status_catch_solib)
12071 (print_it_catch_solib, print_one_catch_solib)
12072 (print_mention_catch_solib, print_recreate_catch_solib): New
12073 functions.
12074 (catch_solib_breakpoint_ops): New global.
12075 (catch_load_or_unload, catch_load_command_1)
12076 (catch_unload_command_1): New functions.
12077 (internal_bkpt_check_status): Add special case for
12078 bp_shlib_event.
12079 (internal_bkpt_print_it): Use print_solib_event.
12080 (initialize_breakpoint_ops): Initialize
12081 catch_solib_breakpoint_ops.
12082 (_initialize_breakpoint): Register "catch load" and "catch
12083 unload".
12084 * breakpoint.h (handle_solib_event): Declare.
12085 * NEWS: Add entry for "catch load" and "catch unload".
12086
12087 2012-01-24 Tom Tromey <tromey@redhat.com>
12088
12089 * ada-lang.c: Include gdb_vecs.h.
12090 * charset.c: Include gdb_vecs.h.
12091 * tracepoint.h: Include gdb_vecs.h.
12092 * gdb_vecs.h: New file.
12093
12094 2012-01-24 Pedro Alves <pedro@codesourcery.com>
12095
12096 * breakpoint.c (breakpoint_hit_catch_fork)
12097 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12098 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12099 * infrun.c (inferior_has_forked, inferior_has_vforked)
12100 (inferior_has_execd, inferior_has_called_syscall): Delete.
12101 (handle_syscall_event): Get syscall_number from the execution
12102 control state's wait status.
12103 (wait_for_inferior): Don't clear syscall_number.
12104
12105 2012-01-24 Pedro Alves <palves@redhat.com>
12106
12107 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12108 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12109 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12110 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12111 `ws' parameter.
12112 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12113 false for events other than TARGET_SIGNAL_TRAP.
12114 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12115 Add `ws' parameter.
12116 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12117 events other than TARGET_SIGNAL_TRAP.
12118 (tracepoint_breakpoint_hit): Add `ws' parameter.
12119 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12120 parameter.
12121 (bpstat_stop_status): Same.
12122 (pc_at_non_inline_function): Same.
12123 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12124 to pass the current event's waitstatus to bpstat_stop_status
12125 and pc_at_non_inline_function.
12126
12127 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12128
12129 Code cleanup.
12130 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12131 Update the function comment for it.
12132 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12133 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12134 for STREAM.
12135
12136 2012-01-24 Pedro Alves <palves@redhat.com>
12137
12138 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12139 outside `bs->stop' block.
12140 (bpstat_what): Rework bp_shlib_event handling.
12141 (internal_bkpt_check_status): If the breakpoint is a
12142 bp_shlib_event, then set bs->stop and bs->print if
12143 stop_on_solib_events is set.
12144
12145 2012-01-24 Gary Benson <gbenson@redhat.com>
12146
12147 Delete #if 0'd out code.
12148 * stack.c (print_frame_label_vars): Remove.
12149 (catch_info): Likewise.
12150 (_initialize_stack): Remove "info catch" command.
12151 * NEWS: Mention the above.
12152
12153 2012-01-24 Pedro Alves <palves@redhat.com>
12154
12155 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12156 it.
12157 (remote_notice_new_inferior): If the remote end doesn't support
12158 the multiprocess extensions, then the PID is fake.
12159 (add_current_inferior_and_thread): New.
12160 (remote_start_remote): Use it.
12161 (extended_remote_attach_1): Adjust.
12162 (extended_remote_create_inferior_1): Use
12163 add_current_inferior_and_thread.
12164
12165 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12166
12167 Fix watchpoints to be specific for each inferior.
12168 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12169 current_program_space.
12170 * i386-nat.c (i386_inferior_data_cleanup): New.
12171 (i386_inferior_data_get): Replace variable inf_data_local by an
12172 inferior_data call.
12173 (i386_use_watchpoints): Initialize i386_inferior_data.
12174 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12175 specific iterate_over_lwps.
12176
12177 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12178
12179 Fix watchpoints across inferior fork.
12180 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12181 comment for linux_nat_iterate_watchpoint_lwps.
12182 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12183 linux_nat_iterate_watchpoint_lwps.
12184 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12185 * i386-linux-nat.c (update_debug_registers_callback): Update the
12186 comment for linux_nat_iterate_watchpoint_lwps.
12187 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12188 linux_nat_iterate_watchpoint_lwps.
12189 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12190 * i386-nat.c: Include inferior.h.
12191 (dr_mirror): Remove.
12192 (i386_inferior_data, struct i386_inferior_data)
12193 (i386_inferior_data_get): New.
12194 (i386_debug_reg_state): Use i386_inferior_data_get.
12195 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12196 (i386_insert_watchpoint, i386_remove_watchpoint)
12197 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12198 (i386_remove_hw_breakpoint): New variable state, use
12199 i386_debug_reg_state instead of DR_MIRROR.
12200 * linux-nat.c (delete_lwp): New declaration.
12201 (num_lwps): Move here from downwards.
12202 (delete_lwp_cleanup): New.
12203 (linux_child_follow_fork): Create new child_lp, call
12204 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12205 PTRACE_DETACH.
12206 (num_lwps): Move upwards.
12207 (linux_nat_iterate_watchpoint_lwps): New.
12208 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12209 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12210
12211 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12212
12213 GDB 7.4 released.
12214
12215 2012-01-23 Pedro Alves <palves@redhat.com>
12216
12217 * top.c (caution): Rename to ...
12218 (confirm): ... this.
12219 (show_caution): Rename to ...
12220 (show_confirm): ... this.
12221 (quit_cover): Adjust.
12222 (init_main): Adjust.
12223 * top.h (caution): Rename to ...
12224 (confirm): ... this.
12225 * utils.c (internal_vproblem, defaulted_query): Adjust.
12226
12227 2012-01-23 Pedro Alves <palves@redhat.com>
12228
12229 * top.c (caution): Update comment.
12230 (execute_command): Don't consider the current value of `caution'.
12231
12232 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12233
12234 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12235
12236 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12237
12238 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12239 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12240 * target.c (target_fileio_pwrite): Remove buffer address from
12241 debug output.
12242 (target_fileio_pread): Likewise.
12243
12244 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12245
12246 * NEWS: Document remote "info proc" and "generate-core-file".
12247
12248 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12249
12250 * gdbarch.sh (find_memory_regions): New callback.
12251 * gdbarch.c, gdbarch.h: Regenerate.
12252
12253 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12254 callback before falling back to target method.
12255
12256 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12257 (linux_target_install_ops): No longer install it.
12258
12259 * linux-tdep.c (linux_find_memory_regions): New function.
12260 (linux_init_abi): Install it.
12261
12262 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12263
12264 * gdbarch.sh (make_corefile_notes): New architecture callback.
12265 * gdbarch.c: Regenerate.
12266 * gdbarch.h: Likewise.
12267
12268 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12269 before target_make_corefile_notes. If NULL is returned, the
12270 target does not support core file generation.
12271
12272 * linux-nat.c: Include "linux-tdep.h".
12273 (find_signalled_thread, find_stop_signal): Remove.
12274 (linux_nat_do_thread_registers): Likewise.
12275 (struct linux_nat_corefile_thread_data): Likewise.
12276 (linux_nat_corefile_thread_callback): Likewise.
12277 (iterate_over_spus): Likewise.
12278 (struct linux_spu_corefile_data): Likewise.
12279 (linux_spu_corefile_callback): Likewise.
12280 (linux_spu_make_corefile_notes): Likewise.
12281 (linux_nat_collect_thread_registers): New function.
12282 (linux_nat_make_corefile_notes): Replace contents by call to
12283 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12284 as native-only callback.
12285
12286 * linux-tdep.h: Include "bfd.h".
12287 (struct regcache): Add forward declaration.
12288 (linux_collect_thread_registers_ftype): New typedef.
12289 (linux_make_corefile_notes): Add prototype.
12290 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12291 "regset.h", and "elf-bfd.h".
12292 (find_signalled_thread, find_stop_signal): New functions.
12293 (linux_spu_make_corefile_notes): Likewise.
12294 (linux_collect_thread_registers): Likewise.
12295 (struct linux_corefile_thread_data): New data structure.
12296 (linux_corefile_thread_callback): New funcion.
12297 (linux_make_corefile_notes): Likewise.
12298 (linux_make_corefile_notes_1): Likewise.
12299 (linux_init_abi): Install it.
12300
12301 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12302
12303 * gdbarch.sh (info_proc): New callback.
12304 * gdbarch.c, gdbarch.h: Regenerate.
12305
12306 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12307 before falling back to the target info_proc callback.
12308
12309 * linux-nat.c: Do not include "cli/cli-utils.h".
12310 (linux_nat_info_proc): Remove.
12311 (linux_target_install_ops): No longer install it.
12312
12313 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12314 (read_mapping): New function.
12315 (linux_info_proc): Likewise.
12316 (linux_init_abi): Install it.
12317
12318 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12319
12320 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12321 * infcmd.c: (info_proc_cmd_1): New function.
12322 (info_proc_cmd): New function, moved here from equivalent routine
12323 orignally in linux-nat.c.
12324 (info_proc_cmd_mappings): Likewise.
12325 (info_proc_cmd_stat): Likewise.
12326 (info_proc_cmd_status): Likewise.
12327 (info_proc_cmd_cwd): Likewise.
12328 (info_proc_cmd_cmdline): Likewise.
12329 (info_proc_cmd_exe): Likewise.
12330 (info_proc_cmd_all): Likewise.
12331 (_initialize_infcmd): Install "info proc" command and subcommands.
12332
12333 * target.h (struct target_ops): Add to_info_proc.
12334 (target_info_proc): Add prototype.
12335 * target.c (target_info_proc): New function.
12336
12337 * procfs.c (procfs_info_proc): Add prototype.
12338 (info_proc_cmd): Rename into ...
12339 (procfs_info_proc): ... this. Update argument types as appropriate
12340 for a to_info_proc implementation. Handle "what" argument.
12341 (procfs_target): Install procfs_info_proc.
12342 (_initialize_procfs): No longer install "info proc" command.
12343
12344 * linux-nat.c: (enum info_proc_what): Remove.
12345 (linux_nat_info_proc_cmd_1): Rename into ...
12346 (linux_nat_info_proc): ... this. Update argument types as appropriate
12347 for a to_info_proc implementation.
12348 (linux_nat_info_proc_cmd): Remove.
12349 (linux_nat_info_proc_cmd_mappings): Likewise.
12350 (linux_nat_info_proc_cmd_stat): Likewise.
12351 (linux_nat_info_proc_cmd_status): Likewise.
12352 (linux_nat_info_proc_cmd_cwd): Likewise.
12353 (linux_nat_info_proc_cmd_cmdline): Likewise.
12354 (linux_nat_info_proc_cmd_exe): Likewise.
12355 (linux_nat_info_proc_cmd_all): Likewise.
12356 (linux_target_install_ops): Install linux_nat_info_proc.
12357 (_initialize_linux_nat): No longer install "info proc" command
12358 and subcommands.
12359
12360 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12361
12362 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12363 * config.in, configure: Regenerate.
12364
12365 * target.h (struct target_ops): Add to_fileio_readlink.
12366 (target_fileio_readlink): Add prototype.
12367 * target.c (target_fileio_readlink): New function.
12368
12369 * inf-child.c: Conditionally include <sys/param.h>.
12370 (inf_child_fileio_readlink): New function.
12371 (inf_child_target): Install it.
12372
12373 * remote.c (PACKET_vFile_readlink): New enum value.
12374 (remote_hostio_readlink): New function.
12375 (init_remote_ops): Install it.
12376 (_initialize_remote): Handle vFile:readlink packet type.
12377
12378 2012-01-20 Pedro Alves <palves@redhat.com>
12379 Ulrich Weigand <ulrich.weigand@linaro.org>
12380
12381 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12382 * config.in, configure: Regenerate.
12383
12384 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12385 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12386 (target_fileio_open): Add prototype.
12387 (target_fileio_pwrite): Likewise.
12388 (target_fileio_pread): Likewise.
12389 (target_fileio_close): Likewise.
12390 (target_fileio_unlink): Likewise.
12391 (target_fileio_read_alloc): Likewise.
12392 (target_fileio_read_stralloc): Likewise.
12393
12394 * target.c: Include "gdb/fileio.h".
12395 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12396 (default_fileio_target): New function.
12397 (target_fileio_open): Likewise.
12398 (target_fileio_pwrite): Likewise.
12399 (target_fileio_pread): Likewise.
12400 (target_fileio_close): Likewise.
12401 (target_fileio_unlink): Likewise.
12402 (target_fileio_close_cleanup): Likewise.
12403 (target_fileio_read_alloc_1): Likewise.
12404 (target_fileio_read_alloc): Likewise.
12405 (target_fileio_read_stralloc): Likewise.
12406
12407 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12408 <fcntl.h>, and <unistd.h>.
12409 (inf_child_fileio_open_flags_to_host): New function.
12410 (inf_child_errno_to_fileio_error): Likewise.
12411 (inf_child_fileio_open): Likewise.
12412 (inf_child_fileio_pwrite): Likewise.
12413 (inf_child_fileio_pread): Likewise.
12414 (inf_child_fileio_close): Likewise.
12415 (inf_child_fileio_unlink): Likewise.
12416 (inf_child_target): Install to_fileio routines.
12417
12418 * remote.c (init_remote_ops): Install to_fileio routines.
12419
12420 2012-01-20 Pedro Alves <palves@redhat.com>
12421 Ulrich Weigand <ulrich.weigand@linaro.org>
12422
12423 * remote.c (remote_multi_process_p): Only check for multi-process
12424 protocol feature, do not check for extended protocol.
12425 (remote_supports_multi_process): Check for extended protocol here.
12426 (set_general_process): Likewise.
12427 (extended_remote_kill): Likewise.
12428 (remote_pid_to_str): Likewise.
12429 (remote_query_supported): Always query multiprocess mode.
12430
12431 2012-01-20 Pedro Alves <palves@redhat.com>
12432 Ulrich Weigand <ulrich.weigand@linaro.org>
12433
12434 * inferior.h (struct inferior): Add fake_pid_p.
12435 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12436 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12437 magic_null_ptid since the remote side doesn't provide a real PID.
12438
12439 2012-01-19 Tom Tromey <tromey@redhat.com>
12440
12441 * NEWS: Combine the two Python sections.
12442
12443 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12444
12445 * target.h (target_close): Update comment on the target's unpush state.
12446
12447 2012-01-19 Pedro Alves <palves@redhat.com>
12448
12449 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12450 linux_nat_async directly instead of going through the target
12451 vector.
12452 * target.c (unpush_target): Close target after unpushing it, not
12453 before.
12454
12455 2012-01-19 Gary Benson <gbenson@redhat.com>
12456
12457 * mdebugread.c (sort_blocks): Replace integer constants with ones
12458 derived from FIRST_LOCAL_BLOCK.
12459
12460 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12461 Jan Kratochvil <jan.kratochvil@redhat.com>
12462
12463 PR gdb/9538
12464 * symfile.c (find_separate_debug_file): New function.
12465 (terminate_after_last_dir_separator): Likewise.
12466 (find_separate_debug_file_by_debuglink): Also try realpath.
12467 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12468 * configure: Regenerate.
12469 * config.in: Regenerate.
12470
12471 2012-01-18 Doug Evans <dje@google.com>
12472
12473 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12474 (main.o): Remove rule.
12475 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12476 (--with-sysroot): Rewrite.
12477 * configure: Regenerate.
12478 * config.in: Regenerate.
12479
12480 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12481
12482 * parse.c (initialize_expout): New function.
12483 (reallocate_expout): Likewise.
12484 (parse_exp_in_context): Use `initialize_expout' and
12485 `reallocate_expout' when appropriate.
12486
12487 2012-01-18 Pedro Alves <palves@redhat.com>
12488
12489 * record.c (struct record_breakpoint, record_breakpoint_p)
12490 (record_breakpoints): New.
12491 (record_insert_breakpoint, record_remove_breakpoint): Manage
12492 record breakpoints list. Only remove breakpoints from the
12493 inferior if they had been inserted there in the first place.
12494
12495 2012-01-17 Doug Evans <dje@google.com>
12496
12497 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12498 if we know we don't have a file name to look for.
12499
12500 2012-01-17 Pedro Alves <palves@redhat.com>
12501
12502 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12503 the frame's stop reason is UNWIND_UNAVAILABLE.
12504
12505 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12506
12507 Fix compilation error.
12508 * m2-exp.y (yyerror): Use ANSI C prototype.
12509
12510 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12511
12512 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12513 (growbuf_by_size): Likewise.
12514 (yyerror): Likewise.
12515 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12516 (modblock): Remove variable (was #if 0'ed).
12517 (parse_number): Convert prototype from K&R to ANSI C.
12518 (yyerror): Likewise.
12519 * objc-exp.y (parse_number): Likewise.
12520 (yyerror): Likewise.
12521 (yylex): Remove #if 0'ed code.
12522 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12523 (yyerror): Likewise.
12524
12525 2012-01-16 Tom Tromey <tromey@redhat.com>
12526
12527 * NEWS: Add item.
12528 * symtab.h (compare_filenames_for_search): Declare.
12529 * symtab.c (compare_filenames_for_search): New function.
12530 (iterate_over_some_symtabs): Use it.
12531 * symfile.h (struct quick_symbol_functions)
12532 <map_symtabs_matching_filename>: Change spec.
12533 * psymtab.c (partial_map_symtabs_matching_filename): Use
12534 compare_filenames_for_search. Update for new spec.
12535 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12536 compare_filenames_for_search. Update for new spec.
12537 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12538
12539 2012-01-16 Tom Tromey <tromey@redhat.com>
12540
12541 PR python/13281:
12542 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12543 (struct main_type) <flag_flag_enum>: New field.
12544 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12545 * NEWS: Add entries.
12546 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12547 enums.
12548 * python/lib/gdb/printing.py (_EnumInstance): New class.
12549 (FlagEnumerationPrinter): Likewise.
12550
12551 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12552
12553 * breakpoint.c (create_sals_from_address_default): New function.
12554 (create_breakpoints_sal_default): Likewise.
12555 (decode_linespec_default): Likewise.
12556 (is_marker_spec): Removed.
12557 (strace_marker_p): New function.
12558 (init_breakpoint_sal): Using `strace_marker_p' instead of
12559 `is_marker_spec'.
12560 (create_breakpoint): Call method `create_sals_from_address' from
12561 breakpoint_ops, replacing code that created SALs conditionally
12562 on the type of the breakpoint. Call method `create_breakpoints_sal',
12563 replacing code that created breakpoints conditionally on the type
12564 wanted.
12565 (base_breakpoint_create_sals_from_address): New function.
12566 (base_breakpoint_create_breakpoints_sal): Likewise.
12567 (base_breakpoint_decode_linespec): Likewise.
12568 (base_breakpoint_ops): Add methods
12569 `base_breakpoint_create_sals_from_address',
12570 `base_breakpoint_create_breakpoints_sal' and
12571 `base_breakpoint_decode_linespec'.
12572 (bkpt_create_sals_from_address): New function.
12573 (bkpt_create_breakpoints_sal): Likewise.
12574 (bkpt_decode_linespec): Likewise.
12575 (tracepoint_create_sals_from_address): Likewise.
12576 (tracepoint_create_breakpoints_sal): Likewise.
12577 (tracepoint_decode_linespec): Likewise.
12578 (strace_marker_create_sals_from_address): Likewise.
12579 (strace_marker_create_breakpoints_sal): Likewise.
12580 (strace_marker_decode_linespec): Likewise.
12581 (strace_marker_breakpoint_ops): New variable.
12582 (addr_string_to_sals): Remove `marker_spec'. Call method
12583 `decode_linespec' from breakpoint_ops, replacing code that decoded
12584 an address string into a SAL. Use `strace_marker_p' instead of
12585 `marker_spec'.
12586 (strace_command): Decide whether we are dealing with a static
12587 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12588 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12589 * breakpoint.h (linespec_result, linespec_sals): New forward
12590 declarations.
12591 (breakpoint_ops) <create_sals_from_address>,
12592 <create_breakpoints_sal>, <decode_linespec>: New methods.
12593
12594 2012-01-14 Doug Evans <dje@google.com>
12595
12596 * NEWS: Update text for "maint set python print-stack".
12597 It is deprecated in gdb 7.4 and deleted in 7.5.
12598
12599 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12600
12601 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12602 including curses.h.
12603
12604 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12605
12606 * configure: Regenerate.
12607 * config.in: Regenerate.
12608
12609 2012-01-12 Keith Seitz <keiths@redhat.com>
12610
12611 PR mi/10586
12612 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12613 (ANONYMOUS_UNION_NAME): Define.
12614 (is_path_expr_parent): New function.
12615 (get_path_expr_parent): New function.
12616 (is_anonymous_child): New function.
12617 (create_child_with_value): If the child is anonymous and without
12618 a name, assign an object name to it.
12619 (c_describe_child): Use get_path_expr_parent to determine
12620 the parent expression.
12621 If there field represents an anonymous struct or union and
12622 has no name, set an appropriate display name and expression.
12623 (cplus_describe_child): Likewise.
12624
12625 2012-01-12 Pedro Alves <palves@redhat.com>
12626
12627 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12628 available when %ebp is found to be zero (outermost).
12629
12630 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12631
12632 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12633 an internal gdb_static_assert.
12634 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12635
12636 2012-01-11 Tom Tromey <tromey@redhat.com>
12637
12638 PR gdb/9598:
12639 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12640 catch" and "catch throw".
12641
12642 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12643
12644 * blockframe.c (block_innermost_frame): Start search from selected
12645 frame, if present, or otherwise the current frame.
12646
12647 * c-exp.y (variable): Update innermost_block for
12648 'block COLONCOLON NAME' clause.
12649 * m2-exp.y (variable): Ditto.
12650 * objc-exp.y (variable): Ditto.
12651
12652 2012-01-10 Tom Tromey <tromey@redhat.com>
12653
12654 PR python/13199:
12655 * python/python.c (finish_python_initialization): Set sys.argv.
12656
12657 2012-01-10 Doug Evans <dje@google.com>
12658
12659 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12660 "want_line_info". All callers updated.
12661 (dwarf_decode_lines_1): New function.
12662 (handle_DW_AT_stmt_list): Add function comment.
12663 New arg "want_line_info". All callers updated.
12664 (read_file_scope,read_type_unit_scope): Move comment from
12665 handle_DW_AT_stmt_list to here.
12666
12667 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12668
12669 Fix regression after libiberty/ update for GCC PR 6057 and others.
12670 * c-exp.y (operator) <OPERATOR DELETE>
12671 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12672 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12673 (make_builtin_type, make_name): New variable i, add gdb_assert.
12674 (operator) <OPERATOR NEW>: Update ARGS to 3.
12675 (operator) <OPERATOR DELETE>: Add trailing space.
12676 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12677 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12678 * cp-support.c (cp_canonicalize_string): Check NULL from
12679 cp_comp_to_string, call warning and return.
12680
12681 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12682
12683 Fix duplicate .o files after omitting libbfd.a.
12684 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12685 (SFILES): Add corelow.c.
12686 (COMMON_OBS): Add corelow.o.
12687 (ALLDEPFILES): Remove corelow.c.
12688 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12689 * config/alpha/alpha-osf3.mh: Likewise.
12690 * config/alpha/fbsd.mh: Likewise.
12691 * config/arm/nbsdaout.mh: Likewise.
12692 * config/arm/nbsdelf.mh: Likewise.
12693 * config/i386/i386gnu.mh: Likewise.
12694 * config/ia64/hpux.mh: Likewise.
12695 * config/ia64/linux.mh: Likewise.
12696 * config/m32r/linux.mh: Likewise.
12697 * config/m68k/linux.mh: Likewise.
12698 * config/mips/irix5.mh: Likewise.
12699 * config/mips/irix6.mh: Likewise.
12700 * config/pa/hpux.mh: Likewise.
12701 * config/pa/linux.mh: Likewise.
12702 * config/powerpc/aix.mh: Likewise.
12703 * config/sparc/linux.mh: Likewise.
12704 * config/sparc/linux64.mh: Likewise.
12705 * config/sparc/sol2.mh: Likewise.
12706 * config/vax/vax.mh: Likewise.
12707 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12708 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12709 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12710 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12711 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12712 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12713 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12714 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12715 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12716 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12717 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12718 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12719 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12720 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12721 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12722 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12723 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12724 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12725 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12726 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12727 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12728 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12729 corelow.o from gdb_target_obs.
12730 * corefile.c (core_target): Update the comment on NULL value.
12731 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12732 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12733 MATCHES. Drop YUMMY set on NULL.
12734 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12735 reclaim CORE_DATA if it is already NULL.
12736
12737 2012-01-09 Doug Evans <dje@google.com>
12738
12739 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12740 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12741
12742 2012-01-09 Keith Seitz <keiths@redhat.com>
12743
12744 * breakpoint.c (wrapper.h): Don't include.
12745
12746 2012-01-09 Keith Seitz <keiths@redhat.com>
12747
12748 * Makefile.in (SFILES): Remove wrapper.c.
12749 (HFILES_NO_SRCDIR): Remove wrapper.h.
12750 (COMMON_OBS): Remove wrapper.o.
12751 * cli/cli-interp.c: Don't inlude wrapper.h.
12752 * corelow.c: Likewise.
12753 (core_open): Replace gdb_target_find_new_threads with
12754 TRY_CATCH around target_find_new_threads.
12755 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12756 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12757 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12758 evaluate_expression.
12759 (varobj_set_value): Likewise for evaluate_expression and
12760 value_assign.
12761 (install_new_variable): Likewise for value_fetch_lazy.
12762 (adjust_value_for_child_access): Likewise for value_ind.
12763 (c_describe_child): Likewise for value_subscript and
12764 value_ind.
12765 (c_value_of_root): Likewise for evaluate_expression.
12766 * wrapper.c: Remove.
12767 * wrapper.h: Remove.
12768
12769 2012-01-09 Doug Evans <dje@google.com>
12770
12771 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12772 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12773 "abfd" args with "section". All callers updated.
12774 Error checking code moved ...
12775 (error_check_comp_unit_head): ... here. New function.
12776 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12777 Delete arg "abfd". New arg "type_offset". All callers updated.
12778 (create_debug_types_hash_table): Simplify by using
12779 read_and_check_type_unit_head.
12780
12781 * parser-defs.h (namecopy): Delete.
12782 * parse.c (namecopy, namecopy_size): Move into copy_name.
12783
12784 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12785
12786 Partially fix duplicate .o files after omitting libbfd.a.
12787 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12788 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12789 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12790 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12791 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12792 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12793 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12794
12795 2012-01-09 Pedro Alves <palves@redhat.com>
12796
12797 * MAINTAINERS: Update my email address.
12798
12799 2012-01-08 Doug Evans <dje@google.com>
12800
12801 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12802 n_type_units. Rename type_comp_units to all_type_units.
12803 All uses updated.
12804 (add_signatured_type_cu_to_table): Renamed from
12805 add_signatured_type_cu_to_list. All callers updated.
12806
12807 * gdbtypes.h (struct cplus_struct_type): Delete member
12808 nfn_fields_total. All uses removed.
12809
12810 2012-01-06 Doug Evans <dje@google.com>
12811
12812 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12813 to top of file.
12814 (dwarf2_find_comp_unit): Delete.
12815 (process_psymtab_comp_unit): Make result "void".
12816 Delete args buffer, info_ptr, buffer_size, and replace with
12817 "section". All callers updated.
12818 (dwarf2_build_psymtabs_hard): Simplify.
12819
12820 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12821 Thiago Jung Bauermann <bauerman@br.ibm.com>
12822
12823 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12824 before `struct gdb_exception'.
12825 * breakpoint.c (update_global_location_list_nothrow)
12826 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12827 * cp-abi.c (value_rtti_type): Likewise.
12828 * cp-support.c (cp_validate_operator): Likewise.
12829 * infrun.c (insert_exception_resume_breakpoint)
12830 (check_exception_resume, keep_going): Likewise.
12831 * mi-interp.c (mi_breakpoint_created)
12832 (mi_breakpoint_modified): Likewise.
12833 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12834 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12835 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12836
12837 2012-01-05 Doug Evans <dje@google.com>
12838
12839 * dwarf2read.c (statement_prologue): Delete, unused.
12840
12841 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12842 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12843
12844 * dwarf2read.c (comp_unit_header): Delete, unused.
12845
12846 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12847
12848 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12849 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12850
12851 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12852
12853 * infrun.c (normal_stop): Don't skip calling the normal_stop
12854 observers if the thread was doing a multi-step, but stopped for
12855 some reason other than stepping.
12856
12857 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12858
12859 * cli/cli-decode.h: Add comments.
12860 (CMD_LIST_AMBIGUOUS): Moved to command.h
12861 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12862 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12863 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12864 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12865 (add_com, add_com_alias, add_info, add_info_alias)
12866 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12867 declarations.
12868 * command.h: Add and adjust comments.
12869 (CMD_LIST_AMBIGUOUS): Moved here.
12870 (help_cmd, help_cmd_list): Delete declarations.
12871
12872 2012-01-04 Doug Evans <dje@google.com>
12873
12874 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12875 All callers updated.
12876 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12877 Replace all arguments with "per_cu". All callers updated.
12878
12879 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12880
12881 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12882 New arg "per_cu". All callers updated.
12883
12884 Delete #if 0'd out code.
12885 * language.c (binop_result_type): Delete.
12886 (simple_type, ordered_type, same_type, integral_type): Delete.
12887 (numeric_type, character_type, string_type, boolean_type): Delete.
12888 (float_type, structured_type): Delete.
12889 * language.h: Update.
12890
12891 2012-01-04 Tom Tromey <tromey@redhat.com>
12892
12893 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12894
12895 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12896
12897 * corefile.c (close_exec_file): Delete.
12898 (reopen_exec_file): Remove commented out code that seems related
12899 to close_exec_file, which is being deleted here.
12900 * inferior.h (close_exec_file): Delete.
12901 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12902
12903 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12904
12905 * ada-lang.c: #include "cli/cli-utils.h".
12906 (get_selections): Use skip_spaces.
12907 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12908 (catch_ada_exception_command_split): Use skip_spaces.
12909 (ada_decode_assert_location): Likewise.
12910
12911 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12912
12913 * linespec.c (decode_line_internal): Check for C++ or Java
12914 compound constructs only if the current language is C, C++
12915 or Java.
12916
12917 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12918
12919 Revert:
12920 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12921 Joel Brobecker <brobecker@adacore.com>
12922 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12923 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12924 3 times.
12925 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12926 fall through into AT_ENTRY_POINT.
12927 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12928 DUMMY_ADDR with it.
12929 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12930 PPC_INSN_SIZE skip to 3 times.
12931
12932 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12933
12934 * linespec.c (add_minsym): Preserve function descriptors.
12935
12936 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12937
12938 * breakpoint.c (all_locations_are_pending): Consider locations
12939 in program spaces executing during startup pending as well.
12940
12941 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12942
12943 Copyright year update in most files of the GDB Project.
12944
12945 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12946
12947 * copyright.sh: Delete.
12948 * copyright.py: Rewrite.
12949
12950 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12951
12952 * gnulib/extra/update-copyright: New file, imported from gnulib.
12953
12954 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12955
12956 * README (Copyright and License Notices): New section.
12957
12958 2012-01-03 Tom Tromey <tromey@redhat.com>
12959
12960 PR python/12533:
12961 * python/py-value.c (valpy_dereference, valpy_get_address
12962 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12963 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12964 (valpy_absolute, valpy_richcompare): Free intermediate values.
12965
12966 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12967
12968 * ada-lang.c: Reformat the copyright notice.
12969
12970 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12971
12972 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12973 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12974 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12975 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12976 Revert this part of:
12977 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12978 Build gdb directly from *.o files not using libgdb.a.
12979 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12980
12981 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12982
12983 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12984 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12985 Reformat the copyright header.
12986
12987 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12988
12989 Revert this part of:
12990 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12991 Remove the gdbtui binary.
12992 * gdb.c (main): Remove args.interpreter_p initialization.
12993 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12994 * main.h (struct captured_main_args): Remove interpreter_p.
12995
12996 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12997
12998 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12999
13000 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13001
13002 * top.c (print_gdb_version): Update copyright year.
13003
13004 2012-01-02 Yao Qi <yao@codesourcery.com>
13005
13006 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13007
13008 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13009 Joel Brobecker <brobecker@adacore.com>
13010
13011 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13012 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13013 3 times.
13014 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13015 fall through into AT_ENTRY_POINT.
13016 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13017 DUMMY_ADDR with it.
13018 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13019 PPC_INSN_SIZE skip to 3 times.
13020
13021 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13022
13023 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13024 the return value.
13025 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13026
13027 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13028
13029 Build gdb directly from *.o files not using libgdb.a.
13030 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13031 (COMMON_OBS): Remove solib-target.o.
13032 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13033 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13034 (LIBGDB_OBS, libgdb.a): Move it above.
13035 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13036 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13037 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13038 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13039 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13040 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13041 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13042 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13043 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13044 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13045 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13046 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13047 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13048 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13049 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13050 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13051 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13052 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13053 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13054 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13055 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13056 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13057 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13058 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13059 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13060 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13061 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13062
13063 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13064
13065 Remove the gdbtui binary.
13066 * .gitignore (/gdbtui): Remove.
13067 * Makefile.in (TUI): Remove.
13068 (SUBDIR_TUI_OBS): Remove tui-main.o.
13069 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13070 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13071 (tui-main.o): Remove.
13072 (all_object_files): Remove tui-main.o.
13073 * NEWS: New note for the gdbtui removal.
13074 * configure: Rebuilt.
13075 * configure.ac: No longer add all-tui, clean-tui, install-tui and
13076 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13077 CONFIG_UNINSTALL respectively.
13078 * gdb.c (main): Remove args.interpreter_p initialization.
13079 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13080 * main.h (struct captured_main_args): Remove interpreter_p.
13081 * tui/tui-main.c: Remove.
13082
13083 2012-01-01 Doug Evans <dje@google.com>
13084
13085 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13086 (dwarf2_physname, read_import_statement): Ditto.
13087 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13088 (process_structure_scope read_subroutine_type): Ditto.
13089 (read_typedef, load_partial_dies, read_partial_die): Ditto.
13090 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13091 (dwarf2_fetch_die_location_block): Ditto.
13092 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13093
13094 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13095 All callers updated.
13096 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13097 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13098 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13099
13100 * dwarf2read.c (load_cu): Move assert to more useful location.
13101
13102 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13103 All callers updated.
13104
13105 * dwarf2read.c (dwarf2_per_objfile): Add comment.
13106 (dwarf2_elf_names): Minor reformat.
13107 (dwarf2_per_cu_data): Tweak comment.
13108 (dwarf2_read_section): Fix comment.
13109 (create_all_comp_units): Fix comment.
13110 (load_full_comp_unit): Fix comment.
13111 (process_full_comp_unit): Fix comment.
13112 (read_signatured_type): Fix comment.
13113
13114 For older changes see ChangeLog-2011.
13115 \f
13116 Local Variables:
13117 mode: change-log
13118 left-margin: 8
13119 fill-column: 74
13120 version-control: never
13121 coding: utf-8
13122 End:
This page took 0.32059 seconds and 5 git commands to generate.