Remove dead sets/clears of ecs->random signal.
[binutils-gdb.git] / gdb / ChangeLog
1 2013-10-22 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
4 set ecs->random signal.
5
6 2013-10-22 Pedro Alves <palves@redhat.com>
7
8 * infrun.c (keep_going): Update comments.
9
10 2013-10-22 Pedro Alves <palves@redhat.com>
11
12 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
13 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
14
15 2013-10-22 Pedro Alves <palves@redhat.com>
16
17 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
18 GDB_EXC_BAD_ACCESS.
19 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
20 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
21 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
22 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
23 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
24 (GDB_SIGNAL_LAST): Change description string.
25 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
26 Adjust to signal renaming.
27 * darwin-nat.c (darwin_decode_message): Likewise.
28
29 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
30
31 * MAINTAINERS (Write After Approval): Add myself to the list.
32
33 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
34
35 * breakpoint.c (update_watchpoint): If hardware watchpoints are
36 forced off, downgrade them to software watchpoints if possible,
37 and error out if not possible.
38 (watch_command_1): Move watchpoint type selection closer to
39 watchpoint creation, and extend the comments.
40
41 2013-10-18 Pedro Alves <palves@redhat.com>
42
43 PR gdb/16062
44 * infrun.c (handle_inferior_event): Keep going if we got a random
45 signal we should not stop for, instead of falling through to the
46 step tests.
47
48 2013-10-18 Yao Qi <yao@codesourcery.com>
49
50 * c-varobj.c (cplus_number_of_children): Fix indentation.
51
52 2013-10-17 Tom Tromey <tromey@redhat.com>
53
54 PR gdb/15995:
55 * printcmd.c (printcmd): Call gdb_flush.
56
57 2013-10-17 Tom Tromey <tromey@redhat.com>
58
59 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
60 (elf_locate_sections): Update.
61
62 2013-10-17 Yao Qi <yao@codesourcery.com>
63
64 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
65 * ada-varobj.c: Remove the include of ada-varobj.h.
66 (ada_varobj_get_number_of_children): Declare.
67 (ada_varobj_get_name_of_child): Make it static.
68 (ada_varobj_get_path_expr_of_child): Likewise.
69 (ada_varobj_get_value_of_child): Likewise.
70 (ada_varobj_get_type_of_child): Likewise.
71 (ada_varobj_get_value_of_array_variable): Likewise.
72 * ada-varobj.h: Remove.
73
74 2013-10-17 Yao Qi <yao@codesourcery.com>
75
76 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
77 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
78 * ada-varobj.c: Include "varobj.h".
79 (ada_number_of_children): New. Moved from varobj.c.
80 (ada_name_of_variable, ada_name_of_child): Likewise.
81 (ada_path_expr_of_child, ada_value_of_child): Likewise.
82 (ada_type_of_child, ada_value_of_variable): Likewise.
83 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
84 (ada_varobj_ops): New.
85 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
86 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
87 * gdbtypes.h (get_target_type): Declare.
88 * varobj.c: Remove the inclusion of "ada-varobj.h" and
89 "ada-lang.h".
90 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
91 (ANONYMOUS_UNION_NAME): Likewise.
92 (get_type, get_value_type, get_target_type): Remove declarations.
93 (value_get_print_value, varobj_value_get_print_value): Likewise.
94 (c_number_of_children, c_name_of_variable): Likewise.
95 (c_name_of_child, c_path_expr_of_child): Likewise.
96 (c_value_of_child, c_type_of_child): Likewise.
97 (c_value_of_variable, cplus_number_of_children): Likewise.
98 (cplus_class_num_children, cplus_name_of_variable): Likewise.
99 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
100 (cplus_value_of_child, cplus_type_of_child): Likewise.
101 (cplus_value_of_variable, java_number_of_children): Likewise.
102 (java_name_of_variable, java_name_of_child): Likewise.
103 (java_path_expr_of_child, java_value_of_child): Likewise.
104 (java_type_of_child, java_value_of_variable): Likewise.
105 (ada_number_of_children, ada_name_of_variable): Likewise.
106 (ada_name_of_child, ada_path_expr_of_child): Likewise.
107 (ada_value_of_child, ada_type_of_child): Likewise.
108 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
109 (ada_value_has_mutated): Likewise.
110 (struct language_specific): Move it to varobj.h.
111 (CPLUS_FAKE_CHILD): Move it to varobj.h.
112 (restrict_range): Rename it varobj_restrict_range. Make it extern.
113 Callers update.
114 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
115 Make it extern.
116 (is_anonymous_child): Move it to c-varobj.c and rename to
117 varobj_is_anonymous_child. Caller update.
118 (get_type): Move it to c-varobj.c.
119 (get_value_type): Rename it varobj_get_value_type. Make it
120 extern.
121 (get_target_type): Move it gdbtypes.c.
122 (varobj_formatted_print_options): New function.
123 (value_get_print_value): Rename it to
124 varobj_value_get_print_value and make it extern.
125 (varobj_value_is_changeable_p): Make it extern.
126 (adjust_value_for_child_access): Move it to c-varobj.c.
127 (default_value_is_changeable_p): Rename it to
128 varobj_default_value_is_changeable_p. Make it extern.
129 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
130 (c_name_of_child, c_path_expr_of_child): Likewise.
131 (c_value_of_child, c_type_of_child): Likewise.
132 (c_value_of_variable, cplus_number_of_children): Likewise.
133 (cplus_class_num_children, cplus_name_of_variable): Likewise.
134 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
135 (cplus_value_of_child, cplus_type_of_child): Likewise.
136 (cplus_value_of_variable): Likewise.
137 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
138 (java_name_of_child, java_path_expr_of_child): Likewise.
139 (java_value_of_child, java_type_of_child): Likewise.
140 (java_value_of_variable): Likewise.
141 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
142 (ada_name_of_child, ada_path_expr_of_child): Likewise.
143 (ada_value_of_child, ada_type_of_child): Likewise.
144 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
145 (ada_value_has_mutated): Likewise.
146 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
147 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
148 (c_varobj_ops, cplus_varobj_ops): Declare.
149 (java_varobj_ops, ada_varobj_ops): Declare.
150 (varobj_default_value_is_changeable_p): Declare.
151 (varobj_value_is_changeable_p): Declare.
152 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
153 (varobj_get_path_expr_parent): Declare.
154 (varobj_value_get_print_value): Declare.
155 (varobj_formatted_print_options): Declare.
156 (varobj_restrict_range): Declare.
157
158 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
159
160 * target/waitstatus.h (target_waitkind): Remove spurious
161 character from the comments.
162
163 2013-10-17 Joel Brobecker <brobecker@adacore.com>
164
165 * gdbarch.sh (get_longjmp_target): Add method documentation.
166 * gdbarch.h: Regenerate.
167
168 2013-10-16 Tom Tromey <tromey@redhat.com>
169
170 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
171 label.
172
173 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
174
175 * gcore.in: Call GDB using the full path to the gcore script.
176 Error out if the GDB binary is not found.
177
178 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
179
180 PR gdb/16014
181 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
182 sizeof.
183
184 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
185
186 PR gdb/16042
187 * target.c (target_disable_btrace): Fix invalid return value for
188 void function.
189 (target_teardown_btrace): Likewise.
190
191 2013-10-14 Yao Qi <yao@codesourcery.com>
192
193 * varobj.c (struct varobj): Move most of the fields to
194 varobj.h.
195 (struct varobj_dynamic): New struct.
196 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
197 (varobj_has_more): Likewise.
198 (dynamic_varobj_has_child_method): Likewise.
199 (update_dynamic_varobj_children): Likewise.
200 (varobj_get_num_children): Likewise.
201 (varobj_list_children, varobj_pretty_printed_p): Likewise.
202 (install_new_value_visualizer): Likewise.
203 (install_new_value_visualizer, install_new_value): Likewise.
204 (varobj_update, new_variable, free_variable): Likewise.
205 (my_value_of_variable, value_get_print_value): Likewise.
206 (install_visualizer): Change the type of parameter 'var' to
207 'struct varobjd_dynamic *'. Callers update.
208 * varobj.h (struct varobj): Moved from varobj.c.
209 (struct varobj) <dynamic>: New field.
210
211 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
212
213 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
214 as the preferred name of r30.
215 * nios2-linux-tdep.c (reg_offsets): Likewise.
216 * features/nios2-cpu.xml: Likewise.
217 * features/nios2-linux.c: Regenerated.
218 * features/nios2.c: Regenerated.
219 * regformats/nios2-linux.dat: Regenerated.
220
221 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
222
223 Canonicalize directories for EXEC_FILENAME.
224 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
225 exec_filename.
226 * utils.c (gdb_realpath_keepfile): New function.
227 * utils.h (gdb_realpath_keepfile): New declaration.
228
229 2013-10-11 Doug Evans <dje@google.com>
230
231 * Makefile.in (GDBFLAGS): New variable.
232 (run): New rule.
233
234 2013-10-11 Joel Brobecker <brobecker@adacore.com>
235
236 * NEWS: Add entry documenting the new "-catch-assert" and
237 "-catch-exception" GDB/MI commands.
238
239 2013-10-11 Joel Brobecker <brobecker@adacore.com>
240
241 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
242 "enabled".
243 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
244 "enabled". Set B->ENABLE_STATE accordingly.
245 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
246 ada-lang.c.
247 (create_ada_exception_catchpoint): Add declaration.
248 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
249 (create_ada_exception_catchpoint): Make non-static. Add new
250 parameter "disabled". Use it in call to
251 init_ada_exception_breakpoint.
252 (catch_ada_exception_command): Add parameter "enabled" in call
253 to create_ada_exception_catchpoint.
254 (catch_assert_command): Likewise.
255
256 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
257 Add declarations.
258 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
259 "catch-exception" commands.
260 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
261 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
262
263 2013-10-11 Joel Brobecker <brobecker@adacore.com>
264
265 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
266 "enum exception_catchpoint_kind". Replace the "ex_" prefix
267 of all its enumerates with "ada_". Update the rest of this
268 file throughout.
269
270 2013-10-11 Joel Brobecker <brobecker@adacore.com>
271
272 * ada-lang.c (ada_decode_exception_location): Delete.
273 (create_ada_exception_catchpoint): Remove arguments "sal",
274 "addr_string" and "ops". Add argument "ex_kind" instead.
275 Adjust implementation accordingly, calling ada_exception_sal
276 to get the entities it no longer gets passed as arguments.
277 Document the function's arguments.
278 (catch_ada_exception_command): Use catch_ada_exception_command_split
279 instead of ada_decode_exception_location, and update call to
280 create_ada_exception_catchpoint.
281 (catch_ada_assert_command_split): Renames
282 ada_decode_assert_location. Remove parameters "addr_string" and
283 "ops", and now returns void. Adjust implementation accordingly.
284 Update the function documentation.
285 (catch_assert_command): Use catch_ada_assert_command_split
286 instead of ada_decode_assert_location. Update call to
287 create_ada_exception_catchpoint.
288
289 2013-10-11 Joel Brobecker <brobecker@adacore.com>
290
291 * utils.h (perror_warning_with_name): Add declaration.
292 * utils.c (perror_warning_with_name): New function.
293 * cli/cli-cmds.c (source_script_with_search): Add call to
294 perror_warning_with_name if from_tty is nul.
295
296 2013-10-11 Joel Brobecker <brobecker@adacore.com>
297
298 * utils.c (perror_string): New function, extracted out of
299 throw_perror_with_name.
300 (throw_perror_with_name): Rework to use perror_string.
301
302 2013-10-11 Yao Qi <yao@codesourcery.com>
303
304 * remote.c (discard_pending_stop_replies_in_queue): Update
305 declaration.
306 (struct stop_reply) <rs>: New field.
307 (remove_stop_reply_of_remote_state): New function.
308 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
309 Callers update. Pass remove_stop_reply_of_remote_state to
310 QUEUE_iterate.
311 (remote_parse_stop_reply): Initialize field 'rs'.
312
313 2013-10-10 Will Newton <will.newton@linaro.org>
314
315 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
316 linux_init_abi.
317
318 2013-10-10 Joel Brobecker <brobecker@adacore.com>
319
320 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
321 serial_baud_show_cmd.
322 (_initialize_cli_cmds): Delete the code creating the
323 "set/show remotebaud" commands.
324 * serial.c (baud_rate): Move here from top.c.
325 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
326 (_initialize_serial): Create "set/show serial baud" commands.
327 Add "set/show remotebaud" command aliases.
328 * top.c (baud_rate): Moved to serial.c.
329 * NEWS: Document the new "set/show serial baud" commands,
330 replacing "set/show remotebaud".
331
332 2013-10-09 Pedro Alves <palves@redhat.com>
333
334 * breakpoint.c (insert_bp_location): Use memory_error_message to
335 build the memory error string.
336 * c-lang.c: Include "gdbcore.h".
337 (c_get_string): Use memory_error to throw error.
338 (target_xfer_memory_error): Delete.
339 (memory_error_message): New, factored out from
340 target_xfer_memory_error.
341 (memory_error): Change parameter type to target_xfer_error.
342 Rewrite.
343 (read_memory): Use memory_error instead of
344 target_xfer_memory_error.
345 * gdbcore.h: Include "target.h".
346 (memory_error): Change parameter type to target_xfer_error.
347 (memory_error_message): Declare function.
348 * target.c (target_read_memory, target_read_stack)
349 (target_write_memory, target_write_raw_memory): Return
350 TARGET_XFER_E_IO on error. Adjust comments.
351 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
352 instead of EIO.
353 * target.h (target_read, target_insert_breakpoint)
354 (target_remove_breakpoint): Adjust comments.
355 * valprint.c (partial_memory_read): Rename parameter, and adjust
356 comment.
357 (val_print_string): Use memory_error_message to build the memory
358 error string.
359
360 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
361
362 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
363 result variable. Rename variable fopen_e_ever_failed to
364 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
365
366 2013-10-09 Pedro Alves <palves@redhat.com>
367
368 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
369 (monitor_write_memory_longlongs, monitor_write_memory_block):
370 Constify 'myaddr' parameter.
371 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
372 helper.
373 (monitor_xfer_partial): New function.
374 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
375 hook. Install a to_xfer_partial hook.
376
377 2013-10-09 Tom Tromey <tromey@redhat.com>
378
379 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
380 bfd_get_alt_debug_link_info.
381
382 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
383
384 New flag OBJF_NOT_FILENAME.
385 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
386 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
387 allocate_objfile.
388 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
389 symbol_file_add_from_bfd.
390 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
391 allocate_objfile.
392 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
393 NULL.
394 * objfiles.h (OBJF_NOT_FILENAME): New.
395
396 2013-10-08 Tom Tromey <tromey@redhat.com>
397
398 * Makefile.in (SFILES): Add build-id.c.
399 (HFILES_NO_SRCDIR): Add build-id.h.
400 * build-id.c: New file, largely from elfread.c. Modified
401 most functions.
402 * build-id.h: New file.
403 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
404 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
405 Search for dwz file using build-id.
406 * elfread.c (build_id_bfd_get, build_id_verify)
407 (build_id_to_debug_filename, find_separate_debug_file): Remove.
408
409 2013-10-08 Joel Brobecker <brobecker@adacore.com>
410
411 * ada-lang.c (compare_names_with_case): Renamed from
412 compare_names, adding a new parameter "casing" and its handling.
413 New function documentation.
414 (compare_names): New function, implemented using
415 compare_names_with_case.
416
417 2013-10-08 Joel Brobecker <brobecker@adacore.com>
418
419 * ada-lang.c (ada_exception_sal): Remove advance declaration.
420
421 2013-10-07 Tom Tromey <tromey@redhat.com>
422
423 * objfiles.c (free_objfile_per_bfd_storage): Delete the
424 demangled_names_hash.
425 (free_objfile): Don't delete the demangled_names_hash.
426 * objfiles.h (struct objfile_per_bfd_storage)
427 <demangled_names_hash>: New field.
428 (struct objfile) <demangled_names_hash>: Move to
429 objfile_per_bfd_storage.
430 * symfile.c (reread_symbols): Don't delete the
431 demangled_names_hash.
432 * symtab.c (create_demangled_names_hash): Update.
433 (symbol_set_names): Update.
434
435 2013-10-07 Tom Tromey <tromey@redhat.com>
436
437 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
438 needs_relocations>: New fields.
439 (gdb_bfd_requires_relocations): New function.
440 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
441 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
442 the BFD needs relocations applied.
443
444 2013-10-07 Pedro Alves <palves@redhat.com>
445
446 PR breakpoints/11568
447 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
448 the thread list" instead of "gone".
449
450 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
451
452 * NEWS: Mention new convenience variable $_exitsignal.
453 * corelow.c (core_open): Reset exit convenience variables. Set
454 $_exitsignal to the uncaught signal which generated the corefile.
455 * infrun.c (handle_inferior_event): Reset exit convenience
456 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
457 (clear_exit_convenience_vars): New function.
458 * inferior.h (clear_exit_convenience_vars): New prototype.
459
460 2013-10-06 Yao Qi <yao@codesourcery.com>
461
462 * varobj.h: Add comments to enum varobj_languages.
463
464 2013-10-04 Doug Evans <dje@google.com>
465
466 Add support for DWP file format version 2.
467 * NEWS: Mention support for DWP file format version 2.
468 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
469 union of asection, containing_section. New fields virtual_offset
470 and is_virtual. Change type of readin filed from int to char.
471 (dwo_sections, dwo_file): Tweak comments.
472 (dwp_v2_section_ids): New enum.
473 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
474 str_offsets, types.
475 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
476 All uses updated.
477 (virtual_v2_dwo_sections): New struct.
478 (dwp_hash_table): New fields version, nr_columns. Change type of
479 section_pool field to a union.
480 (dwp_file): New field version.
481 (dwarf2_has_info): Check for virtual sections.
482 (get_containing_section): New function.
483 (get_section_bfd_owner, get_section_bfd_section): Call it.
484 (dwarf2_locate_sections): Update.
485 (dwarf2_section_empty_p): Update.
486 (dwarf2_read_section): Handle virtual sections.
487 (locate_dwz_sections): Update.
488 (create_dwp_hash_table): Document and handle V2 format.
489 (locate_v1_virtual_dwo_sections): Renamed from
490 locate_virtual_dwo_sections and update. All callers updated.
491 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
492 Delete arg htab. Rename arg section_index to unit_index.
493 All callers updated.
494 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
495 All uses updated.
496 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
497 (lookup_dwo_unit_in_dwp): Add V2 support.
498 (dwarf2_locate_dwo_sections): Update.
499 (dwarf2_locate_common_dwp_sections): Renamed from
500 dwarf2_locate_dwp_sections and update. All callers updated.
501 (dwarf2_locate_v2_dwp_sections): New function.
502 (open_and_init_dwp_file): Add V2 support.
503 (read_str_index): New locals str_section, str_offsets_section.
504
505 2013-10-04 Pedro Alves <palves@redhat.com>
506
507 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
508 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
509 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
510 describing comments with references to ptid.h.
511 * common/ptid.h: Remove intro description of constructors,
512 accessors and predicates.
513 (struct ptid): Reformat.
514 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
515 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
516 describing comments.
517
518 2013-10-04 Joel Brobecker <brobecker@adacore.com>
519
520 * aix-thread.c (sync_threadlists): Add missing ')' in call
521 to ptid_build.
522
523 2013-10-04 Joel Brobecker <brobecker@adacore.com>
524
525 * procfs.c (procfs_init_inferior): Fix typo causing the build
526 to fail.
527
528 2013-10-04 Joel Brobecker <brobecker@adacore.com>
529
530 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
531
532 2013-10-04 Joel Brobecker <brobecker@adacore.com>
533
534 * mi/mi-main.c (run_one_inferior): Add function description.
535 Make ARG a pointer to an integer whose value determines whether
536 we should "run" or "start" the program.
537 (mi_cmd_exec_run): Add handling of the "--start" option.
538 Reject all other command-line options.
539 * NEWS: Add entry for "-exec-run"'s new "--start" option.
540
541 2013-10-04 Yao Qi <yao@codesourcery.com>
542
543 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
544 (struct notif_client) <pending_event>: Moved
545 to struct remote_notif_state.
546 <id>: New field.
547 (struct remote_notif_state) <pending_event>: New field.
548 (notif_event_xfree): Declare.
549 * remote-notif.c (handle_notification): Adjust.
550 (notif_event_xfree): New function.
551 (do_notif_event_xfree): Call notif_event_xfree.
552 (remote_notif_state_xfree): Call notif_event_xfree to free
553 each element in field pending_event.
554 * remote.c (discard_pending_stop_replies): Remove declaration.
555 (discard_pending_stop_replies_in_queue): Declare.
556 (remote_close): Call discard_pending_stop_replies_in_queue
557 instead of discard_pending_stop_replies.
558 (remote_start_remote): Adjust.
559 (stop_reply_xfree): Call notif_event_xfree.
560 (notif_client_stop): Adjust initialization.
561 (remote_notif_remove_all): Rename it to ...
562 (remove_stop_reply_for_inferior): ... this. Update comments.
563 Don't check INF is NULL.
564 (discard_pending_stop_replies): Return early if notif_state is
565 NULL. Adjust. Don't check INF is NULL.
566 (remote_notif_get_pending_events): Adjust.
567 (discard_pending_stop_replies_in_queue): New function.
568 (remote_wait_ns): Likewise.
569
570 2013-10-04 Yao Qi <yao@codesourcery.com>
571
572 * remote-notif.c (DECLARE_QUEUE_P): Remove.
573 (notif_queue): Remove.
574 (remote_notif_process): Add one parameter 'notif_queue'.
575 Update comments. Callers update.
576 (remote_async_get_pending_events_token): Remove.
577 (remote_notif_register_async_event_handler): Remove.
578 (remote_notif_unregister_async_event_handler): Remove.
579 (handle_notification): Add parameter 'notif_queue'. Update
580 comments. Callers update.
581 (notif_xfree): Remove.
582 (remote_notif_state_allocate): New function.
583 (remote_notif_state_xfree): New function.
584 (_initialize_notif): Remove code to allocate queue.
585 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
586 (struct remote_notif_state): New.
587 (handle_notification): Update declaration.
588 (remote_notif_process): Likewise.
589 (remote_notif_register_async_event_handler): Remove.
590 (remote_notif_unregister_async_event_handler): Remove.
591 (remote_notif_state_allocate): Declare.
592 (remote_notif_state_xfree): Declare.
593 * remote.c (struct remote_state) <notif_state>: New field.
594 (remote_close): Don't call
595 remote_notif_unregister_async_event_handler. Call
596 remote_notif_state_xfree.
597 (remote_open_1): Don't call
598 remote_notif_register_async_event_handler. Call
599 remote_notif_state_allocate.
600
601 2013-10-04 Yao Qi <yao@codesourcery.com>
602
603 * varobj.c (create_child_with_value): Remove 'const' from the
604 type of parameter 'name'.
605 (varobj_add_child): Likewise.
606 (install_dynamic_child): Remove 'const' from the type of
607 parameter 'name'.
608 (varobj_add_child): Likewise.
609 (create_child_with_value): Likewise. Update comments. Don't
610 duplicate 'name'.
611 (update_dynamic_varobj_children): Duplicate 'name'
612 and pass it to install_dynamic_child.
613
614 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
615
616 * python/py-value.c (convert_value_from_python): Move PyInt_Check
617 conversion logic to occur after PyLong_Check. Comment on order
618 change significance.
619 * python/py-arch.c (archpy_disassemble): Comment on order of
620 conversion for integers and longs.
621
622 2013-10-03 Pedro Alves <palves@redhat.com>
623
624 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
625 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
626 functions. Always test for PTRACE_O_TRACESYSGOOD even if
627 PTRACE_O_TRACEFORK is not supported.
628 (linux_test_for_tracesysgood): New function.
629 (linux_test_for_tracefork): New function, factored out from
630 linux_check_ptrace_features, and also don't kill child_pid here.
631
632 2013-10-03 Tristan Gingold <gingold@adacore.com>
633
634 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
635 Remove verbose error reporting. Use detected state to
636 thread_set_state call.
637 (i386_darwin_dr_get): Fix return type. Remove verbose error
638 report.
639 Remove trailing spaces.
640
641 2013-10-02 Pedro Alves <palves@redhat.com>
642
643 * cp-valprint.c (cp_print_value_fields): Adjust calls to
644 val_print_optimized_out.
645 * jv-valprint.c (java_print_value_fields): Likewise.
646 * p-valprint.c (pascal_object_print_value_fields): Likewise.
647 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
648 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
649 new optimized out value.
650 * findvar.c (address_from_register): Likewise.
651 * frame.c (put_frame_register): Tweak error string to say the
652 register was not saved, rather than optimized out.
653 * infcmd.c (default_print_one_register_info): Adjust call to
654 val_print_optimized_out. Use value_of_register instead of
655 get_frame_register_value.
656 * mi/mi-main.c (output_register): Use value_of_register instead of
657 get_frame_register_value.
658 * valprint.c (valprint_check_validity): Likewise.
659 (val_print_optimized_out): New value parameter. If the value is
660 lval_register, print <not saved> instead.
661 (value_check_printable, val_print_scalar_formatted): Adjust calls
662 to val_print_optimized_out.
663 * valprint.h (val_print_optimized_out): New value parameter.
664 * value.c (struct value) <optimized_out>: Extend comment.
665 (error_value_optimized_out): New function.
666 (require_not_optimized_out): Use it. Use a different string for
667 lval_register values.
668 * value.h (error_value_optimized_out): New declaration.
669 * NEWS: Mention <not saved>.
670
671 2013-10-02 Joel Brobecker <brobecker@adacore.com>
672
673 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
674 strcmp to compare two symtab filenames.
675
676 2013-10-02 Joel Brobecker <brobecker@adacore.com>
677
678 * symtab.c (search_symbols_equal): Delete.
679 (sort_search_symbols_remove_dups): Replace call to
680 search_symbols_equal by call to compare_search_syms,
681 adjusting as necessary.
682
683 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
684
685 PR python/15579
686
687 * python/python.c: Document gdb.execute command in Python help.
688
689 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
690
691 * python/py-frame.c (frame_info_to_frame_object): Use
692 gdbpy_convert_exception. Clean up Python object on failure.
693
694 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
695
696 * python/lib/gdb/command/frame_filters.py
697 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
698 (ShowFrameFilterPriority.invoke): Ditto.
699
700 2013-10-01 Keith Seitz <keiths@redhat.com>
701
702 * linespec.c (struct ls_parser): Make 'saved_arg' const.
703 (parse_linespec): Make 'argptr' const.
704 Remove temporary cast of 'argptr' to const char **.
705 (decode_line_full): Pass const pointer to parse_linespec.
706 (decode_line_1): Likewise.
707 (decode_objc): Make local variable 'new_argptr' const.
708 (find_function_symbols): Remove temporary cast to char *
709 to find_imps.
710 * objc-lang.c (find_imps): Make argument 'method' const.
711 Return const.
712 * objc-lang.h (find_imps): Likewise.
713
714 2013-10-01 Keith Seitz <keiths@redhat.com>
715
716 * completer.c (skip_quoted_chars): Make all arguments const.
717 Return const.
718 (skip_quoted): Likewise.
719 * completer.h (skip_quoted_chars): Likewise.
720 (skip_quoted): Likewise.
721 * defs.h (skip_quoted): Remove duplicate declaration.
722 * jv-exp.y: Include completer.h.
723 (yylex): Remove unneccessary cast to char * fro skip_quoted.
724 * p-exp.y: Include completer.h.
725
726 2013-10-01 Keith Seitz <keiths@redhat.com>
727
728 * c-exp.y (parse_number): Make first argument const.
729 Make a copy of the input to manipulate.
730 (c_parse_escape): Make first argument const.
731 Make local variable 'tokptr' const.
732 (parse_string_or_char): Make first two arguments const.
733 (macro_original_text): Make const.
734 (lex_one_token): Make local variable 'tokstart' const.
735 Likewise for local variables named 'p'.
736 Cast away const for struct stoken (temporary).
737 * c-lang.h (c_parse_escpae): Make first argument const.
738 * cli/cli-cmds.c (echo_command): Make local variable 'p'
739 const.
740 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
741 var_string case.
742 * f-exp.y (parse_number): Make first argument const.
743 (match_string_literal): Make local variable 'tokstart'
744 const.
745 (yylex): Make local variable 'p' const.
746 Cast away const for struct stoken (temporary).
747 * go-exp.y (parse_number): Make first argument const.
748 (parse_string_or_char): Likewise.
749 Make local variable 'tokstart' const.
750 (lex_one_token): Likewise for numerous locals called 'p'.
751 Cast away const for struct stoken (temporary).
752 * jv-exp.y (parse_number): Make first argument const.
753 Make local variables 'tokstart' and 'tokptr' const.
754 Cast away const for call to skip_quoted (temporary).
755 (yylex): Make local variable 'p' const.
756 Cast away const for struct stoken (temporary).
757 * m2-exp.y (parse_number): Make local variable 'p' const.
758 (yylex): Likewise for 'tokstart'.
759 Cast away const for struct stoken (temporary).
760 Make local variable 'p' const.
761 * macroexp.c (get_character_constant): Pass a const string
762 to c_parse_escape.
763 (get_string_literal): Likewise.
764 (macro_expand_next): Make first argument const.
765 Cast away const for init_shared_buffer.
766 * macroexp.h (macro_expand_next): Make first argument const.
767 * p-exp.y (yylex): Make a local copy of 'lexptr'.
768 Pass a const string to c_parse_escape.
769 Make local variables 'p' and 'namestart' const.
770 * parse.c (lexptr): Make const.
771 (prev_lexptr): Likewise.
772 (find_template_name_end): Return const.
773 Make argument const, too.
774 (parse_exp_in_context): Make first argument const.
775 Remove the entire const_hack.
776 (parse_exp_in_context_1): Make first argument const.
777 * parser-defs.h (find_template_name_end): Return const.
778 Make argument const, too.
779 (lexptr): Make const.
780 (prev_lexptr): Likewise.
781 * utils.c (parse_escape): Make second argument const.
782 * utils.h (parse_escape): Likewise.
783
784 2013-10-01 Keith Seitz <keiths@redhat.com>
785
786 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
787 is now const.
788 (block_lookup): Make 'raw_name' and 'name' const.
789 * ada-lex.l (processString): Update for struct stoken.ptr.
790 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
791 (operator_stoken): Likewise.
792 (lex_one_token): Remove temporary cast to char * for
793 'yylval.sval.ptr'.
794 * f-exp.y (yylex): Likewise.
795 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
796 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
797 * go-exp.y (lex_one_token): Remove temporary cast to char * for
798 'yylval.sval.ptr'.
799 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
800 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
801 * linespec.c (struct ls_parser): Make 'stream' const.
802 (find_parameter_list_end): Make argument 'input' and local
803 variable 'p' const.
804 (linespec_lexer_lex_string): Make local variables 'start' and
805 'p' const.
806 Use skip_spaces_const instead of skip_spaces.
807 (linespec_lexer_peek_token): Make local variable 'saved_stream'
808 const.
809 (parse_linespec): Temporarily cast 'argptr' to const for
810 'parser->lexer.stream'.
811 * m2-exp.y (yylex): Remove temporary cast to char * for
812 'yylval.sval.ptr'.
813 * objc-lang.c (add_msglist): Make local variable 'p' const.
814 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
815 (exp : STRING): Make 'sp' const.
816 (parse_number): Make argument 'p' const.
817 * parser-defs.h (struct stoken): Make 'ptr' const.
818
819 2013-10-01 Doug Evans <dje@google.com>
820
821 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
822
823 2013-10-01 Yao Qi <yao@codesourcery.com>
824
825 * varobj.c (c_value_of_root): Remove declaration.
826 (cplus_value_of_root, java_value_of_root): Likewise.
827 (ada_value_of_root): Likewise.
828 (struct language_specific) <value_of_root>: Remove.
829 (languages): Update initialization.
830 (check_scope): Move earlier.
831 (c_value_of_root): Move earlier and rename to ...
832 (value_of_root_1): ... this.
833 (value_of_root): Caller update.
834 (cplus_value_of_root, java_value_of_root): Remove.
835 (ada_value_of_root): Remove.
836
837 2013-10-01 Yao Qi <yao@codesourcery.com>
838
839 * varobj.c (varobj_format_string): Remove "unknown".
840 (languages): Remove the first element.
841 * varobj.h (enum varobj_languages): Remove vlang_c.
842
843 2013-10-01 Yao Qi <yao@codesourcery.com>
844
845 * varobj.c (struct language_specific) <language>: Remove.
846 (languages): Update the initialization.
847
848 2013-10-01 Yao Qi <yao@codesourcery.com>
849
850 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
851 "solib-target.h". Include "windows-tdep.h".
852 (arm_wince_init_abi): Call windows_init_abi. Remove call to
853 set_solib_ops and set_gdbarch_has_dos_based_file_system.
854 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
855 windows-tdep.o to gdb_target_obs.
856
857 2013-10-01 Yao Qi <yao@codesourcery.com>
858
859 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
860 "solib-target.h".
861 (amd64_windows_init_abi): Don't call set_solib_ops and
862 set_gdbarch_iterate_over_objfiles_in_search_order. Call
863 windows_init_abi instead.
864 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
865 "solib-target.h".
866 (i386_cygwin_init_abi): Don't call set_solib_ops,
867 set_gdbarch_has_dos_based_file_system and
868 set_gdbarch_iterate_over_objfiles_in_search_order. Call
869 windows_init_abi instead.
870 * windows-tdep.c: Include "solib.h" and "solib-target.h".
871 (windows_init_abi): New function.
872 (windows_iterate_over_objfiles_in_search_order): Make it
873 static.
874 * windows-tdep.h (windows_init_abi): Declare.
875 (windows_iterate_over_objfiles_in_search_order): Remove
876 declaration.
877
878 2013-10-01 Jerome Guitton <guitton@adacore.com>
879
880 Checked in by Joel Brobecker <brobecker@adacore.com>
881 * system-gdbinit/elinos.py (get_elinos_environment): Return an
882 incomplete dictionnary instead of None in case of missing
883 environment variables.
884 (elinos_init): in case of an incomplete environment, best
885 effort to load system libraries instead of abort.
886
887 2013-10-01 Joel Brobecker <brobecker@adacore.com>
888
889 * ada-lang.c (ada_has_this_exception_support): Ignore
890 mst_solib_trampoline minimal symbols.
891
892 2013-09-30 Tristan Gingold <gingold@adacore.com>
893
894 * i386-darwin-nat.c (darwin_complete_target): Install methods for
895 hardware watchpoint.
896 (i386_darwin_dr_set): Support 32 and 64 bit states.
897 (i386_darwin_dr_get): Likewise.
898 (i386_darwin_dr_set_control): Make static.
899 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
900 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
901
902 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
903
904 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
905 Replace TIDGET with ptid_get_lwp.
906 Replace GET_LWP with ptid_get_lwp.
907 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
908 Replace BUILD_THREAD with ptid_build.
909 Replace BUILD_LWP with ptid_build.
910 Replace PIDGET with ptid_get_pid.
911 Replace TIDGET with ptid_get_lwp.
912 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
913 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
914 Replace TIDGET with ptid_get_lwp.
915 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
916 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
917 Replace TIDGET with ptid_get_lwp.
918 Replace GET_LWP with ptid_get_lwp.
919 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
920 * auxv.c: Likewise.
921 * breakpoint.c: Likewise.
922 * common/ptid.c (ptid_is_pid): Condense check for
923 null_ptid and minus_one_ptid.
924 (ptid_lwp_p): New function.
925 (ptid_tid_p): New function.
926 * common/ptid.h: Update comments for accessors.
927 (ptid_lwp_p): New prototype.
928 (ptid_tid_p): New prototype.
929 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
930 * gcore.c: Replace PIDGET with ptid_get_pid.
931 * gdbthread.h: Likewise.
932 * gnu-nat.c: Likewise.
933 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
934 Replace TIDGET with ptid_get_lwp.
935 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
936 * hppanbsd-nat.c: Likewise.
937 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
938 Replace TIDGET with ptid_get_lwp.
939 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
940 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
941 * infcmd.c: Likewise.
942 * inferior.h: Likewise.
943 * inflow.c: Likewise.
944 * infrun.c: Likewise.
945 * linux-fork.c: Likewise.
946 * linux-nat.c: Replace PIDGET with ptid_get_pid.
947 Replace GET_PID with ptid_get_pid.
948 Replace is_lwp with ptid_lwp_p.
949 Replace GET_LWP with ptid_get_lwp.
950 Replace BUILD_LWP with ptid_build.
951
952 2013-09-28 Mike Frysinger <vapier@gentoo.org>
953
954 * common/linux-btrace.c: Move sys/syscall.h out of the
955 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
956 Also check for SYS_perf_event_open before attempting to buid.
957
958 2013-09-27 Doug Evans <dje@google.com>
959
960 * dwarf2read.c (dwarf2_section_info): Add comment.
961 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
962 All uses updated.
963 (dwarf2_section_empty_p): Rename arg from "info" to "section".
964 (dwarf2_read_section): Delete unused local "header". Add section
965 name to error message.
966 (create_dwo_in_dwp): Tweak comment.
967 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
968
969 * dwarf2read.c (die_reader_specs): Tweak comment.
970 (get_section_bfd_owner, get_section_bfd_section): New functions.
971 (get_section_name, get_section_file_name): New functions.
972 (get_section_id, get_section_flags): New functions.
973 (*): Use new functions to access section fields.
974
975 * dwarf2read.c (struct dwo_file): Add/tweak comments.
976 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
977 arg "htab". All callers updated.
978 (create_debug_types_hash_table): Remove redundant copy of
979 abbrev_section.
980 (create_dwo_in_dwp): Tweak comments.
981 (read_str_index): Tweak comment. Record dwarf form name in static
982 local.
983
984 2013-09-27 Pedro Alves <palves@redhat.com>
985
986 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
987 (remote_filename_p): Add comment.
988 * remote.c (remote_filename_p): Adjust to use
989 REMOTE_SYSROOT_PREFIX.
990 * solib.c (solib_find): When deciding whether we need to add a
991 directory separator, check whether the sysroot is "remote:"
992 instead of checking whether the patch has a drive spec. Add
993 comments.
994
995 2013-09-27 Pedro Alves <palves@redhat.com>
996
997 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
998 Delete fields.
999 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1000 directly.
1001
1002 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1003
1004 Fix set debug frame output.
1005 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1006 SENTINEL_FRAME entry lower to match enum frame_type order.
1007
1008 2013-09-26 Pierre Muller <muller@sourceware.org>
1009
1010 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1011 AMD64_R15_REGNUM when a register index is expected.
1012 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1013 Substitute in array.
1014 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1015 (amd64_push_arguments): Substitute in integer_regnum array.
1016
1017 2013-09-25 Doug Evans <dje@google.com>
1018
1019 * objfiles.c (allocate_objfile): Move comment to better place.
1020
1021 New option "set debug symfile on".
1022 * NEWS: Mention "set debug symfile".
1023 * Makefile.in (SFILES): Add symfile-debug.c.
1024 (COMMON_OBS): Add symfile-debug.o.
1025 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1026 objfile's symbol functions.
1027 * objfiles.h (objfile_set_sym_fns): Declare.
1028 * symfile-debug.c: New file.
1029 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1030 objfile's symbol functions.
1031 (reread_symbols): Ditto.
1032
1033 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1034 All uses updated.
1035 (add_symtab_fns): Update prototype.
1036 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1037 (registered_sym_fns): ... this.
1038 (symtab_fns): Update.
1039 (add_symtab_fns): New arg "flavour". All callers updated.
1040 (find_sym_fns): Rewrite to use new sym_fns registry.
1041
1042 * symfile.h (struct sym_fns): Add "objfile" argument to
1043 sym_read_linetable. All uses updated.
1044
1045 * symtab.c (domain_name, search_domain_name): New functions.
1046 * symtab.h (domain_name, search_domain_name): Declare.
1047
1048 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1049 map_matching_symbols so objfile is first. All uses updated.
1050 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1051 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1052
1053 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1054
1055 PR shlibs/8882
1056 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1057 link map entries.
1058
1059 2013-09-24 Doug Evans <dje@google.com>
1060
1061 * objfiles.c (free_objfile): Move comment.
1062
1063 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1064
1065 * ada-exp.y (string_to_operator): Delete.
1066 (dummy_string_to_ada_operator): Delete.
1067
1068 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1069
1070 Revert:
1071 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1072 amd64-tdep.c.
1073 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1074 call_dummy_integer_regs, and classify.
1075 * amd64-tdep.h (amd64_classify): Add declaration.
1076 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1077 (amd64_reg_class): Delete, moved to i386-tdep.h.
1078 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1079 Replace call to amd64_classify by call to tdep->classify.
1080 (amd64_push_arguments): Get the list of registers to use for
1081 passing integer parameters from the gdbarch tdep structure,
1082 rather than using a hardcoded one. Replace calls to amd64_classify
1083 by calls to tdep->classify.
1084 (amd64_push_dummy_call): Get the register number used for
1085 the "hidden" argument from tdep->call_dummy_integer_regs.
1086 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1087 and tdep->call_dummy_integer_regs. Set tdep->classify.
1088
1089 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1090
1091 Revert:
1092 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1093 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1094 where tdep->memory_args_by_pointer is non-zero.
1095
1096 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1097
1098 Revert:
1099 * i386-tdep.h (struct gdbarch_tdep): Add new field
1100 integer_param_regs_saved_in_caller_frame.
1101 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1102 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1103
1104 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1105
1106 * amd64-windows-tdep.c: #include "value.h"
1107 (amd64_windows_classify): Delete.
1108 (amd64_windows_passed_by_integer_register)
1109 (amd64_windows_passed_by_xmm_register)
1110 (amd64_windows_passed_by_pointer)
1111 (amd64_windows_adjust_args_passed_by_pointer)
1112 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1113 (amd64_windows_push_dummy_call): New functions.
1114 (amd64_windows_init_abi): Remove setting of
1115 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1116 tdep->classify, tdep->memory_args_by_pointer and
1117 tdep->integer_param_regs_saved_in_caller_frame.
1118 Add call to set_gdbarch_push_dummy_call.
1119
1120 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1121
1122 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1123 objfile->original_name.
1124
1125 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1126
1127 Pass down original filename for objfile.
1128 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1129 * elfread.c (elf_symfile_read): Likewise.
1130 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1131 longer set ORIGINAL_NAME.
1132 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1133 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1134 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1135 symbol_file_add_from_bfd call.
1136 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1137 (macho_check_dsym): Add parameter filenamep. Change function comment.
1138 Set *filenamep.
1139 (macho_symfile_read): New variable dsym_filename. Update
1140 macho_check_dsym call. Use it for symbol_file_add_separate.
1141 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1142 it. Use it for objfile->original_name.
1143 (objfile_name): Return OBFD's filename, if available.
1144 * objfiles.h (allocate_objfile): Add new parameter name.
1145 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1146 * symfile-mem.c (symbol_file_add_from_memory): Update
1147 symbol_file_add_from_bfd call.
1148 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1149 comment for it.
1150 (symbol_file_add_with_addrs): New parameter name, add function comment
1151 for it. Remove variable name. Update allocate_objfile call.
1152 (symbol_file_add_separate): New parameter name, add function comment
1153 for it. Update symbol_file_add_with_addrs call.
1154 (symbol_file_add_from_bfd): New parameter name. Update
1155 symbol_file_add_with_addrs call.
1156 (symbol_file_add): Update symbol_file_add_from_bfd call.
1157 (reread_symbols): New variable original_name. Save
1158 objfile->original_name by it.
1159 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1160 second parameter.
1161
1162 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1163
1164 Code cleanup: Add objfile_name accessor function.
1165 * ada-lang.c (is_known_support_routine): Use objfile_name.
1166 * auto-load.c (source_gdb_script_for_objfile)
1167 (auto_load_objfile_script): Likewise.
1168 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1169 * dbxread.c (dbx_symfile_read): Likewise.
1170 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1171 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1172 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1173 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1174 (lookup_dwp_signatured_type, lookup_dwo_unit)
1175 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1176 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1177 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1178 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1179 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1180 (read_subrange_type, load_partial_dies, read_partial_die)
1181 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1182 (die_containing_type, build_error_marker_type, lookup_die_type)
1183 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1184 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1185 (get_DW_AT_signature_type, write_psymtabs_to_index)
1186 (save_gdb_index_command): Likewise.
1187 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1188 Likewise.
1189 * expprint.c (dump_subexp_body_standard): Likewise.
1190 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1191 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1192 original_name.
1193 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1194 obj_name, use objfile_name for it, use the variable.
1195 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1196 Use objfile_name.
1197 * machoread.c (macho_symtab_read, macho_check_dsym)
1198 (macho_symfile_relocate): Likewise.
1199 * maint.c (maintenance_translate_address): Likewise.
1200 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1201 * minsyms.c (install_minimal_symbols): Likewise.
1202 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1203 original_name.
1204 (filter_overlapping_sections): Use objfile_name.
1205 (objfile_name): New function.
1206 * objfiles.h (struct objfile): Rename field name to original_name.
1207 (objfile_name): New prototype.
1208 * printcmd.c (sym_info, address_info): Use objfile_name.
1209 * probe.c (parse_probes, collect_probes, compare_probes)
1210 (info_probes_for_ops): Likewise.
1211 * progspace.c (clone_program_space): Likewise.
1212 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1213 (maintenance_info_psymtabs): Likewise.
1214 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1215 (source_section_scripts): Likewise.
1216 * python/py-objfile.c (objfpy_get_filename): Likewise.
1217 * python/py-progspace.c (pspy_get_filename): Likewise.
1218 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1219 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1220 * solib.c (solib_read_symbols): Likewise.
1221 * stabsread.c (scan_file_globals): Likewise.
1222 * stap-probe.c (handle_stap_probe): Likewise.
1223 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1224 (find_separate_debug_file_by_debuglink): Likewise.
1225 (reread_symbols): Likewise. Use the objfile field name renamed to
1226 original_name.
1227 (allocate_symtab): Use objfile_name.
1228 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1229 (dump_objfile, dump_msymbols, dump_symtab_1)
1230 (maintenance_print_msymbols, maintenance_print_objfiles)
1231 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1232 * target.c (target_translate_tls_address, target_info): Likewise.
1233 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1234 objfile_name.
1235
1236 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1237
1238 Code cleanup.
1239 * probe.c (parse_probes): Rename variable objfile_name to
1240 objfile_namestr.
1241
1242 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1243
1244 Remove solib-sunos.c.
1245 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1246 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1247 * objfiles.c (rt_common_objfile): Remove.
1248 (free_objfile): Remove rt_common_objfile comparison.
1249 * objfiles.h (rt_common_objfile): Remove.
1250 * solib-sunos.c: Remove.
1251 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1252
1253 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1254
1255 Remove a.out NetBSD and OpenBSD hosts.
1256 * NEWS (Removed native configurations): New.
1257 * config/arm/nbsdaout.mh: Remove.
1258 * config/i386/nbsdaout.mh: Remove.
1259 * config/i386/obsdaout.mh: Remove.
1260 * config/m68k/nbsdaout.mh: Remove.
1261 * config/sparc/nbsdaout.mh: Remove.
1262 * config/vax/nbsdaout.mh: Remove.
1263 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1264 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1265 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1266 error.
1267 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1268 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1269 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1270
1271 2013-09-23 Tom Tromey <tromey@redhat.com>
1272
1273 * linespec.c (struct minsym_and_objfile): Remove.
1274 (minsym_and_objfile_d): Remove.
1275 (struct linespec, struct collect_info, linespec_parse_basic)
1276 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1277 (compare_msymbols, find_method, find_function_symbols)
1278 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1279 (add_minsym, search_minsyms_for_name): Update.
1280
1281 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1282
1283 * regcache.c: Add include of valprint.h.
1284 (dump_endian_bytes): Delete.
1285 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1286
1287 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1288
1289 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1290
1291 2013-09-19 Pedro Alves <palves@redhat.com>
1292
1293 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1294 breakpoints.
1295
1296 2013-09-19 Pedro Alves <palves@redhat.com>
1297 Thomas Schwinge <thomas@codesourcery.com>
1298 Yue Lu <hacklu.newborn@gmail.com>
1299
1300 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1301 Take a gdb_byte pointer instead of a char pointer.
1302
1303 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1304 gnu_xfer_partial helper.
1305 (gnu_xfer_partial): New function.
1306 (gnu_target): Don't install a deprecated_xfer_memory hook.
1307 Install a to_xfer_partial hook.
1308
1309 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1310
1311 Constification.
1312 * main.c (captured_main): Replace catch_command_errors by
1313 catch_command_errors_const. Twice.
1314 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1315 (symbol_file_add): Make name parameter const.
1316 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1317 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1318 variable name. Change their usage accordingly.
1319 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1320 const.
1321 (symbol_file_add_main): Make args parameter const.
1322
1323 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1324 Ulrich Weigand <uweigand@de.ibm.com>
1325
1326 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1327 of c_value member.
1328 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1329
1330 2013-09-18 Pedro Alves <palves@redhat.com>
1331 Yue Lu <hacklu.newborn@gmail.com>
1332
1333 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1334 (gnu_create_inferior)
1335 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1336 (set_sig_thread_cmd): Use the lwpid field of ptids to
1337 store/extract thread ids instead of the tid field.
1338 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1339
1340 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1341
1342 * infcmd.c (default_print_one_register_info): Add detection of
1343 optimized out values.
1344 (default_print_registers_info): Switch to using
1345 get_frame_register_value.
1346
1347 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1348
1349 * infrun.c (handle_inferior_event): Check if we know the
1350 function start address before setting a resume breakpoint.
1351
1352 2013-09-18 Pedro Alves <palves@redhat.com>
1353
1354 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1355 minus_one_ptid instead of looking at the ptid's tid field and
1356 comparing that to -1.
1357
1358 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1359
1360 * main.h (get_gdb_program_name): Remove extra whitespace.
1361
1362 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1363
1364 * main.h (get_gdb_program_name): Add declaration.
1365 * main.c (get_gdb_program_name): Add definition.
1366
1367 2013-09-17 Doug Evans <dje@google.com>
1368
1369 * dwarf2read.c: Move definitions of complaint functions to after
1370 forward declarations of local functions.
1371
1372 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1373 Pedro Alves <palves@redhat.com>
1374
1375 PR gdb/11568
1376 * breakpoint.c (remove_threaded_breakpoints): New function.
1377 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1378 as thread_exit observer.
1379
1380 2013-09-17 Pedro Alves <palves@redhat.com>
1381
1382 PR gdb/15911
1383 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1384 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1385 * corelow.c (core_open):
1386 * frame.h (print_stack_frame, print_frame_info): New
1387 'set_current_sal' parameter.
1388 * infcmd.c (finish_command, kill_command): Adjust call to
1389 print_stack_frame.
1390 * inferior.c (inferior_command): Likewise.
1391 * infrun.c (normal_stop): Likewise.
1392 * linux-fork.c (linux_fork_context): Likewise.
1393 * record-full.c (record_full_goto_entry, record_full_restore):
1394 Likewise.
1395 * remote-mips.c (common_open): Likewise.
1396 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1397 Use it.
1398 (print_frame_info): New 'set_current_sal' parameter. Set the last
1399 displayed sal depending on the new paremeter instead of looking at
1400 print_what.
1401 (backtrace_command_1, select_and_print_frame, frame_command)
1402 (current_frame_command, up_command, down_command): Adjust call to
1403 print_stack_frame.
1404 * thread.c (print_thread_info, restore_selected_frame)
1405 (do_captured_thread_select): Adjust call to print_stack_frame.
1406 * tracepoint.c (tfind_1): Likewise.
1407 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1408 (mi_cmd_stack_info_frame): Likewise.
1409 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1410 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1411
1412 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1413
1414 * value.c (isvoid_internal_fn): Replace "parameter" with
1415 "argument".
1416
1417 2013-09-16 Stan Shebs <stan@codesourcery.com>
1418
1419 * README: Update references to writing code for GDB.
1420 * configure.ac (build_warnings): Remove obsolete comment.
1421 * configure: Regenerate.
1422 * gdbarch.sh: Remove references to gdbint.texinfo.
1423 * gdbarch.h: Regenerate.
1424 * gdbtypes.c (objfile_type): Remove comments referencing internals
1425 manual and D10V.
1426
1427 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1428
1429 * NEWS: Mention new convenience function $_isvoid.
1430 * value.c (isvoid_internal_fn): New function.
1431 (_initialize_values): Add new convenience function $_isvoid.
1432
1433 2013-09-16 Pierre Muller <muller@sourceware.org>
1434
1435 * arm-linux-tdep.c: Add "elf/common.h" header.
1436 Remove AT_HWCAP macro definintion as it is provided in
1437 added include file.
1438 * s390-tdep.c: Remove system header <elf.h>
1439 Add "elf/common.h" header for AT_HWCAP definition.
1440 (s390_core_read_description): Use correct CORE_ADDR
1441 for hwcap local variable used as third parameter
1442 of function target_auxv_search.
1443
1444 2013-09-14 Pierre Muller <muller@sourceware.org>
1445 Tom Tromey <tromey@redhat.com>
1446 Pedro Alves <palves@redhat.com>
1447
1448 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1449 mode if operating system doesn't know O_CLOEXEC.
1450
1451 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1452
1453 Code cleanup.
1454 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1455 inner block.
1456
1457 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1458
1459 * NEWS: Mention TDB support.
1460 * features/s390-tdb.xml: New file.
1461 * features/s390-te-linux64.xml: New file.
1462 * features/s390x-te-linux64.xml: New file.
1463 * features/Makefile (WHICH): Add new tdescs above.
1464 (s390-te-linux64-expedite): Set.
1465 (s390x-te-linux64-expedite): Set.
1466 * features/s390-te-linux64.c: New file (generated).
1467 * features/s390x-te-linux64.c: New file (generated).
1468 * regformats/s390-te-linux64.dat: New file (generated).
1469 * regformats/s390x-te-linux64.dat: New file (generated).
1470 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1471 (HWCAP_S390_TE): Likewise.
1472 (S390_TDB_DWORD0_REGNUM): Likewise.
1473 (S390_TDB_DWORD0_REGNUM): Likewise.
1474 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1475 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1476 (S390_TDB_ATIA_REGNUM): Likewise.
1477 (S390_TDB_R0_REGNUM): Likewise.
1478 (S390_TDB_R1_REGNUM): Likewise.
1479 (S390_TDB_R2_REGNUM): Likewise.
1480 (S390_TDB_R3_REGNUM): Likewise.
1481 (S390_TDB_R4_REGNUM): Likewise.
1482 (S390_TDB_R5_REGNUM): Likewise.
1483 (S390_TDB_R6_REGNUM): Likewise.
1484 (S390_TDB_R7_REGNUM): Likewise.
1485 (S390_TDB_R8_REGNUM): Likewise.
1486 (S390_TDB_R9_REGNUM): Likewise.
1487 (S390_TDB_R10_REGNUM): Likewise.
1488 (S390_TDB_R11_REGNUM): Likewise.
1489 (S390_TDB_R12_REGNUM): Likewise.
1490 (S390_TDB_R13_REGNUM): Likewise.
1491 (S390_TDB_R14_REGNUM): Likewise.
1492 (S390_TDB_R15_REGNUM): Likewise.
1493 (S390_NUM_REGS): Increase.
1494 (S390_IS_TDBREGSET_REGNUM): New macro.
1495 (s390_regmap_tdb): Declare.
1496 (s390_sizeof_tdbregset): Define.
1497 (tdesc_s390_te_linux64): Declare.
1498 (tdesc_s390x_te_linux64): Likewise.
1499 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1500 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1501 (s390_regmap_tdb): New regmap.
1502 (s390_supply_tdb_regset): New function.
1503 (s390_tdb_regset): New regset.
1504 (s390_linux64v2_regset_sections): Add TDB regset to list.
1505 (s390x_linux64v2_regset_sections): Likewise.
1506 (s390_regset_from_core_section): Recognize TDB core note section.
1507 (s390_core_read_description): If HWCAP indicates TE support,
1508 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1509 (s390_gdbarch_init): Handle TDB regset.
1510 (_initialize_s390_tdep): Initialize new tdescs.
1511 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1512 (have_regset_tdb): New variable.
1513 (s390_native_supply): Support register invalidation.
1514 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1515 (check_regset): Treat ENODATA as "regset exists".
1516 (s390_linux_fetch_inferior_registers): Add TDB.
1517 (s390_read_description): Check for TDB existence and select
1518 appropriate tdesc.
1519 * gdbserver/Makefile.in (clean): Add removal of new makefile
1520 targets.
1521 (s390-te-linux64.c): New makefile target.
1522 (s390x-te-linux64.c): Likewise.
1523 * gdbserver/configure.srv (srv_regobj): Append new objects
1524 s390-te-linux64.o and s390x-te-linux64.o.
1525 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1526 s390x-te-linux64.xml, and s390-tdb.xml.
1527 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1528 declaration.
1529 (tdesc_s390_te_linux64): Likewise.
1530 (init_registers_s390x_te_linux64): Likewise.
1531 (tdesc_s390x_te_linux64): Likewise.
1532 (s390_check_regset): Treat ENODATA as "regset exists".
1533 (s390_arch_setup): Add TDB regset support.
1534 (initialize_low_arch): Initialize registers for new tdescs.
1535
1536 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1537
1538 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1539 (S390_IS_FPREGSET_REGNUM): New macro.
1540 * s390-tdep.c (s390_dwarf_regmap): Make const.
1541 (regnum_is_gpr_full): New function for replacing repeated code.
1542 (s390_pseudo_register_name): Use it.
1543 (s390_pseudo_register_type): Likewise.
1544 (s390_pseudo_register_read): Likewise.
1545 (s390_pseudo_register_write): Likewise.
1546 (s390_unwind_pseudo_register): Likewise.
1547 (s390_regmap_gregset): New format for regmap.
1548 (s390x_regmap_gregset): Likewise.
1549 (s390_regmap_fpregset): Likewise.
1550 (s390_regmap_upper): Likewise.
1551 (s390_regmap_last_break): Likewise.
1552 (s390_regmap_system_call): Likewise.
1553 (s390_supply_regset): Adjust to new regmap format.
1554 (s390_collect_regset): Likewise.
1555 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1556 (s390_native_collect): Likewise.
1557 (supply_gregset): Likewise.
1558 (fill_gregset): Likewise.
1559 (supply_fpregset): Likewise.
1560 (fill_fpregset): Likewise.
1561 (fetch_regset): Likewise.
1562 (store_regset): Likewise.
1563 (s390_linux_fetch_inferior_registers): Likewise.
1564 (s390_linux_fetch_inferior_registers): Likewise.
1565
1566 2013-09-12 Andrew Pinski <apinski@cavium.com>
1567
1568 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1569
1570 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1571
1572 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1573
1574 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1575
1576 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1577
1578 2013-09-06 Pedro Alves <palves@redhat.com>
1579
1580 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1581 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1582 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1583 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1584 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1585 gdb_stdlog.
1586
1587 2013-09-06 Pedro Alves <palves@redhat.com>
1588
1589 * remote-sim.c (dump_mem): Constify buf parameter.
1590 gdbsim_xfer_inferior_memory): Rename to ...
1591 (gdbsim_xfer_memory): ... this. Adjust interface as
1592 target_xfer_partial helper.
1593 (gdbsim_xfer_partial): New function.
1594 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1595 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1596
1597 2013-09-06 Pedro Alves <palves@redhat.com>
1598
1599 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1600 host_address_to_string, and send debug output to gdb_stdlog.
1601
1602 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1603
1604 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1605 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1606 gdb_target_obs for cris target.
1607 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1608 (cris_gdbarch_init): Move calls to
1609 set_gdbarch_fetch_tls_load_module_address and
1610 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1611 Add call to gdbarch_init_osabi.
1612 * cris-linux-tdep.c: New file.
1613 * cris-tdep.h: New file.
1614
1615 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1616
1617 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1618 to deprecated_init_ui_hook.
1619
1620 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1621
1622 * cli/cli-interp.c (_initialize_cli_interp): Add a
1623 command_loop_proc to interp_procs.
1624 * event-top.c (cli_command_loop): Change signature to match
1625 interp_command_loop_ftype.
1626 * event-top.h (cli_command_loop): Same.
1627 * interps.c (interp_new): Require every interpreter to have a
1628 command_loop_proc.
1629 (current_interp_command_loop): Just call the command_loop_proc on
1630 the current interpreter.
1631 * tui/tui-interp.c (_initialize_tui_interp): Add a
1632 command_loop_proc to interp_procs.
1633
1634 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1635
1636 * cris-tdep.c (cris_gdbarch_init): Add call to
1637 get_gdbarch_fetch_tls_load_module_address.
1638
1639 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1640
1641 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1642 (cris_elf_gregset_t): Rename from elf_gregset_t.
1643 (crisv32_elf_gregset_t): Adjust.
1644 (cris_supply_gregset, fetch_core_registers): Adjust.
1645
1646 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1647
1648 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1649
1650 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1651
1652 * defs.h (deprecated_command_loop_hook): Remove, including
1653 references in comments.
1654 * interps.c (current_interp_command_loop): No longer use
1655 deprecated_command_loop_hook.
1656 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1657 setup.
1658 * top.c (deprecated_command_loop_hook): Remove.
1659
1660 2013-09-05 Pedro Alves <palves@redhat.com>
1661
1662 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1663 local is now int instead of ULONGEST. Print it with %d
1664 instead of paddress.
1665
1666 2013-09-05 Tristan Gingold <gingold@adacore.com>
1667
1668 * MAINTAINERS: Remove avr maintainership.
1669
1670 2013-09-05 Pedro Alves <palves@redhat.com>
1671
1672 * findvar.c (value_of_register): Rework in terms of
1673 value_of_register_lazy.
1674
1675 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1676
1677 * symfile.c (add_symbol_file_command): Remove trailing
1678 whitespaces and blank line after comment.
1679
1680 2013-09-05 Pedro Alves <palves@redhat.com>
1681
1682 * tui/tui-regs.c (tui_register_format): Don't look at the
1683 register's name here. Return string representing register
1684 value instead of storing it in the data element.
1685 (tui_get_register): Compare register string representations
1686 instead of register value states and contents.
1687
1688 2013-09-05 Pedro Alves <palves@redhat.com>
1689
1690 PR tui/15933
1691 * tui/tui-regs.c (tui_show_registers): Show registers of the
1692 selected frame, not the current frame.
1693
1694 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1695
1696 * MAINTAINERS (Write After Approval): Add myself to the list.
1697
1698 2013-09-04 Doug Evans <dje@google.com>
1699
1700 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1701 (queue_and_load_dwo_tu): New function.
1702 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1703 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1704 Make dependent_cu optional.
1705 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1706 and an older .gdb_index is in use, queue and load all its TUs too.
1707
1708 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1709
1710 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1711 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1712 variable search_flags.
1713 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1714 (OPF_RETURN_REALPATH): ... here.
1715 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1716 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1717 call. Twice.
1718 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1719 openp call.
1720 * solib.c (solib_find): Likewise. Four times.
1721 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1722 in the function comment and for the realpath_fptr variable.
1723 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1724 (find_and_open_source): Likewise. Twice.
1725 * symfile.c (symfile_bfd_open): Likewise, also twice.
1726
1727 2013-09-04 Doug Evans <dje@google.com>
1728
1729 * progspace.c (save_current_space_and_thread): Remove unnecessary
1730 call to save_current_inferior.
1731
1732 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1733
1734 * sh64-tdep.c (sh64_do_register): Return after printing message
1735 about unavailable register contents.
1736
1737 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1738 Pedro Alves <palves@redhat.com>
1739
1740 * symfile.c (add_symbol_file_command): Error out on unknown
1741 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1742 options and collapse into single conditional branch.
1743
1744 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1745
1746 * inf-child.c (inf_child_follow_fork): New parameter
1747 detach_fork.
1748 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1749 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1750 * inferior.h (detach_fork): Remove.
1751 * infrun.c (detach_fork): Adjust comment and make it
1752 static.
1753 (follow_fork): Pass detach_fork parameter to
1754 target_follow_fork.
1755 * linux-nat.c (linux_child_follow_fork): New parameter
1756 detach_fork.
1757 * target.c (target_follow_fork): New parameter detach_fork.
1758 Pass detach_fork as parameter and print its value.
1759 * target.h (struct target_ops) <to_follow_fork>: New int
1760 parameter.
1761 (target_follow_fork): New parameter detach_fork.
1762
1763 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1764
1765 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1766 Replace sec->bfd by sec->the_bfd_section->owner.
1767
1768 2013-09-03 Yao Qi <yao@codesourcery.com>
1769
1770 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1771 from linux_has_shared_address_space.
1772 (linux_has_shared_address_space): Call linux_is_uclinux.
1773 * linux-tdep.h (linux_is_uclinux): Declare.
1774 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1775 linux_is_uclinux.
1776
1777 2013-09-03 Yao Qi <yao@codesourcery.com>
1778
1779 * config/djgpp/fnchange.lst: Remove entry of
1780 i386-interix-nat.c and i386-interix-tdep.c.
1781 * configure.ac: Remove '*-*-interix*'.
1782 * configure: Re-generated.
1783 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1784 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1785 obsolete comments.
1786 * osabi.c (gdb_osabi_names): Remove "Interix".
1787
1788 2013-09-03 Yao Qi <yao@codesourcery.com>
1789
1790 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1791
1792 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1793
1794 * record.h (record_print_flag) <record_print_src_line,
1795 record_print_insn_range>: Rename into ...
1796 (record_print_flag) <record_print_src_line,
1797 record_print_insn_range>: ... this. Update all users.
1798
1799 2013-09-02 Pierre Muller <muller@sourceware.org>
1800
1801 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1802 error code.
1803
1804 2013-09-02 Pierre Muller <muller@sourceware.org>
1805
1806 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1807 by use of plongest function.
1808
1809 2013-09-02 Tristan Gingold <gingold@adacore.com>
1810
1811 * NEWS: Add entry mentioning support for native Windows x64
1812 SEH data.
1813
1814 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1815 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1816 (struct amd64_windows_frame_cache): New struct.
1817 (amd64_windows_w2gdb_regnum): New global.
1818 (pc_in_range, amd64_windows_frame_decode_epilogue)
1819 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1820 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1821 (amd64_windows_frame_this_id): New functions.
1822 (amd64_windows_frame_unwind): New static global.
1823 (amd64_windows_skip_prologue): New function.
1824 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1825 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1826 with amd64_windows_skip_prologue.
1827
1828 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1829
1830 GDB 7.6.1 released.
1831
1832 2013-08-30 Pedro Alves <palves@redhat.com>
1833
1834 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1835 SRC_AND_LOC.
1836
1837 2013-08-30 Pedro Alves <palves@redhat.com>
1838
1839 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1840 warning text.
1841
1842 2013-08-30 Pedro Alves <palves@redhat.com>
1843
1844 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1845 Adjust arguments to print_stack_frame.
1846
1847 2013-08-30 Pedro Alves <palves@redhat.com>
1848
1849 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1850
1851 2013-08-30 Pedro Alves <palves@redhat.com>
1852
1853 * frame.h (show_and_print_stack_frame): Delete declaration.
1854
1855 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1856
1857 PR python/15461
1858
1859 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1860 (archpy_name): Check for valid architecture.
1861 (archpy_disassemble): Ditto.
1862
1863 2013-08-29 Joel Brobecker <brobecker@adacore.com>
1864
1865 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1866 instead of "long long" in call to ptrace64.
1867
1868 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
1869
1870 * mi/mi-interp.c (mi_command_loop): Change signature to match
1871 interp_command_loop_ftype.
1872 (mi1_command_loop): Remove.
1873 (mi2_command_loop): Remove.
1874 (mi3_command_loop): Remove.
1875 (mi_interpreter_resume): Remove setting of
1876 deprecated_command_loop_hook.
1877 (_initialize_mi_interp): Set mi_command_loop as the command loop
1878 callback.
1879
1880 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1881
1882 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1883 value_type.
1884
1885 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1886
1887 * value.c (allocate_value_contents): Make static.
1888 * value.h (allocate_value_contents): Remove prototype.
1889
1890 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1891
1892 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1893 of assembling value via allocate_value_lazy and attribute setter.
1894 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1895 assembling value via allocate_value_lazy and attribute setter.
1896 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1897 assembling value via allocate_value_lazy and attribute setter.
1898
1899 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1900
1901 * value.c (value_from_contents_and_address): Replace allocate_value and
1902 memcpy with value_from_contents.
1903
1904 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1905
1906 * python/py-framefilter.c (py_print_frame): Remove usage of
1907 PyString_AsString. Use python_string_to_host_string instead.
1908 Refactor function to work with a string as a new allocation
1909 instead of a pointer.
1910 (py_print_frame): Ditto.
1911 * python/lib/gdb/frames.py (return_list): Cain iterators together
1912 instead of adding them as a list.
1913 (_sort_list): Call return_list, and remove duplicate code.
1914 (execute_frame_filters): Convert iterator to a list with list().
1915 * python/lib/gdb/command/frame_filters.py
1916 (SetFrameFilterPriority._set_filter_priority): Convert priority
1917 attribute to an integer.
1918 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1919 wrapper function __next__.
1920 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1921 define as "str".
1922
1923 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1924
1925 PR python/15752
1926 * python/py-framefilter.c (apply_frame_filter): Check
1927 gdb_python_initialized. Exit if the Python frame-filter code
1928 cannot be initialized.
1929
1930 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1931
1932 PR cli/15842
1933 * top.c (print_gdb_version): Remove erroneous newline after help
1934 text.
1935
1936 2013-08-29 Yao Qi <yao@codesourcery.com>
1937
1938 * varobj.c (install_dynamic_child): Remove trailing space.
1939 Add one blank line after variable declaration.
1940
1941 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1942
1943 PR gdb/15415
1944 * corefile.c (get_exec_file): Use exec_filename.
1945 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1946 * exec.c (exec_close): Free EXEC_FILENAME.
1947 (exec_file_attach): New variable canonical_pathname. Use
1948 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1949 EXEC_FILENAME.
1950 * exec.h (exec_filename): New.
1951 * inferior.c (print_inferior, inferior_command): Use
1952 PSPACE_EXEC_FILENAME.
1953 * mi/mi-main.c (print_one_inferior): Likewise.
1954 * progspace.c (clone_program_space, print_program_space): Likewise.
1955 * progspace.h (struct program_space): New field pspace_exec_filename.
1956 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1957 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1958
1959 2013-08-28 Will Newton <will.newton@linaro.org>
1960
1961 * common/linux-ptrace.c: Include stdint.h unconditionally.
1962
1963 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1964
1965 Code cleanup.
1966 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1967
1968 2013-08-28 Yao Qi <yao@codesourcery.com>
1969 Pedro Alves <palves@redhat.com>
1970
1971 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1972 instead of stdio_fileopen.
1973 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1974 .Call stderr_fileopen instead of stdio_fileopen.
1975 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1976 [__MINGW32__] (stderr_file_fputs): New function.
1977 (stderr_fileopen): New function.
1978 * ui-file.h (stderr_fileopen): Declare.
1979
1980 2013-08-27 Doug Evans <dje@google.com>
1981
1982 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1983 (struct dwarf2_per_cu_data): Ditto.
1984 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1985 (process_imported_unit_die): Ditto.
1986 (follow_die_sig_1): Simplify assert.
1987
1988 2013-08-27 Pedro Alves <palves@redhat.com>
1989
1990 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1991 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1992 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1993 windows_xfer_memory directly.
1994 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1995
1996 2013-08-27 Pedro Alves <palves@redhat.com>
1997
1998 * darwin-nat.c (darwin_xfer_memory): Delete.
1999 (_initialize_darwin_inferior): Don't install a
2000 deprecated_xfer_memory method.
2001
2002 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2003 Yao Qi <yao@codesourcery.com>
2004
2005 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2006 (parse_no_frames_option): Remove.
2007 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2008 (mi_cmd_stack_list_args): Adjust.
2009 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2010 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2011 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2012 Caller update.
2013 (list_args_or_locals): New parameter 'skip_unavailable'.
2014 Handle it.
2015 * valprint.c (scalar_type_p): Rename to ...
2016 (val_print_scalar_type_p): ... this. Make extern.
2017 (val_print, value_check_printable): Adjust.
2018 * valprint.h (val_print_scalar_type_p): Declare.
2019 * value.c (value_entirely_unavailable): New function.
2020 * value.h (value_entirely_unavailable): Declare.
2021
2022 * NEWS: Mention the new option "--skip-unavailable" to MI
2023 commands '-stack-list-locals', '-stack-list-arguments' and
2024 '-stack-list-variables'.
2025
2026 2013-08-27 Yao Qi <yao@codesourcery.com>
2027
2028 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2029 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2030 options.
2031 * mi/mi-getopt.c (mi_getopt): Remove.
2032 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2033 'error_on_unknown'.
2034 (mi_getopt): Call mi_getopt_1.
2035 (mi_getopt_silent): New.
2036 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2037
2038 2013-08-26 Doug Evans <dje@google.com>
2039
2040 PR symtab/15885
2041 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2042 .gdb_index is in use.
2043 * symfile.c (reread_symbols): Reset objfile->sf.
2044
2045 * NEWS: Document "mt print objfiles" now takes optional regexp.
2046 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2047 regexp of objfiles to print.
2048 (_initialize_symmisc): Update doc string for "mt print objfiles".
2049
2050 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2051 missing debug info checks.
2052
2053 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2054 Ulrich Weigand <uweigand@de.ibm.com>
2055
2056 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2057 line tables generated by XLC compiled binaries.
2058
2059 2013-08-23 Doug Evans <dje@google.com>
2060
2061 * symmisc.c (dump_symtab): Delete prototype.
2062 (dump_msymbols, dump_objfile): Ditto.
2063 (maintenance_info_symtabs): Mark as dont_repeat.
2064 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2065
2066 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2067 debugging printf to better location.
2068
2069 2013-08-23 Pedro Alves <palves@redhat.com>
2070
2071 * target.c (target_read_live_memory): Change type of 'ret' local
2072 to LONGEST.
2073
2074 2013-08-23 Pedro Alves <palves@redhat.com>
2075
2076 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2077 (remote_read_bytes): Change return type to LONGEST, and adjust to
2078 return a target_xfer_error on error.
2079 (remote_xfer_memory): Delete.
2080 (remote_flash_write): Change type of 'ret' local to LONGEST.
2081 (remote_xfer_partial, remote_xfer_partial): Adjust.
2082 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2083
2084 2013-08-23 Pierre Muller <muller@sourceware.org>
2085
2086 ARI fix: Push # directives to start of line.
2087 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2088
2089 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2090
2091 PR gdb/15501
2092 * breakpoint.c (enable_command, disable_command): Iterate over
2093 all specified breakpoint locations.
2094
2095 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2096
2097 * common/linux-ptrace.c (linux_fork_to_function): Push #
2098 directives to the start of the line.
2099 (linux_check_ptrace_features): Fix warning message to use
2100 the "_" markup.
2101
2102 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2103
2104 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2105 nat/linux-waitpid.h.
2106 (linux-waitpid.o): New object file rule.
2107 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2108 (current_ptrace_options): Moved from linux-nat.c.
2109 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2110 parameters.
2111 (linux_fork_to_function): New function.
2112 (linux_grandchild_function): Likewise.
2113 (linux_child_function): Likewise.
2114 (linux_check_ptrace_features): New function, heavily
2115 based on linux-nat.c:linux_test_for_tracefork.
2116 (linux_enable_event_reporting): New function.
2117 (ptrace_supports_feature): Likewise.
2118 (linux_supports_tracefork): Likewise.
2119 (linux_supports_traceclone): Likewise.
2120 (linux_supports_tracevforkdone): Likewise.
2121 (linux_supports_tracesysgood): Likewise.
2122 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2123 gdbserver/linux-low.c.
2124 (linux_enable_event_reporting): New declaration.
2125 (linux_supports_tracefork): Likewise.
2126 (linux_supports_traceclone): Likewise.
2127 (linux_supports_tracevforkdone): Likewise.
2128 (linux_supports_tracesysgood): Likewise.
2129 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2130 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2131 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2132 * config/arm/linux.mh (NATDEPFILES): Likewise.
2133 * config/i386/linux.mh (NATDEPFILES): Likewise.
2134 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2135 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2136 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2137 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2138 * config/mips/linux.mh (NATDEPFILES): Likewise.
2139 * config/pa/linux.mh (NATDEPFILES): Likewise..
2140 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2141 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2142 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2143 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2144 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2145 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2146 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2147 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2148 ptrace's 4th argument's types.
2149 Check the type of PTRACE_TYPE_ARG4.
2150 * configure: Regenerate.
2151 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2152 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2153 (linux_supports_tracefork_flag): Remove.
2154 (linux_supports_tracesysgood_flag): Likewise.
2155 (linux_supports_tracevforkdone_flag): Likewise.
2156 (current_ptrace_options): Moved to
2157 common/linux-ptrace.c.
2158 (linux_tracefork_child): Remove.
2159 (my_waitpid): Remove.
2160 (linux_test_for_tracefork): Renamed to
2161 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2162 (linux_test_for_tracesysgood): Remove.
2163 (linux_supports_tracesysgood): Remove.
2164 (linux_supports_tracefork): Remove.
2165 (linux_supports_tracevforkdone): Remove.
2166 (linux_enable_tracesysgood): Remove.
2167 (linux_enable_event_reporting): Remove.
2168 (linux_init_ptrace): New function.
2169 (linux_child_post_attach): Call linux_init_ptrace.
2170 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2171 (linux_child_follow_fork): Call linux_supports_tracefork
2172 and linux_supports_tracevforkdone.
2173 (linux_child_insert_fork_catchpoint): Call
2174 linux_supports_tracefork.
2175 (linux_child_insert_vfork_catchpoint): Likewise.
2176 (linux_child_set_syscall_catchpoint): Call
2177 linux_supports_tracesysgood.
2178 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2179 * nat/linux-nat.h: New file.
2180 * nat/linux-waitpid.c: New file.
2181 * nat/linux-waitpid.h: New file.
2182
2183 2013-08-22 Samuel Bronson <naesten@gmail.com>
2184
2185 ARM Linux support for `catch syscall'.
2186 * syscalls/arm-linux.py: New file.
2187 * syscalls/arm-linux.xml: Likewise.
2188 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2189 (arm_linux_init_abi): Register the new function and syscall xml file.
2190 * data-directory/Makefile.in: Install the new syscall xml file.
2191 * NEWS: Brag about this.
2192
2193 2013-08-22 Pedro Alves <palves@redhat.com>
2194
2195 PR gdb/15871
2196 * corefile.c (target_xfer_memory_error): New function.
2197 (memory_error): Defer EIO to target_memory_error.
2198 (read_memory): Use target_xfer_partial, and handle finer-grained
2199 target xfer errors.
2200 * target.c (target_xfer_error_to_string): New function.
2201 (memory_xfer_partial_1): If memory is known to be
2202 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2203 (target_xfer_partial): Make extern.
2204 * target.h (enum target_xfer_error): New enum.
2205 (target_xfer_error_to_string): Declare function.
2206 (target_xfer_partial): Declare function.
2207 (struct target_ops) <xfer_partial>: Adjust describing comment.
2208
2209 2013-08-22 Alan Modra <amodra@gmail.com>
2210
2211 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2212 * configure.tgt: Likewise as targets.
2213
2214 2013-08-20 Doug Evans <dje@google.com>
2215
2216 * buildsym.c (subfile_stack): Move here from buildsym.h.
2217 (pending_macros): Ditto.
2218 (get_macro_table): New function.
2219 (buildsym_init): Initialize subfile_stack.
2220 * coffread.c (type_vector,type_vector_length): Moved here from
2221 buildsym.h.
2222 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2223 (coff_symtab_read): Use it.
2224 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2225 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2226 with call to get_macro_table.
2227 * stabsread.c (type_vector,type_vector_length): Moved here from
2228 buildsym.h.
2229 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2230 * buildsym.h (get_macro_table): Declare.
2231
2232 2013-08-20 Tom Tromey <tromey@redhat.com>
2233
2234 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2235 Update.
2236 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2237
2238 2013-08-20 Doug Evans <dje@google.com>
2239
2240 * blockframe.c: Remove #include "psymtab.h".
2241 * cp-support.c: Ditto.
2242 * source.c: Ditto.
2243 * stack.c: Ditto.
2244
2245 2013-08-20 Tom Tromey <tromey@redhat.com>
2246
2247 PR python/15816:
2248 * exceptions.h (return_mask): Now an enum.
2249 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2250 enum constants.
2251
2252 2013-08-20 Tom Tromey <tromey@redhat.com>
2253
2254 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2255 get_objfile_arch.
2256 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2257 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2258 * jit.c (jit_object_close_impl): Update.
2259 * jv-lang.c (get_dynamics_objfile): Update.
2260 * linespec.c (add_minsym): Use get_dynamics_objfile.
2261 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2262 (allocate_objfile): Don't initialize 'gdbarch' field.
2263 (get_objfile_arch): Update.
2264 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2265 moved from...
2266 (struct objfile) <gdbarch>: ... here. Remove.
2267 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2268 get_objfile_arch.
2269 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2270
2271 2013-08-20 Alan Modra <amodra@gmail.com>
2272
2273 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2274 for IBM long double nan and inf.
2275 (floatformat_is_negative, floatformat_classify,
2276 floatformat_mantissa): Similarly.
2277 (floatformat_ieee_single, floatformat_ieee_double,
2278 floatformat_ieee_quad, floatformat_arm_ext,
2279 floatformat_ia64_spill): Delete unused vars.
2280 (_initialize_doublest): Delete unused function.
2281 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2282 little-endian variants of floatformat_ibm_long_double.
2283
2284 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2285
2286 * Makefile.in (SFILES): Remove common/target-common.c and
2287 add target/waitstatus.c.
2288 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2289 target/resume.h, target/wait.h and target/waitstatus.h.
2290 (COMMON_OBS): Remove target-common.o and add
2291 waitstatus.o.
2292 (target-common.o): Remove.
2293 (waitstatus.o): New target object file.
2294 * common/target-common.c: Move contents to
2295 target/waitstatus.c and remove.
2296 * common/target-common.h: Move contents to other files and
2297 remove.
2298 (enum resume_kind: Move to target/resume.h.
2299 (TARGET_WNOHANG): Move to target/wait.h.
2300 (enum target_waitkind): Move to target/waitstatus.h.
2301 (struct target_waitstatus): Likewise.
2302 * target.h: Do not include target-common.h and
2303 include target/resume.h, target/wait.h and
2304 target/waitstatus.h.
2305 * target/resume.h: New file.
2306 * target/wait.h: New file.
2307 * target/waitstatus.h: New file.
2308 * target/waitstatus.c: New file.
2309
2310 2013-08-19 Pedro Alves <palves@redhat.com>
2311
2312 * linux-nat.c (linux_test_for_tracefork)
2313 (linux_test_for_tracesysgood, linux_child_follow_fork)
2314 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2315 (linux_nat_wait_1): Extend comment.
2316 (linux_async_pipe): Add comment.
2317
2318 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2319
2320 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2321 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2322 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2323 Update to account for fact that PC is now a pseudo-register.
2324 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2325 cases for RL78_PC_REGNUM.
2326
2327 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2328
2329 PR cli/15841
2330 * top.c (quit_force): Skip writing history file
2331 if input is not from terminal.
2332
2333 2013-08-14 Tom Tromey <tromey@redhat.com>
2334
2335 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2336 resultthreadlist>: New fields.
2337 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2338 (remote_get_threadlist, remote_threadlist_iterator): Use
2339 new fields. Remove static variables.
2340
2341 2013-08-14 Tom Tromey <tromey@redhat.com>
2342
2343 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2344 remote_watch_data_address>: New fields.
2345 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2346 (process_stop_reply, remote_wait_as)
2347 (remote_check_watch_resources, remote_stopped_data_address): Update.
2348
2349 2013-08-14 Tom Tromey <tromey@redhat.com>
2350
2351 * remote.c (struct remote_state) <async_client_callback,
2352 async_client_context>: New fields.
2353 (async_client_callback, async_client_context): Remove.
2354 (remote_async_serial_handler, remote_async): Update.
2355
2356 2013-08-14 Tom Tromey <tromey@redhat.com>
2357
2358 * remote.c (sizeof_pkt): Remove.
2359 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2360
2361 2013-08-14 Tom Tromey <tromey@redhat.com>
2362
2363 * remote.c (struct remote_state) <use_threadinfo_query,
2364 use_threadextra_query>: New fields.
2365 (remote_threads_info, remote_threads_extra_info)
2366 (remote_open_1): Update.
2367
2368 2013-08-14 Tom Tromey <tromey@redhat.com>
2369
2370 * remote.c (struct remote_state) <finished_object,
2371 finished_annex, finished_offset>: New fields.
2372 (remote_read_qxfer): Use remote_state fields; remove static
2373 variables.
2374
2375 2013-08-14 Tom Tromey <tromey@redhat.com>
2376
2377 * remote.c (struct remote_state) <last_sent_step>:
2378 New field.
2379 (last_sent_step): Remove.
2380 (remote_resume, remote_wait_as): Update.
2381
2382 2013-08-14 Tom Tromey <tromey@redhat.com>
2383
2384 * remote.c (struct remote_state) <last_sent_signal>:
2385 New field.
2386 (last_sent_signal): Remove.
2387 (new_remote_state, remote_resume, remote_wait_as): Update.
2388
2389 2013-08-14 Tom Tromey <tromey@redhat.com>
2390
2391 * remote.c (struct remote_state) <last_program_signals_packet>:
2392 New field.
2393 (last_program_signals_packet): Remove.
2394 (remote_program_signals, remote_open_1): Update.
2395
2396 2013-08-14 Tom Tromey <tromey@redhat.com>
2397
2398 * remote.c (struct remote_state) <last_pass_packet>:
2399 New field.
2400 (last_pass_packet): Remove.
2401 (remote_pass_signals, remote_open_1): Update.
2402
2403 2013-08-14 Tom Tromey <tromey@redhat.com>
2404
2405 * remote.c (struct remote_state) <remote_traceframe_number>:
2406 New field.
2407 (remote_traceframe_number): Remove.
2408 (new_remote_state, remote_open_1, set_remote_traceframe)
2409 (remote_trace_find): Update.
2410
2411 2013-08-14 Tom Tromey <tromey@redhat.com>
2412
2413 * remote.c (struct remote_state) <general_thread, continue_thread>:
2414 New fields.
2415 (general_thread, continue_thread): Remove.
2416 (record_currthread, set_thread, set_general_process)
2417 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2418 (extended_remote_mourn_1): Update.
2419
2420 2013-08-14 Tom Tromey <tromey@redhat.com>
2421
2422 * remote.c (struct remote_state) <remote_desc>: New field.
2423 (remote_desc): Remove.
2424 (remote_threads_info, remote_threads_extra_info, remote_close)
2425 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2426 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2427 (remote_hostio_send_command, remote_file_put, remote_file_get)
2428 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2429 (remote_async, remote_new_objfile, set_range_stepping): Update.
2430
2431 2013-08-14 Tom Tromey <tromey@redhat.com>
2432
2433 * remote.c (remote_state): Now a pointer.
2434 (get_remote_state_raw): Update.
2435 (new_remote_state): New function.
2436 (_initialize_remote): Use new_remote_state.
2437
2438 2013-08-14 Tom Tromey <tromey@redhat.com>
2439
2440 * remote.c (remote_protocol_features): Now const.
2441
2442 2013-08-14 Tom Tromey <tromey@redhat.com>
2443
2444 * remote.c (crc32_table, crc32): Remove.
2445 (remote_verify_memory): Use xcrc32.
2446
2447 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2448
2449 * value.h (create_internalvar_type_lazy): Adjust prototype
2450 declaration.
2451
2452 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2453
2454 * common/format.c (parse_format_string): Don't allow '#' flag for
2455 pointer arguments in format string.
2456
2457 2013-08-13 Pierre Muller <muller@sourceware.org>
2458
2459 * utils.c (init_page_info): Only call tgetnum function
2460 if rl_get_screen_size did not return useful values.
2461
2462 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2463
2464 PR breakpoints/15117
2465 * linespec.c (linespec_parse_basic): Check for convenience
2466 variable or history value while parsing.
2467
2468 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2469
2470 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2471 AVR.
2472 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2473 different signals between the generic Linux kernel implementation
2474 and AVR's.
2475 (avr_linux_gdb_signal_from_target): Delete.
2476 (avr_linux_gdb_signal_to_target): Delete.
2477 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2478
2479 2013-08-09 Doug Evans <dje@google.com>
2480
2481 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2482 entries.
2483
2484 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2485
2486 * linux-tdep.c: Define enum with generic signal numbers.
2487 (linux_gdb_signal_from_target): New function.
2488 (linux_gdb_signal_to_target): Likewise.
2489 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2490 methods to the functions above.
2491 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2492 (linux_gdb_signal_to_target): Likewise.
2493 * alpha-linux-tdep.c: Define new enum with signals different
2494 from generic Linux kernel.
2495 (alpha_linux_gdb_signal_from_target): New function.
2496 (alpha_linux_gdb_signal_to_target): Likewise.
2497 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2498 with the functions mentioned above.
2499 * avr-tdep.c: Define enum with differences between Linux kernel
2500 and AVR signals.
2501 (avr_linux_gdb_signal_from_target): New function.
2502 (avr_linux_gdb_signal_to_target): Likewise.
2503 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2504 the functions mentioned above.
2505 * sparc-linux-tdep.c: Define enum with differences between SPARC
2506 and generic Linux kernel signal numbers.
2507 (sparc32_linux_gdb_signal_from_target): New function.
2508 (sparc32_linux_gdb_signal_to_target): Likewise.
2509 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2510 to the functions defined above.
2511 * xtensa-linux-tdep.c: Define enum with differences between
2512 Xtensa and Linux kernel generic signals.
2513 (xtensa_linux_gdb_signal_from_target): New function.
2514 (xtensa_linux_gdb_signal_to_target): Likewise.
2515 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2516 to the functions defined above.
2517 * mips-linux-tdep.c: Define enum with differences between
2518 signals in MIPS and Linux kernel generic ones.
2519 (mips_gdb_signal_to_target): New function.
2520 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2521 only different signals from the Linux kernel generic.
2522 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2523 the functions defined above.
2524 * mips-linux-tdep.h (enum mips_signals): Remove.
2525
2526 2013-08-09 Pedro Alves <palves@redhat.com>
2527
2528 * avr-tdep.c (XMALLOC): Delete macro.
2529 * cli/cli-dump.c (XMALLOC): Delete macro.
2530
2531 2013-08-09 Pedro Alves <palves@redhat.com>
2532
2533 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2534 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2535 (fopen_with_cleanup, add_dump_command): Make static.
2536 * cli/cli-dump.h: Delete file.
2537 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2538 cli/cli-dump.h.
2539
2540 2013-08-09 Pedro Alves <palves@redhat.com>
2541
2542 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2543 error message.
2544
2545 2013-08-09 Pedro Alves <palves@redhat.com>
2546
2547 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2548 error message.
2549
2550 2013-08-09 Pedro Alves <palves@redhat.com>
2551
2552 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2553 (gcore_command): Use tilde_expand here, and when showing the
2554 filename to the user, show the expanded version.
2555
2556 2013-08-09 Yao Qi <yao@codesourcery.com>
2557
2558 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2559 'entryval' is set.
2560
2561 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2562
2563 * gcore.c (create_gcore_bfd): Use tilde_expand.
2564
2565 2013-08-08 Yao Qi <yao@codesourcery.com>
2566
2567 * frame.h (read_frame_local): Declare.
2568 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2569 read_frame_local.
2570 * stack.c (read_frame_local): New.
2571
2572 2013-08-08 Yao Qi <yao@codesourcery.com>
2573
2574 * mi/mi-cmd-stack.c: Update comments to function
2575 list_args_or_locals.
2576
2577 2013-08-07 Tom Tromey <tromey@redhat.com>
2578
2579 PR symtab/15028:
2580 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2581 (process_psymtab_comp_unit_reader): Use it.
2582 (process_psymtab_comp_unit): Update. Add "pretend_language"
2583 argument.
2584 (dwarf2_build_psymtabs_hard): Update.
2585 (scan_partial_symbols): Pass CU's language to
2586 process_psymtab_comp_unit.
2587
2588 2013-08-07 Tom Tromey <tromey@redhat.com>
2589
2590 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2591 (dwarf2_gdb_index_functions): Update.
2592 * psymtab.c (find_symbol_file_from_partial): Remove.
2593 (psym_functions): Update.
2594 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2595 Remove.
2596
2597 2013-08-07 Tom Tromey <tromey@redhat.com>
2598
2599 * symfile.c (set_initial_language): Look up "main" symbol
2600 and use its language.
2601 * symtab.c (find_main_filename): Remove.
2602 * symtab.h (find_main_filename): Remove.
2603
2604 2013-08-07 Tom Tromey <tromey@redhat.com>
2605
2606 * dwarf2read.c (recursively_compute_inclusions): Add
2607 "immediate_parent" argument. Set symtab's "user" field
2608 if not set.
2609 (compute_symtab_includes): Update.
2610
2611 2013-08-07 Tom Tromey <tromey@redhat.com>
2612
2613 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2614 when adding label symbols.
2615
2616 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2617 Ulrich Weigand <uweigand@de.ibm.com>
2618
2619 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2620 * configure.host (powerpc64-*-aix*): Likewise.
2621
2622 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2623 Ulrich Weigand <uweigand@de.ibm.com>
2624
2625 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2626 is defined.
2627 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2628 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2629 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2630 * configure.ac: Check for ptrace64.
2631 * configure, config.in: Regenerate.
2632
2633 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2634 Ulrich Weigand <uweigand@de.ibm.com>
2635
2636 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2637 Call ptrace64 instead of ptrace if defined.
2638 Add macro addr_ptr to take care of ptrace address argument.
2639 (pdc_read_regs): Likewise.
2640 (pdc_write_regs): Likewise.
2641 (aix_thread_resume): Likewise.
2642 (fetch_regs_kernel_thread): Likewise.
2643 (store_regs_kernel_thread): Likewise.
2644
2645 2013-08-07 Anton Blanchard <anton@samba.org>
2646
2647 * MAINTAINERS: Add myself to Write After Approval.
2648
2649 2013-08-05 Tom Tromey <tromey@redhat.com>
2650
2651 * aix-thread.c (_initialize_aix_thread): Use
2652 complete_target_initialization.
2653 * bsd-uthread.c (_initialize_bsd_uthread): Use
2654 complete_target_initialization.
2655 * dec-thread.c (_initialize_dec_thread): Use
2656 complete_target_initialization.
2657 * ravenscar-thread.c (_initialize_ravenscar): Use
2658 complete_target_initialization.
2659 * sol-thread.c (_initialize_sol_thread): Use
2660 complete_target_initialization.
2661 * spu-multiarch.c (_initialize_spu_multiarch): Use
2662 complete_target_initialization.
2663
2664 2013-08-05 Tom Tromey <tromey@redhat.com>
2665
2666 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2667 * ada-lang.c (ada_lookup_simple_minsym): Return
2668 bound_minimal_symbol.
2669 * ada-lang.h (ada_lookup_simple_minsym): Update.
2670 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2671 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2672 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2673 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2674 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2675 * minsyms.c (msymbol_objfile): Remove.
2676 (lookup_minimal_symbol_internal): New function, from
2677 lookup_minimal_symbol.
2678 (lookup_minimal_symbol): Rewrite using
2679 lookup_minimal_symbol_internal.
2680 (lookup_bound_minimal_symbol): New function.
2681 * minsyms.h (msymbol_objfile): Remove.
2682 (lookup_bound_minimal_symbol): Declare.
2683 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2684 * parse.c (write_exp_msymbol): Change parameter to a
2685 bound_minimal_symbol.
2686 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2687 * parser-defs.h (write_exp_msymbol): Update.
2688 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2689 * symfile.c (simple_read_overlay_table): Use
2690 lookup_bound_minimal_symbol.
2691 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2692 (search_symbols): Likewise.
2693 (print_msymbol_info): Take a bound_minimal_symbol argument.
2694 (symtab_symbol_info, rbreak_command): Update.
2695 * symtab.h (struct symbol_search) <msymbol>: Change type
2696 to bound_minimal_symbol.
2697 * valops.c (find_function_in_inferior): Use
2698 lookup_bound_minimal_symbol.
2699 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2700
2701 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2702
2703 Code cleanup.
2704 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2705 to ...
2706 (async_cleanup_sigint_signal_handler): ... this.
2707 (initialize_sigint_signal_handler): Remove declaration.
2708 (handle_remote_sigint): Rename the declaration to ...
2709 (async_handle_remote_sigint): ... this.
2710 (handle_remote_sigint_twice): Rename the declaration to ...
2711 (async_handle_remote_sigint_twice): ... this.
2712 (async_remote_interrupt, async_remote_interrupt_twice)
2713 (remote_interrupt): Remove the declarations.
2714 (remote_interrupt_twice): Rename the declaration ...
2715 (sync_remote_interrupt_twice): ... this.
2716 (sigint_remote_twice_token): Rename the variable to ...
2717 (async_sigint_remote_twice_token): ... this.
2718 (sigint_remote_token): Rename the variable to ...
2719 (async_sigint_remote_token): ... this.
2720 (initialize_sigint_signal_handler): Rename the function to ...
2721 (async_initialize_sigint_signal_handler): ... this. Update the name
2722 inside.
2723 (handle_remote_sigint): Rename the function to ...
2724 (async_handle_remote_sigint): ... this. Update the names inside.
2725 (handle_remote_sigint_twice): Rename the function to ...
2726 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2727 (cleanup_sigint_signal_handler): Rename the function to ...
2728 (async_cleanup_sigint_signal_handler): ... this.
2729 (remote_interrupt): Rename the function to ...
2730 (sync_remote_interrupt): this. Update the names inside.
2731 (remote_interrupt_twice): Rename the function to ...
2732 (sync_remote_interrupt_twice): this. Update the names inside.
2733 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2734 (_initialize_remote): Update the names inside.
2735
2736 2013-08-02 Tom Tromey <tromey@redhat.com>
2737
2738 PR symtab/15719:
2739 * breakpoint.c (update_watchpoint, watchpoint_check)
2740 (watch_command_1): Update.
2741 * eval.c (fetch_subexp_value): Add "preserve_errors"
2742 parameter.
2743 * ppc-linux-nat.c (check_condition): Update.
2744 * value.h (fetch_subexp_value): Update.
2745
2746 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2747
2748 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2749 add_file_handler.
2750
2751 2013-08-01 Doug Evans <dje@google.com>
2752
2753 PR symtab/15691
2754 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2755 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2756 Add assert of sig_entry->dwo_unit == NULL.
2757 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2758 had already been read.
2759 (read_signatured_type): Set per_cu.tu_read.
2760
2761 PR symtab/15695
2762 * valops.c (value_struct_elt): Add missing call to check_typedef.
2763 (value_find_oload_method_list): Ditto.
2764
2765 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2766 effectively, struct symbol_search **.
2767 (make_cleanup_free_search_symbols): Change arg to struct
2768 symbol_search **. All callers updated.
2769 (compare_search_syms): Compare symtab file name and block as well.
2770 (search_symbols_equal): New function.
2771 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2772 New args new_head, new_tail. Result is now void. Remove dups after
2773 sorting the symbols.
2774 (search_symbols): Sort all found symbols once, after all have been
2775 found, and remove duplicates. Simplify cleanup tracking of result.
2776 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2777
2778 Further workarounds for binutils/15021.
2779 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2780 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2781 Watch for duplicate symtabs coming from type units.
2782 (compute_symtab_includes): Update call to
2783 recursively_compute_inclusions. Build vector of included symtabs
2784 instead of per_cus.
2785 * symtab.h (symtab_ptr): New typedef.
2786 (DEF_VEC_P (symtab_ptr)): New VEC type.
2787 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2788 instead.
2789
2790 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2791
2792 * cli/cli-script.c (script_from_file): Remove use of
2793 error_pre_print.
2794 * main.c (captured_main): Remove use of error_pre_print and
2795 quit_pre_print.
2796 * utils.c (error_pre_print, quit_pre_print): Remove.
2797 * utils.h (error_pre_print, quit_pre_print): Likewise.
2798
2799 2013-08-01 Yao Qi <yao@codesourcery.com>
2800
2801 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2802 with mi_getopt.
2803 (mi_cmd_stack_list_variables): Likewise.
2804
2805 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2806
2807 * exceptions.c (deprecated_throw_reason): Remove.
2808 * exceptions.h (deprecated_throw_reason): Remove.
2809
2810 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2811
2812 * remote-mips.c (mips_error): Replace use of
2813 deprecated_throw_reason with throw_verror. Use the error message
2814 passed to mips_error as the error message for throw_verror.
2815
2816 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2817
2818 * monitor.c (monitor_interrupt_query): Replace use of
2819 deprecated_throw_reason with quit.
2820 * nto-procfs.c (interrupt_query): Likewise.
2821 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2822 * remote-mips.c (mips_kill): Likewise.
2823 * remote.c (interrupt_query): Likewise.
2824
2825 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2826
2827 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2828 with call to fatal.
2829
2830 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2831 Yao Qi <yao@codesourcery.com>
2832
2833 * tracepoint.c (trace_dump_command): Select the current frame.
2834
2835 2013-07-30 Doug Evans <dje@google.com>
2836
2837 * dwarf2read.c (process_queue): Add type signature to debug output.
2838
2839 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2840
2841 * value.c (value_fetch_lazy): Mark optimized out values as such
2842 rather than raising an error.
2843
2844 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2845
2846 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2847 before checking which bits of the parent, not the child, value are
2848 valid.
2849
2850 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2851
2852 PR gdb/15715
2853 * top.c: Include "filenames.h".
2854 (set_history_filename): New function.
2855 (init_main): Install it as set hook of the "set history filename"
2856 command.
2857
2858 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2859
2860 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2861 attribute parameter.
2862 (dwarf2_const_value_data): Constify struct attribute parameter.
2863 (dwarf2_const_value): Constify struct attribute parameter.
2864 (dwarf2_const_value_attr): Constify struct attribute parameter.
2865 (lookup_die_type): Constify struct attribute parameter.
2866 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2867 (follow_die_ref_or_sig): Constify struct attribute parameter.
2868 (follow_die_ref): Constify struct attribute parameter.
2869 (follow_die_sig): Constify struct attribute parameter.
2870 (get_DW_AT_signature_type): Constify struct attribute parameter.
2871 (get_type_unit_group): Constify struct attribute parameter.
2872 (fill_in_loclist_baton): Constify struct attribute parameter.
2873 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2874 (type_unit_group): Constify struct attribute parameter.
2875
2876 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2877
2878 * dwarf2read.c (attr_form_is_block): Make argument const.
2879 (attr_form_is_section_offset): Make argument const.
2880 (attr_form_is_constant): Make argument const.
2881 (attr_form_is_ref): Make argument const.
2882
2883 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2884
2885 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2886 All uses updated.
2887 (attr_form_is_ref): Moved below attr_form_is_constant.
2888
2889 2013-07-29 Doug Evans <dje@google.com>
2890
2891 * main.c (captured_command_loop): Tweak comment.
2892
2893 * target.c (target_async_permitted_1): Fix comment.
2894
2895 * symtab.c (iterate_over_some_symtabs): Add comment.
2896
2897 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2898
2899 2013-07-27 Yao Qi <yao@codesourcery.com>
2900
2901 * NEWS: Mention that GDBserver now supports hardware
2902 watchpoints on the MIPS GNU/Linux target.
2903
2904 2013-07-27 Yao Qi <yao@codesourcery.com>
2905
2906 * Makefile.in (HFILES_NO_SRCDIR): Add
2907 common/mips-linux-watch.h.
2908 (mips-linux-watch.o): New rule.
2909 * common/mips-linux-watch.c: New.
2910 * common/mips-linux-watch.h: New.
2911 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2912 * mips-linux-nat.c: Include mips-linux-watch.h.
2913 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2914 to common/mips-linux-watch.h.
2915 (MAX_DEBUG_REGISTER): Likewise.
2916 (enum pt_watch_style): Likewise.
2917 (struct mips32_watch_regs): Likewise.
2918 (struct mips64_watch_regs): Likewise.
2919 (struct pt_watch_regs): Likewise.
2920 (struct mips_watchpoint): Likewise.
2921 (mips_linux_watch_get_irw_mask): Move to
2922 common/mips-linux-watch.c.
2923 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2924 (mips_linux_watch_get_watchlo): Likewise.
2925 (mips_linux_watch_set_watchlo): Likewise.
2926 (mips_linux_watch_get_watchhi): Likewise.
2927 (mips_linux_watch_set_watchhi): Likewise.
2928 (mips_linux_read_watch_registers): Likewise.
2929 (mips_linux_watch_type_to_irw): Likewise.
2930 (mips_linux_stopped_data_address, fill_mask): Likewise.
2931 (mips_linux_watch_try_one_watch): Likewise.
2932 (mips_linux_watch_populate_regs): Likewise.
2933
2934 2013-07-27 Yao Qi <yao@codesourcery.com>
2935
2936 * mips-linux-nat.c (get_irw_mask): Rename to ...
2937 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2938 'set' to 'n'. Update function comment. All callers changed.
2939 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2940 function comment. All callers changed.
2941 (get_num_valid): Rename to ...
2942 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2943 'set' to 'n'. Update function comment. All callers changed.
2944 (get_watchlo): Rename to ...
2945 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2946 'set' to 'n'. Update function comment. All callers changed.
2947 (set_watchlo): Rename to ...
2948 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2949 'set' to 'n'. Update function comment. All callers changed.
2950 (get_watchhi): Rename to ...
2951 (mips_linux_watch_get_watchhi): ... this. Update function
2952 comment. All callers changed.
2953 (set_watchhi): Rename to ...
2954 (mips_linux_watch_set_watchhi): ... this. Update function
2955 comment. All callers changed.
2956 (mips_linux_read_watch_registers): Update function comment.
2957 Add new parameters 'lwpid', 'watch_readback', and
2958 'watch_readback_valid'. Update.
2959 (type_to_irw): Rename to ...
2960 (mips_linux_watch_type_to_irw): ... this. Update function
2961 comment. All callers changed.
2962 (fill_mask): Update function comment.
2963 (try_one_watch): Rename to ...
2964 (mips_linux_watch_try_one_watch): ... this. Change the type
2965 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2966 (populate_regs_from_watches): Rename to ...
2967 (mips_linux_watch_populate_regs): ... this. Add parameter
2968 'current_watches'. All callers changed.
2969
2970 2013-07-27 Yao Qi <yao@codesourcery.com>
2971
2972 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2973 the code.
2974 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2975 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2976 (struct pt_watch_regs): Likewise.
2977 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2978 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2979 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2980 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2981 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2982
2983 2013-07-27 Yao Qi <yao@codesourcery.com>
2984
2985 * breakpoint.h: Include break-common.h.
2986 (enum target_hw_bp_type): Move to ...
2987 * common/break-common.h: ... here. New.
2988
2989 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2990
2991 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2992 process group regardless of having tty on stdin.
2993
2994 2013-07-25 Doug Evans <dje@google.com>
2995
2996 * linux-fork.h (detach_fork): Delete.
2997
2998 2013-07-25 Tom Tromey <tromey@redhat.com>
2999
3000 PR remote/15256, PR remote/15266:
3001 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3002 * monitor.c (monitor_detach): Use unpush_target.
3003 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3004 * remote-mips.c (mips_detach): Use unpush_target. Don't
3005 call mips_close.
3006 * remote-sim.c (gdbsim_detach): Use unpush_target.
3007 * target.c (pop_target): Remove.
3008 (pop_all_targets_above): Don't call target_close.
3009 (target_close): Assert that the target is unpushed.
3010 * target.h (pop_target): Don't declare.
3011 * tracepoint.c (tfile_open): Use unpush_target.
3012
3013 2013-07-25 Tom Tromey <tromey@redhat.com>
3014
3015 * linux-thread-db.c (init_thread_db_ops): Call
3016 complete_target_initialization.
3017 (_initialize_thread_db): Don't call add_target.
3018 * target.c (complete_target_initialization): New function.
3019 (add_target_with_completer): Call it.
3020 * target.h (complete_target_initialization): Declare.
3021
3022 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3023
3024 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3025 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3026 (HPPANBSD_SIZEOF_GREGS): New define.
3027 (hppaobsd_supply_gregset): Handle additional registers.
3028 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3029 we provide more registers now.
3030 (hppabsd_supply_gregset): Supply additional registers.
3031 (hppabsd_collect_gregset): Collect additional registers.
3032
3033 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3034
3035 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3036 (hppabsd_dwarf2_frame_init_reg): New function.
3037 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3038
3039 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3040
3041 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3042 'z' format code. Remove error for optimized out values, standard
3043 code will handle these fine.
3044
3045 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3046
3047 * NEWS: Mention new 'z' formatter.
3048 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3049 (_initialize_printcmd): Mention 'z' formatter in help text of the
3050 'x' command.
3051
3052 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3053
3054 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3055 formatting.
3056
3057 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3058
3059 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3060 interface can evaluate arguments. Fallback to the old mode if it
3061 cannot.
3062 (create_exception_master_breakpoint): Likewise.
3063 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3064 (struct sym_probe_fns elf_probe_fns): Export function above to the
3065 probe interface.
3066 * probe.c (can_evaluate_probe_arguments): New function.
3067 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3068 function pointer.
3069 (can_evaluate_probe_arguments): New function prototype.
3070 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3071 probe interface can evaluate arguments. Fallback to the old mode
3072 if it cannot.
3073 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3074 interface can evaluate arguments. Warning the user if it cannot.
3075 (stap_can_evaluate_probe_arguments): New function.
3076 (struct probe_ops stap_probe_ops): Export function above to the
3077 probe interface.
3078 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3079 New function pointer.
3080
3081 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3082
3083 * Makefile.in (SFILES): Add common/target-common.c.
3084 Add common/target-common.h to headers.
3085 (COMMON_OBS): Add target-common.o.
3086 (target-common.o): New target.
3087 * linux-nat.h (resume_kind): Move to common/target-common.h.
3088 * target.c (target_waitstatus_to_string): Move to
3089 common/target-common.c.
3090 * target.h: Include target-common.h.
3091 (target_waitkind): Move to common/target-common.h.
3092 (target_waitstatus): Likewise.
3093 (TARGET_WNOHANG): Likewise.
3094 * common/target-common.c: New file.
3095 * common/target-common.h: New file.
3096
3097 2013-07-24 Doug Evans <dje@google.com>
3098
3099 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3100 a warning.
3101
3102 2013-07-23 Yao Qi <yao@codesourcery.com>
3103
3104 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3105 parameter 'gdbarch'.
3106 (i386_stack_tramp_frame_sniffer): Caller update.
3107 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3108 parameter 'gdbarch' and 'target'.
3109 (i386_linux_core_read_description): Caller update.
3110 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3111 Likewise.
3112 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3113 declaration.
3114
3115 2013-07-23 Tom Tromey <tromey@redhat.com>
3116
3117 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3118 2013-07-22.
3119
3120 2013-07-22 Doug Evans <dje@google.com>
3121
3122 * exec.h (remove_target_sections): Delete arg abfd.
3123 * exec.c (exec_close): Update call to remove_target_sections.
3124 (remove_target_sections): Delete arg abfd.
3125 * solib.c (update_solib_list): Ditto.
3126 (reload_shared_libraries_1): Ditto.
3127 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3128 * target.h (struct target_section): Rename key to owner.
3129 All uses updated.
3130
3131 2013-07-22 Tom Tromey <tromey@redhat.com>
3132
3133 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3134
3135 2013-07-22 Tom Tromey <tromey@redhat.com>
3136
3137 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3138 Simplify cleanup handling.
3139
3140 2013-07-22 Tom Tromey <tromey@redhat.com>
3141
3142 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3143 on all return paths.
3144
3145 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3146
3147 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3148 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3149 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3150
3151 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3152
3153 * top.c (print_gdb_version): Add help, apropos description and
3154 url to online documentation.
3155
3156 2013-07-19 Hui Zhu <hui@codesourcery.com>
3157
3158 PR gdb/15692
3159 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3160
3161 2013-07-19 Yao Qi <yao@codesourcery.com>
3162
3163 * target.c (update_current_target): Change the default action
3164 of 'to_traceframe_info' from tcomplain to return_zero.
3165 * target.h (struct target_ops) <to_traceframe_info>: Add more
3166 comments.
3167 * valops.c (read_value_memory): Call
3168 traceframe_available_memory unconditionally.
3169
3170 2013-07-18 Yao Qi <yao@codesourcery.com>
3171
3172 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3173 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3174 symbol without prefix. If found, set its type to
3175 'mst_solib_trampoline'.
3176
3177 2013-07-17 Doug Evans <dje@google.com>
3178
3179 * NEWS: Mention "set print raw frame-arguments".
3180 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3181 * stack.c (print_raw_frame_arguments): New static global.
3182 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3183 (_initialize_stack): New command "set/show print raw frame-arguments".
3184 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3185 (set_print_raw, show_print_raw): New functions.
3186 (_initialize_valprint): New prefix command "set/show print raw".
3187 * valprint.h (value_print_options): Improve comments.
3188
3189 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3190 of all *list variables.
3191
3192 * gdbcmd.h (togglelist): Delete.
3193 * cli/cli-cmds.c (togglelist): Delete.
3194 (init_cmd_lists): Update.
3195 * cli/cli-cmds.h (togglelist): Delete.
3196
3197 2013-07-17 Tom Tromey <tromey@redhat.com>
3198
3199 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3200 dwarf2_per_objfile.
3201
3202 2013-07-16 Doug Evans <dje@google.com>
3203
3204 * nto-tdep.c (nto_relocate_section_addresses): Update,
3205 target_section.bfd deleted.
3206 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3207 * s390-tdep.c (s390_load): Ditto.
3208 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3209
3210 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3211
3212 * common/format.c (parse_format_string): Add checks for NULL
3213 character before calling strchr.
3214
3215 2013-07-16 Doug Evans <dje@google.com>
3216
3217 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3218 temp_pathname argument.
3219 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3220 when opening the file fails.
3221
3222 * target.h (struct target_section): Delete member bfd.
3223 All users updated to use the_bfd_section->owner instead.
3224 * exec.c (add_to_section_table): Assert bfd is expected value.
3225 Remove initialization of target_section.bfd.
3226 (remove_target_sections): Update.
3227 (section_table_available_memory): Update.
3228 (section_table_xfer_memory_partial): Update.
3229 (print_section_info): Update.
3230 (exec_set_section_address): Update.
3231 * record-full.c (record_full_core_xfer_partial): Update.
3232 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3233 * solib-target.c (solib_target_relocate_section_addresses): Update.
3234 * symfile.c (build_section_addr_info_from_section_table): Update.
3235 * target.c (memory_xfer_live_readonly_partial): Update.
3236 (memory_xfer_partial_1): Update.
3237
3238 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3239
3240 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3241 now available for embedded (BookE) and server (BookS) processors,
3242 correct mentions of 'booke' and adjust comments accordingly in order to
3243 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3244 (have_ptrace_booke_interface): Rename function and variable
3245 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3246 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3247 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3248 'hwdebug_point_cmp'. Update all uses.
3249 (booke_find_thread_points_by_tid): Rename function
3250 'booke_find_thread_points_by_tid' to
3251 'hwdebug_find_thread_points_by_tid'. Update all uses.
3252 (booke_insert_point): Rename function 'booke_insert_point' to
3253 'hwdebug_insert_point'. Update all uses.
3254 (booke_remove_point): Rename function 'booke_remove_point' to
3255 'hwdebug_remove_point'. Update all uses.
3256
3257 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3258
3259 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3260 numbers with enum values.
3261
3262 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3263
3264 PR threads/13217
3265 * thread.c (thread_apply_all_command): Check for valid threads
3266 and thread count.
3267 (thread_array_cleanup): New struct.
3268 (set_thread_refcount): New function.
3269
3270 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3271
3272 * infcmd.c (default_print_one_register_info): Reuse function
3273 print_hex_chars.
3274
3275 2013-07-10 Tom Tromey <tromey@redhat.com>
3276
3277 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3278 (ada-exp.o): New target.
3279
3280 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3281
3282 * mt-tdep.c (mt_registers_info): Call
3283 get_no_prettyformat_print_options instead of
3284 get_raw_print_options (regression by last patch from Doug
3285 Evans).
3286
3287 2013-07-09 Pedro Alves <palves@redhat.com>
3288
3289 Checked in by Joel Brobecker <brobecker@adacore.com>.
3290 * ada-lang.c (coerce_unspec_val_to_type): Use
3291 value_optimized_out_const.
3292 * value.c (value_optimized_out_const): New function.
3293 * value.h (value_optimized_out_const): New declaration.
3294
3295 2013-07-09 Doug Evans <dje@google.com>
3296
3297 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3298 Enum values rename as well. All uses updated.
3299 * valprint.h (value_print_options): Rename member pretty to
3300 pretty format. Rename member prettyprint_arrays to
3301 prettyformat_arrays. Rename member prettyprint_structs to
3302 prettyformat_structs. All uses updated.
3303 (get_no_prettyformat_print_options): Renamed from
3304 get_raw_print_options.
3305 * valprint.c (get_no_prettyformat_print_options): Renamed from
3306 get_raw_print_options. All callers updated.
3307 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3308 All callers updated.
3309 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3310 All callers updated.
3311 (_initialize_valprint): Improve help text for "set print pretty" and
3312 "set print arrays".
3313
3314 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3315
3316 * value.c (value_bits_valid): Revert previous change, and change
3317 by Pedro on 2013-07-04, due to regressions in
3318 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3319
3320 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3321 Pedro Alves <palves@redhat.com>
3322
3323 * value.c (value_bits_valid): If the value is not lval_computed
3324 or has no check validity handler then the answer is the
3325 optimized_out flag, otherwise defer to the handler.
3326
3327 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3328
3329 * top.c (print_gdb_configuration): Explain in output of
3330 --configuration what does "relocatable" mean.
3331
3332 * main.c (print_gdb_help): Regroup options in the --help text.
3333 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3334 the relevant discussions.
3335
3336 2013-07-06 Yao Qi <yao@codesourcery.com>
3337
3338 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3339 Remove parameter 'lsal'.
3340 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3341 to inner block. Caller update.
3342 (base_breakpoint_create_breakpoints_sal): Update.
3343 (bkpt_create_breakpoints_sal): Likewise.
3344 (tracepoint_create_breakpoints_sal): Likewise.
3345 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3346 element 0 of vector 'canonical->sals'.
3347
3348 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3349
3350 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3351 register number instead of the pseudo register one.
3352 (rs6000_dwarf2_reg_to_regnum): Likewise.
3353
3354 2013-07-04 Pedro Alves <palves@redhat.com>
3355
3356 * findvar.c (value_of_register): Use allocate_optimized_out_value
3357 if the register has been optimized out, instead of
3358 set_value_optimized_out.
3359 * frame-unwind.c (frame_unwind_got_optimized): Use
3360 allocate_optimized_out_value.
3361
3362 2013-07-04 Pedro Alves <palves@redhat.com>
3363
3364 * value.c (value_bits_valid): If the value is not lval_computed,
3365 or doesn't have a check_validity hook, assume the value is entirely
3366 valid.
3367
3368 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3369
3370 * stack.c (read_frame_arg): No longer fetch lazy values.
3371 * value.c (value_optimized_out): If the value is not already
3372 marked optimized out, and is lazy then fetch it.
3373 (value_primitive_field): Move optimized out check to later in the
3374 function, after we have loaded any lazy values.
3375 (value_fetch_lazy): Use optimized out flag directly rather than
3376 calling optimized_out method.
3377
3378 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3379
3380 * valops.c: Don't include "user-regs.h".
3381 (value_fetch_lazy): Moved to value.c.
3382 * value.c: Include "user-regs.h".
3383 (value_fetch_lazy): Moved from valops.c.
3384
3385 2013-07-04 Yao Qi <yao@codesourcery.com>
3386
3387 Revert:
3388 2013-06-27 Yao Qi <yao@codesourcery.com>
3389
3390 * common/create-version.sh: Update comments. Handle the case
3391 that TARGET_ALIAS is empty.
3392
3393 2013-07-03 Pedro Alves <palves@redhat.com>
3394
3395 * Makefile.in (config.status): Depend on development.sh.
3396 (aclocal_m4_deps): Add libmcheck.m4.
3397 * acinclude.m4: Include libmcheck.m4.
3398 * configure.ac: Source development.sh instead of setting
3399 'development' here. --enable-libmcheck/--disable-libmcheck code
3400 factored out to GDB_AC_LIBMCHECK. Run it.
3401 * development.sh: New file.
3402 * libmcheck.m4: New file.
3403 * configure: Regenerate.
3404
3405 2013-07-02 Tom Tromey <tromey@redhat.com>
3406
3407 * contrib/ari/update-web-ari.sh: Update for version.in change.
3408
3409 2013-07-02 Tom Tromey <tromey@redhat.com>
3410
3411 * common/ptid.h: Comment fixes.
3412
3413 2013-07-01 Tom Tromey <tromey@redhat.com>
3414
3415 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3416 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3417 (dwarf2_read_index, create_all_comp_units): Update.
3418
3419 2013-07-01 Tom Tromey <tromey@redhat.com>
3420
3421 * configure.ac (build_warnings): Add -Wold-style-definition.
3422 * configure: Rebuild.
3423 * machoread.c (_initialize_machoread): Use "(void)".
3424 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3425 use "(void)".
3426
3427 2013-07-01 Tom Tromey <tromey@redhat.com>
3428
3429 * configure.ac (build_warnings): Add -Wold-style-declaration.
3430 * configure: Rebuild.
3431 * dsrec.c (make_srec): Use "static const", not "const static".
3432 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3433 not "const static".
3434 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3435 Use "static const", not "const static".
3436 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3437 not "const static".
3438 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3439 not "const static".
3440 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3441 not "const static".
3442 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3443 not "const static".
3444 (v850_dbtrap_breakpoint_from_pc): Likewise.
3445 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3446 not "const static".
3447
3448 2013-07-01 Tom Tromey <tromey@redhat.com>
3449
3450 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3451 * configure: Rebuild.
3452
3453 2013-07-01 Pedro Alves <palves@redhat.com>
3454
3455 * defs.h: Include "pathmax.h".
3456 * utils.c: Don't include sys/param.h.
3457 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3458 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3459 instead of MAXPATHLEN.
3460 * solib-sunos.c: Don't include sys/param.h.
3461 * xcoffread.c: Don't include sys/param.h.
3462 * bsd-kvm.c: Don't include sys/param.h.
3463 * darwin-nat.c: Don't include sys/param.h.
3464 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3465 * darwin-nat-info.c: Don't include sys/param.h.
3466 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3467 MAXPATHLEN.
3468 * i386obsd-nat.c: Don't include sys/param.h.
3469 * inf-child.c: Don't include sys/param.h.
3470 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3471 * linux-fork.c: Don't include sys/param.h.
3472 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3473 * linux-nat.c: Don't include sys/param.h.
3474 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3475 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3476 * m68klinux-nat.c: Don't include sys/param.h.
3477 * nbsd-nat.c: Don't include sys/param.h.
3478 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3479 * ppc-linux-nat.c: Don't include sys/param.h.
3480 * rs6000-nat.c: Don't include sys/param.h.
3481 * spu-linux-nat.c. Don't include sys/param.h.
3482 * windows-nat.c: Don't include sys/param.h.
3483 * xtensa-linux-nat.c: Don't include sys/param.h.
3484 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3485
3486 2013-07-01 Pedro Alves <palves@redhat.com>
3487
3488 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3489 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3490 * gnulib/aclocal.m4: Regenerate.
3491 * gnulib/config.in: Regenerate.
3492 * gnulib/configure: Regenerate.
3493 * gnulib/import/pathmax.h: New file.
3494 * gnulib/import/Makefile.am: Regenerate.
3495 * gnulib/import/Makefile.in: Regenerate.
3496 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3497 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3498 * gnulib/import/m4/pathmax.m4: New file.
3499
3500 2013-07-01 Pedro Alves <palves@redhat.com>
3501
3502 * configure.ac (GDBINIT): Define, depending on host.
3503 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3504 * top.c (PATH_MAX): Delete fallback definition.
3505 (GDBINIT_FILENAME): Delete.
3506 (gdbinit): Reimplement as const char array set to the GDBINIT
3507 string constant.
3508 * top.h (gdbinit): Make const.
3509 * configure, config.in: Regenerate.
3510
3511 2013-07-01 Pedro Alves <palves@redhat.com>
3512
3513 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3514 * cli/cli-cmds.h (source_script): Likewise.
3515 * exceptions.c (catch_command_errors_const): New function.
3516 * exceptions.h (catch_command_errors_const): Declare.
3517 * main.c (get_init_files): Make parameters const, and adjust.
3518 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3519 'local_gdbinit' locals const. Adjust to use
3520 catch_command_errors_const.
3521 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3522 'local_gdbinit' locals const.
3523
3524 2013-07-01 Pedro Alves <palves@redhat.com>
3525
3526 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3527 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3528 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3529 <unistd.h>.
3530
3531 2013-07-01 Pedro Alves <palves@redhat.com>
3532
3533 Import the "unistd" gnulib module.
3534 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3535 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3536 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3537 import/m4/unistd_h.m4.
3538 * gnulib/aclocal.m4: Renenerate.
3539 * gnulib/config.in: Renenerate.
3540 * gnulib/configure: Renenerate.
3541 * gnulib/import/Makefile.am: Renenerate.
3542 * gnulib/import/Makefile.in: Renenerate.
3543 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3544 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3545 * gnulib/import/m4/off_t.m4: New file.
3546 * gnulib/import/m4/ssize_t.m4: New file.
3547 * gnulib/import/m4/sys_types_h.m4: New file.
3548 * gnulib/import/m4/unistd_h.m4: New file.
3549 * gnulib/import/sys_types.in.h: New file.
3550 * gnulib/import/unistd.c: New file.
3551 * gnulib/import/unistd.in.h: New file.
3552
3553 2013-07-01 Pedro Alves <palves@redhat.com>
3554
3555 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3556 defined instead of checking HAVE_UNISTD_H.
3557
3558 2013-07-01 Pedro Alves <palves@redhat.com>
3559
3560 Reimport gnulib from scratch.
3561 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3562 import/m4/onceonly.m4.
3563 * gnulib/aclocal.m4: Renegerate.
3564 * gnulib/config.in: Renegerate.
3565 * gnulib/configure: Renegerate.
3566 * gnulib/import/Makefile.in: Renegerate.
3567 * gnulib/import/extra/update-copyright: Renegerate.
3568 * gnulib/import/m4/onceonly.m4: Delete.
3569
3570 2013-07-01 Pedro Alves <palves@redhat.com>
3571
3572 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3573
3574 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3575
3576 Code cleanup.
3577 * remote.c (async_remote_interrupt_twice): Make it static.
3578 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3579
3580 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3581
3582 * ia64-linux-tdep.c: Include <ctype.h>.
3583 (ia64_linux_stap_is_single_operand): New function.
3584 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3585
3586 2013-06-28 Tom Tromey <tromey@redhat.com>
3587
3588 * Makefile.in (version.c): Use version.in, not
3589 common/version.in.
3590 * common/create-version.sh: Likewise.
3591 * common/version.in: Move...
3592 * version.in: ...here.
3593
3594 2013-06-28 Pedro Alves <palves@redhat.com>
3595
3596 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3597 here.
3598 * utils.h (pagination_enabled): Declare.
3599
3600 2013-06-28 Pedro Alves <palves@redhat.com>
3601
3602 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3603 Move higher up in file.
3604
3605 2013-06-28 Tom Tromey <tromey@redhat.com>
3606
3607 * tracepoint.c (deprecated_readline_begin_hook)
3608 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3609 declare.
3610
3611 2013-06-28 Pedro Alves <palves@redhat.com>
3612
3613 PR tui/14880
3614 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3615 checking if they're available.
3616 * value.c (value_available_contents_eq): Change comment.
3617 * value.h (value_available_contents_eq): Expand comment.
3618
3619 2013-06-27 Tom Tromey <tromey@redhat.com>
3620
3621 * target.c (find_run_target): Remove.
3622 * target.h (find_run_target): Remove.
3623
3624 2013-06-27 Tom Tromey <tromey@redhat.com>
3625
3626 * corelow.c (core_gdbarch): Now static.
3627
3628 2013-06-27 Tom Tromey <tromey@redhat.com>
3629
3630 * target.c (target_struct_index): Remove.
3631
3632 2013-06-27 Pedro Alves <palves@redhat.com>
3633
3634 * infrun.c: Remove comment describing the 'stepping over runtime
3635 loader dynamic symbol resolution code' mechanism; moved to
3636 gdbint.texinfo.
3637
3638 2013-06-27 Pedro Alves <palves@redhat.com>
3639
3640 * exceptions.c (catch_command_errors): Remove spurious space.
3641 * exceptions.h (catch_command_errors): Second parameter is "arg",
3642 not "command".
3643
3644 2013-06-27 Yao Qi <yao@codesourcery.com>
3645
3646 * common/create-version.sh: Update comments. Handle the case
3647 that TARGET_ALIAS is empty.
3648
3649 2013-06-26 Pedro Alves <palves@redhat.com>
3650
3651 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3652 comment.
3653
3654 2013-06-26 Pedro Alves <palves@redhat.com>
3655
3656 * infrun.c: Update comments on stepping over runtime loader
3657 dynamic symbol resolution code.
3658
3659 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3660
3661 * ax-gdb.h (union exp_element): Forward declare.
3662 * parser-defs.h: Include expression.h.
3663
3664 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3665
3666 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3667
3668 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3669
3670 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3671
3672 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3673
3674 Fix trace-status to output proper start-time and stop-time.
3675 * tracepoint.c (trace_status_command): Fix type of printf arg to
3676 prevent improper type conversion.
3677 (trace_status_mi): Likewise.
3678
3679 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3680
3681 * mips-tdep.c (mips_next_pc): Fix a typo.
3682
3683 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3684
3685 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3686
3687 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3688 Yao Qi <yao@codesourcery.com>
3689
3690 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3691 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3692 * mi/mi-main.c (print_variable_or_computed): New function.
3693 (mi_cmd_trace_frame_collected): New function.
3694 * tracepoint.c (find_trace_state_variable_by_number): New.
3695 (struct traceframe_info): Move to tracepoint.h
3696 (struct collection_list): Likewise.
3697 (do_collect_symbol): Include locals and arguments in the
3698 collected variables list.
3699 (clear_collection_list): Clear wholly collected variables list
3700 and computed variables list.
3701 (append_exp): New function.
3702 (encode_actions_1): Include variables in the wholly
3703 collected variables list. Include memory ranges and
3704 full-fledged expressions in the computed expressions list.
3705 (encode_actions): Move some code to ...
3706 Return the cleanup chain.
3707 (encode_actions_rsp): ... here. New function.
3708 (get_traceframe_location, get_traceframe_info): Remove static.
3709 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3710 (struct collection_list): Moved from tracepoint.c. Add two
3711 new fields 'wholly_collected' and 'computed'.
3712 (find_trace_state_variable_by_number): Declare.
3713 (encode_actions): Adjust declaration.
3714 (encode_actions_rsp): Declare.
3715 (get_traceframe_info, get_traceframe_location): Declare.
3716
3717 * NEWS: Mention new MI command -trace-frame-collected.
3718
3719 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3720 Yao Qi <yao@codesourcery.com>
3721
3722 * ctf.c (ctf_traceframe_info): Push trace state variables
3723 present in the trace data into the traceframe info object.
3724 * breakpoint.c (DEF_VEC_I): Remove.
3725 * common/filestuff.c (DEF_VEC_I): Likewise.
3726 * dwarf2loc.c (DEF_VEC_I): Likewise.
3727 * mi/mi-main.c (DEF_VEC_I): Likewise.
3728 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3729 * features/traceframe-info.dtd: Add tvar element and its
3730 attributes.
3731 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3732 (build_traceframe_info): Push trace state variables present in
3733 the trace data into the traceframe info object.
3734 (traceframe_info_start_tvar): New function.
3735 (tvar_attributes): New.
3736 (traceframe_info_children): Add "tvar" element.
3737 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3738
3739 * NEWS: Mention the change in GDB and GDBserver.
3740
3741 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3742 Yao Qi <yao@codesourcery.com>
3743
3744 * tracepoint.c (trace_dump_command): Move code to ...
3745 (get_traceframe_location): ... here. New.
3746
3747 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3748 Yao Qi <yao@codesourcery.com>
3749
3750 * tracepoint.c (trace_dump_command): GDB emits an error
3751 instead of a warning when a traceframe is not selected.
3752
3753 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3754 Yao Qi <yao@codesourcery.com>
3755
3756 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3757 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3758 in collection_list.
3759 (do_clear_collection_list, init_collection_list): New.
3760 (encode_actions): Add local variables 'tracepoint_list' and
3761 'stepping_list'. Call init_collection_list and make cleanup
3762 which calls do_clear_collection_list. Don't call
3763 clear_collection_list.
3764 (_initialize_tracepoint): Delete references to
3765 'tracepoint_list' and 'stepping_list'.
3766
3767 2013-06-25 Tom Tromey <tromey@redhat.com>
3768
3769 * common/create-version.sh (date): Use "$", not "$$" in sed
3770 expression.
3771
3772 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3773
3774 * NEWS (New targets): Add entry for TI MSP430.
3775
3776 2013-06-25 Yao Qi <yao@codesourcery.com>
3777
3778 * remote.c (remote_start_remote): Move code to upload tsv
3779 earlier.
3780
3781 2013-06-25 Yao Qi <yao@codesourcery.com>
3782 Hui Zhu <hui@codesourcery.com>
3783 Pedro Alves <palves@redhat.com>
3784
3785 PR breakpoints/15075
3786 PR breakpoints/15434
3787 * breakpoint.c (bpstat_stop_status): Call
3788 b->ops->after_condition_true.
3789 (update_dprintf_command_list): Don't append "continue" command
3790 to the command list of dprintf breakpoint.
3791 (base_breakpoint_after_condition_true): New function.
3792 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3793 (dprintf_after_condition_true): New function.
3794 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3795 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3796
3797 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3798
3799 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3800 (ALLDEPFILES): Add msp430-tdep.c.
3801 * configure.tgt (msp430*-*-elf): New target.
3802 * msp430-tdep.c: New file.
3803
3804 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3805
3806 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3807 microMIPS synthetic symbols.
3808
3809 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3810
3811 * objfiles.h (pc_in_section): New prototype.
3812 (in_plt_section): Remove name argument, replace prototype with
3813 static inline function.
3814 * mips-tdep.h: Include "objfiles.h".
3815 (in_mips_stubs_section): New function.
3816 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3817 in_solib_call_trampoline member.
3818 (hppa_in_solib_call_trampoline): Remove name argument.
3819 * objfiles.c (pc_in_section): New function.
3820 (in_plt_section): Remove function.
3821 * mips-linux-tdep.c: Include "objfiles.h".
3822 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3823 name argument. Return 1 rather than the low 16-bit halfword of
3824 any instruction examined.
3825 (mips_linux_in_dynsym_resolve_code): Update
3826 mips_linux_in_dynsym_stub call accordingly.
3827 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3828 rather than an equivalent hand-coded sequence.
3829 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3830 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3831 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3832 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3833 in_opd_section.
3834 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3835 on call to tdep->in_solib_call_trampoline.
3836 (hppa_in_solib_call_trampoline): Remove name argument, update
3837 according to in_plt_section change.
3838 (hppa_skip_trampoline_code): Update according to in_plt_section
3839 change.
3840 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3841 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3842 Likewise.
3843 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3844 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3845 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3846 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3847 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3848 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3849 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3850 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3851 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3852 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3853 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3854 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3855 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3856
3857 2013-06-24 Joel Brobecker <brobecker@adacore.com>
3858
3859 * common/create-version.sh: Fix expansion of $host_alias
3860 and $target_alias in generation of HOST_NAME and TARGET_NAME
3861 (resp.).
3862
3863 2013-06-24 Tom Tromey <tromey@redhat.com>
3864
3865 * common/create-version.sh: New file.
3866 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3867 create-version.sh.
3868 (HFILES_NO_SRCDIR): Use common/version.h.
3869 * version.in: Move to ...
3870 * common/version.in: ... here. Replace date with "DATE".
3871 * version.h: Move to ...
3872 * common/version.h: ... here.
3873
3874 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3875
3876 * gdb/gnulib/Makefile.in: Update date in copyright header.
3877 * gdb/gnulib/configure.ac: Ditto.
3878 * gdb/gnulib/update-gnulib.sh: Ditto.
3879
3880 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3881
3882 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3883 "gdb/gnulib/import".
3884
3885 2013-06-21 Will Newton <will.newton@linaro.org>
3886
3887 * doublest.c (ldfrexp): Remove function.
3888 (convert_doublest_to_floatformat): Call frexpl instead of
3889 ldfrexp.
3890
3891 2013-06-21 Will Newton <will.newton@linaro.org>
3892
3893 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3894 * gnulib/aclocal.m4: Regenerate.
3895 * gnulib/config.in: Regenerate.
3896 * gnulib/configure: Regenerate.
3897 * gnulib/import/Makefile.am: Update.
3898 * gnulib/import/Makefile.in: Update.
3899 * gnulib/import/m4/gnulib-cache.m4: Update.
3900 * gnulib/import/m4/gnulib-comp.m4: Update.
3901 * gnulib/import/float+.h: Import.
3902 * gnulib/import/float.c: Import.
3903 * gnulib/import/float.in.h: Import.
3904 * gnulib/import/fpucw.h: Import.
3905 * gnulib/import/frexp.c: Import.
3906 * gnulib/import/frexpl.c: Import.
3907 * gnulib/import/isnan.c: Import.
3908 * gnulib/import/isnand-nolibm.h: Import.
3909 * gnulib/import/isnand.c: Import.
3910 * gnulib/import/isnanl-nolibm.h: Import.
3911 * gnulib/import/isnanl.c: Import.
3912 * gnulib/import/itold.c: Import.
3913 * gnulib/import/m4/exponentd.m4: Import.
3914 * gnulib/import/m4/exponentl.m4: Import.
3915 * gnulib/import/m4/float_h.m4: Import.
3916 * gnulib/import/m4/fpieee.m4: Import.
3917 * gnulib/import/m4/frexp.m4: Import.
3918 * gnulib/import/m4/frexpl.m4: Import.
3919 * gnulib/import/m4/isnand.m4: Import.
3920 * gnulib/import/m4/isnanl.m4: Import.
3921 * gnulib/import/m4/math_h.m4: Import.
3922 * gnulib/import/math.c: Import.
3923 * gnulib/import/math.in.h: Import.
3924
3925 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3926
3927 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3928 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3929 signature_INTEL_edx comparisons.
3930
3931 2013-06-20 Doug Evans <dje@google.com>
3932
3933 symtab/15652
3934 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3935 All callers updated.
3936 (open_dwp_file): If we can't find the dwp file, search the basename
3937 in debug-file-directory.
3938
3939 * dwarf2read.c (struct dwp_file): Fix comment.
3940 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3941
3942 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3943 better.
3944
3945 2013-06-20 Yao Qi <yao@codesourcery.com>
3946
3947 * breakpoint.c (create_breakpoint): Fix code indentation.
3948
3949 2013-06-20 Yao Qi <yao@codesourcery.com>
3950
3951 * breakpoint.c (create_breakpoints_sal_default): Remove
3952 parameter 'lsal'. Update declaration.
3953 (bkpt_create_breakpoints_sal): Caller update.
3954 (tracepoint_create_breakpoints_sal): Likewise.
3955
3956 2013-06-20 Pedro Alves <pedro@codesourcery.com>
3957 Yao Qi <yao@codesourcery.com>
3958
3959 * NEWS: Mention the new option '--skip-unavailable' of command
3960 -data-list-register-values.
3961 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3962 --skip-unavailable option. Adjust to use output_register.
3963 (output_register): Add new 'skip_unavailable' parameter.
3964 Handle it.
3965
3966 2013-06-19 Mike Frysinger <vapier@gentoo.org>
3967
3968 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3969 common/i386-gcc-cpuid.h.
3970 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3971 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3972 Copy the latest version from upstream gcc.
3973 * common/linux-btrace.c: Include i386-cpuid.h.
3974 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3975 call to i386_cpuid.
3976 (cpu_supports_btrace): Likewise.
3977 * go32-nat.c: Include i386-cpuid.h.
3978 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3979
3980 2013-06-19 Doug Evans <dje@google.com>
3981
3982 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3983 (get_section_index): Ditto.
3984
3985 2013-06-19 Tom Tromey <tromey@redhat.com>
3986
3987 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3988 "dprintf" help.
3989
3990 2013-06-18 Doug Evans <dje@google.com>
3991
3992 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3993 before using it.
3994 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3995 Move test of cu_index closer to use. Print complaint if cu_index
3996 is bad.
3997
3998 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3999
4000 * machoread.c (oso_vector): Delete this global.
4001 (macho_register_oso): Add new parameter "oso_vector_ptr".
4002 Use it instead of the "oso_vector" global.
4003 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4004 (macho_symfile_read): Use a local oso_vector, to be free'ed
4005 at the end of this function, in place of the old "oso_vector"
4006 global. Update various function calls accordingly. Use one
4007 single cleanup chain for the entire function.
4008
4009 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4010
4011 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4012 DWARF2_PER_OBJFILE by uses of DATA instead.
4013
4014 2013-06-18 Tom Tromey <tromey@redhat.com>
4015
4016 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4017 argument.
4018 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4019 Special case signals other than GDB_SIGNAL_TRAP.
4020 (explains_signal_watchpoint): New function.
4021 (base_breakpoint_explains_signal): Add 'sig' argument.
4022 (initialize_breakpoint_ops): Set 'explains_signal' method for
4023 watchpoints.
4024 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4025 signal argument.
4026 (bpstat_explains_signal): Likewise.
4027 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4028
4029 2013-06-18 Tom Tromey <tromey@redhat.com>
4030
4031 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4032
4033 2013-06-18 Tom Tromey <tromey@redhat.com>
4034
4035 * python/python.c (finish_python_initialization): Decref
4036 'pythondir' on failure path as well.
4037
4038 2013-06-18 Tom Tromey <tromey@redhat.com>
4039
4040 PR symtab/15391:
4041 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4042 after taking bits_to_skip into account. Sign extend byte_offset.
4043 * utils.h (gdb_sign_extend): Declare.
4044 * utils.c (gdb_sign_extend): New function.
4045
4046 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4047
4048 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4049
4050 2013-06-17 Pierre Muller <muller@sourceware.org>
4051
4052 * corelow.c (core_open): Print GDB signal name instead of target
4053 signal number.
4054
4055 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4056
4057 * .gitignore: Add /gcore.
4058
4059 2013-06-13 Doug Evans <dje@google.com>
4060
4061 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4062 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4063
4064 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4065
4066 * stack.c (backtrace_command_1): Fix indentation.
4067
4068 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4069
4070 * window-nat.c (thread_rec): Add missing empty line after
4071 local variable declaration.
4072
4073 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4074
4075 * windows-nat.c (thread_rec): Revert format used to print
4076 error code returned by SuspendThread from %d back to %u.
4077
4078 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4079
4080 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4081 ID in debug trace.
4082 (get_windows_debug_event): Likewise, for all debug traces.
4083
4084 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4085
4086 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4087 warning message.
4088
4089 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4090 Yao Qi <yao@codesourcery.com>
4091
4092 * mi/mi-main.c (get_register): Remove declaration.
4093 (output_register): Declare.
4094 (mi_cmd_data_list_register_values): Remove local variable
4095 'tuple_cleanup'. Move some code into output_register.
4096 (get_register): Renamed to ...
4097 (output_register): ... this. Output the register's
4098 "number" ui_out tuple here.
4099
4100 2013-06-07 Pedro Alves <palves@redhat.com>
4101
4102 * darwin-nat.c: Fix formating in copyright header.
4103 * darwin-nat.h: Likewise.
4104 * gnu-nat.c: Likewise.
4105 * machoread.c: Likewise.
4106
4107 2013-06-07 Pedro Alves <palves@redhat.com>
4108
4109 PR server/14823
4110 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4111 static. Output a global target description pointer.
4112 (init_registers_${name}): Adjust to initialize a
4113 target description structure.
4114
4115 2013-06-07 Will Newton <will.newton@linaro.org>
4116
4117 * printcmd.c (build_address_symbolic): Call
4118 gdbarch_addr_bits_remove for text minimal symbols.
4119
4120 2013-06-07 Will Newton <will.newton@linaro.org>
4121
4122 * MAINTAINERS: Add myself to Write After Approval.
4123
4124 2013-06-07 Yao Qi <yao@codesourcery.com>
4125
4126 * tracepoint.c (start_tracing): Move code to ...
4127 (trace_reset_local_state): ... here. New.
4128 (disconnect_tracing): Don't call set_current_traceframe,
4129 set_tracepoint_num, and set_traceframe_context. Call
4130 trace_reset_local_state instead.
4131 (tfile_close): Call trace_reset_local_state.
4132 * ctf.c (ctf_close): Likewise.
4133 * remote.c (remote_close): Likewise.
4134 * tracepoint.h (trace_reset_local_state): Declare.
4135
4136 2013-06-06 Doug Evans <dje@google.com>
4137
4138 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4139 and fix header docs.
4140
4141 2013-06-05 Doug Evans <dje@google.com>
4142 Keith Seitz <keiths@redhat.com>
4143
4144 PR 15519
4145 * cp-namespace.c (find_symbol_in_baseclass): Call
4146 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4147 Check result of call to lookup_symbol_static.
4148 Call lookup_static_symbol_aux unconditionally.
4149 Call check_typedef on base types before accessing them.
4150 (cp_lookup_nested_symbol): Fix comment.
4151
4152 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4153
4154 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4155 minimal symbols pointing to function descriptors.
4156
4157 2013-06-05 Tom Tromey <tromey@redhat.com>
4158
4159 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4160
4161 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4162 Pedro Alves <palves@redhat.com>
4163
4164 * remote.c (remote_wait_as): Restore signal handler before returning
4165 when GDB gets a notification.
4166
4167 2013-06-04 Gary Benson <gbenson@redhat.com>
4168
4169 PR 2328
4170 * breakpoint.h (handle_solib_event): Moved function declaration
4171 to solib.h.
4172 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4173 (bpstat_stop_status): Pass new argument to handle_solib_event.
4174 * solib.h (update_solib_breakpoints): New function declaration.
4175 (handle_solib_event): Moved function declaration from
4176 breakpoint.h.
4177 * solib.c (update_solib_breakpoints): New function.
4178 (handle_solib_event): Moved function from breakpoint.c.
4179 Updated to call solib_ops->handle_event if not NULL.
4180 * solist.h (target_so_ops): New fields "update_breakpoints" and
4181 "handle_event".
4182 * infrun.c (set_stop_on_solib_events): New function.
4183 (_initialize_infrun): Use the above for "set
4184 stop-on-solib-events".
4185 (handle_inferior_event): Pass new argument to handle_solib_event.
4186 * solib-svr4.c (probe.h): New include.
4187 (svr4_free_library_list): New forward declaration.
4188 (probe_action): New enum.
4189 (probe_info): New struct.
4190 (probe_info): New static variable.
4191 (NUM_PROBES): New definition.
4192 (svr4_info): New fields "using_xfer", "probes_table" and
4193 "solib_list".
4194 (free_probes_table): New function.
4195 (free_solib_list): New function.
4196 (svr4_pspace_data_cleanup): Free probes table and solib list.
4197 (svr4_copy_library_list): New function.
4198 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4199 (svr4_read_so_list): New parameter "prev_lm".
4200 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4201 (svr4_current_sos): New function.
4202 (probe_and_action): New struct.
4203 (hash_probe_and_action): New function.
4204 (equal_probe_and_action): Likewise.
4205 (register_solib_event_probe): Likewise.
4206 (solib_event_probe_at): Likewise.
4207 (solib_event_probe_action): Likewise.
4208 (solist_update_full): Likewise.
4209 (solist_update_incremental): Likewise.
4210 (disable_probes_interface_cleanup): Likewise.
4211 (svr4_handle_solib_event): Likewise.
4212 (svr4_update_solib_event_breakpoint): Likewise.
4213 (svr4_update_solib_event_breakpoints): Likewise.
4214 (svr4_create_solib_event_breakpoints): Likewise.
4215 (enable_break): Free probes table before creating breakpoints.
4216 Use svr4_create_solib_event_breakpoints to create breakpoints.
4217 (svr4_solib_create_inferior_hook): Free the solib list.
4218 (_initialize_svr4_solib): Initialise
4219 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4220
4221 2013-06-04 Gary Benson <gbenson@redhat.com>
4222
4223 * target.h (target_ops): New field
4224 "to_augmented_libraries_svr4_read".
4225 (target_augmented_libraries_svr4_read): New macro.
4226 * target.c (update_current_target): Handle
4227 to_augmented_libraries_svr4_read.
4228 * remote.c (remote_state): New field
4229 "augmented_libraries_svr4_read".
4230 (remote_augmented_libraries_svr4_read_feature): New function.
4231 (remote_protocol_features): Add entry for
4232 "augmented-libraries-svr4-read".
4233 (remote_augmented_libraries_svr4_read): New function.
4234 (init_remote_ops): Initialize
4235 remote_ops.to_augmented_libraries_svr4_read.
4236
4237 2013-06-04 Gary Benson <gbenson@redhat.com>
4238
4239 * NEWS: Update.
4240
4241 2013-06-04 Gary Benson <gbenson@redhat.com>
4242
4243 * objfiles.h (inhibit_section_map_updates): New function
4244 declaration.
4245 (resume_section_map_updates): Likewise.
4246 (resume_section_map_updates_cleanup): Likewise.
4247 * objfiles.c (objfile_pspace_info): Removed field
4248 "objfiles_changed_p". New fields "new_objfiles_available",
4249 "section_map_dirty" and "inhibit_updates".
4250 (allocate_objfile): Set new_objfiles_available.
4251 (free_objfile): Set section_map_dirty.
4252 (objfile_relocate1): Likewise.
4253 (in_plt_section): Likewise.
4254 (find_pc_section): Update the conditions under which the
4255 section map will be updated.
4256 (inhibit_section_map_updates): New function.
4257 (resume_section_map_updates): Likewise.
4258 (resume_section_map_updates_cleanup): Likewise.
4259
4260 2013-06-04 Gary Benson <gbenson@redhat.com>
4261
4262 * probe.h (get_probe_argument_count): New declaration.
4263 (evaluate_probe_argument): Likewise.
4264 * probe.c (get_probe_argument_count): New function.
4265 (evaluate_probe_argument): Likewise.
4266 (probe_safe_evaluate_at_pc): Use the above new functions.
4267
4268 2013-06-04 Alan Modra <amodra@gmail.com>
4269
4270 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4271 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4272 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4273 target mem reads on optional insns.
4274 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4275 ppc_insns_match_pattern calls.
4276 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4277 Add match for power7 thread safety insns, and new order of
4278 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4279 invocation in comment, and update rest of comment.
4280 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4281 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4282 (ppc64_standard_linkage2_target): Update insn offsets.
4283 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4284 stubs first. Update calls.
4285
4286 2013-06-04 Yao Qi <yao@codesourcery.com>
4287
4288 * solib.c (solib_find): Don't need dir separator if path has
4289 drive spec.
4290
4291 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4292
4293 Revert (indirectly causes a SIGSEGV):
4294 * machoread.c (macho_symfile_read): Assign first cleanup to
4295 'back_to'.
4296
4297 2013-06-03 Yao Qi <yao@codesourcery.com>
4298
4299 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4300 mi-parse.c. Make them static.
4301 (mi_all_values): Likewise.
4302 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4303 mi_parse_print_values. Make it external.
4304 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4305 Remove the declarations.
4306 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4307 * mi/mi-parse.h (mi_parse_print_values): Declare.
4308 * mi/mi-cmd-stack.c: Include mi-parse.h.
4309 (parse_print_values): Remove
4310 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4311 of parse_print_values.
4312 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4313
4314 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4315 Yao Qi <yao@codesourcery.com>
4316
4317 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4318 (encode_actions): Move code to ...
4319 (all_tracepoint_actions_and_cleanup): ... here. New.
4320 (trace_dump_command): Likewise.
4321
4322 2013-05-30 Tom Tromey <tromey@redhat.com>
4323
4324 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4325
4326 2013-05-30 Tom Tromey <tromey@redhat.com>
4327
4328 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4329 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4330 'old_chain' argument. Add 'parser_result' argument.
4331 (gdb_xml_create_parser_and_cleanup): Remove old version.
4332 (gdb_xml_parse_quick): Update.
4333 (xml_process_xincludes): Update.
4334 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4335 declare.
4336
4337 2013-05-30 Tom Tromey <tromey@redhat.com>
4338
4339 * probe.c (collect_probes): Check arguments for NULL before
4340 calling compile_rx_or_error.
4341 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4342 Remove NULL return.
4343
4344 2013-05-30 Tom Tromey <tromey@redhat.com>
4345
4346 * infrun.c (adjust_pc_after_break): Introduce an outer null
4347 cleanup.
4348
4349 2013-05-30 Tom Tromey <tromey@redhat.com>
4350
4351 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4352
4353 2013-05-30 Tom Tromey <tromey@redhat.com>
4354
4355 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4356 for 'old_chain'. Do not check 'head' before processing
4357 cleanups.
4358
4359 2013-05-30 Tom Tromey <tromey@redhat.com>
4360
4361 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4362 "cleanup_tuple".
4363
4364 2013-05-30 Tom Tromey <tromey@redhat.com>
4365
4366 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4367 inner scope. Unconditionally call do_cleanups.
4368
4369 2013-05-30 Tom Tromey <tromey@redhat.com>
4370
4371 * source.c (find_and_open_source): Call do_cleanups.
4372
4373 2013-05-30 Tom Tromey <tromey@redhat.com>
4374
4375 * linux-thread-db.c (thread_db_load_search): Unconditionally
4376 call do_cleanups.
4377
4378 2013-05-30 Tom Tromey <tromey@redhat.com>
4379
4380 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4381 for 'cleanup'; instead use a later one.
4382
4383 2013-05-30 Tom Tromey <tromey@redhat.com>
4384
4385 * python/py-breakpoint.c (bppy_get_commands): Use
4386 explicit, unconditional return.
4387 * python/py-frame.c (frapy_read_var): Likewise.
4388 * python/python.c (gdbpy_decode_line): Likewise.
4389
4390 2013-05-30 Tom Tromey <tromey@redhat.com>
4391
4392 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4393 do_cleanups on all return paths.
4394
4395 2013-05-30 Tom Tromey <tromey@redhat.com>
4396
4397 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4398
4399 2013-05-30 Tom Tromey <tromey@redhat.com>
4400
4401 * stabsread.c (read_struct_type): Call do_cleanups along
4402 all return paths.
4403
4404 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4405
4406 * mips-linux-tdep.c: Adjust formatting throughout.
4407
4408 2013-05-30 Tom Tromey <tromey@redhat.com>
4409
4410 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4411 along all return paths.
4412
4413 2013-05-30 Tom Tromey <tromey@redhat.com>
4414
4415 * symfile.c (find_separate_debug_file): Call do_cleanups
4416 along all return paths.
4417
4418 2013-05-30 Tom Tromey <tromey@redhat.com>
4419
4420 * symtab.c (search_symbols): Introduce a null cleanup for
4421 'retval_chain'.
4422
4423 2013-05-30 Tom Tromey <tromey@redhat.com>
4424
4425 * python/py-value.c (valpy_binop): Call do_cleanups before
4426 exiting loop.
4427
4428 2013-05-30 Tom Tromey <tromey@redhat.com>
4429
4430 * python/py-prettyprint.c (print_children): Remove extra
4431 do_cleanups call.
4432
4433 2013-05-30 Tom Tromey <tromey@redhat.com>
4434
4435 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4436 all return paths.
4437
4438 2013-05-30 Tom Tromey <tromey@redhat.com>
4439
4440 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4441 along all return paths.
4442
4443 2013-05-30 Tom Tromey <tromey@redhat.com>
4444
4445 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4446 call do_cleanups.
4447
4448 2013-05-30 Tom Tromey <tromey@redhat.com>
4449
4450 * varobj.c (c_value_of_root): Call do_cleanups along all
4451 return paths.
4452
4453 2013-05-30 Tom Tromey <tromey@redhat.com>
4454
4455 * tracepoint.c (trace_dump_command): Unconditionally call
4456 do_cleanups.
4457
4458 2013-05-30 Tom Tromey <tromey@redhat.com>
4459
4460 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4461 do_cleanups earlier.
4462
4463 2013-05-30 Tom Tromey <tromey@redhat.com>
4464
4465 * machoread.c (macho_symfile_read): Assign first cleanup to
4466 'back_to'.
4467
4468 2013-05-30 Tom Tromey <tromey@redhat.com>
4469
4470 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4471
4472 2013-05-30 Tom Tromey <tromey@redhat.com>
4473
4474 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4475
4476 2013-05-30 Tom Tromey <tromey@redhat.com>
4477
4478 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4479 call discard_cleanups.
4480 (inf_ptrace_attach): Likewise.
4481
4482 2013-05-30 Tom Tromey <tromey@redhat.com>
4483
4484 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4485 return paths.
4486 (mips_initialize): Likewise.
4487 (common_open): Call do_cleanups.
4488
4489 2013-05-30 Tom Tromey <tromey@redhat.com>
4490
4491 * utils.c (internal_vproblem): Call do_cleanups.
4492
4493 2013-05-30 Tom Tromey <tromey@redhat.com>
4494
4495 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4496
4497 2013-05-30 Tom Tromey <tromey@redhat.com>
4498
4499 * cli/cli-script.c (setup_user_args): Don't return after error.
4500
4501 2013-05-30 Tom Tromey <tromey@redhat.com>
4502
4503 * somread.c (som_symtab_read): Call do_cleanups.
4504
4505 2013-05-30 Tom Tromey <tromey@redhat.com>
4506
4507 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4508
4509 2013-05-30 Tom Tromey <tromey@redhat.com>
4510
4511 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4512 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4513 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4514 * source.c (show_substitute_path_command): Call do_cleanups.
4515 (unset_substitute_path_command, set_substitute_path_command):
4516 Likewise.
4517 * symfile.c (load_command): Call do_cleanups.
4518
4519 2013-05-30 Tom Tromey <tromey@redhat.com>
4520
4521 * contrib/cleanup_check.py: New file.
4522 * contrib/gcc-with-excheck: Add option parsing.
4523
4524 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4525
4526 * windows-nat.c (windows_delete_thread): Add missing space
4527 in cast expression.
4528
4529 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4530
4531 * inferior.c (top level): Include tilde.h.
4532 (add_inferior_command): Call tilde_expand on the value of 'exec'
4533 argument.
4534
4535 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4536 Yao Qi <yao@codesourcery.com>
4537
4538 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4539 Caller update.
4540 (encode_actions): Likewise.
4541 * remote.c (remote_download_tracepoint): Caller update.
4542 * tracepoint.h (encode_actions): Update declaration.
4543
4544 2013-05-30 Pedro Alves <palves@redhat.com>
4545
4546 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4547 pointer.
4548
4549 2013-05-30 Yao Qi <yao@codesourcery.com>
4550
4551 * remote.c (remote_check_symbols): Remove unused parameter
4552 'objfile'.
4553 Declaration update.
4554 (remote_start_remote, remote_new_objfile): Caller update.
4555
4556 2013-05-30 Yao Qi <yao@codesourcery.com>
4557
4558 * mi/mi-cmds.c (mi_cmds): Define MI command
4559 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4560 DEF_MI_CMD_CLI.
4561
4562 2013-05-29 Pedro Alves <palves@redhat.com>
4563
4564 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4565 (remote_insert_watchpoint, remote_remove_watchpoint)
4566 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4567 (remote_verify_memory, compare_sections_command)
4568 (remote_search_memory): Set the general process/thread on the
4569 remote side.
4570
4571 2013-05-29 Pedro Alves <palves@redhat.com>
4572
4573 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4574 (_initialize_aarch64_tdep): Don't call
4575 initialize_tdesc_aarch64_without_fpu.
4576 * features/Makefile (WHICH): Remove reference to
4577 aarch64-without-fpu.
4578 * features/aarch64-without-fpu.c: Delete file.
4579 * regformats/aarch64-without-fpu.dat: Delete file.
4580
4581 2013-05-28 Yao Qi <yao@codesourcery.com>
4582
4583 * tracepoint.c (stringify_collection_list): Remove parameter
4584 'string'.
4585 (encode_actions): Caller update. Remove local variables.
4586
4587 2013-05-24 Yao Qi <yao@codesourcery.com>
4588
4589 * tracepoint.c (TFILE_PID): Remove.
4590 (tfile_open): Don't add thread and inferior.
4591 (tfile_close): Don't set 'inferior_ptid'. Don't call
4592 exit_inferior_silent.
4593 (tfile_thread_alive): Remove.
4594 (init_tfile_ops): Don't set field 'to_thread_alive' of
4595 tfile_ops.
4596
4597 2013-05-23 Doug Evans <dje@google.com>
4598
4599 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4600
4601 2013-05-23 Pedro Alves <palves@redhat.com>
4602
4603 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4604 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4605 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4606 Only define if HAVE_SOCKETS is defined.
4607 * configure.ac: Check for sys/socket.h.
4608 * config.in, configure: Regenerate.
4609
4610 2013-05-23 Pedro Alves <palves@redhat.com>
4611
4612 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4613 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4614 printing uint32_t variables.
4615
4616 2013-05-23 Pedro Alves <palves@redhat.com>
4617
4618 * NEWS: Mention GDBserver range stepping support.
4619
4620 2013-05-23 Yao Qi <yao@codesourcery.com>
4621 Pedro Alves <palves@redhat.com>
4622
4623 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4624 field.
4625 * infcmd.c (step_once, until_next_command): Enable range stepping.
4626 * infrun.c (displaced_step_prepare): Disable range stepping.
4627 (resume): Disable range stepping if stepping over a breakpoint or
4628 we have software watchpoints. If range stepping is enabled,
4629 assert the thread is in the stepping range.
4630 (clear_proceed_status_thread): Clear may_range_step.
4631 (handle_inferior_event): Disable range stepping as soon as we know
4632 the thread that hit the event. Re-enable it whenever we're going
4633 to step with a step range.
4634 * remote.c (struct vCont_action_support) <r>: New field.
4635 (use_range_stepping): New global.
4636 (remote_vcont_probe): Handle 'r' action.
4637 (append_resumption): Append an 'r' action if the thread may range
4638 step.
4639 (show_range_stepping): New function.
4640 (set_range_stepping): New function.
4641 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4642 'set range-stepping' and 'show range-stepping' commands.
4643 * NEWS: Mention range stepping, the new vCont;r action, and the
4644 new "set/show range-stepping" commands.
4645
4646 2013-05-23 Yao Qi <yao@codesourcery.com>
4647 Pedro Alves <palves@redhat.com>
4648
4649 * remote.c (struct vCont_action_support): New struct.
4650 (struct remote_state) <support_vCont_t>: Remove field.
4651 <vCont_actions_support>: New field.
4652 (remote_vcont_probe, remote_stop_ns): Update.
4653
4654 2013-05-23 Yao Qi <yao@codesourcery.com>
4655 Pedro Alves <palves@redhat.com>
4656
4657 * gdbthread.h (pc_in_thread_step_range): New declaration.
4658 * thread.c (pc_in_thread_step_range): New function.
4659 * infrun.c (handle_inferior_event): Use it.
4660
4661 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4662
4663 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4664 of sprintf.
4665
4666 2013-05-22 Keith Seitz <keiths@redhat.com>
4667
4668 * ada-lang.c (is_known_support_routine): Add explicit free of
4669 'func_name' from find_frame_funname.
4670 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4671 for func_name from find_frame_funname.
4672 * python/py-frame.c (frapy_name): Add explicit free of
4673 'name' from find_frame_funname.
4674 * stack.c (find_frame_funname): Add comment explaining that
4675 funcp must be freed by the caller.
4676 Return copy of symbol names instead of pointers.
4677 (print_frame): Add a cleanup for 'funname' from
4678 find_frame_funname.
4679 * stack.h (find_frame_funname): Remove "const" from
4680 'funname' parameter.
4681
4682 2013-05-22 Tom Tromey <tromey@redhat.com>
4683
4684 PR c++/15401:
4685 * c-valprint.c (c_value_print): Use value_addr for
4686 references. Convert back to reference type with value_ref.
4687
4688 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4689
4690 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4691 unloaded DLL, it will be done by handle_solib_event. See
4692 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4693 details.
4694
4695 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4696
4697 * ui-out.c: Create typedef ui_out_level_p and define vector
4698 operations for that type.
4699 (struct ui_out): Use a vector instead of an array.
4700 (current_level): Return level from a vector.
4701 (push_level): Create a level in a vector.
4702 (pop_level): Delete a level in a vector.
4703 (ui_out_new): Create initial level zero level, and store in a
4704 vector.
4705 (ui_out_destroy): Add vector cleanup.
4706
4707 2013-05-22 Pedro Alves <palves@redhat.com>
4708
4709 * python/python-internal.h (gdb_Py_DECREF): Tag with
4710 "ARI: editCase function".
4711
4712 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4713
4714 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4715
4716 2013-05-21 Pedro Alves <palves@redhat.com>
4717
4718 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4719 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4720 * python/py-utils.c (py_decref): Don't check for NULL before
4721 calling Py_DECREF.
4722
4723 2013-05-21 Pedro Alves <palves@redhat.com>
4724
4725 * python/py-utils.c (py_decref): Remove extra braces.
4726 (gdb_pymodule_addobject): Remove extra braces.
4727 * python-internal.h (gdb_Py_DECREF): New static inline function.
4728 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4729
4730 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4731
4732 * breakpoints.c (detach_breakpoints): Do not
4733 detach breakpoints locations with loc_type bp_loc_other.
4734
4735 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4736
4737 Workaround Python 2.6.
4738 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4739 a block.
4740
4741 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4742
4743 Code cleanup: constification.
4744 * solib.c (solib_ops): Make return type and ops variable type const.
4745 (set_solib_ops): Make the new_ops parameter and ops variable const.
4746 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4747 (solib_add, solib_keep_data_in_core, clear_solib)
4748 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4749 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4750 const.
4751 * solib.h (set_solib_ops): Make the new_ops parameter const.
4752
4753 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4754
4755 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4756 variable.
4757 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4758 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4759 (SYSTEM_GDBINIT_FILES): New variables.
4760 (all): Add stamp-system-gdbinit.
4761 (stamp-system-gdbinit): New rule.
4762 (clean-system-gdbinit, install-system-gdbinit)
4763 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4764 (install-only): Add dependency on install-system-gdbinit.
4765 (uninstall): Add dependency on uninstall-system-gdbinit.
4766 (clean): Add dependency on clean-system-gdbinit.
4767 * system-gdbinit/elinos.py: New file.
4768 * system-gdbinit/wrs-linux.py: New file.
4769
4770 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4771
4772 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4773
4774 2013-05-21 Hui Zhu <hui@codesourcery.com>
4775
4776 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4777 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4778 * mi/mi-cmd-break.c (ctype.h): New include.
4779 (gdb_obstack.h): New include.
4780 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4781 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4782 (mi_cmd_dprintf_insert): New.
4783 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4784 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4785
4786 2013-05-20 Tom Tromey <tromey@redhat.com>
4787
4788 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4789
4790 2013-05-20 Tom Tromey <tromey@redhat.com>
4791
4792 * python/py-value.c (valpy_get_dynamic_type): Simplify
4793 dynamic_type assignment. Use Py_XINCREF.
4794
4795 2013-05-20 Tom Tromey <tromey@redhat.com>
4796
4797 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4798
4799 2013-05-20 Tom Tromey <tromey@redhat.com>
4800
4801 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4802 (gdbpy_selected_frame): Move object-construction code
4803 out of TRY_CATCH.
4804
4805 2013-05-20 Tom Tromey <tromey@redhat.com>
4806
4807 * python/py-arch.c (gdbpy_initialize_arch): Use
4808 gdb_pymodule_addobject.
4809 * python/py-block.c (gdbpy_initialize_blocks): Use
4810 gdb_pymodule_addobject.
4811 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4812 gdb_pymodule_addobject.
4813 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4814 gdb_pymodule_addobject.
4815 * python/py-event.c (gdbpy_initialize_event_generic): Use
4816 gdb_pymodule_addobject.
4817 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4818 gdb_pymodule_addobject.
4819 * python/py-evts.c (add_new_registry): Use
4820 gdb_pymodule_addobject.
4821 (gdbpy_initialize_py_events): Likewise.
4822 * python/py-finishbreakpoint.c
4823 (gdbpy_initialize_finishbreakpoints): Use
4824 gdb_pymodule_addobject.
4825 * python/py-frame.c (gdbpy_initialize_frames): Use
4826 gdb_pymodule_addobject.
4827 * python/py-function.c (gdbpy_initialize_functions): Use
4828 gdb_pymodule_addobject.
4829 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4830 gdb_pymodule_addobject.
4831 * python/py-infthread.c (gdbpy_initialize_thread): Use
4832 gdb_pymodule_addobject.
4833 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4834 gdb_pymodule_addobject.
4835 * python/py-param.c (gdbpy_initialize_parameters): Use
4836 gdb_pymodule_addobject.
4837 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4838 gdb_pymodule_addobject.
4839 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4840 gdb_pymodule_addobject.
4841 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4842 gdb_pymodule_addobject.
4843 * python/py-type.c (gdbpy_initialize_types): Use
4844 gdb_pymodule_addobject.
4845 * python/py-utils.c (gdb_pymodule_addobject): New function.
4846 * python/py-value.c (gdbpy_initialize_values): Use
4847 gdb_pymodule_addobject.
4848 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4849 * python/python.c (_initialize_python): Use
4850 gdb_pymodule_addobject.
4851
4852 2013-05-20 Tom Tromey <tromey@redhat.com>
4853
4854 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4855 * python/py-param.c (get_set_value, get_show_value): Use
4856 explicit decrefs.
4857 * python/python.c (start_type_printers, apply_type_printers):
4858 Use explicit decrefs.
4859
4860 2013-05-20 Tom Tromey <tromey@redhat.com>
4861
4862 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4863 incref the module.
4864
4865 2013-05-20 Tom Tromey <tromey@redhat.com>
4866
4867 * python/python.c (gdbpy_run_events): Decref the result
4868 of PyObject_CallObject.
4869
4870 2013-05-20 Tom Tromey <tromey@redhat.com>
4871
4872 * python/py-symtab.c (set_sal): Use
4873 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4874 (symtab_and_line_to_sal_object): Update.
4875
4876 2013-05-20 Tom Tromey <tromey@redhat.com>
4877
4878 * python/py-param.c (compute_enum_values): Decref 'item'.
4879
4880 2013-05-20 Tom Tromey <tromey@redhat.com>
4881
4882 * mi/mi-main.c: Include python-internal.h.
4883 (mi_cmd_list_features): Check gdb_python_initialized.
4884 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4885 (python_inferior_exit, python_new_objfile, add_thread_object)
4886 (delete_thread_object, py_free_inferior): Check
4887 gdb_python_initialized.
4888 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4889 gdb_python_initialized.
4890 * python/py-type.c (save_objfile_types): Check
4891 gdb_python_initialized.
4892 * python/python-internal.h (gdb_python_initialized): Declare.
4893 * python/python.c (ensure_python_env): Throw exception if
4894 Python not initialized.
4895 (before_prompt_hook, source_python_script_for_objfile)
4896 (start_type_printers, apply_type_printers,
4897 free_type_printers): Check gdb_python_initialized.
4898 * varobj.c (varobj_get_display_hint)
4899 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4900 (install_new_value_visualizer, varobj_set_visualizer)
4901 (value_get_print_value): Check gdb_python_initialized.
4902
4903 2013-05-20 Tom Tromey <tromey@redhat.com>
4904
4905 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4906 Check errors.
4907 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4908 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4909 Check errors.
4910 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4911 Check errors.
4912 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4913 Check errors.
4914 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4915 Check errors.
4916 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4917 init function to return 'int'.
4918 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4919 Return 'int'. Check errors.
4920 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4921 Check errors.
4922 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4923 Return 'int'. Check errors.
4924 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4925 Check errors.
4926 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4927 Check errors.
4928 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4929 Check errors.
4930 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4931 Check errors.
4932 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4933 Check errors.
4934 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4935 Check errors.
4936 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4937 Check errors.
4938 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4939 Check errors.
4940 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4941 Check errors.
4942 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4943 Check errors.
4944 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4945 Check errors.
4946 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4947 Check errors.
4948 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4949 Check errors.
4950 * python/python-internal.h (gdbpy_initialize_auto_load,
4951 gdbpy_initialize_values, gdbpy_initialize_frames,
4952 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4953 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4954 gdbpy_initialize_blocks, gdbpy_initialize_types,
4955 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4956 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4957 gdbpy_initialize_finishbreakpoints,
4958 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4959 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4960 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4961 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4962 gdbpy_initialize_signal_event,
4963 gdbpy_initialize_breakpoint_event,
4964 gdbpy_initialize_continue_event,
4965 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4966 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4967 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4968 * python/python.c (gdb_python_initialized): New global.
4969 (gdbpy_initialize_events): Return 'int'. Check errors.
4970 (_initialize_python): Check errors. Set
4971 gdb_python_initialized.
4972
4973 2013-05-20 Tom Tromey <tromey@redhat.com>
4974
4975 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4976 Decref the reslut of PyObject_CallMethod.
4977
4978 2013-05-20 Tom Tromey <tromey@redhat.com>
4979
4980 * python/py-event.c (gdbpy_initialize_event_generic): Return
4981 early if PyType_Ready fails.
4982
4983 2013-05-20 Tom Tromey <tromey@redhat.com>
4984
4985 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4986 as 'default' in the switch.
4987
4988 2013-05-20 Tom Tromey <tromey@redhat.com>
4989
4990 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4991 get_addr_from_python calls out of TRY_CATCH.
4992 (infpy_write_memory, infpy_search_memory): Likewise.
4993 * python/py-utils.c (get_addr_from_python): Return negative
4994 value on error. Use TRY_CATCH.
4995 * python/python-internal.h (get_addr_from_python): Use
4996 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4997
4998 2013-05-20 Tom Tromey <tromey@redhat.com>
4999
5000 * python/py-event.c (evpy_emit_event): Decref the
5001 result of PyObject_CallFunctionObjArgs.
5002
5003 2013-05-20 Tom Tromey <tromey@redhat.com>
5004
5005 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5006 Correctly decref.
5007
5008 2013-05-20 Tom Tromey <tromey@redhat.com>
5009
5010 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5011
5012 2013-05-20 Tom Tromey <tromey@redhat.com>
5013
5014 * python/py-event.h (gdbpy_initialize_event_generic): Use
5015 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5016 * python/py-evts.c (add_new_registry): Use
5017 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5018 * python/python-internal.h
5019 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5020
5021 2013-05-20 Tom Tromey <tromey@redhat.com>
5022
5023 * python/py-arch.c (archpy_disassemble): Update.
5024 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5025 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5026 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5027 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5028 macro.
5029 (GDB_PY_HANDLE_EXCEPTION): Update.
5030 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5031
5032 2013-05-20 Tom Tromey <tromey@redhat.com>
5033
5034 * python/python-internal.h (events_object_type): Remove.
5035
5036 2013-05-20 Tom Tromey <tromey@redhat.com>
5037
5038 * python/py-event.h (evpy_emit_event): Use
5039 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5040 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5041 New macro.
5042
5043 2013-05-20 Tom Tromey <tromey@redhat.com>
5044
5045 * py-evtregistry.c (create_event_object): Decref
5046 eventregistry_object if PyList_New fails.
5047
5048 2013-05-20 Tom Tromey <tromey@redhat.com>
5049
5050 * py-cmd.c (gdbpy_string_to_argv): Check result of
5051 PyList_New.
5052
5053 2013-05-20 Tom Tromey <tromey@redhat.com>
5054
5055 * python/python.c (before_prompt_hook): Add cleanup to
5056 decref 'hook'.
5057
5058 2013-05-20 Tom Tromey <tromey@redhat.com>
5059
5060 * python/py-function.c (fnpy_init): Decref result of
5061 PyObject_GetAttrString.
5062
5063 2013-05-20 Tom Tromey <tromey@redhat.com>
5064
5065 * python/py-threadevent.c (get_event_thread): Use
5066 CPYCHECKER_RETURNS_BORROWED_REF.
5067 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5068 New define.
5069 (pspace_to_pspace_object, objfile_to_objfile_object)
5070 (find_thread_object): Use it.
5071
5072 2013-05-20 Tom Tromey <tromey@redhat.com>
5073
5074 * python/py-arch.c (arch_object_type): Use
5075 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5076 * python/py-block.c (block_syms_iterator_object_type):
5077 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5078 * python/py-bpevent.c (breakpoint_event_object_type):
5079 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5080 * python/py-cmd.c (cmdpy_object_type): Use
5081 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5082 * python/py-continueevent.c (continue_event_object_type):
5083 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5084 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5085 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5086 * python/py-events.h (thread_event_object_type):
5087 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5088 * python/py-evtregistry.c (eventregistry_object_type): Use
5089 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5090 * python/py-exitedevent.c (exited_event_object_type):
5091 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5092 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5093 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5094 * python/py-function.c (fnpy_object_type): Use
5095 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5096 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5097 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5098 * python/py-infthread.c (thread_object_type): Use
5099 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5100 * python/py-lazy-string.c (lazy_string_object_type):
5101 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5102 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5103 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5104 * python/py-objfile.c (objfile_object_type): Use
5105 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5106 * python/py-param.c (parmpy_object_type):
5107 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5108 * python/py-progspace.c (pspace_object_type):
5109 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5110 * python/py-signalevent.c (signal_event_object_type):
5111 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5112 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5113 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5114 * python/py-type.c (type_object_type, field_object_type)
5115 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5116 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5117 define.
5118 (value_object_type, block_object_type, symbol_object_type)
5119 (event_object_type, stop_event_object_type, breakpoint_object_type)
5120 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5121
5122 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5123
5124 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5125 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5126
5127 2013-05-20 Doug Evans <dje@google.com>
5128
5129 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5130 For Fission.
5131 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5132 reading_dwo_directly.
5133 (struct signatured_type): New member dwo_unit.
5134 (struct die_reader_specs): New member comp_dir.
5135 (create_signatured_type_table_from_index): Use malloc for
5136 all_type_units instead of objfile's obstack.
5137 (create_all_type_units): Ditto.
5138 (fill_in_sig_entry_from_dwo_entry): New function.
5139 (add_type_unit): New function.
5140 (lookup_dwo_signatured_type): New function.
5141 (lookup_dwp_signatured_type): New function.
5142 (lookup_signatured_type): New arg cu. All callers updated.
5143 (init_cu_die_reader): Initialize comp_dir.
5144 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5145 Change assert of matching type signatures to call error on mismatch.
5146 (lookup_dwo_unit): Add assert.
5147 (init_tu_and_read_dwo_dies): New function.
5148 (init_cutu_and_read_dies): Call it.
5149 (build_type_unit_groups): Handle case of no type unit groups created.
5150 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5151 (lookup_dwo_cutu): Tweak complaint.
5152 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5153 (dwarf2_per_objfile_free): Free all_type_units.
5154
5155 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5156
5157 * windows-nat.c (handle_unload_dll): Add missing empty line.
5158
5159 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5160
5161 * dwarf2read.c (prototyped_function_p): New function.
5162 (read_subroutine_type): Use it.
5163
5164 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5165
5166 * rs6000-aix-tdep.c: De-indent some example code provided
5167 as a comment.
5168
5169 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5170
5171 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5172 region is ok for a hardware watchpoint using the new ptrace interface
5173 on Power servers.
5174
5175 2013-05-17 Doug Evans <dje@google.com>
5176
5177 * NEWS: Mention new maintenance commands check-symtabs, and
5178 expand-symtabs, and renamed check-psymtabs.
5179 * psymtab.c (maintenance_check_psymtabs): Renamed from
5180 maintenance_check_symtabs. Only process already-expanded symbol
5181 tables.
5182 (_initialize_psymtab): Update.
5183 * symmisc.c (maintenance_check_symtabs): New function.
5184 (maintenance_expand_name_matcher): New function
5185 (maintenance_expand_file_matcher): New function
5186 (maintenance_expand_symtabs): New function.
5187 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5188 commands.
5189
5190 2013-05-17 Tom Tromey <tromey@redhat.com>
5191
5192 * python/py-inferior.c (infpy_read_memory): Don't call
5193 PyErr_SetString if PyObject_New fails.
5194 * python/py-frame.c (frame_info_to_frame_object): Don't call
5195 PyErr_SetString if PyObject_New fails.
5196
5197 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5198
5199 * acinclude.m4: Add check for dlopen in libdl.
5200 * configure.ac: Ditto.
5201 * configure: Regenerate.
5202
5203 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5204
5205 * frame.c (frame_stash): Convert to htab.
5206 (frame_addr_hash): New function.
5207 (frame_addr_hash_eq): New function.
5208 (frame_stash_create): Convert function to create
5209 a hash table.
5210 (frame_stash_add): Convert function to add an entry to a hash
5211 table.
5212 (frame_stash_find): Convert function to search the hash table.
5213 (frame_stash_invalidate): Convert function to empty the hash
5214 table.
5215 (get_frame_id): Only add to stash if a frame_id is created.
5216 (_initialize_frame): Call frame_stash_create.
5217
5218 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5219
5220 * configure.ac: Ensure MIG is available when building for GNU Hurd
5221 hosts.
5222 * configure: Regenerate.
5223
5224 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5225
5226 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5227
5228 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5229
5230 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5231 all cleanups are done before returning from this function.
5232
5233 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5234
5235 * utils.h: #include "exceptions.h".
5236 (enum errors): Remove partial declaration.
5237
5238 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5239
5240 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5241 * gdbarch.h, gdbarch.c: Regenerate.
5242 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5243 handling.
5244
5245 * rs6000-aix-tdep.h: New file.
5246 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5247 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5248 "xml-utils.h".
5249 (struct field_info, struct ld_info_desc): New types.
5250 (ld_info32_desc, ld_info64_desc): New static constants.
5251 (struct ld_info): New type.
5252 (rs6000_aix_extract_ld_info): New function.
5253 (rs6000_aix_shared_library_to_xml): Likewise.
5254 (rs6000_aix_ld_info_to_xml): Likewise.
5255 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5256 (rs6000_aix_init_osabi): Add call to
5257 set_gdbarch_core_xfer_shared_libraries_aix.
5258 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5259 Remove "xml-utils.h" include.
5260 (LdInfo): Delete typedef.
5261 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5262 Delete macros.
5263 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5264 Adjust code accordingly.
5265 (rs6000_core_ldinfo): Delete, folded into
5266 rs6000_aix_core_xfer_shared_libraries_aix.
5267 (rs6000_xfer_shared_library): Delete.
5268 (rs6000_xfer_shared_libraries): Reimplement.
5269
5270 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5271
5272 * record.c (record_goto_cmdlist): New.
5273 (cmd_record_goto): Split into this ...
5274 (cmd_record_goto_begin): ... this
5275 (cmd_record_goto_end): ... and this.
5276 (_initialize_record): Change "record goto" to prefix command.
5277 Add commands for "record goto begin" and "record goto end".
5278 Add an alias for "record goto start" to "record goto begin".
5279
5280 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5281
5282 * linespec.c (convert_linespec_to_sals): New comment for
5283 SOURCE_FILENAME assignment.
5284
5285 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5286
5287 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5288 internal_warning.
5289
5290 2013-05-14 Tom Tromey <tromey@redhat.com>
5291
5292 * eval.c (parse_and_eval_long): Make 'exp' const.
5293 * value.h (parse_and_eval_long): Update.
5294
5295 2013-05-14 Tom Tromey <tromey@redhat.com>
5296
5297 * ui-file.c (gdb_fopen): Make arguments const.
5298 * ui-file.h (gdb_fopen): Make arguments const.
5299
5300 2013-05-14 Tom Tromey <tromey@redhat.com>
5301
5302 * remote.c (remote_set_trace_notes): Make arguments const.
5303 * target.c (update_current_target): Update cast.
5304 * target.h (to_set_trace_notes): Make arguments const.
5305
5306 2013-05-14 Tom Tromey <tromey@redhat.com>
5307
5308 * go32-nat.c (go32_terminal_info): Make 'args' const.
5309 * inferior.h (child_terminal_info): Update.
5310 * inflow.c (child_terminal_info): Make 'args' const.
5311 * target.c (default_terminal_info): Make 'args' const.
5312 (debug_to_terminal_save_ours): Likewise.
5313 * target.h (struct target_ops) <to_terminal_info>: Make argument
5314 const.
5315
5316 2013-05-13 Tom Tromey <tromey@redhat.com>
5317
5318 * gcore.c (create_gcore_bfd): Make 'filename' const.
5319 * gcore.h (create_gcore_bfd): Make 'filename' const.
5320 * record-full.c (record_full_save): Make 'recfilename' const.
5321 * target.c (target_save_record): Make 'filename' const.
5322 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5323 const.
5324 (target_save_record): Likewise.
5325
5326 2013-05-13 Tom Tromey <tromey@redhat.com>
5327
5328 PR gdb/15338:
5329 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5330 ranges section has been read.
5331
5332 2013-05-13 Tom Tromey <tromey@redhat.com>
5333
5334 PR exp/15364:
5335 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5336 STRUCTOP_PTR>: Return a not_lval value for
5337 EVAL_AVOID_SIDE_EFFECTS.
5338 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5339 for EVAL_AVOID_SIDE_EFFECTS.
5340
5341 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5342
5343 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5344 floating point registers to register type before storing
5345 value.
5346 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5347 Likewise.
5348
5349 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5350 Tom Tromey <tromey@redhat.com>
5351
5352 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5353 New functions.
5354 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5355 Declare.
5356 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5357 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5358 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5359 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5360
5361 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5362 Tom Tromey <tromey@redhat.com>
5363
5364 PR build/15414:
5365 * configure: Rebuild.
5366 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5367 with -Wno-format.
5368
5369 2013-05-10 Pedro Alves <palves@redhat.com>
5370
5371 * remote.c (_initialize_remote): Fix spelling of
5372 qXfer:traceframe-info:read packet in packet config command.
5373
5374 2013-05-10 David Taylor <dtaylor@emc.com>
5375
5376 PR remote/15455
5377
5378 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5379 "QTro" at start of packet.
5380
5381 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5382
5383 * solib-aix.c (solib_aix_relocate_section_addresses):
5384 For the .bss section action, apply the same offset as
5385 the .data section.
5386
5387 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5388
5389 * solib-aix.c (solib_aix_relocate_section_addresses):
5390 Remove FIXME comment.
5391
5392 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5393
5394 PR tdep/15420:
5395 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5396 New functions, directly copied from sparc-sol-thread.c.
5397 * sparc-sol-thread.c: Delete.
5398 * configure.ac: Remove code handling sparc-solaris-thread.c.
5399 * configure: Regenerate.
5400
5401 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5402
5403 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5404 filter logic.
5405 (backtrace_command): Add "no-filters" option parsing.
5406 (_initialize_stack): Alter help to reflect "no-filters" option.
5407 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5408 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5409 (py-frame.o): Add target
5410 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5411 filter files.
5412 * python/python.h: Add new frame filter constants, and flag enum.
5413 (apply_frame_filter): Add definition.
5414 * python/python.c (apply_frame_filter): New non-Python
5415 enabled function.
5416 * python/py-utils.c (py_xdecref): New function.
5417 (make_cleanup_py_xdecref): Ditto.
5418 * python/py-objfile.c: Declare frame_filters dictionary.
5419 (objfpy_dealloc): Add frame_filters dealloc.
5420 (objfpy_new): Initialize frame_filters attribute.
5421 (objfile_to_objfile_object): Ditto.
5422 (objfpy_get_frame_filters): New function.
5423 (objfpy_set_frame_filters): New function.
5424 * python/py-progspace.c: Declare frame_filters dictionary.
5425 (pspy_dealloc): Add frame_filters dealloc.
5426 (pspy_new): Initialize frame_filters attribute.
5427 (pspacee_to_pspace_object): Ditto.
5428 (pspy_get_frame_filters): New function.
5429 (pspy_set_frame_filters): New function.
5430 * python/py-framefilter.c: New file.
5431 * python/lib/gdb/command/frame_filters.py: New file.
5432 * python/lib/gdb/frames.py: New file.
5433 * python/lib/gdb/__init__.py: Initialize global frame_filters
5434 dictionary
5435 * python/lib/gdb/FrameDecorator.py: New file.
5436 * python/lib/gdb/FrameIterator.py: New file.
5437 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5438 * mi/mi-cmds.h: Declare.
5439 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5440 --no-frame-filter logic, and Python frame filter logic.
5441 (stack_enable_frame_filters): New function.
5442 (parse_no_frame_option): Ditto.
5443 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5444 filter logic.
5445 (mi_cmd_stack_list_locals): Ditto.
5446 (mi_cmd_stack_list_args): Ditto.
5447 (mi_cmd_stack_list_variables): Ditto.
5448 * NEWS: Add frame filter note.
5449
5450 2013-05-09 Doug Evans <dje@google.com>
5451
5452 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5453 All callers updated.
5454 (syms_from_objfile): Ditto. Make static.
5455 (symbol_file_add_with_addrs): Renamed from
5456 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5457 num_offsets. All callers updated.
5458 * symfile.h (syms_from_objfile): Delete.
5459
5460 * symfile.c (decrement_reading_symtab): Add assert.
5461 (increment_reading_symtab): Ditto.
5462
5463 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5464
5465 * source.c (forward_search_command): Replace call to getc
5466 by call to fgetc.
5467 (reverse_search_command): Likewise.
5468
5469 2013-05-08 Doug Evans <dje@google.com>
5470
5471 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5472 matching test.
5473
5474 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5475
5476 * sol-thread.c (info_cb): Factorize the code a little.
5477
5478 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5479
5480 * sol-thread.c (info_cb): Rework the output of the "maintenance
5481 info sol-threads" command a bit.
5482
5483 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5484
5485 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5486 Replace ti.ti_startfunc by ti.ti_pc.
5487
5488 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5489
5490 * solib-aix.c (solib_aix_free_library_list): New function
5491 for the case where HAVE_LIBEXPAT is not defined.
5492
5493 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5494
5495 PR breakpoints/15413:
5496 * breakpoint.c (condition_completer): Simplify the code to
5497 disconsider multiple locations of breakpoints when completing the
5498 "condition" command.
5499
5500 2013-05-07 Pierre Muller <muller@sourceware.org>
5501
5502 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5503 instead of <sys/wait.h>.
5504
5505 2013-05-07 Pierre Muller <muller@sourceware.org>
5506
5507 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5508 trailing new line from warning message.
5509
5510 2013-05-07 Pierre Muller <muller@sourceware.org>
5511
5512 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5513 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5514
5515 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5516
5517 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5518 error message (ARI fix).
5519
5520 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5521
5522 * features/library-list-aix.dtd: Replace library-list by
5523 library-list-aix.
5524 * rs6000-nat.c: Replace library-list by library-list-aix
5525 throughout.
5526 * solib-aix.c: Likewise.
5527
5528 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5529
5530 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5531 Renames TARGET_OBJECT_AIX_LIBRARIES.
5532 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5533 TARGET_OBJECT_LIBRARIES_AIX throughout.
5534 * solib-aix.c: Likwise.
5535
5536 2013-05-07 Yao Qi <yao@codesourcery.com>
5537
5538 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5539 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5540
5541 2013-05-07 Yao Qi <yao@codesourcery.com>
5542
5543 * solib-dsbt.c (enable_break): Declare.
5544 (dsbt_current_sos): Remove call to enable_break2.
5545 (enable_break2): Rename to enable_break. Set solib breakpoint
5546 on '_dl_debug_state'.
5547 (enable_break): Remove.
5548
5549 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5550
5551 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5552 debug state prior to replicating existing hardware watchpoints or
5553 breakpoints.
5554
5555 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5556
5557 * gcore.c (gcore_create_callback): Ignore sections with
5558 separate_debug_objfile_backlink != NULL.
5559
5560 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5561 Andrew Jenner <andrew@codesourcery.com>
5562 Chung-Lin Tang <cltang@codesourcery.com>
5563 Julian Brown <julian@codesourcery.com>
5564
5565 Based on the nios2-elf port from Altera Corporation.
5566
5567 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5568 nios2-linux-tdep.o.
5569 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5570 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5571 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5572 * nios2-tdep.h: New.
5573 * nios2-tdep.c: New.
5574 * nios2-linux-tdep.c: New.
5575 * features/Makefile (WHICH): Add nios2-linux.
5576 (nios2-linux-expedite): Set.
5577 * features/nios2-cpu.xml: New.
5578 * features/nios2.xml: New.
5579 * features/nios2-linux.xml: New.
5580 * features/nios2.c: New (autogenerated).
5581 * features/nios2-linux.c: New (autogenerated).
5582 * regformats/nios2-linux.dat: New (autogenerated).
5583 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5584 and commands.
5585
5586 2013-05-06 Doug Evans <dje@google.com>
5587
5588 * symfile.c: Whitespace cleanup.
5589
5590 * solist.h (struct target_so_ops): New member clear_so.
5591 * solib-svr4.c (svr4_clear_so): New function.
5592 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5593 * solib.c (clear_so): Renamed from free_so_symbols.
5594 All callers updated. Call target clear_so if it exists.
5595
5596 2013-05-06 Tom Tromey <tromey@redhat.com>
5597
5598 * ada-lang.c (ada_value_primitive_packed_val): Don't
5599 call value_incref.
5600 * value.c (set_value_parent): Incref the new parent and decref
5601 the old parent.
5602 (value_copy, value_primitive_field): Use set_value_parent.
5603
5604 2013-05-06 Tom Tromey <tromey@redhat.com>
5605
5606 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5607 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5608 if needed.
5609 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5610 * dwarf2read.c (write_constant_as_bytes)
5611 (dwarf2_fetch_constant_bytes): New functions.
5612
5613 2013-05-06 Tom Tromey <tromey@redhat.com>
5614
5615 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5616 parameters.
5617 (dwarf2_const_value_attr): Update.
5618
5619 2013-05-06 Tom Tromey <tromey@redhat.com>
5620
5621 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5622 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5623 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5624 Remove declaration.
5625
5626 2013-05-06 Tom Tromey <tromey@redhat.com>
5627
5628 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5629 objfile's obstack.
5630
5631 2013-05-06 Doug Evans <dje@google.com>
5632
5633 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5634 * stabsread.h (process_one_symbol): Update declaration.
5635 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5636 * elfread.c (elf_symfile_relocate_probe): Ditto.
5637 * psymtab.c (relocate_psymtabs): Ditto.
5638 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5639 (objfile_relocate): Ditto.
5640 * objfiles.h (objfile_relocate): Update declaration.
5641 * symfile.c (relative_addr_info_to_section_offsets): Constify
5642 addrs parameter.
5643 (default_symfile_offsets): Ditto.
5644 (syms_from_objfile_1): Constify offsets parameter.
5645 (syms_from_objfile): Ditto.
5646 (symbol_file_add_with_addrs_or_offsets): Ditto.
5647 (symfile_map_offsets_to_segments): Constify data parameter.
5648 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5649 delta parameters of member relocate.
5650 (struct sym_probe_fns): Constify new_offsets,
5651 delta parameters of member sym_relocate_probe.
5652 (struct sym_fns): Constify section_addr_info parameter of member
5653 sym_offsets.
5654 (relative_addr_info_to_section_offsets): Update declaration.
5655 (default_symfile_offsets): Ditto.
5656 (syms_from_objfile): Ditto.
5657 (symfile_map_offsets_to_segments): Ditto.
5658
5659 * symfile.c (syms_from_objfile_1): Use correct section count when
5660 objfile->sf == NULL.
5661
5662 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5663
5664 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5665
5666 2013-05-06 Doug Evans <dje@google.com>
5667
5668 * psympriv.h (struct partial_symtab): Augment comment for member
5669 section_offsets.
5670
5671 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5672
5673 Reimplement shared library support on ppc-aix...
5674 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5675 * features/library-list-aix.dtd: New file.
5676 * solib-aix.h, solib-aix.c: New file.
5677 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5678 (rs6000_find_toc_address_hook): Delete.
5679 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5680 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5681 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5682 "xml-utils.h".
5683 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5684 (vmap_symtab, fixup_breakpoints): Delete.
5685 (rs6000_xfer_shared_libraries): New function.
5686 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5687 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5688 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5689 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5690 (rs6000_xfer_shared_library): New function.
5691 (find_toc_address): Delete.
5692 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5693 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5694 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5695 before creating minimal symbol. Adjust function description
5696 accordingly.
5697 (scan_xcoff_symtab): Replace call to
5698 prim_record_minimal_symbol_and_info by call to
5699 record_minimal_symbol.
5700 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5701 around default_symfile_offsets.
5702 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5703 powerpc-aix targets.
5704 * config/rs6000/nm-rs6000.h: Delete.
5705 * config/powerpc/aix.mh (NAT_FILE): Delete.
5706 (NATDEPFILES): Remove xcoffsolib.o.
5707 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5708 (ALL_TARGET_OBS): Add solib-aix.o.
5709 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5710 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5711 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5712 * xcoffsolib.h, xcoffsolib.c: Delete.
5713
5714 * solib.c (reload_shared_libraries): Remove reference to
5715 SOLIB_CREATE_INFERIOR_HOOK.
5716 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5717 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5718 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5719 comment.
5720 * corelow.c (deprecated_core_resize_section_table): Delete.
5721 * exec.c: Remove include of xcoffsolib.h".
5722 (map_vmap, vmap): Delete.
5723 (exec_close_1): Remove references to vmap.
5724 (exec_file_attach): Remove vmap handling code, and reference
5725 to DEPRECATED_IBM6000_TARGET.
5726 (bfdsec_to_vmap): Delete.
5727 (exec_files_info): Remove block of code handling VMAP.
5728 * infcmd.c (post_create_inferior): Remove reference to
5729 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5730 * infrun.c (follow_exec): Remove reference to
5731 SOLIB_CREATE_INFERIOR_HOOK.
5732 * stack.c (print_frame): Remove reference to PC_SOLIB.
5733 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5734 (dsbt_relocate_main_executable): Likewise.
5735 * solib-frv.c (frv_current_sos): Likewise.
5736
5737 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5738
5739 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5740 to target_write_memory and target_read_memory.
5741
5742 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5743
5744 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5745 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5746
5747 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5748
5749 * darwin-nat.c: Replace all "%x" instances in format strings
5750 into "0x%x" throughout.
5751
5752 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5753
5754 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5755 gdb_assert by call to MACH_CHECK_ERROR.
5756 (darwin_attach_pid): Raise an error rather than a failed
5757 assertion when various system calls failed. Report a warning
5758 instead of raising a failed assertion when PREV_NOT is not NULL
5759 after call to mach_port_request_notification.
5760 (darwin_ptrace_me): Raise an error rather than a failed
5761 assertion when read returns nonzero.
5762
5763 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5764
5765 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5766
5767 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5768
5769 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5770
5771 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5772
5773 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5774 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5775 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5776 a stale cleanup. Fix double free of NAME.
5777
5778 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5779
5780 * windows-nat.c (windows_delete_thread): Accept an additional
5781 argument, the thread's exit code, and announce thread death when
5782 print_thread_events is non-zero and we are deleting a thread that
5783 is not the main thread.
5784 (get_windows_debug_event): Pass thread exit code to
5785 windows_delete_thread.
5786
5787 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5788
5789 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5790 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5791 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5792 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5793 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5794 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5795 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5796 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5797 (gdbarch_tdep): New struct.
5798 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5799 E_NUM_REGS.
5800 (v850e3v5_register_name): New function.
5801 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5802 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5803 code handling the struct return conventions for the RH850 ABI.
5804 Update all callers.
5805 (v850_eight_byte_align_p): New function.
5806 (v850_push_call_dummy): Push structs by value, not by reference
5807 for the RH850 ABI. Add support for eight byte alignment.
5808 (v850_dbtrap_breakpoint_from_pc): New function.
5809 (v850_gdbarch_init): Add ABI detection code. Register
5810 v850e3v5_register_name for the v850e3v5 architecture. Set the
5811 number of registers for v850e3v5. Register
5812 v850_dbtrap_breakpoint_from_pc as appropriate.
5813 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5814
5815 2013-05-03 Doug Evans <dje@google.com>
5816
5817 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5818 of bfd_count_sections.
5819 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5820 * symfile.c (default_symfile_offsets): Ditto.
5821 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5822 one entry, not bfd_count_sections entries.
5823
5824 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5825
5826 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5827 `save' and `restore' register groups. Don't include SPL
5828 or SPH in these groups.
5829 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5830 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5831 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5832 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5833 dwarf2_append_unwinders().
5834
5835 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5836
5837 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5838 ignore SIGINT and SIGTRAP in case these internal signals are
5839 caught explicitely.
5840
5841 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5842
5843 * darwin-nat.c (darwin_read_write_inferior): Change types
5844 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5845 of copy_count to "mach_msg_type_number_t".
5846 (darwin_read_dyld_info): Change type of parameter
5847 rdaddr to "gdb_byte *".
5848
5849 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5850
5851 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5852 of &info->load_map from "char *" to "gdb_byte *".
5853
5854 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5855
5856 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5857 from "char *" to "gdb_byte *".
5858 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5859
5860 2013-04-30 Doug Evans <dje@google.com>
5861
5862 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5863 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5864 DWO stub. If DWO isn't found, just use stub.
5865 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5866
5867 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5868 calling init_cutu_and_read_dies.
5869
5870 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5871
5872 * target-descriptions.c (maint_print_c_tdesc_cmd):
5873 Add case to parse structures as register types and
5874 bitfields.
5875
5876 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5877
5878 * MAINTAINERS (Write After Approval): Add myself to the list.
5879
5880 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5881
5882 * sol-thread.c (rw_common): Change type of parameter "buf"
5883 to "gdb_byte *".
5884 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5885 rw_common to "gdb_byte *" instead of "char *".
5886
5887 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5888
5889 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5890 of local variable msym to const struct bound_minimal_symbol.
5891 Adjust use accordingly.
5892 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5893
5894 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5895
5896 * i386gnu-nat.c (CREG_OFFSET): New macro.
5897 (creg_offset): New array.
5898 (CREG_ADDR): Use creg_offset instead of reg_offset.
5899
5900 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5901
5902 * mep-tdep.c (mep_write_pc): Delete.
5903 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5904 Add call to set_gdbarch_pc_regnum.
5905
5906 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5907
5908 * common/filestuff.c: Replace #include <dirent.h> by
5909 #include "gdb_dirent.h".
5910
5911 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5912
5913 * common/filestuff.c: Replace #include <sys/stat.h> by
5914 #include "gdb_stat.h".
5915
5916 2013-04-29 Pierre Muller <muller@sourceware.org>
5917
5918 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5919 editCase function rule.
5920 (get_DW_AT_signature_type): Likewise.
5921
5922 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5923
5924 * m32r-tdep.c (m32r_write_pc): Delete.
5925 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5926 Add call to set_gdbarch_pc_regnum.
5927
5928 2013-04-29 Pierre Muller <muller@sourceware.org>
5929
5930 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5931
5932 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5933
5934 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5935
5936 2013-04-28 Yao Qi <yao@codesourcery.com>
5937
5938 * solib-dsbt.c (fetch_loadmap): Re-indent.
5939 (displacement_from_map, enable_break2): Likewise.
5940 (dsbt_relocate_section_addresses): Likewise.
5941
5942 2013-04-26 Joel Brobecker <brobecker@adacore.com>
5943
5944 GDB 7.6 released.
5945
5946 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5947
5948 PR corefiles/14983:
5949 * dwarf2read.c (process_full_comp_unit): Always create a static
5950 block.
5951
5952 2013-04-25 Hui Zhu <hui@codesourcery.com>
5953
5954 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5955 to loc->cmd_bytecode.
5956
5957 2013-04-24 Doug Evans <dje@google.com>
5958
5959 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5960
5961 2013-04-22 Keith Seitz <keiths@redhat.com>
5962
5963 * tracepoint.c (trace_save): Call the writer's start method.
5964
5965 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5966
5967 PR gdb/10462
5968 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5969 before argument.
5970
5971 2013-04-23 Tom Tromey <tromey@redhat.com>
5972
5973 * common/filestuff.c: Check USE_WIN32API before including
5974 sys/socket.h.
5975 (HAVE_F_GETFD): New define.
5976 (mark_cloexec): Check HAVE_F_GETFD.
5977 (gdb_open_cloexec): Change 'mode' to unsigned long.
5978 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5979 (gdb_pipe_cloexec): Check HAVE_PIPE.
5980 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5981 long.
5982
5983 2013-04-23 Hui Zhu <hui@codesourcery.com>
5984
5985 PR gdb/15293
5986 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5987
5988 2013-04-23 Hui Zhu <hui@codesourcery.com>
5989
5990 PR gdb/15165
5991 * breakpoint.c (dprintf_print_recreate): New.
5992 (save_breakpoints): Let it not save dprintf commands.
5993 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5994
5995 2013-04-22 Tom Tromey <tromey@redhat.com>
5996
5997 PR gdb/7912:
5998 * Makefile.in (SFILES): Add filestuff.c
5999 (COMMON_OBS): Add filestuff.o.
6000 (filestuff.o): New target.
6001 * auto-load.c (auto_load_objfile_script_1): Use
6002 gdb_fopen_cloexec.
6003 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6004 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6005 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6006 * common/agent.c (gdb_connect_sync_socket): Use
6007 gdb_socket_cloexec.
6008 * common/filestuff.c: New file.
6009 * common/filestuff.h: New file.
6010 * common/linux-osdata.c (linux_common_core_of_thread)
6011 (command_from_pid, commandline_from_pid, print_source_lines)
6012 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6013 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6014 gdb_fopen_cloexec.
6015 * common/linux-procfs.c (linux_proc_get_int)
6016 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6017 * config.in, configure: Rebuild.
6018 * configure.ac: Don't check for sys/socket.h. Check for
6019 fdwalk, pipe2.
6020 * corelow.c (core_open): Use gdb_open_cloexec.
6021 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6022 * fork-child.c (fork_inferior): Call close_most_fds.
6023 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6024 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6025 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6026 Use gdb_fopen_cloexec.
6027 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6028 gdb_open_cloexec.
6029 (linux_async_pipe): Use gdb_pipe_cloexec.
6030 * remote-fileio.c (remote_fileio_func_open): Use
6031 gdb_open_cloexec.
6032 * remote.c (remote_file_put, remote_file_get): Use
6033 gdb_fopen_cloexec.
6034 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6035 close_most_fds.
6036 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6037 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6038 * solib.c (solib_find): Use gdb_open_cloexec.
6039 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6040 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6041 (tfile_open): Use gdb_open_cloexec.
6042 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6043 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6044 * xml-support.c (xml_fetch_content_from_file): Use
6045 gdb_fopen_cloexec.
6046 * main.c (captured_main): Call notice_open_fds.
6047
6048 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6049
6050 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6051 'char *' to 'gdb_byte *'.
6052 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6053 'gdb_byte'.
6054
6055 2013-04-22 Yao Qi <yao@codesourcery.com>
6056
6057 * infrun.c: Fix typo in comment.
6058
6059 2013-04-22 Andrew Haley <aph@redhat.com>
6060
6061 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6062 instead of "long".
6063
6064 2013-04-20 Yao Qi <yao@codesourcery.com>
6065
6066 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6067 'char *' to 'gdb_byte *'. Cast the return value of
6068 'bt_ctf_get_char_array' to 'gdb_byte *'.
6069
6070 2013-04-19 Pedro Alves <palves@redhat.com>
6071
6072 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6073 -Wpointer-sign.
6074 * configure: Regenerate.
6075
6076 2013-04-19 Pedro Alves <palves@redhat.com>
6077
6078 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6079 'void *'.
6080
6081 2013-04-19 Pedro Alves <palves@redhat.com>
6082
6083 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6084 Change type of 'myaddr' parameter to gdb_byte pointer.
6085 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6086 to 'long long' pointer instead of to 'unsigned long long'.
6087 (monitor_write_memory_block, monitor_read_memory_single)
6088 (monitor_read_memory): Change type of 'myaddr' parameter to
6089 gdb_byte pointer.
6090
6091 2013-04-19 Pedro Alves <palves@redhat.com>
6092
6093 * record.c (validate_history_size): Make parameter 'setting'
6094 unsigned.
6095
6096 2013-04-19 Pedro Alves <palves@redhat.com>
6097
6098 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6099 to 'gdb_byte *'.
6100
6101 2013-04-19 Pedro Alves <palves@redhat.com>
6102
6103 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6104 local to int.
6105
6106 2013-04-19 Pedro Alves <palves@redhat.com>
6107
6108 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6109 * ada-tasks.c (read_fat_string_value): Likewise.
6110
6111 2013-04-19 Pedro Alves <palves@redhat.com>
6112
6113 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6114 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6115 'offset', and adjust.
6116
6117 2013-04-19 Pedro Alves <palves@redhat.com>
6118
6119 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6120 (read_index_from_section): Add cast to 'char *'.
6121
6122 2013-04-19 Pedro Alves <palves@redhat.com>
6123
6124 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6125
6126 2013-04-19 Pedro Alves <palves@redhat.com>
6127
6128 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6129
6130 2013-04-19 Pedro Alves <palves@redhat.com>
6131
6132 * record-full.c (record_full_get_bookmark): Change local 'ret'
6133 type to char * and add cast to gdb_byte *.
6134 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6135 string.
6136 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6137
6138 2013-04-19 Pedro Alves <palves@redhat.com>
6139
6140 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6141 * python/py-prettyprint.c (print_string_repr): Change type of
6142 'output' local to char *. Add cast to gdb_byte * in
6143 LA_PRINT_STRING call.
6144 (print_children): Change type of 'output' local to char *.
6145 * python/py-value.c (valpy_string): Add cast to const char * in
6146 PyUnicode_Decode call.
6147
6148 2013-04-19 Pedro Alves <palves@redhat.com>
6149
6150 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6151 and change its type to 'const char *'. Adjust.
6152 (mips_send_packet): Add cast to 'char *', and remove cast to
6153 'unsigned char *'.
6154 (mips_receive_packet): Remove cast to 'unsigned char *'.
6155 (mips_load_srec): Use bfd_byte.
6156 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6157 (pmon_checkset): Make 'value' parameter unsigned.
6158
6159 2013-04-19 Pedro Alves <palves@redhat.com>
6160
6161 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6162
6163 2013-04-19 Pedro Alves <palves@redhat.com>
6164
6165 * remote.c (remote_write_bytes_aux, compare_sections_command)
6166 (remote_read_qxfer)
6167 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6168 (remote_hostio_readlink, remote_bfd_iovec_pread)
6169 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6170 binary buffer, and char when buffer is used as string.
6171 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6172 (trace_save, tfile_open, traceframe_walk_blocks)
6173 (tfile_fetch_registers): Likewise.
6174
6175 2013-04-19 Pedro Alves <palves@redhat.com>
6176
6177 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6178 buffer and size_t size. Adjust.
6179 * ser-base.h (ser_base_write): Adjust.
6180 * ser-go32.c (cnts): Change type to size_t.
6181 (dos_write): Change prototype -- take 'void *'
6182 buffer and size_t size. Adjust.
6183 (dos_info): Print elements of 'cnts' as unsigned long.
6184 * serial.c (serial_write): Likewise.
6185 * serial.h (serial_write): Adjust.
6186 (struct serial_ops) <write>: Change prototype -- take 'void *'
6187 buffer and size_t size. Adjust.
6188
6189 2013-04-19 Pedro Alves <palves@redhat.com>
6190
6191 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6192 gdb_byte *.
6193 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6194
6195 2013-04-19 Pedro Alves <palves@redhat.com>
6196
6197 * alpha-tdep.c (alpha_extract_return_value): Use
6198 regcache_cooked_read_unsigned to read 'v0'.
6199
6200 2013-04-19 Pedro Alves <palves@redhat.com>
6201
6202 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6203 parameters 'at', 'as' and 'offset' to uint32_t.
6204
6205 2013-04-19 Pedro Alves <palves@redhat.com>
6206
6207 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6208 'is64' to signed 'int'.
6209
6210 2013-04-19 Pedro Alves <palves@redhat.com>
6211
6212 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6213 parameter to int *.
6214
6215 2013-04-19 Pedro Alves <palves@redhat.com>
6216
6217 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6218 'insnbuf' buffer type to unsigned int[].
6219
6220 2013-04-19 Pedro Alves <palves@redhat.com>
6221
6222 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6223
6224 2013-04-19 Pedro Alves <palves@redhat.com>
6225
6226 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6227 unsigned long *.
6228
6229 2013-04-19 Pedro Alves <palves@redhat.com>
6230
6231 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6232 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6233 UINT_MAX.
6234 * mips-tdep.c (heuristic_fence_post): Change type to int.
6235 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6236
6237 2013-04-19 Pedro Alves <palves@redhat.com>
6238
6239 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6240 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6241 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6242
6243 2013-04-19 Pedro Alves <palves@redhat.com>
6244
6245 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6246 it to get a string view of the byte buffer.
6247 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6248 type to gdb_byte *. Adjust.
6249 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6250 Change local to char *.
6251 * solib-darwin.c (find_program_interpreter): Change return type to
6252 char *. Adjust.
6253 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6254 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6255 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6256 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6257 * solib-svr4.c (find_program_interpreter): Change return type to
6258 char *. Adjust.
6259 (enable_break): Change local 'interp_name' to char *.
6260 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6261 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6262 (spu_pseudo_register_write_spu): Use char for string buffer.
6263 Adjust.
6264 (info_spu_event_command, info_spu_signal_command): Add casts to
6265 'char *'.
6266
6267 2013-04-19 Pedro Alves <palves@redhat.com>
6268
6269 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6270 gdb_byte[].
6271 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6272 * ada-lang.c (ada_value_assign): Use gdb_byte.
6273 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6274 (alphanbsd_sigtramp_offset): Use gdb_byte.
6275 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6276 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6277 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6278 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6279 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6280 * arm-tdep.c (arm_stub_unwind_sniffer)
6281 (arm_displaced_init_closure): Use gdb_byte.
6282 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6283 (arm_default_thumb_le_breakpoint)
6284 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6285 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6286 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6287 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6288 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6289 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6290 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6291 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6292 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6293 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6294 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6295 (cris_store_return_value, cris_extract_return_value): Use
6296 gdb_byte.
6297 (constraint): Change type of parameter to char * from signed
6298 char*. Use gdb_byte.
6299 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6300 of local buffer to gdb_byte *.
6301 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6302 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6303 (add_address_entry): Change type of local buffer to gdb_byte[].
6304 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6305 (frv_push_dummy_call): Use gdb_byte.
6306 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6307 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6308 (hppa_hpux_supply_save_state): Use gdb_byte.
6309 * hppa-tdep.c (hppa32_push_dummy_call)
6310 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6311 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6312 (slotN_contents, replace_slotN_contents): Change type of parameter
6313 to gdb_byte *.
6314 (fetch_instruction, ia64_pseudo_register_write)
6315 (ia64_register_to_value, ia64_value_to_register)
6316 (ia64_extract_return_value, ia64_store_return_value)
6317 (ia64_push_dummy_call): Use gdb_byte.
6318 * m32c-tdep.c (m32c_return_value): Remove cast.
6319 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6320 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6321 gdb_byte.
6322 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6323 * mn10300-tdep.c (mn10300_store_return_value)
6324 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6325 gdb_byte.
6326 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6327 (moxie_process_record): Remove casts.
6328 * ppc-ravenscar-thread.c (supply_register_at_address)
6329 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6330 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6331 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6332 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6333 * remote.c (compare_sections_command): Use gdb_byte.
6334 * score-tdep.c (score7_free_memblock): Change type of parameter to
6335 gdb_byte *.
6336 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6337 gdb_byte *. Use gdb_byte.
6338 (sh_push_dummy_call_fpu): Use gdb_byte.
6339 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6340 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6341 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6342 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6343 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6344 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6345 (sh64_store_return_value, sh64_register_convert_to_virtual):
6346 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6347 (sh64_pseudo_register_write): Use gdb_byte.
6348 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6349 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6350 buffer.
6351 (irix_current_sos): Use gdb_byte.
6352 * solib-som.c (som_current_sos): Use gdb_byte.
6353 * sparc-ravenscar-thread.c (supply_register_at_address)
6354 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6355 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6356 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6357 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6358 'gdb_byte *'.
6359 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6360 'gdb_byte *'.
6361 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6362 * xstormy16-tdep.c (xstormy16_extract_return_value)
6363 (xstormy16_store_return_value): Change parameter type to
6364 'gdb_byte *'. Adjust.
6365 (xstormy16_push_dummy_call): Use gdb_byte.
6366 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6367 (call0_analyze_prologue, execute_code): Use gdb_byte.
6368
6369 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6370 Pedro Alves <palves@redhat.com>
6371
6372 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6373 value contents.
6374
6375 2013-04-17 Doug Evans <dje@google.com>
6376
6377 * dwarf2read.c (struct signatured_type): New member type.
6378 (struct attribute): Replace member signatured_type with signature.
6379 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6380 (read_call_site_scope): Call follow_die_ref instead of
6381 follow_die_ref_or_sig.
6382 (read_structure_type): Rewrite handling of signatured types.
6383 (read_enumeration_type): Ditto.
6384 (read_attribute_value): Update.
6385 (build_error_marker_type): New function.
6386 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6387 Don't call error for bad types, just build an error marker type.
6388 (dump_die_shallow): Update.
6389 (follow_die_sig_1): Renamed from follow_die_sig.
6390 Don't call error for bad types, instead return NULL.
6391 (follow_die_sig): New function.
6392 (get_signatured_type, get_DW_AT_signature_type): New functions.
6393
6394 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6395
6396 * aarch64-tdep.c (aarch64_write_pc): Removed.
6397 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6398 function.
6399
6400 2013-04-17 Yao Qi <yao@codesourcery.com>
6401
6402 * top.c (print_gdb_configuration): Print configure-time
6403 parameter on using libbabeltrace or not.
6404
6405 2013-04-16 Pedro Alves <palves@redhat.com>
6406
6407 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6408
6409 2013-04-16 Pedro Alves <palves@redhat.com>
6410
6411 * common/glibc_thread_db.h: Update from upstream glibc
6412 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6413
6414 2013-04-16 Pedro Alves <palves@redhat.com>
6415
6416 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6417 * common/glibc_thread_db.h: ... this new file ...
6418 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6419
6420 2013-04-16 Will Newton <will.newton@gmail.com>
6421 Pedro Alves <palves@redhat.com>
6422
6423 PR build/11881
6424
6425 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6426 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6427 HAVE_THREAD_DB_H.
6428
6429 2013-04-16 Pedro Alves <palves@redhat.com>
6430 Eli Zaretskii <eliz@gnu.org>
6431
6432 * NEWS: Mention "set foo unlimited".
6433
6434 2013-04-15 Doug Evans <dje@google.com>
6435
6436 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6437 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6438 (create_dwo_cu_reader): Renamed from
6439 create_dwo_debug_info_hash_table_reader.
6440 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6441 Remove support for multiple CUs in a DWO file.
6442 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6443
6444 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6445 instead of phex.
6446 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6447 (create_dwo_in_dwp): Ditto.
6448
6449 2013-04-15 Tom Tromey <tromey@redhat.com>
6450
6451 * NEWS: Move recent entries into "since 7.6" section.
6452
6453 2013-04-15 Tom Tromey <tromey@redhat.com>
6454
6455 PR c++/13588:
6456 * NEWS: Update.
6457 * break-catch-throw.c (struct exception_catchpoint)
6458 <exception_rx, pattern>: New fields.
6459 (fetch_probe_arguments, dtor_exception_catchpoint)
6460 (check_status_exception_catchpoint)
6461 (print_one_detail_exception_catchpoint): New functions.
6462 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6463 Compile regular expression if needed.
6464 (extract_exception_regexp): New function.
6465 (catch_exception_command_1): Use extract_exception_regexp.
6466 (compute_exception): Use fetch_probe_arguments.
6467 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6468 and check_status fields.
6469 * cp-abi.c (cplus_typename_from_type_info): New function.
6470 * cp-abi.h (cplus_typename_from_type_info): Declare.
6471 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6472 * gdb_regex.h (compile_rx_or_error): Declare.
6473 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6474 comment.
6475 (init_gnuv3_ops): Set get_type_from_type_info field.
6476 * probe.c (compile_rx_or_error): Move...
6477 * utils.c (compile_rx_or_error): ... here.
6478
6479 2013-04-15 Tom Tromey <tromey@redhat.com>
6480
6481 PR c++/15176:
6482 * NEWS: Update.
6483 * break-catch-throw.c (compute_exception): New function.
6484 (exception_funcs): New global.
6485 (_initialize_break_catch_throw): Create $_exception.
6486 * cp-abi.c (cplus_type_from_type_info): New function.
6487 * cp-abi.h (cplus_type_from_type_info): Declare.
6488 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6489 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6490 (gnuv3_get_type_from_type_info): New functions.
6491 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6492
6493 2013-04-15 Tom Tromey <tromey@redhat.com>
6494
6495 * break-catch-throw.c (struct exception_names): New.
6496 (exception_functions): Change type.
6497 (re_set_exception_catchpoint): Look for SDT probes.
6498
6499 2013-04-15 Tom Tromey <tromey@redhat.com>
6500
6501 PR c++/10119:
6502 * break-catch-throw.c (exception_functions): New global.
6503 (gnu_v3_exception_catchpoint_ops): Move earlier.
6504 (struct exception_catchpoint): New.
6505 (classify_exception_breakpoint): Rewrite.
6506 (re_set_exception_catchpoint): New function.
6507 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6508 Allocate a struct exception_catchpoint.
6509 (catch_exception_command_1): Update.
6510 (initialize_throw_catchpoint_ops): Set 're_set' method.
6511
6512 2013-04-15 Tom Tromey <tromey@redhat.com>
6513
6514 * Makefile.in (SFILES): Add break-catch-throw.c
6515 (COMMON_OBS): Add break-catch-throw.o.
6516 * break-catch-throw.c: New file.
6517 * breakpoint.c: Move exception-catching code to new file.
6518 (ep_parse_optional_if_clause): No longer static.
6519 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6520
6521 2013-04-15 Tom Tromey <tromey@redhat.com>
6522
6523 PR c++/9065:
6524 * NEWS: Update.
6525 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6526 * c-exp.y (TYPEID): New token.
6527 (exp): Add new TYPEID productions.
6528 (ident_tokens): Add "typeid".
6529 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6530 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6531 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6532 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6533 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6534 case.
6535 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6536 (build_std_type_info_type, gnuv3_get_typeid_type)
6537 (gnuv3_get_typeid): New functions.
6538 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6539 new fields on ABI object.
6540 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6541 * std-operator.def (OP_TYPEID): New.
6542
6543 2013-04-15 Tom Tromey <tromey@redhat.com>
6544
6545 * elfread.c (elf_symtab_read): Install versioned symbol under
6546 unversioned name as well.
6547
6548 2013-04-15 Tom Tromey <tromey@redhat.com>
6549
6550 PR c++/11990:
6551 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6552 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6553 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6554 (gdb_demangle): New function.
6555 * cp-support.h (gdb_demangle): Declare.
6556 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6557 (dwarf2_name): Use gdb_demangle.
6558 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6559 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6560 suffixes from name.
6561 (gnuv3_print_method_ptr): Use gdb_demangle.
6562 * jv-lang.c (java_demangle): Use gdb_demangle.
6563 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6564 * language.c (unk_lang_demangle): Use gdb_demangle.
6565 * symtab.c (symbol_find_demangled_name)
6566 (demangle_for_lookup): Use gdb_demangle.
6567
6568 2013-04-15 Tom Tromey <tromey@redhat.com>
6569
6570 PR c++/12824:
6571 * NEWS: Update.
6572 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6573 New constant.
6574 (classify_exception_breakpoint): New function.
6575 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6576 (print_mention_exception_catchpoint)
6577 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6578 (catch_exception_command_1): Handle "rethrow" catchpoint.
6579 (catch_rethrow_command): New function.
6580 (_initialize_breakpoint): Add "catch rethrow" command.
6581
6582 2013-04-15 Pierre Muller <muller@sourceware.org>
6583
6584 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6585 set_gdbarch_write_pc as deprecated anymore.
6586
6587 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6588
6589 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6590 declarations.
6591
6592 2013-04-13 Yao Qi <yao@codesourcery.com>
6593
6594 * ctf.c (_initialize_ctf): Include "completer.h".
6595 Call add_target_with_completer instead of add_target.
6596
6597 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6598
6599 Fix GDB regression related to PR binutils/14813.
6600 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6601 * minidebug.c (lzma_close): Add return value comment.
6602 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6603 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6604 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6605
6606 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6607
6608 * config.in: Regenerate.
6609
6610 2013-04-12 Tom Tromey <tromey@redhat.com>
6611
6612 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6613 const.
6614 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6615 (struct die_reader_specs) <buffer>: Likewise.
6616 (die_reader_func_ftype): Make 'info_ptr' const.
6617 (struct line_header) <include_dirs, statement_program_start,
6618 statement_program_end>: Now const.
6619 (struct file_entry) <name>: Likewise.
6620 (struct partial_die_info) <sibling>: Likewise.
6621 (struct dwarf_block) <data>: Likewise.
6622 (dwarf2_read_section): Remove cast.
6623 (dwarf2_get_section_info): Make 'bufp' const.
6624 (read_index_from_section): Constify.
6625 (dw2_get_file_names_reader): Make 'info_ptr' const.
6626 (dw2_get_primary_filename_reader): Likewise.
6627 (read_comp_unit_head): Make 'info_ptr' and return type const.
6628 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6629 Likewise.
6630 (read_abbrev_offset): Constify.
6631 (dwarf2_create_include_psymtab): Make 'name' const.
6632 (create_debug_types_hash_table): Update.
6633 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6634 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6635 Constify.
6636 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6637 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6638 (read_comp_units_from_section): Constify.
6639 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6640 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6641 const.
6642 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6643 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6644 (create_dwp_hash_table, dwarf2_ranges_read)
6645 (dwarf2_record_block_ranges): Constify.
6646 (read_die_and_children, read_die_and_siblings_1)
6647 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6648 const.
6649 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6650 (abbrev_table_read_table): Constify.
6651 (load_partial_dies): Make 'info_ptr' const.
6652 (read_partial_die, read_attribute_value, read_attribute): Make
6653 'info_ptr' and return type const.
6654 (read_address, read_initial_length)
6655 (read_checked_initial_length_and_offset, read_offset)
6656 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6657 const.
6658 (read_direct_string): Make 'buf' and return type const.
6659 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6660 (read_indirect_string): Make return type const.
6661 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6662 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6663 'info_ptr' const.
6664 (read_str_index): Make return type const.
6665 (add_include_dir): Make 'include_dir' const.
6666 (add_file_name): Make 'name' const.
6667 (dwarf_decode_line_header): Constify.
6668 (psymtab_include_file_name): Make return type const.
6669 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6670 (dwarf2_start_subfile): Make 'filename' const.
6671 (dwarf2_const_value_attr): Make 'bytes' const.
6672 (read_signatured_type_reader): Make 'info_ptr' const.
6673 (decode_locdesc): Constify.
6674 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6675 const.
6676 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6677 'mac_end', and return type const.
6678 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6679 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6680 type const.
6681 (per_cu_header_read_in): Constify.
6682 * symfile.h (dwarf2_get_section_info): Update.
6683
6684 2013-04-12 Tom Tromey <tromey@redhat.com>
6685
6686 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6687
6688 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6689
6690 * NEWS: Mention "show configuration", --configuration.
6691 * top.c (print_gdb_configuration): New function, displays the
6692 details about GDB configure-time parameters.
6693 (print_gdb_version): Mention "show configuration".
6694 * cli/cli-cmds.c (show_configuration): New function.
6695 (_initialize_cli_cmds): Add the "show configuration" command.
6696 * main.c (captured_main) <print_configuration>: New static var.
6697 <long_options>: Use it.
6698 If --configuration was given, call print_gdb_configuration.
6699
6700 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6701 Pedro Alves <palves@redhat.com>
6702
6703 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6704 (generated_files): Add gcore.
6705 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6706 HAVE_NATIVE_GCORE_HOST.
6707 (gcore): New.
6708 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6709 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6710 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6711 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6712 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6713 Add HAVE_NATIVE_GCORE_HOST.
6714 * configure: Regenerate.
6715 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6716 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6717 AC_CONFIG_FILES for gcore.
6718 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6719 gdb_have_gcore.
6720 * gdb_gcore.sh: Rename to ...
6721 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6722 and GCORE_TRANSFORM_NAME substitutions.
6723
6724 Fix parsing tabs in ${gdb_target_obs}.
6725 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6726
6727 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6728
6729 * remote.c (unpush_and_perror): Add output message final dot.
6730
6731 2013-04-11 Yao Qi <yao@codesourcery.com>
6732
6733 * tracepoint.c (tfile_interp_line): Fit parameters line and
6734 utpp in one line.
6735
6736 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6737
6738 * solib.c (solib_map_sections): Remove code overwriting
6739 SO->SO_NAME with the bfd's filename.
6740
6741 2013-04-10 Pedro Alves <palves@redhat.com>
6742
6743 * cli/cli-decode.c (integer_unlimited_completer): New function.
6744 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6745 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6746 completer.
6747 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6748 (is_unlimited_literal): New function.
6749 (do_set_command): Handle literal "unlimited" arguments.
6750 * frame.c (_initialize_frame) <set backtrace limit>: Document
6751 "unlimited".
6752 * printcmd.c (_initialize_printcmd) <set print
6753 max-symbolic-offset>: Add help text.
6754 * record-full.c (_initialize_record_full) <set record full
6755 insn-number-max>: Likewise.
6756 * record.c (_initialize_record) <set record
6757 instruction-history-size, set record function-call-history-size>:
6758 Add help text.
6759 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6760 help text.
6761 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6762 Likewise.
6763 * source.c (_initialize_source) <set listsize>: Add help text.
6764 * utils.c (initialize_utils) <set height, set width>: Likewise.
6765 <set pagination>: Mention "set height unlimited".
6766 * valprint.c (_initialize_valprint) <set print elements, set print
6767 repeats>: Document "unlimited".
6768
6769 2013-04-10 Pedro Alves <palves@redhat.com>
6770
6771 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6772 instead of disconnect_tracing.
6773 * infcmd.c (detach_command, disconnect_command): Call
6774 query_if_trace_running. Adjust.
6775 * top.c: Include "tracepoint.h".
6776 (quit_target): Delete. Contents moved ...
6777 (quit_force): ... here. Wrap each stage of teardown in
6778 TRY_CATCH. Call disconnect_tracing before detaching.
6779
6780 2013-04-10 Hui Zhu <hui@codesourcery.com>
6781 Yao Qi <yao@codesourcery.com>
6782
6783 * configure.ac: Check libbabeltrace is installed.
6784 * config.in: Regenerate.
6785 * configure: Regenerate.
6786 * Makefile.in (LIBBABELTRACE): New.
6787 (CLIBS): Add LIBBABELTRACE.
6788 * ctf.c: Include "exec.h".
6789 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6790 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6791 (ctf_save_metadata_header): Define new type aliases in
6792 metadata.
6793 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6794 in metadata. Start a new faked packet for trace status.
6795 (ctf_write_status): Write trace status to CTF.
6796 (ctf_write_uploaded_tsv): Write TSV to CTF.
6797 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6798 (ctf_write_definition_end): End the faked packet.
6799
6800 (ctx, ctf_iter, trace_dirname): New.
6801 (start_pos): New variable.
6802 (ctf_destroy, ctf_open_dir, ctf_open): New.
6803 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6804 macros.
6805 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6806 (ctf_fetch_registers, ctf_xfer_partial): New.
6807 (ctf_get_trace_state_variable_value): New.
6808 (ctf_get_tpnum_from_frame_event): New.
6809 (ctf_get_traceframe_address): New.
6810 (ctf_trace_find, ctf_has_stack): New.
6811 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6812 (ctf_get_trace_status, ctf_read_status): New.
6813 (_initialize_ctf): New.
6814 * tracepoint.c (get_tracepoint_number): New
6815 (get_uploaded_tsv): Remove 'static'.
6816 (struct traceframe_info, trace_regblock_size): Move it to ...
6817 * tracepoint.h: ... here.
6818 (get_tracepoint_number): Declare it.
6819 (get_uploaded_tsv): Declare it.
6820
6821 * NEWS: Mention new configure option.
6822
6823 2013-04-10 Pedro Alves <palves@redhat.com>
6824 Hui Zhu <hui@codesourcery.com>
6825
6826 * breakpoint.c (dprintf_re_set): New.
6827 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6828 to dprintf_re_set.
6829
6830 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6831
6832 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6833 Remove solib-svr4.o from the list.
6834
6835 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6836
6837 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6838 Use gdb_assert_not_reached instead of invalid boolean expression.
6839
6840 2013-04-09 Pedro Alves <palves@redhat.com>
6841
6842 * remote.c (unpush_and_perror): New function.
6843 (readchar, remote_serial_write): Use it.
6844
6845 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6846
6847 * NEWS: Mention new btrace RSP packets.
6848
6849 2013-04-08 Tom Tromey <tromey@redhat.com>
6850
6851 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6852 long.
6853
6854 2013-04-08 Tom Tromey <tromey@redhat.com>
6855
6856 * maint.c (print_bfd_section_info): Print the section index.
6857 * symmisc.c (dump_msymbols): Print the section index.
6858
6859 2013-04-08 Tom Tromey <tromey@redhat.com>
6860
6861 PR symtab/8424:
6862 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6863 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6864 * breakpoint.c (resolve_sal_pc): Update.
6865 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6866 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6867 (minsym_lookup_iterator_cb): Use it.
6868 (default_read_var_value): Update.
6869 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6870 Update.
6871 * infcmd.c (jump_command): Update.
6872 * linespec.c (minsym_found): Update.
6873 * maint.c (maintenance_translate_address): Update.
6874 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6875 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6876 * parse.c (write_exp_msymbol): Update.
6877 * printcmd.c (address_info): Update.
6878 * psymtab.c (find_pc_sect_psymbol): Update.
6879 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6880 SYMBOL_OBJ_SECTION.
6881 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6882 Don't initialize SYMBOL_OBJ_SECTION.
6883 * spu-tdep.c (spu_catch_start): Update.
6884 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6885 * symmisc.c (dump_msymbols, print_symbol): Update.
6886 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6887 how fallback section is computed.
6888 (fixup_symbol_section): Update.
6889 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6890 Update.
6891 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6892 Initialize SYMBOL_SECTION.
6893 * symtab.h (struct general_symbol_info) <section>: Update comment.
6894 <obj_section>: Remove.
6895 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6896 (SYMBOL_OBJFILE): New macro.
6897
6898 2013-04-08 Tom Tromey <tromey@redhat.com>
6899
6900 * coffread.c (record_minimal_symbol): Update.
6901 * dbxread.c (record_minimal_symbol): Update.
6902 * elfread.c (record_minimal_symbol): Update.
6903 * machoread.c (macho_symtab_add_minsym): Update.
6904 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6905 Update.
6906 * minsyms.c (prim_record_minimal_symbol): Update.
6907 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6908 argument.
6909 (prim_record_minimal_symbol_and_info): Likewise.
6910 * minsyms.h (prim_record_minimal_symbol_full)
6911 (prim_record_minimal_symbol_and_info): Update.
6912 * symtab.c (allocate_symbol, initialize_symbol)
6913 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6914 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6915 Update.
6916
6917 2013-04-08 Tom Tromey <tromey@redhat.com>
6918
6919 PR symtab/8423:
6920 * solib-som.c (som_solib_section_offsets): Use BFD section
6921 indices. Set offsets for all sections.
6922 * somread.c (som_symtab_read): Compute BFD section for
6923 symbol. Use prim_record_minimal_symbol_and_info.
6924 (som_symfile_read): Fix comment.
6925 (struct find_section_offset_arg): New.
6926 (find_section_offset, set_section_index): New functions.
6927 (som_symfile_offsets): Use set_section_index to compute
6928 section indices.
6929
6930 2013-04-08 Tom Tromey <tromey@redhat.com>
6931
6932 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6933 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6934 gdb_bfd_section_index.
6935 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6936 New functions.
6937 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6938 Declare.
6939 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6940 Update.
6941 * objfiles.c (add_to_objfile_sections_full): New function.
6942 (add_to_objfile_sections): Use it.
6943 (build_section_table): Rewrite.
6944 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6945 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6946 (struct objfile) <sections>: Update comment.
6947 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6948 is NULL.
6949 (ALL_OBJSECTIONS): Use it.
6950 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6951 * solib-frv.c (frv_relocate_main_executable): Update.
6952 * solib-target.c (solib_target_relocate_section_addresses):
6953 Use gdb_bfd_section_index.
6954 * symfile.c (build_section_addr_info_from_section_table):
6955 Use gdb_bfd_section_index.
6956 (build_section_addr_info_from_bfd, place_section): Likewise.
6957 * symtab.c (fixup_section): Update.
6958 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6959
6960 2013-04-08 Tom Tromey <tromey@redhat.com>
6961
6962 * minsyms.h (struct bound_minimal_symbol): New.
6963 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6964 Remove objfile argument.
6965 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6966 Return bound_minimal_symbol.
6967 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6968 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6969 Return bound_minimal_symbol.
6970 (in_gnu_ifunc_stub): Update.
6971 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6972 Remove 'objfile_p' argument.
6973 (lookup_solib_trampoline_symbol_by_pc): Update.
6974 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6975 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6976 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6977 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6978 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6979 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6980 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6981 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6982 stack.c, symtab.c, tui/tui-disasm.c: Update.
6983
6984 2013-04-08 Tom Tromey <tromey@redhat.com>
6985
6986 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6987 Use symbol's obstack, not an objfile.
6988 * coffread.c (process_coff_symbol): Update.
6989 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6990 * jv-lang.c (add_class_symbol): Update.
6991 * mdebugread.c (new_symbol): Update.
6992 * minsyms.c (prim_record_minimal_symbol_full)
6993 (terminate_minimal_symbol_table): Update.
6994 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6995 * stabsread.c (define_symbol, read_enum_type): Update.
6996 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6997 Handle Ada specially.
6998 (symbol_set_language): Add 'obstack' argument.
6999 (symbol_set_names): Update.
7000 (symbol_natural_name, symbol_demangled_name): Always use
7001 ada_decode_symbol.
7002 * symtab.h (struct general_symbol_info)
7003 <language_specific::obstack>: New field.
7004 <ada_mangled>: New field.
7005 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7006 (symbol_set_language): Update.
7007
7008 2013-04-08 Tom Tromey <tromey@redhat.com>
7009
7010 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7011 Take an obstack, not an objfile.
7012 (symbol_set_names): Update.
7013 * symtab.h (symbol_set_demangled_name): Update.
7014
7015 2013-04-08 Tom Tromey <tromey@redhat.com>
7016
7017 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7018 allocate_symbol.
7019 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7020 (read_func_scope): Call allocate_template_symbol.
7021 (new_symbol_full): Call allocate_symbol.
7022 * jit.c (finalize_symtab): Call allocate_symbol.
7023 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7024 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7025 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7026 (common_block_end): Call allocate_symbol.
7027 * symtab.c (allocate_symbol, initialize_symbol)
7028 (allocate_template_symbol): New functions.
7029 * symtab.c (allocate_symbol, initialize_symbol)
7030 (allocate_template_symbol): Declare.
7031 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7032
7033 2013-04-08 Pedro Alves <palves@redhat.com>
7034 Keith Seitz <keiths@redhat.com>
7035
7036 * breakpoint.c (create_breakpoint): Rename
7037 "parse_condition_and_thread" parameter to "parse_arg". Update
7038 describing comment. If !PARSE_ARG, then error out if ARG is not
7039 the empty string after extracting the location.
7040 * breakpoint.h (create_breakpoint): Rename
7041 "parse_condition_and_thread" parameter to "parse_arg".
7042
7043 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7044
7045 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7046
7047 2013-04-07 Yao Qi <yao@codesourcery.com>
7048
7049 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7050 and 'addr2' to CORE_ADDR.
7051 * target.c (update_current_target): Update.
7052 * target.h (struct target_ops) <to_trace_find>: Change parameter
7053 type to CORE_ADDR.
7054 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7055 'addr2' to CORE_ADDR.
7056 (tfile_trace_find): Likewise.
7057 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7058 Change local variable 'addr' to type CORE_ADDR.
7059 * tracepoint.h (tfind_1): Update declaration.
7060
7061 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7062
7063 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7064 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7065 Include main.h.
7066
7067 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7068 here...
7069 * main.h (windows_get_absolute_argv0): ...to here.
7070
7071 2013-04-05 Doug Evans <dje@google.com>
7072
7073 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7074 (read_cutu_die_from_dwo): Add comments.
7075 (read_structure_type): Update comment.
7076 (read_enumeration_type, read_namespace_type): Update comment.
7077 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7078
7079 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7080
7081 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7082 * Makefile.in (gdb.z): Remove.
7083 (install-only): Remove $(man1dir) and gdb.1 installation.
7084 * gdb.1: Remove.
7085
7086 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7087
7088 Fix compatibility with Linux kernel 3.8.3.
7089 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7090 to more inner block. Remove parsing of NUMBER from outer block.
7091 Parse NUMBER only if KEYWORD has been identified.
7092
7093 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7094
7095 Fix variable name shadowing.
7096 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7097 filename to mapsfilename and update its uses.
7098
7099 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7100
7101 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7102 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7103 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7104 details of the problem.
7105
7106 2013-04-04 Pedro Alves <palves@redhat.com>
7107 Hui Zhu <hui@codesourcery.com>
7108
7109 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7110 tracepoint, reset its STEP_COUNT and call validate_actionline.
7111
7112 2013-04-03 Doug Evans <dje@google.com>
7113
7114 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7115 read_die_and_siblings.
7116 (read_die_and_siblings): New function.
7117 (read_cutu_die_from_dwo): Dump die if requested.
7118 (read_die_and_children): Call read_full_die_1 and
7119 read_die_and_siblings_1.
7120 (read_full_die): Dump die if requested.
7121
7122 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7123
7124 * dwarf2read.c (struct dwo_file): New member comp_dir.
7125 Rename member name to dwo_name. All uses updated.
7126 (hash_dwo_file): Include comp_dir in computation.
7127 (eq_dwo_file): Ditto.
7128 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7129 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7130
7131 * psymtab.c (read_psymtabs_with_fullname): Don't call
7132 psymtab_to_fullname if the basenames are different.
7133
7134 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7135
7136 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7137 New entry about "fullname" presence.
7138
7139 2013-04-03 Pedro Alves <palves@redhat.com>
7140
7141 * NEWS: Mention x86_64/Cygwin as new native configuration.
7142
7143 2013-04-02 Doug Evans <dje@google.com>
7144
7145 * dwarf2read.c (read_structure_type): Fix typo in comment.
7146
7147 2013-04-02 Pedro Alves <palves@redhat.com>
7148
7149 * NEWS: Mention "set/show debug aarch64", "set/show debug
7150 coff-pe-read" and "set/show debug mach-o".
7151
7152 2013-04-02 Pedro Alves <palves@redhat.com>
7153
7154 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7155
7156 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7157
7158 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7159 gdb_string.h is now in common/.
7160
7161 2013-04-02 Pedro Alves <palves@redhat.com>
7162
7163 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7164 under "New options".
7165
7166 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7167
7168 Revert this patch:
7169 PR gdb/15275
7170 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7171
7172 2013-04-02 Pedro Alves <palves@redhat.com>
7173
7174 PR gdb/15275
7175
7176 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7177 (remote_serial_write): New function.
7178 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7179
7180 2013-04-01 Jiong Wang <jiwang@tilera.com>
7181
7182 * NEWS: Mention TILE-Gx in "New native configurations" and
7183 "New targets" sections.
7184
7185 2013-04-01 Doug Evans <dje@google.com>
7186
7187 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7188 (process_enumeration_scope): Simplify.
7189
7190 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7191 type_unit_group ...
7192 (struct signatured_type): ... to here.
7193 (sig_type_ptr): New typedef.
7194 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7195 out of union 't'. All uses updated.
7196 (dw2_get_file_names_reader): Assert not called for a type unit.
7197 (dw2_get_file_names): Assert not called for a type unit or type
7198 unit group.
7199 (build_type_psymtabs_reader): Assert called for a type unit.
7200 (build_type_psymtab_dependencies): Assert called for a type unit group.
7201
7202 * dwarf2read.c (free_dwo_file): Add comment.
7203 (dwarf2_per_objfile_free): Unref dwp bfd.
7204
7205 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7206
7207 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7208 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7209 (read_pe_exported_syms): Remove unused 'exportix'.
7210 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7211 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7212 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7213
7214 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7215
7216 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7217 (print_it_watchpoint): Remove unused 'bl'.
7218 (say_where): Remove unused 'uiout'.
7219 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7220 (bkpt_breakpoint_hit): Remove unused 'b'.
7221 (internal_bkpt_print_it): Remove unused 'uiout'.
7222 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7223
7224 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7225
7226 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7227 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7228
7229 2013-03-29 Doug Evans <dje@google.com>
7230
7231 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7232 Delete arg is_dwp. All callers updated.
7233 (open_dwp_file): New function.
7234 (open_and_init_dwp_file): Call it.
7235 (get_dwp_file): New function.
7236 (lookup_dwo_cutu): Call it.
7237
7238 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7239 unnecessary, cleanup.
7240
7241 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7242
7243 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7244 (lookup_dwo_unit): New function.
7245 (init_cutu_and_read_dies): Move DWO handling to new functions.
7246
7247 * dwarf2read.c (struct signatured_type): Tweak comment.
7248 (struct dwo_unit): Tweak comment.
7249 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7250 (create_dwo_debug_info_hash_table): Tweak comment.
7251 (dwarf2_per_cu_offset_and_type): Tweak comment.
7252
7253 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7254 missing .debug_types section.
7255
7256 2013-03-29 Yao Qi <yao@codesourcery.com>
7257
7258 * corelow.c: Include "completer.h".
7259 (_initialize_corelow): Call add_target_with_completer with
7260 argument 'filename_completer'.
7261 * tracepoint.c: Likewise.
7262 * exec.c (_initialize_exec): Likewise.
7263 * target.c (add_target): Rename to ...
7264 (add_target_with_completer): ... this. Call set_cmd_completer
7265 if parameter completer is not NULL.
7266 (add_target): New.
7267 * target.h: Include "command.h".
7268 (add_target_with_completer): Declare it.
7269
7270 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7271
7272 * coffread.c (is_import_fixup_symbol): New function.
7273 (record_minimal_symbol): Use is_import_fixup_symbol to
7274 detect import fixup symbols, and discard them.
7275
7276 2013-03-28 Doug Evans <dje@google.com>
7277
7278 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7279 types hash table until we know we need it.
7280
7281 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7282 index numbers.
7283
7284 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7285 All callers updated.
7286 (dw2_print_stats): Print #read CUs too.
7287 (dump_die_shallow): Print signatured types better.
7288
7289 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7290 info_or_types_section to section. All uses updated.
7291 (struct dwo_unit): Ditto.
7292
7293 2013-03-28 Pedro Alves <palves@redhat.com>
7294
7295 * NEWS (New options): New section.
7296 (New options): Mention set/show remote trace-status-packet.
7297 * remote.c (PACKET_qTStatus): New enumeration value.
7298 (remote_get_trace_status): Skip sending qTStatus if the packet is
7299 disabled. Use packet_ok.
7300 (_initialize_remote): Register a configuration command for
7301 qTStatus packet.
7302
7303 2013-03-28 Doug Evans <dje@google.com>
7304
7305 * symfile.c (find_separate_debug_file): Add comment.
7306 (terminate_after_last_dir_separator): Tweak comment.
7307
7308 * dwarf2read.c (create_partial_symtab): Add forward decl.
7309 (create_partial_symtab): Move to be closer to other psymtab functions.
7310 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7311
7312 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7313 (compute_symtab_includes): Remove unnecessary forward declaration.
7314 (die_needs_namespace): Add comment marking group of functions for
7315 dwarf2 name computation.
7316
7317 * typeprint.c (_initialize_typeprint): Improve type help text.
7318
7319 * python/python.c (finish_python_initialization): Provide suggestion
7320 for how to tell gdb to find its python files.
7321
7322 2013-03-28 Pedro Alves <palves@redhat.com>
7323
7324 PR gdb/15294
7325
7326 * source.c (_initialize_source): Change back "set listsize" to an
7327 integer command.
7328
7329 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7330
7331 PR gdb/15275
7332 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7333
7334 2013-03-27 Pedro Alves <palves@redhat.com>
7335
7336 * top.c (history_size): Rename to ...
7337 (history_size_setshow_var): ... this. Add comment.
7338 (show_commands): Use readline's 'history_length' instead of
7339 computing the history length by calling history_get in a loop.
7340 (set_history_size_command): Error out for sizes over INT_MAX.
7341 Restore previous history size on invalid size.
7342 (init_history): If HISTSIZE is negative, leave the history size as
7343 zero. Add comments.
7344 (init_main): Adjust.
7345
7346 2013-03-27 Pedro Alves <palves@redhat.com>
7347
7348 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7349 coff_pe_read" command to "set debug coff-pe-read".
7350
7351 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7352
7353 * record.c (command_size_to_target_size): Fix size comparison.
7354 Change parameter type from pointer to integer to integer.
7355 Update all users.
7356
7357 2013-03-27 Pierre Muller <muller@sourceware.org>
7358
7359 * windows-nat.c (handle_output_debug_string): Avoid typecast
7360 from integer of different size warning.
7361
7362 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7363
7364 * windows-nat.c (handle_output_debug_string): Add empty line
7365 after local block variable definition.
7366
7367 2013-03-26 Pedro Alves <palves@redhat.com>
7368
7369 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7370 (net_open): Make 'polls' local unsigned.
7371
7372 2013-03-26 Pedro Alves <palves@redhat.com>
7373
7374 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7375 a zuinteger command instead of uinteger.
7376
7377 2013-03-26 Pedro Alves <palves@redhat.com>
7378
7379 * record-full.c (record_full_insn_num): Make it unsigned.
7380 (record_full_check_insn_num, record_full_message)
7381 (record_full_registers_change, record_full_xfer_partial): Remove
7382 record_full_insn_max_num check (it's always != 0).
7383 (record_full_info, record_full_restore): Use %u as format string.
7384 (): Use %u as format string.
7385 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7386 check (it's always != 0).
7387
7388 2013-03-26 Pedro Alves <palves@redhat.com>
7389
7390 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7391 and "set dcache size" commands zuinteger instead of uinteger.
7392
7393 2013-03-26 Pedro Alves <palves@redhat.com>
7394
7395 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7396 command zuinteger instead of uinteger.
7397
7398 2013-03-26 Pedro Alves <palves@redhat.com>
7399
7400 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7401 zuinteger instead of uinteger.
7402
7403 2013-03-26 Pedro Alves <palves@redhat.com>
7404
7405 * record.c (record_insn_history_size_setshow_var)
7406 (record_call_history_size_setshow_var): New globals.
7407 (command_size_to_target_size): New function.
7408 (cmd_record_insn_history, cmd_record_call_history): Use
7409 command_size_to_target_size instead of cast.
7410 (validate_history_size, set_record_insn_history_size)
7411 (set_record_call_history_size): New functions.
7412 (_initialize_record): Install set_record_insn_history_size and
7413 set_record_call_history_size as "set" hooks of "set record
7414 instruction-history-size" and "set record
7415 function-call-history-size".
7416
7417 2013-03-26 Pedro Alves <palves@redhat.com>
7418
7419 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7420 use with history_max_entries use. Remove FIXME note.
7421
7422 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7423
7424 * record-btrace.c (record_btrace_close): Call
7425 record_btrace_auto_disable.
7426
7427 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7428
7429 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7430
7431 2013-03-25 Doug Evans <dje@google.com>
7432
7433 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7434
7435 2013-03-25 Tom Tromey <tromey@redhat.com>
7436
7437 PR symtab/11462:
7438 * c-exp.y (exp): Add new productions for destructors after '.' and
7439 '->'.
7440 (write_destructor_name): New function.
7441
7442 2013-03-25 Tom Tromey <tromey@redhat.com>
7443
7444 PR c++/9197:
7445 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7446 value_struct_elt, not lookup_struct_elt_type.
7447 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7448 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7449 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7450
7451 2013-03-25 Yao Qi <yao@codesourcery.com>
7452
7453 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7454 instead of '_mkdir'.
7455
7456 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7457
7458 * windows-nat.c (windows_get_absolute_argv0): New function.
7459 * windows-nat.h: Add its prototype.
7460
7461 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7462 Use IS_DIR_SEPARATOR instead of looking for a character inside
7463 SLASH_STRING. Include filenames.h.
7464 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7465 relocate_gdb_directory works when passed gdb_program_name.
7466 Include windows-nat.h.
7467
7468 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7469
7470 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7471 * remote.c (trace_error): Remove the special handling of '2'.
7472 (readchar) <SERIAL_EOF>
7473 (readchar) <SERIAL_ERROR>
7474 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7475 (remote_get_trace_status): Call throw_exception if EX is
7476 TARGET_CLOSE_ERROR.
7477 * utils.c (perror_with_name): Rename to ...
7478 (throw_perror_with_name): ... here. New parameter errcode, describe it
7479 in the function comment.
7480 (perror_with_name): New function wrapper.
7481 * utils.h (enum errors): New stub declaration.
7482 (throw_perror_with_name): New declaration.
7483
7484 2013-03-22 Pedro Alves <palves@redhat.com>
7485 Yao Qi <yao@codesourcery.com>
7486 Mark Kettenis <kettenis@gnu.org>
7487
7488 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7489 Don't let the user set the value to UINT_MAX directly.
7490 <var_integer>: Don't let the user set the value to INT_MAX
7491 directly.
7492
7493 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7494
7495 * remote.c (remote_unpush_target): New function.
7496 (remote_open_1): Remove two pop_target calls, update one comment, add
7497 comment to target_preopen call. Replace pop_target call by
7498 remote_unpush_target call.
7499 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7500 pop_target calls by remote_unpush_target calls.
7501
7502 2013-03-22 Pedro Alves <palves@redhat.com>
7503
7504 * linux-nat.c (linux_child_follow_fork): Don't call
7505 linux_enable_event_reporting.
7506 (linux_handle_extended_wait): Don't call
7507 linux_enable_event_reporting.
7508
7509 2013-03-22 Pedro Alves <palves@redhat.com>
7510
7511 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7512 use it to rewrite the trampoline buffers with type gdb_byte[], and
7513 undefine the macro. Remove char* cast.
7514
7515 2013-03-21 Doug Evans <dje@google.com>
7516
7517 New commands "mt set per-command {space,time,symtab} {on,off}".
7518 * NEWS: Add entry.
7519 * event-top.c: #include "maint.h".
7520 * main.c: #include "maint.h".
7521 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7522 timeval-utils.h, maint.h, cli/cli-setshow.h.
7523 (per_command_time, per_command_space): New static globals.
7524 (per_command_symtab): New static global.
7525 (per_command_setlist, per_command_showlist): New static globals.
7526 (struct cmd_stats): Move here from utils.c.
7527 (set_per_command_time): Renamed from set_display_time in utils.c
7528 and moved here. All callers updated.
7529 (set_per_command_space): Renamed from set_display_space in utils.c
7530 and moved here. All callers updated.
7531 (count_symtabs_and_blocks): New function.
7532 (report_command_stats): Moved here from utils.c. Add support for
7533 printing symtab stats. Only print data if enabled before command
7534 executed.
7535 (make_command_stats_cleanup): Ditto.
7536 (sert_per_command_cmd, show_per_command_cmd): New functions.
7537 (_initialize_maint_cmds): Add new commands
7538 mt set per-command {space,time,symtab} {on,off}.
7539 * maint.h: New file.
7540 * top.c: #include "maint.h".
7541 * utils.c (reset_prompt_for_continue_wait_time): New function.
7542 (get_prompt_for_continue_wait_time): New function.
7543 * utils.h (reset_prompt_for_continue_wait_time): Declare
7544 (get_prompt_for_continue_wait_time): Declare.
7545 (make_command_stats_cleanup): Moved to maint.h.
7546 (set_display_time, set_display_space): Moved to maint.h and renamed
7547 to set_per_command_time, set_per_command_space.
7548 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7549 parse_binary_operation and made non-static. Don't call error,
7550 just return an error marker. All callers updated.
7551 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7552
7553 2013-03-21 Tom Tromey <tromey@redhat.com>
7554
7555 * symfile.c (alloc_section_addr_info): Update header. Don't set
7556 'num_sections' field.
7557 (build_section_addr_info_from_section_table): Set 'num_sections'.
7558 (build_section_addr_info_from_bfd): Likewise.
7559 (build_section_addr_info_from_objfile): Remove dead loop
7560 condition.
7561 (free_section_addr_info): Unconditionally call xfree.
7562 (relative_addr_info_to_section_offsets, addrs_section_sort)
7563 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7564 condition.
7565 (syms_from_objfile_1): Remove dead 'if' condition. Check
7566 'num_sections'.
7567 (add_symbol_file_command): Set 'num_sections'.
7568 * symfile-mem.c (symbol_file_add_from_memory): Set
7569 'num_sections'.
7570 * somread.c (som_symfile_offsets): Remove dead loop condition.
7571 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7572 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7573
7574 2013-03-21 Tom Tromey <tromey@redhat.com>
7575
7576 * tracepoint.h (decode_agent_options): Add 'trace_string'
7577 argument.
7578 * tracepoint.c (decode_agent_options): Add 'trace_string'
7579 argument.
7580 (validate_actionline): Update.
7581 (collect_symbol): Add 'trace_string' argument.
7582 (struct add_local_symbols_data) <trace_string>: New field.
7583 (do_collect_symbol): Update.
7584 (add_local_symbols): Add 'trace_string' argument.
7585 (encode_actions_1): Update.
7586 (trace_dump_actions): Update.
7587 * dwarf2loc.c (access_memory): Update.
7588 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7589 * ax-general.c (new_agent_expr): Update.
7590 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7591 (gen_trace_for_return_address): Add argument.
7592 (trace_kludge, trace_string_kludge): Remove.
7593 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7594 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7595 (gen_trace_for_var): Add 'trace_string' argument.
7596 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7597 (gen_printf, agent_eval_command_one): Update.
7598
7599 2013-03-21 Tom Tromey <tromey@redhat.com>
7600
7601 PR exp/15109:
7602 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7603 Handle FILENAME token.
7604
7605 2013-03-21 Tom Tromey <tromey@redhat.com>
7606
7607 * c-exp.y (YYPRINT): Define.
7608 (c_print_token): New function.
7609
7610 2013-03-21 Tom Tromey <tromey@redhat.com>
7611
7612 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7613
7614 2013-03-21 Yao Qi <yao@codesourcery.com>
7615
7616 * ctf.c: Include "gdb_stat.h".
7617 [USE_WIN32API]: New macro 'mkdir'.
7618 (ctf_start): Use permission bits macros if they are defined.
7619
7620 2013-03-20 Keith Seitz <keiths@redhat.com>
7621
7622 * breakpoint.h (struct breakpoint): Add comment to
7623 extra_string indicating that this member is mallod'd.
7624 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7625
7626 2013-03-20 Pedro Alves <palves@redhat.com>
7627
7628 PR gdb/15289
7629
7630 * cli/cli-setshow.c (do_set_command)
7631 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7632 the result of parsing the command argument. Throw error if the
7633 value is greater than UINT_MAX. Print the invalid value with
7634 plongest.
7635 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7636 result of parsing the command argument. Throw error if the value
7637 is greater than INT_MAX, not greater or equal. Also throw error
7638 if the value is less than INT_MIN. Print the invalid value with
7639 plongest.
7640 <var_zuinteger_unlimited>: Throw error if the value is greater
7641 than INT_MAX, not greater or equal.
7642 (do_show_command) <var_integer, var_zinteger,
7643 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7644
7645 2013-03-20 Tom Tromey <tromey@redhat.com>
7646
7647 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7648 if possible.
7649 * dwarf2read.c (read_func_scope): Remove old FIXME.
7650 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7651 not LOC_COMPUTED.
7652 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7653 Unconditionally call via computed ops, if possible.
7654 * printcmd.c (address_info): Unconditionally call via computed ops,
7655 if possible.
7656 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7657 if possible.
7658 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7659 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7660 if possible.
7661
7662 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7663 Tom Tromey <tromey@redhat.com>
7664
7665 PR symtab/8421:
7666 * coffread.c (coff_register_index): New global.
7667 (process_coff_symbol, coff_read_enum_type): Set
7668 SYMBOL_ACLASS_INDEX.
7669 (_initialize_coffread): Initialize new global.
7670 * dwarf2loc.c (locexpr_find_frame_base_location)
7671 (dwarf2_block_frame_base_locexpr_funcs)
7672 (loclist_find_frame_base_location)
7673 (dwarf2_block_frame_base_loclist_funcs): New.
7674 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7675 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7676 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7677 (dwarf2_block_frame_base_loclist_funcs): New.
7678 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7679 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7680 globals.
7681 (read_func_scope): Update.
7682 (fixup_go_packaging, mark_common_block_symbol_computed)
7683 (var_decode_location, new_symbol_full, dwarf2_const_value):
7684 Set SYMBOL_ACLASS_INDEX.
7685 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7686 (_initialize_dwarf2_read): Initialize new globals.
7687 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7688 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7689 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7690 globals.
7691 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7692 (_initialize_mdebugread): Initialize new globals.
7693 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7694 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7695 (stab_register_index, stab_regparm_index): New globals.
7696 (define_symbol, read_enum_type, common_block_end): Set
7697 SYMBOL_ACLASS_INDEX.
7698 (_initialize_stabsread): Initialize new globals.
7699 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7700 globals.
7701 (MAX_SYMBOL_IMPLS): New define.
7702 (register_symbol_computed_impl, register_symbol_block_impl)
7703 (register_symbol_register_impl)
7704 (initialize_ordinary_address_classes): New functions.
7705 (_initialize_symtab): Call initialize_ordinary_address_classes.
7706 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7707 (struct symbol_impl): New.
7708 (SYMBOL_ACLASS_BITS): New define.
7709 (struct symbol) <aclass, ops>: Remove fields.
7710 <aclass_index>: New field.
7711 (symbol_impls): Declare.
7712 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7713 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7714 (register_symbol_computed_impl, register_symbol_block_impl)
7715 (register_symbol_register_impl): Declare.
7716 (struct symbol_computed_ops): Add location_has_loclist.
7717 (struct symbol_block_ops): New.
7718 (SYMBOL_BLOCK_OPS): New.
7719 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7720
7721 2013-03-20 Tom Tromey <tromey@redhat.com>
7722
7723 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7724 (print_partial_symbols, recursively_search_psymtabs): Use
7725 PSYMBOL_CLASS.
7726
7727 2013-03-20 Pierre Muller <muller@sourceware.org>
7728
7729 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7730 addtion, subtraction, multiplication and division binary operator.
7731
7732 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7733
7734 Code cleanup.
7735 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7736 * bsd-kvm.c (bsd_kvm_close): Likewise.
7737 * bsd-uthread.c (bsd_uthread_close): Likewise.
7738 * corelow.c (core_close): Likewise.
7739 (core_close_cleanup): Remove parameter quitting from a caller.
7740 * event-top.c (async_disconnect): Likewise.
7741 * exec.c (exec_close_1): Remove parameter quitting.
7742 * go32-nat.c (go32_close): Likewise.
7743 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7744 parameter quitting from a caller.
7745 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7746 variable.
7747 (mips_linux_close): Remove parameter quitting. Remove parameter
7748 quitting from a caller.
7749 * monitor.c (monitor_close): Remove parameter quitting.
7750 * monitor.h (monitor_close): Likewise.
7751 * record-btrace.c (record_btrace_close): Likewise.
7752 * record-full.c (record_full_close): Likewise.
7753 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7754 it also from fprintf_unfiltered.
7755 * remote-mips.c (mips_close): Remove parameter quitting.
7756 (mips_detach): Remove parameter quitting from a caller.
7757 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7758 (gdbsim_close): Remove duplicate function comment. Remove parameter
7759 quitting and remove it also from printf_filtered.
7760 * remote.c (remote_close): Remove parameter quitting.
7761 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7762 * target.c (update_current_target): Remove parameter int from to_close
7763 de_fault.
7764 (push_target, unpush_target, pop_target): Remove parameter quitting from
7765 a caller.
7766 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7767 Remove parameter quitting from a caller.
7768 (target_preopen): Remove parameter quitting from a caller.
7769 (target_close): Remove parameter quitting. Remove parameter quitting
7770 from a caller two times. Remove parameter quitting also from
7771 fprintf_unfiltered.
7772 * target.h (struct target_ops): Remove parameter quitting and as int
7773 from fields to_xclose and to_close.
7774 (extern struct target_ops current_target):
7775 (target_close, pop_all_targets): Remove parameter quitting. Update the
7776 comment.
7777 (pop_all_targets_above): Remove parameter quitting.
7778 * top.c (quit_target): Remove parameter quitting from a caller.
7779 * tracepoint.c (tfile_close): Remove parameter quitting.
7780 * windows-nat.c (windows_close): Remove parameter quitting.
7781
7782 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7783
7784 * windows-nat.c (handle_output_debug_string): Replace call
7785 to string_to_core_addr with call to strtoull.
7786
7787 2013-03-20 Yao Qi <yao@codesourcery.com>
7788
7789 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7790 and write it to CTF metadata.
7791
7792 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7793
7794 * windows-nat.c (handle_output_debug_string): Change type of n to
7795 SIZE_T to avoid crash on 64 bit systems.
7796
7797 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7798
7799 * python/python-internal.h (HAVE_SNPRINTF)
7800 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7801 about redefinition of snprintf by pyerrors.h.
7802
7803 2013-03-15 Steve Ellcey <sellcey@mips.com>
7804
7805 * remote-sim.c (sim_command_completer): Make char arguments const.
7806
7807 2013-03-15 Tom Tromey <tromey@redhat.com>
7808
7809 PR c++/15116:
7810 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7811
7812 2013-03-14 Tom Tromey <tromey@redhat.com>
7813
7814 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7815 New fields.
7816 (get_file_crc): Move from symfile.c.
7817 (gdb_bfd_crc): New function.
7818 * gdb_bfd.h (gdb_bfd_crc): Declare.
7819 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7820 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7821 (separate_debug_file_exists): Use gdb_bfd_crc.
7822
7823 2013-03-14 Tom Tromey <tromey@redhat.com>
7824
7825 * symfile.c (get_debug_link_info): Remove.
7826 (find_separate_debug_file_by_debuglink): Use
7827 bfd_get_debug_link_info.
7828
7829 2013-03-14 Tom Tromey <tromey@redhat.com>
7830
7831 * symtab.c (error_in_psymtab_expansion): New function.
7832 (lookup_symbol_aux_quick)
7833 (basic_lookup_transparent_type_quick): Remove "last resort"
7834 code. Use error_in_psymtab_expansion.
7835
7836 2013-03-14 Doug Evans <dje@google.com>
7837 Jan Kratochvil <jan.kratochvil@redhat.com>
7838
7839 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7840 any successful compare_filenames_for_search or FILENAME_CMP.
7841 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7842 * symtab.c (iterate_over_some_symtabs): Likewise.
7843
7844 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7845
7846 * source.c (print_source_lines_base): Make a local copy of
7847 symtab_to_fullname.
7848
7849 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
7850 Jan Kratochvil <jan.kratochvil@redhat.com>
7851
7852 * source.c (print_source_lines_base): Suppress "file" for TUI.
7853
7854 2013-03-14 Keith Seitz <keiths@redhat.com>
7855 Alan Matsuoka <alanm@redhat.com>
7856
7857 PR c++/15203
7858 PR c++/15210
7859 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7860 TYPE_CODE_METHOD.
7861 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7862 symbols.
7863
7864 2013-03-14 Yao Qi <yao@codesourcery.com>
7865
7866 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7867 status to tfile if trace is stopped by command 'tstop'.
7868
7869 2013-03-14 Yao Qi <yao@codesourcery.com>
7870
7871 * tracepoint.c (tfile_write_status): Write trace notes and user
7872 name into tfile if they are not NULL.
7873
7874 2013-03-14 Hui Zhu <hui@codesourcery.com>
7875 Yao Qi <yao@codesourcery.com>
7876
7877 * Makefile.in (REMOTE_OBS): Add ctf.o.
7878 (SFILES): Add ctf.c.
7879 (HFILES_NO_SRCDIR): Add ctf.h.
7880 * ctf.c, ctf.h: New files.
7881 * tracepoint.c: Include 'ctf.h'.
7882 (collect_pseudocommand): Remove static.
7883 (trace_save_command): Parse option "-ctf".
7884 Produce different trace file writers per option.
7885 Adjust output message.
7886 (trace_save_tfile, trace_save_ctf): New.
7887 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7888 * mi/mi-main.c: Include 'ctf.h'.
7889 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7890 trace_save_tfile or trace_save_ctf.
7891 * NEWS: Mention these changes.
7892
7893 2013-03-14 Yao Qi <yao@codesourcery.com>
7894
7895 * tracepoint.c (trace_file_writer_xfree): New.
7896 (struct tfile_writer_data): New.
7897 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7898 (tfile_write_header, tfile_write_regblock_type): New.
7899 (tfile_write_status, tfile_write_uploaded_tsv): New.
7900 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7901 (tfile_write_raw_data, (tfile_end): New.
7902 (tfile_write_ops): New global variable.
7903 (TRACE_WRITE_R_BLOCK): New macro.
7904 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7905 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7906 (TRACE_WRITE_V_BLOCK): New macro.
7907 (trace_save): Add extra one parameter WRITER. Make it static.
7908 Use WRITER to writer trace.
7909 (tfile_trace_file_writer_new): New.
7910 (trace_save_command): Caller update.
7911 (trace_save_tfile): Write trace data in TFILE format.
7912 * tracepoint.h (struct trace_frame_write_ops): New.
7913 (struct trace_file_write_ops): New.
7914 (struct trace_file_writer): New.
7915 (trace_save): Remove its declaration.
7916 (trace_save_tfile): Declare it.
7917 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7918 instead of trace_save.
7919
7920 2013-03-13 Pedro Alves <palves@redhat.com>
7921
7922 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7923
7924 2013-03-13 Pedro Alves <palves@redhat.com>
7925
7926 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7927 commented out code.
7928 * demangle.c (current_demangling_style_string): Make it const.
7929 (set_demangling_command): Assert the demangling style is known.
7930 Remove all handling of unknown styles. Set
7931 'current_demangling_style_string' to an element of the
7932 demangling_style_names array.
7933 (set_demangling_style): Delete.
7934 (_initialize_demangler): Set current_demangling_style_string to the
7935 element of the demangling_style_names array that corresponds to
7936 the default demangling style. Remove FIXME note. Don't call
7937 set_demangling_style.
7938 * gdb-demangle.h (set_demangling_style): Remove declaration.
7939
7940 2013-03-13 Pedro Alves <palves@redhat.com>
7941
7942 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7943 fields const.
7944 (ada_make_symbol_completion_list): Make "text0" parameter const.
7945 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7946 * breakpoint.c (condition_completer): Make "text" and "word"
7947 parameters const. Adjust.
7948 (check_tracepoint_command): Adjust to validate_actionline
7949 prototype change.
7950 (catch_syscall_completer): Make "text" and "word" parameters
7951 const.
7952 * cli/cli-cmds.c (show_user): Make "comname" local const.
7953 (valid_command_p): Make "command" parameter const.
7954 (alias_command): Make "alias_prefix" and "command_prefix" locals
7955 const.
7956 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7957 (add_alias_cmd): Make "name" and "oldname" parameters const.
7958 Adjust. No longer make copy of OLDNAME.
7959 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7960 (add_setshow_cmd_full, add_setshow_enum_cmd)
7961 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7962 (add_setshow_filename_cmd, add_setshow_string_cmd)
7963 (add_setshow_string_noescape_cmd)
7964 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7965 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7966 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7967 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7968 Make "name" parameter const.
7969 (help_cmd): Rename "command" parameter to "arg". New const local
7970 "command".
7971 (find_cmd): Make "command" parameter const.
7972 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7973 deprecated_cmd_warning prototype change.
7974 (undef_cmd_error): Make "cmdtype" parameter const.
7975 (lookup_cmd): Make "line" parameter const.
7976 (deprecated_cmd_warning): Change type of "text" parameter to
7977 pointer to const char, from pointer to pointer to char. Adjust.
7978 (lookup_cmd_composition): Make "text" parameter const.
7979 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7980 parameters const.
7981 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7982 const.
7983 * cli/cli-script.c (validate_comname): Make "tem" local const.
7984 (define_command): New const local "tem_c". Use it in calls to
7985 lookup_cmd.
7986 (document_command): Make "tem" and "comfull" locals const.
7987 (show_user_1): Make "prefix" and "name" parameters const.
7988 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7989 const.
7990 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7991 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7992 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7993 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7994 (complete_on_enum, add_setshow_enum_cmd)
7995 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7996 (add_setshow_filename_cmd, add_setshow_string_cmd)
7997 (add_setshow_string_noescape_cmd)
7998 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7999 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8000 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8001 Change prototypes, constifying strings.
8002 * completer.c (noop_completer, filename_completer): Make "text"
8003 and "prefix" parameters const.
8004 (location_completer, expression_completer)
8005 (complete_line_internal): Make "text" and "prefix" parameters
8006 const and adjust.
8007 (command_completer, signal_completer): Make "text" and "prefix"
8008 parameters const.
8009 * completer.h (noop_completer, filename_completer)
8010 (expression_completer, location_completer, command_completer)
8011 (signal_completer): Change prototypes.
8012 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8013 parameters const.
8014 * cp-abi.c (cp_abi_completer): Likewise.
8015 * expression.h (parse_expression_for_completion): Change
8016 prototype.
8017 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8018 parameters const.
8019 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8020 * infrun.c (handle_completer): Make "text" and "word" parameters
8021 const.
8022 * interps.c (interpreter_completer): Make "text" and "word"
8023 parameters const.
8024 * language.h (struct language_defn)
8025 <la_make_symbol_completion_list>: Make "text" and "word"
8026 parameters const.
8027 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8028 (parse_exp_in_context): Rename to ...
8029 (parse_exp_in_context_1): ... this.
8030 (parse_exp_in_context): Reimplement, with const hack from
8031 parse_exp_1.
8032 (parse_expression_for_completion): Make "string" parameter const.
8033 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8034 to pointer to const char. Adjust.
8035 (print_command_1): Make "exp" parameter const.
8036 (output_command): Rename to ...
8037 (output_command_const): ... this. Make "exp" parameter const.
8038 (output_command): Reimplement.
8039 (x_command): Adjust.
8040 (display_command): Rename "exp" parameter to "arg". New "exp"
8041 local, const version of "arg".
8042 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8043 "cmd_name" local const.
8044 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8045 call.
8046 (cmdpy_completer): Make "text" and "word" parameters const.
8047 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8048 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8049 const.
8050 * remote.c (_initialize_remote): Make "cmd_name" local const.
8051 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8052 parameters const. Adjust.
8053 (completion_list_add_fields): Make "sym_text", "text" and "word"
8054 parameters const.
8055 (struct add_name_data) <sym_text, text, word>: Make fields const.
8056 (default_make_symbol_completion_list_break_on): Make "text" and
8057 "word" parameters const. Adjust locals.
8058 (default_make_symbol_completion_list)
8059 (make_symbol_completion_list, make_symbol_completion_type)
8060 (make_symbol_completion_list_fn): Make "text" and "word"
8061 parameters const.
8062 (make_file_symbol_completion_list): Make "text", "word" and
8063 "srcfile" parameters const. Adjust locals.
8064 (add_filename_to_list): Make "text" and "word" parameters const.
8065 (struct add_partial_filename_data) <text, word>: Make fields
8066 const.
8067 (make_source_files_completion_list): Make "text" and "word"
8068 parameters const.
8069 * symtab.h (default_make_symbol_completion_list_break_on)
8070 (default_make_symbol_completion_list, make_symbol_completion_list)
8071 (make_symbol_completion_type enum type_code)
8072 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8073 (make_source_files_completion_list): Change prototype.
8074 * top.c (execute_command): Adjust to pass pointer to pointer to
8075 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8076 change.
8077 (set_verbose): Make "cmdname" local const.
8078 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8079 and adjust.
8080 (validate_actionline): Make "line" parameter a pointer to const
8081 char, and adjust.
8082 (encode_actions_1): Make "action_exp" local const, and adjust.
8083 (encode_actions): Adjust.
8084 (replace_comma): Delete.
8085 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8086 const, and adjust. Don't frob the action string while splitting
8087 it at commas. Instead, make a copy of each split substring in
8088 turn.
8089 (trace_dump_command): Adjust to validate_actionline prototype
8090 change.
8091 * tracepoint.h (decode_agent_options, decode_agent_options)
8092 (encode_actions, validate_actionline): Change prototypes.
8093 * valprint.h (output_command): Delete declaration.
8094 (output_command_const): Declare.
8095 * value.c (function_destroyer): Cast const away in xfree call.
8096
8097 2013-03-13 Pedro Alves <palves@redhat.com>
8098
8099 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8100 rather than casting 'const char * const *' to 'const char **'.
8101 * ada-lex.l (processInt): Make "trailer" local const. Remove
8102 'const char **' cast.
8103 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8104 locals, and use those as strtol output pointer, instead than doing
8105 invalid casts to from 'const char **' to 'char **'.
8106 (_initialize_demangle): Remove cast.
8107 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8108 locals, and use those as strtol output pointer, instead than doing
8109 invalid casts to from 'const char **' to 'char **'.
8110 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8111 casts.
8112 * stap-probe.c (stap_parse_register_operand)
8113 (stap_parse_single_operand): Likewise.
8114
8115 2013-03-13 Yao Qi <yao@codesourcery.com>
8116
8117 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8118 the last matched 'V' blcok in trace frame.
8119
8120 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8121
8122 * NEWS: Create a new section for the next release branch.
8123 Rename the section of the current branch, now that it has
8124 been cut.
8125
8126 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8127
8128 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8129 * version.in: Bump version to 7.6.50.20130312-cvs.
8130
8131 2013-03-12 Keith Seitz <keiths@redhat.com>
8132
8133 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8134 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8135 Remove temporary copy of input string.
8136 (mi_execute_command_wrapper): Make "cmd" const.
8137 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8138 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8139 Use const strings.
8140 (mi_parse): Make "cmd" const.
8141 Use const strings.
8142 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8143
8144 2013-03-12 Keith Seitz <keiths@redhat.com>
8145
8146 * ada-lang.c (ada_read_renaming_var_value): Pass const
8147 pointer to expression string to parse_exp_1.
8148 (create_excep_cond_exprs): Likewise.
8149 * ax-gdb.c (agent_eval_command_one): Likewise.
8150 (maint_agent_printf_command): Likewise.
8151 Constify much of the string handling/parsing.
8152 * breakpoint.c (set_breakpoint_condition): Pass const
8153 pointer to expression string to parse_exp_1.
8154 (update_watchpoint): Likewise.
8155 (parse_cmd_to_aexpr): Constify string handling.
8156 Pass const pointer to parse_exp_1.
8157 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8158 (find_condition_and_thread): Likewise.
8159 Make TOK const.
8160 (watch_command_1): Make "arg" const.
8161 Constify string handling.
8162 Copy the expression string instead of changing the input
8163 string.
8164 (update_breakpoint_location): Pass const pointer to
8165 parse_exp_1.
8166 * eval.c (parse_and_eval_address): Make "exp" const.
8167 (parse_to_comma_and_eval): Make "expp" const.
8168 (parse_and_eval): Make "exp" const.
8169 * expression.h (parse_expression): Make argument const.
8170 (parse_exp_1): Make first argument const.
8171 * findcmd.c (parse_find_args): Treat "args" as const.
8172 * linespec.c (parse_linespec): Pass const pointer to
8173 linespec_expression_to_pc.
8174 (linespec_expression_to_pc): Make "exp_ptr" const.
8175 * parse.c (parse_exp_1): Make "stringptr" const.
8176 Make a copy of the expression to pass to parse_exp_in_context until
8177 this whole interface can be constified.
8178 (parse_expression): Make "string" const.
8179 * printcmd.c (ui_printf): Treat "arg" as const.
8180 Handle const strings.
8181 * tracepoint.c (validate_actionline): Pass const pointer to
8182 all calls to parse_exp_1.
8183 (encode_actions_1): Likewise.
8184 * value.h (parse_to_comma_and_eval): Make argument const.
8185 (parse_and_eval_address): Likewise.
8186 (parse_and_eval): Likewise.
8187 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8188 (varobj_set_value): Likewise.
8189 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8190 constify string handling.
8191 Pass const pointers to parse_and_eval_address and
8192 parse_to_comman_and_eval.
8193 * cli/cli-utils.c (skip_to_space): Rename to ...
8194 (skip_to_space_const): ... this. Handle const strings.
8195 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8196 skip_to_space_const.
8197 (skip_to_space_const): Declare.
8198 * common/format.c (parse_format_string): Make "arg" const.
8199 Handle const strings.
8200 * common/format.h (parse_format_string): Make "arg" const.
8201 * gdbserver/ax.c (ax_printf): Make "format" const.
8202 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8203 of the expression string.
8204
8205 2013-03-12 Hui Zhu <hui@codesourcery.com>
8206
8207 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8208
8209 2013-03-12 Yao Qi <yao@codesourcery.com>
8210 Hui Zhu <hui@codesourcery.com>
8211
8212 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8213 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8214 DW_OP_deref_size.
8215
8216 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8217
8218 * ada-lex.l (rules): Only recognize 'thread' as a
8219 delimiter when followed by numerals, as for c-exp.y.
8220 Use new rewind_to_char function to rewind the input for
8221 expression-delimiting tokens.
8222 (rewind_to_char): New function.
8223
8224 2013-03-11 Pedro Alves <palves@redhat.com>
8225 Jan Kratochvil <jan.kratochvil@redhat.com>
8226
8227 * configure: Regenerate.
8228 * configure.ac (check dynamic export flag): Link python test with
8229 $PYTHON_LIBS.
8230
8231 2013-03-11 Doug Evans <dje@google.com>
8232 Keith Seitz <keiths@redhat.com>
8233
8234 * linespec.c (find_linespec_symbols): Call find_function_symbols
8235 first, and then call lookup_prefix_sym/find_method.
8236
8237 2013-03-11 Pedro Alves <palves@redhat.com>
8238
8239 * charset.c (convert_between_encodings): Don't cast between
8240 different pointer to pointer types. Instead, make the 'inp' local
8241 be of the type iconv expects.
8242 (wchar_iterate): Don't cast between different pointer to pointer
8243 types. Instead, use new pointer local of the type iconv expects.
8244 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8245 Add new local of type char pointer, and use it to get a
8246 char/string view of the byte buffer, instead of casting between
8247 pointer to pointer types.
8248
8249 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8250
8251 * remote.c (remote_set_trace_buffer_size): Move != operator
8252 to the start of next line to fix an ARI warning.
8253
8254 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8255
8256 * NEWS: Add record changes.
8257
8258 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8259
8260 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8261 the instruction history disassembly.
8262 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8263 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8264
8265 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8266
8267 * Makefile.in (SFILES): Add record-btrace.c
8268 (COMMON_OBS): Add record-btrace.o
8269 * record-btrace.c: New.
8270 * objfiles.c: Include btrace.h.
8271 (free_objfile): call btrace_free_objfile.
8272
8273 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8274
8275 * target.c (target_call_history, target_call_history_from,
8276 target_call_history_range): New.
8277 * target.h (target_ops) <to_call_history, to_call_history_from,
8278 to_call_history_range>: New fields.
8279 (target_call_history, target_call_history_from,
8280 target_call_history_range): New declaration.
8281 * record.c (get_call_history_modifiers, cmd_record_call_history,
8282 record_call_history_size): New.
8283 (_initialize_record): Add the "record function-call-history" command.
8284 Add "set/show record function-call-history-size" commands.
8285 * record.h (record_print_flag): New.
8286
8287 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8288
8289 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8290 to_insn_history_range>: New fields.
8291 (target_insn_history): New.
8292 (target_insn_history_from): New.
8293 (target_insn_history_range): New.
8294 * target.c (target_insn_history): New.
8295 (target_insn_history_from): New.
8296 (target_insn_history_range): New.
8297 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8298 (record_insn_history_size): New.
8299 (get_insn_number): New.
8300 (get_context_size): New.
8301 (no_chunk): New.
8302 (get_insn_history_modifiers): New.
8303 (cmd_record_insn_history): New.
8304 (_initialize_record): Add "set/show record instruction-history-size"
8305 command. Add "record instruction-history" command.
8306
8307 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8308
8309 * record.h (record_disconnect): New.
8310 (record_detach): New.
8311 (record_mourn_inferior): New.
8312 (record_kill): New.
8313 * record-full.c (record_disconnect, record_detach,
8314 record_mourn_inferior, record_kill): Move to...
8315 * record.c: ...here.
8316 (DEBUG): New.
8317 (record_stop): New.
8318 (record_unpush): New.
8319 (cmd_record_stop): Call record_stop. Replace unpush_target
8320 call with record_unpush call.
8321 (record_disconnect, record_detach): Assert that the target
8322 is of record stratum. Call record_unpush, record_stop, and
8323 DEBUG.
8324 (record_mourn_inferior, record_kill): Assert that the target
8325 is of record stratum. Call record_unpush and DEBUG.
8326
8327 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8328
8329 * record-full.h, record-full.c (record_memory_query): Rename
8330 to ...
8331 (record_full_memory_query): ...this. Update all users.
8332 (record_arch_list_add_reg): Rename to ...
8333 (record_full_arch_list_add_reg): ...this. Update all users.
8334 (record_arch_list_add_mem): Rename to ...
8335 (record_full_arch_list_add_mem): ...this. Update all users.
8336 (record_arch_list_add_end): Rename to ...
8337 (record_full_arch_list_add_end): ...this. Update all users.
8338 (record_gdb_operation_disable_set): Rename to ...
8339 (record_full_gdb_operation_disable_set): ...this.
8340 Update all users.
8341
8342 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8343
8344 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8345 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8346 (RECORD_IS_REPLAY): Renamed to ...
8347 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8348 (RECORD_FILE_MAGIC): Renamed to ...
8349 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8350 (record_mem_entry): Renamed to ...
8351 (record_full_mem_entry): ... this. Updated all users.
8352 (record_reg_entry): Renamed to ...
8353 (record_full_reg_entry): ... this. Updated all users.
8354 (record_end_entry): Renamed to ...
8355 (record_full_end_entry): ... this. Updated all users.
8356 (record_type) <record_end, record_reg, record_mem>: Renamed
8357 to ...
8358 (record_full_type) <record_full_end, record_full_reg,
8359 record_full_mem>: ... this. Updated all users.
8360 (record_entry): Renamed to ...
8361 (record_full_entry): ... this. Updated all users.
8362 (record_core_buf_entry): Renamed to ...
8363 (record_full_core_buf_entry): ... this. Updated all users.
8364 (record_core_regbuf): Renamed to ...
8365 (record_full_core_regbuf): ... this. Updated all users.
8366 (record_core_start): Renamed to ...
8367 (record_full_core_start): ... this. Updated all users.
8368 (record_core_end): Renamed to ...
8369 (record_full_core_end): ... this. Updated all users.
8370 (record_core_buf_list): Renamed to ...
8371 (record_full_core_buf_list): ... this. Updated all users.
8372 (record_first): Renamed to ...
8373 (record_full_first): ... this. Updated all users.
8374 (record_list): Renamed to ...
8375 (record_full_list): ... this. Updated all users.
8376 (record_arch_list_head): Renamed to ...
8377 (record_full_arch_list_head): ... this. Updated all users.
8378 (record_arch_list_tail): Renamed to ...
8379 (record_full_arch_list_tail): ... this. Updated all users.
8380 (record_stop_at_limit): Renamed to ...
8381 (record_full_stop_at_limit): ... this. Updated all users.
8382 (record_insn_max_num): Renamed to ...
8383 (record_full_insn_max_num): ... this. Updated all users.
8384 (record_insn_num): Renamed to ...
8385 (record_full_insn_num): ... this. Updated all users.
8386 (record_insn_count): Renamed to ...
8387 (record_full_insn_count): ... this. Updated all users.
8388 (record_ops): Renamed to ...
8389 (record_full_ops): ... this. Updated all users.
8390 (record_core_ops): Renamed to ...
8391 (record_full_core_ops): ... this. Updated all users.
8392 (set_record_cmdlist): Renamed to ...
8393 (set_record_full_cmdlist): ... this. Updated all users.
8394 (show_record_cmdlist): Renamed to ...
8395 (show_record_full_cmdlist): ... this. Updated all users.
8396 (record_cmdlist): Renamed to ...
8397 (record_full_cmdlist): ... this. Updated all users.
8398 (record_beneath_to_resume_ops): Renamed to ...
8399 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8400 (record_beneath_to_resume): Renamed to ...
8401 (record_full_beneath_to_resume): ... this. Updated all users.
8402 (record_beneath_to_wait_ops): Renamed to ...
8403 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8404 (record_beneath_to_wait): Renamed to ...
8405 (record_full_beneath_to_wait): ... this. Updated all users.
8406 (record_beneath_to_store_registers_ops): Renamed to ...
8407 (record_full_beneath_to_store_registers_ops): ... this.
8408 Updated all users.
8409 (record_beneath_to_store_registers): Renamed to ...
8410 (record_full_beneath_to_store_registers): ... this.
8411 Updated all users.
8412 (record_beneath_to_xfer_partial_ops): Renamed to ...
8413 (record_full_beneath_to_xfer_partial_ops): ... this.
8414 Updated all users.
8415 (record_beneath_to_xfer_partial): Renamed to ...
8416 (record_full_beneath_to_xfer_partial): ... this.
8417 Updated all users.
8418 (record_beneath_to_insert_breakpoint): Renamed to ...
8419 (record_full_beneath_to_insert_breakpoint): ... this.
8420 Updated all users.
8421 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8422 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8423 Updated all users.
8424 (record_beneath_to_stopped_data_address): Renamed to ...
8425 (record_full_beneath_to_stopped_data_address): ... this.
8426 Updated all users.
8427 (record_beneath_to_async): Renamed to ...
8428 (record_full_beneath_to_async): ... this. Updated all users.
8429 (record_goto_insn): Renamed to ...
8430 (record_full_goto_insn): ... this. Updated all users.
8431 (record_save): Renamed to ...
8432 (record_full_save): ... this. Updated all users.
8433 (record_reg_alloc): Renamed to ...
8434 (record_full_reg_alloc): ... this. Updated all users.
8435 (record_reg_release): Renamed to ...
8436 (record_full_reg_release): ... this. Updated all users.
8437 (record_mem_alloc): Renamed to ...
8438 (record_full_mem_alloc): ... this. Updated all users.
8439 (record_mem_release): Renamed to ...
8440 (record_full_mem_release): ... this. Updated all users.
8441 (record_end_alloc): Renamed to ...
8442 (record_full_end_alloc): ... this. Updated all users.
8443 (record_end_release): Renamed to ...
8444 (record_full_end_release): ... this. Updated all users.
8445 (record_entry_release): Renamed to ...
8446 (record_full_entry_release): ... this. Updated all users.
8447 (record_list_release): Renamed to ...
8448 (record_full_list_release): ... this. Updated all users.
8449 (record_list_release_following): Renamed to ...
8450 (record_full_list_release_following): ... this.
8451 Updated all users.
8452 (record_list_release_first): Renamed to ...
8453 (record_full_list_release_first): ... this. Updated all users.
8454 (record_arch_list_add): Renamed to ...
8455 (record_full_arch_list_add): ... this. Updated all users.
8456 (record_get_loc): Renamed to ...
8457 (record_full_get_loc): ... this. Updated all users.
8458 (record_check_insn_num): Renamed to ...
8459 (record_full_check_insn_num): ... this. Updated all users.
8460 (record_arch_list_cleanups): Renamed to ...
8461 (record_full_arch_list_cleanups): ... this. Updated all users.
8462 (record_message): Renamed to ...
8463 (record_full_message): ... this. Updated all users.
8464 (record_message_wrapper): Renamed to ...
8465 (record_full_message_wrapper): ... this. Updated all users.
8466 (record_message_wrapper_safe): Renamed to ...
8467 (record_full_message_wrapper_safe): ... this. Updated all users.
8468 (record_gdb_operation_disable): Renamed to ...
8469 (record_full_gdb_operation_disable): ... this. Updated all users.
8470 (record_hw_watchpoint): Renamed to ...
8471 (record_full_hw_watchpoint): ... this. Updated all users.
8472 (record_exec_insn): Renamed to ...
8473 (record_full_exec_insn): ... this. Updated all users.
8474 (record_restore): Renamed to ...
8475 (record_full_restore): ... this. Updated all users.
8476 (record_async_inferior_event_token): Renamed to ...
8477 (record_full_async_inferior_event_token): ... this.
8478 Updated all users.
8479 (record_async_inferior_event_handler): Renamed to ...
8480 (record_full_async_inferior_event_handler): ... this.
8481 Updated all users.
8482 (record_core_open_1): Renamed to ...
8483 (record_full_core_open_1): ... this. Updated all users.
8484 (record_open_1): Renamed to ...
8485 (record_full_open_1): ... this. Updated all users.
8486 (record_open): Renamed to ...
8487 (record_full_open): ... this. Updated all users.
8488 (record_close): Renamed to ...
8489 (record_full_close): ... this. Updated all users.
8490 (record_resume_step): Renamed to ...
8491 (record_full_resume_step): ... this. Updated all users.
8492 (record_resumed): Renamed to ...
8493 (record_full_resumed): ... this. Updated all users.
8494 (record_execution_dir): Renamed to ...
8495 (record_full_execution_dir): ... this. Updated all users.
8496 (record_resume): Renamed to ...
8497 (record_full_resume): ... this. Updated all users.
8498 (record_get_sig): Renamed to ...
8499 (record_full_get_sig): ... this. Updated all users.
8500 (record_sig_handler): Renamed to ...
8501 (record_full_sig_handler): ... this. Updated all users.
8502 (record_wait_cleanups): Renamed to ...
8503 (record_full_wait_cleanups): ... this. Updated all users.
8504 (record_wait_1): Renamed to ...
8505 (record_full_wait_1): ... this. Updated all users.
8506 (record_wait): Renamed to ...
8507 (record_full_wait): ... this. Updated all users.
8508 (record_stopped_by_watchpoint): Renamed to ...
8509 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8510 (record_disconnect): Renamed to ...
8511 (record_full_disconnect): ... this. Updated all users.
8512 (record_detach): Renamed to ...
8513 (record_full_detach): ... this. Updated all users.
8514 (record_mourn_inferior): Renamed to ...
8515 (record_full_mourn_inferior): ... this. Updated all users.
8516 (record_kill): Renamed to ...
8517 (record_full_kill): ... this. Updated all users.
8518 (record_stopped_data_address): Renamed to ...
8519 (record_full_stopped_data_address): ... this. Updated all users.
8520 (record_registers_change): Renamed to ...
8521 (record_full_registers_change): ... this. Updated all users.
8522 (record_store_registers): Renamed to ...
8523 (record_full_store_registers): ... this. Updated all users.
8524 (record_xfer_partial): Renamed to ...
8525 (record_full_xfer_partial): ... this. Updated all users.
8526 (record_breakpoint): Renamed to ...
8527 (record_full_breakpoint): ... this. Updated all users.
8528 (record_breakpoint_p): Renamed to ...
8529 (record_full_breakpoint_p): ... this. Updated all users.
8530 (record_breakpoints): Renamed to ...
8531 (record_full_breakpoints): ... this. Updated all users.
8532 (record_sync_record_breakpoints): Renamed to ...
8533 (record_full_sync_record_breakpoints): ... this.
8534 Updated all users.
8535 (record_init_record_breakpoints): Renamed to ...
8536 (record_full_init_record_breakpoints): ... this.
8537 Updated all users.
8538 (record_insert_breakpoint): Renamed to ...
8539 (record_full_insert_breakpoint): ... this. Updated all users.
8540 (record_remove_breakpoint): Renamed to ...
8541 (record_full_remove_breakpoint): ... this. Updated all users.
8542 (record_can_execute_reverse): Renamed to ...
8543 (record_full_can_execute_reverse): ... this. Updated all users.
8544 (record_get_bookmark): Renamed to ...
8545 (record_full_get_bookmark): ... this. Updated all users.
8546 (record_goto_bookmark): Renamed to ...
8547 (record_full_goto_bookmark): ... this. Updated all users.
8548 (record_async): Renamed to ...
8549 (record_full_async): ... this. Updated all users.
8550 (record_can_async_p): Renamed to ...
8551 (record_full_can_async_p): ... this. Updated all users.
8552 (record_is_async_p): Renamed to ...
8553 (record_full_is_async_p): ... this. Updated all users.
8554 (record_execution_direction): Renamed to ...
8555 (record_full_execution_direction): ... this. Updated all users.
8556 (record_info): Renamed to ...
8557 (record_full_info): ... this. Updated all users.
8558 (record_delete): Renamed to ...
8559 (record_full_delete): ... this. Updated all users.
8560 (record_is_replaying): Renamed to ...
8561 (record_full_is_replaying): ... this. Updated all users.
8562 (record_goto_entry): Renamed to ...
8563 (record_full_goto_entry): ... this. Updated all users.
8564 (record_goto_begin): Renamed to ...
8565 (record_full_goto_begin): ... this. Updated all users.
8566 (record_goto_end): Renamed to ...
8567 (record_full_goto_end): ... this. Updated all users.
8568 (record_goto): Renamed to ...
8569 (record_full_goto): ... this. Updated all users.
8570 (init_record_ops): Renamed to ...
8571 (init_record_full_ops): ... this. Updated all users.
8572 (record_core_resume): Renamed to ...
8573 (record_full_core_resume): ... this. Updated all users.
8574 (record_core_kill): Renamed to ...
8575 (record_full_core_kill): ... this. Updated all users.
8576 (record_core_fetch_registers): Renamed to ...
8577 (record_full_core_fetch_registers): ... this. Updated all users.
8578 (record_core_prepare_to_store): Renamed to ...
8579 (record_full_core_prepare_to_store): ... this. Updated all users.
8580 (record_core_store_registers): Renamed to ...
8581 (record_full_core_store_registers): ... this. Updated all users.
8582 (record_core_xfer_partial): Renamed to ...
8583 (record_full_core_xfer_partial): ... this. Updated all users.
8584 (record_core_insert_breakpoint): Renamed to ...
8585 (record_full_core_insert_breakpoint): ... this. Updated all users.
8586 (record_core_remove_breakpoint): Renamed to ...
8587 (record_full_core_remove_breakpoint): ... this. Updated all users.
8588 (record_core_has_execution): Renamed to ...
8589 (record_full_core_has_execution): ... this. Updated all users.
8590 (init_record_core_ops): Renamed to ...
8591 (init_record_full_core_ops): ... this. Updated all users.
8592 (cmd_record_restore): Renamed to ...
8593 (cmd_record_full_restore): ... this. Updated all users.
8594 (record_save_cleanups): Renamed to ...
8595 (record_full_save_cleanups): ... this. Updated all users.
8596 (cmd_record_start): Renamed to ...
8597 (cmd_record_full_start): ... this. Updated all users.
8598 (set_record_insn_max_num): Renamed to ...
8599 (set_record_full_insn_max_num): ... this. Updated all users.
8600 (set_record_command): Renamed to ...
8601 (set_record_full_command): ... this. Updated all users.
8602 (show_record_command): Renamed to ...
8603 (show_record_full_command): ... this. Updated all users.
8604 (_initialize_record): Renamed to ...
8605 (_initialize_record_full): ... this. Updated all users.
8606
8607 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8608
8609 * record.h: Split into this and ...
8610 * record-full.h: ... this.
8611 * record.c: Split into this and ...
8612 * record-full.c: ... this.
8613 * target.h (target_ops): Add new fields to_info_record,
8614 to_save_record, to_delete_record, to_record_is_replaying,
8615 to_goto_record_begin, to_goto_record_end, to_goto_record.
8616 (target_info_record): New.
8617 (target_save_record): New.
8618 (target_supports_delete_record): New.
8619 (target_delete_record): New.
8620 (target_record_is_replaying): New.
8621 (target_goto_record_begin): New.
8622 (target_goto_record_end): New.
8623 (target_goto_record): New.
8624 * target.c (target_info_record): New.
8625 (target_save_record): New.
8626 (target_supports_delete_record): New.
8627 (target_delete_record): New.
8628 (target_record_is_replaying): New.
8629 (target_goto_record_begin): New.
8630 (target_goto_record_end): New.
8631 (target_goto_record): New.
8632 * record.h: Declare struct cmd_list_element.
8633 (record_cmdlist): New declaration.
8634 (set_record_cmdlist): New declaration.
8635 (show_record_cmdlist): New declaration.
8636 (info_record_cmdlist): New declaration.
8637 (cmd_record_goto): New declaration.
8638 * record.c: Remove unnecessary includes.
8639 Include inferior.h.
8640 (cmd_record_goto): Remove declaration.
8641 (record_cmdlist): Now extern. Initialize.
8642 (set_record_cmdlist): Now extern. Initialize.
8643 (show_record_cmdlist): Now extern. Initialize.
8644 (info_record_cmdlist): Now extern. Initialize.
8645 (find_record_target): New.
8646 (require_record_target): New.
8647 (cmd_record_start): Update.
8648 (cmd_record_delete): Remove target-specific code.
8649 Call target_delete_record.
8650 (cmd_record_stop): Unpush any record target.
8651 (set_record_insn_max_num): Move to record-full.c
8652 (set_record_command): Add comment.
8653 (show_record_command): Add comment.
8654 (info_record_command): Update comment.
8655 Remove target-specific code.
8656 Call the record target's to_info_record.
8657 (cmd_record_start): New.
8658 (cmd_record_goto): Now extern.
8659 Remove target-specific code.
8660 Call target_goto_begin, target_goto_end, or target_goto.
8661 (_initialize_record): Move record target ops initialization to
8662 record-full.c.
8663 Change "record" command help text.
8664 Move "record restore", "record set", and "record show" commands to
8665 record-full.c.
8666 * Makefile.in (SFILES): Add record-full.c.
8667 (HFILES_NO_SRCDIR): Add record-full.h.
8668 (COMMON_OBS): Add record-full.o.
8669 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8670 * arm-tdep.c: Include record-full.h.
8671 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8672 * i386-tdep.c: Include record-full.h.
8673 * infrun.c: Include record-full.h.
8674 * linux-record.c: Include record-full.h.
8675 * moxie-tdep.c: Include record-full.h.
8676 * record-full.c: Include record-full.h.
8677 Change module comment.
8678 (set_record_full_cmdlist): New.
8679 (show_record_full_cmdlist): New.
8680 (record_full_cmdlist): New.
8681 (record_goto_insn): New declaration.
8682 (record_save): New declaration.
8683 (record_check_insn_num): Change query string.
8684 (record_info): New.
8685 (record_delete): New.
8686 (record_is_replaying): New.
8687 (record_goto_entry): New.
8688 (record_goto_begin): New.
8689 (record_goto_end): New.
8690 (record_goto): New.
8691 (init_record_ops): Update.
8692 (init_record_core_ops): Update.
8693 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8694 (cmd_record_start): New.
8695 (set_record_insn_max_num): Moved from record.c
8696 (set_record_full_command): New.
8697 (show_record_full_command): New.
8698 (_initialize_record_full): New.
8699
8700 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8701
8702 * target.h (add_deprecated_target_alias): New.
8703 * target.c (add_deprecated_target_alias): New.
8704
8705 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8706
8707 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8708 and signal.h.
8709 (linux_supports_btrace): Add kernel and
8710 cpuid check.
8711 (kernel_supports_btrace): New function.
8712 (cpu_supports_btrace): New function.
8713 (intel_supports_btrace): New function.
8714
8715 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8716
8717 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8718 * remote.c: Include btrace.h.
8719 (struct btrace_target_info): New struct.
8720 (remote_supports_btrace): New function.
8721 (send_Qbtrace): New function.
8722 (remote_enable_btrace): New function.
8723 (remote_disable_btrace): New function.
8724 (remote_teardown_btrace): New function.
8725 (remote_read_btrace): New function.
8726 (init_remote_ops): Add btrace ops.
8727 (enum <unnamed>): Add btrace packets.
8728 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8729 (_initialize_remote): Add packet configuration for branch tracing.
8730
8731 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8732
8733 * features/btrace.dtd: New file.
8734 * Makefile.in (XMLFILES): Add btrace.dtd.
8735 * btrace.h (parse_xml_btrace): New declaration.
8736 * btrace.c: Include xml-support.h.
8737 (parse_xml_btrace): New function.
8738 (parse_xml_btrace_block): New function.
8739 (block_attributes): New struct.
8740 (btrace_attributes): New struct.
8741 (btrace_children): New struct.
8742 (btrace_elements): New struct.
8743
8744 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8745
8746 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8747 (amd64_linux_enable_btrace): New.
8748 (amd64_linux_disable_btrace): New.
8749 (amd64_linux_teardown_btrace): New.
8750 (_initialize_amd64_linux_nat): Initialize btrace ops.
8751 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8752 (i386_linux_enable_btrace): New.
8753 (i386_linux_disable_btrace): New.
8754 (i386_linux_teardown_btrace): New.
8755 (_initialize_i386_linux_nat): Initialize btrace ops.
8756 * config/i386/linux.mh: Add linux-btrace.o.
8757 * config/i386/linux64.mh: Add linux-btrace.o.
8758
8759 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8760
8761 * common/linux_btrace.h: New file.
8762 * common/linux_btrace.c: New file.
8763 * Makefile.in (SFILES): Add btrace.c.
8764 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8765 (COMMON_OBS): Add btrace.o.
8766 (linux-btrace.o): New rule.
8767
8768 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8769
8770 * target.h: Include btrace.h.
8771 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8772 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8773 * target.c (target_supports_btrace): New function.
8774 (target_enable_btrace): New function.
8775 (target_disable_btrace): New function.
8776 (target_teardown_btrace): New function.
8777 (target_read_btrace): New function.
8778 * btrace.h: New file.
8779 * btrace.c: New file.
8780 * Makefile.in: Add btrace.c.
8781 * gdbthread.h: Include btrace.h.
8782 (struct thread_info): Add btrace field.
8783 * thread.c: Include btrace.h.
8784 (clear_thread_inferior_resources): Call target_teardown_btrace.
8785 * common/btrace-common.h: New file.
8786
8787 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8788
8789 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8790 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8791 kill_status to outer block.
8792
8793 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8794
8795 Fix entry-values if the callee called a noreturn function.
8796 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8797 get_frame_address_in_block. Add new comment.
8798
8799 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8800
8801 Fix entry-values in C++ across CUs.
8802 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8803 lookup_minimal_symbol. Add a comment.
8804 * dwarf2read.c
8805 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8806 DW_AT_linkage_name.
8807
8808 2013-03-08 Yao Qi <yao@codesourcery.com>
8809
8810 * tracepoint.c (_initialize_tracepoint): Indent the code.
8811
8812 2013-03-08 Pedro Alves <palves@redhat.com>
8813
8814 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8815 (parse_find_args, find_command): Change type of pattern buffer
8816 locals to 'gdb_byte *'.
8817
8818 2013-03-08 Stan Shebs <stan@codesourcery.com>
8819 Hafiz Abid Qadeer <abidh@codesourcery.com>
8820
8821 * NEWS: Mention set and show trace-buffer-size commands.
8822 Mention new packet.
8823 * target.h (struct target_ops): New method
8824 to_set_trace_buffer_size.
8825 (target_set_trace_buffer_size): New macro.
8826 * target.c (update_current_target): Set up new method.
8827 * tracepoint.c (trace_buffer_size): New global.
8828 (start_tracing): Send it to the target.
8829 (set_trace_buffer_size): New function.
8830 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8831 * remote.c (remote_set_trace_buffer_size): New function.
8832 (_initialize_remote): Use it.
8833 (QTBuffer:size) New remote command.
8834 (PACKET_QTBuffer_size): New enum.
8835 (remote_protocol_features): Add an entry for
8836 PACKET_QTBuffer_size.
8837
8838 2013-03-08 Tom Tromey <tromey@redhat.com>
8839
8840 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8841 variable.
8842
8843 2013-03-07 Pedro Alves <palves@redhat.com>
8844
8845 * target.c (target_read_stralloc, target_fileio_read_alloc):
8846 *Cast pointer to 'gdb_byte *' in target call.
8847
8848 2013-03-07 Pedro Alves <palves@redhat.com>
8849
8850 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8851 call.
8852
8853 2013-03-07 Keith Seitz <keiths@redhat.com>
8854
8855 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8856 (trace_pass_command): Likewise.
8857 * cli/cli-cmds.c: Include cli/cli-utils.h.
8858 (source_command): Use skip-spaces.
8859 (disassemble_command): Likewise.
8860 * findcmd.c: Include cli/cli-utils.h.
8861 (parse_find_args): Use skip_spaces.
8862 * go32-nat.c: Include cli/cli-utils.h.
8863 (go32_sldt): Use skip_spaces.
8864 (go32_sgdt): Likewise.
8865 (go32_sidt): Likewise.
8866 (go32_pde): Likewise.
8867 (go32_pte): Likewise.
8868 (go32_pte_for_address): Likewise.
8869 * infcmd.c: Include cli/cli-utils.h.
8870 (registers_info): Use skip_spaces.
8871 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8872 (linux_info_proc): Likewise.
8873 * linux-thread-db.c: Include cli/cli-utils.h.
8874 (info_auto_load_libthread_db): Use skip_spaces_const.
8875 * m32r-rom.c: Include cli/cli-utils.h.
8876 (m32r_upload_command): Use skip_spaces.
8877 * maint.c: Include cli/cli-utils.h.
8878 (maintenance_translate_address): Use skip_spaces.
8879 * mi/mi-parse.c: Include cli/cli-utils.h.
8880 (mi_parse_argv): Use skip_spaces.
8881 (mi_parse): Likewise.
8882 * minsyms.c: Include cli/cli-utils.h.
8883 (msymbol_hash_iw): Use skip_spaces_const.
8884 * objc-lang.c: Include cli/cli-utils.h.
8885 (parse_selector): Use skip_spaces.
8886 (parse_method): Likewise.
8887 * python/python.c: Include cli/cli-utils.h.
8888 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8889 (python_command)[HAVE_PYTHON]: Likewise.
8890 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8891 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8892 (m32r_load): Use skip_spaces.
8893 * serial.c: Include cli/cli-utils.h.
8894 (serial_open): Use skip_spaces_const.
8895 * stack.c: Include cli/cli-utils.h.
8896 (parse_frame_specification_1): Use skip_spaces_const.
8897 * symfile.c: Include cli/cli-utils.h.
8898 (set_ext_lang_command): Use skip_spaces.
8899 * symtab.c: Include cli/cli-utils.h.
8900 (rbreak_command): Use skip_spaces.
8901 * thread.c (thread_name_command): Use skip_spaces.
8902 * tracepoint.c (validate_actionline): Use skip_spaces.
8903 (encode_actions_1): Likewise.
8904 (trace_find_range_command): Likewise.
8905 (trace_find_outside_command): Likewise.
8906 (trace_dump_actions): Likewise.
8907
8908 2013-03-07 Pedro Alves <palves@redhat.com>
8909
8910 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8911 * expprint.c (print_subexp_standard): Likewise.
8912 * utils.c (host_char_to_target): Likewise.
8913 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8914 * varobj.c (value_get_print_value): Change type of local to char*.
8915 Cast it gdb_byte * in call to language printer.
8916
8917 2013-03-07 Pedro Alves <palves@redhat.com>
8918
8919 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8920 gdb_byte *'.
8921 (make_wchar_iterator): Remove cast to char*.
8922 (wchar_iterate): Change type of local.
8923
8924 2013-03-07 Pedro Alves <palves@redhat.com>
8925
8926 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8927 for 'regcache->register_status'.
8928
8929 2013-03-07 Pedro Alves <palves@redhat.com>
8930
8931 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8932 int.
8933
8934 2013-03-07 Pedro Alves <palves@redhat.com>
8935
8936 * stap-probe.c (handle_stap_probe): Add cast to char*.
8937
8938 2013-03-07 Pedro Alves <palves@redhat.com>
8939
8940 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8941 RECORD_MSGRCV>: Pass a signed variable to
8942 regcache_raw_read_signed, instead of an unsigned one.
8943
8944 2013-03-07 Pedro Alves <palves@redhat.com>
8945
8946 * remote-notif.c (notif_debug): Change type to int.
8947 * remote-notif.h (notif_debug): Likewise.
8948
8949 2013-03-07 Pedro Alves <palves@redhat.com>
8950
8951 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8952
8953 2013-03-07 Pedro Alves <palves@redhat.com>
8954
8955 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8956 * remote.h (hex2bin, bin2hex): ... here.
8957 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8958
8959 2013-03-07 Eli Zaretskii <eliz@gnu.org>
8960
8961 * utils.c (initialize_utils): Improve doc strings of "set/show
8962 width", "set/show height", and "set/show pagination".
8963
8964 2013-03-06 Keith Seitz <keiths@redhat.com>
8965
8966 * ax-gdb.c (gen_printf): Make FORMAT const.
8967 * ax-gdb.h (gen_printf): Likewise.
8968 * ax-general.c (ax_string): Make STR const.
8969 * ax.h (ax_string): Likewise.
8970
8971 2013-03-06 Doug Evans <dje@google.com>
8972
8973 * elfread.c (elf_symfile_read): Move debugging printf to more
8974 logical location.
8975
8976 2013-03-06 Pedro Alves <palves@redhat.com>
8977
8978 * python/py-utils.c (target_string_to_unicode): Delete function.
8979 * python/python-internal.h (target_string_to_unicode): Delete
8980 declaration.
8981
8982 2013-03-06 Pierre Muller <muller@sourceware.org>
8983
8984 * linespec.c (get_current_search_block): ARI fix, use (void)
8985 for empty parameter list.
8986
8987 2013-03-05 Doug Evans <dje@google.com>
8988
8989 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8990 of old ada_lookup_symbol_list. In !full_search case, don't
8991 search superblocks.
8992 (ada_lookup_symbol_list): Delete arg full_search, all callers
8993 updated. Call ada_lookup_symbol_list_worker.
8994 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8995 * ada-lang.h (ada_lookup_symbol_list): Update.
8996 * language.h (language_defn): Update comment for
8997 la_iterate_over_symbols.
8998 * linespec.c (iterate_over_file_blocks): New function.
8999 (iterate_over_all_matching_symtabs): Call it.
9000 (lookup_prefix_sym): Ditto.
9001 (get_current_search_block): New function.
9002 (get_search_block): Delete.
9003 (find_label_symbols): Call get_current_search_block.
9004 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9005 * symtab.c (iterate_over_symbols): Don't search superblocks.
9006
9007 2013-03-05 Yao Qi <yao@codesourcery.com>
9008
9009 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9010 parameter VAR's type from "unsigned int" to "int".
9011 * command.h (var_zuinteger_unlimited): Update its comments.
9012 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9013
9014 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9015
9016 * NEWS: Mention new target x86_64-*-cygwin*.
9017
9018 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9019
9020 * configure.host: Add x86_64-*-cygwin* as host.
9021 * configure.tgt: Add x86_64-*-cygwin* as target.
9022 * config/i386/cygwin64.mh: New file.
9023
9024 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9025
9026 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9027
9028 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9029
9030 * linespec.c (struct linespec_canonical_name): New.
9031 (struct linespec_state): Change canonical_names type to it.
9032 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9033 xrealloc element size. Initialize the different CANONICAL fields.
9034 (canonical_to_fullform): New.
9035 (filter_results): Use it. Add variables canonical, fullform and
9036 cleanup.
9037 (struct decode_line_2_item, decode_line_2_compare_items): New.
9038 (decode_line_2): Remove variables iter and item_names, add variables
9039 items and items_count. Modify the code for these new variables.
9040
9041 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9042
9043 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9044 calling do_cleanup.
9045
9046 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9047
9048 * tracepoint.c (build_traceframe_info): Add code for byte order.
9049
9050 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9051
9052 * v850-tdep.c: (v850e2_register_name): Revise system register
9053 names to match current V850E2M architecture specifications.
9054 Update register number enum comments too.
9055
9056 2013-03-01 Jiong Wang <jiwang@tilera.com>
9057 Pedro Alves <palves@redhat.com>
9058
9059 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9060 to END_ADDR.
9061 (tilegx_skip_prologue): Limit prologue analysis to section end.
9062
9063 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9064
9065 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9066 use it.
9067
9068 2013-03-01 Pedro Alves <palves@redhat.com>
9069
9070 Use gdb_byte for bytes from the program being debugged.
9071
9072 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9073 Change type of local 'buf' to gdb_byte.
9074 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9075 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9076 * cris-tdep.c (cris_sigcontext_addr)
9077 (cris_sigtramp_frame_unwind_cache): Likewise.
9078 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9079 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9080 Likewise.
9081 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9082 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9083 (hppa32_hpux_search_dummy_call_sequence)
9084 (hppa_hpux_supply_save_state): Likewise.
9085 * hppa-linux-tdep.c (insns_match_pattern)
9086 (hppa_linux_find_global_pointer): Likewise.
9087 * hppa-tdep.c (hppa_in_function_epilogue_p)
9088 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9089 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9090 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9091 (i386fbsd_collect_uthread): Likewise.
9092 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9093 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9094 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9095 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9096 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9097 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9098 (ia64_libunwind_frame_prev_register)
9099 (ia64_libunwind_sigtramp_frame_this_id)
9100 (ia64_find_global_pointer_from_dynamic_section)
9101 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9102 (ia64_unwind_pc): Likewise.
9103 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9104 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9105 (m68hc11_extract_return_value): Likewise.
9106 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9107 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9108 (mep_get_insn, mep_push_dummy_call): Likewise.
9109 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9110 (mips_linux_in_dynsym_stub): Likewise.
9111 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9112 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9113 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9114 to gdb_byte.
9115 * remote-mips.c (mips_set_register): Likewise.
9116 * remote-sim.c (gdbsim_fetch_register): Likewise.
9117 * score-tdep.c (score7_fetch_inst): Change type of parameter
9118 'memblock' and local 'buf' to gdb_byte.
9119 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9120 Change type of local 'buf' to gdb_byte. Adjust.
9121 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9122 to gdb_byte**.
9123 (score7_analyze_prologue): Change type of 'memblock' and
9124 'memblock_ptr' locals to gdb_byte*.
9125 * sh64-tdep.c (sh64_extract_return_value)
9126 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9127 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9128 * solib-pa64.c (pa64_solib_create_inferior_hook)
9129 (pa64_open_symbol_file_object): Remove local 'buf'.
9130 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9131 (som_open_symbol_file_object): Likewise.
9132 * solib-spu.c (spu_current_sos): Likewise.
9133 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9134 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9135 (spu_store_registers): Likewise.
9136 * target.c (debug_print_register): Likewise.
9137 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9138 * xstormy16-tdep.c (xstormy16_store_return_value)
9139 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9140 (xstormy16_find_jmp_table_entry): Likewise.
9141
9142 2013-03-01 Jiong Wang <jiwang@tilera.com>
9143
9144 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9145 (tilegx_gdbarch_init): Install it.
9146
9147 2013-02-28 Tom Tromey <tromey@redhat.com>
9148
9149 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9150 PyLong_Check.
9151
9152 2013-02-28 Doug Evans <dje@google.com>
9153
9154 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9155 * python/python.c (gdbpy_find_pc_line): Ditto.
9156
9157 2013-02-28 Tom Tromey <tromey@redhat.com>
9158
9159 * contrib/excheck.py: New file.
9160 * contrib/exsummary.py: New file.
9161 * contrib/gcc-with-excheck: New file.
9162
9163 2013-02-28 Tom Tromey <tromey@redhat.com>
9164
9165 * python/python.c (gdbpy_print_stack): Call begin_line and
9166 fprintf_filtered inside TRY_CATCH.
9167
9168 2013-02-28 Tom Tromey <tromey@redhat.com>
9169
9170 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9171 inside TRY_CATCH.
9172
9173 2013-02-28 Tom Tromey <tromey@redhat.com>
9174
9175 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9176 frame_object_to_frame_info inside TRY_CATCH.
9177
9178 2013-02-28 Tom Tromey <tromey@redhat.com>
9179
9180 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9181 TRY_CATCH.
9182
9183 2013-02-28 Tom Tromey <tromey@redhat.com>
9184
9185 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9186
9187 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9188
9189 * windows-nat.c: Throughout, fix format strings and casts of
9190 printf-like functions to avoid type related warnings on all
9191 platforms.
9192 (handle_output_debug_string): Fetch context information address
9193 from debug string using string_to_core_addr.
9194
9195 2013-02-27 Jiong Wang <jiwang@tilera.com>
9196
9197 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9198 * regformats/reg-tilegx32.dat: New.
9199
9200 2013-02-27 Jiong Wang <jiwang@tilera.com>
9201
9202 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9203
9204 2013-02-27 Jiong Wang <jiwang@tilera.com>
9205
9206 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9207
9208 2013-02-27 Yao Qi <yao@codesourcery.com>
9209 Pedro Alves <palves@redhat.com>
9210
9211 * tracepoint.c (tfile_trace_find): For tfind
9212 pc/tp/range/outside, look for the next trace frame instead of
9213 always starting from frame 0.
9214
9215 2013-02-26 Anthony Green <green@moxielogic.com>
9216
9217 * configure.tgt: Add support for moxie-*-rtems* target.
9218
9219 2013-02-25 Pedro Alves <palves@redhat.com>
9220
9221 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9222 warning text.
9223
9224 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9225
9226 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9227 if $fp is used as the virtual frame pointer.
9228
9229 2013-02-23 Alan Modra <amodra@gmail.com>
9230
9231 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9232 symbol size.
9233 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9234 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9235 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9236 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9237
9238 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9239
9240 Code cleanup.
9241 * elfread.c (build_id_bfd_get): Make the return type const.
9242 (build_id_verify): Make the check parameter const.
9243 (build_id_to_debug_filename): Make the build_id parameter and variable
9244 data const.
9245 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9246
9247 2013-02-21 Alan Modra <amodra@gmail.com>
9248
9249 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9250
9251 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9252
9253 Add a new method 'disassemble' to gdb.Architecture class.
9254 * python/py-arch.c (archpy_disassmble): Implementation of the
9255 new method gdb.Architecture.disassemble.
9256 (arch_object_methods): Add entry for the new method.
9257
9258 2013-02-20 Jiong Wang <jiwang@tilera.com>
9259
9260 * MAINTAINERS (Write After Approval): Add myself to the list.
9261
9262 2013-02-19 Pedro Alves <palves@redhat.com>
9263
9264 Garbage collect 'struct monitor_ops'::load_routine.
9265
9266 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9267 * monitor.c (monitor_load): No longer call
9268 current_monitor->load_routine.
9269 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9270 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9271 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9272
9273 2013-02-19 Pedro Alves <palves@redhat.com>
9274
9275 PR gdb/15161
9276
9277 Harmonize with generic_load.
9278
9279 * monitor.c: Include "readline/readline.h".
9280 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9281 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9282 long/strtol for the 'load_offset' local. Error out if no argument
9283 is given or if too many arguments are given. Tilde expand the
9284 passed in file name.
9285
9286 2013-02-19 Kai Tietz <ktietz@redhat.com>
9287
9288 PR gdb/15161
9289 * symfile.c (load_section_data): Change type of load_offset
9290 to CORE_ADDR.
9291 (generic_load): User strtoulst instead of strtoul for conversion
9292 of load_offset.
9293
9294 2013-02-19 Jiong Wang <jiwang@tilera.com>
9295
9296 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9297 for return address, "lr" register, saved on stack.
9298 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9299 after we invoke tilegx_analyze_prologue.
9300
9301 2013-02-19 Jiong Wang <jiwang@tilera.com>
9302
9303 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9304
9305 2013-02-19 Jiong Wang <jiwang@tilera.com>
9306
9307 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9308
9309 2013-02-19 Jiong Wang <jiwang@tilera.com>
9310
9311 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9312 (tilegx_write_pc): New function.
9313 (tilegx_cannot_reference_register): Return zero if REGNO
9314 is TILEGX_FAULTNUM_REGNUM.
9315 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9316 (tilegx_register_name): Add handling of "faultnum" register.
9317 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9318 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9319 handling of TILEGX_FAULTNUM_REGNUM.
9320 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9321
9322 2013-02-19 Jiong Wang <jiwang@tilera.com>
9323
9324 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9325 should be aligned to 64bit.
9326
9327 2013-02-19 Kai Tietz <ktietz@redhat.com>
9328
9329 * windows-nat.c (windows_xfer_memory): Fix debug-output
9330 for LLP64.
9331
9332 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9333
9334 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9335 Don't check DSP register number if HAVE_DSP is not set.
9336
9337 2013-02-19 Alan Modra <amodra@gmail.com>
9338
9339 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9340 throughout file instead.
9341 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9342 Don't xmalloc return value.
9343 (build_id_verify): Similarly. Don't xfree.
9344 (build_id_to_debug_filename): Update.
9345 (find_separate_debug_file_by_buildid): Update, don't xfree.
9346
9347 2013-02-18 Tom Tromey <tromey@redhat.com>
9348
9349 PR gdb/15102:
9350 * dwarf2read.c (read_subrange_type): Use result of
9351 'check_typedef'.
9352
9353 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9354
9355 * frame.c: Remove one extra white space after #include
9356 directive.
9357
9358 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9359
9360 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9361
9362 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9363
9364 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9365 and dir commands into an if block.
9366
9367 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9368
9369 * python/py-breakpoint (struct pybp_code): Use int instead of
9370 enum type_code.
9371
9372 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9373 Hafiz Abid Qadeer <abidh@codesourcery.com>
9374
9375 * NEWS: Mention new field "trace-file".
9376 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9377 (tfile_open): Record the trace file's filename in the trace
9378 status.
9379 (tfile_files_info): Mention the name of the trace file.
9380 Check the "filename" field explicitely.
9381 (trace_status_command): Explicitely check "filename" field.
9382 (trace_find_command): Ditto.
9383 (trace_find_pc_command): Ditto.
9384 (trace_find_tracepoint_command): Ditto.
9385 (trace_find_line_command): Ditto.
9386 (trace_find_range_command): Ditto.
9387 (trace_find_outside_command): Ditto.
9388 * tracepoint.h (struct trace_status) <from_file>: Rename it
9389 to "filename" and make it hold the trace file's filename
9390 instead of a boolean.
9391 * remote.c (remote_get_trace_status): Initialize "filename"
9392 field with NULL instead of 0.
9393
9394 2013-02-15 Yao Qi <yao@codesourcery.com>
9395
9396 * remote.c: Fix a typo.
9397
9398 2013-02-14 Pierre Muller <muller@sourceware.org>
9399
9400 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9401
9402 2013-02-14 Pedro Alves <palves@redhat.com>
9403
9404 * utils.c (savestring): Don't #undef it. Move function to
9405 common/common-utils.c.
9406 * common/common-utils.c: Include gdb_string.h.
9407 (savestring): Move here from utils.c.
9408 * common/common-utils.h (savestring): Declare.
9409
9410 2013-02-14 Pedro Alves <palves@redhat.com>
9411
9412 * utils.c (savestring): Rename parameter 'size' to 'len'.
9413
9414 2013-02-14 Pedro Alves <palves@redhat.com>
9415 Yufeng Zhang <yufeng.zhang@arm.com>
9416
9417 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9418 (aarch64_inferior_data, struct aarch64_inferior_data):
9419 Delete.
9420 (struct aarch64_process_info): New.
9421 (aarch64_process_list): New global.
9422 (aarch64_find_process_pid, aarch64_add_process)
9423 (aarch64_process_info_get): New functions.
9424 (aarch64_inferior_data_get): Delete.
9425 (aarch64_process_info_get): New function.
9426 (aarch64_forget_process): New function.
9427 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9428 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9429 aarch64_get_debug_reg_state.
9430 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9431 instead of linux_nat_iterate_watchpoint_lwps.
9432 (aarch64_linux_new_fork): New function.
9433 (aarch64_linux_child_post_startup_inferior): Use
9434 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9435 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9436 (aarch64_linux_remove_hw_breakpoint)
9437 (aarch64_handle_aligned_watchpoint)
9438 (aarch64_handle_unaligned_watchpoint)
9439 (aarch64_linux_insert_watchpoint)
9440 (aarch64_linux_remove_watchpoint)
9441 (aarch64_linux_stopped_data_address): Adjust to pass the current
9442 process id to aarch64_debug_reg_state.
9443 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9444 linux_nat_new_fork hook, and aarch64_forget_process as
9445 linux_nat_forget_process hook; remove the call to
9446 register_inferior_data_with_cleanup.
9447
9448 2013-02-14 Pedro Alves <palves@redhat.com>
9449
9450 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9451 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9452 lval_memory.
9453
9454 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9455 Hafiz Abid Qadeer <abidh@codesourcery.com>
9456
9457 * tracepoint.h (validate_trace_state_variable_name): Declare.
9458 * tracepoint.c (validate_trace_state_variable_name): New.
9459 (trace_variable_command): Parse the trace state variable's name
9460 without using parse_expression. Do several validations.
9461 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9462 trace state variable's name with parse_expression. Validate it.
9463
9464 2013-02-14 Yao Qi <yao@codesourcery.com>
9465
9466 * infcmd.c (breakpoint_proceeded): Remove it.
9467
9468 2013-02-14 Yao Qi <yao@codesourcery.com>
9469
9470 * tracepoint.c (end_actions_pseudocommand): Make it static.
9471 (while_stepping_pseudocommand): Likewise.
9472 * tracepoint.h (end_actions_pseudocommand): Remove the
9473 declaration.
9474 (while_stepping_pseudocommand): Likewise.
9475
9476 2013-02-14 Yao Qi <yao@codesourcery.com>
9477
9478 * cli/cli-decode.c (help_cmd): Remove the declaration of
9479 "cmdlist".
9480 (help_all): Likewise.
9481
9482 2013-02-13 Pedro Alves <palves@redhat.com>
9483
9484 * amd64-linux-nat.c (update_debug_registers_callback):
9485 Update comment.
9486 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9487 iterate_over_lwps.
9488 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9489 i386_debug_reg_state.
9490 (amd64_linux_new_fork): New function.
9491 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9492 linux_nat_new_fork hook, and i386_forget_process as
9493 linux_nat_forget_process hook.
9494 * i386-linux-nat.c (update_debug_registers_callback):
9495 Update comment.
9496 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9497 iterate_over_lwps.
9498 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9499 i386_debug_reg_state.
9500 (i386_linux_new_fork): New function.
9501 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9502 linux_nat_new_fork hook, and i386_forget_process as
9503 linux_nat_forget_process hook.
9504 * i386-nat.c (i386_init_dregs): Delete.
9505 (i386_inferior_data, struct i386_inferior_data):
9506 Delete.
9507 (struct i386_process_info): New.
9508 (i386_process_list): New global.
9509 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9510 New functions.
9511 (i386_inferior_data_get): Delete.
9512 (i386_process_info_get): New function.
9513 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9514 (i386_forget_process): New function.
9515 (i386_cleanup_dregs): Rewrite.
9516 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9517 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9518 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9519 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9520 to i386_debug_reg_state.
9521 (i386_use_watchpoints): Don't register inferior data.
9522 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9523 adjust comment.
9524 (i386_forget_process): Declare.
9525 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9526 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9527 New static globals.
9528 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9529 (add_initial_lwp): New, factored out from ...
9530 (add_lwp): ... this. Don't check the number of lwps before
9531 calling linux_nat_new_thread.
9532 (linux_nat_iterate_watchpoint_lwps): Delete.
9533 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9534 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9535 forks and vforks.
9536 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9537 initial lwp.
9538 (linux_nat_kill, linux_nat_mourn_inferior): Call
9539 linux_nat_forget_process.
9540 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9541 (linux_nat_forget_process): New functions.
9542 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9543 type.
9544 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9545 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9546 types.
9547 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9548 (linux_nat_forget_process): New declarations.
9549
9550 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9551 (amd64fbsd_mourn_inferior): New function.
9552 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9553 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9554
9555 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9556
9557 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9558 Adding _().
9559
9560 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9561
9562 * aarch64-linux-nat.c (debug_reg_change_callback)
9563 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9564 %s and phex().
9565
9566 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9567
9568 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9569 with LONGEST.
9570
9571 2013-02-13 Pedro Alves <palves@redhat.com>
9572 Hafiz Abid Qadeer <abidh@codesourcery.com>
9573
9574 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9575
9576 2013-02-12 Tom Tromey <tromey@redhat.com>
9577
9578 PR symtab/11464:
9579 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9580 NAME return.
9581 (classify_inner_name): Remove 'first_name' argument, add
9582 'context'. Remove unused variable.
9583 (yylex): Explicitly maintain the context type. Exit loop earlier
9584 if NAME result is seen.
9585
9586 2013-02-12 Pedro Alves <palves@redhat.com>
9587
9588 * amd64-darwin-tdep.c: Add (C) after Copyright.
9589 * cli/cli-cmds.h: Ditto.
9590 * cli/cli-decode.c: Ditto.
9591 * cli/cli-decode.h: Ditto.
9592 * cli/cli-dump.c: Ditto.
9593 * cli/cli-dump.h: Ditto.
9594 * cli/cli-interp.c: Ditto.
9595 * cli/cli-logging.c: Ditto.
9596 * cli/cli-script.c: Ditto.
9597 * cli/cli-script.h: Ditto.
9598 * cli/cli-setshow.c: Ditto.
9599 * cli/cli-setshow.h: Ditto.
9600 * cli/cli-utils.c: Ditto.
9601 * cli/cli-utils.h: Ditto.
9602 * config/alpha/nm-osf3.h: Ditto.
9603 * config/djgpp/djconfig.sh: Ditto.
9604 * config/i386/nm-fbsd.h: Ditto.
9605 * config/i386/nm-i386gnu.h: Ditto.
9606 * config/nm-linux.h: Ditto.
9607 * config/nm-nto.h: Ditto.
9608 * config/rs6000/nm-rs6000.h: Ditto.
9609 * config/sparc/nm-sol2.h: Ditto.
9610 * darwin-nat-info.c: Ditto.
9611 * dfp.c: Ditto.
9612 * dfp.h: Ditto.
9613 * gdb-demangle.h: Ditto.
9614 * i386-darwin-nat.c: Ditto.
9615 * i386-darwin-tdep.c: Ditto.
9616 * linux-fork.h: Ditto.
9617 * m32c-tdep.c: Ditto.
9618 * microblaze-linux-tdep.c: Ditto.
9619 * microblaze-rom.c: Ditto.
9620 * microblaze-tdep.c: Ditto.
9621 * microblaze-tdep.h: Ditto.
9622 * mips-linux-tdep.h: Ditto.
9623 * ppc-ravenscar-thread.c: Ditto.
9624 * ppc-ravenscar-thread.h: Ditto.
9625 * prologue-value.c: Ditto.
9626 * prologue-value.h: Ditto.
9627 * ravenscar-thread.c: Ditto.
9628 * ravenscar-thread.h: Ditto.
9629 * sparc-ravenscar-thread.c: Ditto.
9630 * sparc-ravenscar-thread.h: Ditto.
9631 * tilegx-linux-tdep.c: Ditto.
9632 * unwind_stop_reasons.def: Ditto.
9633 * windows-nat.h: Ditto.
9634 * xtensa-linux-tdep.c: Ditto.
9635 * xtensa-xtregs.c: Ditto.
9636 * regformats/regdat.sh: Ditto.
9637 * regformats/regdef.h: Ditto.
9638
9639 2013-02-12 Pedro Alves <palves@redhat.com>
9640
9641 * break-catch-sig.c: Update copyright years.
9642
9643 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9644
9645 Add support for a destructor for ui_out data and use it to
9646 provide a ui_out destructor.
9647 * ui-out.h: Declare the new ui_out destructor.
9648 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9649 * ui-out.c (default_data_destroy): Add a default data destructor
9650 which does nothing.
9651 (default_ui_out_impl): Set the new data_destroy field to
9652 default_data_destroy
9653 (uo_data_destroy): Local function which invokes the data
9654 destructor if present.
9655 (clear_table): Local function which clears the table data of a
9656 ui_out object.
9657 (ui_out_destroy): Public function which frees a ui_out object.
9658 (ui_out_table_end): Use the new clear_table function.
9659 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9660 NULL.
9661 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9662 to NULL.
9663
9664 2013-02-11 Doug Evans <dje@google.com>
9665
9666 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9667 (printf_decfloat): New function. Broken out from ui_printf.
9668 Remove unnecessary code to shift the entire format string down.
9669 (printf_pointer): New function.
9670 (ui_printf): Code to print C strings, wide C strings, decfloats,
9671 and pointers moved to separate functions.
9672
9673 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9674
9675 * valops.c (value_assign): Handling bitfield offset in
9676 `lval_internalvar_component' case.
9677
9678 2013-02-08 Doug Evans <dje@google.com>
9679
9680 * common/format.c (parse_format_string): Fix whitespace.
9681
9682 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9683
9684 * stack.c (return_command): Work around uninitialized variable
9685 warning.
9686
9687 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9688
9689 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9690 number of the registers from 36 to 34.
9691
9692 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9693
9694 * NEWS: Mention new AArch64 native and target support.
9695
9696 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9697
9698 * MAINTAINERS (Write After Approval): Add myself.
9699
9700 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9701 Marcus Shawcroft <marcus.shawcroft@arm.com>
9702 Nigel Stephens <nigel.stephens@arm.com>
9703 Yufeng Zhang <yufeng.zhang@arm.com>
9704
9705 * aarch64-linux-nat.c: New file.
9706 * config/aarch64/linux.mh: New file.
9707 * configure.host: Add AArch64.
9708 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9709
9710 2013-02-07 Doug Evans <dje@google.com>
9711
9712 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9713 disassemble command.
9714
9715 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9716
9717 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9718 set_gdbarch_fetch_tls_load_module_address.
9719
9720 2013-02-06 David S. Miller <davem@davemloft.net>
9721
9722 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9723 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9724 * value.c (struct_return_convention): New function.
9725 (using_struct_return): Implement in terms of struct_return_convention.
9726 * value.h (struct_return_convention): Declare.
9727 * stack.c (return_command): Allow successful overriding of the return
9728 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9729
9730 2013-02-06 Tom Tromey <tromey@redhat.com>
9731
9732 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9733 outside of TRY_CATCH.
9734
9735 2013-02-06 Yao Qi <yao@codesourcery.com>
9736
9737 * mi/mi-interp.c: Include "tracepoint.h".
9738 (mi_tsv_modified): Declare.
9739 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9740 (mi_interpreter_init): Call observer_attach_tsv_modified.
9741 (mi_tsv_modified): New.
9742 (mi_tsv_created, mi_tsv_deleted): Update.
9743 * tracepoint.c (trace_variable_command): Call
9744 observer_notify_tsv_modified if the initial value of tsv is
9745 changed.
9746 (delete_trace_state_variable): Call
9747 observer_notify_tsv_deleted earlier.
9748 (trace_variable_command): Caller update.
9749 (create_tsv_from_upload): Likewise.
9750 * observer.sh: Declare "struct trace_state_variable".
9751
9752 * NEWS: Mention the new MI notification "=tsv-modified".
9753
9754 2013-02-05 Doug Evans <dje@google.com>
9755
9756 * completer.c (location_completer): Fix typo in comment.
9757
9758 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9759
9760 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9761 ADDRESS sorted.
9762
9763 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9764
9765 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9766 Refactor if statement to avoid trailing || operator.
9767
9768 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9769
9770 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9771
9772 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9773
9774 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9775 * configure.host: Add powerpc*-*-freebsd* target.
9776 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9777 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9778 * config/powerpc/fbsd.mh: New file.
9779
9780 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9781 Denys Vlasenko <dvlasenk@redhat.com>
9782 Pedro Alves <palves@redhat.com>
9783
9784 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9785 (struct elf_internal_linux_prpsinfo): Forward declare.
9786 * gdbarch.h, gdbarch.c: Regenerate.
9787 * linux-tdep.c: Include `cli/cli-utils.h'.
9788 (linux_fill_prpsinfo): New function.
9789 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9790 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9791 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9792 depending on gdbarch pointer bitness.
9793 * ppc-linux-tdep.c: Include elf-bfd.h.
9794 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9795 on 32-bit.
9796
9797 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9798 Marcus Shawcroft <marcus.shawcroft@arm.com>
9799 Nigel Stephens <nigel.stephens@arm.com>
9800 Yufeng Zhang <yufeng.zhang@arm.com>
9801
9802 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9803
9804 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9805 Marcus Shawcroft <marcus.shawcroft@arm.com>
9806 Nigel Stephens <nigel.stephens@arm.com>
9807 Yufeng Zhang <yufeng.zhang@arm.com>
9808
9809 * aarch64-newlib-tdep.c: New file.
9810 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9811 aarch64*-*-elf.
9812 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9813 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9814 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9815 * osabi.c (gdb_osabi_names): Add "Newlib".
9816
9817 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9818 Marcus Shawcroft <marcus.shawcroft@arm.com>
9819 Nigel Stephens <nigel.stephens@arm.com>
9820 Yufeng Zhang <yufeng.zhang@arm.com>
9821
9822 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9823 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9824 * aarch64-linux-tdep.c: New file.
9825 * aarch64-linux-tdep.h: New file.
9826 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9827 * configure.tgt: Add aarch64-none-linux-gnu.
9828
9829 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9830 Marcus Shawcroft <marcus.shawcroft@arm.com>
9831 Nigel Stephens <nigel.stephens@arm.com>
9832 Yufeng Zhang <yufeng.zhang@arm.com>
9833
9834 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9835 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9836 (ALLDEPFILES): Add aarch64-tdep.c.
9837 * aarch64-tdep.c: New file.
9838 * aarch64-tdep.h: New file.
9839 * configure.tgt: Add AArch64.
9840 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9841 (aarch64-expedite): New definition.
9842 * features/aarch64-core.xml: New file.
9843 * features/aarch64-fpu.xml: New file.
9844 * features/aarch64-without-fpu.c: New file (generated).
9845 * features/aarch64-without-fpu.xml: New file.
9846 * features/aarch64.c: New file (generated).
9847 * features/aarch64.xml: New file.
9848 * regformats/aarch64-without-fpu.dat: New file (generated).
9849 * regformats/aarch64.dat: New file (generated).
9850
9851 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9852
9853 * contrib/expect-read1.c: New file.
9854 * contrib/expect-read1.sh: New file.
9855
9856 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9857
9858 * dwarf2read.c (file_file_name): New function with code from
9859 file_full_name.
9860 (file_full_name): Move most of the code to file_file_name.
9861 (macro_start_file): Rename variable full_name to file_name and use
9862 file_file_name for it. Add comp_dir parameter to new_macro_table.
9863 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9864 macro_source_file->filename access by macro_source_fullname call.
9865 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9866 caller.
9867 * macrotab.c (struct macro_table): New field comp_dir.
9868 (macro_include): New variables link_fullname and source_fullname.
9869 Replace any macro_source_file->filename access by macro_source_fullname
9870 call.
9871 (macro_lookup_inclusion): Remove the partial filenames checking code.
9872 (check_for_redefinition): New variables source_fullname and
9873 found_key_fullname. Replace any macro_source_file->filename access by
9874 macro_source_fullname call.
9875 (macro_undef): New variables source_fullname and key_fullname. Replace
9876 any macro_source_file->filename access by macro_source_fullname call.
9877 (macro_lookup_definition): New variables retval and source_fullname.
9878 Replace any macro_source_file->filename access by macro_source_fullname
9879 call.
9880 (foreach_macro): New variable key_fullname. Replace any
9881 macro_source_file->filename access by macro_source_fullname call.
9882 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9883 macro_source_file->filename access by macro_source_fullname call.
9884 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9885 (macro_source_fullname): New function.
9886 * macrotab.h (struct macro_source_file): Extent the filename field
9887 comment.
9888 (new_macro_table): New parameter comp_dir, add a comment for it.
9889 (macro_source_fullname): new declaration.
9890
9891 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9892
9893 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9894 this_real_name to outer block. Use it also for
9895 compare_filenames_for_search.
9896 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9897 with dw2_get_real_path for file_matcher, considering also
9898 BASENAMES_MAY_DIFFER.
9899 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9900
9901 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9902
9903 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9904 to the file_matcher parameter. Pass 0 to it.
9905 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9906 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9907 NULL psymtab_to_fullname result.
9908 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9909 an expected filename instead.
9910 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9911 file_matcher parameter. Call also psymtab_to_fullname, after newly
9912 considering BASENAMES_MAY_DIFFER.
9913 * source.c (rewrite_source_path): Remove static.
9914 * source.h (rewrite_source_path): New declaration.
9915 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9916 the expand_symtabs_matching field. Comment it.
9917 * symtab.c (file_matches): New function comment. Add parameter
9918 basenames, implement it.
9919 (search_symbols_file_matches): Add basenames parameter. Update the
9920 file_matches caller.
9921 (search_symbols): Match FILES also against symtab_to_fullname.
9922 Optimize it for BASENAMES_MAY_DIFFER.
9923
9924 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9925
9926 * source.c (print_source_lines_base): Print for TUI also "fullname".
9927 * tui/tui-data.c (init_content_element): Change tui_locator_element
9928 field to full_name.
9929 * tui/tui-data.h (struct tui_locator_element): Likewise.
9930 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9931 tui_update_locator_filename calls to tui_update_locator_fullname.
9932 Replace symtab->filename refererence by symtab_to_fullname call.
9933 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9934 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9935 field to full_name. Replace symtab->filename refererence by
9936 symtab_to_fullname call.
9937 (tui_show_symtab_source): Rename parameter to fullname. Change
9938 tui_locator_element field to full_name.
9939 * tui/tui-stack.c: Include source.h.
9940 (tui_set_locator_filename): Rename the declaration to ...
9941 (tui_set_locator_fullname): ... here. Rename its parameter to
9942 fullname, updates its comment.
9943 (tui_set_locator_info): Rename its parameter to fullname.
9944 (tui_set_locator_filename): Rename the definition to ...
9945 (tui_set_locator_fullname): ... here. Rename its parameter to
9946 fullname, updates its comment. Change tui_locator_element field to
9947 full_name.
9948 (tui_set_locator_info): Rename its parameter to fullname.
9949 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9950 (tui_update_locator_filename): Rename to ...
9951 (tui_update_locator_fullname): ... here. Rename callee to
9952 tui_set_locator_fullname.
9953 (tui_show_frame_info): Replace symtab->filename refererence by
9954 symtab_to_fullname call.
9955 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9956 (tui_update_locator_fullname): ... here.
9957 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9958 tui_update_locator_fullname. Replace symtab->filename refererence by
9959 symtab_to_fullname call.
9960 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9961 Rename the callee to tui_update_locator_fullname.
9962 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9963
9964 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9965
9966 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9967 by symtab_to_filename_for_display calls.
9968 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9969 (clear_command): New variable sal_fullname, initialize it. Replace
9970 compare_filenames_for_search by filename_cmp with sal_fullname.
9971 (say_where, update_static_tracepoint): Replace symtab->filename
9972 refererences by symtab_to_filename_for_display calls.
9973 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9974 Likewise.
9975 * dwarf2read.c: Include source.h.
9976 (fixup_go_packaging): Replace symtab->filename refererences by
9977 symtab_to_filename_for_display calls.
9978 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9979 Replace symtab->filename refererences by symtab_to_filename_for_display
9980 calls.
9981 (create_sals_line_offset, convert_linespec_to_sals): New variable
9982 fullname, initialize it, replace symtab->filename reference by the
9983 variable.
9984 * linux-fork.c: Include source.h.
9985 (info_checkpoints_command): Replace symtab->filename refererences by
9986 symtab_to_filename_for_display calls.
9987 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9988 by symtab_to_filename_for_display calls.
9989 * mdebugread.c: Include source.h.
9990 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9991 symtab_to_filename_for_display calls.
9992 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9993 (mi_cmd_file_list_exec_source_files): Likewise.
9994 * printcmd.c: Include source.h.
9995 (build_address_symbolic): Replace symtab->filename refererences by
9996 symtab_to_filename_for_display calls.
9997 * psymtab.c (partial_map_symtabs_matching_filename)
9998 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9999 with psymtab_to_fullname.
10000 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10001 by symtab_to_filename_for_display calls.
10002 (stpy_get_filename): New variable filename, initialize it, use instead
10003 of symtab->filename refererences.
10004 (salpy_str): Make variable filename const char *. Replace
10005 symtab->filename refererences by symtab_to_filename_for_display calls.
10006 * skip.c: Include source.h and filenames.h.
10007 (skip_file_command): Remove const from the symtab variable. Replace
10008 symtab->filename refererences by symtab_to_fullname call.
10009 (function_name_is_marked_for_skip): New variables searched_for_fullname
10010 and fullname. Use them to search also with symtab's fullname.
10011 * source.c (find_source_lines): Replace symtab->filename refererences
10012 by symtab_to_filename_for_display calls.
10013 (print_source_lines_base): New variable filename, use it instead of
10014 symtab->filename. Replace symtab->filename refererences by
10015 symtab_to_filename_for_display calls.
10016 (line_info, forward_search_command): Replace symtab->filename
10017 refererences by symtab_to_filename_for_display calls.
10018 (reverse_search_command): Replace symtab->filename refererences by
10019 symtab_to_filename_for_display calls. New variable filename for it.
10020 * stack.c (frame_info): Likewise.
10021 * symmisc.c: Include source.h.
10022 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10023 (maintenance_info_symtabs): Replace symtab->filename refererences by
10024 symtab_to_filename_for_display calls.
10025 * symtab.c (iterate_over_some_symtabs): Call
10026 compare_filenames_for_search also with symtab_to_fullname.
10027 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10028 symtab->filename refererences by symtab_to_filename_for_display calls.
10029 (find_line_symtab): Replace symtab->filename refererences by
10030 symtab_to_filename_for_display calls.
10031 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10032 (print_symbol_info): Make the last parameter const char *. New
10033 variable s_filename. Use it in the function.
10034 (symtab_symbol_info): Make the last_filename variable const char *.
10035 Replace symtab->filename refererences by symtab_to_filename_for_display
10036 calls.
10037 (rbreak_command): New variable fullname. Use it. Replace
10038 symtab->filename refererence by symtab_to_filename_for_display call.
10039 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10040 (print_one_static_tracepoint_marker): Replace symtab->filename
10041 refererences by symtab_to_filename_for_display calls.
10042 * tui/tui-source.c (tui_set_source_content): New variables filename and
10043 s_filename. Replace symtab->filename refererences by this variable.
10044 Replace other symtab->filename refererences by
10045 symtab_to_filename_for_display calls.
10046
10047 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10048 Jan Kratochvil <jan.kratochvil@redhat.com>
10049
10050 Add a new variable that controls a way in which filenames are
10051 displayed.
10052 * NEWS (set filename-display): New entry.
10053 * source.c (filename_display_basename, filename_display_relative)
10054 (filename_display_absolute, filename_display_kind_names)
10055 (filename_display_string, show_filename_display_string)
10056 (symtab_to_filename_for_display): New.
10057 (_initialize_source): Added initialization of 'filename-display'
10058 variable.
10059 * source.h (symtab_to_filename_for_display): Added declaration.
10060 * stack.c (print_frame): Added new variable and calling of a new
10061 function and condition with this variable. Changed third argument of
10062 calling of a function.
10063
10064 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10065
10066 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10067 Rename field reference filename to fullname.
10068 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10069 fullname. New comment for it.
10070 * tui/tui-source.c (tui_set_source_content): Rename field reference
10071 filename to fullname. Initialize field by symtab_to_fullname now.
10072 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10073 reference filename to fullname. Use symtab_to_fullname during
10074 comparison.
10075
10076 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10077
10078 Code cleanup.
10079 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10080 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10081 filename to fullname. Rename variable this_name to this_fullname.
10082 Lowercase FILENAME_CMP call.
10083 (dw2_find_symbol_file): New comment for the returned string.
10084 (dwarf2_gdb_index_functions): Rename the function to
10085 dw2_expand_symtabs_with_fullname.
10086 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10087 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10088 fullname.
10089 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10090 * symfile.h (struct quick_symbol_functions): Rename field
10091 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10092 parameter filename to fullname. Document returned string meaning for
10093 find_symbol_file.
10094 * symtab.c (find_line_symtab): Rename the called function to
10095 expand_symtabs_with_fullname.
10096
10097 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10098
10099 Code cleanup.
10100 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10101 call of filename_cmp with compare_filenames_for_search.
10102 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10103 is_abs, unify the call of FILENAME_CMP with
10104 compare_filenames_for_search. New gdb_asserts for real_path and name.
10105 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10106 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10107 * symfile.h (struct quick_symbol_functions): Extend the comment for
10108 map_symtabs_matching_filename.
10109 * symtab.c (compare_filenames_for_search): Remove the function comment
10110 relative path requirement. Handle absolute filenames, with a comment.
10111 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10112 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10113 real_path and name. Unify the call of compare_filenames_for_search
10114 with FILENAME_CMP.
10115 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10116
10117 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10118
10119 Code cleanup.
10120 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10121 source_file references by symtab field references. Remove variables
10122 sal and fullname.
10123 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10124 (clear_command, say_where): Replace bp_location field source_file
10125 references by symtab field references.
10126 (bp_location_dtor): Remove the source_file reference.
10127 (update_static_tracepoint): Replace bp_location field source_file
10128 references by symtab field references.
10129 (breakpoint_free_objfile): New function.
10130 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10131 Replace the field source_file by field symtab, extend its comment.
10132 (breakpoint_free_objfile): New declaration.
10133 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10134 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10135 field source_file references by symtab field references.
10136
10137 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10138
10139 Replace xfullpath calls by gdb_realpath calls.
10140 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10141 function comment.
10142 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10143 Remove it from the iterate_over_some_symtabs call.
10144 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10145 Remove it from the dw2_map_expand_apply calls, remove a block handling
10146 it.
10147 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10148 Remove it from the iterate_over_some_symtabs call.
10149 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10150 Remove it from the partial_map_expand_apply calls, remove a block
10151 handling it. Drop gdb_realpath call and cleanups from the real_path
10152 handling.
10153 * source.c (openp): Drop the comment part about xfullpath. Replace
10154 xfullpath calls by gdb_realpath calls.
10155 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10156 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10157 from method map_symtabs_matching_filename and its comment.
10158 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10159 gdb_realpath call.
10160 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10161 remove it also from the function comment, remove a block handling it.
10162 Drop gdb_realpath call and cleanups from the real_path handling.
10163 (iterate_over_symtabs): Drop variable full_path and its use.
10164 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10165 * utils.c (xfullpath): Remove.
10166 * utils.h (xfullpath): Remove.
10167
10168 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10169
10170 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10171 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10172 (ALLDEPFILES): Add ppc64-tdep.c.
10173 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10174 ppc64-tdep.o to gdb_target_obs.
10175 * ppc64-tdep.h: New file.
10176 * ppc64-tdep.c: New file.
10177 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10178 ppc-linux-tdep.c to here.
10179 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10180 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10181 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10182 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10183 from ppc-linux-tdep.c to here.
10184 (ppc64_convert_from_func_ptr_addr): Rename from
10185 ppc64_linux_convert_from_func_ptr_addr to
10186 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10187 here.
10188 * rs6000-tdep.c:
10189 (read_insn): Move from ppc-linux-tdep.c to here.
10190 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10191 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10192 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10193 Removed above functions.
10194 (ppc_linux_init_abi): Adjust.
10195
10196 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10197
10198 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10199
10200 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10201
10202 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10203
10204 2013-02-01 Pedro Alves <palves@redhat.com>
10205
10206 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10207 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10208
10209 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10210
10211 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10212 files with no separate debug info.
10213 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10214 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10215 only for files with no separate debug info.
10216
10217 2013-01-31 Tom Tromey <tromey@redhat.com>
10218
10219 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10220 change type.
10221 (struct jit_program_space_data): Rename from jit_inferior_data.
10222 Update comments.
10223 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10224 Change return type. Attach data to program space.
10225 (jit_program_space_data_cleanup): Rename from
10226 jit_inferior_data_cleanup; change argument type.
10227 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10228 change type.
10229 (jit_register_code): Update.
10230 (jit_update_inferior_cache): Remove.
10231 (jit_breakpoint_deleted): Get jit data from the location's program
10232 space.
10233 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10234 'ps_data', change type.
10235 (jit_inferior_init, jit_breakpoint_re_set_internal)
10236 (jit_event_handler): Update.
10237 (free_objfile_data): Get data from objfile's program space.
10238 (_initialize_jit): Update.
10239
10240 2013-01-31 Tom Tromey <tromey@redhat.com>
10241
10242 PR gdb/13987:
10243 * jit.c (struct jit_inferior_data) <cached_code_address,
10244 jit_breakpoint>: New fields.
10245 (jit_breakpoint_re_set_internal): Fix logging. Only create
10246 breakpoint if cached address has changed.
10247 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10248 functions.
10249 (_initialize_jit): Register breakpoint deleted observer.
10250
10251 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10252
10253 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10254 (save_infcall_suspend_state): Ifdef out unused inf.
10255 (restore_infcall_suspend_state): Ifdef out unused inf.
10256 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10257 (jit_frame_sniffer): Remove unused inf_data.
10258
10259 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10260
10261 * c-exp.y (classify_inner_name): Remove unused type.
10262 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10263 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10264 need_escape.
10265 (c_get_string): Remove unused kind.
10266 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10267
10268 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10269
10270 * charset.c (intermediate_encoding): Remove unused i.
10271 * completer.c (signal_completer): Remove unused i.
10272 * continuations.c (discard_my_continuations_1): Remove unused
10273 continuation_ptr.
10274 * corelow.c (core_close): Remove unuseD name.
10275 (get_core_siginfo): Remove unused pid.
10276 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10277 i, cps.
10278 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10279 (loclist_describe_location): Remove unused first.
10280 * event-top.c (command_line_handler): Remove unused got_eof.
10281 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10282 (resize_section_table): Remove unused old_value.
10283 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10284 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10285 * i386-tdep.c (i386_process_record): Remove unused rex.
10286 * infcmd.c (get_return_value): Remove unused uiout.
10287 * jv-lang.c (type_from_class): Remove unused is_array.
10288 * jv-valprint.c (java_val_print): Remove unused i.
10289 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10290 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10291 * m2-typeprint.c (m2_print_type): Remove unused code.
10292 * macroexp.c (get_character_constant): Remove unused body_start.
10293 (macro_stringify): Remove unused result.
10294 * objc-lang.c (find_methods): Remove unused gdbarch.
10295 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10296 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10297 * stack.c (print_frame_args): Remove unused summary.
10298 * thread.c (thread_apply_command): Remove unused p.
10299 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10300 * valops.c (search_struct_method): Remove unused skip.
10301 * valprint.c (generic_val_print): Remove unused byte_order.
10302 * varobj.c (varobj_update): Remove unused changed.
10303 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10304 (alias_command): Remove unused c.
10305 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10306 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10307 format.
10308 (mi_cmd_data_write_memory): Remove unused word_format.
10309 (mi_cmd_data_write_memory_bytes): Remove unused r.
10310 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10311 p_start, p_end.
10312 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10313 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10314 line_width.
10315
10316 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10317
10318 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10319 * symtab.c (iterate_over_symtabs): Remove unused s.
10320 (find_pc_sect_symtab): Remove unused pspAce.
10321 (find_pc_sect_line): Remove unused alt_symtab.
10322 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10323 (completion_list_add_name): Remove unused newsize.
10324
10325 2013-01-31 Tom Tromey <tromey@redhat.com>
10326
10327 PR c++/14998:
10328 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10329 TYPE_CODE_FUNC.
10330
10331 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10332
10333 * target.c (target_read_string): Remove unused origlen.
10334
10335 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10336
10337 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10338 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10339 * ax-general.c (ax_print): Remove unused is_float.
10340 * blockframe.c (block_innermost_frame): Remove unused start, end.
10341 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10342
10343 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10344
10345 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10346 (svr4_read_so_list): Remove unused lmo.
10347 * solib-target.c (solib_target_relocate_section_addresses): Remove
10348 unused flags.
10349
10350 2013-01-30 Tom Tromey <tromey@redhat.com>
10351
10352 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10353
10354 2013-01-30 Tom Tromey <tromey@redhat.com>
10355
10356 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10357 * utils.c (gnu_debuglink_crc32): Remove.
10358 * utils.h (gnu_debuglink_crc32): Don't declare.
10359
10360 2013-01-30 Tom Tromey <tromey@redhat.com>
10361
10362 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10363 (read_structure_type, read_enumeration_type): Remove cast.
10364
10365 2013-01-30 Tom Tromey <tromey@redhat.com>
10366
10367 * dwarf2read.c (read_namespace_type): Remove cast.
10368 (read_typedef): Likewise.
10369
10370 2013-01-29 Tom Tromey <tromey@redhat.com>
10371
10372 * dwarf2read.c (free_dwo_file): Remove assert.
10373
10374 2013-01-29 Tom Tromey <tromey@redhat.com>
10375
10376 * value.c (deprecated_set_value_modifiable): Remove.
10377 * value.h (deprecated_set_value_modifiable): Remove.
10378
10379 2013-01-28 Doug Evans <dje@google.com>
10380
10381 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10382 to addresses from dwo files.
10383
10384 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10385
10386 * valops.c (find_overload_match): Remove unused argument 'lax'.
10387 * value.h: Remove unused argument 'lax' from the declaration of
10388 find_overload_match.
10389 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10390 to find_overload_match.
10391 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10392 argument to find_overload_match.
10393
10394 2013-01-25 Tom Tromey <tromey@redhat.com>
10395
10396 * dwarf2read.c (processing_has_namespace_info): Remove.
10397 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10398 (process_die, read_func_scope, dwarf2_start_symtab)
10399 (new_symbol_full): Update.
10400
10401 2013-01-25 Tom Tromey <tromey@redhat.com>
10402
10403 * cp-namespace.c (cp_set_block_scope): Remove.
10404 * cp-support.h (cp_set_block_scope): Remove.
10405 * dbxread.c: Include block.h.
10406 (cp_set_block_scope): New function.
10407 (process_one_symbol): Update.
10408 * dwarf2read.c (read_func_scope): Use block_set_scope.
10409
10410 2013-01-25 Pedro Alves <palves@redhat.com>
10411
10412 * remote.c (add_current_inferior_and_thread): Tweak comment.
10413
10414 2013-01-25 Tom Tromey <tromey@redhat.com>
10415
10416 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10417 (cp_add_using_directive): Add 'copy_names' argument.
10418 * cp-support.h (cp_add_using_directive): Update.
10419 (struct using_direct) <import_src, import_dest, alias,
10420 declaration>: Now const.
10421 * dwarf2read.c (read_import_statement): Use obconcat.
10422 Don't copy names passed to cp_add_using_directive.
10423
10424 2013-01-25 Tom Tromey <tromey@redhat.com>
10425
10426 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10427
10428 2013-01-25 Pedro Alves <palves@redhat.com>
10429
10430 * remote.c (stop_reply_extract_thread): New.
10431 (add_current_inferior_and_thread): New parameter 'wait_status'.
10432 Handle it.
10433 (remote_start_remote): Pass wait status to
10434 add_current_inferior_and_thread.
10435 (extended_remote_run): Update comment.
10436 (extended_remote_create_inferior_1): Pass wait status to
10437 add_current_inferior_and_thread.
10438
10439 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10440 Ulrich Weigand <uweigand@de.ibm.com>
10441
10442 * valarith.c (value_vector_widen): New function for replicating a
10443 scalar into a vector.
10444 (value_binop): Use value_vector_widen to widen scalar to vector
10445 rather than casting, this better matches gcc C behaviour.
10446 * valops.c (value_casst): Update logic for casting between vector
10447 types, and for casting from scalar to vector, try to match gcc C
10448 behaviour.
10449 * value.h (value_vector_widen): Declare.
10450 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10451 function, handle special case for casting scalar to vector.
10452 (opencl_relop): Use opencl_value_cast.
10453 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10454 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10455 in order to use opencl_value_cast.
10456
10457 2013-01-25 Yao Qi <yao@codesourcery.com>
10458
10459 * event-loop.c: Include "queue.h".
10460 (gdb_event_p): New typedef.
10461 (DECLARE_QUEUE_P): Use.
10462 (DEFINE_QUEUE_P): Use.
10463 (async_queue_event): Remove.
10464 (gdb_event_xfree): New.
10465 (initialize_event_loop): New.
10466 (process_event): Use QUEUE macros.
10467 (event_queue): Remove.
10468 (gdb_wait_for_event): Caller update.
10469 (check_async_event_handlers): Likewise.
10470 (poll_timers): Likewise.
10471 * event-loop.h (initialize_event_loop): Declare.
10472 * event-loop.c (gdb_event_xfree): New.
10473 * top.c (gdb_init): Call initialize_event_loop.
10474
10475 2013-01-25 Yao Qi <yao@codesourcery.com>
10476
10477 * event-loop.c (async_queue_event): Remove one parameter
10478 'position'. Remove code handling 'position' == TAIL.
10479 (gdb_wait_for_event): Caller update.
10480 (check_async_event_handlers): Caller update.
10481 (poll_timers): Caller update.
10482 * event-loop.h (enum queue_position): Remove.
10483
10484 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10485
10486 * MAINTAINERS: Update my email.
10487
10488 2013-01-25 Yao Qi <yao@codesourcery.com>
10489
10490 * main.c (print_gdb_help): Remove "--epoch" from the help
10491 message.
10492
10493 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10494
10495 * symtab.c (skip_prologue_using_sal): Consider a file
10496 change the same as an increased line number
10497
10498 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10499
10500 * MAINTAINERS (Write After Approval): Add myself to the list.
10501
10502 2013-01-24 Tom Tromey <tromey@redhat.com>
10503
10504 * ada-lang.h (ada_decode_symbol): Make return type const.
10505 * ada-lang.c (ada_decode_symbol): Likewise.
10506
10507 2013-01-23 Doug Evans <dje@google.com>
10508
10509 * linespec.c (find_linespec_symbols): Make static.
10510
10511 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10512
10513 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10514 type on float conversion for complex type.
10515
10516 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10517
10518 Add a new class gdb.Architecture which exposes GDB's
10519 internal representation of architecture via GDB Python API.
10520 * Makefile.in: Add entries corresponding to the new file
10521 python/py-arch.c.
10522 * NEWS (Python Scripting): Add entries for the new class
10523 gdb.Architecture and the new method gdb.Frame.architecture.
10524 * python/py-arch.c: Implement gdb.Architecture class.
10525 * python/py-frame.c (frapy_arch): Implement the method
10526 gdb.Frame.architecture().
10527 (frame_object_methods): Add 'architecture' to the method table.
10528 * python/python-internal.h: Add declarations of new utility
10529 functions.
10530 * python/python.c (_initialize_python): Initialize
10531 gdb.Architecture class.
10532
10533 2013-01-23 Doug Evans <dje@google.com>
10534
10535 Work around binutils/15021.
10536 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10537 type_unit_group out of union s. All uses updated.
10538 (read_index_from_section): Watch for index version 8.
10539 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10540 an imported symtab.
10541 (write_psymtabs_to_index): Increment version number to 8.
10542
10543 2013-01-22 Pedro Alves <palves@redhat.com>
10544
10545 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10546 user-visible.
10547
10548 2013-01-22 Pedro Alves <palves@redhat.com>
10549
10550 * annotate.c (annotate_breakpoints_changed): Rename to ...
10551 (annotate_breakpoints_invalid): ... this. Make static.
10552 (breakpoint_changed): Adjust.
10553 (_initialize_annotate): Always install the observers. Install a
10554 "breakpoint_created" observer.
10555 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10556 * breakpoint.c (set_breakpoint_condition)
10557 (breakpoint_set_commands, do_map_commands_command)
10558 (init_raw_breakpoint, clear_command, set_ignore_count)
10559 (enable_breakpoint_disp): No longer call
10560 annotate_breakpoints_changed.
10561
10562 2013-01-22 Pedro Alves <palves@redhat.com>
10563
10564 * annotate.c: Include "inferior.h".
10565 (frames_invalid_emitted)
10566 (breakpoints_invalid_emitted): New globals.
10567 (async_background_execution_p): New function.
10568 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10569 emitting the annotation if it has already been emitted.
10570 (annotate_display_prompt): New function.
10571 * annotate.h (annotate_display_prompt): New declaration.
10572 * event-top.c: Include annotate.h.
10573 (display_gdb_prompt): Call annotate_display_prompt.
10574
10575 2013-01-22 Pedro Alves <palves@redhat.com>
10576
10577 * annotate.c (ignore_count_changed): Delete.
10578 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10579 (annotate_ignore_count_change): Delete.
10580 (annotate_stopped): Don't emit a delayed breakpoints-changed
10581 annotation.
10582 * annotate.h (annotate_ignore_count_change): Delete.
10583 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10584 annotate_ignore_count_change.
10585
10586 2013-01-22 Tom Tromey <tromey@redhat.com>
10587
10588 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10589 require_rvalue for a register location.
10590
10591 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10592
10593 * breakpoint.c (print_one_breakpoint_location): Add MI
10594 field 'thread-groups' when printing a breakpoint.
10595 (output_thread_groups): New function.
10596
10597 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10598
10599 * python/lib/gdb/commands/explore.py
10600 (CompoundExplorer.explore_expr): Correct the name of a method
10601 being invoked.
10602 (ExploreTypeCommand.invoke): Add a missing 'return'.
10603
10604 2013-01-21 Tom Tromey <tromey@redhat.com>
10605
10606 * gdb_obstack.h (obconcat): Move declaration here, from...
10607 * symfile.h (obconcat): ... here.
10608 * gdb_obstack.c: New file.
10609 (obconcat): Move from...
10610 * symfile.c (obconcat): ... here.
10611 * Makefile.in (SFILES): Add gdb_obstack.c.
10612 (COMMON_OBS): Add gdb_obstack.o.
10613
10614 2013-01-21 Tom Tromey <tromey@redhat.com>
10615
10616 * symfile.h (obsavestring): Don't declare.
10617 * symfile.c (obsavestring): Remove.
10618 * ada-exp.y: Use obstack_copy0, not obsavestring.
10619 * ada-lang.c: Use obstack_copy0, not obsavestring.
10620 * coffread.c: Use obstack_copy0, not obsavestring.
10621 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10622 * dbxread.c: Use obstack_copy0, not obsavestring.
10623 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10624 * jit.c: Use obstack_copy0, not obsavestring.
10625 * mdebugread.c: Use obstack_copy0, not obsavestring.
10626 * psymtab.c: Use obstack_copy0, not obsavestring.
10627 * stabsread.c: Use obstack_copy0, not obsavestring.
10628 * xcoffread.c: Use obstack_copy0, not obsavestring.
10629
10630 2013-01-21 Tom Tromey <tromey@redhat.com>
10631
10632 * dwarf2read.c (fixup_go_packaging): Save package name
10633 on objfile obstack.
10634 * gdbtypes.c (init_type): Don't copy name.
10635
10636 2013-01-21 Tom Tromey <tromey@redhat.com>
10637
10638 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10639 const.
10640 (struct attribute) <u.str>: Now const.
10641 (struct fnfieldlist) <name>: Now const.
10642 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10643 (partial_die_parent_scope): Make return type const.
10644 (partial_die_full_name, add_partial_symbol): Update.
10645 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10646 'name' const.
10647 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10648 (read_file_scope, read_func_scope, dwarf2_add_field)
10649 (dwarf2_add_member_fn, read_structure_type)
10650 (process_enumeration_scope, read_array_type, read_module_type)
10651 (read_base_type, read_subrange_type): Update.
10652 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10653 (new_symbol_full, guess_full_die_structure_name): Update.
10654 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10655 (dwarf2_name): Return const type.
10656 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10657 const.
10658
10659 2013-01-21 Tom Tromey <tromey@redhat.com>
10660
10661 * gdbtypes.c (init_type): Make 'name' const.
10662 * gdbtypes.h (init_type): Update.
10663
10664 2013-01-21 Tom Tromey <tromey@redhat.com>
10665
10666 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10667 (start_symtab): Make 'name' and 'dirname' const. Use
10668 set_last_source_file.
10669 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10670 (last_source_file): Define. Now static.
10671 (set_last_source_file, get_last_source_file): New functions.
10672 * buildsym.h (last_source_file): Don't declare.
10673 (start_symtab): Update.
10674 (set_last_source_file, get_last_source_file): Declare.
10675 * coffread.c (complete_symtab): Use set_last_source_file.
10676 (coff_end_symtab): Likewise.
10677 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10678 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10679 set_last_source_file.
10680 (process_one_symbol): Use get_last_source_file.
10681 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10682 (psymtab_to_symtab_1): Use get_last_source_file.
10683 * xcoffread.c (process_linenos): Use get_last_source_file.
10684 (complete_symtab): Use set_last_source_file.
10685 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10686 (scan_xcoff_symtab): Use set_last_source_file.
10687
10688 2013-01-21 Tom Tromey <tromey@redhat.com>
10689
10690 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10691 (symbol_set_names): Remove casts. Handle field const-ness.
10692
10693 2013-01-21 Tom Tromey <tromey@redhat.com>
10694
10695 * dwarf2read.c (new_symbol_full): Remove cast.
10696 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10697 * symtab.h (symbol_set_demangled_name): Update.
10698
10699 2013-01-21 Tom Tromey <tromey@redhat.com>
10700
10701 * main.c (captured_main): Call bfd_init.
10702
10703 2013-01-21 Tom Tromey <tromey@redhat.com>
10704
10705 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10706 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10707 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10708 * NEWS: Update.
10709
10710 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10711
10712 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10713
10714 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10715
10716 Fix gdb.fortran/common-block.exp crash in PIE mode.
10717 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10718 LOC_COMMON_BLOCK.
10719 * f-valprint.c (info_common_command_for_block): Expect
10720 LOC_COMMON_BLOCK in gdb_assert.
10721 * symtab.h (struct general_symbol_info): Update comment for the
10722 common_block member.
10723 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10724 (enum address_class): New member LOC_COMMON_BLOCK.
10725
10726 2013-01-18 David Blaikie <dblaikie@gmail.com>
10727
10728 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10729
10730 2013-01-18 Tom Tromey <tromey@redhat.com>
10731
10732 PR c++/14999:
10733 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10734 Call require_rvalue.
10735
10736 2013-01-18 Yao Qi <yao@codesourcery.com>
10737
10738 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10739 (dbx_read_symtab): New declaration.
10740 (dbx_psymtab_to_symtab): Delete.
10741 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10742 Rename parameter PST to SELF. Exchanged two parameters.
10743 (start_psymtab): Caller update.
10744 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10745 (dwarf2_read_symtab): New declaration.
10746 (dwarf2_psymtab_to_symtab): Delete.
10747 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10748 Rename parameter PST to SELF. Exchanged two parameters.
10749 (create_partial_symtab): Caller update.
10750 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10751 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10752 Rename parameter PST to SELF. Exchanged two parameters.
10753 (parse_partial_symbols, new_psymtab): Caller update.
10754 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10755 two parameters.
10756 * psymtab.c (psymtab_to_symtab): Caller update.
10757 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10758 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10759 Rename parameter PST to SELF. Exchanged two parameters.
10760 (xcoff_start_psymtab): Caller update.
10761
10762 2013-01-18 Yao Qi <yao@codesourcery.com>
10763
10764 * infrun.c (proceed): Rename local variable 'oneproc' to
10765 'force_step'.
10766
10767 2013-01-17 Doug Evans <dje@google.com>
10768
10769 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10770 (dw2_build_type_unit_groups): Delete. All uses updated.
10771
10772 * symtab.h (struct symbol_search): Add comment.
10773
10774 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10775
10776 * symtab.c (compare_filenames_for_search): New comment for
10777 HAS_DRIVE_SPEC.
10778
10779 2013-01-17 Tom Tromey <tromey@redhat.com>
10780
10781 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10782
10783 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10784
10785 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10786 initialize it by existing make_cleanup. Call new do_cleanups.
10787
10788 2013-01-17 Tom Tromey <tromey@redhat.com>
10789
10790 * cp-abi.c (cp_abi_completer): New function.
10791 (_initialize_cp_abi): Set completer for "set cp-abi".
10792
10793 2013-01-17 Tom Tromey <tromey@redhat.com>
10794
10795 * mem-break.c: Remove obsolete comment.
10796 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10797
10798 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10799
10800 * jit.c (jit_reader_load_command): Interpret the jit reader name
10801 as an absolute path if it begins with a forward slash.
10802
10803 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10804
10805 PR gdb/14550
10806
10807 * jit.c (finalize_symtab): Ensure that only the global block has a
10808 NULL superblock.
10809
10810 2013-01-17 Pedro Alves <palves@redhat.com>
10811
10812 * acinclude.m4: Include ../config/plugins.m4,
10813 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10814 * Makefile.in (aclocal_m4_deps): Update.
10815 * aclocal.m4: Renegerate.
10816
10817 2013-01-16 Doug Evans <dje@google.com>
10818
10819 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10820
10821 2013-01-16 Pedro Alves <palves@redhat.com>
10822 Tom Tromey <tromey@redhat.com>
10823
10824 PR cli/7221:
10825 * NEWS: Add "catch signal".
10826 * breakpoint.c (base_breakpoint_ops): No longer static.
10827 (bpstat_explains_signal): New function.
10828 (init_catchpoint): No longer static.
10829 (base_breakpoint_explains_signal): New function.
10830 (base_breakpoint_ops): Initialize new field.
10831 * breakpoint.h (enum bpstat_signal_value): New.
10832 (struct breakpoint_ops) <explains_signal>: New field.
10833 (bpstat_explains_signal): Remove macro, declare as function.
10834 (base_breakpoint_ops, init_catchpoint): Declare.
10835 * break-catch-sig.c: New file.
10836 * inferior.h (signal_catch_update): Declare.
10837 * infrun.c (signal_catch): New global.
10838 (handle_syscall_event): Update for change to
10839 bpstat_explains_signal.
10840 (handle_inferior_event): Likewise. Always handle random signals
10841 via bpstats.
10842 (signal_cache_update): Check signal_catch.
10843 (signal_catch_update): New function.
10844 (_initialize_infrun): Initialize signal_catch.
10845 * Makefile.in (SFILES): Add break-catch-sig.c.
10846 (COMMON_OBS): Add break-catch-sig.o.
10847
10848 2013-01-16 Tom Tromey <tromey@redhat.com>
10849
10850 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10851 (print_one_catch_solib, print_one_catch_syscall)
10852 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10853 "catch-type".
10854
10855 2013-01-16 Yao Qi <yao@codesourcery.com>
10856
10857 * printcmd.c (current_display_number): Make it static.
10858
10859 2013-01-16 Yao Qi <yao@codesourcery.com>
10860
10861 * infcmd.c (step_once): Don't check '!single_inst' as it was
10862 checked before.
10863
10864 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10865
10866 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10867
10868 2013-01-14 Tom Tromey <tromey@redhat.com>
10869
10870 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10871 set command.
10872 * command.h (add_setshow_string_noescape_cmd): Update.
10873 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10874 (complete_set_gnutarget): New function.
10875 (_initialize_core): Set the "set gnutarget" completer.
10876
10877 2013-01-14 Tom Tromey <tromey@redhat.com>
10878
10879 PR symtab/14442:
10880 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10881 (c_type_print_modifier): Likewise.
10882 * dwarf2read.c (read_tag_restrict_type): New function.
10883 (read_type_die_1): Handle DW_TAG_restrict_type.
10884 * gdbtypes.c (make_restrict_type): New function.
10885 (recursive_dump_type): Handle TYPE_RESTRICT.
10886 * gdbtypes.h (enum type_flag_values): Renumber.
10887 (enum type_instance_flag_value): Add
10888 TYPE_INSTANCE_FLAG_RESTRICT.
10889 (TYPE_RESTRICT): New macro.
10890 (make_restrict_type): Declare.
10891
10892 2013-01-14 Tom Tromey <tromey@redhat.com>
10893
10894 PR symtab/14931:
10895 * psymtab.c (struct psymtab_state): New.
10896 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10897 functions.
10898 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10899 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10900
10901 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
10902 Pedro Alves <palves@redhat.com>
10903
10904 PR remote/14786
10905
10906 * remote.c (remote_threads_info): Make a copy of the reply from
10907 qfThreadInfo and use that instead of rs->buf.
10908
10909 2013-01-14 Yao Qi <yao@codesourcery.com>
10910
10911 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10912 (dbx_psymtab_to_symtab): Likewise.
10913 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10914 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10915 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10916
10917 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10918
10919 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10920 make_cleanup_restore_current_language. Call set_language. Move
10921 OLD_CHAIN and INNER_CHAIN cleanups.
10922 * utils.c (do_restore_current_language)
10923 (make_cleanup_restore_current_language): New functions.
10924 * utils.h (make_cleanup_restore_current_language): New declaration.
10925
10926 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10927
10928 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10929 non-existing files.
10930
10931 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10932 non-existing files if FILENAME is already absolute.
10933
10934 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10935
10936 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10937 fputs_filtered. Append trailing newline.
10938
10939 2013-01-11 Yao Qi <yao@codesourcery.com>
10940 Stan Shebs <stan@codesourcery.com>
10941
10942 * psymtab.c (init_psymbol_list): Clarify the comment.
10943
10944 2013-01-11 Yao Qi <yao@codesourcery.com>
10945
10946 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10947 (update_dprintf_command_list): Assert that 'printf_line' is
10948 non-null. Remove condition check.
10949
10950 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10951
10952 Code cleanup.
10953 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10954 type const char *.
10955 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10956 const char *.
10957 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10958
10959 2013-01-09 Anthony Green <green@moxielogic.com>
10960
10961 * cp-abi.c (cplus_print_vtable): Don't return value from void
10962 function.
10963 * ada-lang.c (re_set_catch_assert): Ditto.
10964
10965 2013-01-09 Doug Evans <dje@google.com>
10966
10967 * symfile.h (quick_symbol_functions): Delete member
10968 pre_expand_symtabs_matching. All uses removed.
10969 * dwarf2read.c (dw2_lookup_symbol): Implement.
10970 (dw2_do_expand_symtabs_matching): Delete.
10971 (dw2_pre_expand_symtabs_matching): Delete.
10972 (struct dw2_symtab_iterator): New type.
10973 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10974 (dw2_expand_symtabs_for_function): Rewrite.
10975 (dwarf2_gdb_index_functions): Update.
10976 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10977 (psym_functions): Update.
10978
10979 2013-01-09 Tom Tromey <tromey@redhat.com>
10980
10981 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10982 * configure: Rebuild.
10983 * configure.ac: Add somread.o to the build if BFD has SOM
10984 support.
10985 * somread.c: Include som/aout.h, not syms.h.
10986 (som_symtab_read): Use som_external_symbol_dictionary_record.
10987 Unpack records manually.
10988 (_initialize_somread): Declare.
10989
10990 2012-01-08 Mike Frysinger <vapier@gentoo.org>
10991
10992 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10993 Cast return_address to 64bits.
10994
10995 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
10996
10997 * printcmd.c: Remove define of function output_command.
10998 * tracepoint.c: Remove extern of function output_command.
10999 * valprint.h: (output_command): New extern.
11000
11001 2013-01-07 Tom Tromey <tromey@redhat.com>
11002
11003 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11004 Remove.
11005 (objc_language_defn): Use c_printchar, c_printstr,
11006 c_emit_char.
11007
11008 2013-01-07 Tom Tromey <tromey@redhat.com>
11009
11010 PR cli/7719:
11011 * NEWS: Update.
11012 * ada-valprint.c (printstr, print_field_values): Remove
11013 "inspect_it" code.
11014 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11015 code.
11016 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11017 code.
11018 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11019 * main.c (captured_main): Remove "epoch" argument.
11020 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11021 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11022 * p-valprint.c (pascal_object_print_value_fields): Remove
11023 "inspect_it" code.
11024 * printcmd.c (print_command_1): Remove 'inspect' argument.
11025 (print_command, call_command): Update.
11026 (inspect_command): Remove.
11027 (_initialize_printcmd): Make "inspect" an alias for "print".
11028 * top.c (epoch_interface): Remove.
11029 * top.h (epoch_interface): Remove.
11030 * valprint.c (user_print_options): Update.
11031 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11032 * valprint.h (struct value_print_options) <inspect_it>: Remove
11033 field.
11034
11035 2013-01-04 Tom Tromey <tromey@redhat.com>
11036
11037 * valprint.h (read_string): Add 'extern'.
11038
11039 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11040
11041 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11042 used to decide whether to define darwin_read_dyld_info or not.
11043
11044 2013-01-03 Pierre Muller <muller@sourceware.org>
11045
11046 * main.c (relocate_gdb_directory): Avoid calling stat function
11047 if DIR is empty.
11048
11049 2013-01-03 Yao Qi <yao@codesourcery.com>
11050
11051 * psymtab.c (fixup_psymbol_section): Update declaration.
11052 (fixup_psymbol_section): Remove code returning value.
11053
11054 2013-01-03 Yao Qi <yao@codesourcery.com>
11055
11056 * symtab.h: Remove some out of date comments.
11057 (enum exception_event_kind): Move it ...
11058 * breakpoint.c: ... here.
11059
11060 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11061
11062 PR gdb/14405
11063 * darwin-nat.c (darwin_read_dyld_info): Only build if
11064 TASK_DYLD_INFO_COUNT is defined.
11065 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11066 TASK_DYLD_INFO_COUNT is defined.
11067
11068 2013-01-02 Tom Tromey <tromey@redhat.com>
11069
11070 * symfile.h (struct ecoff_debug_hack): Remove.
11071 * objfiles.c: Don't include mdebugread.h.
11072
11073 2013-01-02 Tom Tromey <tromey@redhat.com>
11074
11075 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11076 * configure.ac: Check for Mach-O support in BFD. Update
11077 CONFIG_OBS.
11078 * configure: Rebuild.
11079
11080 2013-01-02 Tom Tromey <tromey@redhat.com>
11081
11082 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11083 * configure.ac: Use GDB_AC_CHECK_BFD.
11084 * configure: Rebuild.
11085
11086 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11087
11088 * MAINTAINERS: Update my email.
11089
11090 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11091
11092 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11093
11094 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11095
11096 * rs6000-nat.c (bss_data_overlap): New function.
11097 (vmap_symtab): Use it to adjust the .bss section's offset.
11098
11099 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11100
11101 Update year range in copyright notice of all files.
11102
11103 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11104
11105 * top.c (print_gdb_version): Update copyright year.
11106
11107 For older changes see ChangeLog-2012.
11108 \f
11109 Local Variables:
11110 mode: change-log
11111 left-margin: 8
11112 fill-column: 74
11113 version-control: never
11114 coding: utf-8
11115 End: