b2f1fc8dfacb120f6ac93a0344f9f7cdada78304
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 PR gdb/16042
4 * target.c (target_disable_btrace): Fix invalid return value for
5 void function.
6 (target_teardown_btrace): Likewise.
7
8 2013-10-14 Yao Qi <yao@codesourcery.com>
9
10 * varobj.c (struct varobj): Move most of the fields to
11 varobj.h.
12 (struct varobj_dynamic): New struct.
13 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
14 (varobj_has_more): Likewise.
15 (dynamic_varobj_has_child_method): Likewise.
16 (update_dynamic_varobj_children): Likewise.
17 (varobj_get_num_children): Likewise.
18 (varobj_list_children, varobj_pretty_printed_p): Likewise.
19 (install_new_value_visualizer): Likewise.
20 (install_new_value_visualizer, install_new_value): Likewise.
21 (varobj_update, new_variable, free_variable): Likewise.
22 (my_value_of_variable, value_get_print_value): Likewise.
23 (install_visualizer): Change the type of parameter 'var' to
24 'struct varobjd_dynamic *'. Callers update.
25 * varobj.h (struct varobj): Moved from varobj.c.
26 (struct varobj) <dynamic>: New field.
27
28 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
29
30 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
31 as the preferred name of r30.
32 * nios2-linux-tdep.c (reg_offsets): Likewise.
33 * features/nios2-cpu.xml: Likewise.
34 * features/nios2-linux.c: Regenerated.
35 * features/nios2.c: Regenerated.
36 * regformats/nios2-linux.dat: Regenerated.
37
38 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
39
40 Canonicalize directories for EXEC_FILENAME.
41 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
42 exec_filename.
43 * utils.c (gdb_realpath_keepfile): New function.
44 * utils.h (gdb_realpath_keepfile): New declaration.
45
46 2013-10-11 Doug Evans <dje@google.com>
47
48 * Makefile.in (GDBFLAGS): New variable.
49 (run): New rule.
50
51 2013-10-11 Joel Brobecker <brobecker@adacore.com>
52
53 * NEWS: Add entry documenting the new "-catch-assert" and
54 "-catch-exception" GDB/MI commands.
55
56 2013-10-11 Joel Brobecker <brobecker@adacore.com>
57
58 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
59 "enabled".
60 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
61 "enabled". Set B->ENABLE_STATE accordingly.
62 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
63 ada-lang.c.
64 (create_ada_exception_catchpoint): Add declaration.
65 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
66 (create_ada_exception_catchpoint): Make non-static. Add new
67 parameter "disabled". Use it in call to
68 init_ada_exception_breakpoint.
69 (catch_ada_exception_command): Add parameter "enabled" in call
70 to create_ada_exception_catchpoint.
71 (catch_assert_command): Likewise.
72
73 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
74 Add declarations.
75 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
76 "catch-exception" commands.
77 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
78 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
79
80 2013-10-11 Joel Brobecker <brobecker@adacore.com>
81
82 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
83 "enum exception_catchpoint_kind". Replace the "ex_" prefix
84 of all its enumerates with "ada_". Update the rest of this
85 file throughout.
86
87 2013-10-11 Joel Brobecker <brobecker@adacore.com>
88
89 * ada-lang.c (ada_decode_exception_location): Delete.
90 (create_ada_exception_catchpoint): Remove arguments "sal",
91 "addr_string" and "ops". Add argument "ex_kind" instead.
92 Adjust implementation accordingly, calling ada_exception_sal
93 to get the entities it no longer gets passed as arguments.
94 Document the function's arguments.
95 (catch_ada_exception_command): Use catch_ada_exception_command_split
96 instead of ada_decode_exception_location, and update call to
97 create_ada_exception_catchpoint.
98 (catch_ada_assert_command_split): Renames
99 ada_decode_assert_location. Remove parameters "addr_string" and
100 "ops", and now returns void. Adjust implementation accordingly.
101 Update the function documentation.
102 (catch_assert_command): Use catch_ada_assert_command_split
103 instead of ada_decode_assert_location. Update call to
104 create_ada_exception_catchpoint.
105
106 2013-10-11 Joel Brobecker <brobecker@adacore.com>
107
108 * utils.h (perror_warning_with_name): Add declaration.
109 * utils.c (perror_warning_with_name): New function.
110 * cli/cli-cmds.c (source_script_with_search): Add call to
111 perror_warning_with_name if from_tty is nul.
112
113 2013-10-11 Joel Brobecker <brobecker@adacore.com>
114
115 * utils.c (perror_string): New function, extracted out of
116 throw_perror_with_name.
117 (throw_perror_with_name): Rework to use perror_string.
118
119 2013-10-11 Yao Qi <yao@codesourcery.com>
120
121 * remote.c (discard_pending_stop_replies_in_queue): Update
122 declaration.
123 (struct stop_reply) <rs>: New field.
124 (remove_stop_reply_of_remote_state): New function.
125 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
126 Callers update. Pass remove_stop_reply_of_remote_state to
127 QUEUE_iterate.
128 (remote_parse_stop_reply): Initialize field 'rs'.
129
130 2013-10-10 Will Newton <will.newton@linaro.org>
131
132 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
133 linux_init_abi.
134
135 2013-10-10 Joel Brobecker <brobecker@adacore.com>
136
137 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
138 serial_baud_show_cmd.
139 (_initialize_cli_cmds): Delete the code creating the
140 "set/show remotebaud" commands.
141 * serial.c (baud_rate): Move here from top.c.
142 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
143 (_initialize_serial): Create "set/show serial baud" commands.
144 Add "set/show remotebaud" command aliases.
145 * top.c (baud_rate): Moved to serial.c.
146 * NEWS: Document the new "set/show serial baud" commands,
147 replacing "set/show remotebaud".
148
149 2013-10-09 Pedro Alves <palves@redhat.com>
150
151 * breakpoint.c (insert_bp_location): Use memory_error_message to
152 build the memory error string.
153 * c-lang.c: Include "gdbcore.h".
154 (c_get_string): Use memory_error to throw error.
155 (target_xfer_memory_error): Delete.
156 (memory_error_message): New, factored out from
157 target_xfer_memory_error.
158 (memory_error): Change parameter type to target_xfer_error.
159 Rewrite.
160 (read_memory): Use memory_error instead of
161 target_xfer_memory_error.
162 * gdbcore.h: Include "target.h".
163 (memory_error): Change parameter type to target_xfer_error.
164 (memory_error_message): Declare function.
165 * target.c (target_read_memory, target_read_stack)
166 (target_write_memory, target_write_raw_memory): Return
167 TARGET_XFER_E_IO on error. Adjust comments.
168 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
169 instead of EIO.
170 * target.h (target_read, target_insert_breakpoint)
171 (target_remove_breakpoint): Adjust comments.
172 * valprint.c (partial_memory_read): Rename parameter, and adjust
173 comment.
174 (val_print_string): Use memory_error_message to build the memory
175 error string.
176
177 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
178
179 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
180 result variable. Rename variable fopen_e_ever_failed to
181 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
182
183 2013-10-09 Pedro Alves <palves@redhat.com>
184
185 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
186 (monitor_write_memory_longlongs, monitor_write_memory_block):
187 Constify 'myaddr' parameter.
188 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
189 helper.
190 (monitor_xfer_partial): New function.
191 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
192 hook. Install a to_xfer_partial hook.
193
194 2013-10-09 Tom Tromey <tromey@redhat.com>
195
196 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
197 bfd_get_alt_debug_link_info.
198
199 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
200
201 New flag OBJF_NOT_FILENAME.
202 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
203 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
204 allocate_objfile.
205 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
206 symbol_file_add_from_bfd.
207 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
208 allocate_objfile.
209 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
210 NULL.
211 * objfiles.h (OBJF_NOT_FILENAME): New.
212
213 2013-10-08 Tom Tromey <tromey@redhat.com>
214
215 * Makefile.in (SFILES): Add build-id.c.
216 (HFILES_NO_SRCDIR): Add build-id.h.
217 * build-id.c: New file, largely from elfread.c. Modified
218 most functions.
219 * build-id.h: New file.
220 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
221 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
222 Search for dwz file using build-id.
223 * elfread.c (build_id_bfd_get, build_id_verify)
224 (build_id_to_debug_filename, find_separate_debug_file): Remove.
225
226 2013-10-08 Joel Brobecker <brobecker@adacore.com>
227
228 * ada-lang.c (compare_names_with_case): Renamed from
229 compare_names, adding a new parameter "casing" and its handling.
230 New function documentation.
231 (compare_names): New function, implemented using
232 compare_names_with_case.
233
234 2013-10-08 Joel Brobecker <brobecker@adacore.com>
235
236 * ada-lang.c (ada_exception_sal): Remove advance declaration.
237
238 2013-10-07 Tom Tromey <tromey@redhat.com>
239
240 * objfiles.c (free_objfile_per_bfd_storage): Delete the
241 demangled_names_hash.
242 (free_objfile): Don't delete the demangled_names_hash.
243 * objfiles.h (struct objfile_per_bfd_storage)
244 <demangled_names_hash>: New field.
245 (struct objfile) <demangled_names_hash>: Move to
246 objfile_per_bfd_storage.
247 * symfile.c (reread_symbols): Don't delete the
248 demangled_names_hash.
249 * symtab.c (create_demangled_names_hash): Update.
250 (symbol_set_names): Update.
251
252 2013-10-07 Tom Tromey <tromey@redhat.com>
253
254 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
255 needs_relocations>: New fields.
256 (gdb_bfd_requires_relocations): New function.
257 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
258 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
259 the BFD needs relocations applied.
260
261 2013-10-07 Pedro Alves <palves@redhat.com>
262
263 PR breakpoints/11568
264 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
265 the thread list" instead of "gone".
266
267 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
268
269 * NEWS: Mention new convenience variable $_exitsignal.
270 * corelow.c (core_open): Reset exit convenience variables. Set
271 $_exitsignal to the uncaught signal which generated the corefile.
272 * infrun.c (handle_inferior_event): Reset exit convenience
273 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
274 (clear_exit_convenience_vars): New function.
275 * inferior.h (clear_exit_convenience_vars): New prototype.
276
277 2013-10-06 Yao Qi <yao@codesourcery.com>
278
279 * varobj.h: Add comments to enum varobj_languages.
280
281 2013-10-04 Doug Evans <dje@google.com>
282
283 Add support for DWP file format version 2.
284 * NEWS: Mention support for DWP file format version 2.
285 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
286 union of asection, containing_section. New fields virtual_offset
287 and is_virtual. Change type of readin filed from int to char.
288 (dwo_sections, dwo_file): Tweak comments.
289 (dwp_v2_section_ids): New enum.
290 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
291 str_offsets, types.
292 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
293 All uses updated.
294 (virtual_v2_dwo_sections): New struct.
295 (dwp_hash_table): New fields version, nr_columns. Change type of
296 section_pool field to a union.
297 (dwp_file): New field version.
298 (dwarf2_has_info): Check for virtual sections.
299 (get_containing_section): New function.
300 (get_section_bfd_owner, get_section_bfd_section): Call it.
301 (dwarf2_locate_sections): Update.
302 (dwarf2_section_empty_p): Update.
303 (dwarf2_read_section): Handle virtual sections.
304 (locate_dwz_sections): Update.
305 (create_dwp_hash_table): Document and handle V2 format.
306 (locate_v1_virtual_dwo_sections): Renamed from
307 locate_virtual_dwo_sections and update. All callers updated.
308 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
309 Delete arg htab. Rename arg section_index to unit_index.
310 All callers updated.
311 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
312 All uses updated.
313 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
314 (lookup_dwo_unit_in_dwp): Add V2 support.
315 (dwarf2_locate_dwo_sections): Update.
316 (dwarf2_locate_common_dwp_sections): Renamed from
317 dwarf2_locate_dwp_sections and update. All callers updated.
318 (dwarf2_locate_v2_dwp_sections): New function.
319 (open_and_init_dwp_file): Add V2 support.
320 (read_str_index): New locals str_section, str_offsets_section.
321
322 2013-10-04 Pedro Alves <palves@redhat.com>
323
324 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
325 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
326 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
327 describing comments with references to ptid.h.
328 * common/ptid.h: Remove intro description of constructors,
329 accessors and predicates.
330 (struct ptid): Reformat.
331 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
332 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
333 describing comments.
334
335 2013-10-04 Joel Brobecker <brobecker@adacore.com>
336
337 * aix-thread.c (sync_threadlists): Add missing ')' in call
338 to ptid_build.
339
340 2013-10-04 Joel Brobecker <brobecker@adacore.com>
341
342 * procfs.c (procfs_init_inferior): Fix typo causing the build
343 to fail.
344
345 2013-10-04 Joel Brobecker <brobecker@adacore.com>
346
347 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
348
349 2013-10-04 Joel Brobecker <brobecker@adacore.com>
350
351 * mi/mi-main.c (run_one_inferior): Add function description.
352 Make ARG a pointer to an integer whose value determines whether
353 we should "run" or "start" the program.
354 (mi_cmd_exec_run): Add handling of the "--start" option.
355 Reject all other command-line options.
356 * NEWS: Add entry for "-exec-run"'s new "--start" option.
357
358 2013-10-04 Yao Qi <yao@codesourcery.com>
359
360 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
361 (struct notif_client) <pending_event>: Moved
362 to struct remote_notif_state.
363 <id>: New field.
364 (struct remote_notif_state) <pending_event>: New field.
365 (notif_event_xfree): Declare.
366 * remote-notif.c (handle_notification): Adjust.
367 (notif_event_xfree): New function.
368 (do_notif_event_xfree): Call notif_event_xfree.
369 (remote_notif_state_xfree): Call notif_event_xfree to free
370 each element in field pending_event.
371 * remote.c (discard_pending_stop_replies): Remove declaration.
372 (discard_pending_stop_replies_in_queue): Declare.
373 (remote_close): Call discard_pending_stop_replies_in_queue
374 instead of discard_pending_stop_replies.
375 (remote_start_remote): Adjust.
376 (stop_reply_xfree): Call notif_event_xfree.
377 (notif_client_stop): Adjust initialization.
378 (remote_notif_remove_all): Rename it to ...
379 (remove_stop_reply_for_inferior): ... this. Update comments.
380 Don't check INF is NULL.
381 (discard_pending_stop_replies): Return early if notif_state is
382 NULL. Adjust. Don't check INF is NULL.
383 (remote_notif_get_pending_events): Adjust.
384 (discard_pending_stop_replies_in_queue): New function.
385 (remote_wait_ns): Likewise.
386
387 2013-10-04 Yao Qi <yao@codesourcery.com>
388
389 * remote-notif.c (DECLARE_QUEUE_P): Remove.
390 (notif_queue): Remove.
391 (remote_notif_process): Add one parameter 'notif_queue'.
392 Update comments. Callers update.
393 (remote_async_get_pending_events_token): Remove.
394 (remote_notif_register_async_event_handler): Remove.
395 (remote_notif_unregister_async_event_handler): Remove.
396 (handle_notification): Add parameter 'notif_queue'. Update
397 comments. Callers update.
398 (notif_xfree): Remove.
399 (remote_notif_state_allocate): New function.
400 (remote_notif_state_xfree): New function.
401 (_initialize_notif): Remove code to allocate queue.
402 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
403 (struct remote_notif_state): New.
404 (handle_notification): Update declaration.
405 (remote_notif_process): Likewise.
406 (remote_notif_register_async_event_handler): Remove.
407 (remote_notif_unregister_async_event_handler): Remove.
408 (remote_notif_state_allocate): Declare.
409 (remote_notif_state_xfree): Declare.
410 * remote.c (struct remote_state) <notif_state>: New field.
411 (remote_close): Don't call
412 remote_notif_unregister_async_event_handler. Call
413 remote_notif_state_xfree.
414 (remote_open_1): Don't call
415 remote_notif_register_async_event_handler. Call
416 remote_notif_state_allocate.
417
418 2013-10-04 Yao Qi <yao@codesourcery.com>
419
420 * varobj.c (create_child_with_value): Remove 'const' from the
421 type of parameter 'name'.
422 (varobj_add_child): Likewise.
423 (install_dynamic_child): Remove 'const' from the type of
424 parameter 'name'.
425 (varobj_add_child): Likewise.
426 (create_child_with_value): Likewise. Update comments. Don't
427 duplicate 'name'.
428 (update_dynamic_varobj_children): Duplicate 'name'
429 and pass it to install_dynamic_child.
430
431 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
432
433 * python/py-value.c (convert_value_from_python): Move PyInt_Check
434 conversion logic to occur after PyLong_Check. Comment on order
435 change significance.
436 * python/py-arch.c (archpy_disassemble): Comment on order of
437 conversion for integers and longs.
438
439 2013-10-03 Pedro Alves <palves@redhat.com>
440
441 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
442 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
443 functions. Always test for PTRACE_O_TRACESYSGOOD even if
444 PTRACE_O_TRACEFORK is not supported.
445 (linux_test_for_tracesysgood): New function.
446 (linux_test_for_tracefork): New function, factored out from
447 linux_check_ptrace_features, and also don't kill child_pid here.
448
449 2013-10-03 Tristan Gingold <gingold@adacore.com>
450
451 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
452 Remove verbose error reporting. Use detected state to
453 thread_set_state call.
454 (i386_darwin_dr_get): Fix return type. Remove verbose error
455 report.
456 Remove trailing spaces.
457
458 2013-10-02 Pedro Alves <palves@redhat.com>
459
460 * cp-valprint.c (cp_print_value_fields): Adjust calls to
461 val_print_optimized_out.
462 * jv-valprint.c (java_print_value_fields): Likewise.
463 * p-valprint.c (pascal_object_print_value_fields): Likewise.
464 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
465 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
466 new optimized out value.
467 * findvar.c (address_from_register): Likewise.
468 * frame.c (put_frame_register): Tweak error string to say the
469 register was not saved, rather than optimized out.
470 * infcmd.c (default_print_one_register_info): Adjust call to
471 val_print_optimized_out. Use value_of_register instead of
472 get_frame_register_value.
473 * mi/mi-main.c (output_register): Use value_of_register instead of
474 get_frame_register_value.
475 * valprint.c (valprint_check_validity): Likewise.
476 (val_print_optimized_out): New value parameter. If the value is
477 lval_register, print <not saved> instead.
478 (value_check_printable, val_print_scalar_formatted): Adjust calls
479 to val_print_optimized_out.
480 * valprint.h (val_print_optimized_out): New value parameter.
481 * value.c (struct value) <optimized_out>: Extend comment.
482 (error_value_optimized_out): New function.
483 (require_not_optimized_out): Use it. Use a different string for
484 lval_register values.
485 * value.h (error_value_optimized_out): New declaration.
486 * NEWS: Mention <not saved>.
487
488 2013-10-02 Joel Brobecker <brobecker@adacore.com>
489
490 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
491 strcmp to compare two symtab filenames.
492
493 2013-10-02 Joel Brobecker <brobecker@adacore.com>
494
495 * symtab.c (search_symbols_equal): Delete.
496 (sort_search_symbols_remove_dups): Replace call to
497 search_symbols_equal by call to compare_search_syms,
498 adjusting as necessary.
499
500 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
501
502 PR python/15579
503
504 * python/python.c: Document gdb.execute command in Python help.
505
506 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
507
508 * python/py-frame.c (frame_info_to_frame_object): Use
509 gdbpy_convert_exception. Clean up Python object on failure.
510
511 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
512
513 * python/lib/gdb/command/frame_filters.py
514 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
515 (ShowFrameFilterPriority.invoke): Ditto.
516
517 2013-10-01 Keith Seitz <keiths@redhat.com>
518
519 * linespec.c (struct ls_parser): Make 'saved_arg' const.
520 (parse_linespec): Make 'argptr' const.
521 Remove temporary cast of 'argptr' to const char **.
522 (decode_line_full): Pass const pointer to parse_linespec.
523 (decode_line_1): Likewise.
524 (decode_objc): Make local variable 'new_argptr' const.
525 (find_function_symbols): Remove temporary cast to char *
526 to find_imps.
527 * objc-lang.c (find_imps): Make argument 'method' const.
528 Return const.
529 * objc-lang.h (find_imps): Likewise.
530
531 2013-10-01 Keith Seitz <keiths@redhat.com>
532
533 * completer.c (skip_quoted_chars): Make all arguments const.
534 Return const.
535 (skip_quoted): Likewise.
536 * completer.h (skip_quoted_chars): Likewise.
537 (skip_quoted): Likewise.
538 * defs.h (skip_quoted): Remove duplicate declaration.
539 * jv-exp.y: Include completer.h.
540 (yylex): Remove unneccessary cast to char * fro skip_quoted.
541 * p-exp.y: Include completer.h.
542
543 2013-10-01 Keith Seitz <keiths@redhat.com>
544
545 * c-exp.y (parse_number): Make first argument const.
546 Make a copy of the input to manipulate.
547 (c_parse_escape): Make first argument const.
548 Make local variable 'tokptr' const.
549 (parse_string_or_char): Make first two arguments const.
550 (macro_original_text): Make const.
551 (lex_one_token): Make local variable 'tokstart' const.
552 Likewise for local variables named 'p'.
553 Cast away const for struct stoken (temporary).
554 * c-lang.h (c_parse_escpae): Make first argument const.
555 * cli/cli-cmds.c (echo_command): Make local variable 'p'
556 const.
557 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
558 var_string case.
559 * f-exp.y (parse_number): Make first argument const.
560 (match_string_literal): Make local variable 'tokstart'
561 const.
562 (yylex): Make local variable 'p' const.
563 Cast away const for struct stoken (temporary).
564 * go-exp.y (parse_number): Make first argument const.
565 (parse_string_or_char): Likewise.
566 Make local variable 'tokstart' const.
567 (lex_one_token): Likewise for numerous locals called 'p'.
568 Cast away const for struct stoken (temporary).
569 * jv-exp.y (parse_number): Make first argument const.
570 Make local variables 'tokstart' and 'tokptr' const.
571 Cast away const for call to skip_quoted (temporary).
572 (yylex): Make local variable 'p' const.
573 Cast away const for struct stoken (temporary).
574 * m2-exp.y (parse_number): Make local variable 'p' const.
575 (yylex): Likewise for 'tokstart'.
576 Cast away const for struct stoken (temporary).
577 Make local variable 'p' const.
578 * macroexp.c (get_character_constant): Pass a const string
579 to c_parse_escape.
580 (get_string_literal): Likewise.
581 (macro_expand_next): Make first argument const.
582 Cast away const for init_shared_buffer.
583 * macroexp.h (macro_expand_next): Make first argument const.
584 * p-exp.y (yylex): Make a local copy of 'lexptr'.
585 Pass a const string to c_parse_escape.
586 Make local variables 'p' and 'namestart' const.
587 * parse.c (lexptr): Make const.
588 (prev_lexptr): Likewise.
589 (find_template_name_end): Return const.
590 Make argument const, too.
591 (parse_exp_in_context): Make first argument const.
592 Remove the entire const_hack.
593 (parse_exp_in_context_1): Make first argument const.
594 * parser-defs.h (find_template_name_end): Return const.
595 Make argument const, too.
596 (lexptr): Make const.
597 (prev_lexptr): Likewise.
598 * utils.c (parse_escape): Make second argument const.
599 * utils.h (parse_escape): Likewise.
600
601 2013-10-01 Keith Seitz <keiths@redhat.com>
602
603 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
604 is now const.
605 (block_lookup): Make 'raw_name' and 'name' const.
606 * ada-lex.l (processString): Update for struct stoken.ptr.
607 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
608 (operator_stoken): Likewise.
609 (lex_one_token): Remove temporary cast to char * for
610 'yylval.sval.ptr'.
611 * f-exp.y (yylex): Likewise.
612 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
613 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
614 * go-exp.y (lex_one_token): Remove temporary cast to char * for
615 'yylval.sval.ptr'.
616 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
617 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
618 * linespec.c (struct ls_parser): Make 'stream' const.
619 (find_parameter_list_end): Make argument 'input' and local
620 variable 'p' const.
621 (linespec_lexer_lex_string): Make local variables 'start' and
622 'p' const.
623 Use skip_spaces_const instead of skip_spaces.
624 (linespec_lexer_peek_token): Make local variable 'saved_stream'
625 const.
626 (parse_linespec): Temporarily cast 'argptr' to const for
627 'parser->lexer.stream'.
628 * m2-exp.y (yylex): Remove temporary cast to char * for
629 'yylval.sval.ptr'.
630 * objc-lang.c (add_msglist): Make local variable 'p' const.
631 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
632 (exp : STRING): Make 'sp' const.
633 (parse_number): Make argument 'p' const.
634 * parser-defs.h (struct stoken): Make 'ptr' const.
635
636 2013-10-01 Doug Evans <dje@google.com>
637
638 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
639
640 2013-10-01 Yao Qi <yao@codesourcery.com>
641
642 * varobj.c (c_value_of_root): Remove declaration.
643 (cplus_value_of_root, java_value_of_root): Likewise.
644 (ada_value_of_root): Likewise.
645 (struct language_specific) <value_of_root>: Remove.
646 (languages): Update initialization.
647 (check_scope): Move earlier.
648 (c_value_of_root): Move earlier and rename to ...
649 (value_of_root_1): ... this.
650 (value_of_root): Caller update.
651 (cplus_value_of_root, java_value_of_root): Remove.
652 (ada_value_of_root): Remove.
653
654 2013-10-01 Yao Qi <yao@codesourcery.com>
655
656 * varobj.c (varobj_format_string): Remove "unknown".
657 (languages): Remove the first element.
658 * varobj.h (enum varobj_languages): Remove vlang_c.
659
660 2013-10-01 Yao Qi <yao@codesourcery.com>
661
662 * varobj.c (struct language_specific) <language>: Remove.
663 (languages): Update the initialization.
664
665 2013-10-01 Yao Qi <yao@codesourcery.com>
666
667 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
668 "solib-target.h". Include "windows-tdep.h".
669 (arm_wince_init_abi): Call windows_init_abi. Remove call to
670 set_solib_ops and set_gdbarch_has_dos_based_file_system.
671 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
672 windows-tdep.o to gdb_target_obs.
673
674 2013-10-01 Yao Qi <yao@codesourcery.com>
675
676 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
677 "solib-target.h".
678 (amd64_windows_init_abi): Don't call set_solib_ops and
679 set_gdbarch_iterate_over_objfiles_in_search_order. Call
680 windows_init_abi instead.
681 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
682 "solib-target.h".
683 (i386_cygwin_init_abi): Don't call set_solib_ops,
684 set_gdbarch_has_dos_based_file_system and
685 set_gdbarch_iterate_over_objfiles_in_search_order. Call
686 windows_init_abi instead.
687 * windows-tdep.c: Include "solib.h" and "solib-target.h".
688 (windows_init_abi): New function.
689 (windows_iterate_over_objfiles_in_search_order): Make it
690 static.
691 * windows-tdep.h (windows_init_abi): Declare.
692 (windows_iterate_over_objfiles_in_search_order): Remove
693 declaration.
694
695 2013-10-01 Jerome Guitton <guitton@adacore.com>
696
697 Checked in by Joel Brobecker <brobecker@adacore.com>
698 * system-gdbinit/elinos.py (get_elinos_environment): Return an
699 incomplete dictionnary instead of None in case of missing
700 environment variables.
701 (elinos_init): in case of an incomplete environment, best
702 effort to load system libraries instead of abort.
703
704 2013-10-01 Joel Brobecker <brobecker@adacore.com>
705
706 * ada-lang.c (ada_has_this_exception_support): Ignore
707 mst_solib_trampoline minimal symbols.
708
709 2013-09-30 Tristan Gingold <gingold@adacore.com>
710
711 * i386-darwin-nat.c (darwin_complete_target): Install methods for
712 hardware watchpoint.
713 (i386_darwin_dr_set): Support 32 and 64 bit states.
714 (i386_darwin_dr_get): Likewise.
715 (i386_darwin_dr_set_control): Make static.
716 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
717 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
718
719 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
720
721 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
722 Replace TIDGET with ptid_get_lwp.
723 Replace GET_LWP with ptid_get_lwp.
724 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
725 Replace BUILD_THREAD with ptid_build.
726 Replace BUILD_LWP with ptid_build.
727 Replace PIDGET with ptid_get_pid.
728 Replace TIDGET with ptid_get_lwp.
729 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
730 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
731 Replace TIDGET with ptid_get_lwp.
732 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
733 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
734 Replace TIDGET with ptid_get_lwp.
735 Replace GET_LWP with ptid_get_lwp.
736 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
737 * auxv.c: Likewise.
738 * breakpoint.c: Likewise.
739 * common/ptid.c (ptid_is_pid): Condense check for
740 null_ptid and minus_one_ptid.
741 (ptid_lwp_p): New function.
742 (ptid_tid_p): New function.
743 * common/ptid.h: Update comments for accessors.
744 (ptid_lwp_p): New prototype.
745 (ptid_tid_p): New prototype.
746 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
747 * gcore.c: Replace PIDGET with ptid_get_pid.
748 * gdbthread.h: Likewise.
749 * gnu-nat.c: Likewise.
750 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
751 Replace TIDGET with ptid_get_lwp.
752 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
753 * hppanbsd-nat.c: Likewise.
754 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
755 Replace TIDGET with ptid_get_lwp.
756 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
757 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
758 * infcmd.c: Likewise.
759 * inferior.h: Likewise.
760 * inflow.c: Likewise.
761 * infrun.c: Likewise.
762 * linux-fork.c: Likewise.
763 * linux-nat.c: Replace PIDGET with ptid_get_pid.
764 Replace GET_PID with ptid_get_pid.
765 Replace is_lwp with ptid_lwp_p.
766 Replace GET_LWP with ptid_get_lwp.
767 Replace BUILD_LWP with ptid_build.
768
769 2013-09-28 Mike Frysinger <vapier@gentoo.org>
770
771 * common/linux-btrace.c: Move sys/syscall.h out of the
772 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
773 Also check for SYS_perf_event_open before attempting to buid.
774
775 2013-09-27 Doug Evans <dje@google.com>
776
777 * dwarf2read.c (dwarf2_section_info): Add comment.
778 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
779 All uses updated.
780 (dwarf2_section_empty_p): Rename arg from "info" to "section".
781 (dwarf2_read_section): Delete unused local "header". Add section
782 name to error message.
783 (create_dwo_in_dwp): Tweak comment.
784 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
785
786 * dwarf2read.c (die_reader_specs): Tweak comment.
787 (get_section_bfd_owner, get_section_bfd_section): New functions.
788 (get_section_name, get_section_file_name): New functions.
789 (get_section_id, get_section_flags): New functions.
790 (*): Use new functions to access section fields.
791
792 * dwarf2read.c (struct dwo_file): Add/tweak comments.
793 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
794 arg "htab". All callers updated.
795 (create_debug_types_hash_table): Remove redundant copy of
796 abbrev_section.
797 (create_dwo_in_dwp): Tweak comments.
798 (read_str_index): Tweak comment. Record dwarf form name in static
799 local.
800
801 2013-09-27 Pedro Alves <palves@redhat.com>
802
803 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
804 (remote_filename_p): Add comment.
805 * remote.c (remote_filename_p): Adjust to use
806 REMOTE_SYSROOT_PREFIX.
807 * solib.c (solib_find): When deciding whether we need to add a
808 directory separator, check whether the sysroot is "remote:"
809 instead of checking whether the patch has a drive spec. Add
810 comments.
811
812 2013-09-27 Pedro Alves <palves@redhat.com>
813
814 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
815 Delete fields.
816 (remote_parse_stop_reply): Adjust, setting event->ws.kind
817 directly.
818
819 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
820
821 Fix set debug frame output.
822 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
823 SENTINEL_FRAME entry lower to match enum frame_type order.
824
825 2013-09-26 Pierre Muller <muller@sourceware.org>
826
827 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
828 AMD64_R15_REGNUM when a register index is expected.
829 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
830 Substitute in array.
831 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
832 (amd64_push_arguments): Substitute in integer_regnum array.
833
834 2013-09-25 Doug Evans <dje@google.com>
835
836 * objfiles.c (allocate_objfile): Move comment to better place.
837
838 New option "set debug symfile on".
839 * NEWS: Mention "set debug symfile".
840 * Makefile.in (SFILES): Add symfile-debug.c.
841 (COMMON_OBS): Add symfile-debug.o.
842 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
843 objfile's symbol functions.
844 * objfiles.h (objfile_set_sym_fns): Declare.
845 * symfile-debug.c: New file.
846 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
847 objfile's symbol functions.
848 (reread_symbols): Ditto.
849
850 * symfile.h (struct sym_fns): Delete member "sym_flavour".
851 All uses updated.
852 (add_symtab_fns): Update prototype.
853 * symfile.c (sym_fns_ptr): Delete. Replace with ...
854 (registered_sym_fns): ... this.
855 (symtab_fns): Update.
856 (add_symtab_fns): New arg "flavour". All callers updated.
857 (find_sym_fns): Rewrite to use new sym_fns registry.
858
859 * symfile.h (struct sym_fns): Add "objfile" argument to
860 sym_read_linetable. All uses updated.
861
862 * symtab.c (domain_name, search_domain_name): New functions.
863 * symtab.h (domain_name, search_domain_name): Declare.
864
865 * symfile.h (struct quick_symbol_functions): Reorg arg list of
866 map_matching_symbols so objfile is first. All uses updated.
867 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
868 * psymtab.c (map_matching_symbols_psymtab): Update signature.
869
870 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
871
872 PR shlibs/8882
873 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
874 link map entries.
875
876 2013-09-24 Doug Evans <dje@google.com>
877
878 * objfiles.c (free_objfile): Move comment.
879
880 2013-09-24 Joel Brobecker <brobecker@adacore.com>
881
882 * ada-exp.y (string_to_operator): Delete.
883 (dummy_string_to_ada_operator): Delete.
884
885 2013-09-24 Joel Brobecker <brobecker@adacore.com>
886
887 Revert:
888 * i386-tdep.h (enum amd64_reg_class): New, moved here from
889 amd64-tdep.c.
890 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
891 call_dummy_integer_regs, and classify.
892 * amd64-tdep.h (amd64_classify): Add declaration.
893 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
894 (amd64_reg_class): Delete, moved to i386-tdep.h.
895 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
896 Replace call to amd64_classify by call to tdep->classify.
897 (amd64_push_arguments): Get the list of registers to use for
898 passing integer parameters from the gdbarch tdep structure,
899 rather than using a hardcoded one. Replace calls to amd64_classify
900 by calls to tdep->classify.
901 (amd64_push_dummy_call): Get the register number used for
902 the "hidden" argument from tdep->call_dummy_integer_regs.
903 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
904 and tdep->call_dummy_integer_regs. Set tdep->classify.
905
906 2013-09-24 Joel Brobecker <brobecker@adacore.com>
907
908 Revert:
909 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
910 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
911 where tdep->memory_args_by_pointer is non-zero.
912
913 2013-09-24 Joel Brobecker <brobecker@adacore.com>
914
915 Revert:
916 * i386-tdep.h (struct gdbarch_tdep): Add new field
917 integer_param_regs_saved_in_caller_frame.
918 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
919 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
920
921 2013-09-24 Joel Brobecker <brobecker@adacore.com>
922
923 * amd64-windows-tdep.c: #include "value.h"
924 (amd64_windows_classify): Delete.
925 (amd64_windows_passed_by_integer_register)
926 (amd64_windows_passed_by_xmm_register)
927 (amd64_windows_passed_by_pointer)
928 (amd64_windows_adjust_args_passed_by_pointer)
929 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
930 (amd64_windows_push_dummy_call): New functions.
931 (amd64_windows_init_abi): Remove setting of
932 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
933 tdep->classify, tdep->memory_args_by_pointer and
934 tdep->integer_param_regs_saved_in_caller_frame.
935 Add call to set_gdbarch_push_dummy_call.
936
937 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
938
939 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
940 objfile->original_name.
941
942 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
943
944 Pass down original filename for objfile.
945 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
946 * elfread.c (elf_symfile_read): Likewise.
947 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
948 longer set ORIGINAL_NAME.
949 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
950 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
951 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
952 symbol_file_add_from_bfd call.
953 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
954 (macho_check_dsym): Add parameter filenamep. Change function comment.
955 Set *filenamep.
956 (macho_symfile_read): New variable dsym_filename. Update
957 macho_check_dsym call. Use it for symbol_file_add_separate.
958 * objfiles.c (allocate_objfile): Add parameter name. New comment for
959 it. Use it for objfile->original_name.
960 (objfile_name): Return OBFD's filename, if available.
961 * objfiles.h (allocate_objfile): Add new parameter name.
962 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
963 * symfile-mem.c (symbol_file_add_from_memory): Update
964 symbol_file_add_from_bfd call.
965 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
966 comment for it.
967 (symbol_file_add_with_addrs): New parameter name, add function comment
968 for it. Remove variable name. Update allocate_objfile call.
969 (symbol_file_add_separate): New parameter name, add function comment
970 for it. Update symbol_file_add_with_addrs call.
971 (symbol_file_add_from_bfd): New parameter name. Update
972 symbol_file_add_with_addrs call.
973 (symbol_file_add): Update symbol_file_add_from_bfd call.
974 (reread_symbols): New variable original_name. Save
975 objfile->original_name by it.
976 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
977 second parameter.
978
979 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
980
981 Code cleanup: Add objfile_name accessor function.
982 * ada-lang.c (is_known_support_routine): Use objfile_name.
983 * auto-load.c (source_gdb_script_for_objfile)
984 (auto_load_objfile_script): Likewise.
985 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
986 * dbxread.c (dbx_symfile_read): Likewise.
987 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
988 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
989 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
990 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
991 (lookup_dwp_signatured_type, lookup_dwo_unit)
992 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
993 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
994 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
995 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
996 (dwarf2_record_block_ranges, read_common_block, read_typedef)
997 (read_subrange_type, load_partial_dies, read_partial_die)
998 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
999 (die_containing_type, build_error_marker_type, lookup_die_type)
1000 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1001 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1002 (get_DW_AT_signature_type, write_psymtabs_to_index)
1003 (save_gdb_index_command): Likewise.
1004 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1005 Likewise.
1006 * expprint.c (dump_subexp_body_standard): Likewise.
1007 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1008 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1009 original_name.
1010 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1011 obj_name, use objfile_name for it, use the variable.
1012 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1013 Use objfile_name.
1014 * machoread.c (macho_symtab_read, macho_check_dsym)
1015 (macho_symfile_relocate): Likewise.
1016 * maint.c (maintenance_translate_address): Likewise.
1017 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1018 * minsyms.c (install_minimal_symbols): Likewise.
1019 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1020 original_name.
1021 (filter_overlapping_sections): Use objfile_name.
1022 (objfile_name): New function.
1023 * objfiles.h (struct objfile): Rename field name to original_name.
1024 (objfile_name): New prototype.
1025 * printcmd.c (sym_info, address_info): Use objfile_name.
1026 * probe.c (parse_probes, collect_probes, compare_probes)
1027 (info_probes_for_ops): Likewise.
1028 * progspace.c (clone_program_space): Likewise.
1029 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1030 (maintenance_info_psymtabs): Likewise.
1031 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1032 (source_section_scripts): Likewise.
1033 * python/py-objfile.c (objfpy_get_filename): Likewise.
1034 * python/py-progspace.c (pspy_get_filename): Likewise.
1035 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1036 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1037 * solib.c (solib_read_symbols): Likewise.
1038 * stabsread.c (scan_file_globals): Likewise.
1039 * stap-probe.c (handle_stap_probe): Likewise.
1040 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1041 (find_separate_debug_file_by_debuglink): Likewise.
1042 (reread_symbols): Likewise. Use the objfile field name renamed to
1043 original_name.
1044 (allocate_symtab): Use objfile_name.
1045 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1046 (dump_objfile, dump_msymbols, dump_symtab_1)
1047 (maintenance_print_msymbols, maintenance_print_objfiles)
1048 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1049 * target.c (target_translate_tls_address, target_info): Likewise.
1050 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1051 objfile_name.
1052
1053 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1054
1055 Code cleanup.
1056 * probe.c (parse_probes): Rename variable objfile_name to
1057 objfile_namestr.
1058
1059 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1060
1061 Remove solib-sunos.c.
1062 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1063 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1064 * objfiles.c (rt_common_objfile): Remove.
1065 (free_objfile): Remove rt_common_objfile comparison.
1066 * objfiles.h (rt_common_objfile): Remove.
1067 * solib-sunos.c: Remove.
1068 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1069
1070 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1071
1072 Remove a.out NetBSD and OpenBSD hosts.
1073 * NEWS (Removed native configurations): New.
1074 * config/arm/nbsdaout.mh: Remove.
1075 * config/i386/nbsdaout.mh: Remove.
1076 * config/i386/obsdaout.mh: Remove.
1077 * config/m68k/nbsdaout.mh: Remove.
1078 * config/sparc/nbsdaout.mh: Remove.
1079 * config/vax/nbsdaout.mh: Remove.
1080 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1081 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1082 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1083 error.
1084 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1085 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1086 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1087
1088 2013-09-23 Tom Tromey <tromey@redhat.com>
1089
1090 * linespec.c (struct minsym_and_objfile): Remove.
1091 (minsym_and_objfile_d): Remove.
1092 (struct linespec, struct collect_info, linespec_parse_basic)
1093 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1094 (compare_msymbols, find_method, find_function_symbols)
1095 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1096 (add_minsym, search_minsyms_for_name): Update.
1097
1098 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1099
1100 * regcache.c: Add include of valprint.h.
1101 (dump_endian_bytes): Delete.
1102 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1103
1104 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1105
1106 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1107
1108 2013-09-19 Pedro Alves <palves@redhat.com>
1109
1110 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1111 breakpoints.
1112
1113 2013-09-19 Pedro Alves <palves@redhat.com>
1114 Thomas Schwinge <thomas@codesourcery.com>
1115 Yue Lu <hacklu.newborn@gmail.com>
1116
1117 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1118 Take a gdb_byte pointer instead of a char pointer.
1119
1120 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1121 gnu_xfer_partial helper.
1122 (gnu_xfer_partial): New function.
1123 (gnu_target): Don't install a deprecated_xfer_memory hook.
1124 Install a to_xfer_partial hook.
1125
1126 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1127
1128 Constification.
1129 * main.c (captured_main): Replace catch_command_errors by
1130 catch_command_errors_const. Twice.
1131 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1132 (symbol_file_add): Make name parameter const.
1133 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1134 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1135 variable name. Change their usage accordingly.
1136 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1137 const.
1138 (symbol_file_add_main): Make args parameter const.
1139
1140 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1141 Ulrich Weigand <uweigand@de.ibm.com>
1142
1143 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1144 of c_value member.
1145 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1146
1147 2013-09-18 Pedro Alves <palves@redhat.com>
1148 Yue Lu <hacklu.newborn@gmail.com>
1149
1150 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1151 (gnu_create_inferior)
1152 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1153 (set_sig_thread_cmd): Use the lwpid field of ptids to
1154 store/extract thread ids instead of the tid field.
1155 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1156
1157 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1158
1159 * infcmd.c (default_print_one_register_info): Add detection of
1160 optimized out values.
1161 (default_print_registers_info): Switch to using
1162 get_frame_register_value.
1163
1164 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1165
1166 * infrun.c (handle_inferior_event): Check if we know the
1167 function start address before setting a resume breakpoint.
1168
1169 2013-09-18 Pedro Alves <palves@redhat.com>
1170
1171 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1172 minus_one_ptid instead of looking at the ptid's tid field and
1173 comparing that to -1.
1174
1175 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1176
1177 * main.h (get_gdb_program_name): Remove extra whitespace.
1178
1179 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1180
1181 * main.h (get_gdb_program_name): Add declaration.
1182 * main.c (get_gdb_program_name): Add definition.
1183
1184 2013-09-17 Doug Evans <dje@google.com>
1185
1186 * dwarf2read.c: Move definitions of complaint functions to after
1187 forward declarations of local functions.
1188
1189 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1190 Pedro Alves <palves@redhat.com>
1191
1192 PR gdb/11568
1193 * breakpoint.c (remove_threaded_breakpoints): New function.
1194 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1195 as thread_exit observer.
1196
1197 2013-09-17 Pedro Alves <palves@redhat.com>
1198
1199 PR gdb/15911
1200 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1201 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1202 * corelow.c (core_open):
1203 * frame.h (print_stack_frame, print_frame_info): New
1204 'set_current_sal' parameter.
1205 * infcmd.c (finish_command, kill_command): Adjust call to
1206 print_stack_frame.
1207 * inferior.c (inferior_command): Likewise.
1208 * infrun.c (normal_stop): Likewise.
1209 * linux-fork.c (linux_fork_context): Likewise.
1210 * record-full.c (record_full_goto_entry, record_full_restore):
1211 Likewise.
1212 * remote-mips.c (common_open): Likewise.
1213 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1214 Use it.
1215 (print_frame_info): New 'set_current_sal' parameter. Set the last
1216 displayed sal depending on the new paremeter instead of looking at
1217 print_what.
1218 (backtrace_command_1, select_and_print_frame, frame_command)
1219 (current_frame_command, up_command, down_command): Adjust call to
1220 print_stack_frame.
1221 * thread.c (print_thread_info, restore_selected_frame)
1222 (do_captured_thread_select): Adjust call to print_stack_frame.
1223 * tracepoint.c (tfind_1): Likewise.
1224 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1225 (mi_cmd_stack_info_frame): Likewise.
1226 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1227 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1228
1229 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1230
1231 * value.c (isvoid_internal_fn): Replace "parameter" with
1232 "argument".
1233
1234 2013-09-16 Stan Shebs <stan@codesourcery.com>
1235
1236 * README: Update references to writing code for GDB.
1237 * configure.ac (build_warnings): Remove obsolete comment.
1238 * configure: Regenerate.
1239 * gdbarch.sh: Remove references to gdbint.texinfo.
1240 * gdbarch.h: Regenerate.
1241 * gdbtypes.c (objfile_type): Remove comments referencing internals
1242 manual and D10V.
1243
1244 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1245
1246 * NEWS: Mention new convenience function $_isvoid.
1247 * value.c (isvoid_internal_fn): New function.
1248 (_initialize_values): Add new convenience function $_isvoid.
1249
1250 2013-09-16 Pierre Muller <muller@sourceware.org>
1251
1252 * arm-linux-tdep.c: Add "elf/common.h" header.
1253 Remove AT_HWCAP macro definintion as it is provided in
1254 added include file.
1255 * s390-tdep.c: Remove system header <elf.h>
1256 Add "elf/common.h" header for AT_HWCAP definition.
1257 (s390_core_read_description): Use correct CORE_ADDR
1258 for hwcap local variable used as third parameter
1259 of function target_auxv_search.
1260
1261 2013-09-14 Pierre Muller <muller@sourceware.org>
1262 Tom Tromey <tromey@redhat.com>
1263 Pedro Alves <palves@redhat.com>
1264
1265 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1266 mode if operating system doesn't know O_CLOEXEC.
1267
1268 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1269
1270 Code cleanup.
1271 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1272 inner block.
1273
1274 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1275
1276 * NEWS: Mention TDB support.
1277 * features/s390-tdb.xml: New file.
1278 * features/s390-te-linux64.xml: New file.
1279 * features/s390x-te-linux64.xml: New file.
1280 * features/Makefile (WHICH): Add new tdescs above.
1281 (s390-te-linux64-expedite): Set.
1282 (s390x-te-linux64-expedite): Set.
1283 * features/s390-te-linux64.c: New file (generated).
1284 * features/s390x-te-linux64.c: New file (generated).
1285 * regformats/s390-te-linux64.dat: New file (generated).
1286 * regformats/s390x-te-linux64.dat: New file (generated).
1287 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1288 (HWCAP_S390_TE): Likewise.
1289 (S390_TDB_DWORD0_REGNUM): Likewise.
1290 (S390_TDB_DWORD0_REGNUM): Likewise.
1291 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1292 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1293 (S390_TDB_ATIA_REGNUM): Likewise.
1294 (S390_TDB_R0_REGNUM): Likewise.
1295 (S390_TDB_R1_REGNUM): Likewise.
1296 (S390_TDB_R2_REGNUM): Likewise.
1297 (S390_TDB_R3_REGNUM): Likewise.
1298 (S390_TDB_R4_REGNUM): Likewise.
1299 (S390_TDB_R5_REGNUM): Likewise.
1300 (S390_TDB_R6_REGNUM): Likewise.
1301 (S390_TDB_R7_REGNUM): Likewise.
1302 (S390_TDB_R8_REGNUM): Likewise.
1303 (S390_TDB_R9_REGNUM): Likewise.
1304 (S390_TDB_R10_REGNUM): Likewise.
1305 (S390_TDB_R11_REGNUM): Likewise.
1306 (S390_TDB_R12_REGNUM): Likewise.
1307 (S390_TDB_R13_REGNUM): Likewise.
1308 (S390_TDB_R14_REGNUM): Likewise.
1309 (S390_TDB_R15_REGNUM): Likewise.
1310 (S390_NUM_REGS): Increase.
1311 (S390_IS_TDBREGSET_REGNUM): New macro.
1312 (s390_regmap_tdb): Declare.
1313 (s390_sizeof_tdbregset): Define.
1314 (tdesc_s390_te_linux64): Declare.
1315 (tdesc_s390x_te_linux64): Likewise.
1316 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1317 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1318 (s390_regmap_tdb): New regmap.
1319 (s390_supply_tdb_regset): New function.
1320 (s390_tdb_regset): New regset.
1321 (s390_linux64v2_regset_sections): Add TDB regset to list.
1322 (s390x_linux64v2_regset_sections): Likewise.
1323 (s390_regset_from_core_section): Recognize TDB core note section.
1324 (s390_core_read_description): If HWCAP indicates TE support,
1325 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1326 (s390_gdbarch_init): Handle TDB regset.
1327 (_initialize_s390_tdep): Initialize new tdescs.
1328 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1329 (have_regset_tdb): New variable.
1330 (s390_native_supply): Support register invalidation.
1331 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1332 (check_regset): Treat ENODATA as "regset exists".
1333 (s390_linux_fetch_inferior_registers): Add TDB.
1334 (s390_read_description): Check for TDB existence and select
1335 appropriate tdesc.
1336 * gdbserver/Makefile.in (clean): Add removal of new makefile
1337 targets.
1338 (s390-te-linux64.c): New makefile target.
1339 (s390x-te-linux64.c): Likewise.
1340 * gdbserver/configure.srv (srv_regobj): Append new objects
1341 s390-te-linux64.o and s390x-te-linux64.o.
1342 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1343 s390x-te-linux64.xml, and s390-tdb.xml.
1344 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1345 declaration.
1346 (tdesc_s390_te_linux64): Likewise.
1347 (init_registers_s390x_te_linux64): Likewise.
1348 (tdesc_s390x_te_linux64): Likewise.
1349 (s390_check_regset): Treat ENODATA as "regset exists".
1350 (s390_arch_setup): Add TDB regset support.
1351 (initialize_low_arch): Initialize registers for new tdescs.
1352
1353 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1354
1355 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1356 (S390_IS_FPREGSET_REGNUM): New macro.
1357 * s390-tdep.c (s390_dwarf_regmap): Make const.
1358 (regnum_is_gpr_full): New function for replacing repeated code.
1359 (s390_pseudo_register_name): Use it.
1360 (s390_pseudo_register_type): Likewise.
1361 (s390_pseudo_register_read): Likewise.
1362 (s390_pseudo_register_write): Likewise.
1363 (s390_unwind_pseudo_register): Likewise.
1364 (s390_regmap_gregset): New format for regmap.
1365 (s390x_regmap_gregset): Likewise.
1366 (s390_regmap_fpregset): Likewise.
1367 (s390_regmap_upper): Likewise.
1368 (s390_regmap_last_break): Likewise.
1369 (s390_regmap_system_call): Likewise.
1370 (s390_supply_regset): Adjust to new regmap format.
1371 (s390_collect_regset): Likewise.
1372 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1373 (s390_native_collect): Likewise.
1374 (supply_gregset): Likewise.
1375 (fill_gregset): Likewise.
1376 (supply_fpregset): Likewise.
1377 (fill_fpregset): Likewise.
1378 (fetch_regset): Likewise.
1379 (store_regset): Likewise.
1380 (s390_linux_fetch_inferior_registers): Likewise.
1381 (s390_linux_fetch_inferior_registers): Likewise.
1382
1383 2013-09-12 Andrew Pinski <apinski@cavium.com>
1384
1385 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1386
1387 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1388
1389 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1390
1391 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1392
1393 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1394
1395 2013-09-06 Pedro Alves <palves@redhat.com>
1396
1397 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1398 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1399 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1400 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1401 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1402 gdb_stdlog.
1403
1404 2013-09-06 Pedro Alves <palves@redhat.com>
1405
1406 * remote-sim.c (dump_mem): Constify buf parameter.
1407 gdbsim_xfer_inferior_memory): Rename to ...
1408 (gdbsim_xfer_memory): ... this. Adjust interface as
1409 target_xfer_partial helper.
1410 (gdbsim_xfer_partial): New function.
1411 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1412 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1413
1414 2013-09-06 Pedro Alves <palves@redhat.com>
1415
1416 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1417 host_address_to_string, and send debug output to gdb_stdlog.
1418
1419 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1420
1421 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1422 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1423 gdb_target_obs for cris target.
1424 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1425 (cris_gdbarch_init): Move calls to
1426 set_gdbarch_fetch_tls_load_module_address and
1427 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1428 Add call to gdbarch_init_osabi.
1429 * cris-linux-tdep.c: New file.
1430 * cris-tdep.h: New file.
1431
1432 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1433
1434 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1435 to deprecated_init_ui_hook.
1436
1437 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1438
1439 * cli/cli-interp.c (_initialize_cli_interp): Add a
1440 command_loop_proc to interp_procs.
1441 * event-top.c (cli_command_loop): Change signature to match
1442 interp_command_loop_ftype.
1443 * event-top.h (cli_command_loop): Same.
1444 * interps.c (interp_new): Require every interpreter to have a
1445 command_loop_proc.
1446 (current_interp_command_loop): Just call the command_loop_proc on
1447 the current interpreter.
1448 * tui/tui-interp.c (_initialize_tui_interp): Add a
1449 command_loop_proc to interp_procs.
1450
1451 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1452
1453 * cris-tdep.c (cris_gdbarch_init): Add call to
1454 get_gdbarch_fetch_tls_load_module_address.
1455
1456 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1457
1458 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1459 (cris_elf_gregset_t): Rename from elf_gregset_t.
1460 (crisv32_elf_gregset_t): Adjust.
1461 (cris_supply_gregset, fetch_core_registers): Adjust.
1462
1463 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1464
1465 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1466
1467 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1468
1469 * defs.h (deprecated_command_loop_hook): Remove, including
1470 references in comments.
1471 * interps.c (current_interp_command_loop): No longer use
1472 deprecated_command_loop_hook.
1473 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1474 setup.
1475 * top.c (deprecated_command_loop_hook): Remove.
1476
1477 2013-09-05 Pedro Alves <palves@redhat.com>
1478
1479 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1480 local is now int instead of ULONGEST. Print it with %d
1481 instead of paddress.
1482
1483 2013-09-05 Tristan Gingold <gingold@adacore.com>
1484
1485 * MAINTAINERS: Remove avr maintainership.
1486
1487 2013-09-05 Pedro Alves <palves@redhat.com>
1488
1489 * findvar.c (value_of_register): Rework in terms of
1490 value_of_register_lazy.
1491
1492 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1493
1494 * symfile.c (add_symbol_file_command): Remove trailing
1495 whitespaces and blank line after comment.
1496
1497 2013-09-05 Pedro Alves <palves@redhat.com>
1498
1499 * tui/tui-regs.c (tui_register_format): Don't look at the
1500 register's name here. Return string representing register
1501 value instead of storing it in the data element.
1502 (tui_get_register): Compare register string representations
1503 instead of register value states and contents.
1504
1505 2013-09-05 Pedro Alves <palves@redhat.com>
1506
1507 PR tui/15933
1508 * tui/tui-regs.c (tui_show_registers): Show registers of the
1509 selected frame, not the current frame.
1510
1511 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1512
1513 * MAINTAINERS (Write After Approval): Add myself to the list.
1514
1515 2013-09-04 Doug Evans <dje@google.com>
1516
1517 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1518 (queue_and_load_dwo_tu): New function.
1519 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1520 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1521 Make dependent_cu optional.
1522 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1523 and an older .gdb_index is in use, queue and load all its TUs too.
1524
1525 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1526
1527 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1528 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1529 variable search_flags.
1530 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1531 (OPF_RETURN_REALPATH): ... here.
1532 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1533 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1534 call. Twice.
1535 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1536 openp call.
1537 * solib.c (solib_find): Likewise. Four times.
1538 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1539 in the function comment and for the realpath_fptr variable.
1540 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1541 (find_and_open_source): Likewise. Twice.
1542 * symfile.c (symfile_bfd_open): Likewise, also twice.
1543
1544 2013-09-04 Doug Evans <dje@google.com>
1545
1546 * progspace.c (save_current_space_and_thread): Remove unnecessary
1547 call to save_current_inferior.
1548
1549 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1550
1551 * sh64-tdep.c (sh64_do_register): Return after printing message
1552 about unavailable register contents.
1553
1554 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1555 Pedro Alves <palves@redhat.com>
1556
1557 * symfile.c (add_symbol_file_command): Error out on unknown
1558 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1559 options and collapse into single conditional branch.
1560
1561 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1562
1563 * inf-child.c (inf_child_follow_fork): New parameter
1564 detach_fork.
1565 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1566 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1567 * inferior.h (detach_fork): Remove.
1568 * infrun.c (detach_fork): Adjust comment and make it
1569 static.
1570 (follow_fork): Pass detach_fork parameter to
1571 target_follow_fork.
1572 * linux-nat.c (linux_child_follow_fork): New parameter
1573 detach_fork.
1574 * target.c (target_follow_fork): New parameter detach_fork.
1575 Pass detach_fork as parameter and print its value.
1576 * target.h (struct target_ops) <to_follow_fork>: New int
1577 parameter.
1578 (target_follow_fork): New parameter detach_fork.
1579
1580 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1581
1582 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1583 Replace sec->bfd by sec->the_bfd_section->owner.
1584
1585 2013-09-03 Yao Qi <yao@codesourcery.com>
1586
1587 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1588 from linux_has_shared_address_space.
1589 (linux_has_shared_address_space): Call linux_is_uclinux.
1590 * linux-tdep.h (linux_is_uclinux): Declare.
1591 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1592 linux_is_uclinux.
1593
1594 2013-09-03 Yao Qi <yao@codesourcery.com>
1595
1596 * config/djgpp/fnchange.lst: Remove entry of
1597 i386-interix-nat.c and i386-interix-tdep.c.
1598 * configure.ac: Remove '*-*-interix*'.
1599 * configure: Re-generated.
1600 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1601 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1602 obsolete comments.
1603 * osabi.c (gdb_osabi_names): Remove "Interix".
1604
1605 2013-09-03 Yao Qi <yao@codesourcery.com>
1606
1607 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1608
1609 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1610
1611 * record.h (record_print_flag) <record_print_src_line,
1612 record_print_insn_range>: Rename into ...
1613 (record_print_flag) <record_print_src_line,
1614 record_print_insn_range>: ... this. Update all users.
1615
1616 2013-09-02 Pierre Muller <muller@sourceware.org>
1617
1618 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1619 error code.
1620
1621 2013-09-02 Pierre Muller <muller@sourceware.org>
1622
1623 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1624 by use of plongest function.
1625
1626 2013-09-02 Tristan Gingold <gingold@adacore.com>
1627
1628 * NEWS: Add entry mentioning support for native Windows x64
1629 SEH data.
1630
1631 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1632 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1633 (struct amd64_windows_frame_cache): New struct.
1634 (amd64_windows_w2gdb_regnum): New global.
1635 (pc_in_range, amd64_windows_frame_decode_epilogue)
1636 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1637 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1638 (amd64_windows_frame_this_id): New functions.
1639 (amd64_windows_frame_unwind): New static global.
1640 (amd64_windows_skip_prologue): New function.
1641 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1642 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1643 with amd64_windows_skip_prologue.
1644
1645 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1646
1647 GDB 7.6.1 released.
1648
1649 2013-08-30 Pedro Alves <palves@redhat.com>
1650
1651 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1652 SRC_AND_LOC.
1653
1654 2013-08-30 Pedro Alves <palves@redhat.com>
1655
1656 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1657 warning text.
1658
1659 2013-08-30 Pedro Alves <palves@redhat.com>
1660
1661 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1662 Adjust arguments to print_stack_frame.
1663
1664 2013-08-30 Pedro Alves <palves@redhat.com>
1665
1666 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1667
1668 2013-08-30 Pedro Alves <palves@redhat.com>
1669
1670 * frame.h (show_and_print_stack_frame): Delete declaration.
1671
1672 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1673
1674 PR python/15461
1675
1676 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1677 (archpy_name): Check for valid architecture.
1678 (archpy_disassemble): Ditto.
1679
1680 2013-08-29 Joel Brobecker <brobecker@adacore.com>
1681
1682 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1683 instead of "long long" in call to ptrace64.
1684
1685 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
1686
1687 * mi/mi-interp.c (mi_command_loop): Change signature to match
1688 interp_command_loop_ftype.
1689 (mi1_command_loop): Remove.
1690 (mi2_command_loop): Remove.
1691 (mi3_command_loop): Remove.
1692 (mi_interpreter_resume): Remove setting of
1693 deprecated_command_loop_hook.
1694 (_initialize_mi_interp): Set mi_command_loop as the command loop
1695 callback.
1696
1697 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1698
1699 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1700 value_type.
1701
1702 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1703
1704 * value.c (allocate_value_contents): Make static.
1705 * value.h (allocate_value_contents): Remove prototype.
1706
1707 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1708
1709 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1710 of assembling value via allocate_value_lazy and attribute setter.
1711 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1712 assembling value via allocate_value_lazy and attribute setter.
1713 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1714 assembling value via allocate_value_lazy and attribute setter.
1715
1716 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1717
1718 * value.c (value_from_contents_and_address): Replace allocate_value and
1719 memcpy with value_from_contents.
1720
1721 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1722
1723 * python/py-framefilter.c (py_print_frame): Remove usage of
1724 PyString_AsString. Use python_string_to_host_string instead.
1725 Refactor function to work with a string as a new allocation
1726 instead of a pointer.
1727 (py_print_frame): Ditto.
1728 * python/lib/gdb/frames.py (return_list): Cain iterators together
1729 instead of adding them as a list.
1730 (_sort_list): Call return_list, and remove duplicate code.
1731 (execute_frame_filters): Convert iterator to a list with list().
1732 * python/lib/gdb/command/frame_filters.py
1733 (SetFrameFilterPriority._set_filter_priority): Convert priority
1734 attribute to an integer.
1735 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1736 wrapper function __next__.
1737 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1738 define as "str".
1739
1740 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1741
1742 PR python/15752
1743 * python/py-framefilter.c (apply_frame_filter): Check
1744 gdb_python_initialized. Exit if the Python frame-filter code
1745 cannot be initialized.
1746
1747 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1748
1749 PR cli/15842
1750 * top.c (print_gdb_version): Remove erroneous newline after help
1751 text.
1752
1753 2013-08-29 Yao Qi <yao@codesourcery.com>
1754
1755 * varobj.c (install_dynamic_child): Remove trailing space.
1756 Add one blank line after variable declaration.
1757
1758 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1759
1760 PR gdb/15415
1761 * corefile.c (get_exec_file): Use exec_filename.
1762 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1763 * exec.c (exec_close): Free EXEC_FILENAME.
1764 (exec_file_attach): New variable canonical_pathname. Use
1765 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1766 EXEC_FILENAME.
1767 * exec.h (exec_filename): New.
1768 * inferior.c (print_inferior, inferior_command): Use
1769 PSPACE_EXEC_FILENAME.
1770 * mi/mi-main.c (print_one_inferior): Likewise.
1771 * progspace.c (clone_program_space, print_program_space): Likewise.
1772 * progspace.h (struct program_space): New field pspace_exec_filename.
1773 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1774 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1775
1776 2013-08-28 Will Newton <will.newton@linaro.org>
1777
1778 * common/linux-ptrace.c: Include stdint.h unconditionally.
1779
1780 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1781
1782 Code cleanup.
1783 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1784
1785 2013-08-28 Yao Qi <yao@codesourcery.com>
1786 Pedro Alves <palves@redhat.com>
1787
1788 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1789 instead of stdio_fileopen.
1790 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1791 .Call stderr_fileopen instead of stdio_fileopen.
1792 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1793 [__MINGW32__] (stderr_file_fputs): New function.
1794 (stderr_fileopen): New function.
1795 * ui-file.h (stderr_fileopen): Declare.
1796
1797 2013-08-27 Doug Evans <dje@google.com>
1798
1799 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1800 (struct dwarf2_per_cu_data): Ditto.
1801 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1802 (process_imported_unit_die): Ditto.
1803 (follow_die_sig_1): Simplify assert.
1804
1805 2013-08-27 Pedro Alves <palves@redhat.com>
1806
1807 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1808 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1809 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1810 windows_xfer_memory directly.
1811 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1812
1813 2013-08-27 Pedro Alves <palves@redhat.com>
1814
1815 * darwin-nat.c (darwin_xfer_memory): Delete.
1816 (_initialize_darwin_inferior): Don't install a
1817 deprecated_xfer_memory method.
1818
1819 2013-08-27 Pedro Alves <pedro@codesourcery.com>
1820 Yao Qi <yao@codesourcery.com>
1821
1822 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1823 (parse_no_frames_option): Remove.
1824 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1825 (mi_cmd_stack_list_args): Adjust.
1826 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1827 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1828 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1829 Caller update.
1830 (list_args_or_locals): New parameter 'skip_unavailable'.
1831 Handle it.
1832 * valprint.c (scalar_type_p): Rename to ...
1833 (val_print_scalar_type_p): ... this. Make extern.
1834 (val_print, value_check_printable): Adjust.
1835 * valprint.h (val_print_scalar_type_p): Declare.
1836 * value.c (value_entirely_unavailable): New function.
1837 * value.h (value_entirely_unavailable): Declare.
1838
1839 * NEWS: Mention the new option "--skip-unavailable" to MI
1840 commands '-stack-list-locals', '-stack-list-arguments' and
1841 '-stack-list-variables'.
1842
1843 2013-08-27 Yao Qi <yao@codesourcery.com>
1844
1845 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1846 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1847 options.
1848 * mi/mi-getopt.c (mi_getopt): Remove.
1849 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1850 'error_on_unknown'.
1851 (mi_getopt): Call mi_getopt_1.
1852 (mi_getopt_silent): New.
1853 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1854
1855 2013-08-26 Doug Evans <dje@google.com>
1856
1857 PR symtab/15885
1858 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1859 .gdb_index is in use.
1860 * symfile.c (reread_symbols): Reset objfile->sf.
1861
1862 * NEWS: Document "mt print objfiles" now takes optional regexp.
1863 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1864 regexp of objfiles to print.
1865 (_initialize_symmisc): Update doc string for "mt print objfiles".
1866
1867 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1868 missing debug info checks.
1869
1870 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1871 Ulrich Weigand <uweigand@de.ibm.com>
1872
1873 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1874 line tables generated by XLC compiled binaries.
1875
1876 2013-08-23 Doug Evans <dje@google.com>
1877
1878 * symmisc.c (dump_symtab): Delete prototype.
1879 (dump_msymbols, dump_objfile): Ditto.
1880 (maintenance_info_symtabs): Mark as dont_repeat.
1881 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1882
1883 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1884 debugging printf to better location.
1885
1886 2013-08-23 Pedro Alves <palves@redhat.com>
1887
1888 * target.c (target_read_live_memory): Change type of 'ret' local
1889 to LONGEST.
1890
1891 2013-08-23 Pedro Alves <palves@redhat.com>
1892
1893 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1894 (remote_read_bytes): Change return type to LONGEST, and adjust to
1895 return a target_xfer_error on error.
1896 (remote_xfer_memory): Delete.
1897 (remote_flash_write): Change type of 'ret' local to LONGEST.
1898 (remote_xfer_partial, remote_xfer_partial): Adjust.
1899 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1900
1901 2013-08-23 Pierre Muller <muller@sourceware.org>
1902
1903 ARI fix: Push # directives to start of line.
1904 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1905
1906 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1907
1908 PR gdb/15501
1909 * breakpoint.c (enable_command, disable_command): Iterate over
1910 all specified breakpoint locations.
1911
1912 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
1913
1914 * common/linux-ptrace.c (linux_fork_to_function): Push #
1915 directives to the start of the line.
1916 (linux_check_ptrace_features): Fix warning message to use
1917 the "_" markup.
1918
1919 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
1920
1921 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1922 nat/linux-waitpid.h.
1923 (linux-waitpid.o): New object file rule.
1924 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1925 (current_ptrace_options): Moved from linux-nat.c.
1926 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1927 parameters.
1928 (linux_fork_to_function): New function.
1929 (linux_grandchild_function): Likewise.
1930 (linux_child_function): Likewise.
1931 (linux_check_ptrace_features): New function, heavily
1932 based on linux-nat.c:linux_test_for_tracefork.
1933 (linux_enable_event_reporting): New function.
1934 (ptrace_supports_feature): Likewise.
1935 (linux_supports_tracefork): Likewise.
1936 (linux_supports_traceclone): Likewise.
1937 (linux_supports_tracevforkdone): Likewise.
1938 (linux_supports_tracesysgood): Likewise.
1939 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1940 gdbserver/linux-low.c.
1941 (linux_enable_event_reporting): New declaration.
1942 (linux_supports_tracefork): Likewise.
1943 (linux_supports_traceclone): Likewise.
1944 (linux_supports_tracevforkdone): Likewise.
1945 (linux_supports_tracesysgood): Likewise.
1946 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1947 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1948 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1949 * config/arm/linux.mh (NATDEPFILES): Likewise.
1950 * config/i386/linux.mh (NATDEPFILES): Likewise.
1951 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1952 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1953 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1954 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1955 * config/mips/linux.mh (NATDEPFILES): Likewise.
1956 * config/pa/linux.mh (NATDEPFILES): Likewise..
1957 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1958 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1959 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1960 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1961 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1962 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1963 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1964 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1965 ptrace's 4th argument's types.
1966 Check the type of PTRACE_TYPE_ARG4.
1967 * configure: Regenerate.
1968 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1969 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1970 (linux_supports_tracefork_flag): Remove.
1971 (linux_supports_tracesysgood_flag): Likewise.
1972 (linux_supports_tracevforkdone_flag): Likewise.
1973 (current_ptrace_options): Moved to
1974 common/linux-ptrace.c.
1975 (linux_tracefork_child): Remove.
1976 (my_waitpid): Remove.
1977 (linux_test_for_tracefork): Renamed to
1978 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1979 (linux_test_for_tracesysgood): Remove.
1980 (linux_supports_tracesysgood): Remove.
1981 (linux_supports_tracefork): Remove.
1982 (linux_supports_tracevforkdone): Remove.
1983 (linux_enable_tracesysgood): Remove.
1984 (linux_enable_event_reporting): Remove.
1985 (linux_init_ptrace): New function.
1986 (linux_child_post_attach): Call linux_init_ptrace.
1987 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1988 (linux_child_follow_fork): Call linux_supports_tracefork
1989 and linux_supports_tracevforkdone.
1990 (linux_child_insert_fork_catchpoint): Call
1991 linux_supports_tracefork.
1992 (linux_child_insert_vfork_catchpoint): Likewise.
1993 (linux_child_set_syscall_catchpoint): Call
1994 linux_supports_tracesysgood.
1995 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1996 * nat/linux-nat.h: New file.
1997 * nat/linux-waitpid.c: New file.
1998 * nat/linux-waitpid.h: New file.
1999
2000 2013-08-22 Samuel Bronson <naesten@gmail.com>
2001
2002 ARM Linux support for `catch syscall'.
2003 * syscalls/arm-linux.py: New file.
2004 * syscalls/arm-linux.xml: Likewise.
2005 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2006 (arm_linux_init_abi): Register the new function and syscall xml file.
2007 * data-directory/Makefile.in: Install the new syscall xml file.
2008 * NEWS: Brag about this.
2009
2010 2013-08-22 Pedro Alves <palves@redhat.com>
2011
2012 PR gdb/15871
2013 * corefile.c (target_xfer_memory_error): New function.
2014 (memory_error): Defer EIO to target_memory_error.
2015 (read_memory): Use target_xfer_partial, and handle finer-grained
2016 target xfer errors.
2017 * target.c (target_xfer_error_to_string): New function.
2018 (memory_xfer_partial_1): If memory is known to be
2019 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2020 (target_xfer_partial): Make extern.
2021 * target.h (enum target_xfer_error): New enum.
2022 (target_xfer_error_to_string): Declare function.
2023 (target_xfer_partial): Declare function.
2024 (struct target_ops) <xfer_partial>: Adjust describing comment.
2025
2026 2013-08-22 Alan Modra <amodra@gmail.com>
2027
2028 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2029 * configure.tgt: Likewise as targets.
2030
2031 2013-08-20 Doug Evans <dje@google.com>
2032
2033 * buildsym.c (subfile_stack): Move here from buildsym.h.
2034 (pending_macros): Ditto.
2035 (get_macro_table): New function.
2036 (buildsym_init): Initialize subfile_stack.
2037 * coffread.c (type_vector,type_vector_length): Moved here from
2038 buildsym.h.
2039 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2040 (coff_symtab_read): Use it.
2041 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2042 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2043 with call to get_macro_table.
2044 * stabsread.c (type_vector,type_vector_length): Moved here from
2045 buildsym.h.
2046 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2047 * buildsym.h (get_macro_table): Declare.
2048
2049 2013-08-20 Tom Tromey <tromey@redhat.com>
2050
2051 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2052 Update.
2053 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2054
2055 2013-08-20 Doug Evans <dje@google.com>
2056
2057 * blockframe.c: Remove #include "psymtab.h".
2058 * cp-support.c: Ditto.
2059 * source.c: Ditto.
2060 * stack.c: Ditto.
2061
2062 2013-08-20 Tom Tromey <tromey@redhat.com>
2063
2064 PR python/15816:
2065 * exceptions.h (return_mask): Now an enum.
2066 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2067 enum constants.
2068
2069 2013-08-20 Tom Tromey <tromey@redhat.com>
2070
2071 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2072 get_objfile_arch.
2073 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2074 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2075 * jit.c (jit_object_close_impl): Update.
2076 * jv-lang.c (get_dynamics_objfile): Update.
2077 * linespec.c (add_minsym): Use get_dynamics_objfile.
2078 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2079 (allocate_objfile): Don't initialize 'gdbarch' field.
2080 (get_objfile_arch): Update.
2081 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2082 moved from...
2083 (struct objfile) <gdbarch>: ... here. Remove.
2084 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2085 get_objfile_arch.
2086 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2087
2088 2013-08-20 Alan Modra <amodra@gmail.com>
2089
2090 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2091 for IBM long double nan and inf.
2092 (floatformat_is_negative, floatformat_classify,
2093 floatformat_mantissa): Similarly.
2094 (floatformat_ieee_single, floatformat_ieee_double,
2095 floatformat_ieee_quad, floatformat_arm_ext,
2096 floatformat_ia64_spill): Delete unused vars.
2097 (_initialize_doublest): Delete unused function.
2098 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2099 little-endian variants of floatformat_ibm_long_double.
2100
2101 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2102
2103 * Makefile.in (SFILES): Remove common/target-common.c and
2104 add target/waitstatus.c.
2105 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2106 target/resume.h, target/wait.h and target/waitstatus.h.
2107 (COMMON_OBS): Remove target-common.o and add
2108 waitstatus.o.
2109 (target-common.o): Remove.
2110 (waitstatus.o): New target object file.
2111 * common/target-common.c: Move contents to
2112 target/waitstatus.c and remove.
2113 * common/target-common.h: Move contents to other files and
2114 remove.
2115 (enum resume_kind: Move to target/resume.h.
2116 (TARGET_WNOHANG): Move to target/wait.h.
2117 (enum target_waitkind): Move to target/waitstatus.h.
2118 (struct target_waitstatus): Likewise.
2119 * target.h: Do not include target-common.h and
2120 include target/resume.h, target/wait.h and
2121 target/waitstatus.h.
2122 * target/resume.h: New file.
2123 * target/wait.h: New file.
2124 * target/waitstatus.h: New file.
2125 * target/waitstatus.c: New file.
2126
2127 2013-08-19 Pedro Alves <palves@redhat.com>
2128
2129 * linux-nat.c (linux_test_for_tracefork)
2130 (linux_test_for_tracesysgood, linux_child_follow_fork)
2131 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2132 (linux_nat_wait_1): Extend comment.
2133 (linux_async_pipe): Add comment.
2134
2135 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2136
2137 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2138 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2139 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2140 Update to account for fact that PC is now a pseudo-register.
2141 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2142 cases for RL78_PC_REGNUM.
2143
2144 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2145
2146 PR cli/15841
2147 * top.c (quit_force): Skip writing history file
2148 if input is not from terminal.
2149
2150 2013-08-14 Tom Tromey <tromey@redhat.com>
2151
2152 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2153 resultthreadlist>: New fields.
2154 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2155 (remote_get_threadlist, remote_threadlist_iterator): Use
2156 new fields. Remove static variables.
2157
2158 2013-08-14 Tom Tromey <tromey@redhat.com>
2159
2160 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2161 remote_watch_data_address>: New fields.
2162 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2163 (process_stop_reply, remote_wait_as)
2164 (remote_check_watch_resources, remote_stopped_data_address): Update.
2165
2166 2013-08-14 Tom Tromey <tromey@redhat.com>
2167
2168 * remote.c (struct remote_state) <async_client_callback,
2169 async_client_context>: New fields.
2170 (async_client_callback, async_client_context): Remove.
2171 (remote_async_serial_handler, remote_async): Update.
2172
2173 2013-08-14 Tom Tromey <tromey@redhat.com>
2174
2175 * remote.c (sizeof_pkt): Remove.
2176 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2177
2178 2013-08-14 Tom Tromey <tromey@redhat.com>
2179
2180 * remote.c (struct remote_state) <use_threadinfo_query,
2181 use_threadextra_query>: New fields.
2182 (remote_threads_info, remote_threads_extra_info)
2183 (remote_open_1): Update.
2184
2185 2013-08-14 Tom Tromey <tromey@redhat.com>
2186
2187 * remote.c (struct remote_state) <finished_object,
2188 finished_annex, finished_offset>: New fields.
2189 (remote_read_qxfer): Use remote_state fields; remove static
2190 variables.
2191
2192 2013-08-14 Tom Tromey <tromey@redhat.com>
2193
2194 * remote.c (struct remote_state) <last_sent_step>:
2195 New field.
2196 (last_sent_step): Remove.
2197 (remote_resume, remote_wait_as): Update.
2198
2199 2013-08-14 Tom Tromey <tromey@redhat.com>
2200
2201 * remote.c (struct remote_state) <last_sent_signal>:
2202 New field.
2203 (last_sent_signal): Remove.
2204 (new_remote_state, remote_resume, remote_wait_as): Update.
2205
2206 2013-08-14 Tom Tromey <tromey@redhat.com>
2207
2208 * remote.c (struct remote_state) <last_program_signals_packet>:
2209 New field.
2210 (last_program_signals_packet): Remove.
2211 (remote_program_signals, remote_open_1): Update.
2212
2213 2013-08-14 Tom Tromey <tromey@redhat.com>
2214
2215 * remote.c (struct remote_state) <last_pass_packet>:
2216 New field.
2217 (last_pass_packet): Remove.
2218 (remote_pass_signals, remote_open_1): Update.
2219
2220 2013-08-14 Tom Tromey <tromey@redhat.com>
2221
2222 * remote.c (struct remote_state) <remote_traceframe_number>:
2223 New field.
2224 (remote_traceframe_number): Remove.
2225 (new_remote_state, remote_open_1, set_remote_traceframe)
2226 (remote_trace_find): Update.
2227
2228 2013-08-14 Tom Tromey <tromey@redhat.com>
2229
2230 * remote.c (struct remote_state) <general_thread, continue_thread>:
2231 New fields.
2232 (general_thread, continue_thread): Remove.
2233 (record_currthread, set_thread, set_general_process)
2234 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2235 (extended_remote_mourn_1): Update.
2236
2237 2013-08-14 Tom Tromey <tromey@redhat.com>
2238
2239 * remote.c (struct remote_state) <remote_desc>: New field.
2240 (remote_desc): Remove.
2241 (remote_threads_info, remote_threads_extra_info, remote_close)
2242 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2243 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2244 (remote_hostio_send_command, remote_file_put, remote_file_get)
2245 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2246 (remote_async, remote_new_objfile, set_range_stepping): Update.
2247
2248 2013-08-14 Tom Tromey <tromey@redhat.com>
2249
2250 * remote.c (remote_state): Now a pointer.
2251 (get_remote_state_raw): Update.
2252 (new_remote_state): New function.
2253 (_initialize_remote): Use new_remote_state.
2254
2255 2013-08-14 Tom Tromey <tromey@redhat.com>
2256
2257 * remote.c (remote_protocol_features): Now const.
2258
2259 2013-08-14 Tom Tromey <tromey@redhat.com>
2260
2261 * remote.c (crc32_table, crc32): Remove.
2262 (remote_verify_memory): Use xcrc32.
2263
2264 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2265
2266 * value.h (create_internalvar_type_lazy): Adjust prototype
2267 declaration.
2268
2269 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2270
2271 * common/format.c (parse_format_string): Don't allow '#' flag for
2272 pointer arguments in format string.
2273
2274 2013-08-13 Pierre Muller <muller@sourceware.org>
2275
2276 * utils.c (init_page_info): Only call tgetnum function
2277 if rl_get_screen_size did not return useful values.
2278
2279 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2280
2281 PR breakpoints/15117
2282 * linespec.c (linespec_parse_basic): Check for convenience
2283 variable or history value while parsing.
2284
2285 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2286
2287 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2288 AVR.
2289 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2290 different signals between the generic Linux kernel implementation
2291 and AVR's.
2292 (avr_linux_gdb_signal_from_target): Delete.
2293 (avr_linux_gdb_signal_to_target): Delete.
2294 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2295
2296 2013-08-09 Doug Evans <dje@google.com>
2297
2298 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2299 entries.
2300
2301 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2302
2303 * linux-tdep.c: Define enum with generic signal numbers.
2304 (linux_gdb_signal_from_target): New function.
2305 (linux_gdb_signal_to_target): Likewise.
2306 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2307 methods to the functions above.
2308 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2309 (linux_gdb_signal_to_target): Likewise.
2310 * alpha-linux-tdep.c: Define new enum with signals different
2311 from generic Linux kernel.
2312 (alpha_linux_gdb_signal_from_target): New function.
2313 (alpha_linux_gdb_signal_to_target): Likewise.
2314 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2315 with the functions mentioned above.
2316 * avr-tdep.c: Define enum with differences between Linux kernel
2317 and AVR signals.
2318 (avr_linux_gdb_signal_from_target): New function.
2319 (avr_linux_gdb_signal_to_target): Likewise.
2320 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2321 the functions mentioned above.
2322 * sparc-linux-tdep.c: Define enum with differences between SPARC
2323 and generic Linux kernel signal numbers.
2324 (sparc32_linux_gdb_signal_from_target): New function.
2325 (sparc32_linux_gdb_signal_to_target): Likewise.
2326 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2327 to the functions defined above.
2328 * xtensa-linux-tdep.c: Define enum with differences between
2329 Xtensa and Linux kernel generic signals.
2330 (xtensa_linux_gdb_signal_from_target): New function.
2331 (xtensa_linux_gdb_signal_to_target): Likewise.
2332 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2333 to the functions defined above.
2334 * mips-linux-tdep.c: Define enum with differences between
2335 signals in MIPS and Linux kernel generic ones.
2336 (mips_gdb_signal_to_target): New function.
2337 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2338 only different signals from the Linux kernel generic.
2339 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2340 the functions defined above.
2341 * mips-linux-tdep.h (enum mips_signals): Remove.
2342
2343 2013-08-09 Pedro Alves <palves@redhat.com>
2344
2345 * avr-tdep.c (XMALLOC): Delete macro.
2346 * cli/cli-dump.c (XMALLOC): Delete macro.
2347
2348 2013-08-09 Pedro Alves <palves@redhat.com>
2349
2350 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2351 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2352 (fopen_with_cleanup, add_dump_command): Make static.
2353 * cli/cli-dump.h: Delete file.
2354 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2355 cli/cli-dump.h.
2356
2357 2013-08-09 Pedro Alves <palves@redhat.com>
2358
2359 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2360 error message.
2361
2362 2013-08-09 Pedro Alves <palves@redhat.com>
2363
2364 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2365 error message.
2366
2367 2013-08-09 Pedro Alves <palves@redhat.com>
2368
2369 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2370 (gcore_command): Use tilde_expand here, and when showing the
2371 filename to the user, show the expanded version.
2372
2373 2013-08-09 Yao Qi <yao@codesourcery.com>
2374
2375 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2376 'entryval' is set.
2377
2378 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2379
2380 * gcore.c (create_gcore_bfd): Use tilde_expand.
2381
2382 2013-08-08 Yao Qi <yao@codesourcery.com>
2383
2384 * frame.h (read_frame_local): Declare.
2385 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2386 read_frame_local.
2387 * stack.c (read_frame_local): New.
2388
2389 2013-08-08 Yao Qi <yao@codesourcery.com>
2390
2391 * mi/mi-cmd-stack.c: Update comments to function
2392 list_args_or_locals.
2393
2394 2013-08-07 Tom Tromey <tromey@redhat.com>
2395
2396 PR symtab/15028:
2397 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2398 (process_psymtab_comp_unit_reader): Use it.
2399 (process_psymtab_comp_unit): Update. Add "pretend_language"
2400 argument.
2401 (dwarf2_build_psymtabs_hard): Update.
2402 (scan_partial_symbols): Pass CU's language to
2403 process_psymtab_comp_unit.
2404
2405 2013-08-07 Tom Tromey <tromey@redhat.com>
2406
2407 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2408 (dwarf2_gdb_index_functions): Update.
2409 * psymtab.c (find_symbol_file_from_partial): Remove.
2410 (psym_functions): Update.
2411 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2412 Remove.
2413
2414 2013-08-07 Tom Tromey <tromey@redhat.com>
2415
2416 * symfile.c (set_initial_language): Look up "main" symbol
2417 and use its language.
2418 * symtab.c (find_main_filename): Remove.
2419 * symtab.h (find_main_filename): Remove.
2420
2421 2013-08-07 Tom Tromey <tromey@redhat.com>
2422
2423 * dwarf2read.c (recursively_compute_inclusions): Add
2424 "immediate_parent" argument. Set symtab's "user" field
2425 if not set.
2426 (compute_symtab_includes): Update.
2427
2428 2013-08-07 Tom Tromey <tromey@redhat.com>
2429
2430 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2431 when adding label symbols.
2432
2433 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2434 Ulrich Weigand <uweigand@de.ibm.com>
2435
2436 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2437 * configure.host (powerpc64-*-aix*): Likewise.
2438
2439 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2440 Ulrich Weigand <uweigand@de.ibm.com>
2441
2442 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2443 is defined.
2444 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2445 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2446 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2447 * configure.ac: Check for ptrace64.
2448 * configure, config.in: Regenerate.
2449
2450 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2451 Ulrich Weigand <uweigand@de.ibm.com>
2452
2453 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2454 Call ptrace64 instead of ptrace if defined.
2455 Add macro addr_ptr to take care of ptrace address argument.
2456 (pdc_read_regs): Likewise.
2457 (pdc_write_regs): Likewise.
2458 (aix_thread_resume): Likewise.
2459 (fetch_regs_kernel_thread): Likewise.
2460 (store_regs_kernel_thread): Likewise.
2461
2462 2013-08-07 Anton Blanchard <anton@samba.org>
2463
2464 * MAINTAINERS: Add myself to Write After Approval.
2465
2466 2013-08-05 Tom Tromey <tromey@redhat.com>
2467
2468 * aix-thread.c (_initialize_aix_thread): Use
2469 complete_target_initialization.
2470 * bsd-uthread.c (_initialize_bsd_uthread): Use
2471 complete_target_initialization.
2472 * dec-thread.c (_initialize_dec_thread): Use
2473 complete_target_initialization.
2474 * ravenscar-thread.c (_initialize_ravenscar): Use
2475 complete_target_initialization.
2476 * sol-thread.c (_initialize_sol_thread): Use
2477 complete_target_initialization.
2478 * spu-multiarch.c (_initialize_spu_multiarch): Use
2479 complete_target_initialization.
2480
2481 2013-08-05 Tom Tromey <tromey@redhat.com>
2482
2483 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2484 * ada-lang.c (ada_lookup_simple_minsym): Return
2485 bound_minimal_symbol.
2486 * ada-lang.h (ada_lookup_simple_minsym): Update.
2487 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2488 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2489 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2490 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2491 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2492 * minsyms.c (msymbol_objfile): Remove.
2493 (lookup_minimal_symbol_internal): New function, from
2494 lookup_minimal_symbol.
2495 (lookup_minimal_symbol): Rewrite using
2496 lookup_minimal_symbol_internal.
2497 (lookup_bound_minimal_symbol): New function.
2498 * minsyms.h (msymbol_objfile): Remove.
2499 (lookup_bound_minimal_symbol): Declare.
2500 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2501 * parse.c (write_exp_msymbol): Change parameter to a
2502 bound_minimal_symbol.
2503 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2504 * parser-defs.h (write_exp_msymbol): Update.
2505 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2506 * symfile.c (simple_read_overlay_table): Use
2507 lookup_bound_minimal_symbol.
2508 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2509 (search_symbols): Likewise.
2510 (print_msymbol_info): Take a bound_minimal_symbol argument.
2511 (symtab_symbol_info, rbreak_command): Update.
2512 * symtab.h (struct symbol_search) <msymbol>: Change type
2513 to bound_minimal_symbol.
2514 * valops.c (find_function_in_inferior): Use
2515 lookup_bound_minimal_symbol.
2516 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2517
2518 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 Code cleanup.
2521 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2522 to ...
2523 (async_cleanup_sigint_signal_handler): ... this.
2524 (initialize_sigint_signal_handler): Remove declaration.
2525 (handle_remote_sigint): Rename the declaration to ...
2526 (async_handle_remote_sigint): ... this.
2527 (handle_remote_sigint_twice): Rename the declaration to ...
2528 (async_handle_remote_sigint_twice): ... this.
2529 (async_remote_interrupt, async_remote_interrupt_twice)
2530 (remote_interrupt): Remove the declarations.
2531 (remote_interrupt_twice): Rename the declaration ...
2532 (sync_remote_interrupt_twice): ... this.
2533 (sigint_remote_twice_token): Rename the variable to ...
2534 (async_sigint_remote_twice_token): ... this.
2535 (sigint_remote_token): Rename the variable to ...
2536 (async_sigint_remote_token): ... this.
2537 (initialize_sigint_signal_handler): Rename the function to ...
2538 (async_initialize_sigint_signal_handler): ... this. Update the name
2539 inside.
2540 (handle_remote_sigint): Rename the function to ...
2541 (async_handle_remote_sigint): ... this. Update the names inside.
2542 (handle_remote_sigint_twice): Rename the function to ...
2543 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2544 (cleanup_sigint_signal_handler): Rename the function to ...
2545 (async_cleanup_sigint_signal_handler): ... this.
2546 (remote_interrupt): Rename the function to ...
2547 (sync_remote_interrupt): this. Update the names inside.
2548 (remote_interrupt_twice): Rename the function to ...
2549 (sync_remote_interrupt_twice): this. Update the names inside.
2550 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2551 (_initialize_remote): Update the names inside.
2552
2553 2013-08-02 Tom Tromey <tromey@redhat.com>
2554
2555 PR symtab/15719:
2556 * breakpoint.c (update_watchpoint, watchpoint_check)
2557 (watch_command_1): Update.
2558 * eval.c (fetch_subexp_value): Add "preserve_errors"
2559 parameter.
2560 * ppc-linux-nat.c (check_condition): Update.
2561 * value.h (fetch_subexp_value): Update.
2562
2563 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2564
2565 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2566 add_file_handler.
2567
2568 2013-08-01 Doug Evans <dje@google.com>
2569
2570 PR symtab/15691
2571 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2572 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2573 Add assert of sig_entry->dwo_unit == NULL.
2574 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2575 had already been read.
2576 (read_signatured_type): Set per_cu.tu_read.
2577
2578 PR symtab/15695
2579 * valops.c (value_struct_elt): Add missing call to check_typedef.
2580 (value_find_oload_method_list): Ditto.
2581
2582 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2583 effectively, struct symbol_search **.
2584 (make_cleanup_free_search_symbols): Change arg to struct
2585 symbol_search **. All callers updated.
2586 (compare_search_syms): Compare symtab file name and block as well.
2587 (search_symbols_equal): New function.
2588 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2589 New args new_head, new_tail. Result is now void. Remove dups after
2590 sorting the symbols.
2591 (search_symbols): Sort all found symbols once, after all have been
2592 found, and remove duplicates. Simplify cleanup tracking of result.
2593 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2594
2595 Further workarounds for binutils/15021.
2596 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2597 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2598 Watch for duplicate symtabs coming from type units.
2599 (compute_symtab_includes): Update call to
2600 recursively_compute_inclusions. Build vector of included symtabs
2601 instead of per_cus.
2602 * symtab.h (symtab_ptr): New typedef.
2603 (DEF_VEC_P (symtab_ptr)): New VEC type.
2604 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2605 instead.
2606
2607 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2608
2609 * cli/cli-script.c (script_from_file): Remove use of
2610 error_pre_print.
2611 * main.c (captured_main): Remove use of error_pre_print and
2612 quit_pre_print.
2613 * utils.c (error_pre_print, quit_pre_print): Remove.
2614 * utils.h (error_pre_print, quit_pre_print): Likewise.
2615
2616 2013-08-01 Yao Qi <yao@codesourcery.com>
2617
2618 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2619 with mi_getopt.
2620 (mi_cmd_stack_list_variables): Likewise.
2621
2622 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2623
2624 * exceptions.c (deprecated_throw_reason): Remove.
2625 * exceptions.h (deprecated_throw_reason): Remove.
2626
2627 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2628
2629 * remote-mips.c (mips_error): Replace use of
2630 deprecated_throw_reason with throw_verror. Use the error message
2631 passed to mips_error as the error message for throw_verror.
2632
2633 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2634
2635 * monitor.c (monitor_interrupt_query): Replace use of
2636 deprecated_throw_reason with quit.
2637 * nto-procfs.c (interrupt_query): Likewise.
2638 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2639 * remote-mips.c (mips_kill): Likewise.
2640 * remote.c (interrupt_query): Likewise.
2641
2642 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2643
2644 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2645 with call to fatal.
2646
2647 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2648 Yao Qi <yao@codesourcery.com>
2649
2650 * tracepoint.c (trace_dump_command): Select the current frame.
2651
2652 2013-07-30 Doug Evans <dje@google.com>
2653
2654 * dwarf2read.c (process_queue): Add type signature to debug output.
2655
2656 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2657
2658 * value.c (value_fetch_lazy): Mark optimized out values as such
2659 rather than raising an error.
2660
2661 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2662
2663 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2664 before checking which bits of the parent, not the child, value are
2665 valid.
2666
2667 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2668
2669 PR gdb/15715
2670 * top.c: Include "filenames.h".
2671 (set_history_filename): New function.
2672 (init_main): Install it as set hook of the "set history filename"
2673 command.
2674
2675 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2676
2677 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2678 attribute parameter.
2679 (dwarf2_const_value_data): Constify struct attribute parameter.
2680 (dwarf2_const_value): Constify struct attribute parameter.
2681 (dwarf2_const_value_attr): Constify struct attribute parameter.
2682 (lookup_die_type): Constify struct attribute parameter.
2683 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2684 (follow_die_ref_or_sig): Constify struct attribute parameter.
2685 (follow_die_ref): Constify struct attribute parameter.
2686 (follow_die_sig): Constify struct attribute parameter.
2687 (get_DW_AT_signature_type): Constify struct attribute parameter.
2688 (get_type_unit_group): Constify struct attribute parameter.
2689 (fill_in_loclist_baton): Constify struct attribute parameter.
2690 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2691 (type_unit_group): Constify struct attribute parameter.
2692
2693 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2694
2695 * dwarf2read.c (attr_form_is_block): Make argument const.
2696 (attr_form_is_section_offset): Make argument const.
2697 (attr_form_is_constant): Make argument const.
2698 (attr_form_is_ref): Make argument const.
2699
2700 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2701
2702 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2703 All uses updated.
2704 (attr_form_is_ref): Moved below attr_form_is_constant.
2705
2706 2013-07-29 Doug Evans <dje@google.com>
2707
2708 * main.c (captured_command_loop): Tweak comment.
2709
2710 * target.c (target_async_permitted_1): Fix comment.
2711
2712 * symtab.c (iterate_over_some_symtabs): Add comment.
2713
2714 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2715
2716 2013-07-27 Yao Qi <yao@codesourcery.com>
2717
2718 * NEWS: Mention that GDBserver now supports hardware
2719 watchpoints on the MIPS GNU/Linux target.
2720
2721 2013-07-27 Yao Qi <yao@codesourcery.com>
2722
2723 * Makefile.in (HFILES_NO_SRCDIR): Add
2724 common/mips-linux-watch.h.
2725 (mips-linux-watch.o): New rule.
2726 * common/mips-linux-watch.c: New.
2727 * common/mips-linux-watch.h: New.
2728 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2729 * mips-linux-nat.c: Include mips-linux-watch.h.
2730 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2731 to common/mips-linux-watch.h.
2732 (MAX_DEBUG_REGISTER): Likewise.
2733 (enum pt_watch_style): Likewise.
2734 (struct mips32_watch_regs): Likewise.
2735 (struct mips64_watch_regs): Likewise.
2736 (struct pt_watch_regs): Likewise.
2737 (struct mips_watchpoint): Likewise.
2738 (mips_linux_watch_get_irw_mask): Move to
2739 common/mips-linux-watch.c.
2740 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2741 (mips_linux_watch_get_watchlo): Likewise.
2742 (mips_linux_watch_set_watchlo): Likewise.
2743 (mips_linux_watch_get_watchhi): Likewise.
2744 (mips_linux_watch_set_watchhi): Likewise.
2745 (mips_linux_read_watch_registers): Likewise.
2746 (mips_linux_watch_type_to_irw): Likewise.
2747 (mips_linux_stopped_data_address, fill_mask): Likewise.
2748 (mips_linux_watch_try_one_watch): Likewise.
2749 (mips_linux_watch_populate_regs): Likewise.
2750
2751 2013-07-27 Yao Qi <yao@codesourcery.com>
2752
2753 * mips-linux-nat.c (get_irw_mask): Rename to ...
2754 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2755 'set' to 'n'. Update function comment. All callers changed.
2756 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2757 function comment. All callers changed.
2758 (get_num_valid): Rename to ...
2759 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2760 'set' to 'n'. Update function comment. All callers changed.
2761 (get_watchlo): Rename to ...
2762 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2763 'set' to 'n'. Update function comment. All callers changed.
2764 (set_watchlo): Rename to ...
2765 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2766 'set' to 'n'. Update function comment. All callers changed.
2767 (get_watchhi): Rename to ...
2768 (mips_linux_watch_get_watchhi): ... this. Update function
2769 comment. All callers changed.
2770 (set_watchhi): Rename to ...
2771 (mips_linux_watch_set_watchhi): ... this. Update function
2772 comment. All callers changed.
2773 (mips_linux_read_watch_registers): Update function comment.
2774 Add new parameters 'lwpid', 'watch_readback', and
2775 'watch_readback_valid'. Update.
2776 (type_to_irw): Rename to ...
2777 (mips_linux_watch_type_to_irw): ... this. Update function
2778 comment. All callers changed.
2779 (fill_mask): Update function comment.
2780 (try_one_watch): Rename to ...
2781 (mips_linux_watch_try_one_watch): ... this. Change the type
2782 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2783 (populate_regs_from_watches): Rename to ...
2784 (mips_linux_watch_populate_regs): ... this. Add parameter
2785 'current_watches'. All callers changed.
2786
2787 2013-07-27 Yao Qi <yao@codesourcery.com>
2788
2789 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2790 the code.
2791 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2792 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2793 (struct pt_watch_regs): Likewise.
2794 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2795 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2796 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2797 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2798 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2799
2800 2013-07-27 Yao Qi <yao@codesourcery.com>
2801
2802 * breakpoint.h: Include break-common.h.
2803 (enum target_hw_bp_type): Move to ...
2804 * common/break-common.h: ... here. New.
2805
2806 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2807
2808 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2809 process group regardless of having tty on stdin.
2810
2811 2013-07-25 Doug Evans <dje@google.com>
2812
2813 * linux-fork.h (detach_fork): Delete.
2814
2815 2013-07-25 Tom Tromey <tromey@redhat.com>
2816
2817 PR remote/15256, PR remote/15266:
2818 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2819 * monitor.c (monitor_detach): Use unpush_target.
2820 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2821 * remote-mips.c (mips_detach): Use unpush_target. Don't
2822 call mips_close.
2823 * remote-sim.c (gdbsim_detach): Use unpush_target.
2824 * target.c (pop_target): Remove.
2825 (pop_all_targets_above): Don't call target_close.
2826 (target_close): Assert that the target is unpushed.
2827 * target.h (pop_target): Don't declare.
2828 * tracepoint.c (tfile_open): Use unpush_target.
2829
2830 2013-07-25 Tom Tromey <tromey@redhat.com>
2831
2832 * linux-thread-db.c (init_thread_db_ops): Call
2833 complete_target_initialization.
2834 (_initialize_thread_db): Don't call add_target.
2835 * target.c (complete_target_initialization): New function.
2836 (add_target_with_completer): Call it.
2837 * target.h (complete_target_initialization): Declare.
2838
2839 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2840
2841 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2842 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2843 (HPPANBSD_SIZEOF_GREGS): New define.
2844 (hppaobsd_supply_gregset): Handle additional registers.
2845 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2846 we provide more registers now.
2847 (hppabsd_supply_gregset): Supply additional registers.
2848 (hppabsd_collect_gregset): Collect additional registers.
2849
2850 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2851
2852 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2853 (hppabsd_dwarf2_frame_init_reg): New function.
2854 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2855
2856 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
2857
2858 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2859 'z' format code. Remove error for optimized out values, standard
2860 code will handle these fine.
2861
2862 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
2863
2864 * NEWS: Mention new 'z' formatter.
2865 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2866 (_initialize_printcmd): Mention 'z' formatter in help text of the
2867 'x' command.
2868
2869 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2870
2871 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2872 formatting.
2873
2874 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2875
2876 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2877 interface can evaluate arguments. Fallback to the old mode if it
2878 cannot.
2879 (create_exception_master_breakpoint): Likewise.
2880 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2881 (struct sym_probe_fns elf_probe_fns): Export function above to the
2882 probe interface.
2883 * probe.c (can_evaluate_probe_arguments): New function.
2884 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2885 function pointer.
2886 (can_evaluate_probe_arguments): New function prototype.
2887 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2888 probe interface can evaluate arguments. Fallback to the old mode
2889 if it cannot.
2890 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2891 interface can evaluate arguments. Warning the user if it cannot.
2892 (stap_can_evaluate_probe_arguments): New function.
2893 (struct probe_ops stap_probe_ops): Export function above to the
2894 probe interface.
2895 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2896 New function pointer.
2897
2898 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
2899
2900 * Makefile.in (SFILES): Add common/target-common.c.
2901 Add common/target-common.h to headers.
2902 (COMMON_OBS): Add target-common.o.
2903 (target-common.o): New target.
2904 * linux-nat.h (resume_kind): Move to common/target-common.h.
2905 * target.c (target_waitstatus_to_string): Move to
2906 common/target-common.c.
2907 * target.h: Include target-common.h.
2908 (target_waitkind): Move to common/target-common.h.
2909 (target_waitstatus): Likewise.
2910 (TARGET_WNOHANG): Likewise.
2911 * common/target-common.c: New file.
2912 * common/target-common.h: New file.
2913
2914 2013-07-24 Doug Evans <dje@google.com>
2915
2916 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2917 a warning.
2918
2919 2013-07-23 Yao Qi <yao@codesourcery.com>
2920
2921 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2922 parameter 'gdbarch'.
2923 (i386_stack_tramp_frame_sniffer): Caller update.
2924 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2925 parameter 'gdbarch' and 'target'.
2926 (i386_linux_core_read_description): Caller update.
2927 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2928 Likewise.
2929 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2930 declaration.
2931
2932 2013-07-23 Tom Tromey <tromey@redhat.com>
2933
2934 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2935 2013-07-22.
2936
2937 2013-07-22 Doug Evans <dje@google.com>
2938
2939 * exec.h (remove_target_sections): Delete arg abfd.
2940 * exec.c (exec_close): Update call to remove_target_sections.
2941 (remove_target_sections): Delete arg abfd.
2942 * solib.c (update_solib_list): Ditto.
2943 (reload_shared_libraries_1): Ditto.
2944 (clear_solib): Ditto, and unconditionally call remove_target_sections.
2945 * target.h (struct target_section): Rename key to owner.
2946 All uses updated.
2947
2948 2013-07-22 Tom Tromey <tromey@redhat.com>
2949
2950 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2951
2952 2013-07-22 Tom Tromey <tromey@redhat.com>
2953
2954 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2955 Simplify cleanup handling.
2956
2957 2013-07-22 Tom Tromey <tromey@redhat.com>
2958
2959 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2960 on all return paths.
2961
2962 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2963
2964 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2965 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2966 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2967
2968 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2969
2970 * top.c (print_gdb_version): Add help, apropos description and
2971 url to online documentation.
2972
2973 2013-07-19 Hui Zhu <hui@codesourcery.com>
2974
2975 PR gdb/15692
2976 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2977
2978 2013-07-19 Yao Qi <yao@codesourcery.com>
2979
2980 * target.c (update_current_target): Change the default action
2981 of 'to_traceframe_info' from tcomplain to return_zero.
2982 * target.h (struct target_ops) <to_traceframe_info>: Add more
2983 comments.
2984 * valops.c (read_value_memory): Call
2985 traceframe_available_memory unconditionally.
2986
2987 2013-07-18 Yao Qi <yao@codesourcery.com>
2988
2989 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2990 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2991 symbol without prefix. If found, set its type to
2992 'mst_solib_trampoline'.
2993
2994 2013-07-17 Doug Evans <dje@google.com>
2995
2996 * NEWS: Mention "set print raw frame-arguments".
2997 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2998 * stack.c (print_raw_frame_arguments): New static global.
2999 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3000 (_initialize_stack): New command "set/show print raw frame-arguments".
3001 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3002 (set_print_raw, show_print_raw): New functions.
3003 (_initialize_valprint): New prefix command "set/show print raw".
3004 * valprint.h (value_print_options): Improve comments.
3005
3006 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3007 of all *list variables.
3008
3009 * gdbcmd.h (togglelist): Delete.
3010 * cli/cli-cmds.c (togglelist): Delete.
3011 (init_cmd_lists): Update.
3012 * cli/cli-cmds.h (togglelist): Delete.
3013
3014 2013-07-17 Tom Tromey <tromey@redhat.com>
3015
3016 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3017 dwarf2_per_objfile.
3018
3019 2013-07-16 Doug Evans <dje@google.com>
3020
3021 * nto-tdep.c (nto_relocate_section_addresses): Update,
3022 target_section.bfd deleted.
3023 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3024 * s390-tdep.c (s390_load): Ditto.
3025 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3026
3027 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3028
3029 * common/format.c (parse_format_string): Add checks for NULL
3030 character before calling strchr.
3031
3032 2013-07-16 Doug Evans <dje@google.com>
3033
3034 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3035 temp_pathname argument.
3036 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3037 when opening the file fails.
3038
3039 * target.h (struct target_section): Delete member bfd.
3040 All users updated to use the_bfd_section->owner instead.
3041 * exec.c (add_to_section_table): Assert bfd is expected value.
3042 Remove initialization of target_section.bfd.
3043 (remove_target_sections): Update.
3044 (section_table_available_memory): Update.
3045 (section_table_xfer_memory_partial): Update.
3046 (print_section_info): Update.
3047 (exec_set_section_address): Update.
3048 * record-full.c (record_full_core_xfer_partial): Update.
3049 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3050 * solib-target.c (solib_target_relocate_section_addresses): Update.
3051 * symfile.c (build_section_addr_info_from_section_table): Update.
3052 * target.c (memory_xfer_live_readonly_partial): Update.
3053 (memory_xfer_partial_1): Update.
3054
3055 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3056
3057 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3058 now available for embedded (BookE) and server (BookS) processors,
3059 correct mentions of 'booke' and adjust comments accordingly in order to
3060 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3061 (have_ptrace_booke_interface): Rename function and variable
3062 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3063 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3064 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3065 'hwdebug_point_cmp'. Update all uses.
3066 (booke_find_thread_points_by_tid): Rename function
3067 'booke_find_thread_points_by_tid' to
3068 'hwdebug_find_thread_points_by_tid'. Update all uses.
3069 (booke_insert_point): Rename function 'booke_insert_point' to
3070 'hwdebug_insert_point'. Update all uses.
3071 (booke_remove_point): Rename function 'booke_remove_point' to
3072 'hwdebug_remove_point'. Update all uses.
3073
3074 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3075
3076 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3077 numbers with enum values.
3078
3079 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3080
3081 PR threads/13217
3082 * thread.c (thread_apply_all_command): Check for valid threads
3083 and thread count.
3084 (thread_array_cleanup): New struct.
3085 (set_thread_refcount): New function.
3086
3087 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3088
3089 * infcmd.c (default_print_one_register_info): Reuse function
3090 print_hex_chars.
3091
3092 2013-07-10 Tom Tromey <tromey@redhat.com>
3093
3094 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3095 (ada-exp.o): New target.
3096
3097 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3098
3099 * mt-tdep.c (mt_registers_info): Call
3100 get_no_prettyformat_print_options instead of
3101 get_raw_print_options (regression by last patch from Doug
3102 Evans).
3103
3104 2013-07-09 Pedro Alves <palves@redhat.com>
3105
3106 Checked in by Joel Brobecker <brobecker@adacore.com>.
3107 * ada-lang.c (coerce_unspec_val_to_type): Use
3108 value_optimized_out_const.
3109 * value.c (value_optimized_out_const): New function.
3110 * value.h (value_optimized_out_const): New declaration.
3111
3112 2013-07-09 Doug Evans <dje@google.com>
3113
3114 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3115 Enum values rename as well. All uses updated.
3116 * valprint.h (value_print_options): Rename member pretty to
3117 pretty format. Rename member prettyprint_arrays to
3118 prettyformat_arrays. Rename member prettyprint_structs to
3119 prettyformat_structs. All uses updated.
3120 (get_no_prettyformat_print_options): Renamed from
3121 get_raw_print_options.
3122 * valprint.c (get_no_prettyformat_print_options): Renamed from
3123 get_raw_print_options. All callers updated.
3124 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3125 All callers updated.
3126 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3127 All callers updated.
3128 (_initialize_valprint): Improve help text for "set print pretty" and
3129 "set print arrays".
3130
3131 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3132
3133 * value.c (value_bits_valid): Revert previous change, and change
3134 by Pedro on 2013-07-04, due to regressions in
3135 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3136
3137 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3138 Pedro Alves <palves@redhat.com>
3139
3140 * value.c (value_bits_valid): If the value is not lval_computed
3141 or has no check validity handler then the answer is the
3142 optimized_out flag, otherwise defer to the handler.
3143
3144 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3145
3146 * top.c (print_gdb_configuration): Explain in output of
3147 --configuration what does "relocatable" mean.
3148
3149 * main.c (print_gdb_help): Regroup options in the --help text.
3150 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3151 the relevant discussions.
3152
3153 2013-07-06 Yao Qi <yao@codesourcery.com>
3154
3155 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3156 Remove parameter 'lsal'.
3157 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3158 to inner block. Caller update.
3159 (base_breakpoint_create_breakpoints_sal): Update.
3160 (bkpt_create_breakpoints_sal): Likewise.
3161 (tracepoint_create_breakpoints_sal): Likewise.
3162 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3163 element 0 of vector 'canonical->sals'.
3164
3165 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3166
3167 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3168 register number instead of the pseudo register one.
3169 (rs6000_dwarf2_reg_to_regnum): Likewise.
3170
3171 2013-07-04 Pedro Alves <palves@redhat.com>
3172
3173 * findvar.c (value_of_register): Use allocate_optimized_out_value
3174 if the register has been optimized out, instead of
3175 set_value_optimized_out.
3176 * frame-unwind.c (frame_unwind_got_optimized): Use
3177 allocate_optimized_out_value.
3178
3179 2013-07-04 Pedro Alves <palves@redhat.com>
3180
3181 * value.c (value_bits_valid): If the value is not lval_computed,
3182 or doesn't have a check_validity hook, assume the value is entirely
3183 valid.
3184
3185 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3186
3187 * stack.c (read_frame_arg): No longer fetch lazy values.
3188 * value.c (value_optimized_out): If the value is not already
3189 marked optimized out, and is lazy then fetch it.
3190 (value_primitive_field): Move optimized out check to later in the
3191 function, after we have loaded any lazy values.
3192 (value_fetch_lazy): Use optimized out flag directly rather than
3193 calling optimized_out method.
3194
3195 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3196
3197 * valops.c: Don't include "user-regs.h".
3198 (value_fetch_lazy): Moved to value.c.
3199 * value.c: Include "user-regs.h".
3200 (value_fetch_lazy): Moved from valops.c.
3201
3202 2013-07-04 Yao Qi <yao@codesourcery.com>
3203
3204 Revert:
3205 2013-06-27 Yao Qi <yao@codesourcery.com>
3206
3207 * common/create-version.sh: Update comments. Handle the case
3208 that TARGET_ALIAS is empty.
3209
3210 2013-07-03 Pedro Alves <palves@redhat.com>
3211
3212 * Makefile.in (config.status): Depend on development.sh.
3213 (aclocal_m4_deps): Add libmcheck.m4.
3214 * acinclude.m4: Include libmcheck.m4.
3215 * configure.ac: Source development.sh instead of setting
3216 'development' here. --enable-libmcheck/--disable-libmcheck code
3217 factored out to GDB_AC_LIBMCHECK. Run it.
3218 * development.sh: New file.
3219 * libmcheck.m4: New file.
3220 * configure: Regenerate.
3221
3222 2013-07-02 Tom Tromey <tromey@redhat.com>
3223
3224 * contrib/ari/update-web-ari.sh: Update for version.in change.
3225
3226 2013-07-02 Tom Tromey <tromey@redhat.com>
3227
3228 * common/ptid.h: Comment fixes.
3229
3230 2013-07-01 Tom Tromey <tromey@redhat.com>
3231
3232 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3233 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3234 (dwarf2_read_index, create_all_comp_units): Update.
3235
3236 2013-07-01 Tom Tromey <tromey@redhat.com>
3237
3238 * configure.ac (build_warnings): Add -Wold-style-definition.
3239 * configure: Rebuild.
3240 * machoread.c (_initialize_machoread): Use "(void)".
3241 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3242 use "(void)".
3243
3244 2013-07-01 Tom Tromey <tromey@redhat.com>
3245
3246 * configure.ac (build_warnings): Add -Wold-style-declaration.
3247 * configure: Rebuild.
3248 * dsrec.c (make_srec): Use "static const", not "const static".
3249 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3250 not "const static".
3251 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3252 Use "static const", not "const static".
3253 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3254 not "const static".
3255 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3256 not "const static".
3257 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3258 not "const static".
3259 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3260 not "const static".
3261 (v850_dbtrap_breakpoint_from_pc): Likewise.
3262 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3263 not "const static".
3264
3265 2013-07-01 Tom Tromey <tromey@redhat.com>
3266
3267 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3268 * configure: Rebuild.
3269
3270 2013-07-01 Pedro Alves <palves@redhat.com>
3271
3272 * defs.h: Include "pathmax.h".
3273 * utils.c: Don't include sys/param.h.
3274 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3275 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3276 instead of MAXPATHLEN.
3277 * solib-sunos.c: Don't include sys/param.h.
3278 * xcoffread.c: Don't include sys/param.h.
3279 * bsd-kvm.c: Don't include sys/param.h.
3280 * darwin-nat.c: Don't include sys/param.h.
3281 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3282 * darwin-nat-info.c: Don't include sys/param.h.
3283 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3284 MAXPATHLEN.
3285 * i386obsd-nat.c: Don't include sys/param.h.
3286 * inf-child.c: Don't include sys/param.h.
3287 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3288 * linux-fork.c: Don't include sys/param.h.
3289 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3290 * linux-nat.c: Don't include sys/param.h.
3291 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3292 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3293 * m68klinux-nat.c: Don't include sys/param.h.
3294 * nbsd-nat.c: Don't include sys/param.h.
3295 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3296 * ppc-linux-nat.c: Don't include sys/param.h.
3297 * rs6000-nat.c: Don't include sys/param.h.
3298 * spu-linux-nat.c. Don't include sys/param.h.
3299 * windows-nat.c: Don't include sys/param.h.
3300 * xtensa-linux-nat.c: Don't include sys/param.h.
3301 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3302
3303 2013-07-01 Pedro Alves <palves@redhat.com>
3304
3305 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3306 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3307 * gnulib/aclocal.m4: Regenerate.
3308 * gnulib/config.in: Regenerate.
3309 * gnulib/configure: Regenerate.
3310 * gnulib/import/pathmax.h: New file.
3311 * gnulib/import/Makefile.am: Regenerate.
3312 * gnulib/import/Makefile.in: Regenerate.
3313 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3314 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3315 * gnulib/import/m4/pathmax.m4: New file.
3316
3317 2013-07-01 Pedro Alves <palves@redhat.com>
3318
3319 * configure.ac (GDBINIT): Define, depending on host.
3320 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3321 * top.c (PATH_MAX): Delete fallback definition.
3322 (GDBINIT_FILENAME): Delete.
3323 (gdbinit): Reimplement as const char array set to the GDBINIT
3324 string constant.
3325 * top.h (gdbinit): Make const.
3326 * configure, config.in: Regenerate.
3327
3328 2013-07-01 Pedro Alves <palves@redhat.com>
3329
3330 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3331 * cli/cli-cmds.h (source_script): Likewise.
3332 * exceptions.c (catch_command_errors_const): New function.
3333 * exceptions.h (catch_command_errors_const): Declare.
3334 * main.c (get_init_files): Make parameters const, and adjust.
3335 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3336 'local_gdbinit' locals const. Adjust to use
3337 catch_command_errors_const.
3338 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3339 'local_gdbinit' locals const.
3340
3341 2013-07-01 Pedro Alves <palves@redhat.com>
3342
3343 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3344 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3345 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3346 <unistd.h>.
3347
3348 2013-07-01 Pedro Alves <palves@redhat.com>
3349
3350 Import the "unistd" gnulib module.
3351 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3352 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3353 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3354 import/m4/unistd_h.m4.
3355 * gnulib/aclocal.m4: Renenerate.
3356 * gnulib/config.in: Renenerate.
3357 * gnulib/configure: Renenerate.
3358 * gnulib/import/Makefile.am: Renenerate.
3359 * gnulib/import/Makefile.in: Renenerate.
3360 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3361 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3362 * gnulib/import/m4/off_t.m4: New file.
3363 * gnulib/import/m4/ssize_t.m4: New file.
3364 * gnulib/import/m4/sys_types_h.m4: New file.
3365 * gnulib/import/m4/unistd_h.m4: New file.
3366 * gnulib/import/sys_types.in.h: New file.
3367 * gnulib/import/unistd.c: New file.
3368 * gnulib/import/unistd.in.h: New file.
3369
3370 2013-07-01 Pedro Alves <palves@redhat.com>
3371
3372 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3373 defined instead of checking HAVE_UNISTD_H.
3374
3375 2013-07-01 Pedro Alves <palves@redhat.com>
3376
3377 Reimport gnulib from scratch.
3378 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3379 import/m4/onceonly.m4.
3380 * gnulib/aclocal.m4: Renegerate.
3381 * gnulib/config.in: Renegerate.
3382 * gnulib/configure: Renegerate.
3383 * gnulib/import/Makefile.in: Renegerate.
3384 * gnulib/import/extra/update-copyright: Renegerate.
3385 * gnulib/import/m4/onceonly.m4: Delete.
3386
3387 2013-07-01 Pedro Alves <palves@redhat.com>
3388
3389 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3390
3391 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3392
3393 Code cleanup.
3394 * remote.c (async_remote_interrupt_twice): Make it static.
3395 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3396
3397 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3398
3399 * ia64-linux-tdep.c: Include <ctype.h>.
3400 (ia64_linux_stap_is_single_operand): New function.
3401 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3402
3403 2013-06-28 Tom Tromey <tromey@redhat.com>
3404
3405 * Makefile.in (version.c): Use version.in, not
3406 common/version.in.
3407 * common/create-version.sh: Likewise.
3408 * common/version.in: Move...
3409 * version.in: ...here.
3410
3411 2013-06-28 Pedro Alves <palves@redhat.com>
3412
3413 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3414 here.
3415 * utils.h (pagination_enabled): Declare.
3416
3417 2013-06-28 Pedro Alves <palves@redhat.com>
3418
3419 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3420 Move higher up in file.
3421
3422 2013-06-28 Tom Tromey <tromey@redhat.com>
3423
3424 * tracepoint.c (deprecated_readline_begin_hook)
3425 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3426 declare.
3427
3428 2013-06-28 Pedro Alves <palves@redhat.com>
3429
3430 PR tui/14880
3431 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3432 checking if they're available.
3433 * value.c (value_available_contents_eq): Change comment.
3434 * value.h (value_available_contents_eq): Expand comment.
3435
3436 2013-06-27 Tom Tromey <tromey@redhat.com>
3437
3438 * target.c (find_run_target): Remove.
3439 * target.h (find_run_target): Remove.
3440
3441 2013-06-27 Tom Tromey <tromey@redhat.com>
3442
3443 * corelow.c (core_gdbarch): Now static.
3444
3445 2013-06-27 Tom Tromey <tromey@redhat.com>
3446
3447 * target.c (target_struct_index): Remove.
3448
3449 2013-06-27 Pedro Alves <palves@redhat.com>
3450
3451 * infrun.c: Remove comment describing the 'stepping over runtime
3452 loader dynamic symbol resolution code' mechanism; moved to
3453 gdbint.texinfo.
3454
3455 2013-06-27 Pedro Alves <palves@redhat.com>
3456
3457 * exceptions.c (catch_command_errors): Remove spurious space.
3458 * exceptions.h (catch_command_errors): Second parameter is "arg",
3459 not "command".
3460
3461 2013-06-27 Yao Qi <yao@codesourcery.com>
3462
3463 * common/create-version.sh: Update comments. Handle the case
3464 that TARGET_ALIAS is empty.
3465
3466 2013-06-26 Pedro Alves <palves@redhat.com>
3467
3468 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3469 comment.
3470
3471 2013-06-26 Pedro Alves <palves@redhat.com>
3472
3473 * infrun.c: Update comments on stepping over runtime loader
3474 dynamic symbol resolution code.
3475
3476 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3477
3478 * ax-gdb.h (union exp_element): Forward declare.
3479 * parser-defs.h: Include expression.h.
3480
3481 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3482
3483 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3484
3485 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3486
3487 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3488
3489 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3490
3491 Fix trace-status to output proper start-time and stop-time.
3492 * tracepoint.c (trace_status_command): Fix type of printf arg to
3493 prevent improper type conversion.
3494 (trace_status_mi): Likewise.
3495
3496 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3497
3498 * mips-tdep.c (mips_next_pc): Fix a typo.
3499
3500 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3501
3502 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3503
3504 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3505 Yao Qi <yao@codesourcery.com>
3506
3507 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3508 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3509 * mi/mi-main.c (print_variable_or_computed): New function.
3510 (mi_cmd_trace_frame_collected): New function.
3511 * tracepoint.c (find_trace_state_variable_by_number): New.
3512 (struct traceframe_info): Move to tracepoint.h
3513 (struct collection_list): Likewise.
3514 (do_collect_symbol): Include locals and arguments in the
3515 collected variables list.
3516 (clear_collection_list): Clear wholly collected variables list
3517 and computed variables list.
3518 (append_exp): New function.
3519 (encode_actions_1): Include variables in the wholly
3520 collected variables list. Include memory ranges and
3521 full-fledged expressions in the computed expressions list.
3522 (encode_actions): Move some code to ...
3523 Return the cleanup chain.
3524 (encode_actions_rsp): ... here. New function.
3525 (get_traceframe_location, get_traceframe_info): Remove static.
3526 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3527 (struct collection_list): Moved from tracepoint.c. Add two
3528 new fields 'wholly_collected' and 'computed'.
3529 (find_trace_state_variable_by_number): Declare.
3530 (encode_actions): Adjust declaration.
3531 (encode_actions_rsp): Declare.
3532 (get_traceframe_info, get_traceframe_location): Declare.
3533
3534 * NEWS: Mention new MI command -trace-frame-collected.
3535
3536 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3537 Yao Qi <yao@codesourcery.com>
3538
3539 * ctf.c (ctf_traceframe_info): Push trace state variables
3540 present in the trace data into the traceframe info object.
3541 * breakpoint.c (DEF_VEC_I): Remove.
3542 * common/filestuff.c (DEF_VEC_I): Likewise.
3543 * dwarf2loc.c (DEF_VEC_I): Likewise.
3544 * mi/mi-main.c (DEF_VEC_I): Likewise.
3545 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3546 * features/traceframe-info.dtd: Add tvar element and its
3547 attributes.
3548 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3549 (build_traceframe_info): Push trace state variables present in
3550 the trace data into the traceframe info object.
3551 (traceframe_info_start_tvar): New function.
3552 (tvar_attributes): New.
3553 (traceframe_info_children): Add "tvar" element.
3554 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3555
3556 * NEWS: Mention the change in GDB and GDBserver.
3557
3558 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3559 Yao Qi <yao@codesourcery.com>
3560
3561 * tracepoint.c (trace_dump_command): Move code to ...
3562 (get_traceframe_location): ... here. New.
3563
3564 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3565 Yao Qi <yao@codesourcery.com>
3566
3567 * tracepoint.c (trace_dump_command): GDB emits an error
3568 instead of a warning when a traceframe is not selected.
3569
3570 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3571 Yao Qi <yao@codesourcery.com>
3572
3573 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3574 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3575 in collection_list.
3576 (do_clear_collection_list, init_collection_list): New.
3577 (encode_actions): Add local variables 'tracepoint_list' and
3578 'stepping_list'. Call init_collection_list and make cleanup
3579 which calls do_clear_collection_list. Don't call
3580 clear_collection_list.
3581 (_initialize_tracepoint): Delete references to
3582 'tracepoint_list' and 'stepping_list'.
3583
3584 2013-06-25 Tom Tromey <tromey@redhat.com>
3585
3586 * common/create-version.sh (date): Use "$", not "$$" in sed
3587 expression.
3588
3589 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3590
3591 * NEWS (New targets): Add entry for TI MSP430.
3592
3593 2013-06-25 Yao Qi <yao@codesourcery.com>
3594
3595 * remote.c (remote_start_remote): Move code to upload tsv
3596 earlier.
3597
3598 2013-06-25 Yao Qi <yao@codesourcery.com>
3599 Hui Zhu <hui@codesourcery.com>
3600 Pedro Alves <palves@redhat.com>
3601
3602 PR breakpoints/15075
3603 PR breakpoints/15434
3604 * breakpoint.c (bpstat_stop_status): Call
3605 b->ops->after_condition_true.
3606 (update_dprintf_command_list): Don't append "continue" command
3607 to the command list of dprintf breakpoint.
3608 (base_breakpoint_after_condition_true): New function.
3609 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3610 (dprintf_after_condition_true): New function.
3611 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3612 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3613
3614 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3615
3616 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3617 (ALLDEPFILES): Add msp430-tdep.c.
3618 * configure.tgt (msp430*-*-elf): New target.
3619 * msp430-tdep.c: New file.
3620
3621 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3622
3623 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3624 microMIPS synthetic symbols.
3625
3626 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3627
3628 * objfiles.h (pc_in_section): New prototype.
3629 (in_plt_section): Remove name argument, replace prototype with
3630 static inline function.
3631 * mips-tdep.h: Include "objfiles.h".
3632 (in_mips_stubs_section): New function.
3633 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3634 in_solib_call_trampoline member.
3635 (hppa_in_solib_call_trampoline): Remove name argument.
3636 * objfiles.c (pc_in_section): New function.
3637 (in_plt_section): Remove function.
3638 * mips-linux-tdep.c: Include "objfiles.h".
3639 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3640 name argument. Return 1 rather than the low 16-bit halfword of
3641 any instruction examined.
3642 (mips_linux_in_dynsym_resolve_code): Update
3643 mips_linux_in_dynsym_stub call accordingly.
3644 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3645 rather than an equivalent hand-coded sequence.
3646 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3647 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3648 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3649 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3650 in_opd_section.
3651 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3652 on call to tdep->in_solib_call_trampoline.
3653 (hppa_in_solib_call_trampoline): Remove name argument, update
3654 according to in_plt_section change.
3655 (hppa_skip_trampoline_code): Update according to in_plt_section
3656 change.
3657 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3658 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3659 Likewise.
3660 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3661 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3662 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3663 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3664 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3665 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3666 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3667 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3668 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3669 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3670 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3671 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3672 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3673
3674 2013-06-24 Joel Brobecker <brobecker@adacore.com>
3675
3676 * common/create-version.sh: Fix expansion of $host_alias
3677 and $target_alias in generation of HOST_NAME and TARGET_NAME
3678 (resp.).
3679
3680 2013-06-24 Tom Tromey <tromey@redhat.com>
3681
3682 * common/create-version.sh: New file.
3683 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3684 create-version.sh.
3685 (HFILES_NO_SRCDIR): Use common/version.h.
3686 * version.in: Move to ...
3687 * common/version.in: ... here. Replace date with "DATE".
3688 * version.h: Move to ...
3689 * common/version.h: ... here.
3690
3691 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3692
3693 * gdb/gnulib/Makefile.in: Update date in copyright header.
3694 * gdb/gnulib/configure.ac: Ditto.
3695 * gdb/gnulib/update-gnulib.sh: Ditto.
3696
3697 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3698
3699 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3700 "gdb/gnulib/import".
3701
3702 2013-06-21 Will Newton <will.newton@linaro.org>
3703
3704 * doublest.c (ldfrexp): Remove function.
3705 (convert_doublest_to_floatformat): Call frexpl instead of
3706 ldfrexp.
3707
3708 2013-06-21 Will Newton <will.newton@linaro.org>
3709
3710 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3711 * gnulib/aclocal.m4: Regenerate.
3712 * gnulib/config.in: Regenerate.
3713 * gnulib/configure: Regenerate.
3714 * gnulib/import/Makefile.am: Update.
3715 * gnulib/import/Makefile.in: Update.
3716 * gnulib/import/m4/gnulib-cache.m4: Update.
3717 * gnulib/import/m4/gnulib-comp.m4: Update.
3718 * gnulib/import/float+.h: Import.
3719 * gnulib/import/float.c: Import.
3720 * gnulib/import/float.in.h: Import.
3721 * gnulib/import/fpucw.h: Import.
3722 * gnulib/import/frexp.c: Import.
3723 * gnulib/import/frexpl.c: Import.
3724 * gnulib/import/isnan.c: Import.
3725 * gnulib/import/isnand-nolibm.h: Import.
3726 * gnulib/import/isnand.c: Import.
3727 * gnulib/import/isnanl-nolibm.h: Import.
3728 * gnulib/import/isnanl.c: Import.
3729 * gnulib/import/itold.c: Import.
3730 * gnulib/import/m4/exponentd.m4: Import.
3731 * gnulib/import/m4/exponentl.m4: Import.
3732 * gnulib/import/m4/float_h.m4: Import.
3733 * gnulib/import/m4/fpieee.m4: Import.
3734 * gnulib/import/m4/frexp.m4: Import.
3735 * gnulib/import/m4/frexpl.m4: Import.
3736 * gnulib/import/m4/isnand.m4: Import.
3737 * gnulib/import/m4/isnanl.m4: Import.
3738 * gnulib/import/m4/math_h.m4: Import.
3739 * gnulib/import/math.c: Import.
3740 * gnulib/import/math.in.h: Import.
3741
3742 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3743
3744 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3745 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3746 signature_INTEL_edx comparisons.
3747
3748 2013-06-20 Doug Evans <dje@google.com>
3749
3750 symtab/15652
3751 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3752 All callers updated.
3753 (open_dwp_file): If we can't find the dwp file, search the basename
3754 in debug-file-directory.
3755
3756 * dwarf2read.c (struct dwp_file): Fix comment.
3757 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3758
3759 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3760 better.
3761
3762 2013-06-20 Yao Qi <yao@codesourcery.com>
3763
3764 * breakpoint.c (create_breakpoint): Fix code indentation.
3765
3766 2013-06-20 Yao Qi <yao@codesourcery.com>
3767
3768 * breakpoint.c (create_breakpoints_sal_default): Remove
3769 parameter 'lsal'. Update declaration.
3770 (bkpt_create_breakpoints_sal): Caller update.
3771 (tracepoint_create_breakpoints_sal): Likewise.
3772
3773 2013-06-20 Pedro Alves <pedro@codesourcery.com>
3774 Yao Qi <yao@codesourcery.com>
3775
3776 * NEWS: Mention the new option '--skip-unavailable' of command
3777 -data-list-register-values.
3778 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3779 --skip-unavailable option. Adjust to use output_register.
3780 (output_register): Add new 'skip_unavailable' parameter.
3781 Handle it.
3782
3783 2013-06-19 Mike Frysinger <vapier@gentoo.org>
3784
3785 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3786 common/i386-gcc-cpuid.h.
3787 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3788 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3789 Copy the latest version from upstream gcc.
3790 * common/linux-btrace.c: Include i386-cpuid.h.
3791 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3792 call to i386_cpuid.
3793 (cpu_supports_btrace): Likewise.
3794 * go32-nat.c: Include i386-cpuid.h.
3795 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3796
3797 2013-06-19 Doug Evans <dje@google.com>
3798
3799 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3800 (get_section_index): Ditto.
3801
3802 2013-06-19 Tom Tromey <tromey@redhat.com>
3803
3804 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3805 "dprintf" help.
3806
3807 2013-06-18 Doug Evans <dje@google.com>
3808
3809 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3810 before using it.
3811 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3812 Move test of cu_index closer to use. Print complaint if cu_index
3813 is bad.
3814
3815 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3816
3817 * machoread.c (oso_vector): Delete this global.
3818 (macho_register_oso): Add new parameter "oso_vector_ptr".
3819 Use it instead of the "oso_vector" global.
3820 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3821 (macho_symfile_read): Use a local oso_vector, to be free'ed
3822 at the end of this function, in place of the old "oso_vector"
3823 global. Update various function calls accordingly. Use one
3824 single cleanup chain for the entire function.
3825
3826 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3827
3828 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
3829 DWARF2_PER_OBJFILE by uses of DATA instead.
3830
3831 2013-06-18 Tom Tromey <tromey@redhat.com>
3832
3833 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3834 argument.
3835 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3836 Special case signals other than GDB_SIGNAL_TRAP.
3837 (explains_signal_watchpoint): New function.
3838 (base_breakpoint_explains_signal): Add 'sig' argument.
3839 (initialize_breakpoint_ops): Set 'explains_signal' method for
3840 watchpoints.
3841 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3842 signal argument.
3843 (bpstat_explains_signal): Likewise.
3844 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3845
3846 2013-06-18 Tom Tromey <tromey@redhat.com>
3847
3848 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3849
3850 2013-06-18 Tom Tromey <tromey@redhat.com>
3851
3852 * python/python.c (finish_python_initialization): Decref
3853 'pythondir' on failure path as well.
3854
3855 2013-06-18 Tom Tromey <tromey@redhat.com>
3856
3857 PR symtab/15391:
3858 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3859 after taking bits_to_skip into account. Sign extend byte_offset.
3860 * utils.h (gdb_sign_extend): Declare.
3861 * utils.c (gdb_sign_extend): New function.
3862
3863 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3864
3865 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3866
3867 2013-06-17 Pierre Muller <muller@sourceware.org>
3868
3869 * corelow.c (core_open): Print GDB signal name instead of target
3870 signal number.
3871
3872 2013-06-17 Mike Frysinger <vapier@gentoo.org>
3873
3874 * .gitignore: Add /gcore.
3875
3876 2013-06-13 Doug Evans <dje@google.com>
3877
3878 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3879 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3880
3881 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3882
3883 * stack.c (backtrace_command_1): Fix indentation.
3884
3885 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3886
3887 * window-nat.c (thread_rec): Add missing empty line after
3888 local variable declaration.
3889
3890 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3891
3892 * windows-nat.c (thread_rec): Revert format used to print
3893 error code returned by SuspendThread from %d back to %u.
3894
3895 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3896
3897 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3898 ID in debug trace.
3899 (get_windows_debug_event): Likewise, for all debug traces.
3900
3901 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3902
3903 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3904 warning message.
3905
3906 2013-06-08 Pedro Alves <pedro@codesourcery.com>
3907 Yao Qi <yao@codesourcery.com>
3908
3909 * mi/mi-main.c (get_register): Remove declaration.
3910 (output_register): Declare.
3911 (mi_cmd_data_list_register_values): Remove local variable
3912 'tuple_cleanup'. Move some code into output_register.
3913 (get_register): Renamed to ...
3914 (output_register): ... this. Output the register's
3915 "number" ui_out tuple here.
3916
3917 2013-06-07 Pedro Alves <palves@redhat.com>
3918
3919 * darwin-nat.c: Fix formating in copyright header.
3920 * darwin-nat.h: Likewise.
3921 * gnu-nat.c: Likewise.
3922 * machoread.c: Likewise.
3923
3924 2013-06-07 Pedro Alves <palves@redhat.com>
3925
3926 PR server/14823
3927 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3928 static. Output a global target description pointer.
3929 (init_registers_${name}): Adjust to initialize a
3930 target description structure.
3931
3932 2013-06-07 Will Newton <will.newton@linaro.org>
3933
3934 * printcmd.c (build_address_symbolic): Call
3935 gdbarch_addr_bits_remove for text minimal symbols.
3936
3937 2013-06-07 Will Newton <will.newton@linaro.org>
3938
3939 * MAINTAINERS: Add myself to Write After Approval.
3940
3941 2013-06-07 Yao Qi <yao@codesourcery.com>
3942
3943 * tracepoint.c (start_tracing): Move code to ...
3944 (trace_reset_local_state): ... here. New.
3945 (disconnect_tracing): Don't call set_current_traceframe,
3946 set_tracepoint_num, and set_traceframe_context. Call
3947 trace_reset_local_state instead.
3948 (tfile_close): Call trace_reset_local_state.
3949 * ctf.c (ctf_close): Likewise.
3950 * remote.c (remote_close): Likewise.
3951 * tracepoint.h (trace_reset_local_state): Declare.
3952
3953 2013-06-06 Doug Evans <dje@google.com>
3954
3955 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3956 and fix header docs.
3957
3958 2013-06-05 Doug Evans <dje@google.com>
3959 Keith Seitz <keiths@redhat.com>
3960
3961 PR 15519
3962 * cp-namespace.c (find_symbol_in_baseclass): Call
3963 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3964 Check result of call to lookup_symbol_static.
3965 Call lookup_static_symbol_aux unconditionally.
3966 Call check_typedef on base types before accessing them.
3967 (cp_lookup_nested_symbol): Fix comment.
3968
3969 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
3970
3971 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3972 minimal symbols pointing to function descriptors.
3973
3974 2013-06-05 Tom Tromey <tromey@redhat.com>
3975
3976 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3977
3978 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3979 Pedro Alves <palves@redhat.com>
3980
3981 * remote.c (remote_wait_as): Restore signal handler before returning
3982 when GDB gets a notification.
3983
3984 2013-06-04 Gary Benson <gbenson@redhat.com>
3985
3986 PR 2328
3987 * breakpoint.h (handle_solib_event): Moved function declaration
3988 to solib.h.
3989 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3990 (bpstat_stop_status): Pass new argument to handle_solib_event.
3991 * solib.h (update_solib_breakpoints): New function declaration.
3992 (handle_solib_event): Moved function declaration from
3993 breakpoint.h.
3994 * solib.c (update_solib_breakpoints): New function.
3995 (handle_solib_event): Moved function from breakpoint.c.
3996 Updated to call solib_ops->handle_event if not NULL.
3997 * solist.h (target_so_ops): New fields "update_breakpoints" and
3998 "handle_event".
3999 * infrun.c (set_stop_on_solib_events): New function.
4000 (_initialize_infrun): Use the above for "set
4001 stop-on-solib-events".
4002 (handle_inferior_event): Pass new argument to handle_solib_event.
4003 * solib-svr4.c (probe.h): New include.
4004 (svr4_free_library_list): New forward declaration.
4005 (probe_action): New enum.
4006 (probe_info): New struct.
4007 (probe_info): New static variable.
4008 (NUM_PROBES): New definition.
4009 (svr4_info): New fields "using_xfer", "probes_table" and
4010 "solib_list".
4011 (free_probes_table): New function.
4012 (free_solib_list): New function.
4013 (svr4_pspace_data_cleanup): Free probes table and solib list.
4014 (svr4_copy_library_list): New function.
4015 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4016 (svr4_read_so_list): New parameter "prev_lm".
4017 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4018 (svr4_current_sos): New function.
4019 (probe_and_action): New struct.
4020 (hash_probe_and_action): New function.
4021 (equal_probe_and_action): Likewise.
4022 (register_solib_event_probe): Likewise.
4023 (solib_event_probe_at): Likewise.
4024 (solib_event_probe_action): Likewise.
4025 (solist_update_full): Likewise.
4026 (solist_update_incremental): Likewise.
4027 (disable_probes_interface_cleanup): Likewise.
4028 (svr4_handle_solib_event): Likewise.
4029 (svr4_update_solib_event_breakpoint): Likewise.
4030 (svr4_update_solib_event_breakpoints): Likewise.
4031 (svr4_create_solib_event_breakpoints): Likewise.
4032 (enable_break): Free probes table before creating breakpoints.
4033 Use svr4_create_solib_event_breakpoints to create breakpoints.
4034 (svr4_solib_create_inferior_hook): Free the solib list.
4035 (_initialize_svr4_solib): Initialise
4036 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4037
4038 2013-06-04 Gary Benson <gbenson@redhat.com>
4039
4040 * target.h (target_ops): New field
4041 "to_augmented_libraries_svr4_read".
4042 (target_augmented_libraries_svr4_read): New macro.
4043 * target.c (update_current_target): Handle
4044 to_augmented_libraries_svr4_read.
4045 * remote.c (remote_state): New field
4046 "augmented_libraries_svr4_read".
4047 (remote_augmented_libraries_svr4_read_feature): New function.
4048 (remote_protocol_features): Add entry for
4049 "augmented-libraries-svr4-read".
4050 (remote_augmented_libraries_svr4_read): New function.
4051 (init_remote_ops): Initialize
4052 remote_ops.to_augmented_libraries_svr4_read.
4053
4054 2013-06-04 Gary Benson <gbenson@redhat.com>
4055
4056 * NEWS: Update.
4057
4058 2013-06-04 Gary Benson <gbenson@redhat.com>
4059
4060 * objfiles.h (inhibit_section_map_updates): New function
4061 declaration.
4062 (resume_section_map_updates): Likewise.
4063 (resume_section_map_updates_cleanup): Likewise.
4064 * objfiles.c (objfile_pspace_info): Removed field
4065 "objfiles_changed_p". New fields "new_objfiles_available",
4066 "section_map_dirty" and "inhibit_updates".
4067 (allocate_objfile): Set new_objfiles_available.
4068 (free_objfile): Set section_map_dirty.
4069 (objfile_relocate1): Likewise.
4070 (in_plt_section): Likewise.
4071 (find_pc_section): Update the conditions under which the
4072 section map will be updated.
4073 (inhibit_section_map_updates): New function.
4074 (resume_section_map_updates): Likewise.
4075 (resume_section_map_updates_cleanup): Likewise.
4076
4077 2013-06-04 Gary Benson <gbenson@redhat.com>
4078
4079 * probe.h (get_probe_argument_count): New declaration.
4080 (evaluate_probe_argument): Likewise.
4081 * probe.c (get_probe_argument_count): New function.
4082 (evaluate_probe_argument): Likewise.
4083 (probe_safe_evaluate_at_pc): Use the above new functions.
4084
4085 2013-06-04 Alan Modra <amodra@gmail.com>
4086
4087 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4088 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4089 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4090 target mem reads on optional insns.
4091 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4092 ppc_insns_match_pattern calls.
4093 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4094 Add match for power7 thread safety insns, and new order of
4095 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4096 invocation in comment, and update rest of comment.
4097 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4098 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4099 (ppc64_standard_linkage2_target): Update insn offsets.
4100 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4101 stubs first. Update calls.
4102
4103 2013-06-04 Yao Qi <yao@codesourcery.com>
4104
4105 * solib.c (solib_find): Don't need dir separator if path has
4106 drive spec.
4107
4108 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4109
4110 Revert (indirectly causes a SIGSEGV):
4111 * machoread.c (macho_symfile_read): Assign first cleanup to
4112 'back_to'.
4113
4114 2013-06-03 Yao Qi <yao@codesourcery.com>
4115
4116 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4117 mi-parse.c. Make them static.
4118 (mi_all_values): Likewise.
4119 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4120 mi_parse_print_values. Make it external.
4121 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4122 Remove the declarations.
4123 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4124 * mi/mi-parse.h (mi_parse_print_values): Declare.
4125 * mi/mi-cmd-stack.c: Include mi-parse.h.
4126 (parse_print_values): Remove
4127 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4128 of parse_print_values.
4129 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4130
4131 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4132 Yao Qi <yao@codesourcery.com>
4133
4134 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4135 (encode_actions): Move code to ...
4136 (all_tracepoint_actions_and_cleanup): ... here. New.
4137 (trace_dump_command): Likewise.
4138
4139 2013-05-30 Tom Tromey <tromey@redhat.com>
4140
4141 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4142
4143 2013-05-30 Tom Tromey <tromey@redhat.com>
4144
4145 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4146 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4147 'old_chain' argument. Add 'parser_result' argument.
4148 (gdb_xml_create_parser_and_cleanup): Remove old version.
4149 (gdb_xml_parse_quick): Update.
4150 (xml_process_xincludes): Update.
4151 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4152 declare.
4153
4154 2013-05-30 Tom Tromey <tromey@redhat.com>
4155
4156 * probe.c (collect_probes): Check arguments for NULL before
4157 calling compile_rx_or_error.
4158 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4159 Remove NULL return.
4160
4161 2013-05-30 Tom Tromey <tromey@redhat.com>
4162
4163 * infrun.c (adjust_pc_after_break): Introduce an outer null
4164 cleanup.
4165
4166 2013-05-30 Tom Tromey <tromey@redhat.com>
4167
4168 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4169
4170 2013-05-30 Tom Tromey <tromey@redhat.com>
4171
4172 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4173 for 'old_chain'. Do not check 'head' before processing
4174 cleanups.
4175
4176 2013-05-30 Tom Tromey <tromey@redhat.com>
4177
4178 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4179 "cleanup_tuple".
4180
4181 2013-05-30 Tom Tromey <tromey@redhat.com>
4182
4183 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4184 inner scope. Unconditionally call do_cleanups.
4185
4186 2013-05-30 Tom Tromey <tromey@redhat.com>
4187
4188 * source.c (find_and_open_source): Call do_cleanups.
4189
4190 2013-05-30 Tom Tromey <tromey@redhat.com>
4191
4192 * linux-thread-db.c (thread_db_load_search): Unconditionally
4193 call do_cleanups.
4194
4195 2013-05-30 Tom Tromey <tromey@redhat.com>
4196
4197 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4198 for 'cleanup'; instead use a later one.
4199
4200 2013-05-30 Tom Tromey <tromey@redhat.com>
4201
4202 * python/py-breakpoint.c (bppy_get_commands): Use
4203 explicit, unconditional return.
4204 * python/py-frame.c (frapy_read_var): Likewise.
4205 * python/python.c (gdbpy_decode_line): Likewise.
4206
4207 2013-05-30 Tom Tromey <tromey@redhat.com>
4208
4209 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4210 do_cleanups on all return paths.
4211
4212 2013-05-30 Tom Tromey <tromey@redhat.com>
4213
4214 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4215
4216 2013-05-30 Tom Tromey <tromey@redhat.com>
4217
4218 * stabsread.c (read_struct_type): Call do_cleanups along
4219 all return paths.
4220
4221 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4222
4223 * mips-linux-tdep.c: Adjust formatting throughout.
4224
4225 2013-05-30 Tom Tromey <tromey@redhat.com>
4226
4227 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4228 along all return paths.
4229
4230 2013-05-30 Tom Tromey <tromey@redhat.com>
4231
4232 * symfile.c (find_separate_debug_file): Call do_cleanups
4233 along all return paths.
4234
4235 2013-05-30 Tom Tromey <tromey@redhat.com>
4236
4237 * symtab.c (search_symbols): Introduce a null cleanup for
4238 'retval_chain'.
4239
4240 2013-05-30 Tom Tromey <tromey@redhat.com>
4241
4242 * python/py-value.c (valpy_binop): Call do_cleanups before
4243 exiting loop.
4244
4245 2013-05-30 Tom Tromey <tromey@redhat.com>
4246
4247 * python/py-prettyprint.c (print_children): Remove extra
4248 do_cleanups call.
4249
4250 2013-05-30 Tom Tromey <tromey@redhat.com>
4251
4252 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4253 all return paths.
4254
4255 2013-05-30 Tom Tromey <tromey@redhat.com>
4256
4257 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4258 along all return paths.
4259
4260 2013-05-30 Tom Tromey <tromey@redhat.com>
4261
4262 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4263 call do_cleanups.
4264
4265 2013-05-30 Tom Tromey <tromey@redhat.com>
4266
4267 * varobj.c (c_value_of_root): Call do_cleanups along all
4268 return paths.
4269
4270 2013-05-30 Tom Tromey <tromey@redhat.com>
4271
4272 * tracepoint.c (trace_dump_command): Unconditionally call
4273 do_cleanups.
4274
4275 2013-05-30 Tom Tromey <tromey@redhat.com>
4276
4277 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4278 do_cleanups earlier.
4279
4280 2013-05-30 Tom Tromey <tromey@redhat.com>
4281
4282 * machoread.c (macho_symfile_read): Assign first cleanup to
4283 'back_to'.
4284
4285 2013-05-30 Tom Tromey <tromey@redhat.com>
4286
4287 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4288
4289 2013-05-30 Tom Tromey <tromey@redhat.com>
4290
4291 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4292
4293 2013-05-30 Tom Tromey <tromey@redhat.com>
4294
4295 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4296 call discard_cleanups.
4297 (inf_ptrace_attach): Likewise.
4298
4299 2013-05-30 Tom Tromey <tromey@redhat.com>
4300
4301 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4302 return paths.
4303 (mips_initialize): Likewise.
4304 (common_open): Call do_cleanups.
4305
4306 2013-05-30 Tom Tromey <tromey@redhat.com>
4307
4308 * utils.c (internal_vproblem): Call do_cleanups.
4309
4310 2013-05-30 Tom Tromey <tromey@redhat.com>
4311
4312 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4313
4314 2013-05-30 Tom Tromey <tromey@redhat.com>
4315
4316 * cli/cli-script.c (setup_user_args): Don't return after error.
4317
4318 2013-05-30 Tom Tromey <tromey@redhat.com>
4319
4320 * somread.c (som_symtab_read): Call do_cleanups.
4321
4322 2013-05-30 Tom Tromey <tromey@redhat.com>
4323
4324 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4325
4326 2013-05-30 Tom Tromey <tromey@redhat.com>
4327
4328 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4329 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4330 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4331 * source.c (show_substitute_path_command): Call do_cleanups.
4332 (unset_substitute_path_command, set_substitute_path_command):
4333 Likewise.
4334 * symfile.c (load_command): Call do_cleanups.
4335
4336 2013-05-30 Tom Tromey <tromey@redhat.com>
4337
4338 * contrib/cleanup_check.py: New file.
4339 * contrib/gcc-with-excheck: Add option parsing.
4340
4341 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4342
4343 * windows-nat.c (windows_delete_thread): Add missing space
4344 in cast expression.
4345
4346 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4347
4348 * inferior.c (top level): Include tilde.h.
4349 (add_inferior_command): Call tilde_expand on the value of 'exec'
4350 argument.
4351
4352 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4353 Yao Qi <yao@codesourcery.com>
4354
4355 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4356 Caller update.
4357 (encode_actions): Likewise.
4358 * remote.c (remote_download_tracepoint): Caller update.
4359 * tracepoint.h (encode_actions): Update declaration.
4360
4361 2013-05-30 Pedro Alves <palves@redhat.com>
4362
4363 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4364 pointer.
4365
4366 2013-05-30 Yao Qi <yao@codesourcery.com>
4367
4368 * remote.c (remote_check_symbols): Remove unused parameter
4369 'objfile'.
4370 Declaration update.
4371 (remote_start_remote, remote_new_objfile): Caller update.
4372
4373 2013-05-30 Yao Qi <yao@codesourcery.com>
4374
4375 * mi/mi-cmds.c (mi_cmds): Define MI command
4376 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4377 DEF_MI_CMD_CLI.
4378
4379 2013-05-29 Pedro Alves <palves@redhat.com>
4380
4381 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4382 (remote_insert_watchpoint, remote_remove_watchpoint)
4383 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4384 (remote_verify_memory, compare_sections_command)
4385 (remote_search_memory): Set the general process/thread on the
4386 remote side.
4387
4388 2013-05-29 Pedro Alves <palves@redhat.com>
4389
4390 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4391 (_initialize_aarch64_tdep): Don't call
4392 initialize_tdesc_aarch64_without_fpu.
4393 * features/Makefile (WHICH): Remove reference to
4394 aarch64-without-fpu.
4395 * features/aarch64-without-fpu.c: Delete file.
4396 * regformats/aarch64-without-fpu.dat: Delete file.
4397
4398 2013-05-28 Yao Qi <yao@codesourcery.com>
4399
4400 * tracepoint.c (stringify_collection_list): Remove parameter
4401 'string'.
4402 (encode_actions): Caller update. Remove local variables.
4403
4404 2013-05-24 Yao Qi <yao@codesourcery.com>
4405
4406 * tracepoint.c (TFILE_PID): Remove.
4407 (tfile_open): Don't add thread and inferior.
4408 (tfile_close): Don't set 'inferior_ptid'. Don't call
4409 exit_inferior_silent.
4410 (tfile_thread_alive): Remove.
4411 (init_tfile_ops): Don't set field 'to_thread_alive' of
4412 tfile_ops.
4413
4414 2013-05-23 Doug Evans <dje@google.com>
4415
4416 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4417
4418 2013-05-23 Pedro Alves <palves@redhat.com>
4419
4420 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4421 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4422 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4423 Only define if HAVE_SOCKETS is defined.
4424 * configure.ac: Check for sys/socket.h.
4425 * config.in, configure: Regenerate.
4426
4427 2013-05-23 Pedro Alves <palves@redhat.com>
4428
4429 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4430 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4431 printing uint32_t variables.
4432
4433 2013-05-23 Pedro Alves <palves@redhat.com>
4434
4435 * NEWS: Mention GDBserver range stepping support.
4436
4437 2013-05-23 Yao Qi <yao@codesourcery.com>
4438 Pedro Alves <palves@redhat.com>
4439
4440 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4441 field.
4442 * infcmd.c (step_once, until_next_command): Enable range stepping.
4443 * infrun.c (displaced_step_prepare): Disable range stepping.
4444 (resume): Disable range stepping if stepping over a breakpoint or
4445 we have software watchpoints. If range stepping is enabled,
4446 assert the thread is in the stepping range.
4447 (clear_proceed_status_thread): Clear may_range_step.
4448 (handle_inferior_event): Disable range stepping as soon as we know
4449 the thread that hit the event. Re-enable it whenever we're going
4450 to step with a step range.
4451 * remote.c (struct vCont_action_support) <r>: New field.
4452 (use_range_stepping): New global.
4453 (remote_vcont_probe): Handle 'r' action.
4454 (append_resumption): Append an 'r' action if the thread may range
4455 step.
4456 (show_range_stepping): New function.
4457 (set_range_stepping): New function.
4458 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4459 'set range-stepping' and 'show range-stepping' commands.
4460 * NEWS: Mention range stepping, the new vCont;r action, and the
4461 new "set/show range-stepping" commands.
4462
4463 2013-05-23 Yao Qi <yao@codesourcery.com>
4464 Pedro Alves <palves@redhat.com>
4465
4466 * remote.c (struct vCont_action_support): New struct.
4467 (struct remote_state) <support_vCont_t>: Remove field.
4468 <vCont_actions_support>: New field.
4469 (remote_vcont_probe, remote_stop_ns): Update.
4470
4471 2013-05-23 Yao Qi <yao@codesourcery.com>
4472 Pedro Alves <palves@redhat.com>
4473
4474 * gdbthread.h (pc_in_thread_step_range): New declaration.
4475 * thread.c (pc_in_thread_step_range): New function.
4476 * infrun.c (handle_inferior_event): Use it.
4477
4478 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4479
4480 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4481 of sprintf.
4482
4483 2013-05-22 Keith Seitz <keiths@redhat.com>
4484
4485 * ada-lang.c (is_known_support_routine): Add explicit free of
4486 'func_name' from find_frame_funname.
4487 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4488 for func_name from find_frame_funname.
4489 * python/py-frame.c (frapy_name): Add explicit free of
4490 'name' from find_frame_funname.
4491 * stack.c (find_frame_funname): Add comment explaining that
4492 funcp must be freed by the caller.
4493 Return copy of symbol names instead of pointers.
4494 (print_frame): Add a cleanup for 'funname' from
4495 find_frame_funname.
4496 * stack.h (find_frame_funname): Remove "const" from
4497 'funname' parameter.
4498
4499 2013-05-22 Tom Tromey <tromey@redhat.com>
4500
4501 PR c++/15401:
4502 * c-valprint.c (c_value_print): Use value_addr for
4503 references. Convert back to reference type with value_ref.
4504
4505 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4506
4507 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4508 unloaded DLL, it will be done by handle_solib_event. See
4509 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4510 details.
4511
4512 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4513
4514 * ui-out.c: Create typedef ui_out_level_p and define vector
4515 operations for that type.
4516 (struct ui_out): Use a vector instead of an array.
4517 (current_level): Return level from a vector.
4518 (push_level): Create a level in a vector.
4519 (pop_level): Delete a level in a vector.
4520 (ui_out_new): Create initial level zero level, and store in a
4521 vector.
4522 (ui_out_destroy): Add vector cleanup.
4523
4524 2013-05-22 Pedro Alves <palves@redhat.com>
4525
4526 * python/python-internal.h (gdb_Py_DECREF): Tag with
4527 "ARI: editCase function".
4528
4529 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4530
4531 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4532
4533 2013-05-21 Pedro Alves <palves@redhat.com>
4534
4535 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4536 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4537 * python/py-utils.c (py_decref): Don't check for NULL before
4538 calling Py_DECREF.
4539
4540 2013-05-21 Pedro Alves <palves@redhat.com>
4541
4542 * python/py-utils.c (py_decref): Remove extra braces.
4543 (gdb_pymodule_addobject): Remove extra braces.
4544 * python-internal.h (gdb_Py_DECREF): New static inline function.
4545 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4546
4547 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4548
4549 * breakpoints.c (detach_breakpoints): Do not
4550 detach breakpoints locations with loc_type bp_loc_other.
4551
4552 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4553
4554 Workaround Python 2.6.
4555 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4556 a block.
4557
4558 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4559
4560 Code cleanup: constification.
4561 * solib.c (solib_ops): Make return type and ops variable type const.
4562 (set_solib_ops): Make the new_ops parameter and ops variable const.
4563 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4564 (solib_add, solib_keep_data_in_core, clear_solib)
4565 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4566 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4567 const.
4568 * solib.h (set_solib_ops): Make the new_ops parameter const.
4569
4570 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4571
4572 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4573 variable.
4574 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4575 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4576 (SYSTEM_GDBINIT_FILES): New variables.
4577 (all): Add stamp-system-gdbinit.
4578 (stamp-system-gdbinit): New rule.
4579 (clean-system-gdbinit, install-system-gdbinit)
4580 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4581 (install-only): Add dependency on install-system-gdbinit.
4582 (uninstall): Add dependency on uninstall-system-gdbinit.
4583 (clean): Add dependency on clean-system-gdbinit.
4584 * system-gdbinit/elinos.py: New file.
4585 * system-gdbinit/wrs-linux.py: New file.
4586
4587 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4588
4589 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4590
4591 2013-05-21 Hui Zhu <hui@codesourcery.com>
4592
4593 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4594 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4595 * mi/mi-cmd-break.c (ctype.h): New include.
4596 (gdb_obstack.h): New include.
4597 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4598 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4599 (mi_cmd_dprintf_insert): New.
4600 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4601 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4602
4603 2013-05-20 Tom Tromey <tromey@redhat.com>
4604
4605 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4606
4607 2013-05-20 Tom Tromey <tromey@redhat.com>
4608
4609 * python/py-value.c (valpy_get_dynamic_type): Simplify
4610 dynamic_type assignment. Use Py_XINCREF.
4611
4612 2013-05-20 Tom Tromey <tromey@redhat.com>
4613
4614 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4615
4616 2013-05-20 Tom Tromey <tromey@redhat.com>
4617
4618 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4619 (gdbpy_selected_frame): Move object-construction code
4620 out of TRY_CATCH.
4621
4622 2013-05-20 Tom Tromey <tromey@redhat.com>
4623
4624 * python/py-arch.c (gdbpy_initialize_arch): Use
4625 gdb_pymodule_addobject.
4626 * python/py-block.c (gdbpy_initialize_blocks): Use
4627 gdb_pymodule_addobject.
4628 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4629 gdb_pymodule_addobject.
4630 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4631 gdb_pymodule_addobject.
4632 * python/py-event.c (gdbpy_initialize_event_generic): Use
4633 gdb_pymodule_addobject.
4634 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4635 gdb_pymodule_addobject.
4636 * python/py-evts.c (add_new_registry): Use
4637 gdb_pymodule_addobject.
4638 (gdbpy_initialize_py_events): Likewise.
4639 * python/py-finishbreakpoint.c
4640 (gdbpy_initialize_finishbreakpoints): Use
4641 gdb_pymodule_addobject.
4642 * python/py-frame.c (gdbpy_initialize_frames): Use
4643 gdb_pymodule_addobject.
4644 * python/py-function.c (gdbpy_initialize_functions): Use
4645 gdb_pymodule_addobject.
4646 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4647 gdb_pymodule_addobject.
4648 * python/py-infthread.c (gdbpy_initialize_thread): Use
4649 gdb_pymodule_addobject.
4650 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4651 gdb_pymodule_addobject.
4652 * python/py-param.c (gdbpy_initialize_parameters): Use
4653 gdb_pymodule_addobject.
4654 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4655 gdb_pymodule_addobject.
4656 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4657 gdb_pymodule_addobject.
4658 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4659 gdb_pymodule_addobject.
4660 * python/py-type.c (gdbpy_initialize_types): Use
4661 gdb_pymodule_addobject.
4662 * python/py-utils.c (gdb_pymodule_addobject): New function.
4663 * python/py-value.c (gdbpy_initialize_values): Use
4664 gdb_pymodule_addobject.
4665 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4666 * python/python.c (_initialize_python): Use
4667 gdb_pymodule_addobject.
4668
4669 2013-05-20 Tom Tromey <tromey@redhat.com>
4670
4671 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4672 * python/py-param.c (get_set_value, get_show_value): Use
4673 explicit decrefs.
4674 * python/python.c (start_type_printers, apply_type_printers):
4675 Use explicit decrefs.
4676
4677 2013-05-20 Tom Tromey <tromey@redhat.com>
4678
4679 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4680 incref the module.
4681
4682 2013-05-20 Tom Tromey <tromey@redhat.com>
4683
4684 * python/python.c (gdbpy_run_events): Decref the result
4685 of PyObject_CallObject.
4686
4687 2013-05-20 Tom Tromey <tromey@redhat.com>
4688
4689 * python/py-symtab.c (set_sal): Use
4690 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4691 (symtab_and_line_to_sal_object): Update.
4692
4693 2013-05-20 Tom Tromey <tromey@redhat.com>
4694
4695 * python/py-param.c (compute_enum_values): Decref 'item'.
4696
4697 2013-05-20 Tom Tromey <tromey@redhat.com>
4698
4699 * mi/mi-main.c: Include python-internal.h.
4700 (mi_cmd_list_features): Check gdb_python_initialized.
4701 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4702 (python_inferior_exit, python_new_objfile, add_thread_object)
4703 (delete_thread_object, py_free_inferior): Check
4704 gdb_python_initialized.
4705 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4706 gdb_python_initialized.
4707 * python/py-type.c (save_objfile_types): Check
4708 gdb_python_initialized.
4709 * python/python-internal.h (gdb_python_initialized): Declare.
4710 * python/python.c (ensure_python_env): Throw exception if
4711 Python not initialized.
4712 (before_prompt_hook, source_python_script_for_objfile)
4713 (start_type_printers, apply_type_printers,
4714 free_type_printers): Check gdb_python_initialized.
4715 * varobj.c (varobj_get_display_hint)
4716 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4717 (install_new_value_visualizer, varobj_set_visualizer)
4718 (value_get_print_value): Check gdb_python_initialized.
4719
4720 2013-05-20 Tom Tromey <tromey@redhat.com>
4721
4722 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4723 Check errors.
4724 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4725 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4726 Check errors.
4727 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4728 Check errors.
4729 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4730 Check errors.
4731 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4732 Check errors.
4733 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4734 init function to return 'int'.
4735 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4736 Return 'int'. Check errors.
4737 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4738 Check errors.
4739 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4740 Return 'int'. Check errors.
4741 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4742 Check errors.
4743 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4744 Check errors.
4745 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4746 Check errors.
4747 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4748 Check errors.
4749 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4750 Check errors.
4751 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4752 Check errors.
4753 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4754 Check errors.
4755 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4756 Check errors.
4757 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4758 Check errors.
4759 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4760 Check errors.
4761 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4762 Check errors.
4763 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4764 Check errors.
4765 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4766 Check errors.
4767 * python/python-internal.h (gdbpy_initialize_auto_load,
4768 gdbpy_initialize_values, gdbpy_initialize_frames,
4769 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4770 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4771 gdbpy_initialize_blocks, gdbpy_initialize_types,
4772 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4773 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4774 gdbpy_initialize_finishbreakpoints,
4775 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4776 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4777 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4778 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4779 gdbpy_initialize_signal_event,
4780 gdbpy_initialize_breakpoint_event,
4781 gdbpy_initialize_continue_event,
4782 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4783 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4784 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4785 * python/python.c (gdb_python_initialized): New global.
4786 (gdbpy_initialize_events): Return 'int'. Check errors.
4787 (_initialize_python): Check errors. Set
4788 gdb_python_initialized.
4789
4790 2013-05-20 Tom Tromey <tromey@redhat.com>
4791
4792 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4793 Decref the reslut of PyObject_CallMethod.
4794
4795 2013-05-20 Tom Tromey <tromey@redhat.com>
4796
4797 * python/py-event.c (gdbpy_initialize_event_generic): Return
4798 early if PyType_Ready fails.
4799
4800 2013-05-20 Tom Tromey <tromey@redhat.com>
4801
4802 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4803 as 'default' in the switch.
4804
4805 2013-05-20 Tom Tromey <tromey@redhat.com>
4806
4807 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4808 get_addr_from_python calls out of TRY_CATCH.
4809 (infpy_write_memory, infpy_search_memory): Likewise.
4810 * python/py-utils.c (get_addr_from_python): Return negative
4811 value on error. Use TRY_CATCH.
4812 * python/python-internal.h (get_addr_from_python): Use
4813 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4814
4815 2013-05-20 Tom Tromey <tromey@redhat.com>
4816
4817 * python/py-event.c (evpy_emit_event): Decref the
4818 result of PyObject_CallFunctionObjArgs.
4819
4820 2013-05-20 Tom Tromey <tromey@redhat.com>
4821
4822 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4823 Correctly decref.
4824
4825 2013-05-20 Tom Tromey <tromey@redhat.com>
4826
4827 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4828
4829 2013-05-20 Tom Tromey <tromey@redhat.com>
4830
4831 * python/py-event.h (gdbpy_initialize_event_generic): Use
4832 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4833 * python/py-evts.c (add_new_registry): Use
4834 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4835 * python/python-internal.h
4836 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4837
4838 2013-05-20 Tom Tromey <tromey@redhat.com>
4839
4840 * python/py-arch.c (archpy_disassemble): Update.
4841 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4842 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4843 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4844 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4845 macro.
4846 (GDB_PY_HANDLE_EXCEPTION): Update.
4847 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4848
4849 2013-05-20 Tom Tromey <tromey@redhat.com>
4850
4851 * python/python-internal.h (events_object_type): Remove.
4852
4853 2013-05-20 Tom Tromey <tromey@redhat.com>
4854
4855 * python/py-event.h (evpy_emit_event): Use
4856 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4857 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4858 New macro.
4859
4860 2013-05-20 Tom Tromey <tromey@redhat.com>
4861
4862 * py-evtregistry.c (create_event_object): Decref
4863 eventregistry_object if PyList_New fails.
4864
4865 2013-05-20 Tom Tromey <tromey@redhat.com>
4866
4867 * py-cmd.c (gdbpy_string_to_argv): Check result of
4868 PyList_New.
4869
4870 2013-05-20 Tom Tromey <tromey@redhat.com>
4871
4872 * python/python.c (before_prompt_hook): Add cleanup to
4873 decref 'hook'.
4874
4875 2013-05-20 Tom Tromey <tromey@redhat.com>
4876
4877 * python/py-function.c (fnpy_init): Decref result of
4878 PyObject_GetAttrString.
4879
4880 2013-05-20 Tom Tromey <tromey@redhat.com>
4881
4882 * python/py-threadevent.c (get_event_thread): Use
4883 CPYCHECKER_RETURNS_BORROWED_REF.
4884 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4885 New define.
4886 (pspace_to_pspace_object, objfile_to_objfile_object)
4887 (find_thread_object): Use it.
4888
4889 2013-05-20 Tom Tromey <tromey@redhat.com>
4890
4891 * python/py-arch.c (arch_object_type): Use
4892 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4893 * python/py-block.c (block_syms_iterator_object_type):
4894 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4895 * python/py-bpevent.c (breakpoint_event_object_type):
4896 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4897 * python/py-cmd.c (cmdpy_object_type): Use
4898 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4899 * python/py-continueevent.c (continue_event_object_type):
4900 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4901 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4902 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4903 * python/py-events.h (thread_event_object_type):
4904 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4905 * python/py-evtregistry.c (eventregistry_object_type): Use
4906 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4907 * python/py-exitedevent.c (exited_event_object_type):
4908 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4909 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4910 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4911 * python/py-function.c (fnpy_object_type): Use
4912 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4913 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4914 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4915 * python/py-infthread.c (thread_object_type): Use
4916 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4917 * python/py-lazy-string.c (lazy_string_object_type):
4918 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4919 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4920 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4921 * python/py-objfile.c (objfile_object_type): Use
4922 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4923 * python/py-param.c (parmpy_object_type):
4924 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4925 * python/py-progspace.c (pspace_object_type):
4926 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4927 * python/py-signalevent.c (signal_event_object_type):
4928 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4929 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4930 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4931 * python/py-type.c (type_object_type, field_object_type)
4932 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4933 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4934 define.
4935 (value_object_type, block_object_type, symbol_object_type)
4936 (event_object_type, stop_event_object_type, breakpoint_object_type)
4937 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4938
4939 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
4940
4941 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4942 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4943
4944 2013-05-20 Doug Evans <dje@google.com>
4945
4946 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4947 For Fission.
4948 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4949 reading_dwo_directly.
4950 (struct signatured_type): New member dwo_unit.
4951 (struct die_reader_specs): New member comp_dir.
4952 (create_signatured_type_table_from_index): Use malloc for
4953 all_type_units instead of objfile's obstack.
4954 (create_all_type_units): Ditto.
4955 (fill_in_sig_entry_from_dwo_entry): New function.
4956 (add_type_unit): New function.
4957 (lookup_dwo_signatured_type): New function.
4958 (lookup_dwp_signatured_type): New function.
4959 (lookup_signatured_type): New arg cu. All callers updated.
4960 (init_cu_die_reader): Initialize comp_dir.
4961 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4962 Change assert of matching type signatures to call error on mismatch.
4963 (lookup_dwo_unit): Add assert.
4964 (init_tu_and_read_dwo_dies): New function.
4965 (init_cutu_and_read_dies): Call it.
4966 (build_type_unit_groups): Handle case of no type unit groups created.
4967 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4968 (lookup_dwo_cutu): Tweak complaint.
4969 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4970 (dwarf2_per_objfile_free): Free all_type_units.
4971
4972 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4973
4974 * windows-nat.c (handle_unload_dll): Add missing empty line.
4975
4976 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4977
4978 * dwarf2read.c (prototyped_function_p): New function.
4979 (read_subroutine_type): Use it.
4980
4981 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4982
4983 * rs6000-aix-tdep.c: De-indent some example code provided
4984 as a comment.
4985
4986 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4987
4988 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4989 region is ok for a hardware watchpoint using the new ptrace interface
4990 on Power servers.
4991
4992 2013-05-17 Doug Evans <dje@google.com>
4993
4994 * NEWS: Mention new maintenance commands check-symtabs, and
4995 expand-symtabs, and renamed check-psymtabs.
4996 * psymtab.c (maintenance_check_psymtabs): Renamed from
4997 maintenance_check_symtabs. Only process already-expanded symbol
4998 tables.
4999 (_initialize_psymtab): Update.
5000 * symmisc.c (maintenance_check_symtabs): New function.
5001 (maintenance_expand_name_matcher): New function
5002 (maintenance_expand_file_matcher): New function
5003 (maintenance_expand_symtabs): New function.
5004 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5005 commands.
5006
5007 2013-05-17 Tom Tromey <tromey@redhat.com>
5008
5009 * python/py-inferior.c (infpy_read_memory): Don't call
5010 PyErr_SetString if PyObject_New fails.
5011 * python/py-frame.c (frame_info_to_frame_object): Don't call
5012 PyErr_SetString if PyObject_New fails.
5013
5014 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5015
5016 * acinclude.m4: Add check for dlopen in libdl.
5017 * configure.ac: Ditto.
5018 * configure: Regenerate.
5019
5020 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5021
5022 * frame.c (frame_stash): Convert to htab.
5023 (frame_addr_hash): New function.
5024 (frame_addr_hash_eq): New function.
5025 (frame_stash_create): Convert function to create
5026 a hash table.
5027 (frame_stash_add): Convert function to add an entry to a hash
5028 table.
5029 (frame_stash_find): Convert function to search the hash table.
5030 (frame_stash_invalidate): Convert function to empty the hash
5031 table.
5032 (get_frame_id): Only add to stash if a frame_id is created.
5033 (_initialize_frame): Call frame_stash_create.
5034
5035 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5036
5037 * configure.ac: Ensure MIG is available when building for GNU Hurd
5038 hosts.
5039 * configure: Regenerate.
5040
5041 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5042
5043 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5044
5045 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5046
5047 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5048 all cleanups are done before returning from this function.
5049
5050 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5051
5052 * utils.h: #include "exceptions.h".
5053 (enum errors): Remove partial declaration.
5054
5055 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5056
5057 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5058 * gdbarch.h, gdbarch.c: Regenerate.
5059 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5060 handling.
5061
5062 * rs6000-aix-tdep.h: New file.
5063 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5064 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5065 "xml-utils.h".
5066 (struct field_info, struct ld_info_desc): New types.
5067 (ld_info32_desc, ld_info64_desc): New static constants.
5068 (struct ld_info): New type.
5069 (rs6000_aix_extract_ld_info): New function.
5070 (rs6000_aix_shared_library_to_xml): Likewise.
5071 (rs6000_aix_ld_info_to_xml): Likewise.
5072 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5073 (rs6000_aix_init_osabi): Add call to
5074 set_gdbarch_core_xfer_shared_libraries_aix.
5075 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5076 Remove "xml-utils.h" include.
5077 (LdInfo): Delete typedef.
5078 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5079 Delete macros.
5080 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5081 Adjust code accordingly.
5082 (rs6000_core_ldinfo): Delete, folded into
5083 rs6000_aix_core_xfer_shared_libraries_aix.
5084 (rs6000_xfer_shared_library): Delete.
5085 (rs6000_xfer_shared_libraries): Reimplement.
5086
5087 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5088
5089 * record.c (record_goto_cmdlist): New.
5090 (cmd_record_goto): Split into this ...
5091 (cmd_record_goto_begin): ... this
5092 (cmd_record_goto_end): ... and this.
5093 (_initialize_record): Change "record goto" to prefix command.
5094 Add commands for "record goto begin" and "record goto end".
5095 Add an alias for "record goto start" to "record goto begin".
5096
5097 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5098
5099 * linespec.c (convert_linespec_to_sals): New comment for
5100 SOURCE_FILENAME assignment.
5101
5102 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5103
5104 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5105 internal_warning.
5106
5107 2013-05-14 Tom Tromey <tromey@redhat.com>
5108
5109 * eval.c (parse_and_eval_long): Make 'exp' const.
5110 * value.h (parse_and_eval_long): Update.
5111
5112 2013-05-14 Tom Tromey <tromey@redhat.com>
5113
5114 * ui-file.c (gdb_fopen): Make arguments const.
5115 * ui-file.h (gdb_fopen): Make arguments const.
5116
5117 2013-05-14 Tom Tromey <tromey@redhat.com>
5118
5119 * remote.c (remote_set_trace_notes): Make arguments const.
5120 * target.c (update_current_target): Update cast.
5121 * target.h (to_set_trace_notes): Make arguments const.
5122
5123 2013-05-14 Tom Tromey <tromey@redhat.com>
5124
5125 * go32-nat.c (go32_terminal_info): Make 'args' const.
5126 * inferior.h (child_terminal_info): Update.
5127 * inflow.c (child_terminal_info): Make 'args' const.
5128 * target.c (default_terminal_info): Make 'args' const.
5129 (debug_to_terminal_save_ours): Likewise.
5130 * target.h (struct target_ops) <to_terminal_info>: Make argument
5131 const.
5132
5133 2013-05-13 Tom Tromey <tromey@redhat.com>
5134
5135 * gcore.c (create_gcore_bfd): Make 'filename' const.
5136 * gcore.h (create_gcore_bfd): Make 'filename' const.
5137 * record-full.c (record_full_save): Make 'recfilename' const.
5138 * target.c (target_save_record): Make 'filename' const.
5139 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5140 const.
5141 (target_save_record): Likewise.
5142
5143 2013-05-13 Tom Tromey <tromey@redhat.com>
5144
5145 PR gdb/15338:
5146 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5147 ranges section has been read.
5148
5149 2013-05-13 Tom Tromey <tromey@redhat.com>
5150
5151 PR exp/15364:
5152 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5153 STRUCTOP_PTR>: Return a not_lval value for
5154 EVAL_AVOID_SIDE_EFFECTS.
5155 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5156 for EVAL_AVOID_SIDE_EFFECTS.
5157
5158 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5159
5160 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5161 floating point registers to register type before storing
5162 value.
5163 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5164 Likewise.
5165
5166 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5167 Tom Tromey <tromey@redhat.com>
5168
5169 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5170 New functions.
5171 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5172 Declare.
5173 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5174 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5175 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5176 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5177
5178 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5179 Tom Tromey <tromey@redhat.com>
5180
5181 PR build/15414:
5182 * configure: Rebuild.
5183 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5184 with -Wno-format.
5185
5186 2013-05-10 Pedro Alves <palves@redhat.com>
5187
5188 * remote.c (_initialize_remote): Fix spelling of
5189 qXfer:traceframe-info:read packet in packet config command.
5190
5191 2013-05-10 David Taylor <dtaylor@emc.com>
5192
5193 PR remote/15455
5194
5195 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5196 "QTro" at start of packet.
5197
5198 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5199
5200 * solib-aix.c (solib_aix_relocate_section_addresses):
5201 For the .bss section action, apply the same offset as
5202 the .data section.
5203
5204 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5205
5206 * solib-aix.c (solib_aix_relocate_section_addresses):
5207 Remove FIXME comment.
5208
5209 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5210
5211 PR tdep/15420:
5212 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5213 New functions, directly copied from sparc-sol-thread.c.
5214 * sparc-sol-thread.c: Delete.
5215 * configure.ac: Remove code handling sparc-solaris-thread.c.
5216 * configure: Regenerate.
5217
5218 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5219
5220 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5221 filter logic.
5222 (backtrace_command): Add "no-filters" option parsing.
5223 (_initialize_stack): Alter help to reflect "no-filters" option.
5224 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5225 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5226 (py-frame.o): Add target
5227 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5228 filter files.
5229 * python/python.h: Add new frame filter constants, and flag enum.
5230 (apply_frame_filter): Add definition.
5231 * python/python.c (apply_frame_filter): New non-Python
5232 enabled function.
5233 * python/py-utils.c (py_xdecref): New function.
5234 (make_cleanup_py_xdecref): Ditto.
5235 * python/py-objfile.c: Declare frame_filters dictionary.
5236 (objfpy_dealloc): Add frame_filters dealloc.
5237 (objfpy_new): Initialize frame_filters attribute.
5238 (objfile_to_objfile_object): Ditto.
5239 (objfpy_get_frame_filters): New function.
5240 (objfpy_set_frame_filters): New function.
5241 * python/py-progspace.c: Declare frame_filters dictionary.
5242 (pspy_dealloc): Add frame_filters dealloc.
5243 (pspy_new): Initialize frame_filters attribute.
5244 (pspacee_to_pspace_object): Ditto.
5245 (pspy_get_frame_filters): New function.
5246 (pspy_set_frame_filters): New function.
5247 * python/py-framefilter.c: New file.
5248 * python/lib/gdb/command/frame_filters.py: New file.
5249 * python/lib/gdb/frames.py: New file.
5250 * python/lib/gdb/__init__.py: Initialize global frame_filters
5251 dictionary
5252 * python/lib/gdb/FrameDecorator.py: New file.
5253 * python/lib/gdb/FrameIterator.py: New file.
5254 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5255 * mi/mi-cmds.h: Declare.
5256 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5257 --no-frame-filter logic, and Python frame filter logic.
5258 (stack_enable_frame_filters): New function.
5259 (parse_no_frame_option): Ditto.
5260 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5261 filter logic.
5262 (mi_cmd_stack_list_locals): Ditto.
5263 (mi_cmd_stack_list_args): Ditto.
5264 (mi_cmd_stack_list_variables): Ditto.
5265 * NEWS: Add frame filter note.
5266
5267 2013-05-09 Doug Evans <dje@google.com>
5268
5269 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5270 All callers updated.
5271 (syms_from_objfile): Ditto. Make static.
5272 (symbol_file_add_with_addrs): Renamed from
5273 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5274 num_offsets. All callers updated.
5275 * symfile.h (syms_from_objfile): Delete.
5276
5277 * symfile.c (decrement_reading_symtab): Add assert.
5278 (increment_reading_symtab): Ditto.
5279
5280 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5281
5282 * source.c (forward_search_command): Replace call to getc
5283 by call to fgetc.
5284 (reverse_search_command): Likewise.
5285
5286 2013-05-08 Doug Evans <dje@google.com>
5287
5288 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5289 matching test.
5290
5291 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5292
5293 * sol-thread.c (info_cb): Factorize the code a little.
5294
5295 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5296
5297 * sol-thread.c (info_cb): Rework the output of the "maintenance
5298 info sol-threads" command a bit.
5299
5300 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5301
5302 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5303 Replace ti.ti_startfunc by ti.ti_pc.
5304
5305 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5306
5307 * solib-aix.c (solib_aix_free_library_list): New function
5308 for the case where HAVE_LIBEXPAT is not defined.
5309
5310 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5311
5312 PR breakpoints/15413:
5313 * breakpoint.c (condition_completer): Simplify the code to
5314 disconsider multiple locations of breakpoints when completing the
5315 "condition" command.
5316
5317 2013-05-07 Pierre Muller <muller@sourceware.org>
5318
5319 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5320 instead of <sys/wait.h>.
5321
5322 2013-05-07 Pierre Muller <muller@sourceware.org>
5323
5324 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5325 trailing new line from warning message.
5326
5327 2013-05-07 Pierre Muller <muller@sourceware.org>
5328
5329 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5330 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5331
5332 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5333
5334 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5335 error message (ARI fix).
5336
5337 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5338
5339 * features/library-list-aix.dtd: Replace library-list by
5340 library-list-aix.
5341 * rs6000-nat.c: Replace library-list by library-list-aix
5342 throughout.
5343 * solib-aix.c: Likewise.
5344
5345 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5346
5347 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5348 Renames TARGET_OBJECT_AIX_LIBRARIES.
5349 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5350 TARGET_OBJECT_LIBRARIES_AIX throughout.
5351 * solib-aix.c: Likwise.
5352
5353 2013-05-07 Yao Qi <yao@codesourcery.com>
5354
5355 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5356 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5357
5358 2013-05-07 Yao Qi <yao@codesourcery.com>
5359
5360 * solib-dsbt.c (enable_break): Declare.
5361 (dsbt_current_sos): Remove call to enable_break2.
5362 (enable_break2): Rename to enable_break. Set solib breakpoint
5363 on '_dl_debug_state'.
5364 (enable_break): Remove.
5365
5366 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5367
5368 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5369 debug state prior to replicating existing hardware watchpoints or
5370 breakpoints.
5371
5372 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5373
5374 * gcore.c (gcore_create_callback): Ignore sections with
5375 separate_debug_objfile_backlink != NULL.
5376
5377 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5378 Andrew Jenner <andrew@codesourcery.com>
5379 Chung-Lin Tang <cltang@codesourcery.com>
5380 Julian Brown <julian@codesourcery.com>
5381
5382 Based on the nios2-elf port from Altera Corporation.
5383
5384 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5385 nios2-linux-tdep.o.
5386 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5387 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5388 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5389 * nios2-tdep.h: New.
5390 * nios2-tdep.c: New.
5391 * nios2-linux-tdep.c: New.
5392 * features/Makefile (WHICH): Add nios2-linux.
5393 (nios2-linux-expedite): Set.
5394 * features/nios2-cpu.xml: New.
5395 * features/nios2.xml: New.
5396 * features/nios2-linux.xml: New.
5397 * features/nios2.c: New (autogenerated).
5398 * features/nios2-linux.c: New (autogenerated).
5399 * regformats/nios2-linux.dat: New (autogenerated).
5400 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5401 and commands.
5402
5403 2013-05-06 Doug Evans <dje@google.com>
5404
5405 * symfile.c: Whitespace cleanup.
5406
5407 * solist.h (struct target_so_ops): New member clear_so.
5408 * solib-svr4.c (svr4_clear_so): New function.
5409 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5410 * solib.c (clear_so): Renamed from free_so_symbols.
5411 All callers updated. Call target clear_so if it exists.
5412
5413 2013-05-06 Tom Tromey <tromey@redhat.com>
5414
5415 * ada-lang.c (ada_value_primitive_packed_val): Don't
5416 call value_incref.
5417 * value.c (set_value_parent): Incref the new parent and decref
5418 the old parent.
5419 (value_copy, value_primitive_field): Use set_value_parent.
5420
5421 2013-05-06 Tom Tromey <tromey@redhat.com>
5422
5423 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5424 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5425 if needed.
5426 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5427 * dwarf2read.c (write_constant_as_bytes)
5428 (dwarf2_fetch_constant_bytes): New functions.
5429
5430 2013-05-06 Tom Tromey <tromey@redhat.com>
5431
5432 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5433 parameters.
5434 (dwarf2_const_value_attr): Update.
5435
5436 2013-05-06 Tom Tromey <tromey@redhat.com>
5437
5438 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5439 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5440 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5441 Remove declaration.
5442
5443 2013-05-06 Tom Tromey <tromey@redhat.com>
5444
5445 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5446 objfile's obstack.
5447
5448 2013-05-06 Doug Evans <dje@google.com>
5449
5450 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5451 * stabsread.h (process_one_symbol): Update declaration.
5452 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5453 * elfread.c (elf_symfile_relocate_probe): Ditto.
5454 * psymtab.c (relocate_psymtabs): Ditto.
5455 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5456 (objfile_relocate): Ditto.
5457 * objfiles.h (objfile_relocate): Update declaration.
5458 * symfile.c (relative_addr_info_to_section_offsets): Constify
5459 addrs parameter.
5460 (default_symfile_offsets): Ditto.
5461 (syms_from_objfile_1): Constify offsets parameter.
5462 (syms_from_objfile): Ditto.
5463 (symbol_file_add_with_addrs_or_offsets): Ditto.
5464 (symfile_map_offsets_to_segments): Constify data parameter.
5465 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5466 delta parameters of member relocate.
5467 (struct sym_probe_fns): Constify new_offsets,
5468 delta parameters of member sym_relocate_probe.
5469 (struct sym_fns): Constify section_addr_info parameter of member
5470 sym_offsets.
5471 (relative_addr_info_to_section_offsets): Update declaration.
5472 (default_symfile_offsets): Ditto.
5473 (syms_from_objfile): Ditto.
5474 (symfile_map_offsets_to_segments): Ditto.
5475
5476 * symfile.c (syms_from_objfile_1): Use correct section count when
5477 objfile->sf == NULL.
5478
5479 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5480
5481 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5482
5483 2013-05-06 Doug Evans <dje@google.com>
5484
5485 * psympriv.h (struct partial_symtab): Augment comment for member
5486 section_offsets.
5487
5488 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5489
5490 Reimplement shared library support on ppc-aix...
5491 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5492 * features/library-list-aix.dtd: New file.
5493 * solib-aix.h, solib-aix.c: New file.
5494 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5495 (rs6000_find_toc_address_hook): Delete.
5496 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5497 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5498 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5499 "xml-utils.h".
5500 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5501 (vmap_symtab, fixup_breakpoints): Delete.
5502 (rs6000_xfer_shared_libraries): New function.
5503 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5504 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5505 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5506 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5507 (rs6000_xfer_shared_library): New function.
5508 (find_toc_address): Delete.
5509 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5510 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5511 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5512 before creating minimal symbol. Adjust function description
5513 accordingly.
5514 (scan_xcoff_symtab): Replace call to
5515 prim_record_minimal_symbol_and_info by call to
5516 record_minimal_symbol.
5517 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5518 around default_symfile_offsets.
5519 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5520 powerpc-aix targets.
5521 * config/rs6000/nm-rs6000.h: Delete.
5522 * config/powerpc/aix.mh (NAT_FILE): Delete.
5523 (NATDEPFILES): Remove xcoffsolib.o.
5524 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5525 (ALL_TARGET_OBS): Add solib-aix.o.
5526 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5527 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5528 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5529 * xcoffsolib.h, xcoffsolib.c: Delete.
5530
5531 * solib.c (reload_shared_libraries): Remove reference to
5532 SOLIB_CREATE_INFERIOR_HOOK.
5533 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5534 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5535 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5536 comment.
5537 * corelow.c (deprecated_core_resize_section_table): Delete.
5538 * exec.c: Remove include of xcoffsolib.h".
5539 (map_vmap, vmap): Delete.
5540 (exec_close_1): Remove references to vmap.
5541 (exec_file_attach): Remove vmap handling code, and reference
5542 to DEPRECATED_IBM6000_TARGET.
5543 (bfdsec_to_vmap): Delete.
5544 (exec_files_info): Remove block of code handling VMAP.
5545 * infcmd.c (post_create_inferior): Remove reference to
5546 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5547 * infrun.c (follow_exec): Remove reference to
5548 SOLIB_CREATE_INFERIOR_HOOK.
5549 * stack.c (print_frame): Remove reference to PC_SOLIB.
5550 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5551 (dsbt_relocate_main_executable): Likewise.
5552 * solib-frv.c (frv_current_sos): Likewise.
5553
5554 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5555
5556 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5557 to target_write_memory and target_read_memory.
5558
5559 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5560
5561 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5562 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5563
5564 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5565
5566 * darwin-nat.c: Replace all "%x" instances in format strings
5567 into "0x%x" throughout.
5568
5569 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5570
5571 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5572 gdb_assert by call to MACH_CHECK_ERROR.
5573 (darwin_attach_pid): Raise an error rather than a failed
5574 assertion when various system calls failed. Report a warning
5575 instead of raising a failed assertion when PREV_NOT is not NULL
5576 after call to mach_port_request_notification.
5577 (darwin_ptrace_me): Raise an error rather than a failed
5578 assertion when read returns nonzero.
5579
5580 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5581
5582 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5583
5584 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5585
5586 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5587
5588 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5589
5590 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5591 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5592 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5593 a stale cleanup. Fix double free of NAME.
5594
5595 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5596
5597 * windows-nat.c (windows_delete_thread): Accept an additional
5598 argument, the thread's exit code, and announce thread death when
5599 print_thread_events is non-zero and we are deleting a thread that
5600 is not the main thread.
5601 (get_windows_debug_event): Pass thread exit code to
5602 windows_delete_thread.
5603
5604 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5605
5606 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5607 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5608 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5609 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5610 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5611 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5612 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5613 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5614 (gdbarch_tdep): New struct.
5615 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5616 E_NUM_REGS.
5617 (v850e3v5_register_name): New function.
5618 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5619 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5620 code handling the struct return conventions for the RH850 ABI.
5621 Update all callers.
5622 (v850_eight_byte_align_p): New function.
5623 (v850_push_call_dummy): Push structs by value, not by reference
5624 for the RH850 ABI. Add support for eight byte alignment.
5625 (v850_dbtrap_breakpoint_from_pc): New function.
5626 (v850_gdbarch_init): Add ABI detection code. Register
5627 v850e3v5_register_name for the v850e3v5 architecture. Set the
5628 number of registers for v850e3v5. Register
5629 v850_dbtrap_breakpoint_from_pc as appropriate.
5630 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5631
5632 2013-05-03 Doug Evans <dje@google.com>
5633
5634 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5635 of bfd_count_sections.
5636 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5637 * symfile.c (default_symfile_offsets): Ditto.
5638 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5639 one entry, not bfd_count_sections entries.
5640
5641 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5642
5643 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5644 `save' and `restore' register groups. Don't include SPL
5645 or SPH in these groups.
5646 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5647 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5648 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5649 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5650 dwarf2_append_unwinders().
5651
5652 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5653
5654 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5655 ignore SIGINT and SIGTRAP in case these internal signals are
5656 caught explicitely.
5657
5658 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5659
5660 * darwin-nat.c (darwin_read_write_inferior): Change types
5661 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5662 of copy_count to "mach_msg_type_number_t".
5663 (darwin_read_dyld_info): Change type of parameter
5664 rdaddr to "gdb_byte *".
5665
5666 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5667
5668 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5669 of &info->load_map from "char *" to "gdb_byte *".
5670
5671 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5672
5673 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5674 from "char *" to "gdb_byte *".
5675 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5676
5677 2013-04-30 Doug Evans <dje@google.com>
5678
5679 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5680 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5681 DWO stub. If DWO isn't found, just use stub.
5682 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5683
5684 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5685 calling init_cutu_and_read_dies.
5686
5687 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5688
5689 * target-descriptions.c (maint_print_c_tdesc_cmd):
5690 Add case to parse structures as register types and
5691 bitfields.
5692
5693 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5694
5695 * MAINTAINERS (Write After Approval): Add myself to the list.
5696
5697 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5698
5699 * sol-thread.c (rw_common): Change type of parameter "buf"
5700 to "gdb_byte *".
5701 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5702 rw_common to "gdb_byte *" instead of "char *".
5703
5704 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5705
5706 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5707 of local variable msym to const struct bound_minimal_symbol.
5708 Adjust use accordingly.
5709 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5710
5711 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5712
5713 * i386gnu-nat.c (CREG_OFFSET): New macro.
5714 (creg_offset): New array.
5715 (CREG_ADDR): Use creg_offset instead of reg_offset.
5716
5717 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5718
5719 * mep-tdep.c (mep_write_pc): Delete.
5720 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5721 Add call to set_gdbarch_pc_regnum.
5722
5723 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5724
5725 * common/filestuff.c: Replace #include <dirent.h> by
5726 #include "gdb_dirent.h".
5727
5728 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5729
5730 * common/filestuff.c: Replace #include <sys/stat.h> by
5731 #include "gdb_stat.h".
5732
5733 2013-04-29 Pierre Muller <muller@sourceware.org>
5734
5735 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5736 editCase function rule.
5737 (get_DW_AT_signature_type): Likewise.
5738
5739 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5740
5741 * m32r-tdep.c (m32r_write_pc): Delete.
5742 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5743 Add call to set_gdbarch_pc_regnum.
5744
5745 2013-04-29 Pierre Muller <muller@sourceware.org>
5746
5747 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5748
5749 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5750
5751 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5752
5753 2013-04-28 Yao Qi <yao@codesourcery.com>
5754
5755 * solib-dsbt.c (fetch_loadmap): Re-indent.
5756 (displacement_from_map, enable_break2): Likewise.
5757 (dsbt_relocate_section_addresses): Likewise.
5758
5759 2013-04-26 Joel Brobecker <brobecker@adacore.com>
5760
5761 GDB 7.6 released.
5762
5763 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5764
5765 PR corefiles/14983:
5766 * dwarf2read.c (process_full_comp_unit): Always create a static
5767 block.
5768
5769 2013-04-25 Hui Zhu <hui@codesourcery.com>
5770
5771 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5772 to loc->cmd_bytecode.
5773
5774 2013-04-24 Doug Evans <dje@google.com>
5775
5776 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5777
5778 2013-04-22 Keith Seitz <keiths@redhat.com>
5779
5780 * tracepoint.c (trace_save): Call the writer's start method.
5781
5782 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5783
5784 PR gdb/10462
5785 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5786 before argument.
5787
5788 2013-04-23 Tom Tromey <tromey@redhat.com>
5789
5790 * common/filestuff.c: Check USE_WIN32API before including
5791 sys/socket.h.
5792 (HAVE_F_GETFD): New define.
5793 (mark_cloexec): Check HAVE_F_GETFD.
5794 (gdb_open_cloexec): Change 'mode' to unsigned long.
5795 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5796 (gdb_pipe_cloexec): Check HAVE_PIPE.
5797 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5798 long.
5799
5800 2013-04-23 Hui Zhu <hui@codesourcery.com>
5801
5802 PR gdb/15293
5803 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5804
5805 2013-04-23 Hui Zhu <hui@codesourcery.com>
5806
5807 PR gdb/15165
5808 * breakpoint.c (dprintf_print_recreate): New.
5809 (save_breakpoints): Let it not save dprintf commands.
5810 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5811
5812 2013-04-22 Tom Tromey <tromey@redhat.com>
5813
5814 PR gdb/7912:
5815 * Makefile.in (SFILES): Add filestuff.c
5816 (COMMON_OBS): Add filestuff.o.
5817 (filestuff.o): New target.
5818 * auto-load.c (auto_load_objfile_script_1): Use
5819 gdb_fopen_cloexec.
5820 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5821 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5822 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5823 * common/agent.c (gdb_connect_sync_socket): Use
5824 gdb_socket_cloexec.
5825 * common/filestuff.c: New file.
5826 * common/filestuff.h: New file.
5827 * common/linux-osdata.c (linux_common_core_of_thread)
5828 (command_from_pid, commandline_from_pid, print_source_lines)
5829 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5830 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5831 gdb_fopen_cloexec.
5832 * common/linux-procfs.c (linux_proc_get_int)
5833 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5834 * config.in, configure: Rebuild.
5835 * configure.ac: Don't check for sys/socket.h. Check for
5836 fdwalk, pipe2.
5837 * corelow.c (core_open): Use gdb_open_cloexec.
5838 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5839 * fork-child.c (fork_inferior): Call close_most_fds.
5840 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5841 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5842 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5843 Use gdb_fopen_cloexec.
5844 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5845 gdb_open_cloexec.
5846 (linux_async_pipe): Use gdb_pipe_cloexec.
5847 * remote-fileio.c (remote_fileio_func_open): Use
5848 gdb_open_cloexec.
5849 * remote.c (remote_file_put, remote_file_get): Use
5850 gdb_fopen_cloexec.
5851 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5852 close_most_fds.
5853 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5854 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5855 * solib.c (solib_find): Use gdb_open_cloexec.
5856 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5857 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5858 (tfile_open): Use gdb_open_cloexec.
5859 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5860 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5861 * xml-support.c (xml_fetch_content_from_file): Use
5862 gdb_fopen_cloexec.
5863 * main.c (captured_main): Call notice_open_fds.
5864
5865 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5866
5867 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5868 'char *' to 'gdb_byte *'.
5869 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5870 'gdb_byte'.
5871
5872 2013-04-22 Yao Qi <yao@codesourcery.com>
5873
5874 * infrun.c: Fix typo in comment.
5875
5876 2013-04-22 Andrew Haley <aph@redhat.com>
5877
5878 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5879 instead of "long".
5880
5881 2013-04-20 Yao Qi <yao@codesourcery.com>
5882
5883 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5884 'char *' to 'gdb_byte *'. Cast the return value of
5885 'bt_ctf_get_char_array' to 'gdb_byte *'.
5886
5887 2013-04-19 Pedro Alves <palves@redhat.com>
5888
5889 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5890 -Wpointer-sign.
5891 * configure: Regenerate.
5892
5893 2013-04-19 Pedro Alves <palves@redhat.com>
5894
5895 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5896 'void *'.
5897
5898 2013-04-19 Pedro Alves <palves@redhat.com>
5899
5900 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5901 Change type of 'myaddr' parameter to gdb_byte pointer.
5902 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5903 to 'long long' pointer instead of to 'unsigned long long'.
5904 (monitor_write_memory_block, monitor_read_memory_single)
5905 (monitor_read_memory): Change type of 'myaddr' parameter to
5906 gdb_byte pointer.
5907
5908 2013-04-19 Pedro Alves <palves@redhat.com>
5909
5910 * record.c (validate_history_size): Make parameter 'setting'
5911 unsigned.
5912
5913 2013-04-19 Pedro Alves <palves@redhat.com>
5914
5915 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5916 to 'gdb_byte *'.
5917
5918 2013-04-19 Pedro Alves <palves@redhat.com>
5919
5920 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5921 local to int.
5922
5923 2013-04-19 Pedro Alves <palves@redhat.com>
5924
5925 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5926 * ada-tasks.c (read_fat_string_value): Likewise.
5927
5928 2013-04-19 Pedro Alves <palves@redhat.com>
5929
5930 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5931 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5932 'offset', and adjust.
5933
5934 2013-04-19 Pedro Alves <palves@redhat.com>
5935
5936 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5937 (read_index_from_section): Add cast to 'char *'.
5938
5939 2013-04-19 Pedro Alves <palves@redhat.com>
5940
5941 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5942
5943 2013-04-19 Pedro Alves <palves@redhat.com>
5944
5945 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5946
5947 2013-04-19 Pedro Alves <palves@redhat.com>
5948
5949 * record-full.c (record_full_get_bookmark): Change local 'ret'
5950 type to char * and add cast to gdb_byte *.
5951 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5952 string.
5953 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5954
5955 2013-04-19 Pedro Alves <palves@redhat.com>
5956
5957 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5958 * python/py-prettyprint.c (print_string_repr): Change type of
5959 'output' local to char *. Add cast to gdb_byte * in
5960 LA_PRINT_STRING call.
5961 (print_children): Change type of 'output' local to char *.
5962 * python/py-value.c (valpy_string): Add cast to const char * in
5963 PyUnicode_Decode call.
5964
5965 2013-04-19 Pedro Alves <palves@redhat.com>
5966
5967 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5968 and change its type to 'const char *'. Adjust.
5969 (mips_send_packet): Add cast to 'char *', and remove cast to
5970 'unsigned char *'.
5971 (mips_receive_packet): Remove cast to 'unsigned char *'.
5972 (mips_load_srec): Use bfd_byte.
5973 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5974 (pmon_checkset): Make 'value' parameter unsigned.
5975
5976 2013-04-19 Pedro Alves <palves@redhat.com>
5977
5978 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5979
5980 2013-04-19 Pedro Alves <palves@redhat.com>
5981
5982 * remote.c (remote_write_bytes_aux, compare_sections_command)
5983 (remote_read_qxfer)
5984 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5985 (remote_hostio_readlink, remote_bfd_iovec_pread)
5986 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5987 binary buffer, and char when buffer is used as string.
5988 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5989 (trace_save, tfile_open, traceframe_walk_blocks)
5990 (tfile_fetch_registers): Likewise.
5991
5992 2013-04-19 Pedro Alves <palves@redhat.com>
5993
5994 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5995 buffer and size_t size. Adjust.
5996 * ser-base.h (ser_base_write): Adjust.
5997 * ser-go32.c (cnts): Change type to size_t.
5998 (dos_write): Change prototype -- take 'void *'
5999 buffer and size_t size. Adjust.
6000 (dos_info): Print elements of 'cnts' as unsigned long.
6001 * serial.c (serial_write): Likewise.
6002 * serial.h (serial_write): Adjust.
6003 (struct serial_ops) <write>: Change prototype -- take 'void *'
6004 buffer and size_t size. Adjust.
6005
6006 2013-04-19 Pedro Alves <palves@redhat.com>
6007
6008 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6009 gdb_byte *.
6010 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6011
6012 2013-04-19 Pedro Alves <palves@redhat.com>
6013
6014 * alpha-tdep.c (alpha_extract_return_value): Use
6015 regcache_cooked_read_unsigned to read 'v0'.
6016
6017 2013-04-19 Pedro Alves <palves@redhat.com>
6018
6019 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6020 parameters 'at', 'as' and 'offset' to uint32_t.
6021
6022 2013-04-19 Pedro Alves <palves@redhat.com>
6023
6024 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6025 'is64' to signed 'int'.
6026
6027 2013-04-19 Pedro Alves <palves@redhat.com>
6028
6029 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6030 parameter to int *.
6031
6032 2013-04-19 Pedro Alves <palves@redhat.com>
6033
6034 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6035 'insnbuf' buffer type to unsigned int[].
6036
6037 2013-04-19 Pedro Alves <palves@redhat.com>
6038
6039 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6040
6041 2013-04-19 Pedro Alves <palves@redhat.com>
6042
6043 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6044 unsigned long *.
6045
6046 2013-04-19 Pedro Alves <palves@redhat.com>
6047
6048 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6049 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6050 UINT_MAX.
6051 * mips-tdep.c (heuristic_fence_post): Change type to int.
6052 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6053
6054 2013-04-19 Pedro Alves <palves@redhat.com>
6055
6056 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6057 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6058 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6059
6060 2013-04-19 Pedro Alves <palves@redhat.com>
6061
6062 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6063 it to get a string view of the byte buffer.
6064 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6065 type to gdb_byte *. Adjust.
6066 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6067 Change local to char *.
6068 * solib-darwin.c (find_program_interpreter): Change return type to
6069 char *. Adjust.
6070 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6071 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6072 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6073 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6074 * solib-svr4.c (find_program_interpreter): Change return type to
6075 char *. Adjust.
6076 (enable_break): Change local 'interp_name' to char *.
6077 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6078 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6079 (spu_pseudo_register_write_spu): Use char for string buffer.
6080 Adjust.
6081 (info_spu_event_command, info_spu_signal_command): Add casts to
6082 'char *'.
6083
6084 2013-04-19 Pedro Alves <palves@redhat.com>
6085
6086 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6087 gdb_byte[].
6088 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6089 * ada-lang.c (ada_value_assign): Use gdb_byte.
6090 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6091 (alphanbsd_sigtramp_offset): Use gdb_byte.
6092 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6093 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6094 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6095 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6096 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6097 * arm-tdep.c (arm_stub_unwind_sniffer)
6098 (arm_displaced_init_closure): Use gdb_byte.
6099 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6100 (arm_default_thumb_le_breakpoint)
6101 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6102 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6103 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6104 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6105 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6106 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6107 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6108 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6109 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6110 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6111 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6112 (cris_store_return_value, cris_extract_return_value): Use
6113 gdb_byte.
6114 (constraint): Change type of parameter to char * from signed
6115 char*. Use gdb_byte.
6116 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6117 of local buffer to gdb_byte *.
6118 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6119 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6120 (add_address_entry): Change type of local buffer to gdb_byte[].
6121 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6122 (frv_push_dummy_call): Use gdb_byte.
6123 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6124 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6125 (hppa_hpux_supply_save_state): Use gdb_byte.
6126 * hppa-tdep.c (hppa32_push_dummy_call)
6127 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6128 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6129 (slotN_contents, replace_slotN_contents): Change type of parameter
6130 to gdb_byte *.
6131 (fetch_instruction, ia64_pseudo_register_write)
6132 (ia64_register_to_value, ia64_value_to_register)
6133 (ia64_extract_return_value, ia64_store_return_value)
6134 (ia64_push_dummy_call): Use gdb_byte.
6135 * m32c-tdep.c (m32c_return_value): Remove cast.
6136 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6137 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6138 gdb_byte.
6139 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6140 * mn10300-tdep.c (mn10300_store_return_value)
6141 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6142 gdb_byte.
6143 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6144 (moxie_process_record): Remove casts.
6145 * ppc-ravenscar-thread.c (supply_register_at_address)
6146 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6147 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6148 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6149 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6150 * remote.c (compare_sections_command): Use gdb_byte.
6151 * score-tdep.c (score7_free_memblock): Change type of parameter to
6152 gdb_byte *.
6153 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6154 gdb_byte *. Use gdb_byte.
6155 (sh_push_dummy_call_fpu): Use gdb_byte.
6156 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6157 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6158 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6159 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6160 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6161 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6162 (sh64_store_return_value, sh64_register_convert_to_virtual):
6163 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6164 (sh64_pseudo_register_write): Use gdb_byte.
6165 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6166 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6167 buffer.
6168 (irix_current_sos): Use gdb_byte.
6169 * solib-som.c (som_current_sos): Use gdb_byte.
6170 * sparc-ravenscar-thread.c (supply_register_at_address)
6171 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6172 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6173 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6174 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6175 'gdb_byte *'.
6176 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6177 'gdb_byte *'.
6178 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6179 * xstormy16-tdep.c (xstormy16_extract_return_value)
6180 (xstormy16_store_return_value): Change parameter type to
6181 'gdb_byte *'. Adjust.
6182 (xstormy16_push_dummy_call): Use gdb_byte.
6183 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6184 (call0_analyze_prologue, execute_code): Use gdb_byte.
6185
6186 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6187 Pedro Alves <palves@redhat.com>
6188
6189 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6190 value contents.
6191
6192 2013-04-17 Doug Evans <dje@google.com>
6193
6194 * dwarf2read.c (struct signatured_type): New member type.
6195 (struct attribute): Replace member signatured_type with signature.
6196 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6197 (read_call_site_scope): Call follow_die_ref instead of
6198 follow_die_ref_or_sig.
6199 (read_structure_type): Rewrite handling of signatured types.
6200 (read_enumeration_type): Ditto.
6201 (read_attribute_value): Update.
6202 (build_error_marker_type): New function.
6203 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6204 Don't call error for bad types, just build an error marker type.
6205 (dump_die_shallow): Update.
6206 (follow_die_sig_1): Renamed from follow_die_sig.
6207 Don't call error for bad types, instead return NULL.
6208 (follow_die_sig): New function.
6209 (get_signatured_type, get_DW_AT_signature_type): New functions.
6210
6211 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6212
6213 * aarch64-tdep.c (aarch64_write_pc): Removed.
6214 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6215 function.
6216
6217 2013-04-17 Yao Qi <yao@codesourcery.com>
6218
6219 * top.c (print_gdb_configuration): Print configure-time
6220 parameter on using libbabeltrace or not.
6221
6222 2013-04-16 Pedro Alves <palves@redhat.com>
6223
6224 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6225
6226 2013-04-16 Pedro Alves <palves@redhat.com>
6227
6228 * common/glibc_thread_db.h: Update from upstream glibc
6229 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6230
6231 2013-04-16 Pedro Alves <palves@redhat.com>
6232
6233 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6234 * common/glibc_thread_db.h: ... this new file ...
6235 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6236
6237 2013-04-16 Will Newton <will.newton@gmail.com>
6238 Pedro Alves <palves@redhat.com>
6239
6240 PR build/11881
6241
6242 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6243 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6244 HAVE_THREAD_DB_H.
6245
6246 2013-04-16 Pedro Alves <palves@redhat.com>
6247 Eli Zaretskii <eliz@gnu.org>
6248
6249 * NEWS: Mention "set foo unlimited".
6250
6251 2013-04-15 Doug Evans <dje@google.com>
6252
6253 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6254 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6255 (create_dwo_cu_reader): Renamed from
6256 create_dwo_debug_info_hash_table_reader.
6257 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6258 Remove support for multiple CUs in a DWO file.
6259 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6260
6261 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6262 instead of phex.
6263 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6264 (create_dwo_in_dwp): Ditto.
6265
6266 2013-04-15 Tom Tromey <tromey@redhat.com>
6267
6268 * NEWS: Move recent entries into "since 7.6" section.
6269
6270 2013-04-15 Tom Tromey <tromey@redhat.com>
6271
6272 PR c++/13588:
6273 * NEWS: Update.
6274 * break-catch-throw.c (struct exception_catchpoint)
6275 <exception_rx, pattern>: New fields.
6276 (fetch_probe_arguments, dtor_exception_catchpoint)
6277 (check_status_exception_catchpoint)
6278 (print_one_detail_exception_catchpoint): New functions.
6279 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6280 Compile regular expression if needed.
6281 (extract_exception_regexp): New function.
6282 (catch_exception_command_1): Use extract_exception_regexp.
6283 (compute_exception): Use fetch_probe_arguments.
6284 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6285 and check_status fields.
6286 * cp-abi.c (cplus_typename_from_type_info): New function.
6287 * cp-abi.h (cplus_typename_from_type_info): Declare.
6288 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6289 * gdb_regex.h (compile_rx_or_error): Declare.
6290 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6291 comment.
6292 (init_gnuv3_ops): Set get_type_from_type_info field.
6293 * probe.c (compile_rx_or_error): Move...
6294 * utils.c (compile_rx_or_error): ... here.
6295
6296 2013-04-15 Tom Tromey <tromey@redhat.com>
6297
6298 PR c++/15176:
6299 * NEWS: Update.
6300 * break-catch-throw.c (compute_exception): New function.
6301 (exception_funcs): New global.
6302 (_initialize_break_catch_throw): Create $_exception.
6303 * cp-abi.c (cplus_type_from_type_info): New function.
6304 * cp-abi.h (cplus_type_from_type_info): Declare.
6305 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6306 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6307 (gnuv3_get_type_from_type_info): New functions.
6308 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6309
6310 2013-04-15 Tom Tromey <tromey@redhat.com>
6311
6312 * break-catch-throw.c (struct exception_names): New.
6313 (exception_functions): Change type.
6314 (re_set_exception_catchpoint): Look for SDT probes.
6315
6316 2013-04-15 Tom Tromey <tromey@redhat.com>
6317
6318 PR c++/10119:
6319 * break-catch-throw.c (exception_functions): New global.
6320 (gnu_v3_exception_catchpoint_ops): Move earlier.
6321 (struct exception_catchpoint): New.
6322 (classify_exception_breakpoint): Rewrite.
6323 (re_set_exception_catchpoint): New function.
6324 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6325 Allocate a struct exception_catchpoint.
6326 (catch_exception_command_1): Update.
6327 (initialize_throw_catchpoint_ops): Set 're_set' method.
6328
6329 2013-04-15 Tom Tromey <tromey@redhat.com>
6330
6331 * Makefile.in (SFILES): Add break-catch-throw.c
6332 (COMMON_OBS): Add break-catch-throw.o.
6333 * break-catch-throw.c: New file.
6334 * breakpoint.c: Move exception-catching code to new file.
6335 (ep_parse_optional_if_clause): No longer static.
6336 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6337
6338 2013-04-15 Tom Tromey <tromey@redhat.com>
6339
6340 PR c++/9065:
6341 * NEWS: Update.
6342 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6343 * c-exp.y (TYPEID): New token.
6344 (exp): Add new TYPEID productions.
6345 (ident_tokens): Add "typeid".
6346 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6347 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6348 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6349 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6350 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6351 case.
6352 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6353 (build_std_type_info_type, gnuv3_get_typeid_type)
6354 (gnuv3_get_typeid): New functions.
6355 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6356 new fields on ABI object.
6357 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6358 * std-operator.def (OP_TYPEID): New.
6359
6360 2013-04-15 Tom Tromey <tromey@redhat.com>
6361
6362 * elfread.c (elf_symtab_read): Install versioned symbol under
6363 unversioned name as well.
6364
6365 2013-04-15 Tom Tromey <tromey@redhat.com>
6366
6367 PR c++/11990:
6368 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6369 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6370 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6371 (gdb_demangle): New function.
6372 * cp-support.h (gdb_demangle): Declare.
6373 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6374 (dwarf2_name): Use gdb_demangle.
6375 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6376 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6377 suffixes from name.
6378 (gnuv3_print_method_ptr): Use gdb_demangle.
6379 * jv-lang.c (java_demangle): Use gdb_demangle.
6380 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6381 * language.c (unk_lang_demangle): Use gdb_demangle.
6382 * symtab.c (symbol_find_demangled_name)
6383 (demangle_for_lookup): Use gdb_demangle.
6384
6385 2013-04-15 Tom Tromey <tromey@redhat.com>
6386
6387 PR c++/12824:
6388 * NEWS: Update.
6389 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6390 New constant.
6391 (classify_exception_breakpoint): New function.
6392 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6393 (print_mention_exception_catchpoint)
6394 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6395 (catch_exception_command_1): Handle "rethrow" catchpoint.
6396 (catch_rethrow_command): New function.
6397 (_initialize_breakpoint): Add "catch rethrow" command.
6398
6399 2013-04-15 Pierre Muller <muller@sourceware.org>
6400
6401 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6402 set_gdbarch_write_pc as deprecated anymore.
6403
6404 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6405
6406 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6407 declarations.
6408
6409 2013-04-13 Yao Qi <yao@codesourcery.com>
6410
6411 * ctf.c (_initialize_ctf): Include "completer.h".
6412 Call add_target_with_completer instead of add_target.
6413
6414 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6415
6416 Fix GDB regression related to PR binutils/14813.
6417 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6418 * minidebug.c (lzma_close): Add return value comment.
6419 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6420 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6421 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6422
6423 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6424
6425 * config.in: Regenerate.
6426
6427 2013-04-12 Tom Tromey <tromey@redhat.com>
6428
6429 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6430 const.
6431 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6432 (struct die_reader_specs) <buffer>: Likewise.
6433 (die_reader_func_ftype): Make 'info_ptr' const.
6434 (struct line_header) <include_dirs, statement_program_start,
6435 statement_program_end>: Now const.
6436 (struct file_entry) <name>: Likewise.
6437 (struct partial_die_info) <sibling>: Likewise.
6438 (struct dwarf_block) <data>: Likewise.
6439 (dwarf2_read_section): Remove cast.
6440 (dwarf2_get_section_info): Make 'bufp' const.
6441 (read_index_from_section): Constify.
6442 (dw2_get_file_names_reader): Make 'info_ptr' const.
6443 (dw2_get_primary_filename_reader): Likewise.
6444 (read_comp_unit_head): Make 'info_ptr' and return type const.
6445 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6446 Likewise.
6447 (read_abbrev_offset): Constify.
6448 (dwarf2_create_include_psymtab): Make 'name' const.
6449 (create_debug_types_hash_table): Update.
6450 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6451 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6452 Constify.
6453 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6454 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6455 (read_comp_units_from_section): Constify.
6456 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6457 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6458 const.
6459 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6460 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6461 (create_dwp_hash_table, dwarf2_ranges_read)
6462 (dwarf2_record_block_ranges): Constify.
6463 (read_die_and_children, read_die_and_siblings_1)
6464 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6465 const.
6466 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6467 (abbrev_table_read_table): Constify.
6468 (load_partial_dies): Make 'info_ptr' const.
6469 (read_partial_die, read_attribute_value, read_attribute): Make
6470 'info_ptr' and return type const.
6471 (read_address, read_initial_length)
6472 (read_checked_initial_length_and_offset, read_offset)
6473 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6474 const.
6475 (read_direct_string): Make 'buf' and return type const.
6476 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6477 (read_indirect_string): Make return type const.
6478 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6479 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6480 'info_ptr' const.
6481 (read_str_index): Make return type const.
6482 (add_include_dir): Make 'include_dir' const.
6483 (add_file_name): Make 'name' const.
6484 (dwarf_decode_line_header): Constify.
6485 (psymtab_include_file_name): Make return type const.
6486 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6487 (dwarf2_start_subfile): Make 'filename' const.
6488 (dwarf2_const_value_attr): Make 'bytes' const.
6489 (read_signatured_type_reader): Make 'info_ptr' const.
6490 (decode_locdesc): Constify.
6491 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6492 const.
6493 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6494 'mac_end', and return type const.
6495 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6496 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6497 type const.
6498 (per_cu_header_read_in): Constify.
6499 * symfile.h (dwarf2_get_section_info): Update.
6500
6501 2013-04-12 Tom Tromey <tromey@redhat.com>
6502
6503 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6504
6505 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6506
6507 * NEWS: Mention "show configuration", --configuration.
6508 * top.c (print_gdb_configuration): New function, displays the
6509 details about GDB configure-time parameters.
6510 (print_gdb_version): Mention "show configuration".
6511 * cli/cli-cmds.c (show_configuration): New function.
6512 (_initialize_cli_cmds): Add the "show configuration" command.
6513 * main.c (captured_main) <print_configuration>: New static var.
6514 <long_options>: Use it.
6515 If --configuration was given, call print_gdb_configuration.
6516
6517 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6518 Pedro Alves <palves@redhat.com>
6519
6520 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6521 (generated_files): Add gcore.
6522 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6523 HAVE_NATIVE_GCORE_HOST.
6524 (gcore): New.
6525 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6526 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6527 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6528 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6529 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6530 Add HAVE_NATIVE_GCORE_HOST.
6531 * configure: Regenerate.
6532 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6533 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6534 AC_CONFIG_FILES for gcore.
6535 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6536 gdb_have_gcore.
6537 * gdb_gcore.sh: Rename to ...
6538 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6539 and GCORE_TRANSFORM_NAME substitutions.
6540
6541 Fix parsing tabs in ${gdb_target_obs}.
6542 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6543
6544 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6545
6546 * remote.c (unpush_and_perror): Add output message final dot.
6547
6548 2013-04-11 Yao Qi <yao@codesourcery.com>
6549
6550 * tracepoint.c (tfile_interp_line): Fit parameters line and
6551 utpp in one line.
6552
6553 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6554
6555 * solib.c (solib_map_sections): Remove code overwriting
6556 SO->SO_NAME with the bfd's filename.
6557
6558 2013-04-10 Pedro Alves <palves@redhat.com>
6559
6560 * cli/cli-decode.c (integer_unlimited_completer): New function.
6561 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6562 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6563 completer.
6564 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6565 (is_unlimited_literal): New function.
6566 (do_set_command): Handle literal "unlimited" arguments.
6567 * frame.c (_initialize_frame) <set backtrace limit>: Document
6568 "unlimited".
6569 * printcmd.c (_initialize_printcmd) <set print
6570 max-symbolic-offset>: Add help text.
6571 * record-full.c (_initialize_record_full) <set record full
6572 insn-number-max>: Likewise.
6573 * record.c (_initialize_record) <set record
6574 instruction-history-size, set record function-call-history-size>:
6575 Add help text.
6576 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6577 help text.
6578 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6579 Likewise.
6580 * source.c (_initialize_source) <set listsize>: Add help text.
6581 * utils.c (initialize_utils) <set height, set width>: Likewise.
6582 <set pagination>: Mention "set height unlimited".
6583 * valprint.c (_initialize_valprint) <set print elements, set print
6584 repeats>: Document "unlimited".
6585
6586 2013-04-10 Pedro Alves <palves@redhat.com>
6587
6588 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6589 instead of disconnect_tracing.
6590 * infcmd.c (detach_command, disconnect_command): Call
6591 query_if_trace_running. Adjust.
6592 * top.c: Include "tracepoint.h".
6593 (quit_target): Delete. Contents moved ...
6594 (quit_force): ... here. Wrap each stage of teardown in
6595 TRY_CATCH. Call disconnect_tracing before detaching.
6596
6597 2013-04-10 Hui Zhu <hui@codesourcery.com>
6598 Yao Qi <yao@codesourcery.com>
6599
6600 * configure.ac: Check libbabeltrace is installed.
6601 * config.in: Regenerate.
6602 * configure: Regenerate.
6603 * Makefile.in (LIBBABELTRACE): New.
6604 (CLIBS): Add LIBBABELTRACE.
6605 * ctf.c: Include "exec.h".
6606 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6607 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6608 (ctf_save_metadata_header): Define new type aliases in
6609 metadata.
6610 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6611 in metadata. Start a new faked packet for trace status.
6612 (ctf_write_status): Write trace status to CTF.
6613 (ctf_write_uploaded_tsv): Write TSV to CTF.
6614 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6615 (ctf_write_definition_end): End the faked packet.
6616
6617 (ctx, ctf_iter, trace_dirname): New.
6618 (start_pos): New variable.
6619 (ctf_destroy, ctf_open_dir, ctf_open): New.
6620 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6621 macros.
6622 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6623 (ctf_fetch_registers, ctf_xfer_partial): New.
6624 (ctf_get_trace_state_variable_value): New.
6625 (ctf_get_tpnum_from_frame_event): New.
6626 (ctf_get_traceframe_address): New.
6627 (ctf_trace_find, ctf_has_stack): New.
6628 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6629 (ctf_get_trace_status, ctf_read_status): New.
6630 (_initialize_ctf): New.
6631 * tracepoint.c (get_tracepoint_number): New
6632 (get_uploaded_tsv): Remove 'static'.
6633 (struct traceframe_info, trace_regblock_size): Move it to ...
6634 * tracepoint.h: ... here.
6635 (get_tracepoint_number): Declare it.
6636 (get_uploaded_tsv): Declare it.
6637
6638 * NEWS: Mention new configure option.
6639
6640 2013-04-10 Pedro Alves <palves@redhat.com>
6641 Hui Zhu <hui@codesourcery.com>
6642
6643 * breakpoint.c (dprintf_re_set): New.
6644 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6645 to dprintf_re_set.
6646
6647 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6648
6649 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6650 Remove solib-svr4.o from the list.
6651
6652 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6653
6654 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6655 Use gdb_assert_not_reached instead of invalid boolean expression.
6656
6657 2013-04-09 Pedro Alves <palves@redhat.com>
6658
6659 * remote.c (unpush_and_perror): New function.
6660 (readchar, remote_serial_write): Use it.
6661
6662 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6663
6664 * NEWS: Mention new btrace RSP packets.
6665
6666 2013-04-08 Tom Tromey <tromey@redhat.com>
6667
6668 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6669 long.
6670
6671 2013-04-08 Tom Tromey <tromey@redhat.com>
6672
6673 * maint.c (print_bfd_section_info): Print the section index.
6674 * symmisc.c (dump_msymbols): Print the section index.
6675
6676 2013-04-08 Tom Tromey <tromey@redhat.com>
6677
6678 PR symtab/8424:
6679 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6680 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6681 * breakpoint.c (resolve_sal_pc): Update.
6682 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6683 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6684 (minsym_lookup_iterator_cb): Use it.
6685 (default_read_var_value): Update.
6686 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6687 Update.
6688 * infcmd.c (jump_command): Update.
6689 * linespec.c (minsym_found): Update.
6690 * maint.c (maintenance_translate_address): Update.
6691 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6692 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6693 * parse.c (write_exp_msymbol): Update.
6694 * printcmd.c (address_info): Update.
6695 * psymtab.c (find_pc_sect_psymbol): Update.
6696 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6697 SYMBOL_OBJ_SECTION.
6698 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6699 Don't initialize SYMBOL_OBJ_SECTION.
6700 * spu-tdep.c (spu_catch_start): Update.
6701 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6702 * symmisc.c (dump_msymbols, print_symbol): Update.
6703 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6704 how fallback section is computed.
6705 (fixup_symbol_section): Update.
6706 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6707 Update.
6708 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6709 Initialize SYMBOL_SECTION.
6710 * symtab.h (struct general_symbol_info) <section>: Update comment.
6711 <obj_section>: Remove.
6712 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6713 (SYMBOL_OBJFILE): New macro.
6714
6715 2013-04-08 Tom Tromey <tromey@redhat.com>
6716
6717 * coffread.c (record_minimal_symbol): Update.
6718 * dbxread.c (record_minimal_symbol): Update.
6719 * elfread.c (record_minimal_symbol): Update.
6720 * machoread.c (macho_symtab_add_minsym): Update.
6721 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6722 Update.
6723 * minsyms.c (prim_record_minimal_symbol): Update.
6724 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6725 argument.
6726 (prim_record_minimal_symbol_and_info): Likewise.
6727 * minsyms.h (prim_record_minimal_symbol_full)
6728 (prim_record_minimal_symbol_and_info): Update.
6729 * symtab.c (allocate_symbol, initialize_symbol)
6730 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6731 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6732 Update.
6733
6734 2013-04-08 Tom Tromey <tromey@redhat.com>
6735
6736 PR symtab/8423:
6737 * solib-som.c (som_solib_section_offsets): Use BFD section
6738 indices. Set offsets for all sections.
6739 * somread.c (som_symtab_read): Compute BFD section for
6740 symbol. Use prim_record_minimal_symbol_and_info.
6741 (som_symfile_read): Fix comment.
6742 (struct find_section_offset_arg): New.
6743 (find_section_offset, set_section_index): New functions.
6744 (som_symfile_offsets): Use set_section_index to compute
6745 section indices.
6746
6747 2013-04-08 Tom Tromey <tromey@redhat.com>
6748
6749 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6750 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6751 gdb_bfd_section_index.
6752 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6753 New functions.
6754 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6755 Declare.
6756 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6757 Update.
6758 * objfiles.c (add_to_objfile_sections_full): New function.
6759 (add_to_objfile_sections): Use it.
6760 (build_section_table): Rewrite.
6761 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6762 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6763 (struct objfile) <sections>: Update comment.
6764 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6765 is NULL.
6766 (ALL_OBJSECTIONS): Use it.
6767 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6768 * solib-frv.c (frv_relocate_main_executable): Update.
6769 * solib-target.c (solib_target_relocate_section_addresses):
6770 Use gdb_bfd_section_index.
6771 * symfile.c (build_section_addr_info_from_section_table):
6772 Use gdb_bfd_section_index.
6773 (build_section_addr_info_from_bfd, place_section): Likewise.
6774 * symtab.c (fixup_section): Update.
6775 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6776
6777 2013-04-08 Tom Tromey <tromey@redhat.com>
6778
6779 * minsyms.h (struct bound_minimal_symbol): New.
6780 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6781 Remove objfile argument.
6782 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6783 Return bound_minimal_symbol.
6784 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6785 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6786 Return bound_minimal_symbol.
6787 (in_gnu_ifunc_stub): Update.
6788 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6789 Remove 'objfile_p' argument.
6790 (lookup_solib_trampoline_symbol_by_pc): Update.
6791 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6792 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6793 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6794 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6795 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6796 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6797 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6798 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6799 stack.c, symtab.c, tui/tui-disasm.c: Update.
6800
6801 2013-04-08 Tom Tromey <tromey@redhat.com>
6802
6803 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6804 Use symbol's obstack, not an objfile.
6805 * coffread.c (process_coff_symbol): Update.
6806 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6807 * jv-lang.c (add_class_symbol): Update.
6808 * mdebugread.c (new_symbol): Update.
6809 * minsyms.c (prim_record_minimal_symbol_full)
6810 (terminate_minimal_symbol_table): Update.
6811 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6812 * stabsread.c (define_symbol, read_enum_type): Update.
6813 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6814 Handle Ada specially.
6815 (symbol_set_language): Add 'obstack' argument.
6816 (symbol_set_names): Update.
6817 (symbol_natural_name, symbol_demangled_name): Always use
6818 ada_decode_symbol.
6819 * symtab.h (struct general_symbol_info)
6820 <language_specific::obstack>: New field.
6821 <ada_mangled>: New field.
6822 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6823 (symbol_set_language): Update.
6824
6825 2013-04-08 Tom Tromey <tromey@redhat.com>
6826
6827 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6828 Take an obstack, not an objfile.
6829 (symbol_set_names): Update.
6830 * symtab.h (symbol_set_demangled_name): Update.
6831
6832 2013-04-08 Tom Tromey <tromey@redhat.com>
6833
6834 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6835 allocate_symbol.
6836 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6837 (read_func_scope): Call allocate_template_symbol.
6838 (new_symbol_full): Call allocate_symbol.
6839 * jit.c (finalize_symtab): Call allocate_symbol.
6840 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6841 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6842 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6843 (common_block_end): Call allocate_symbol.
6844 * symtab.c (allocate_symbol, initialize_symbol)
6845 (allocate_template_symbol): New functions.
6846 * symtab.c (allocate_symbol, initialize_symbol)
6847 (allocate_template_symbol): Declare.
6848 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6849
6850 2013-04-08 Pedro Alves <palves@redhat.com>
6851 Keith Seitz <keiths@redhat.com>
6852
6853 * breakpoint.c (create_breakpoint): Rename
6854 "parse_condition_and_thread" parameter to "parse_arg". Update
6855 describing comment. If !PARSE_ARG, then error out if ARG is not
6856 the empty string after extracting the location.
6857 * breakpoint.h (create_breakpoint): Rename
6858 "parse_condition_and_thread" parameter to "parse_arg".
6859
6860 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6861
6862 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6863
6864 2013-04-07 Yao Qi <yao@codesourcery.com>
6865
6866 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6867 and 'addr2' to CORE_ADDR.
6868 * target.c (update_current_target): Update.
6869 * target.h (struct target_ops) <to_trace_find>: Change parameter
6870 type to CORE_ADDR.
6871 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6872 'addr2' to CORE_ADDR.
6873 (tfile_trace_find): Likewise.
6874 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6875 Change local variable 'addr' to type CORE_ADDR.
6876 * tracepoint.h (tfind_1): Update declaration.
6877
6878 2013-04-06 Eli Zaretskii <eliz@gnu.org>
6879
6880 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6881 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6882 Include main.h.
6883
6884 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6885 here...
6886 * main.h (windows_get_absolute_argv0): ...to here.
6887
6888 2013-04-05 Doug Evans <dje@google.com>
6889
6890 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6891 (read_cutu_die_from_dwo): Add comments.
6892 (read_structure_type): Update comment.
6893 (read_enumeration_type, read_namespace_type): Update comment.
6894 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6895
6896 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6897
6898 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6899 * Makefile.in (gdb.z): Remove.
6900 (install-only): Remove $(man1dir) and gdb.1 installation.
6901 * gdb.1: Remove.
6902
6903 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6904
6905 Fix compatibility with Linux kernel 3.8.3.
6906 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6907 to more inner block. Remove parsing of NUMBER from outer block.
6908 Parse NUMBER only if KEYWORD has been identified.
6909
6910 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6911
6912 Fix variable name shadowing.
6913 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6914 filename to mapsfilename and update its uses.
6915
6916 2013-04-05 Eli Zaretskii <eliz@gnu.org>
6917
6918 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6919 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6920 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6921 details of the problem.
6922
6923 2013-04-04 Pedro Alves <palves@redhat.com>
6924 Hui Zhu <hui@codesourcery.com>
6925
6926 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6927 tracepoint, reset its STEP_COUNT and call validate_actionline.
6928
6929 2013-04-03 Doug Evans <dje@google.com>
6930
6931 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6932 read_die_and_siblings.
6933 (read_die_and_siblings): New function.
6934 (read_cutu_die_from_dwo): Dump die if requested.
6935 (read_die_and_children): Call read_full_die_1 and
6936 read_die_and_siblings_1.
6937 (read_full_die): Dump die if requested.
6938
6939 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6940
6941 * dwarf2read.c (struct dwo_file): New member comp_dir.
6942 Rename member name to dwo_name. All uses updated.
6943 (hash_dwo_file): Include comp_dir in computation.
6944 (eq_dwo_file): Ditto.
6945 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6946 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6947
6948 * psymtab.c (read_psymtabs_with_fullname): Don't call
6949 psymtab_to_fullname if the basenames are different.
6950
6951 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6952
6953 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6954 New entry about "fullname" presence.
6955
6956 2013-04-03 Pedro Alves <palves@redhat.com>
6957
6958 * NEWS: Mention x86_64/Cygwin as new native configuration.
6959
6960 2013-04-02 Doug Evans <dje@google.com>
6961
6962 * dwarf2read.c (read_structure_type): Fix typo in comment.
6963
6964 2013-04-02 Pedro Alves <palves@redhat.com>
6965
6966 * NEWS: Mention "set/show debug aarch64", "set/show debug
6967 coff-pe-read" and "set/show debug mach-o".
6968
6969 2013-04-02 Pedro Alves <palves@redhat.com>
6970
6971 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6972
6973 2013-04-02 Eli Zaretskii <eliz@gnu.org>
6974
6975 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6976 gdb_string.h is now in common/.
6977
6978 2013-04-02 Pedro Alves <palves@redhat.com>
6979
6980 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6981 under "New options".
6982
6983 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6984
6985 Revert this patch:
6986 PR gdb/15275
6987 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6988
6989 2013-04-02 Pedro Alves <palves@redhat.com>
6990
6991 PR gdb/15275
6992
6993 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6994 (remote_serial_write): New function.
6995 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6996
6997 2013-04-01 Jiong Wang <jiwang@tilera.com>
6998
6999 * NEWS: Mention TILE-Gx in "New native configurations" and
7000 "New targets" sections.
7001
7002 2013-04-01 Doug Evans <dje@google.com>
7003
7004 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7005 (process_enumeration_scope): Simplify.
7006
7007 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7008 type_unit_group ...
7009 (struct signatured_type): ... to here.
7010 (sig_type_ptr): New typedef.
7011 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7012 out of union 't'. All uses updated.
7013 (dw2_get_file_names_reader): Assert not called for a type unit.
7014 (dw2_get_file_names): Assert not called for a type unit or type
7015 unit group.
7016 (build_type_psymtabs_reader): Assert called for a type unit.
7017 (build_type_psymtab_dependencies): Assert called for a type unit group.
7018
7019 * dwarf2read.c (free_dwo_file): Add comment.
7020 (dwarf2_per_objfile_free): Unref dwp bfd.
7021
7022 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7023
7024 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7025 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7026 (read_pe_exported_syms): Remove unused 'exportix'.
7027 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7028 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7029 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7030
7031 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7032
7033 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7034 (print_it_watchpoint): Remove unused 'bl'.
7035 (say_where): Remove unused 'uiout'.
7036 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7037 (bkpt_breakpoint_hit): Remove unused 'b'.
7038 (internal_bkpt_print_it): Remove unused 'uiout'.
7039 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7040
7041 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7042
7043 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7044 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7045
7046 2013-03-29 Doug Evans <dje@google.com>
7047
7048 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7049 Delete arg is_dwp. All callers updated.
7050 (open_dwp_file): New function.
7051 (open_and_init_dwp_file): Call it.
7052 (get_dwp_file): New function.
7053 (lookup_dwo_cutu): Call it.
7054
7055 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7056 unnecessary, cleanup.
7057
7058 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7059
7060 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7061 (lookup_dwo_unit): New function.
7062 (init_cutu_and_read_dies): Move DWO handling to new functions.
7063
7064 * dwarf2read.c (struct signatured_type): Tweak comment.
7065 (struct dwo_unit): Tweak comment.
7066 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7067 (create_dwo_debug_info_hash_table): Tweak comment.
7068 (dwarf2_per_cu_offset_and_type): Tweak comment.
7069
7070 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7071 missing .debug_types section.
7072
7073 2013-03-29 Yao Qi <yao@codesourcery.com>
7074
7075 * corelow.c: Include "completer.h".
7076 (_initialize_corelow): Call add_target_with_completer with
7077 argument 'filename_completer'.
7078 * tracepoint.c: Likewise.
7079 * exec.c (_initialize_exec): Likewise.
7080 * target.c (add_target): Rename to ...
7081 (add_target_with_completer): ... this. Call set_cmd_completer
7082 if parameter completer is not NULL.
7083 (add_target): New.
7084 * target.h: Include "command.h".
7085 (add_target_with_completer): Declare it.
7086
7087 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7088
7089 * coffread.c (is_import_fixup_symbol): New function.
7090 (record_minimal_symbol): Use is_import_fixup_symbol to
7091 detect import fixup symbols, and discard them.
7092
7093 2013-03-28 Doug Evans <dje@google.com>
7094
7095 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7096 types hash table until we know we need it.
7097
7098 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7099 index numbers.
7100
7101 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7102 All callers updated.
7103 (dw2_print_stats): Print #read CUs too.
7104 (dump_die_shallow): Print signatured types better.
7105
7106 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7107 info_or_types_section to section. All uses updated.
7108 (struct dwo_unit): Ditto.
7109
7110 2013-03-28 Pedro Alves <palves@redhat.com>
7111
7112 * NEWS (New options): New section.
7113 (New options): Mention set/show remote trace-status-packet.
7114 * remote.c (PACKET_qTStatus): New enumeration value.
7115 (remote_get_trace_status): Skip sending qTStatus if the packet is
7116 disabled. Use packet_ok.
7117 (_initialize_remote): Register a configuration command for
7118 qTStatus packet.
7119
7120 2013-03-28 Doug Evans <dje@google.com>
7121
7122 * symfile.c (find_separate_debug_file): Add comment.
7123 (terminate_after_last_dir_separator): Tweak comment.
7124
7125 * dwarf2read.c (create_partial_symtab): Add forward decl.
7126 (create_partial_symtab): Move to be closer to other psymtab functions.
7127 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7128
7129 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7130 (compute_symtab_includes): Remove unnecessary forward declaration.
7131 (die_needs_namespace): Add comment marking group of functions for
7132 dwarf2 name computation.
7133
7134 * typeprint.c (_initialize_typeprint): Improve type help text.
7135
7136 * python/python.c (finish_python_initialization): Provide suggestion
7137 for how to tell gdb to find its python files.
7138
7139 2013-03-28 Pedro Alves <palves@redhat.com>
7140
7141 PR gdb/15294
7142
7143 * source.c (_initialize_source): Change back "set listsize" to an
7144 integer command.
7145
7146 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7147
7148 PR gdb/15275
7149 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7150
7151 2013-03-27 Pedro Alves <palves@redhat.com>
7152
7153 * top.c (history_size): Rename to ...
7154 (history_size_setshow_var): ... this. Add comment.
7155 (show_commands): Use readline's 'history_length' instead of
7156 computing the history length by calling history_get in a loop.
7157 (set_history_size_command): Error out for sizes over INT_MAX.
7158 Restore previous history size on invalid size.
7159 (init_history): If HISTSIZE is negative, leave the history size as
7160 zero. Add comments.
7161 (init_main): Adjust.
7162
7163 2013-03-27 Pedro Alves <palves@redhat.com>
7164
7165 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7166 coff_pe_read" command to "set debug coff-pe-read".
7167
7168 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7169
7170 * record.c (command_size_to_target_size): Fix size comparison.
7171 Change parameter type from pointer to integer to integer.
7172 Update all users.
7173
7174 2013-03-27 Pierre Muller <muller@sourceware.org>
7175
7176 * windows-nat.c (handle_output_debug_string): Avoid typecast
7177 from integer of different size warning.
7178
7179 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7180
7181 * windows-nat.c (handle_output_debug_string): Add empty line
7182 after local block variable definition.
7183
7184 2013-03-26 Pedro Alves <palves@redhat.com>
7185
7186 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7187 (net_open): Make 'polls' local unsigned.
7188
7189 2013-03-26 Pedro Alves <palves@redhat.com>
7190
7191 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7192 a zuinteger command instead of uinteger.
7193
7194 2013-03-26 Pedro Alves <palves@redhat.com>
7195
7196 * record-full.c (record_full_insn_num): Make it unsigned.
7197 (record_full_check_insn_num, record_full_message)
7198 (record_full_registers_change, record_full_xfer_partial): Remove
7199 record_full_insn_max_num check (it's always != 0).
7200 (record_full_info, record_full_restore): Use %u as format string.
7201 (): Use %u as format string.
7202 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7203 check (it's always != 0).
7204
7205 2013-03-26 Pedro Alves <palves@redhat.com>
7206
7207 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7208 and "set dcache size" commands zuinteger instead of uinteger.
7209
7210 2013-03-26 Pedro Alves <palves@redhat.com>
7211
7212 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7213 command zuinteger instead of uinteger.
7214
7215 2013-03-26 Pedro Alves <palves@redhat.com>
7216
7217 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7218 zuinteger instead of uinteger.
7219
7220 2013-03-26 Pedro Alves <palves@redhat.com>
7221
7222 * record.c (record_insn_history_size_setshow_var)
7223 (record_call_history_size_setshow_var): New globals.
7224 (command_size_to_target_size): New function.
7225 (cmd_record_insn_history, cmd_record_call_history): Use
7226 command_size_to_target_size instead of cast.
7227 (validate_history_size, set_record_insn_history_size)
7228 (set_record_call_history_size): New functions.
7229 (_initialize_record): Install set_record_insn_history_size and
7230 set_record_call_history_size as "set" hooks of "set record
7231 instruction-history-size" and "set record
7232 function-call-history-size".
7233
7234 2013-03-26 Pedro Alves <palves@redhat.com>
7235
7236 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7237 use with history_max_entries use. Remove FIXME note.
7238
7239 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7240
7241 * record-btrace.c (record_btrace_close): Call
7242 record_btrace_auto_disable.
7243
7244 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7245
7246 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7247
7248 2013-03-25 Doug Evans <dje@google.com>
7249
7250 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7251
7252 2013-03-25 Tom Tromey <tromey@redhat.com>
7253
7254 PR symtab/11462:
7255 * c-exp.y (exp): Add new productions for destructors after '.' and
7256 '->'.
7257 (write_destructor_name): New function.
7258
7259 2013-03-25 Tom Tromey <tromey@redhat.com>
7260
7261 PR c++/9197:
7262 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7263 value_struct_elt, not lookup_struct_elt_type.
7264 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7265 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7266 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7267
7268 2013-03-25 Yao Qi <yao@codesourcery.com>
7269
7270 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7271 instead of '_mkdir'.
7272
7273 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7274
7275 * windows-nat.c (windows_get_absolute_argv0): New function.
7276 * windows-nat.h: Add its prototype.
7277
7278 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7279 Use IS_DIR_SEPARATOR instead of looking for a character inside
7280 SLASH_STRING. Include filenames.h.
7281 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7282 relocate_gdb_directory works when passed gdb_program_name.
7283 Include windows-nat.h.
7284
7285 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7286
7287 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7288 * remote.c (trace_error): Remove the special handling of '2'.
7289 (readchar) <SERIAL_EOF>
7290 (readchar) <SERIAL_ERROR>
7291 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7292 (remote_get_trace_status): Call throw_exception if EX is
7293 TARGET_CLOSE_ERROR.
7294 * utils.c (perror_with_name): Rename to ...
7295 (throw_perror_with_name): ... here. New parameter errcode, describe it
7296 in the function comment.
7297 (perror_with_name): New function wrapper.
7298 * utils.h (enum errors): New stub declaration.
7299 (throw_perror_with_name): New declaration.
7300
7301 2013-03-22 Pedro Alves <palves@redhat.com>
7302 Yao Qi <yao@codesourcery.com>
7303 Mark Kettenis <kettenis@gnu.org>
7304
7305 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7306 Don't let the user set the value to UINT_MAX directly.
7307 <var_integer>: Don't let the user set the value to INT_MAX
7308 directly.
7309
7310 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7311
7312 * remote.c (remote_unpush_target): New function.
7313 (remote_open_1): Remove two pop_target calls, update one comment, add
7314 comment to target_preopen call. Replace pop_target call by
7315 remote_unpush_target call.
7316 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7317 pop_target calls by remote_unpush_target calls.
7318
7319 2013-03-22 Pedro Alves <palves@redhat.com>
7320
7321 * linux-nat.c (linux_child_follow_fork): Don't call
7322 linux_enable_event_reporting.
7323 (linux_handle_extended_wait): Don't call
7324 linux_enable_event_reporting.
7325
7326 2013-03-22 Pedro Alves <palves@redhat.com>
7327
7328 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7329 use it to rewrite the trampoline buffers with type gdb_byte[], and
7330 undefine the macro. Remove char* cast.
7331
7332 2013-03-21 Doug Evans <dje@google.com>
7333
7334 New commands "mt set per-command {space,time,symtab} {on,off}".
7335 * NEWS: Add entry.
7336 * event-top.c: #include "maint.h".
7337 * main.c: #include "maint.h".
7338 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7339 timeval-utils.h, maint.h, cli/cli-setshow.h.
7340 (per_command_time, per_command_space): New static globals.
7341 (per_command_symtab): New static global.
7342 (per_command_setlist, per_command_showlist): New static globals.
7343 (struct cmd_stats): Move here from utils.c.
7344 (set_per_command_time): Renamed from set_display_time in utils.c
7345 and moved here. All callers updated.
7346 (set_per_command_space): Renamed from set_display_space in utils.c
7347 and moved here. All callers updated.
7348 (count_symtabs_and_blocks): New function.
7349 (report_command_stats): Moved here from utils.c. Add support for
7350 printing symtab stats. Only print data if enabled before command
7351 executed.
7352 (make_command_stats_cleanup): Ditto.
7353 (sert_per_command_cmd, show_per_command_cmd): New functions.
7354 (_initialize_maint_cmds): Add new commands
7355 mt set per-command {space,time,symtab} {on,off}.
7356 * maint.h: New file.
7357 * top.c: #include "maint.h".
7358 * utils.c (reset_prompt_for_continue_wait_time): New function.
7359 (get_prompt_for_continue_wait_time): New function.
7360 * utils.h (reset_prompt_for_continue_wait_time): Declare
7361 (get_prompt_for_continue_wait_time): Declare.
7362 (make_command_stats_cleanup): Moved to maint.h.
7363 (set_display_time, set_display_space): Moved to maint.h and renamed
7364 to set_per_command_time, set_per_command_space.
7365 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7366 parse_binary_operation and made non-static. Don't call error,
7367 just return an error marker. All callers updated.
7368 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7369
7370 2013-03-21 Tom Tromey <tromey@redhat.com>
7371
7372 * symfile.c (alloc_section_addr_info): Update header. Don't set
7373 'num_sections' field.
7374 (build_section_addr_info_from_section_table): Set 'num_sections'.
7375 (build_section_addr_info_from_bfd): Likewise.
7376 (build_section_addr_info_from_objfile): Remove dead loop
7377 condition.
7378 (free_section_addr_info): Unconditionally call xfree.
7379 (relative_addr_info_to_section_offsets, addrs_section_sort)
7380 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7381 condition.
7382 (syms_from_objfile_1): Remove dead 'if' condition. Check
7383 'num_sections'.
7384 (add_symbol_file_command): Set 'num_sections'.
7385 * symfile-mem.c (symbol_file_add_from_memory): Set
7386 'num_sections'.
7387 * somread.c (som_symfile_offsets): Remove dead loop condition.
7388 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7389 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7390
7391 2013-03-21 Tom Tromey <tromey@redhat.com>
7392
7393 * tracepoint.h (decode_agent_options): Add 'trace_string'
7394 argument.
7395 * tracepoint.c (decode_agent_options): Add 'trace_string'
7396 argument.
7397 (validate_actionline): Update.
7398 (collect_symbol): Add 'trace_string' argument.
7399 (struct add_local_symbols_data) <trace_string>: New field.
7400 (do_collect_symbol): Update.
7401 (add_local_symbols): Add 'trace_string' argument.
7402 (encode_actions_1): Update.
7403 (trace_dump_actions): Update.
7404 * dwarf2loc.c (access_memory): Update.
7405 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7406 * ax-general.c (new_agent_expr): Update.
7407 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7408 (gen_trace_for_return_address): Add argument.
7409 (trace_kludge, trace_string_kludge): Remove.
7410 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7411 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7412 (gen_trace_for_var): Add 'trace_string' argument.
7413 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7414 (gen_printf, agent_eval_command_one): Update.
7415
7416 2013-03-21 Tom Tromey <tromey@redhat.com>
7417
7418 PR exp/15109:
7419 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7420 Handle FILENAME token.
7421
7422 2013-03-21 Tom Tromey <tromey@redhat.com>
7423
7424 * c-exp.y (YYPRINT): Define.
7425 (c_print_token): New function.
7426
7427 2013-03-21 Tom Tromey <tromey@redhat.com>
7428
7429 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7430
7431 2013-03-21 Yao Qi <yao@codesourcery.com>
7432
7433 * ctf.c: Include "gdb_stat.h".
7434 [USE_WIN32API]: New macro 'mkdir'.
7435 (ctf_start): Use permission bits macros if they are defined.
7436
7437 2013-03-20 Keith Seitz <keiths@redhat.com>
7438
7439 * breakpoint.h (struct breakpoint): Add comment to
7440 extra_string indicating that this member is mallod'd.
7441 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7442
7443 2013-03-20 Pedro Alves <palves@redhat.com>
7444
7445 PR gdb/15289
7446
7447 * cli/cli-setshow.c (do_set_command)
7448 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7449 the result of parsing the command argument. Throw error if the
7450 value is greater than UINT_MAX. Print the invalid value with
7451 plongest.
7452 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7453 result of parsing the command argument. Throw error if the value
7454 is greater than INT_MAX, not greater or equal. Also throw error
7455 if the value is less than INT_MIN. Print the invalid value with
7456 plongest.
7457 <var_zuinteger_unlimited>: Throw error if the value is greater
7458 than INT_MAX, not greater or equal.
7459 (do_show_command) <var_integer, var_zinteger,
7460 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7461
7462 2013-03-20 Tom Tromey <tromey@redhat.com>
7463
7464 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7465 if possible.
7466 * dwarf2read.c (read_func_scope): Remove old FIXME.
7467 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7468 not LOC_COMPUTED.
7469 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7470 Unconditionally call via computed ops, if possible.
7471 * printcmd.c (address_info): Unconditionally call via computed ops,
7472 if possible.
7473 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7474 if possible.
7475 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7476 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7477 if possible.
7478
7479 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7480 Tom Tromey <tromey@redhat.com>
7481
7482 PR symtab/8421:
7483 * coffread.c (coff_register_index): New global.
7484 (process_coff_symbol, coff_read_enum_type): Set
7485 SYMBOL_ACLASS_INDEX.
7486 (_initialize_coffread): Initialize new global.
7487 * dwarf2loc.c (locexpr_find_frame_base_location)
7488 (dwarf2_block_frame_base_locexpr_funcs)
7489 (loclist_find_frame_base_location)
7490 (dwarf2_block_frame_base_loclist_funcs): New.
7491 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7492 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7493 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7494 (dwarf2_block_frame_base_loclist_funcs): New.
7495 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7496 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7497 globals.
7498 (read_func_scope): Update.
7499 (fixup_go_packaging, mark_common_block_symbol_computed)
7500 (var_decode_location, new_symbol_full, dwarf2_const_value):
7501 Set SYMBOL_ACLASS_INDEX.
7502 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7503 (_initialize_dwarf2_read): Initialize new globals.
7504 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7505 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7506 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7507 globals.
7508 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7509 (_initialize_mdebugread): Initialize new globals.
7510 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7511 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7512 (stab_register_index, stab_regparm_index): New globals.
7513 (define_symbol, read_enum_type, common_block_end): Set
7514 SYMBOL_ACLASS_INDEX.
7515 (_initialize_stabsread): Initialize new globals.
7516 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7517 globals.
7518 (MAX_SYMBOL_IMPLS): New define.
7519 (register_symbol_computed_impl, register_symbol_block_impl)
7520 (register_symbol_register_impl)
7521 (initialize_ordinary_address_classes): New functions.
7522 (_initialize_symtab): Call initialize_ordinary_address_classes.
7523 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7524 (struct symbol_impl): New.
7525 (SYMBOL_ACLASS_BITS): New define.
7526 (struct symbol) <aclass, ops>: Remove fields.
7527 <aclass_index>: New field.
7528 (symbol_impls): Declare.
7529 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7530 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7531 (register_symbol_computed_impl, register_symbol_block_impl)
7532 (register_symbol_register_impl): Declare.
7533 (struct symbol_computed_ops): Add location_has_loclist.
7534 (struct symbol_block_ops): New.
7535 (SYMBOL_BLOCK_OPS): New.
7536 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7537
7538 2013-03-20 Tom Tromey <tromey@redhat.com>
7539
7540 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7541 (print_partial_symbols, recursively_search_psymtabs): Use
7542 PSYMBOL_CLASS.
7543
7544 2013-03-20 Pierre Muller <muller@sourceware.org>
7545
7546 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7547 addtion, subtraction, multiplication and division binary operator.
7548
7549 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7550
7551 Code cleanup.
7552 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7553 * bsd-kvm.c (bsd_kvm_close): Likewise.
7554 * bsd-uthread.c (bsd_uthread_close): Likewise.
7555 * corelow.c (core_close): Likewise.
7556 (core_close_cleanup): Remove parameter quitting from a caller.
7557 * event-top.c (async_disconnect): Likewise.
7558 * exec.c (exec_close_1): Remove parameter quitting.
7559 * go32-nat.c (go32_close): Likewise.
7560 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7561 parameter quitting from a caller.
7562 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7563 variable.
7564 (mips_linux_close): Remove parameter quitting. Remove parameter
7565 quitting from a caller.
7566 * monitor.c (monitor_close): Remove parameter quitting.
7567 * monitor.h (monitor_close): Likewise.
7568 * record-btrace.c (record_btrace_close): Likewise.
7569 * record-full.c (record_full_close): Likewise.
7570 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7571 it also from fprintf_unfiltered.
7572 * remote-mips.c (mips_close): Remove parameter quitting.
7573 (mips_detach): Remove parameter quitting from a caller.
7574 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7575 (gdbsim_close): Remove duplicate function comment. Remove parameter
7576 quitting and remove it also from printf_filtered.
7577 * remote.c (remote_close): Remove parameter quitting.
7578 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7579 * target.c (update_current_target): Remove parameter int from to_close
7580 de_fault.
7581 (push_target, unpush_target, pop_target): Remove parameter quitting from
7582 a caller.
7583 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7584 Remove parameter quitting from a caller.
7585 (target_preopen): Remove parameter quitting from a caller.
7586 (target_close): Remove parameter quitting. Remove parameter quitting
7587 from a caller two times. Remove parameter quitting also from
7588 fprintf_unfiltered.
7589 * target.h (struct target_ops): Remove parameter quitting and as int
7590 from fields to_xclose and to_close.
7591 (extern struct target_ops current_target):
7592 (target_close, pop_all_targets): Remove parameter quitting. Update the
7593 comment.
7594 (pop_all_targets_above): Remove parameter quitting.
7595 * top.c (quit_target): Remove parameter quitting from a caller.
7596 * tracepoint.c (tfile_close): Remove parameter quitting.
7597 * windows-nat.c (windows_close): Remove parameter quitting.
7598
7599 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7600
7601 * windows-nat.c (handle_output_debug_string): Replace call
7602 to string_to_core_addr with call to strtoull.
7603
7604 2013-03-20 Yao Qi <yao@codesourcery.com>
7605
7606 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7607 and write it to CTF metadata.
7608
7609 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7610
7611 * windows-nat.c (handle_output_debug_string): Change type of n to
7612 SIZE_T to avoid crash on 64 bit systems.
7613
7614 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7615
7616 * python/python-internal.h (HAVE_SNPRINTF)
7617 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7618 about redefinition of snprintf by pyerrors.h.
7619
7620 2013-03-15 Steve Ellcey <sellcey@mips.com>
7621
7622 * remote-sim.c (sim_command_completer): Make char arguments const.
7623
7624 2013-03-15 Tom Tromey <tromey@redhat.com>
7625
7626 PR c++/15116:
7627 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7628
7629 2013-03-14 Tom Tromey <tromey@redhat.com>
7630
7631 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7632 New fields.
7633 (get_file_crc): Move from symfile.c.
7634 (gdb_bfd_crc): New function.
7635 * gdb_bfd.h (gdb_bfd_crc): Declare.
7636 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7637 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7638 (separate_debug_file_exists): Use gdb_bfd_crc.
7639
7640 2013-03-14 Tom Tromey <tromey@redhat.com>
7641
7642 * symfile.c (get_debug_link_info): Remove.
7643 (find_separate_debug_file_by_debuglink): Use
7644 bfd_get_debug_link_info.
7645
7646 2013-03-14 Tom Tromey <tromey@redhat.com>
7647
7648 * symtab.c (error_in_psymtab_expansion): New function.
7649 (lookup_symbol_aux_quick)
7650 (basic_lookup_transparent_type_quick): Remove "last resort"
7651 code. Use error_in_psymtab_expansion.
7652
7653 2013-03-14 Doug Evans <dje@google.com>
7654 Jan Kratochvil <jan.kratochvil@redhat.com>
7655
7656 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7657 any successful compare_filenames_for_search or FILENAME_CMP.
7658 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7659 * symtab.c (iterate_over_some_symtabs): Likewise.
7660
7661 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7662
7663 * source.c (print_source_lines_base): Make a local copy of
7664 symtab_to_fullname.
7665
7666 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
7667 Jan Kratochvil <jan.kratochvil@redhat.com>
7668
7669 * source.c (print_source_lines_base): Suppress "file" for TUI.
7670
7671 2013-03-14 Keith Seitz <keiths@redhat.com>
7672 Alan Matsuoka <alanm@redhat.com>
7673
7674 PR c++/15203
7675 PR c++/15210
7676 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7677 TYPE_CODE_METHOD.
7678 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7679 symbols.
7680
7681 2013-03-14 Yao Qi <yao@codesourcery.com>
7682
7683 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7684 status to tfile if trace is stopped by command 'tstop'.
7685
7686 2013-03-14 Yao Qi <yao@codesourcery.com>
7687
7688 * tracepoint.c (tfile_write_status): Write trace notes and user
7689 name into tfile if they are not NULL.
7690
7691 2013-03-14 Hui Zhu <hui@codesourcery.com>
7692 Yao Qi <yao@codesourcery.com>
7693
7694 * Makefile.in (REMOTE_OBS): Add ctf.o.
7695 (SFILES): Add ctf.c.
7696 (HFILES_NO_SRCDIR): Add ctf.h.
7697 * ctf.c, ctf.h: New files.
7698 * tracepoint.c: Include 'ctf.h'.
7699 (collect_pseudocommand): Remove static.
7700 (trace_save_command): Parse option "-ctf".
7701 Produce different trace file writers per option.
7702 Adjust output message.
7703 (trace_save_tfile, trace_save_ctf): New.
7704 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7705 * mi/mi-main.c: Include 'ctf.h'.
7706 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7707 trace_save_tfile or trace_save_ctf.
7708 * NEWS: Mention these changes.
7709
7710 2013-03-14 Yao Qi <yao@codesourcery.com>
7711
7712 * tracepoint.c (trace_file_writer_xfree): New.
7713 (struct tfile_writer_data): New.
7714 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7715 (tfile_write_header, tfile_write_regblock_type): New.
7716 (tfile_write_status, tfile_write_uploaded_tsv): New.
7717 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7718 (tfile_write_raw_data, (tfile_end): New.
7719 (tfile_write_ops): New global variable.
7720 (TRACE_WRITE_R_BLOCK): New macro.
7721 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7722 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7723 (TRACE_WRITE_V_BLOCK): New macro.
7724 (trace_save): Add extra one parameter WRITER. Make it static.
7725 Use WRITER to writer trace.
7726 (tfile_trace_file_writer_new): New.
7727 (trace_save_command): Caller update.
7728 (trace_save_tfile): Write trace data in TFILE format.
7729 * tracepoint.h (struct trace_frame_write_ops): New.
7730 (struct trace_file_write_ops): New.
7731 (struct trace_file_writer): New.
7732 (trace_save): Remove its declaration.
7733 (trace_save_tfile): Declare it.
7734 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7735 instead of trace_save.
7736
7737 2013-03-13 Pedro Alves <palves@redhat.com>
7738
7739 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7740
7741 2013-03-13 Pedro Alves <palves@redhat.com>
7742
7743 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7744 commented out code.
7745 * demangle.c (current_demangling_style_string): Make it const.
7746 (set_demangling_command): Assert the demangling style is known.
7747 Remove all handling of unknown styles. Set
7748 'current_demangling_style_string' to an element of the
7749 demangling_style_names array.
7750 (set_demangling_style): Delete.
7751 (_initialize_demangler): Set current_demangling_style_string to the
7752 element of the demangling_style_names array that corresponds to
7753 the default demangling style. Remove FIXME note. Don't call
7754 set_demangling_style.
7755 * gdb-demangle.h (set_demangling_style): Remove declaration.
7756
7757 2013-03-13 Pedro Alves <palves@redhat.com>
7758
7759 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7760 fields const.
7761 (ada_make_symbol_completion_list): Make "text0" parameter const.
7762 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7763 * breakpoint.c (condition_completer): Make "text" and "word"
7764 parameters const. Adjust.
7765 (check_tracepoint_command): Adjust to validate_actionline
7766 prototype change.
7767 (catch_syscall_completer): Make "text" and "word" parameters
7768 const.
7769 * cli/cli-cmds.c (show_user): Make "comname" local const.
7770 (valid_command_p): Make "command" parameter const.
7771 (alias_command): Make "alias_prefix" and "command_prefix" locals
7772 const.
7773 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7774 (add_alias_cmd): Make "name" and "oldname" parameters const.
7775 Adjust. No longer make copy of OLDNAME.
7776 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7777 (add_setshow_cmd_full, add_setshow_enum_cmd)
7778 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7779 (add_setshow_filename_cmd, add_setshow_string_cmd)
7780 (add_setshow_string_noescape_cmd)
7781 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7782 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7783 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7784 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7785 Make "name" parameter const.
7786 (help_cmd): Rename "command" parameter to "arg". New const local
7787 "command".
7788 (find_cmd): Make "command" parameter const.
7789 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7790 deprecated_cmd_warning prototype change.
7791 (undef_cmd_error): Make "cmdtype" parameter const.
7792 (lookup_cmd): Make "line" parameter const.
7793 (deprecated_cmd_warning): Change type of "text" parameter to
7794 pointer to const char, from pointer to pointer to char. Adjust.
7795 (lookup_cmd_composition): Make "text" parameter const.
7796 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7797 parameters const.
7798 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7799 const.
7800 * cli/cli-script.c (validate_comname): Make "tem" local const.
7801 (define_command): New const local "tem_c". Use it in calls to
7802 lookup_cmd.
7803 (document_command): Make "tem" and "comfull" locals const.
7804 (show_user_1): Make "prefix" and "name" parameters const.
7805 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7806 const.
7807 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7808 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7809 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7810 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7811 (complete_on_enum, add_setshow_enum_cmd)
7812 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7813 (add_setshow_filename_cmd, add_setshow_string_cmd)
7814 (add_setshow_string_noescape_cmd)
7815 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7816 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7817 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7818 Change prototypes, constifying strings.
7819 * completer.c (noop_completer, filename_completer): Make "text"
7820 and "prefix" parameters const.
7821 (location_completer, expression_completer)
7822 (complete_line_internal): Make "text" and "prefix" parameters
7823 const and adjust.
7824 (command_completer, signal_completer): Make "text" and "prefix"
7825 parameters const.
7826 * completer.h (noop_completer, filename_completer)
7827 (expression_completer, location_completer, command_completer)
7828 (signal_completer): Change prototypes.
7829 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7830 parameters const.
7831 * cp-abi.c (cp_abi_completer): Likewise.
7832 * expression.h (parse_expression_for_completion): Change
7833 prototype.
7834 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7835 parameters const.
7836 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7837 * infrun.c (handle_completer): Make "text" and "word" parameters
7838 const.
7839 * interps.c (interpreter_completer): Make "text" and "word"
7840 parameters const.
7841 * language.h (struct language_defn)
7842 <la_make_symbol_completion_list>: Make "text" and "word"
7843 parameters const.
7844 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7845 (parse_exp_in_context): Rename to ...
7846 (parse_exp_in_context_1): ... this.
7847 (parse_exp_in_context): Reimplement, with const hack from
7848 parse_exp_1.
7849 (parse_expression_for_completion): Make "string" parameter const.
7850 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7851 to pointer to const char. Adjust.
7852 (print_command_1): Make "exp" parameter const.
7853 (output_command): Rename to ...
7854 (output_command_const): ... this. Make "exp" parameter const.
7855 (output_command): Reimplement.
7856 (x_command): Adjust.
7857 (display_command): Rename "exp" parameter to "arg". New "exp"
7858 local, const version of "arg".
7859 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7860 "cmd_name" local const.
7861 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7862 call.
7863 (cmdpy_completer): Make "text" and "word" parameters const.
7864 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7865 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7866 const.
7867 * remote.c (_initialize_remote): Make "cmd_name" local const.
7868 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7869 parameters const. Adjust.
7870 (completion_list_add_fields): Make "sym_text", "text" and "word"
7871 parameters const.
7872 (struct add_name_data) <sym_text, text, word>: Make fields const.
7873 (default_make_symbol_completion_list_break_on): Make "text" and
7874 "word" parameters const. Adjust locals.
7875 (default_make_symbol_completion_list)
7876 (make_symbol_completion_list, make_symbol_completion_type)
7877 (make_symbol_completion_list_fn): Make "text" and "word"
7878 parameters const.
7879 (make_file_symbol_completion_list): Make "text", "word" and
7880 "srcfile" parameters const. Adjust locals.
7881 (add_filename_to_list): Make "text" and "word" parameters const.
7882 (struct add_partial_filename_data) <text, word>: Make fields
7883 const.
7884 (make_source_files_completion_list): Make "text" and "word"
7885 parameters const.
7886 * symtab.h (default_make_symbol_completion_list_break_on)
7887 (default_make_symbol_completion_list, make_symbol_completion_list)
7888 (make_symbol_completion_type enum type_code)
7889 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7890 (make_source_files_completion_list): Change prototype.
7891 * top.c (execute_command): Adjust to pass pointer to pointer to
7892 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7893 change.
7894 (set_verbose): Make "cmdname" local const.
7895 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7896 and adjust.
7897 (validate_actionline): Make "line" parameter a pointer to const
7898 char, and adjust.
7899 (encode_actions_1): Make "action_exp" local const, and adjust.
7900 (encode_actions): Adjust.
7901 (replace_comma): Delete.
7902 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7903 const, and adjust. Don't frob the action string while splitting
7904 it at commas. Instead, make a copy of each split substring in
7905 turn.
7906 (trace_dump_command): Adjust to validate_actionline prototype
7907 change.
7908 * tracepoint.h (decode_agent_options, decode_agent_options)
7909 (encode_actions, validate_actionline): Change prototypes.
7910 * valprint.h (output_command): Delete declaration.
7911 (output_command_const): Declare.
7912 * value.c (function_destroyer): Cast const away in xfree call.
7913
7914 2013-03-13 Pedro Alves <palves@redhat.com>
7915
7916 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7917 rather than casting 'const char * const *' to 'const char **'.
7918 * ada-lex.l (processInt): Make "trailer" local const. Remove
7919 'const char **' cast.
7920 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7921 locals, and use those as strtol output pointer, instead than doing
7922 invalid casts to from 'const char **' to 'char **'.
7923 (_initialize_demangle): Remove cast.
7924 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7925 locals, and use those as strtol output pointer, instead than doing
7926 invalid casts to from 'const char **' to 'char **'.
7927 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7928 casts.
7929 * stap-probe.c (stap_parse_register_operand)
7930 (stap_parse_single_operand): Likewise.
7931
7932 2013-03-13 Yao Qi <yao@codesourcery.com>
7933
7934 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7935 the last matched 'V' blcok in trace frame.
7936
7937 2013-03-12 Joel Brobecker <brobecker@adacore.com>
7938
7939 * NEWS: Create a new section for the next release branch.
7940 Rename the section of the current branch, now that it has
7941 been cut.
7942
7943 2013-03-12 Joel Brobecker <brobecker@adacore.com>
7944
7945 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7946 * version.in: Bump version to 7.6.50.20130312-cvs.
7947
7948 2013-03-12 Keith Seitz <keiths@redhat.com>
7949
7950 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7951 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7952 Remove temporary copy of input string.
7953 (mi_execute_command_wrapper): Make "cmd" const.
7954 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7955 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7956 Use const strings.
7957 (mi_parse): Make "cmd" const.
7958 Use const strings.
7959 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7960
7961 2013-03-12 Keith Seitz <keiths@redhat.com>
7962
7963 * ada-lang.c (ada_read_renaming_var_value): Pass const
7964 pointer to expression string to parse_exp_1.
7965 (create_excep_cond_exprs): Likewise.
7966 * ax-gdb.c (agent_eval_command_one): Likewise.
7967 (maint_agent_printf_command): Likewise.
7968 Constify much of the string handling/parsing.
7969 * breakpoint.c (set_breakpoint_condition): Pass const
7970 pointer to expression string to parse_exp_1.
7971 (update_watchpoint): Likewise.
7972 (parse_cmd_to_aexpr): Constify string handling.
7973 Pass const pointer to parse_exp_1.
7974 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7975 (find_condition_and_thread): Likewise.
7976 Make TOK const.
7977 (watch_command_1): Make "arg" const.
7978 Constify string handling.
7979 Copy the expression string instead of changing the input
7980 string.
7981 (update_breakpoint_location): Pass const pointer to
7982 parse_exp_1.
7983 * eval.c (parse_and_eval_address): Make "exp" const.
7984 (parse_to_comma_and_eval): Make "expp" const.
7985 (parse_and_eval): Make "exp" const.
7986 * expression.h (parse_expression): Make argument const.
7987 (parse_exp_1): Make first argument const.
7988 * findcmd.c (parse_find_args): Treat "args" as const.
7989 * linespec.c (parse_linespec): Pass const pointer to
7990 linespec_expression_to_pc.
7991 (linespec_expression_to_pc): Make "exp_ptr" const.
7992 * parse.c (parse_exp_1): Make "stringptr" const.
7993 Make a copy of the expression to pass to parse_exp_in_context until
7994 this whole interface can be constified.
7995 (parse_expression): Make "string" const.
7996 * printcmd.c (ui_printf): Treat "arg" as const.
7997 Handle const strings.
7998 * tracepoint.c (validate_actionline): Pass const pointer to
7999 all calls to parse_exp_1.
8000 (encode_actions_1): Likewise.
8001 * value.h (parse_to_comma_and_eval): Make argument const.
8002 (parse_and_eval_address): Likewise.
8003 (parse_and_eval): Likewise.
8004 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8005 (varobj_set_value): Likewise.
8006 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8007 constify string handling.
8008 Pass const pointers to parse_and_eval_address and
8009 parse_to_comman_and_eval.
8010 * cli/cli-utils.c (skip_to_space): Rename to ...
8011 (skip_to_space_const): ... this. Handle const strings.
8012 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8013 skip_to_space_const.
8014 (skip_to_space_const): Declare.
8015 * common/format.c (parse_format_string): Make "arg" const.
8016 Handle const strings.
8017 * common/format.h (parse_format_string): Make "arg" const.
8018 * gdbserver/ax.c (ax_printf): Make "format" const.
8019 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8020 of the expression string.
8021
8022 2013-03-12 Hui Zhu <hui@codesourcery.com>
8023
8024 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8025
8026 2013-03-12 Yao Qi <yao@codesourcery.com>
8027 Hui Zhu <hui@codesourcery.com>
8028
8029 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8030 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8031 DW_OP_deref_size.
8032
8033 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8034
8035 * ada-lex.l (rules): Only recognize 'thread' as a
8036 delimiter when followed by numerals, as for c-exp.y.
8037 Use new rewind_to_char function to rewind the input for
8038 expression-delimiting tokens.
8039 (rewind_to_char): New function.
8040
8041 2013-03-11 Pedro Alves <palves@redhat.com>
8042 Jan Kratochvil <jan.kratochvil@redhat.com>
8043
8044 * configure: Regenerate.
8045 * configure.ac (check dynamic export flag): Link python test with
8046 $PYTHON_LIBS.
8047
8048 2013-03-11 Doug Evans <dje@google.com>
8049 Keith Seitz <keiths@redhat.com>
8050
8051 * linespec.c (find_linespec_symbols): Call find_function_symbols
8052 first, and then call lookup_prefix_sym/find_method.
8053
8054 2013-03-11 Pedro Alves <palves@redhat.com>
8055
8056 * charset.c (convert_between_encodings): Don't cast between
8057 different pointer to pointer types. Instead, make the 'inp' local
8058 be of the type iconv expects.
8059 (wchar_iterate): Don't cast between different pointer to pointer
8060 types. Instead, use new pointer local of the type iconv expects.
8061 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8062 Add new local of type char pointer, and use it to get a
8063 char/string view of the byte buffer, instead of casting between
8064 pointer to pointer types.
8065
8066 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8067
8068 * remote.c (remote_set_trace_buffer_size): Move != operator
8069 to the start of next line to fix an ARI warning.
8070
8071 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8072
8073 * NEWS: Add record changes.
8074
8075 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8076
8077 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8078 the instruction history disassembly.
8079 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8080 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8081
8082 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8083
8084 * Makefile.in (SFILES): Add record-btrace.c
8085 (COMMON_OBS): Add record-btrace.o
8086 * record-btrace.c: New.
8087 * objfiles.c: Include btrace.h.
8088 (free_objfile): call btrace_free_objfile.
8089
8090 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8091
8092 * target.c (target_call_history, target_call_history_from,
8093 target_call_history_range): New.
8094 * target.h (target_ops) <to_call_history, to_call_history_from,
8095 to_call_history_range>: New fields.
8096 (target_call_history, target_call_history_from,
8097 target_call_history_range): New declaration.
8098 * record.c (get_call_history_modifiers, cmd_record_call_history,
8099 record_call_history_size): New.
8100 (_initialize_record): Add the "record function-call-history" command.
8101 Add "set/show record function-call-history-size" commands.
8102 * record.h (record_print_flag): New.
8103
8104 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8105
8106 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8107 to_insn_history_range>: New fields.
8108 (target_insn_history): New.
8109 (target_insn_history_from): New.
8110 (target_insn_history_range): New.
8111 * target.c (target_insn_history): New.
8112 (target_insn_history_from): New.
8113 (target_insn_history_range): New.
8114 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8115 (record_insn_history_size): New.
8116 (get_insn_number): New.
8117 (get_context_size): New.
8118 (no_chunk): New.
8119 (get_insn_history_modifiers): New.
8120 (cmd_record_insn_history): New.
8121 (_initialize_record): Add "set/show record instruction-history-size"
8122 command. Add "record instruction-history" command.
8123
8124 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8125
8126 * record.h (record_disconnect): New.
8127 (record_detach): New.
8128 (record_mourn_inferior): New.
8129 (record_kill): New.
8130 * record-full.c (record_disconnect, record_detach,
8131 record_mourn_inferior, record_kill): Move to...
8132 * record.c: ...here.
8133 (DEBUG): New.
8134 (record_stop): New.
8135 (record_unpush): New.
8136 (cmd_record_stop): Call record_stop. Replace unpush_target
8137 call with record_unpush call.
8138 (record_disconnect, record_detach): Assert that the target
8139 is of record stratum. Call record_unpush, record_stop, and
8140 DEBUG.
8141 (record_mourn_inferior, record_kill): Assert that the target
8142 is of record stratum. Call record_unpush and DEBUG.
8143
8144 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8145
8146 * record-full.h, record-full.c (record_memory_query): Rename
8147 to ...
8148 (record_full_memory_query): ...this. Update all users.
8149 (record_arch_list_add_reg): Rename to ...
8150 (record_full_arch_list_add_reg): ...this. Update all users.
8151 (record_arch_list_add_mem): Rename to ...
8152 (record_full_arch_list_add_mem): ...this. Update all users.
8153 (record_arch_list_add_end): Rename to ...
8154 (record_full_arch_list_add_end): ...this. Update all users.
8155 (record_gdb_operation_disable_set): Rename to ...
8156 (record_full_gdb_operation_disable_set): ...this.
8157 Update all users.
8158
8159 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8160
8161 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8162 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8163 (RECORD_IS_REPLAY): Renamed to ...
8164 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8165 (RECORD_FILE_MAGIC): Renamed to ...
8166 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8167 (record_mem_entry): Renamed to ...
8168 (record_full_mem_entry): ... this. Updated all users.
8169 (record_reg_entry): Renamed to ...
8170 (record_full_reg_entry): ... this. Updated all users.
8171 (record_end_entry): Renamed to ...
8172 (record_full_end_entry): ... this. Updated all users.
8173 (record_type) <record_end, record_reg, record_mem>: Renamed
8174 to ...
8175 (record_full_type) <record_full_end, record_full_reg,
8176 record_full_mem>: ... this. Updated all users.
8177 (record_entry): Renamed to ...
8178 (record_full_entry): ... this. Updated all users.
8179 (record_core_buf_entry): Renamed to ...
8180 (record_full_core_buf_entry): ... this. Updated all users.
8181 (record_core_regbuf): Renamed to ...
8182 (record_full_core_regbuf): ... this. Updated all users.
8183 (record_core_start): Renamed to ...
8184 (record_full_core_start): ... this. Updated all users.
8185 (record_core_end): Renamed to ...
8186 (record_full_core_end): ... this. Updated all users.
8187 (record_core_buf_list): Renamed to ...
8188 (record_full_core_buf_list): ... this. Updated all users.
8189 (record_first): Renamed to ...
8190 (record_full_first): ... this. Updated all users.
8191 (record_list): Renamed to ...
8192 (record_full_list): ... this. Updated all users.
8193 (record_arch_list_head): Renamed to ...
8194 (record_full_arch_list_head): ... this. Updated all users.
8195 (record_arch_list_tail): Renamed to ...
8196 (record_full_arch_list_tail): ... this. Updated all users.
8197 (record_stop_at_limit): Renamed to ...
8198 (record_full_stop_at_limit): ... this. Updated all users.
8199 (record_insn_max_num): Renamed to ...
8200 (record_full_insn_max_num): ... this. Updated all users.
8201 (record_insn_num): Renamed to ...
8202 (record_full_insn_num): ... this. Updated all users.
8203 (record_insn_count): Renamed to ...
8204 (record_full_insn_count): ... this. Updated all users.
8205 (record_ops): Renamed to ...
8206 (record_full_ops): ... this. Updated all users.
8207 (record_core_ops): Renamed to ...
8208 (record_full_core_ops): ... this. Updated all users.
8209 (set_record_cmdlist): Renamed to ...
8210 (set_record_full_cmdlist): ... this. Updated all users.
8211 (show_record_cmdlist): Renamed to ...
8212 (show_record_full_cmdlist): ... this. Updated all users.
8213 (record_cmdlist): Renamed to ...
8214 (record_full_cmdlist): ... this. Updated all users.
8215 (record_beneath_to_resume_ops): Renamed to ...
8216 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8217 (record_beneath_to_resume): Renamed to ...
8218 (record_full_beneath_to_resume): ... this. Updated all users.
8219 (record_beneath_to_wait_ops): Renamed to ...
8220 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8221 (record_beneath_to_wait): Renamed to ...
8222 (record_full_beneath_to_wait): ... this. Updated all users.
8223 (record_beneath_to_store_registers_ops): Renamed to ...
8224 (record_full_beneath_to_store_registers_ops): ... this.
8225 Updated all users.
8226 (record_beneath_to_store_registers): Renamed to ...
8227 (record_full_beneath_to_store_registers): ... this.
8228 Updated all users.
8229 (record_beneath_to_xfer_partial_ops): Renamed to ...
8230 (record_full_beneath_to_xfer_partial_ops): ... this.
8231 Updated all users.
8232 (record_beneath_to_xfer_partial): Renamed to ...
8233 (record_full_beneath_to_xfer_partial): ... this.
8234 Updated all users.
8235 (record_beneath_to_insert_breakpoint): Renamed to ...
8236 (record_full_beneath_to_insert_breakpoint): ... this.
8237 Updated all users.
8238 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8239 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8240 Updated all users.
8241 (record_beneath_to_stopped_data_address): Renamed to ...
8242 (record_full_beneath_to_stopped_data_address): ... this.
8243 Updated all users.
8244 (record_beneath_to_async): Renamed to ...
8245 (record_full_beneath_to_async): ... this. Updated all users.
8246 (record_goto_insn): Renamed to ...
8247 (record_full_goto_insn): ... this. Updated all users.
8248 (record_save): Renamed to ...
8249 (record_full_save): ... this. Updated all users.
8250 (record_reg_alloc): Renamed to ...
8251 (record_full_reg_alloc): ... this. Updated all users.
8252 (record_reg_release): Renamed to ...
8253 (record_full_reg_release): ... this. Updated all users.
8254 (record_mem_alloc): Renamed to ...
8255 (record_full_mem_alloc): ... this. Updated all users.
8256 (record_mem_release): Renamed to ...
8257 (record_full_mem_release): ... this. Updated all users.
8258 (record_end_alloc): Renamed to ...
8259 (record_full_end_alloc): ... this. Updated all users.
8260 (record_end_release): Renamed to ...
8261 (record_full_end_release): ... this. Updated all users.
8262 (record_entry_release): Renamed to ...
8263 (record_full_entry_release): ... this. Updated all users.
8264 (record_list_release): Renamed to ...
8265 (record_full_list_release): ... this. Updated all users.
8266 (record_list_release_following): Renamed to ...
8267 (record_full_list_release_following): ... this.
8268 Updated all users.
8269 (record_list_release_first): Renamed to ...
8270 (record_full_list_release_first): ... this. Updated all users.
8271 (record_arch_list_add): Renamed to ...
8272 (record_full_arch_list_add): ... this. Updated all users.
8273 (record_get_loc): Renamed to ...
8274 (record_full_get_loc): ... this. Updated all users.
8275 (record_check_insn_num): Renamed to ...
8276 (record_full_check_insn_num): ... this. Updated all users.
8277 (record_arch_list_cleanups): Renamed to ...
8278 (record_full_arch_list_cleanups): ... this. Updated all users.
8279 (record_message): Renamed to ...
8280 (record_full_message): ... this. Updated all users.
8281 (record_message_wrapper): Renamed to ...
8282 (record_full_message_wrapper): ... this. Updated all users.
8283 (record_message_wrapper_safe): Renamed to ...
8284 (record_full_message_wrapper_safe): ... this. Updated all users.
8285 (record_gdb_operation_disable): Renamed to ...
8286 (record_full_gdb_operation_disable): ... this. Updated all users.
8287 (record_hw_watchpoint): Renamed to ...
8288 (record_full_hw_watchpoint): ... this. Updated all users.
8289 (record_exec_insn): Renamed to ...
8290 (record_full_exec_insn): ... this. Updated all users.
8291 (record_restore): Renamed to ...
8292 (record_full_restore): ... this. Updated all users.
8293 (record_async_inferior_event_token): Renamed to ...
8294 (record_full_async_inferior_event_token): ... this.
8295 Updated all users.
8296 (record_async_inferior_event_handler): Renamed to ...
8297 (record_full_async_inferior_event_handler): ... this.
8298 Updated all users.
8299 (record_core_open_1): Renamed to ...
8300 (record_full_core_open_1): ... this. Updated all users.
8301 (record_open_1): Renamed to ...
8302 (record_full_open_1): ... this. Updated all users.
8303 (record_open): Renamed to ...
8304 (record_full_open): ... this. Updated all users.
8305 (record_close): Renamed to ...
8306 (record_full_close): ... this. Updated all users.
8307 (record_resume_step): Renamed to ...
8308 (record_full_resume_step): ... this. Updated all users.
8309 (record_resumed): Renamed to ...
8310 (record_full_resumed): ... this. Updated all users.
8311 (record_execution_dir): Renamed to ...
8312 (record_full_execution_dir): ... this. Updated all users.
8313 (record_resume): Renamed to ...
8314 (record_full_resume): ... this. Updated all users.
8315 (record_get_sig): Renamed to ...
8316 (record_full_get_sig): ... this. Updated all users.
8317 (record_sig_handler): Renamed to ...
8318 (record_full_sig_handler): ... this. Updated all users.
8319 (record_wait_cleanups): Renamed to ...
8320 (record_full_wait_cleanups): ... this. Updated all users.
8321 (record_wait_1): Renamed to ...
8322 (record_full_wait_1): ... this. Updated all users.
8323 (record_wait): Renamed to ...
8324 (record_full_wait): ... this. Updated all users.
8325 (record_stopped_by_watchpoint): Renamed to ...
8326 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8327 (record_disconnect): Renamed to ...
8328 (record_full_disconnect): ... this. Updated all users.
8329 (record_detach): Renamed to ...
8330 (record_full_detach): ... this. Updated all users.
8331 (record_mourn_inferior): Renamed to ...
8332 (record_full_mourn_inferior): ... this. Updated all users.
8333 (record_kill): Renamed to ...
8334 (record_full_kill): ... this. Updated all users.
8335 (record_stopped_data_address): Renamed to ...
8336 (record_full_stopped_data_address): ... this. Updated all users.
8337 (record_registers_change): Renamed to ...
8338 (record_full_registers_change): ... this. Updated all users.
8339 (record_store_registers): Renamed to ...
8340 (record_full_store_registers): ... this. Updated all users.
8341 (record_xfer_partial): Renamed to ...
8342 (record_full_xfer_partial): ... this. Updated all users.
8343 (record_breakpoint): Renamed to ...
8344 (record_full_breakpoint): ... this. Updated all users.
8345 (record_breakpoint_p): Renamed to ...
8346 (record_full_breakpoint_p): ... this. Updated all users.
8347 (record_breakpoints): Renamed to ...
8348 (record_full_breakpoints): ... this. Updated all users.
8349 (record_sync_record_breakpoints): Renamed to ...
8350 (record_full_sync_record_breakpoints): ... this.
8351 Updated all users.
8352 (record_init_record_breakpoints): Renamed to ...
8353 (record_full_init_record_breakpoints): ... this.
8354 Updated all users.
8355 (record_insert_breakpoint): Renamed to ...
8356 (record_full_insert_breakpoint): ... this. Updated all users.
8357 (record_remove_breakpoint): Renamed to ...
8358 (record_full_remove_breakpoint): ... this. Updated all users.
8359 (record_can_execute_reverse): Renamed to ...
8360 (record_full_can_execute_reverse): ... this. Updated all users.
8361 (record_get_bookmark): Renamed to ...
8362 (record_full_get_bookmark): ... this. Updated all users.
8363 (record_goto_bookmark): Renamed to ...
8364 (record_full_goto_bookmark): ... this. Updated all users.
8365 (record_async): Renamed to ...
8366 (record_full_async): ... this. Updated all users.
8367 (record_can_async_p): Renamed to ...
8368 (record_full_can_async_p): ... this. Updated all users.
8369 (record_is_async_p): Renamed to ...
8370 (record_full_is_async_p): ... this. Updated all users.
8371 (record_execution_direction): Renamed to ...
8372 (record_full_execution_direction): ... this. Updated all users.
8373 (record_info): Renamed to ...
8374 (record_full_info): ... this. Updated all users.
8375 (record_delete): Renamed to ...
8376 (record_full_delete): ... this. Updated all users.
8377 (record_is_replaying): Renamed to ...
8378 (record_full_is_replaying): ... this. Updated all users.
8379 (record_goto_entry): Renamed to ...
8380 (record_full_goto_entry): ... this. Updated all users.
8381 (record_goto_begin): Renamed to ...
8382 (record_full_goto_begin): ... this. Updated all users.
8383 (record_goto_end): Renamed to ...
8384 (record_full_goto_end): ... this. Updated all users.
8385 (record_goto): Renamed to ...
8386 (record_full_goto): ... this. Updated all users.
8387 (init_record_ops): Renamed to ...
8388 (init_record_full_ops): ... this. Updated all users.
8389 (record_core_resume): Renamed to ...
8390 (record_full_core_resume): ... this. Updated all users.
8391 (record_core_kill): Renamed to ...
8392 (record_full_core_kill): ... this. Updated all users.
8393 (record_core_fetch_registers): Renamed to ...
8394 (record_full_core_fetch_registers): ... this. Updated all users.
8395 (record_core_prepare_to_store): Renamed to ...
8396 (record_full_core_prepare_to_store): ... this. Updated all users.
8397 (record_core_store_registers): Renamed to ...
8398 (record_full_core_store_registers): ... this. Updated all users.
8399 (record_core_xfer_partial): Renamed to ...
8400 (record_full_core_xfer_partial): ... this. Updated all users.
8401 (record_core_insert_breakpoint): Renamed to ...
8402 (record_full_core_insert_breakpoint): ... this. Updated all users.
8403 (record_core_remove_breakpoint): Renamed to ...
8404 (record_full_core_remove_breakpoint): ... this. Updated all users.
8405 (record_core_has_execution): Renamed to ...
8406 (record_full_core_has_execution): ... this. Updated all users.
8407 (init_record_core_ops): Renamed to ...
8408 (init_record_full_core_ops): ... this. Updated all users.
8409 (cmd_record_restore): Renamed to ...
8410 (cmd_record_full_restore): ... this. Updated all users.
8411 (record_save_cleanups): Renamed to ...
8412 (record_full_save_cleanups): ... this. Updated all users.
8413 (cmd_record_start): Renamed to ...
8414 (cmd_record_full_start): ... this. Updated all users.
8415 (set_record_insn_max_num): Renamed to ...
8416 (set_record_full_insn_max_num): ... this. Updated all users.
8417 (set_record_command): Renamed to ...
8418 (set_record_full_command): ... this. Updated all users.
8419 (show_record_command): Renamed to ...
8420 (show_record_full_command): ... this. Updated all users.
8421 (_initialize_record): Renamed to ...
8422 (_initialize_record_full): ... this. Updated all users.
8423
8424 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8425
8426 * record.h: Split into this and ...
8427 * record-full.h: ... this.
8428 * record.c: Split into this and ...
8429 * record-full.c: ... this.
8430 * target.h (target_ops): Add new fields to_info_record,
8431 to_save_record, to_delete_record, to_record_is_replaying,
8432 to_goto_record_begin, to_goto_record_end, to_goto_record.
8433 (target_info_record): New.
8434 (target_save_record): New.
8435 (target_supports_delete_record): New.
8436 (target_delete_record): New.
8437 (target_record_is_replaying): New.
8438 (target_goto_record_begin): New.
8439 (target_goto_record_end): New.
8440 (target_goto_record): New.
8441 * target.c (target_info_record): New.
8442 (target_save_record): New.
8443 (target_supports_delete_record): New.
8444 (target_delete_record): New.
8445 (target_record_is_replaying): New.
8446 (target_goto_record_begin): New.
8447 (target_goto_record_end): New.
8448 (target_goto_record): New.
8449 * record.h: Declare struct cmd_list_element.
8450 (record_cmdlist): New declaration.
8451 (set_record_cmdlist): New declaration.
8452 (show_record_cmdlist): New declaration.
8453 (info_record_cmdlist): New declaration.
8454 (cmd_record_goto): New declaration.
8455 * record.c: Remove unnecessary includes.
8456 Include inferior.h.
8457 (cmd_record_goto): Remove declaration.
8458 (record_cmdlist): Now extern. Initialize.
8459 (set_record_cmdlist): Now extern. Initialize.
8460 (show_record_cmdlist): Now extern. Initialize.
8461 (info_record_cmdlist): Now extern. Initialize.
8462 (find_record_target): New.
8463 (require_record_target): New.
8464 (cmd_record_start): Update.
8465 (cmd_record_delete): Remove target-specific code.
8466 Call target_delete_record.
8467 (cmd_record_stop): Unpush any record target.
8468 (set_record_insn_max_num): Move to record-full.c
8469 (set_record_command): Add comment.
8470 (show_record_command): Add comment.
8471 (info_record_command): Update comment.
8472 Remove target-specific code.
8473 Call the record target's to_info_record.
8474 (cmd_record_start): New.
8475 (cmd_record_goto): Now extern.
8476 Remove target-specific code.
8477 Call target_goto_begin, target_goto_end, or target_goto.
8478 (_initialize_record): Move record target ops initialization to
8479 record-full.c.
8480 Change "record" command help text.
8481 Move "record restore", "record set", and "record show" commands to
8482 record-full.c.
8483 * Makefile.in (SFILES): Add record-full.c.
8484 (HFILES_NO_SRCDIR): Add record-full.h.
8485 (COMMON_OBS): Add record-full.o.
8486 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8487 * arm-tdep.c: Include record-full.h.
8488 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8489 * i386-tdep.c: Include record-full.h.
8490 * infrun.c: Include record-full.h.
8491 * linux-record.c: Include record-full.h.
8492 * moxie-tdep.c: Include record-full.h.
8493 * record-full.c: Include record-full.h.
8494 Change module comment.
8495 (set_record_full_cmdlist): New.
8496 (show_record_full_cmdlist): New.
8497 (record_full_cmdlist): New.
8498 (record_goto_insn): New declaration.
8499 (record_save): New declaration.
8500 (record_check_insn_num): Change query string.
8501 (record_info): New.
8502 (record_delete): New.
8503 (record_is_replaying): New.
8504 (record_goto_entry): New.
8505 (record_goto_begin): New.
8506 (record_goto_end): New.
8507 (record_goto): New.
8508 (init_record_ops): Update.
8509 (init_record_core_ops): Update.
8510 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8511 (cmd_record_start): New.
8512 (set_record_insn_max_num): Moved from record.c
8513 (set_record_full_command): New.
8514 (show_record_full_command): New.
8515 (_initialize_record_full): New.
8516
8517 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8518
8519 * target.h (add_deprecated_target_alias): New.
8520 * target.c (add_deprecated_target_alias): New.
8521
8522 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8523
8524 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8525 and signal.h.
8526 (linux_supports_btrace): Add kernel and
8527 cpuid check.
8528 (kernel_supports_btrace): New function.
8529 (cpu_supports_btrace): New function.
8530 (intel_supports_btrace): New function.
8531
8532 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8533
8534 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8535 * remote.c: Include btrace.h.
8536 (struct btrace_target_info): New struct.
8537 (remote_supports_btrace): New function.
8538 (send_Qbtrace): New function.
8539 (remote_enable_btrace): New function.
8540 (remote_disable_btrace): New function.
8541 (remote_teardown_btrace): New function.
8542 (remote_read_btrace): New function.
8543 (init_remote_ops): Add btrace ops.
8544 (enum <unnamed>): Add btrace packets.
8545 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8546 (_initialize_remote): Add packet configuration for branch tracing.
8547
8548 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8549
8550 * features/btrace.dtd: New file.
8551 * Makefile.in (XMLFILES): Add btrace.dtd.
8552 * btrace.h (parse_xml_btrace): New declaration.
8553 * btrace.c: Include xml-support.h.
8554 (parse_xml_btrace): New function.
8555 (parse_xml_btrace_block): New function.
8556 (block_attributes): New struct.
8557 (btrace_attributes): New struct.
8558 (btrace_children): New struct.
8559 (btrace_elements): New struct.
8560
8561 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8562
8563 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8564 (amd64_linux_enable_btrace): New.
8565 (amd64_linux_disable_btrace): New.
8566 (amd64_linux_teardown_btrace): New.
8567 (_initialize_amd64_linux_nat): Initialize btrace ops.
8568 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8569 (i386_linux_enable_btrace): New.
8570 (i386_linux_disable_btrace): New.
8571 (i386_linux_teardown_btrace): New.
8572 (_initialize_i386_linux_nat): Initialize btrace ops.
8573 * config/i386/linux.mh: Add linux-btrace.o.
8574 * config/i386/linux64.mh: Add linux-btrace.o.
8575
8576 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8577
8578 * common/linux_btrace.h: New file.
8579 * common/linux_btrace.c: New file.
8580 * Makefile.in (SFILES): Add btrace.c.
8581 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8582 (COMMON_OBS): Add btrace.o.
8583 (linux-btrace.o): New rule.
8584
8585 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8586
8587 * target.h: Include btrace.h.
8588 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8589 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8590 * target.c (target_supports_btrace): New function.
8591 (target_enable_btrace): New function.
8592 (target_disable_btrace): New function.
8593 (target_teardown_btrace): New function.
8594 (target_read_btrace): New function.
8595 * btrace.h: New file.
8596 * btrace.c: New file.
8597 * Makefile.in: Add btrace.c.
8598 * gdbthread.h: Include btrace.h.
8599 (struct thread_info): Add btrace field.
8600 * thread.c: Include btrace.h.
8601 (clear_thread_inferior_resources): Call target_teardown_btrace.
8602 * common/btrace-common.h: New file.
8603
8604 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8605
8606 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8607 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8608 kill_status to outer block.
8609
8610 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8611
8612 Fix entry-values if the callee called a noreturn function.
8613 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8614 get_frame_address_in_block. Add new comment.
8615
8616 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8617
8618 Fix entry-values in C++ across CUs.
8619 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8620 lookup_minimal_symbol. Add a comment.
8621 * dwarf2read.c
8622 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8623 DW_AT_linkage_name.
8624
8625 2013-03-08 Yao Qi <yao@codesourcery.com>
8626
8627 * tracepoint.c (_initialize_tracepoint): Indent the code.
8628
8629 2013-03-08 Pedro Alves <palves@redhat.com>
8630
8631 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8632 (parse_find_args, find_command): Change type of pattern buffer
8633 locals to 'gdb_byte *'.
8634
8635 2013-03-08 Stan Shebs <stan@codesourcery.com>
8636 Hafiz Abid Qadeer <abidh@codesourcery.com>
8637
8638 * NEWS: Mention set and show trace-buffer-size commands.
8639 Mention new packet.
8640 * target.h (struct target_ops): New method
8641 to_set_trace_buffer_size.
8642 (target_set_trace_buffer_size): New macro.
8643 * target.c (update_current_target): Set up new method.
8644 * tracepoint.c (trace_buffer_size): New global.
8645 (start_tracing): Send it to the target.
8646 (set_trace_buffer_size): New function.
8647 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8648 * remote.c (remote_set_trace_buffer_size): New function.
8649 (_initialize_remote): Use it.
8650 (QTBuffer:size) New remote command.
8651 (PACKET_QTBuffer_size): New enum.
8652 (remote_protocol_features): Add an entry for
8653 PACKET_QTBuffer_size.
8654
8655 2013-03-08 Tom Tromey <tromey@redhat.com>
8656
8657 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8658 variable.
8659
8660 2013-03-07 Pedro Alves <palves@redhat.com>
8661
8662 * target.c (target_read_stralloc, target_fileio_read_alloc):
8663 *Cast pointer to 'gdb_byte *' in target call.
8664
8665 2013-03-07 Pedro Alves <palves@redhat.com>
8666
8667 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8668 call.
8669
8670 2013-03-07 Keith Seitz <keiths@redhat.com>
8671
8672 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8673 (trace_pass_command): Likewise.
8674 * cli/cli-cmds.c: Include cli/cli-utils.h.
8675 (source_command): Use skip-spaces.
8676 (disassemble_command): Likewise.
8677 * findcmd.c: Include cli/cli-utils.h.
8678 (parse_find_args): Use skip_spaces.
8679 * go32-nat.c: Include cli/cli-utils.h.
8680 (go32_sldt): Use skip_spaces.
8681 (go32_sgdt): Likewise.
8682 (go32_sidt): Likewise.
8683 (go32_pde): Likewise.
8684 (go32_pte): Likewise.
8685 (go32_pte_for_address): Likewise.
8686 * infcmd.c: Include cli/cli-utils.h.
8687 (registers_info): Use skip_spaces.
8688 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8689 (linux_info_proc): Likewise.
8690 * linux-thread-db.c: Include cli/cli-utils.h.
8691 (info_auto_load_libthread_db): Use skip_spaces_const.
8692 * m32r-rom.c: Include cli/cli-utils.h.
8693 (m32r_upload_command): Use skip_spaces.
8694 * maint.c: Include cli/cli-utils.h.
8695 (maintenance_translate_address): Use skip_spaces.
8696 * mi/mi-parse.c: Include cli/cli-utils.h.
8697 (mi_parse_argv): Use skip_spaces.
8698 (mi_parse): Likewise.
8699 * minsyms.c: Include cli/cli-utils.h.
8700 (msymbol_hash_iw): Use skip_spaces_const.
8701 * objc-lang.c: Include cli/cli-utils.h.
8702 (parse_selector): Use skip_spaces.
8703 (parse_method): Likewise.
8704 * python/python.c: Include cli/cli-utils.h.
8705 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8706 (python_command)[HAVE_PYTHON]: Likewise.
8707 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8708 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8709 (m32r_load): Use skip_spaces.
8710 * serial.c: Include cli/cli-utils.h.
8711 (serial_open): Use skip_spaces_const.
8712 * stack.c: Include cli/cli-utils.h.
8713 (parse_frame_specification_1): Use skip_spaces_const.
8714 * symfile.c: Include cli/cli-utils.h.
8715 (set_ext_lang_command): Use skip_spaces.
8716 * symtab.c: Include cli/cli-utils.h.
8717 (rbreak_command): Use skip_spaces.
8718 * thread.c (thread_name_command): Use skip_spaces.
8719 * tracepoint.c (validate_actionline): Use skip_spaces.
8720 (encode_actions_1): Likewise.
8721 (trace_find_range_command): Likewise.
8722 (trace_find_outside_command): Likewise.
8723 (trace_dump_actions): Likewise.
8724
8725 2013-03-07 Pedro Alves <palves@redhat.com>
8726
8727 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8728 * expprint.c (print_subexp_standard): Likewise.
8729 * utils.c (host_char_to_target): Likewise.
8730 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8731 * varobj.c (value_get_print_value): Change type of local to char*.
8732 Cast it gdb_byte * in call to language printer.
8733
8734 2013-03-07 Pedro Alves <palves@redhat.com>
8735
8736 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8737 gdb_byte *'.
8738 (make_wchar_iterator): Remove cast to char*.
8739 (wchar_iterate): Change type of local.
8740
8741 2013-03-07 Pedro Alves <palves@redhat.com>
8742
8743 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8744 for 'regcache->register_status'.
8745
8746 2013-03-07 Pedro Alves <palves@redhat.com>
8747
8748 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8749 int.
8750
8751 2013-03-07 Pedro Alves <palves@redhat.com>
8752
8753 * stap-probe.c (handle_stap_probe): Add cast to char*.
8754
8755 2013-03-07 Pedro Alves <palves@redhat.com>
8756
8757 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8758 RECORD_MSGRCV>: Pass a signed variable to
8759 regcache_raw_read_signed, instead of an unsigned one.
8760
8761 2013-03-07 Pedro Alves <palves@redhat.com>
8762
8763 * remote-notif.c (notif_debug): Change type to int.
8764 * remote-notif.h (notif_debug): Likewise.
8765
8766 2013-03-07 Pedro Alves <palves@redhat.com>
8767
8768 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8769
8770 2013-03-07 Pedro Alves <palves@redhat.com>
8771
8772 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8773 * remote.h (hex2bin, bin2hex): ... here.
8774 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8775
8776 2013-03-07 Eli Zaretskii <eliz@gnu.org>
8777
8778 * utils.c (initialize_utils): Improve doc strings of "set/show
8779 width", "set/show height", and "set/show pagination".
8780
8781 2013-03-06 Keith Seitz <keiths@redhat.com>
8782
8783 * ax-gdb.c (gen_printf): Make FORMAT const.
8784 * ax-gdb.h (gen_printf): Likewise.
8785 * ax-general.c (ax_string): Make STR const.
8786 * ax.h (ax_string): Likewise.
8787
8788 2013-03-06 Doug Evans <dje@google.com>
8789
8790 * elfread.c (elf_symfile_read): Move debugging printf to more
8791 logical location.
8792
8793 2013-03-06 Pedro Alves <palves@redhat.com>
8794
8795 * python/py-utils.c (target_string_to_unicode): Delete function.
8796 * python/python-internal.h (target_string_to_unicode): Delete
8797 declaration.
8798
8799 2013-03-06 Pierre Muller <muller@sourceware.org>
8800
8801 * linespec.c (get_current_search_block): ARI fix, use (void)
8802 for empty parameter list.
8803
8804 2013-03-05 Doug Evans <dje@google.com>
8805
8806 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8807 of old ada_lookup_symbol_list. In !full_search case, don't
8808 search superblocks.
8809 (ada_lookup_symbol_list): Delete arg full_search, all callers
8810 updated. Call ada_lookup_symbol_list_worker.
8811 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8812 * ada-lang.h (ada_lookup_symbol_list): Update.
8813 * language.h (language_defn): Update comment for
8814 la_iterate_over_symbols.
8815 * linespec.c (iterate_over_file_blocks): New function.
8816 (iterate_over_all_matching_symtabs): Call it.
8817 (lookup_prefix_sym): Ditto.
8818 (get_current_search_block): New function.
8819 (get_search_block): Delete.
8820 (find_label_symbols): Call get_current_search_block.
8821 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8822 * symtab.c (iterate_over_symbols): Don't search superblocks.
8823
8824 2013-03-05 Yao Qi <yao@codesourcery.com>
8825
8826 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8827 parameter VAR's type from "unsigned int" to "int".
8828 * command.h (var_zuinteger_unlimited): Update its comments.
8829 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8830
8831 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8832
8833 * NEWS: Mention new target x86_64-*-cygwin*.
8834
8835 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8836
8837 * configure.host: Add x86_64-*-cygwin* as host.
8838 * configure.tgt: Add x86_64-*-cygwin* as target.
8839 * config/i386/cygwin64.mh: New file.
8840
8841 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8842
8843 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8844
8845 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8846
8847 * linespec.c (struct linespec_canonical_name): New.
8848 (struct linespec_state): Change canonical_names type to it.
8849 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8850 xrealloc element size. Initialize the different CANONICAL fields.
8851 (canonical_to_fullform): New.
8852 (filter_results): Use it. Add variables canonical, fullform and
8853 cleanup.
8854 (struct decode_line_2_item, decode_line_2_compare_items): New.
8855 (decode_line_2): Remove variables iter and item_names, add variables
8856 items and items_count. Modify the code for these new variables.
8857
8858 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
8859
8860 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8861 calling do_cleanup.
8862
8863 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
8864
8865 * tracepoint.c (build_traceframe_info): Add code for byte order.
8866
8867 2013-03-02 Kevin Buettner <kevinb@redhat.com>
8868
8869 * v850-tdep.c: (v850e2_register_name): Revise system register
8870 names to match current V850E2M architecture specifications.
8871 Update register number enum comments too.
8872
8873 2013-03-01 Jiong Wang <jiwang@tilera.com>
8874 Pedro Alves <palves@redhat.com>
8875
8876 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8877 to END_ADDR.
8878 (tilegx_skip_prologue): Limit prologue analysis to section end.
8879
8880 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8881
8882 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8883 use it.
8884
8885 2013-03-01 Pedro Alves <palves@redhat.com>
8886
8887 Use gdb_byte for bytes from the program being debugged.
8888
8889 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8890 Change type of local 'buf' to gdb_byte.
8891 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8892 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8893 * cris-tdep.c (cris_sigcontext_addr)
8894 (cris_sigtramp_frame_unwind_cache): Likewise.
8895 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8896 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8897 Likewise.
8898 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8899 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8900 (hppa32_hpux_search_dummy_call_sequence)
8901 (hppa_hpux_supply_save_state): Likewise.
8902 * hppa-linux-tdep.c (insns_match_pattern)
8903 (hppa_linux_find_global_pointer): Likewise.
8904 * hppa-tdep.c (hppa_in_function_epilogue_p)
8905 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8906 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8907 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8908 (i386fbsd_collect_uthread): Likewise.
8909 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8910 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8911 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8912 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8913 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8914 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8915 (ia64_libunwind_frame_prev_register)
8916 (ia64_libunwind_sigtramp_frame_this_id)
8917 (ia64_find_global_pointer_from_dynamic_section)
8918 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8919 (ia64_unwind_pc): Likewise.
8920 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8921 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8922 (m68hc11_extract_return_value): Likewise.
8923 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8924 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8925 (mep_get_insn, mep_push_dummy_call): Likewise.
8926 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8927 (mips_linux_in_dynsym_stub): Likewise.
8928 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8929 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8930 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8931 to gdb_byte.
8932 * remote-mips.c (mips_set_register): Likewise.
8933 * remote-sim.c (gdbsim_fetch_register): Likewise.
8934 * score-tdep.c (score7_fetch_inst): Change type of parameter
8935 'memblock' and local 'buf' to gdb_byte.
8936 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8937 Change type of local 'buf' to gdb_byte. Adjust.
8938 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8939 to gdb_byte**.
8940 (score7_analyze_prologue): Change type of 'memblock' and
8941 'memblock_ptr' locals to gdb_byte*.
8942 * sh64-tdep.c (sh64_extract_return_value)
8943 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8944 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8945 * solib-pa64.c (pa64_solib_create_inferior_hook)
8946 (pa64_open_symbol_file_object): Remove local 'buf'.
8947 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8948 (som_open_symbol_file_object): Likewise.
8949 * solib-spu.c (spu_current_sos): Likewise.
8950 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8951 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8952 (spu_store_registers): Likewise.
8953 * target.c (debug_print_register): Likewise.
8954 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8955 * xstormy16-tdep.c (xstormy16_store_return_value)
8956 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8957 (xstormy16_find_jmp_table_entry): Likewise.
8958
8959 2013-03-01 Jiong Wang <jiwang@tilera.com>
8960
8961 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8962 (tilegx_gdbarch_init): Install it.
8963
8964 2013-02-28 Tom Tromey <tromey@redhat.com>
8965
8966 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8967 PyLong_Check.
8968
8969 2013-02-28 Doug Evans <dje@google.com>
8970
8971 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8972 * python/python.c (gdbpy_find_pc_line): Ditto.
8973
8974 2013-02-28 Tom Tromey <tromey@redhat.com>
8975
8976 * contrib/excheck.py: New file.
8977 * contrib/exsummary.py: New file.
8978 * contrib/gcc-with-excheck: New file.
8979
8980 2013-02-28 Tom Tromey <tromey@redhat.com>
8981
8982 * python/python.c (gdbpy_print_stack): Call begin_line and
8983 fprintf_filtered inside TRY_CATCH.
8984
8985 2013-02-28 Tom Tromey <tromey@redhat.com>
8986
8987 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8988 inside TRY_CATCH.
8989
8990 2013-02-28 Tom Tromey <tromey@redhat.com>
8991
8992 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8993 frame_object_to_frame_info inside TRY_CATCH.
8994
8995 2013-02-28 Tom Tromey <tromey@redhat.com>
8996
8997 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8998 TRY_CATCH.
8999
9000 2013-02-28 Tom Tromey <tromey@redhat.com>
9001
9002 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9003
9004 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9005
9006 * windows-nat.c: Throughout, fix format strings and casts of
9007 printf-like functions to avoid type related warnings on all
9008 platforms.
9009 (handle_output_debug_string): Fetch context information address
9010 from debug string using string_to_core_addr.
9011
9012 2013-02-27 Jiong Wang <jiwang@tilera.com>
9013
9014 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9015 * regformats/reg-tilegx32.dat: New.
9016
9017 2013-02-27 Jiong Wang <jiwang@tilera.com>
9018
9019 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9020
9021 2013-02-27 Jiong Wang <jiwang@tilera.com>
9022
9023 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9024
9025 2013-02-27 Yao Qi <yao@codesourcery.com>
9026 Pedro Alves <palves@redhat.com>
9027
9028 * tracepoint.c (tfile_trace_find): For tfind
9029 pc/tp/range/outside, look for the next trace frame instead of
9030 always starting from frame 0.
9031
9032 2013-02-26 Anthony Green <green@moxielogic.com>
9033
9034 * configure.tgt: Add support for moxie-*-rtems* target.
9035
9036 2013-02-25 Pedro Alves <palves@redhat.com>
9037
9038 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9039 warning text.
9040
9041 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9042
9043 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9044 if $fp is used as the virtual frame pointer.
9045
9046 2013-02-23 Alan Modra <amodra@gmail.com>
9047
9048 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9049 symbol size.
9050 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9051 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9052 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9053 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9054
9055 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9056
9057 Code cleanup.
9058 * elfread.c (build_id_bfd_get): Make the return type const.
9059 (build_id_verify): Make the check parameter const.
9060 (build_id_to_debug_filename): Make the build_id parameter and variable
9061 data const.
9062 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9063
9064 2013-02-21 Alan Modra <amodra@gmail.com>
9065
9066 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9067
9068 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9069
9070 Add a new method 'disassemble' to gdb.Architecture class.
9071 * python/py-arch.c (archpy_disassmble): Implementation of the
9072 new method gdb.Architecture.disassemble.
9073 (arch_object_methods): Add entry for the new method.
9074
9075 2013-02-20 Jiong Wang <jiwang@tilera.com>
9076
9077 * MAINTAINERS (Write After Approval): Add myself to the list.
9078
9079 2013-02-19 Pedro Alves <palves@redhat.com>
9080
9081 Garbage collect 'struct monitor_ops'::load_routine.
9082
9083 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9084 * monitor.c (monitor_load): No longer call
9085 current_monitor->load_routine.
9086 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9087 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9088 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9089
9090 2013-02-19 Pedro Alves <palves@redhat.com>
9091
9092 PR gdb/15161
9093
9094 Harmonize with generic_load.
9095
9096 * monitor.c: Include "readline/readline.h".
9097 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9098 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9099 long/strtol for the 'load_offset' local. Error out if no argument
9100 is given or if too many arguments are given. Tilde expand the
9101 passed in file name.
9102
9103 2013-02-19 Kai Tietz <ktietz@redhat.com>
9104
9105 PR gdb/15161
9106 * symfile.c (load_section_data): Change type of load_offset
9107 to CORE_ADDR.
9108 (generic_load): User strtoulst instead of strtoul for conversion
9109 of load_offset.
9110
9111 2013-02-19 Jiong Wang <jiwang@tilera.com>
9112
9113 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9114 for return address, "lr" register, saved on stack.
9115 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9116 after we invoke tilegx_analyze_prologue.
9117
9118 2013-02-19 Jiong Wang <jiwang@tilera.com>
9119
9120 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9121
9122 2013-02-19 Jiong Wang <jiwang@tilera.com>
9123
9124 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9125
9126 2013-02-19 Jiong Wang <jiwang@tilera.com>
9127
9128 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9129 (tilegx_write_pc): New function.
9130 (tilegx_cannot_reference_register): Return zero if REGNO
9131 is TILEGX_FAULTNUM_REGNUM.
9132 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9133 (tilegx_register_name): Add handling of "faultnum" register.
9134 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9135 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9136 handling of TILEGX_FAULTNUM_REGNUM.
9137 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9138
9139 2013-02-19 Jiong Wang <jiwang@tilera.com>
9140
9141 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9142 should be aligned to 64bit.
9143
9144 2013-02-19 Kai Tietz <ktietz@redhat.com>
9145
9146 * windows-nat.c (windows_xfer_memory): Fix debug-output
9147 for LLP64.
9148
9149 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9150
9151 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9152 Don't check DSP register number if HAVE_DSP is not set.
9153
9154 2013-02-19 Alan Modra <amodra@gmail.com>
9155
9156 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9157 throughout file instead.
9158 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9159 Don't xmalloc return value.
9160 (build_id_verify): Similarly. Don't xfree.
9161 (build_id_to_debug_filename): Update.
9162 (find_separate_debug_file_by_buildid): Update, don't xfree.
9163
9164 2013-02-18 Tom Tromey <tromey@redhat.com>
9165
9166 PR gdb/15102:
9167 * dwarf2read.c (read_subrange_type): Use result of
9168 'check_typedef'.
9169
9170 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9171
9172 * frame.c: Remove one extra white space after #include
9173 directive.
9174
9175 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9176
9177 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9178
9179 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9180
9181 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9182 and dir commands into an if block.
9183
9184 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9185
9186 * python/py-breakpoint (struct pybp_code): Use int instead of
9187 enum type_code.
9188
9189 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9190 Hafiz Abid Qadeer <abidh@codesourcery.com>
9191
9192 * NEWS: Mention new field "trace-file".
9193 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9194 (tfile_open): Record the trace file's filename in the trace
9195 status.
9196 (tfile_files_info): Mention the name of the trace file.
9197 Check the "filename" field explicitely.
9198 (trace_status_command): Explicitely check "filename" field.
9199 (trace_find_command): Ditto.
9200 (trace_find_pc_command): Ditto.
9201 (trace_find_tracepoint_command): Ditto.
9202 (trace_find_line_command): Ditto.
9203 (trace_find_range_command): Ditto.
9204 (trace_find_outside_command): Ditto.
9205 * tracepoint.h (struct trace_status) <from_file>: Rename it
9206 to "filename" and make it hold the trace file's filename
9207 instead of a boolean.
9208 * remote.c (remote_get_trace_status): Initialize "filename"
9209 field with NULL instead of 0.
9210
9211 2013-02-15 Yao Qi <yao@codesourcery.com>
9212
9213 * remote.c: Fix a typo.
9214
9215 2013-02-14 Pierre Muller <muller@sourceware.org>
9216
9217 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9218
9219 2013-02-14 Pedro Alves <palves@redhat.com>
9220
9221 * utils.c (savestring): Don't #undef it. Move function to
9222 common/common-utils.c.
9223 * common/common-utils.c: Include gdb_string.h.
9224 (savestring): Move here from utils.c.
9225 * common/common-utils.h (savestring): Declare.
9226
9227 2013-02-14 Pedro Alves <palves@redhat.com>
9228
9229 * utils.c (savestring): Rename parameter 'size' to 'len'.
9230
9231 2013-02-14 Pedro Alves <palves@redhat.com>
9232 Yufeng Zhang <yufeng.zhang@arm.com>
9233
9234 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9235 (aarch64_inferior_data, struct aarch64_inferior_data):
9236 Delete.
9237 (struct aarch64_process_info): New.
9238 (aarch64_process_list): New global.
9239 (aarch64_find_process_pid, aarch64_add_process)
9240 (aarch64_process_info_get): New functions.
9241 (aarch64_inferior_data_get): Delete.
9242 (aarch64_process_info_get): New function.
9243 (aarch64_forget_process): New function.
9244 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9245 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9246 aarch64_get_debug_reg_state.
9247 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9248 instead of linux_nat_iterate_watchpoint_lwps.
9249 (aarch64_linux_new_fork): New function.
9250 (aarch64_linux_child_post_startup_inferior): Use
9251 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9252 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9253 (aarch64_linux_remove_hw_breakpoint)
9254 (aarch64_handle_aligned_watchpoint)
9255 (aarch64_handle_unaligned_watchpoint)
9256 (aarch64_linux_insert_watchpoint)
9257 (aarch64_linux_remove_watchpoint)
9258 (aarch64_linux_stopped_data_address): Adjust to pass the current
9259 process id to aarch64_debug_reg_state.
9260 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9261 linux_nat_new_fork hook, and aarch64_forget_process as
9262 linux_nat_forget_process hook; remove the call to
9263 register_inferior_data_with_cleanup.
9264
9265 2013-02-14 Pedro Alves <palves@redhat.com>
9266
9267 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9268 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9269 lval_memory.
9270
9271 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9272 Hafiz Abid Qadeer <abidh@codesourcery.com>
9273
9274 * tracepoint.h (validate_trace_state_variable_name): Declare.
9275 * tracepoint.c (validate_trace_state_variable_name): New.
9276 (trace_variable_command): Parse the trace state variable's name
9277 without using parse_expression. Do several validations.
9278 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9279 trace state variable's name with parse_expression. Validate it.
9280
9281 2013-02-14 Yao Qi <yao@codesourcery.com>
9282
9283 * infcmd.c (breakpoint_proceeded): Remove it.
9284
9285 2013-02-14 Yao Qi <yao@codesourcery.com>
9286
9287 * tracepoint.c (end_actions_pseudocommand): Make it static.
9288 (while_stepping_pseudocommand): Likewise.
9289 * tracepoint.h (end_actions_pseudocommand): Remove the
9290 declaration.
9291 (while_stepping_pseudocommand): Likewise.
9292
9293 2013-02-14 Yao Qi <yao@codesourcery.com>
9294
9295 * cli/cli-decode.c (help_cmd): Remove the declaration of
9296 "cmdlist".
9297 (help_all): Likewise.
9298
9299 2013-02-13 Pedro Alves <palves@redhat.com>
9300
9301 * amd64-linux-nat.c (update_debug_registers_callback):
9302 Update comment.
9303 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9304 iterate_over_lwps.
9305 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9306 i386_debug_reg_state.
9307 (amd64_linux_new_fork): New function.
9308 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9309 linux_nat_new_fork hook, and i386_forget_process as
9310 linux_nat_forget_process hook.
9311 * i386-linux-nat.c (update_debug_registers_callback):
9312 Update comment.
9313 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9314 iterate_over_lwps.
9315 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9316 i386_debug_reg_state.
9317 (i386_linux_new_fork): New function.
9318 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9319 linux_nat_new_fork hook, and i386_forget_process as
9320 linux_nat_forget_process hook.
9321 * i386-nat.c (i386_init_dregs): Delete.
9322 (i386_inferior_data, struct i386_inferior_data):
9323 Delete.
9324 (struct i386_process_info): New.
9325 (i386_process_list): New global.
9326 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9327 New functions.
9328 (i386_inferior_data_get): Delete.
9329 (i386_process_info_get): New function.
9330 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9331 (i386_forget_process): New function.
9332 (i386_cleanup_dregs): Rewrite.
9333 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9334 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9335 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9336 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9337 to i386_debug_reg_state.
9338 (i386_use_watchpoints): Don't register inferior data.
9339 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9340 adjust comment.
9341 (i386_forget_process): Declare.
9342 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9343 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9344 New static globals.
9345 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9346 (add_initial_lwp): New, factored out from ...
9347 (add_lwp): ... this. Don't check the number of lwps before
9348 calling linux_nat_new_thread.
9349 (linux_nat_iterate_watchpoint_lwps): Delete.
9350 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9351 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9352 forks and vforks.
9353 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9354 initial lwp.
9355 (linux_nat_kill, linux_nat_mourn_inferior): Call
9356 linux_nat_forget_process.
9357 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9358 (linux_nat_forget_process): New functions.
9359 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9360 type.
9361 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9362 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9363 types.
9364 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9365 (linux_nat_forget_process): New declarations.
9366
9367 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9368 (amd64fbsd_mourn_inferior): New function.
9369 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9370 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9371
9372 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9373
9374 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9375 Adding _().
9376
9377 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9378
9379 * aarch64-linux-nat.c (debug_reg_change_callback)
9380 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9381 %s and phex().
9382
9383 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9384
9385 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9386 with LONGEST.
9387
9388 2013-02-13 Pedro Alves <palves@redhat.com>
9389 Hafiz Abid Qadeer <abidh@codesourcery.com>
9390
9391 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9392
9393 2013-02-12 Tom Tromey <tromey@redhat.com>
9394
9395 PR symtab/11464:
9396 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9397 NAME return.
9398 (classify_inner_name): Remove 'first_name' argument, add
9399 'context'. Remove unused variable.
9400 (yylex): Explicitly maintain the context type. Exit loop earlier
9401 if NAME result is seen.
9402
9403 2013-02-12 Pedro Alves <palves@redhat.com>
9404
9405 * amd64-darwin-tdep.c: Add (C) after Copyright.
9406 * cli/cli-cmds.h: Ditto.
9407 * cli/cli-decode.c: Ditto.
9408 * cli/cli-decode.h: Ditto.
9409 * cli/cli-dump.c: Ditto.
9410 * cli/cli-dump.h: Ditto.
9411 * cli/cli-interp.c: Ditto.
9412 * cli/cli-logging.c: Ditto.
9413 * cli/cli-script.c: Ditto.
9414 * cli/cli-script.h: Ditto.
9415 * cli/cli-setshow.c: Ditto.
9416 * cli/cli-setshow.h: Ditto.
9417 * cli/cli-utils.c: Ditto.
9418 * cli/cli-utils.h: Ditto.
9419 * config/alpha/nm-osf3.h: Ditto.
9420 * config/djgpp/djconfig.sh: Ditto.
9421 * config/i386/nm-fbsd.h: Ditto.
9422 * config/i386/nm-i386gnu.h: Ditto.
9423 * config/nm-linux.h: Ditto.
9424 * config/nm-nto.h: Ditto.
9425 * config/rs6000/nm-rs6000.h: Ditto.
9426 * config/sparc/nm-sol2.h: Ditto.
9427 * darwin-nat-info.c: Ditto.
9428 * dfp.c: Ditto.
9429 * dfp.h: Ditto.
9430 * gdb-demangle.h: Ditto.
9431 * i386-darwin-nat.c: Ditto.
9432 * i386-darwin-tdep.c: Ditto.
9433 * linux-fork.h: Ditto.
9434 * m32c-tdep.c: Ditto.
9435 * microblaze-linux-tdep.c: Ditto.
9436 * microblaze-rom.c: Ditto.
9437 * microblaze-tdep.c: Ditto.
9438 * microblaze-tdep.h: Ditto.
9439 * mips-linux-tdep.h: Ditto.
9440 * ppc-ravenscar-thread.c: Ditto.
9441 * ppc-ravenscar-thread.h: Ditto.
9442 * prologue-value.c: Ditto.
9443 * prologue-value.h: Ditto.
9444 * ravenscar-thread.c: Ditto.
9445 * ravenscar-thread.h: Ditto.
9446 * sparc-ravenscar-thread.c: Ditto.
9447 * sparc-ravenscar-thread.h: Ditto.
9448 * tilegx-linux-tdep.c: Ditto.
9449 * unwind_stop_reasons.def: Ditto.
9450 * windows-nat.h: Ditto.
9451 * xtensa-linux-tdep.c: Ditto.
9452 * xtensa-xtregs.c: Ditto.
9453 * regformats/regdat.sh: Ditto.
9454 * regformats/regdef.h: Ditto.
9455
9456 2013-02-12 Pedro Alves <palves@redhat.com>
9457
9458 * break-catch-sig.c: Update copyright years.
9459
9460 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9461
9462 Add support for a destructor for ui_out data and use it to
9463 provide a ui_out destructor.
9464 * ui-out.h: Declare the new ui_out destructor.
9465 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9466 * ui-out.c (default_data_destroy): Add a default data destructor
9467 which does nothing.
9468 (default_ui_out_impl): Set the new data_destroy field to
9469 default_data_destroy
9470 (uo_data_destroy): Local function which invokes the data
9471 destructor if present.
9472 (clear_table): Local function which clears the table data of a
9473 ui_out object.
9474 (ui_out_destroy): Public function which frees a ui_out object.
9475 (ui_out_table_end): Use the new clear_table function.
9476 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9477 NULL.
9478 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9479 to NULL.
9480
9481 2013-02-11 Doug Evans <dje@google.com>
9482
9483 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9484 (printf_decfloat): New function. Broken out from ui_printf.
9485 Remove unnecessary code to shift the entire format string down.
9486 (printf_pointer): New function.
9487 (ui_printf): Code to print C strings, wide C strings, decfloats,
9488 and pointers moved to separate functions.
9489
9490 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9491
9492 * valops.c (value_assign): Handling bitfield offset in
9493 `lval_internalvar_component' case.
9494
9495 2013-02-08 Doug Evans <dje@google.com>
9496
9497 * common/format.c (parse_format_string): Fix whitespace.
9498
9499 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9500
9501 * stack.c (return_command): Work around uninitialized variable
9502 warning.
9503
9504 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9505
9506 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9507 number of the registers from 36 to 34.
9508
9509 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9510
9511 * NEWS: Mention new AArch64 native and target support.
9512
9513 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9514
9515 * MAINTAINERS (Write After Approval): Add myself.
9516
9517 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9518 Marcus Shawcroft <marcus.shawcroft@arm.com>
9519 Nigel Stephens <nigel.stephens@arm.com>
9520 Yufeng Zhang <yufeng.zhang@arm.com>
9521
9522 * aarch64-linux-nat.c: New file.
9523 * config/aarch64/linux.mh: New file.
9524 * configure.host: Add AArch64.
9525 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9526
9527 2013-02-07 Doug Evans <dje@google.com>
9528
9529 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9530 disassemble command.
9531
9532 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9533
9534 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9535 set_gdbarch_fetch_tls_load_module_address.
9536
9537 2013-02-06 David S. Miller <davem@davemloft.net>
9538
9539 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9540 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9541 * value.c (struct_return_convention): New function.
9542 (using_struct_return): Implement in terms of struct_return_convention.
9543 * value.h (struct_return_convention): Declare.
9544 * stack.c (return_command): Allow successful overriding of the return
9545 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9546
9547 2013-02-06 Tom Tromey <tromey@redhat.com>
9548
9549 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9550 outside of TRY_CATCH.
9551
9552 2013-02-06 Yao Qi <yao@codesourcery.com>
9553
9554 * mi/mi-interp.c: Include "tracepoint.h".
9555 (mi_tsv_modified): Declare.
9556 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9557 (mi_interpreter_init): Call observer_attach_tsv_modified.
9558 (mi_tsv_modified): New.
9559 (mi_tsv_created, mi_tsv_deleted): Update.
9560 * tracepoint.c (trace_variable_command): Call
9561 observer_notify_tsv_modified if the initial value of tsv is
9562 changed.
9563 (delete_trace_state_variable): Call
9564 observer_notify_tsv_deleted earlier.
9565 (trace_variable_command): Caller update.
9566 (create_tsv_from_upload): Likewise.
9567 * observer.sh: Declare "struct trace_state_variable".
9568
9569 * NEWS: Mention the new MI notification "=tsv-modified".
9570
9571 2013-02-05 Doug Evans <dje@google.com>
9572
9573 * completer.c (location_completer): Fix typo in comment.
9574
9575 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9576
9577 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9578 ADDRESS sorted.
9579
9580 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9581
9582 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9583 Refactor if statement to avoid trailing || operator.
9584
9585 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9586
9587 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9588
9589 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9590
9591 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9592 * configure.host: Add powerpc*-*-freebsd* target.
9593 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9594 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9595 * config/powerpc/fbsd.mh: New file.
9596
9597 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9598 Denys Vlasenko <dvlasenk@redhat.com>
9599 Pedro Alves <palves@redhat.com>
9600
9601 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9602 (struct elf_internal_linux_prpsinfo): Forward declare.
9603 * gdbarch.h, gdbarch.c: Regenerate.
9604 * linux-tdep.c: Include `cli/cli-utils.h'.
9605 (linux_fill_prpsinfo): New function.
9606 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9607 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9608 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9609 depending on gdbarch pointer bitness.
9610 * ppc-linux-tdep.c: Include elf-bfd.h.
9611 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9612 on 32-bit.
9613
9614 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9615 Marcus Shawcroft <marcus.shawcroft@arm.com>
9616 Nigel Stephens <nigel.stephens@arm.com>
9617 Yufeng Zhang <yufeng.zhang@arm.com>
9618
9619 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9620
9621 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9622 Marcus Shawcroft <marcus.shawcroft@arm.com>
9623 Nigel Stephens <nigel.stephens@arm.com>
9624 Yufeng Zhang <yufeng.zhang@arm.com>
9625
9626 * aarch64-newlib-tdep.c: New file.
9627 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9628 aarch64*-*-elf.
9629 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9630 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9631 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9632 * osabi.c (gdb_osabi_names): Add "Newlib".
9633
9634 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9635 Marcus Shawcroft <marcus.shawcroft@arm.com>
9636 Nigel Stephens <nigel.stephens@arm.com>
9637 Yufeng Zhang <yufeng.zhang@arm.com>
9638
9639 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9640 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9641 * aarch64-linux-tdep.c: New file.
9642 * aarch64-linux-tdep.h: New file.
9643 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9644 * configure.tgt: Add aarch64-none-linux-gnu.
9645
9646 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9647 Marcus Shawcroft <marcus.shawcroft@arm.com>
9648 Nigel Stephens <nigel.stephens@arm.com>
9649 Yufeng Zhang <yufeng.zhang@arm.com>
9650
9651 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9652 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9653 (ALLDEPFILES): Add aarch64-tdep.c.
9654 * aarch64-tdep.c: New file.
9655 * aarch64-tdep.h: New file.
9656 * configure.tgt: Add AArch64.
9657 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9658 (aarch64-expedite): New definition.
9659 * features/aarch64-core.xml: New file.
9660 * features/aarch64-fpu.xml: New file.
9661 * features/aarch64-without-fpu.c: New file (generated).
9662 * features/aarch64-without-fpu.xml: New file.
9663 * features/aarch64.c: New file (generated).
9664 * features/aarch64.xml: New file.
9665 * regformats/aarch64-without-fpu.dat: New file (generated).
9666 * regformats/aarch64.dat: New file (generated).
9667
9668 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9669
9670 * contrib/expect-read1.c: New file.
9671 * contrib/expect-read1.sh: New file.
9672
9673 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9674
9675 * dwarf2read.c (file_file_name): New function with code from
9676 file_full_name.
9677 (file_full_name): Move most of the code to file_file_name.
9678 (macro_start_file): Rename variable full_name to file_name and use
9679 file_file_name for it. Add comp_dir parameter to new_macro_table.
9680 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9681 macro_source_file->filename access by macro_source_fullname call.
9682 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9683 caller.
9684 * macrotab.c (struct macro_table): New field comp_dir.
9685 (macro_include): New variables link_fullname and source_fullname.
9686 Replace any macro_source_file->filename access by macro_source_fullname
9687 call.
9688 (macro_lookup_inclusion): Remove the partial filenames checking code.
9689 (check_for_redefinition): New variables source_fullname and
9690 found_key_fullname. Replace any macro_source_file->filename access by
9691 macro_source_fullname call.
9692 (macro_undef): New variables source_fullname and key_fullname. Replace
9693 any macro_source_file->filename access by macro_source_fullname call.
9694 (macro_lookup_definition): New variables retval and source_fullname.
9695 Replace any macro_source_file->filename access by macro_source_fullname
9696 call.
9697 (foreach_macro): New variable key_fullname. Replace any
9698 macro_source_file->filename access by macro_source_fullname call.
9699 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9700 macro_source_file->filename access by macro_source_fullname call.
9701 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9702 (macro_source_fullname): New function.
9703 * macrotab.h (struct macro_source_file): Extent the filename field
9704 comment.
9705 (new_macro_table): New parameter comp_dir, add a comment for it.
9706 (macro_source_fullname): new declaration.
9707
9708 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9709
9710 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9711 this_real_name to outer block. Use it also for
9712 compare_filenames_for_search.
9713 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9714 with dw2_get_real_path for file_matcher, considering also
9715 BASENAMES_MAY_DIFFER.
9716 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9717
9718 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9721 to the file_matcher parameter. Pass 0 to it.
9722 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9723 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9724 NULL psymtab_to_fullname result.
9725 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9726 an expected filename instead.
9727 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9728 file_matcher parameter. Call also psymtab_to_fullname, after newly
9729 considering BASENAMES_MAY_DIFFER.
9730 * source.c (rewrite_source_path): Remove static.
9731 * source.h (rewrite_source_path): New declaration.
9732 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9733 the expand_symtabs_matching field. Comment it.
9734 * symtab.c (file_matches): New function comment. Add parameter
9735 basenames, implement it.
9736 (search_symbols_file_matches): Add basenames parameter. Update the
9737 file_matches caller.
9738 (search_symbols): Match FILES also against symtab_to_fullname.
9739 Optimize it for BASENAMES_MAY_DIFFER.
9740
9741 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9742
9743 * source.c (print_source_lines_base): Print for TUI also "fullname".
9744 * tui/tui-data.c (init_content_element): Change tui_locator_element
9745 field to full_name.
9746 * tui/tui-data.h (struct tui_locator_element): Likewise.
9747 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9748 tui_update_locator_filename calls to tui_update_locator_fullname.
9749 Replace symtab->filename refererence by symtab_to_fullname call.
9750 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9751 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9752 field to full_name. Replace symtab->filename refererence by
9753 symtab_to_fullname call.
9754 (tui_show_symtab_source): Rename parameter to fullname. Change
9755 tui_locator_element field to full_name.
9756 * tui/tui-stack.c: Include source.h.
9757 (tui_set_locator_filename): Rename the declaration to ...
9758 (tui_set_locator_fullname): ... here. Rename its parameter to
9759 fullname, updates its comment.
9760 (tui_set_locator_info): Rename its parameter to fullname.
9761 (tui_set_locator_filename): Rename the definition to ...
9762 (tui_set_locator_fullname): ... here. Rename its parameter to
9763 fullname, updates its comment. Change tui_locator_element field to
9764 full_name.
9765 (tui_set_locator_info): Rename its parameter to fullname.
9766 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9767 (tui_update_locator_filename): Rename to ...
9768 (tui_update_locator_fullname): ... here. Rename callee to
9769 tui_set_locator_fullname.
9770 (tui_show_frame_info): Replace symtab->filename refererence by
9771 symtab_to_fullname call.
9772 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9773 (tui_update_locator_fullname): ... here.
9774 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9775 tui_update_locator_fullname. Replace symtab->filename refererence by
9776 symtab_to_fullname call.
9777 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9778 Rename the callee to tui_update_locator_fullname.
9779 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9780
9781 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9782
9783 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9784 by symtab_to_filename_for_display calls.
9785 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9786 (clear_command): New variable sal_fullname, initialize it. Replace
9787 compare_filenames_for_search by filename_cmp with sal_fullname.
9788 (say_where, update_static_tracepoint): Replace symtab->filename
9789 refererences by symtab_to_filename_for_display calls.
9790 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9791 Likewise.
9792 * dwarf2read.c: Include source.h.
9793 (fixup_go_packaging): Replace symtab->filename refererences by
9794 symtab_to_filename_for_display calls.
9795 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9796 Replace symtab->filename refererences by symtab_to_filename_for_display
9797 calls.
9798 (create_sals_line_offset, convert_linespec_to_sals): New variable
9799 fullname, initialize it, replace symtab->filename reference by the
9800 variable.
9801 * linux-fork.c: Include source.h.
9802 (info_checkpoints_command): Replace symtab->filename refererences by
9803 symtab_to_filename_for_display calls.
9804 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9805 by symtab_to_filename_for_display calls.
9806 * mdebugread.c: Include source.h.
9807 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9808 symtab_to_filename_for_display calls.
9809 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9810 (mi_cmd_file_list_exec_source_files): Likewise.
9811 * printcmd.c: Include source.h.
9812 (build_address_symbolic): Replace symtab->filename refererences by
9813 symtab_to_filename_for_display calls.
9814 * psymtab.c (partial_map_symtabs_matching_filename)
9815 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9816 with psymtab_to_fullname.
9817 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9818 by symtab_to_filename_for_display calls.
9819 (stpy_get_filename): New variable filename, initialize it, use instead
9820 of symtab->filename refererences.
9821 (salpy_str): Make variable filename const char *. Replace
9822 symtab->filename refererences by symtab_to_filename_for_display calls.
9823 * skip.c: Include source.h and filenames.h.
9824 (skip_file_command): Remove const from the symtab variable. Replace
9825 symtab->filename refererences by symtab_to_fullname call.
9826 (function_name_is_marked_for_skip): New variables searched_for_fullname
9827 and fullname. Use them to search also with symtab's fullname.
9828 * source.c (find_source_lines): Replace symtab->filename refererences
9829 by symtab_to_filename_for_display calls.
9830 (print_source_lines_base): New variable filename, use it instead of
9831 symtab->filename. Replace symtab->filename refererences by
9832 symtab_to_filename_for_display calls.
9833 (line_info, forward_search_command): Replace symtab->filename
9834 refererences by symtab_to_filename_for_display calls.
9835 (reverse_search_command): Replace symtab->filename refererences by
9836 symtab_to_filename_for_display calls. New variable filename for it.
9837 * stack.c (frame_info): Likewise.
9838 * symmisc.c: Include source.h.
9839 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9840 (maintenance_info_symtabs): Replace symtab->filename refererences by
9841 symtab_to_filename_for_display calls.
9842 * symtab.c (iterate_over_some_symtabs): Call
9843 compare_filenames_for_search also with symtab_to_fullname.
9844 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9845 symtab->filename refererences by symtab_to_filename_for_display calls.
9846 (find_line_symtab): Replace symtab->filename refererences by
9847 symtab_to_filename_for_display calls.
9848 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9849 (print_symbol_info): Make the last parameter const char *. New
9850 variable s_filename. Use it in the function.
9851 (symtab_symbol_info): Make the last_filename variable const char *.
9852 Replace symtab->filename refererences by symtab_to_filename_for_display
9853 calls.
9854 (rbreak_command): New variable fullname. Use it. Replace
9855 symtab->filename refererence by symtab_to_filename_for_display call.
9856 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9857 (print_one_static_tracepoint_marker): Replace symtab->filename
9858 refererences by symtab_to_filename_for_display calls.
9859 * tui/tui-source.c (tui_set_source_content): New variables filename and
9860 s_filename. Replace symtab->filename refererences by this variable.
9861 Replace other symtab->filename refererences by
9862 symtab_to_filename_for_display calls.
9863
9864 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9865 Jan Kratochvil <jan.kratochvil@redhat.com>
9866
9867 Add a new variable that controls a way in which filenames are
9868 displayed.
9869 * NEWS (set filename-display): New entry.
9870 * source.c (filename_display_basename, filename_display_relative)
9871 (filename_display_absolute, filename_display_kind_names)
9872 (filename_display_string, show_filename_display_string)
9873 (symtab_to_filename_for_display): New.
9874 (_initialize_source): Added initialization of 'filename-display'
9875 variable.
9876 * source.h (symtab_to_filename_for_display): Added declaration.
9877 * stack.c (print_frame): Added new variable and calling of a new
9878 function and condition with this variable. Changed third argument of
9879 calling of a function.
9880
9881 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9882
9883 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9884 Rename field reference filename to fullname.
9885 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9886 fullname. New comment for it.
9887 * tui/tui-source.c (tui_set_source_content): Rename field reference
9888 filename to fullname. Initialize field by symtab_to_fullname now.
9889 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9890 reference filename to fullname. Use symtab_to_fullname during
9891 comparison.
9892
9893 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9894
9895 Code cleanup.
9896 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9897 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9898 filename to fullname. Rename variable this_name to this_fullname.
9899 Lowercase FILENAME_CMP call.
9900 (dw2_find_symbol_file): New comment for the returned string.
9901 (dwarf2_gdb_index_functions): Rename the function to
9902 dw2_expand_symtabs_with_fullname.
9903 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9904 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9905 fullname.
9906 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9907 * symfile.h (struct quick_symbol_functions): Rename field
9908 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9909 parameter filename to fullname. Document returned string meaning for
9910 find_symbol_file.
9911 * symtab.c (find_line_symtab): Rename the called function to
9912 expand_symtabs_with_fullname.
9913
9914 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9915
9916 Code cleanup.
9917 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9918 call of filename_cmp with compare_filenames_for_search.
9919 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9920 is_abs, unify the call of FILENAME_CMP with
9921 compare_filenames_for_search. New gdb_asserts for real_path and name.
9922 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9923 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9924 * symfile.h (struct quick_symbol_functions): Extend the comment for
9925 map_symtabs_matching_filename.
9926 * symtab.c (compare_filenames_for_search): Remove the function comment
9927 relative path requirement. Handle absolute filenames, with a comment.
9928 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9929 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9930 real_path and name. Unify the call of compare_filenames_for_search
9931 with FILENAME_CMP.
9932 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9933
9934 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9935
9936 Code cleanup.
9937 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9938 source_file references by symtab field references. Remove variables
9939 sal and fullname.
9940 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9941 (clear_command, say_where): Replace bp_location field source_file
9942 references by symtab field references.
9943 (bp_location_dtor): Remove the source_file reference.
9944 (update_static_tracepoint): Replace bp_location field source_file
9945 references by symtab field references.
9946 (breakpoint_free_objfile): New function.
9947 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9948 Replace the field source_file by field symtab, extend its comment.
9949 (breakpoint_free_objfile): New declaration.
9950 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9951 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9952 field source_file references by symtab field references.
9953
9954 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9955
9956 Replace xfullpath calls by gdb_realpath calls.
9957 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9958 function comment.
9959 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9960 Remove it from the iterate_over_some_symtabs call.
9961 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9962 Remove it from the dw2_map_expand_apply calls, remove a block handling
9963 it.
9964 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9965 Remove it from the iterate_over_some_symtabs call.
9966 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9967 Remove it from the partial_map_expand_apply calls, remove a block
9968 handling it. Drop gdb_realpath call and cleanups from the real_path
9969 handling.
9970 * source.c (openp): Drop the comment part about xfullpath. Replace
9971 xfullpath calls by gdb_realpath calls.
9972 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9973 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9974 from method map_symtabs_matching_filename and its comment.
9975 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9976 gdb_realpath call.
9977 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9978 remove it also from the function comment, remove a block handling it.
9979 Drop gdb_realpath call and cleanups from the real_path handling.
9980 (iterate_over_symtabs): Drop variable full_path and its use.
9981 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9982 * utils.c (xfullpath): Remove.
9983 * utils.h (xfullpath): Remove.
9984
9985 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
9986
9987 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9988 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9989 (ALLDEPFILES): Add ppc64-tdep.c.
9990 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9991 ppc64-tdep.o to gdb_target_obs.
9992 * ppc64-tdep.h: New file.
9993 * ppc64-tdep.c: New file.
9994 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9995 ppc-linux-tdep.c to here.
9996 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9997 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9998 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9999 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10000 from ppc-linux-tdep.c to here.
10001 (ppc64_convert_from_func_ptr_addr): Rename from
10002 ppc64_linux_convert_from_func_ptr_addr to
10003 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10004 here.
10005 * rs6000-tdep.c:
10006 (read_insn): Move from ppc-linux-tdep.c to here.
10007 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10008 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10009 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10010 Removed above functions.
10011 (ppc_linux_init_abi): Adjust.
10012
10013 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10014
10015 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10016
10017 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10018
10019 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10020
10021 2013-02-01 Pedro Alves <palves@redhat.com>
10022
10023 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10024 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10025
10026 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10027
10028 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10029 files with no separate debug info.
10030 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10031 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10032 only for files with no separate debug info.
10033
10034 2013-01-31 Tom Tromey <tromey@redhat.com>
10035
10036 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10037 change type.
10038 (struct jit_program_space_data): Rename from jit_inferior_data.
10039 Update comments.
10040 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10041 Change return type. Attach data to program space.
10042 (jit_program_space_data_cleanup): Rename from
10043 jit_inferior_data_cleanup; change argument type.
10044 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10045 change type.
10046 (jit_register_code): Update.
10047 (jit_update_inferior_cache): Remove.
10048 (jit_breakpoint_deleted): Get jit data from the location's program
10049 space.
10050 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10051 'ps_data', change type.
10052 (jit_inferior_init, jit_breakpoint_re_set_internal)
10053 (jit_event_handler): Update.
10054 (free_objfile_data): Get data from objfile's program space.
10055 (_initialize_jit): Update.
10056
10057 2013-01-31 Tom Tromey <tromey@redhat.com>
10058
10059 PR gdb/13987:
10060 * jit.c (struct jit_inferior_data) <cached_code_address,
10061 jit_breakpoint>: New fields.
10062 (jit_breakpoint_re_set_internal): Fix logging. Only create
10063 breakpoint if cached address has changed.
10064 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10065 functions.
10066 (_initialize_jit): Register breakpoint deleted observer.
10067
10068 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10069
10070 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10071 (save_infcall_suspend_state): Ifdef out unused inf.
10072 (restore_infcall_suspend_state): Ifdef out unused inf.
10073 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10074 (jit_frame_sniffer): Remove unused inf_data.
10075
10076 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10077
10078 * c-exp.y (classify_inner_name): Remove unused type.
10079 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10080 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10081 need_escape.
10082 (c_get_string): Remove unused kind.
10083 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10084
10085 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10086
10087 * charset.c (intermediate_encoding): Remove unused i.
10088 * completer.c (signal_completer): Remove unused i.
10089 * continuations.c (discard_my_continuations_1): Remove unused
10090 continuation_ptr.
10091 * corelow.c (core_close): Remove unuseD name.
10092 (get_core_siginfo): Remove unused pid.
10093 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10094 i, cps.
10095 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10096 (loclist_describe_location): Remove unused first.
10097 * event-top.c (command_line_handler): Remove unused got_eof.
10098 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10099 (resize_section_table): Remove unused old_value.
10100 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10101 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10102 * i386-tdep.c (i386_process_record): Remove unused rex.
10103 * infcmd.c (get_return_value): Remove unused uiout.
10104 * jv-lang.c (type_from_class): Remove unused is_array.
10105 * jv-valprint.c (java_val_print): Remove unused i.
10106 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10107 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10108 * m2-typeprint.c (m2_print_type): Remove unused code.
10109 * macroexp.c (get_character_constant): Remove unused body_start.
10110 (macro_stringify): Remove unused result.
10111 * objc-lang.c (find_methods): Remove unused gdbarch.
10112 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10113 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10114 * stack.c (print_frame_args): Remove unused summary.
10115 * thread.c (thread_apply_command): Remove unused p.
10116 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10117 * valops.c (search_struct_method): Remove unused skip.
10118 * valprint.c (generic_val_print): Remove unused byte_order.
10119 * varobj.c (varobj_update): Remove unused changed.
10120 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10121 (alias_command): Remove unused c.
10122 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10123 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10124 format.
10125 (mi_cmd_data_write_memory): Remove unused word_format.
10126 (mi_cmd_data_write_memory_bytes): Remove unused r.
10127 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10128 p_start, p_end.
10129 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10130 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10131 line_width.
10132
10133 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10134
10135 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10136 * symtab.c (iterate_over_symtabs): Remove unused s.
10137 (find_pc_sect_symtab): Remove unused pspAce.
10138 (find_pc_sect_line): Remove unused alt_symtab.
10139 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10140 (completion_list_add_name): Remove unused newsize.
10141
10142 2013-01-31 Tom Tromey <tromey@redhat.com>
10143
10144 PR c++/14998:
10145 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10146 TYPE_CODE_FUNC.
10147
10148 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10149
10150 * target.c (target_read_string): Remove unused origlen.
10151
10152 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10153
10154 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10155 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10156 * ax-general.c (ax_print): Remove unused is_float.
10157 * blockframe.c (block_innermost_frame): Remove unused start, end.
10158 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10159
10160 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10161
10162 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10163 (svr4_read_so_list): Remove unused lmo.
10164 * solib-target.c (solib_target_relocate_section_addresses): Remove
10165 unused flags.
10166
10167 2013-01-30 Tom Tromey <tromey@redhat.com>
10168
10169 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10170
10171 2013-01-30 Tom Tromey <tromey@redhat.com>
10172
10173 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10174 * utils.c (gnu_debuglink_crc32): Remove.
10175 * utils.h (gnu_debuglink_crc32): Don't declare.
10176
10177 2013-01-30 Tom Tromey <tromey@redhat.com>
10178
10179 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10180 (read_structure_type, read_enumeration_type): Remove cast.
10181
10182 2013-01-30 Tom Tromey <tromey@redhat.com>
10183
10184 * dwarf2read.c (read_namespace_type): Remove cast.
10185 (read_typedef): Likewise.
10186
10187 2013-01-29 Tom Tromey <tromey@redhat.com>
10188
10189 * dwarf2read.c (free_dwo_file): Remove assert.
10190
10191 2013-01-29 Tom Tromey <tromey@redhat.com>
10192
10193 * value.c (deprecated_set_value_modifiable): Remove.
10194 * value.h (deprecated_set_value_modifiable): Remove.
10195
10196 2013-01-28 Doug Evans <dje@google.com>
10197
10198 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10199 to addresses from dwo files.
10200
10201 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10202
10203 * valops.c (find_overload_match): Remove unused argument 'lax'.
10204 * value.h: Remove unused argument 'lax' from the declaration of
10205 find_overload_match.
10206 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10207 to find_overload_match.
10208 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10209 argument to find_overload_match.
10210
10211 2013-01-25 Tom Tromey <tromey@redhat.com>
10212
10213 * dwarf2read.c (processing_has_namespace_info): Remove.
10214 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10215 (process_die, read_func_scope, dwarf2_start_symtab)
10216 (new_symbol_full): Update.
10217
10218 2013-01-25 Tom Tromey <tromey@redhat.com>
10219
10220 * cp-namespace.c (cp_set_block_scope): Remove.
10221 * cp-support.h (cp_set_block_scope): Remove.
10222 * dbxread.c: Include block.h.
10223 (cp_set_block_scope): New function.
10224 (process_one_symbol): Update.
10225 * dwarf2read.c (read_func_scope): Use block_set_scope.
10226
10227 2013-01-25 Pedro Alves <palves@redhat.com>
10228
10229 * remote.c (add_current_inferior_and_thread): Tweak comment.
10230
10231 2013-01-25 Tom Tromey <tromey@redhat.com>
10232
10233 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10234 (cp_add_using_directive): Add 'copy_names' argument.
10235 * cp-support.h (cp_add_using_directive): Update.
10236 (struct using_direct) <import_src, import_dest, alias,
10237 declaration>: Now const.
10238 * dwarf2read.c (read_import_statement): Use obconcat.
10239 Don't copy names passed to cp_add_using_directive.
10240
10241 2013-01-25 Tom Tromey <tromey@redhat.com>
10242
10243 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10244
10245 2013-01-25 Pedro Alves <palves@redhat.com>
10246
10247 * remote.c (stop_reply_extract_thread): New.
10248 (add_current_inferior_and_thread): New parameter 'wait_status'.
10249 Handle it.
10250 (remote_start_remote): Pass wait status to
10251 add_current_inferior_and_thread.
10252 (extended_remote_run): Update comment.
10253 (extended_remote_create_inferior_1): Pass wait status to
10254 add_current_inferior_and_thread.
10255
10256 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10257 Ulrich Weigand <uweigand@de.ibm.com>
10258
10259 * valarith.c (value_vector_widen): New function for replicating a
10260 scalar into a vector.
10261 (value_binop): Use value_vector_widen to widen scalar to vector
10262 rather than casting, this better matches gcc C behaviour.
10263 * valops.c (value_casst): Update logic for casting between vector
10264 types, and for casting from scalar to vector, try to match gcc C
10265 behaviour.
10266 * value.h (value_vector_widen): Declare.
10267 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10268 function, handle special case for casting scalar to vector.
10269 (opencl_relop): Use opencl_value_cast.
10270 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10271 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10272 in order to use opencl_value_cast.
10273
10274 2013-01-25 Yao Qi <yao@codesourcery.com>
10275
10276 * event-loop.c: Include "queue.h".
10277 (gdb_event_p): New typedef.
10278 (DECLARE_QUEUE_P): Use.
10279 (DEFINE_QUEUE_P): Use.
10280 (async_queue_event): Remove.
10281 (gdb_event_xfree): New.
10282 (initialize_event_loop): New.
10283 (process_event): Use QUEUE macros.
10284 (event_queue): Remove.
10285 (gdb_wait_for_event): Caller update.
10286 (check_async_event_handlers): Likewise.
10287 (poll_timers): Likewise.
10288 * event-loop.h (initialize_event_loop): Declare.
10289 * event-loop.c (gdb_event_xfree): New.
10290 * top.c (gdb_init): Call initialize_event_loop.
10291
10292 2013-01-25 Yao Qi <yao@codesourcery.com>
10293
10294 * event-loop.c (async_queue_event): Remove one parameter
10295 'position'. Remove code handling 'position' == TAIL.
10296 (gdb_wait_for_event): Caller update.
10297 (check_async_event_handlers): Caller update.
10298 (poll_timers): Caller update.
10299 * event-loop.h (enum queue_position): Remove.
10300
10301 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10302
10303 * MAINTAINERS: Update my email.
10304
10305 2013-01-25 Yao Qi <yao@codesourcery.com>
10306
10307 * main.c (print_gdb_help): Remove "--epoch" from the help
10308 message.
10309
10310 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10311
10312 * symtab.c (skip_prologue_using_sal): Consider a file
10313 change the same as an increased line number
10314
10315 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10316
10317 * MAINTAINERS (Write After Approval): Add myself to the list.
10318
10319 2013-01-24 Tom Tromey <tromey@redhat.com>
10320
10321 * ada-lang.h (ada_decode_symbol): Make return type const.
10322 * ada-lang.c (ada_decode_symbol): Likewise.
10323
10324 2013-01-23 Doug Evans <dje@google.com>
10325
10326 * linespec.c (find_linespec_symbols): Make static.
10327
10328 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10329
10330 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10331 type on float conversion for complex type.
10332
10333 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10334
10335 Add a new class gdb.Architecture which exposes GDB's
10336 internal representation of architecture via GDB Python API.
10337 * Makefile.in: Add entries corresponding to the new file
10338 python/py-arch.c.
10339 * NEWS (Python Scripting): Add entries for the new class
10340 gdb.Architecture and the new method gdb.Frame.architecture.
10341 * python/py-arch.c: Implement gdb.Architecture class.
10342 * python/py-frame.c (frapy_arch): Implement the method
10343 gdb.Frame.architecture().
10344 (frame_object_methods): Add 'architecture' to the method table.
10345 * python/python-internal.h: Add declarations of new utility
10346 functions.
10347 * python/python.c (_initialize_python): Initialize
10348 gdb.Architecture class.
10349
10350 2013-01-23 Doug Evans <dje@google.com>
10351
10352 Work around binutils/15021.
10353 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10354 type_unit_group out of union s. All uses updated.
10355 (read_index_from_section): Watch for index version 8.
10356 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10357 an imported symtab.
10358 (write_psymtabs_to_index): Increment version number to 8.
10359
10360 2013-01-22 Pedro Alves <palves@redhat.com>
10361
10362 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10363 user-visible.
10364
10365 2013-01-22 Pedro Alves <palves@redhat.com>
10366
10367 * annotate.c (annotate_breakpoints_changed): Rename to ...
10368 (annotate_breakpoints_invalid): ... this. Make static.
10369 (breakpoint_changed): Adjust.
10370 (_initialize_annotate): Always install the observers. Install a
10371 "breakpoint_created" observer.
10372 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10373 * breakpoint.c (set_breakpoint_condition)
10374 (breakpoint_set_commands, do_map_commands_command)
10375 (init_raw_breakpoint, clear_command, set_ignore_count)
10376 (enable_breakpoint_disp): No longer call
10377 annotate_breakpoints_changed.
10378
10379 2013-01-22 Pedro Alves <palves@redhat.com>
10380
10381 * annotate.c: Include "inferior.h".
10382 (frames_invalid_emitted)
10383 (breakpoints_invalid_emitted): New globals.
10384 (async_background_execution_p): New function.
10385 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10386 emitting the annotation if it has already been emitted.
10387 (annotate_display_prompt): New function.
10388 * annotate.h (annotate_display_prompt): New declaration.
10389 * event-top.c: Include annotate.h.
10390 (display_gdb_prompt): Call annotate_display_prompt.
10391
10392 2013-01-22 Pedro Alves <palves@redhat.com>
10393
10394 * annotate.c (ignore_count_changed): Delete.
10395 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10396 (annotate_ignore_count_change): Delete.
10397 (annotate_stopped): Don't emit a delayed breakpoints-changed
10398 annotation.
10399 * annotate.h (annotate_ignore_count_change): Delete.
10400 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10401 annotate_ignore_count_change.
10402
10403 2013-01-22 Tom Tromey <tromey@redhat.com>
10404
10405 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10406 require_rvalue for a register location.
10407
10408 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10409
10410 * breakpoint.c (print_one_breakpoint_location): Add MI
10411 field 'thread-groups' when printing a breakpoint.
10412 (output_thread_groups): New function.
10413
10414 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10415
10416 * python/lib/gdb/commands/explore.py
10417 (CompoundExplorer.explore_expr): Correct the name of a method
10418 being invoked.
10419 (ExploreTypeCommand.invoke): Add a missing 'return'.
10420
10421 2013-01-21 Tom Tromey <tromey@redhat.com>
10422
10423 * gdb_obstack.h (obconcat): Move declaration here, from...
10424 * symfile.h (obconcat): ... here.
10425 * gdb_obstack.c: New file.
10426 (obconcat): Move from...
10427 * symfile.c (obconcat): ... here.
10428 * Makefile.in (SFILES): Add gdb_obstack.c.
10429 (COMMON_OBS): Add gdb_obstack.o.
10430
10431 2013-01-21 Tom Tromey <tromey@redhat.com>
10432
10433 * symfile.h (obsavestring): Don't declare.
10434 * symfile.c (obsavestring): Remove.
10435 * ada-exp.y: Use obstack_copy0, not obsavestring.
10436 * ada-lang.c: Use obstack_copy0, not obsavestring.
10437 * coffread.c: Use obstack_copy0, not obsavestring.
10438 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10439 * dbxread.c: Use obstack_copy0, not obsavestring.
10440 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10441 * jit.c: Use obstack_copy0, not obsavestring.
10442 * mdebugread.c: Use obstack_copy0, not obsavestring.
10443 * psymtab.c: Use obstack_copy0, not obsavestring.
10444 * stabsread.c: Use obstack_copy0, not obsavestring.
10445 * xcoffread.c: Use obstack_copy0, not obsavestring.
10446
10447 2013-01-21 Tom Tromey <tromey@redhat.com>
10448
10449 * dwarf2read.c (fixup_go_packaging): Save package name
10450 on objfile obstack.
10451 * gdbtypes.c (init_type): Don't copy name.
10452
10453 2013-01-21 Tom Tromey <tromey@redhat.com>
10454
10455 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10456 const.
10457 (struct attribute) <u.str>: Now const.
10458 (struct fnfieldlist) <name>: Now const.
10459 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10460 (partial_die_parent_scope): Make return type const.
10461 (partial_die_full_name, add_partial_symbol): Update.
10462 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10463 'name' const.
10464 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10465 (read_file_scope, read_func_scope, dwarf2_add_field)
10466 (dwarf2_add_member_fn, read_structure_type)
10467 (process_enumeration_scope, read_array_type, read_module_type)
10468 (read_base_type, read_subrange_type): Update.
10469 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10470 (new_symbol_full, guess_full_die_structure_name): Update.
10471 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10472 (dwarf2_name): Return const type.
10473 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10474 const.
10475
10476 2013-01-21 Tom Tromey <tromey@redhat.com>
10477
10478 * gdbtypes.c (init_type): Make 'name' const.
10479 * gdbtypes.h (init_type): Update.
10480
10481 2013-01-21 Tom Tromey <tromey@redhat.com>
10482
10483 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10484 (start_symtab): Make 'name' and 'dirname' const. Use
10485 set_last_source_file.
10486 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10487 (last_source_file): Define. Now static.
10488 (set_last_source_file, get_last_source_file): New functions.
10489 * buildsym.h (last_source_file): Don't declare.
10490 (start_symtab): Update.
10491 (set_last_source_file, get_last_source_file): Declare.
10492 * coffread.c (complete_symtab): Use set_last_source_file.
10493 (coff_end_symtab): Likewise.
10494 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10495 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10496 set_last_source_file.
10497 (process_one_symbol): Use get_last_source_file.
10498 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10499 (psymtab_to_symtab_1): Use get_last_source_file.
10500 * xcoffread.c (process_linenos): Use get_last_source_file.
10501 (complete_symtab): Use set_last_source_file.
10502 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10503 (scan_xcoff_symtab): Use set_last_source_file.
10504
10505 2013-01-21 Tom Tromey <tromey@redhat.com>
10506
10507 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10508 (symbol_set_names): Remove casts. Handle field const-ness.
10509
10510 2013-01-21 Tom Tromey <tromey@redhat.com>
10511
10512 * dwarf2read.c (new_symbol_full): Remove cast.
10513 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10514 * symtab.h (symbol_set_demangled_name): Update.
10515
10516 2013-01-21 Tom Tromey <tromey@redhat.com>
10517
10518 * main.c (captured_main): Call bfd_init.
10519
10520 2013-01-21 Tom Tromey <tromey@redhat.com>
10521
10522 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10523 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10524 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10525 * NEWS: Update.
10526
10527 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10528
10529 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10530
10531 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10532
10533 Fix gdb.fortran/common-block.exp crash in PIE mode.
10534 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10535 LOC_COMMON_BLOCK.
10536 * f-valprint.c (info_common_command_for_block): Expect
10537 LOC_COMMON_BLOCK in gdb_assert.
10538 * symtab.h (struct general_symbol_info): Update comment for the
10539 common_block member.
10540 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10541 (enum address_class): New member LOC_COMMON_BLOCK.
10542
10543 2013-01-18 David Blaikie <dblaikie@gmail.com>
10544
10545 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10546
10547 2013-01-18 Tom Tromey <tromey@redhat.com>
10548
10549 PR c++/14999:
10550 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10551 Call require_rvalue.
10552
10553 2013-01-18 Yao Qi <yao@codesourcery.com>
10554
10555 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10556 (dbx_read_symtab): New declaration.
10557 (dbx_psymtab_to_symtab): Delete.
10558 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10559 Rename parameter PST to SELF. Exchanged two parameters.
10560 (start_psymtab): Caller update.
10561 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10562 (dwarf2_read_symtab): New declaration.
10563 (dwarf2_psymtab_to_symtab): Delete.
10564 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10565 Rename parameter PST to SELF. Exchanged two parameters.
10566 (create_partial_symtab): Caller update.
10567 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10568 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10569 Rename parameter PST to SELF. Exchanged two parameters.
10570 (parse_partial_symbols, new_psymtab): Caller update.
10571 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10572 two parameters.
10573 * psymtab.c (psymtab_to_symtab): Caller update.
10574 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10575 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10576 Rename parameter PST to SELF. Exchanged two parameters.
10577 (xcoff_start_psymtab): Caller update.
10578
10579 2013-01-18 Yao Qi <yao@codesourcery.com>
10580
10581 * infrun.c (proceed): Rename local variable 'oneproc' to
10582 'force_step'.
10583
10584 2013-01-17 Doug Evans <dje@google.com>
10585
10586 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10587 (dw2_build_type_unit_groups): Delete. All uses updated.
10588
10589 * symtab.h (struct symbol_search): Add comment.
10590
10591 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10592
10593 * symtab.c (compare_filenames_for_search): New comment for
10594 HAS_DRIVE_SPEC.
10595
10596 2013-01-17 Tom Tromey <tromey@redhat.com>
10597
10598 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10599
10600 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10601
10602 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10603 initialize it by existing make_cleanup. Call new do_cleanups.
10604
10605 2013-01-17 Tom Tromey <tromey@redhat.com>
10606
10607 * cp-abi.c (cp_abi_completer): New function.
10608 (_initialize_cp_abi): Set completer for "set cp-abi".
10609
10610 2013-01-17 Tom Tromey <tromey@redhat.com>
10611
10612 * mem-break.c: Remove obsolete comment.
10613 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10614
10615 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10616
10617 * jit.c (jit_reader_load_command): Interpret the jit reader name
10618 as an absolute path if it begins with a forward slash.
10619
10620 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10621
10622 PR gdb/14550
10623
10624 * jit.c (finalize_symtab): Ensure that only the global block has a
10625 NULL superblock.
10626
10627 2013-01-17 Pedro Alves <palves@redhat.com>
10628
10629 * acinclude.m4: Include ../config/plugins.m4,
10630 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10631 * Makefile.in (aclocal_m4_deps): Update.
10632 * aclocal.m4: Renegerate.
10633
10634 2013-01-16 Doug Evans <dje@google.com>
10635
10636 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10637
10638 2013-01-16 Pedro Alves <palves@redhat.com>
10639 Tom Tromey <tromey@redhat.com>
10640
10641 PR cli/7221:
10642 * NEWS: Add "catch signal".
10643 * breakpoint.c (base_breakpoint_ops): No longer static.
10644 (bpstat_explains_signal): New function.
10645 (init_catchpoint): No longer static.
10646 (base_breakpoint_explains_signal): New function.
10647 (base_breakpoint_ops): Initialize new field.
10648 * breakpoint.h (enum bpstat_signal_value): New.
10649 (struct breakpoint_ops) <explains_signal>: New field.
10650 (bpstat_explains_signal): Remove macro, declare as function.
10651 (base_breakpoint_ops, init_catchpoint): Declare.
10652 * break-catch-sig.c: New file.
10653 * inferior.h (signal_catch_update): Declare.
10654 * infrun.c (signal_catch): New global.
10655 (handle_syscall_event): Update for change to
10656 bpstat_explains_signal.
10657 (handle_inferior_event): Likewise. Always handle random signals
10658 via bpstats.
10659 (signal_cache_update): Check signal_catch.
10660 (signal_catch_update): New function.
10661 (_initialize_infrun): Initialize signal_catch.
10662 * Makefile.in (SFILES): Add break-catch-sig.c.
10663 (COMMON_OBS): Add break-catch-sig.o.
10664
10665 2013-01-16 Tom Tromey <tromey@redhat.com>
10666
10667 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10668 (print_one_catch_solib, print_one_catch_syscall)
10669 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10670 "catch-type".
10671
10672 2013-01-16 Yao Qi <yao@codesourcery.com>
10673
10674 * printcmd.c (current_display_number): Make it static.
10675
10676 2013-01-16 Yao Qi <yao@codesourcery.com>
10677
10678 * infcmd.c (step_once): Don't check '!single_inst' as it was
10679 checked before.
10680
10681 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10682
10683 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10684
10685 2013-01-14 Tom Tromey <tromey@redhat.com>
10686
10687 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10688 set command.
10689 * command.h (add_setshow_string_noescape_cmd): Update.
10690 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10691 (complete_set_gnutarget): New function.
10692 (_initialize_core): Set the "set gnutarget" completer.
10693
10694 2013-01-14 Tom Tromey <tromey@redhat.com>
10695
10696 PR symtab/14442:
10697 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10698 (c_type_print_modifier): Likewise.
10699 * dwarf2read.c (read_tag_restrict_type): New function.
10700 (read_type_die_1): Handle DW_TAG_restrict_type.
10701 * gdbtypes.c (make_restrict_type): New function.
10702 (recursive_dump_type): Handle TYPE_RESTRICT.
10703 * gdbtypes.h (enum type_flag_values): Renumber.
10704 (enum type_instance_flag_value): Add
10705 TYPE_INSTANCE_FLAG_RESTRICT.
10706 (TYPE_RESTRICT): New macro.
10707 (make_restrict_type): Declare.
10708
10709 2013-01-14 Tom Tromey <tromey@redhat.com>
10710
10711 PR symtab/14931:
10712 * psymtab.c (struct psymtab_state): New.
10713 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10714 functions.
10715 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10716 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10717
10718 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
10719 Pedro Alves <palves@redhat.com>
10720
10721 PR remote/14786
10722
10723 * remote.c (remote_threads_info): Make a copy of the reply from
10724 qfThreadInfo and use that instead of rs->buf.
10725
10726 2013-01-14 Yao Qi <yao@codesourcery.com>
10727
10728 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10729 (dbx_psymtab_to_symtab): Likewise.
10730 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10731 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10732 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10733
10734 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10735
10736 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10737 make_cleanup_restore_current_language. Call set_language. Move
10738 OLD_CHAIN and INNER_CHAIN cleanups.
10739 * utils.c (do_restore_current_language)
10740 (make_cleanup_restore_current_language): New functions.
10741 * utils.h (make_cleanup_restore_current_language): New declaration.
10742
10743 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10744
10745 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10746 non-existing files.
10747
10748 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10749 non-existing files if FILENAME is already absolute.
10750
10751 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10752
10753 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10754 fputs_filtered. Append trailing newline.
10755
10756 2013-01-11 Yao Qi <yao@codesourcery.com>
10757 Stan Shebs <stan@codesourcery.com>
10758
10759 * psymtab.c (init_psymbol_list): Clarify the comment.
10760
10761 2013-01-11 Yao Qi <yao@codesourcery.com>
10762
10763 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10764 (update_dprintf_command_list): Assert that 'printf_line' is
10765 non-null. Remove condition check.
10766
10767 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10768
10769 Code cleanup.
10770 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10771 type const char *.
10772 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10773 const char *.
10774 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10775
10776 2013-01-09 Anthony Green <green@moxielogic.com>
10777
10778 * cp-abi.c (cplus_print_vtable): Don't return value from void
10779 function.
10780 * ada-lang.c (re_set_catch_assert): Ditto.
10781
10782 2013-01-09 Doug Evans <dje@google.com>
10783
10784 * symfile.h (quick_symbol_functions): Delete member
10785 pre_expand_symtabs_matching. All uses removed.
10786 * dwarf2read.c (dw2_lookup_symbol): Implement.
10787 (dw2_do_expand_symtabs_matching): Delete.
10788 (dw2_pre_expand_symtabs_matching): Delete.
10789 (struct dw2_symtab_iterator): New type.
10790 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10791 (dw2_expand_symtabs_for_function): Rewrite.
10792 (dwarf2_gdb_index_functions): Update.
10793 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10794 (psym_functions): Update.
10795
10796 2013-01-09 Tom Tromey <tromey@redhat.com>
10797
10798 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10799 * configure: Rebuild.
10800 * configure.ac: Add somread.o to the build if BFD has SOM
10801 support.
10802 * somread.c: Include som/aout.h, not syms.h.
10803 (som_symtab_read): Use som_external_symbol_dictionary_record.
10804 Unpack records manually.
10805 (_initialize_somread): Declare.
10806
10807 2012-01-08 Mike Frysinger <vapier@gentoo.org>
10808
10809 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10810 Cast return_address to 64bits.
10811
10812 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
10813
10814 * printcmd.c: Remove define of function output_command.
10815 * tracepoint.c: Remove extern of function output_command.
10816 * valprint.h: (output_command): New extern.
10817
10818 2013-01-07 Tom Tromey <tromey@redhat.com>
10819
10820 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10821 Remove.
10822 (objc_language_defn): Use c_printchar, c_printstr,
10823 c_emit_char.
10824
10825 2013-01-07 Tom Tromey <tromey@redhat.com>
10826
10827 PR cli/7719:
10828 * NEWS: Update.
10829 * ada-valprint.c (printstr, print_field_values): Remove
10830 "inspect_it" code.
10831 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10832 code.
10833 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10834 code.
10835 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10836 * main.c (captured_main): Remove "epoch" argument.
10837 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10838 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10839 * p-valprint.c (pascal_object_print_value_fields): Remove
10840 "inspect_it" code.
10841 * printcmd.c (print_command_1): Remove 'inspect' argument.
10842 (print_command, call_command): Update.
10843 (inspect_command): Remove.
10844 (_initialize_printcmd): Make "inspect" an alias for "print".
10845 * top.c (epoch_interface): Remove.
10846 * top.h (epoch_interface): Remove.
10847 * valprint.c (user_print_options): Update.
10848 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10849 * valprint.h (struct value_print_options) <inspect_it>: Remove
10850 field.
10851
10852 2013-01-04 Tom Tromey <tromey@redhat.com>
10853
10854 * valprint.h (read_string): Add 'extern'.
10855
10856 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10857
10858 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10859 used to decide whether to define darwin_read_dyld_info or not.
10860
10861 2013-01-03 Pierre Muller <muller@sourceware.org>
10862
10863 * main.c (relocate_gdb_directory): Avoid calling stat function
10864 if DIR is empty.
10865
10866 2013-01-03 Yao Qi <yao@codesourcery.com>
10867
10868 * psymtab.c (fixup_psymbol_section): Update declaration.
10869 (fixup_psymbol_section): Remove code returning value.
10870
10871 2013-01-03 Yao Qi <yao@codesourcery.com>
10872
10873 * symtab.h: Remove some out of date comments.
10874 (enum exception_event_kind): Move it ...
10875 * breakpoint.c: ... here.
10876
10877 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10878
10879 PR gdb/14405
10880 * darwin-nat.c (darwin_read_dyld_info): Only build if
10881 TASK_DYLD_INFO_COUNT is defined.
10882 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10883 TASK_DYLD_INFO_COUNT is defined.
10884
10885 2013-01-02 Tom Tromey <tromey@redhat.com>
10886
10887 * symfile.h (struct ecoff_debug_hack): Remove.
10888 * objfiles.c: Don't include mdebugread.h.
10889
10890 2013-01-02 Tom Tromey <tromey@redhat.com>
10891
10892 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10893 * configure.ac: Check for Mach-O support in BFD. Update
10894 CONFIG_OBS.
10895 * configure: Rebuild.
10896
10897 2013-01-02 Tom Tromey <tromey@redhat.com>
10898
10899 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10900 * configure.ac: Use GDB_AC_CHECK_BFD.
10901 * configure: Rebuild.
10902
10903 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10904
10905 * MAINTAINERS: Update my email.
10906
10907 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10908
10909 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10910
10911 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10912
10913 * rs6000-nat.c (bss_data_overlap): New function.
10914 (vmap_symtab): Use it to adjust the .bss section's offset.
10915
10916 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10917
10918 Update year range in copyright notice of all files.
10919
10920 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
10921
10922 * top.c (print_gdb_version): Update copyright year.
10923
10924 For older changes see ChangeLog-2012.
10925 \f
10926 Local Variables:
10927 mode: change-log
10928 left-margin: 8
10929 fill-column: 74
10930 version-control: never
10931 coding: utf-8
10932 End:
This page took 0.330688 seconds and 4 git commands to generate.