gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bb5ce47a
YQ
12013-10-14 Yao Qi <yao@codesourcery.com>
2
3 * varobj.c (struct varobj): Move most of the fields to
4 varobj.h.
5 (struct varobj_dynamic): New struct.
6 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
7 (varobj_has_more): Likewise.
8 (dynamic_varobj_has_child_method): Likewise.
9 (update_dynamic_varobj_children): Likewise.
10 (varobj_get_num_children): Likewise.
11 (varobj_list_children, varobj_pretty_printed_p): Likewise.
12 (install_new_value_visualizer): Likewise.
13 (install_new_value_visualizer, install_new_value): Likewise.
14 (varobj_update, new_variable, free_variable): Likewise.
15 (my_value_of_variable, value_get_print_value): Likewise.
16 (install_visualizer): Change the type of parameter 'var' to
17 'struct varobjd_dynamic *'. Callers update.
18 * varobj.h (struct varobj): Moved from varobj.c.
19 (struct varobj) <dynamic>: New field.
20
0b76b0ce
SL
212013-10-13 Sandra Loosemore <sandra@codesourcery.com>
22
23 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
24 as the preferred name of r30.
25 * nios2-linux-tdep.c (reg_offsets): Likewise.
26 * features/nios2-cpu.xml: Likewise.
27 * features/nios2-linux.c: Regenerated.
28 * features/nios2.c: Regenerated.
29 * regformats/nios2-linux.dat: Regenerated.
30
4856b6bc
JK
312013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
32
33 Canonicalize directories for EXEC_FILENAME.
34 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
35 exec_filename.
36 * utils.c (gdb_realpath_keepfile): New function.
37 * utils.h (gdb_realpath_keepfile): New declaration.
38
9b557b58
DE
392013-10-11 Doug Evans <dje@google.com>
40
41 * Makefile.in (GDBFLAGS): New variable.
42 (run): New rule.
43
ce13fade
JB
442013-10-11 Joel Brobecker <brobecker@adacore.com>
45
46 * NEWS: Add entry documenting the new "-catch-assert" and
47 "-catch-exception" GDB/MI commands.
48
349774ef
JB
492013-10-11 Joel Brobecker <brobecker@adacore.com>
50
51 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
52 "enabled".
53 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
54 "enabled". Set B->ENABLE_STATE accordingly.
55 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
56 ada-lang.c.
57 (create_ada_exception_catchpoint): Add declaration.
58 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
59 (create_ada_exception_catchpoint): Make non-static. Add new
60 parameter "disabled". Use it in call to
61 init_ada_exception_breakpoint.
62 (catch_ada_exception_command): Add parameter "enabled" in call
63 to create_ada_exception_catchpoint.
64 (catch_assert_command): Likewise.
65
66 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
67 Add declarations.
68 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
69 "catch-exception" commands.
70 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
71 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
72
761269c8
JB
732013-10-11 Joel Brobecker <brobecker@adacore.com>
74
75 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
76 "enum exception_catchpoint_kind". Replace the "ex_" prefix
77 of all its enumerates with "ada_". Update the rest of this
78 file throughout.
79
b4a5b78b
JB
802013-10-11 Joel Brobecker <brobecker@adacore.com>
81
82 * ada-lang.c (ada_decode_exception_location): Delete.
83 (create_ada_exception_catchpoint): Remove arguments "sal",
84 "addr_string" and "ops". Add argument "ex_kind" instead.
85 Adjust implementation accordingly, calling ada_exception_sal
86 to get the entities it no longer gets passed as arguments.
87 Document the function's arguments.
88 (catch_ada_exception_command): Use catch_ada_exception_command_split
89 instead of ada_decode_exception_location, and update call to
90 create_ada_exception_catchpoint.
91 (catch_ada_assert_command_split): Renames
92 ada_decode_assert_location. Remove parameters "addr_string" and
93 "ops", and now returns void. Adjust implementation accordingly.
94 Update the function documentation.
95 (catch_assert_command): Use catch_ada_assert_command_split
96 instead of ada_decode_assert_location. Update call to
97 create_ada_exception_catchpoint.
98
7ad1d32c 992013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
100
101 * utils.h (perror_warning_with_name): Add declaration.
102 * utils.c (perror_warning_with_name): New function.
103 * cli/cli-cmds.c (source_script_with_search): Add call to
104 perror_warning_with_name if from_tty is nul.
105
7ad1d32c 1062013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
107
108 * utils.c (perror_string): New function, extracted out of
109 throw_perror_with_name.
110 (throw_perror_with_name): Rework to use perror_string.
111
bcc75809
YQ
1122013-10-11 Yao Qi <yao@codesourcery.com>
113
114 * remote.c (discard_pending_stop_replies_in_queue): Update
115 declaration.
116 (struct stop_reply) <rs>: New field.
117 (remove_stop_reply_of_remote_state): New function.
118 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
119 Callers update. Pass remove_stop_reply_of_remote_state to
120 QUEUE_iterate.
121 (remote_parse_stop_reply): Initialize field 'rs'.
122
05feb193
WN
1232013-10-10 Will Newton <will.newton@linaro.org>
124
125 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
126 linux_init_abi.
127
0d12017b
JB
1282013-10-10 Joel Brobecker <brobecker@adacore.com>
129
130 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
131 serial_baud_show_cmd.
132 (_initialize_cli_cmds): Delete the code creating the
133 "set/show remotebaud" commands.
134 * serial.c (baud_rate): Move here from top.c.
135 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
136 (_initialize_serial): Create "set/show serial baud" commands.
137 Add "set/show remotebaud" command aliases.
138 * top.c (baud_rate): Moved to serial.c.
139 * NEWS: Document the new "set/show serial baud" commands,
140 replacing "set/show remotebaud".
141
578d3588
PA
1422013-10-09 Pedro Alves <palves@redhat.com>
143
144 * breakpoint.c (insert_bp_location): Use memory_error_message to
145 build the memory error string.
146 * c-lang.c: Include "gdbcore.h".
147 (c_get_string): Use memory_error to throw error.
148 (target_xfer_memory_error): Delete.
149 (memory_error_message): New, factored out from
150 target_xfer_memory_error.
151 (memory_error): Change parameter type to target_xfer_error.
152 Rewrite.
153 (read_memory): Use memory_error instead of
154 target_xfer_memory_error.
155 * gdbcore.h: Include "target.h".
156 (memory_error): Change parameter type to target_xfer_error.
157 (memory_error_message): Declare function.
158 * target.c (target_read_memory, target_read_stack)
159 (target_write_memory, target_write_raw_memory): Return
160 TARGET_XFER_E_IO on error. Adjust comments.
161 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
162 instead of EIO.
163 * target.h (target_read, target_insert_breakpoint)
164 (target_remove_breakpoint): Adjust comments.
165 * valprint.c (partial_memory_read): Rename parameter, and adjust
166 comment.
167 (val_print_string): Use memory_error_message to build the memory
168 error string.
169
c74e1ccf
JK
1702013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
171
172 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
173 result variable. Rename variable fopen_e_ever_failed to
174 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
175
915215be
PA
1762013-10-09 Pedro Alves <palves@redhat.com>
177
178 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
179 (monitor_write_memory_longlongs, monitor_write_memory_block):
180 Constify 'myaddr' parameter.
181 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
182 helper.
183 (monitor_xfer_partial): New function.
184 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
185 hook. Install a to_xfer_partial hook.
186
acd13123
TT
1872013-10-09 Tom Tromey <tromey@redhat.com>
188
189 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
190 bfd_get_alt_debug_link_info.
191
40135bb1
JK
1922013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
193
194 New flag OBJF_NOT_FILENAME.
195 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
196 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
197 allocate_objfile.
198 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
199 symbol_file_add_from_bfd.
200 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
201 allocate_objfile.
202 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
203 NULL.
204 * objfiles.h (OBJF_NOT_FILENAME): New.
205
dc294be5
TT
2062013-10-08 Tom Tromey <tromey@redhat.com>
207
208 * Makefile.in (SFILES): Add build-id.c.
209 (HFILES_NO_SRCDIR): Add build-id.h.
210 * build-id.c: New file, largely from elfread.c. Modified
211 most functions.
212 * build-id.h: New file.
213 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
214 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
215 Search for dwz file using build-id.
216 * elfread.c (build_id_bfd_get, build_id_verify)
217 (build_id_to_debug_filename, find_separate_debug_file): Remove.
218
db230ce3
JB
2192013-10-08 Joel Brobecker <brobecker@adacore.com>
220
221 * ada-lang.c (compare_names_with_case): Renamed from
222 compare_names, adding a new parameter "casing" and its handling.
223 New function documentation.
224 (compare_names): New function, implemented using
225 compare_names_with_case.
226
6501c98a
JB
2272013-10-08 Joel Brobecker <brobecker@adacore.com>
228
229 * ada-lang.c (ada_exception_sal): Remove advance declaration.
230
84a1243b
TT
2312013-10-07 Tom Tromey <tromey@redhat.com>
232
233 * objfiles.c (free_objfile_per_bfd_storage): Delete the
234 demangled_names_hash.
235 (free_objfile): Don't delete the demangled_names_hash.
236 * objfiles.h (struct objfile_per_bfd_storage)
237 <demangled_names_hash>: New field.
238 (struct objfile) <demangled_names_hash>: Move to
239 objfile_per_bfd_storage.
240 * symfile.c (reread_symbols): Don't delete the
241 demangled_names_hash.
242 * symtab.c (create_demangled_names_hash): Update.
243 (symbol_set_names): Update.
244
1da77581
TT
2452013-10-07 Tom Tromey <tromey@redhat.com>
246
247 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
248 needs_relocations>: New fields.
249 (gdb_bfd_requires_relocations): New function.
250 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
251 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
252 the BFD needs relocations applied.
253
46ecd527
PA
2542013-10-07 Pedro Alves <palves@redhat.com>
255
256 PR breakpoints/11568
257 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
258 the thread list" instead of "gone".
259
0c557179
SDJ
2602013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
261
262 * NEWS: Mention new convenience variable $_exitsignal.
263 * corelow.c (core_open): Reset exit convenience variables. Set
264 $_exitsignal to the uncaught signal which generated the corefile.
265 * infrun.c (handle_inferior_event): Reset exit convenience
266 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
267 (clear_exit_convenience_vars): New function.
268 * inferior.h (clear_exit_convenience_vars): New prototype.
269
1cc47d81
YQ
2702013-10-06 Yao Qi <yao@codesourcery.com>
271
272 * varobj.h: Add comments to enum varobj_languages.
273
73869dc2
DE
2742013-10-04 Doug Evans <dje@google.com>
275
276 Add support for DWP file format version 2.
277 * NEWS: Mention support for DWP file format version 2.
278 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
279 union of asection, containing_section. New fields virtual_offset
280 and is_virtual. Change type of readin filed from int to char.
281 (dwo_sections, dwo_file): Tweak comments.
282 (dwp_v2_section_ids): New enum.
283 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
284 str_offsets, types.
285 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
286 All uses updated.
287 (virtual_v2_dwo_sections): New struct.
288 (dwp_hash_table): New fields version, nr_columns. Change type of
289 section_pool field to a union.
290 (dwp_file): New field version.
291 (dwarf2_has_info): Check for virtual sections.
292 (get_containing_section): New function.
293 (get_section_bfd_owner, get_section_bfd_section): Call it.
294 (dwarf2_locate_sections): Update.
295 (dwarf2_section_empty_p): Update.
296 (dwarf2_read_section): Handle virtual sections.
297 (locate_dwz_sections): Update.
298 (create_dwp_hash_table): Document and handle V2 format.
299 (locate_v1_virtual_dwo_sections): Renamed from
300 locate_virtual_dwo_sections and update. All callers updated.
301 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
302 Delete arg htab. Rename arg section_index to unit_index.
303 All callers updated.
304 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
305 All uses updated.
306 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
307 (lookup_dwo_unit_in_dwp): Add V2 support.
308 (dwarf2_locate_dwo_sections): Update.
309 (dwarf2_locate_common_dwp_sections): Renamed from
310 dwarf2_locate_dwp_sections and update. All callers updated.
311 (dwarf2_locate_v2_dwp_sections): New function.
312 (open_and_init_dwp_file): Add V2 support.
313 (read_str_index): New locals str_section, str_offsets_section.
314
9a2c3737
PA
3152013-10-04 Pedro Alves <palves@redhat.com>
316
317 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
318 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
319 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
320 describing comments with references to ptid.h.
321 * common/ptid.h: Remove intro description of constructors,
322 accessors and predicates.
323 (struct ptid): Reformat.
324 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
325 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
326 describing comments.
327
f5371440
JB
3282013-10-04 Joel Brobecker <brobecker@adacore.com>
329
330 * aix-thread.c (sync_threadlists): Add missing ')' in call
331 to ptid_build.
332
793e1c06
JB
3332013-10-04 Joel Brobecker <brobecker@adacore.com>
334
335 * procfs.c (procfs_init_inferior): Fix typo causing the build
336 to fail.
337
26f0edc1
JB
3382013-10-04 Joel Brobecker <brobecker@adacore.com>
339
340 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
341
5713b9b5
JB
3422013-10-04 Joel Brobecker <brobecker@adacore.com>
343
344 * mi/mi-main.c (run_one_inferior): Add function description.
345 Make ARG a pointer to an integer whose value determines whether
346 we should "run" or "start" the program.
347 (mi_cmd_exec_run): Add handling of the "--start" option.
348 Reject all other command-line options.
349 * NEWS: Add entry for "-exec-run"'s new "--start" option.
350
f48ff2a7
YQ
3512013-10-04 Yao Qi <yao@codesourcery.com>
352
353 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
354 (struct notif_client) <pending_event>: Moved
355 to struct remote_notif_state.
356 <id>: New field.
357 (struct remote_notif_state) <pending_event>: New field.
358 (notif_event_xfree): Declare.
359 * remote-notif.c (handle_notification): Adjust.
360 (notif_event_xfree): New function.
361 (do_notif_event_xfree): Call notif_event_xfree.
362 (remote_notif_state_xfree): Call notif_event_xfree to free
363 each element in field pending_event.
364 * remote.c (discard_pending_stop_replies): Remove declaration.
365 (discard_pending_stop_replies_in_queue): Declare.
366 (remote_close): Call discard_pending_stop_replies_in_queue
367 instead of discard_pending_stop_replies.
368 (remote_start_remote): Adjust.
369 (stop_reply_xfree): Call notif_event_xfree.
370 (notif_client_stop): Adjust initialization.
371 (remote_notif_remove_all): Rename it to ...
372 (remove_stop_reply_for_inferior): ... this. Update comments.
373 Don't check INF is NULL.
374 (discard_pending_stop_replies): Return early if notif_state is
375 NULL. Adjust. Don't check INF is NULL.
376 (remote_notif_get_pending_events): Adjust.
377 (discard_pending_stop_replies_in_queue): New function.
378 (remote_wait_ns): Likewise.
379
5965e028
YQ
3802013-10-04 Yao Qi <yao@codesourcery.com>
381
382 * remote-notif.c (DECLARE_QUEUE_P): Remove.
383 (notif_queue): Remove.
384 (remote_notif_process): Add one parameter 'notif_queue'.
385 Update comments. Callers update.
386 (remote_async_get_pending_events_token): Remove.
387 (remote_notif_register_async_event_handler): Remove.
388 (remote_notif_unregister_async_event_handler): Remove.
389 (handle_notification): Add parameter 'notif_queue'. Update
390 comments. Callers update.
391 (notif_xfree): Remove.
392 (remote_notif_state_allocate): New function.
393 (remote_notif_state_xfree): New function.
394 (_initialize_notif): Remove code to allocate queue.
395 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
396 (struct remote_notif_state): New.
397 (handle_notification): Update declaration.
398 (remote_notif_process): Likewise.
399 (remote_notif_register_async_event_handler): Remove.
400 (remote_notif_unregister_async_event_handler): Remove.
401 (remote_notif_state_allocate): Declare.
402 (remote_notif_state_xfree): Declare.
403 * remote.c (struct remote_state) <notif_state>: New field.
404 (remote_close): Don't call
405 remote_notif_unregister_async_event_handler. Call
406 remote_notif_state_xfree.
407 (remote_open_1): Don't call
408 remote_notif_register_async_event_handler. Call
409 remote_notif_state_allocate.
410
5e5ac9a5
YQ
4112013-10-04 Yao Qi <yao@codesourcery.com>
412
413 * varobj.c (create_child_with_value): Remove 'const' from the
414 type of parameter 'name'.
415 (varobj_add_child): Likewise.
416 (install_dynamic_child): Remove 'const' from the type of
417 parameter 'name'.
418 (varobj_add_child): Likewise.
419 (create_child_with_value): Likewise. Update comments. Don't
420 duplicate 'name'.
421 (update_dynamic_varobj_children): Duplicate 'name'
422 and pass it to install_dynamic_child.
423
06ab7b19
PM
4242013-10-03 Phil Muldoon <pmuldoon@redhat.com>
425
426 * python/py-value.c (convert_value_from_python): Move PyInt_Check
427 conversion logic to occur after PyLong_Check. Comment on order
428 change significance.
429 * python/py-arch.c (archpy_disassemble): Comment on order of
430 conversion for integers and longs.
431
8ae377e8
PA
4322013-10-03 Pedro Alves <palves@redhat.com>
433
434 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
435 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
436 functions. Always test for PTRACE_O_TRACESYSGOOD even if
437 PTRACE_O_TRACEFORK is not supported.
438 (linux_test_for_tracesysgood): New function.
439 (linux_test_for_tracefork): New function, factored out from
440 linux_check_ptrace_features, and also don't kill child_pid here.
441
b1328b1b
TG
4422013-10-03 Tristan Gingold <gingold@adacore.com>
443
444 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
445 Remove verbose error reporting. Use detected state to
446 thread_set_state call.
447 (i386_darwin_dr_get): Fix return type. Remove verbose error
448 report.
449 Remove trailing spaces.
450
901461f8
PA
4512013-10-02 Pedro Alves <palves@redhat.com>
452
453 * cp-valprint.c (cp_print_value_fields): Adjust calls to
454 val_print_optimized_out.
455 * jv-valprint.c (java_print_value_fields): Likewise.
456 * p-valprint.c (pascal_object_print_value_fields): Likewise.
457 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
458 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
459 new optimized out value.
460 * findvar.c (address_from_register): Likewise.
461 * frame.c (put_frame_register): Tweak error string to say the
462 register was not saved, rather than optimized out.
463 * infcmd.c (default_print_one_register_info): Adjust call to
464 val_print_optimized_out. Use value_of_register instead of
465 get_frame_register_value.
466 * mi/mi-main.c (output_register): Use value_of_register instead of
467 get_frame_register_value.
468 * valprint.c (valprint_check_validity): Likewise.
469 (val_print_optimized_out): New value parameter. If the value is
470 lval_register, print <not saved> instead.
471 (value_check_printable, val_print_scalar_formatted): Adjust calls
472 to val_print_optimized_out.
473 * valprint.h (val_print_optimized_out): New value parameter.
474 * value.c (struct value) <optimized_out>: Extend comment.
475 (error_value_optimized_out): New function.
476 (require_not_optimized_out): Use it. Use a different string for
477 lval_register values.
478 * value.h (error_value_optimized_out): New declaration.
479 * NEWS: Mention <not saved>.
480
042a84d9
JB
4812013-10-02 Joel Brobecker <brobecker@adacore.com>
482
483 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
484 strcmp to compare two symtab filenames.
485
6b9780fb
JB
4862013-10-02 Joel Brobecker <brobecker@adacore.com>
487
488 * symtab.c (search_symbols_equal): Delete.
489 (sort_search_symbols_remove_dups): Replace call to
490 search_symbols_equal by call to compare_search_syms,
491 adjusting as necessary.
492
751e7549
PM
4932013-10-02 Phil Muldoon <pmuldoon@redhat.com>
494
495 PR python/15579
496
497 * python/python.c: Document gdb.execute command in Python help.
498
1efd7661
PM
4992013-10-02 Phil Muldoon <pmuldoon@redhat.com>
500
501 * python/py-frame.c (frame_info_to_frame_object): Use
502 gdbpy_convert_exception. Clean up Python object on failure.
503
562fc849
PM
5042013-10-02 Phil Muldoon <pmuldoon@redhat.com>
505
506 * python/lib/gdb/command/frame_filters.py
507 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
508 (ShowFrameFilterPriority.invoke): Ditto.
509
d7561cbb
KS
5102013-10-01 Keith Seitz <keiths@redhat.com>
511
512 * linespec.c (struct ls_parser): Make 'saved_arg' const.
513 (parse_linespec): Make 'argptr' const.
514 Remove temporary cast of 'argptr' to const char **.
515 (decode_line_full): Pass const pointer to parse_linespec.
516 (decode_line_1): Likewise.
517 (decode_objc): Make local variable 'new_argptr' const.
518 (find_function_symbols): Remove temporary cast to char *
519 to find_imps.
520 * objc-lang.c (find_imps): Make argument 'method' const.
521 Return const.
522 * objc-lang.h (find_imps): Likewise.
523
5242013-10-01 Keith Seitz <keiths@redhat.com>
525
526 * completer.c (skip_quoted_chars): Make all arguments const.
527 Return const.
528 (skip_quoted): Likewise.
529 * completer.h (skip_quoted_chars): Likewise.
530 (skip_quoted): Likewise.
531 * defs.h (skip_quoted): Remove duplicate declaration.
532 * jv-exp.y: Include completer.h.
533 (yylex): Remove unneccessary cast to char * fro skip_quoted.
534 * p-exp.y: Include completer.h.
535
5362013-10-01 Keith Seitz <keiths@redhat.com>
537
538 * c-exp.y (parse_number): Make first argument const.
539 Make a copy of the input to manipulate.
540 (c_parse_escape): Make first argument const.
541 Make local variable 'tokptr' const.
542 (parse_string_or_char): Make first two arguments const.
543 (macro_original_text): Make const.
544 (lex_one_token): Make local variable 'tokstart' const.
545 Likewise for local variables named 'p'.
546 Cast away const for struct stoken (temporary).
547 * c-lang.h (c_parse_escpae): Make first argument const.
548 * cli/cli-cmds.c (echo_command): Make local variable 'p'
549 const.
550 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
551 var_string case.
552 * f-exp.y (parse_number): Make first argument const.
553 (match_string_literal): Make local variable 'tokstart'
554 const.
555 (yylex): Make local variable 'p' const.
556 Cast away const for struct stoken (temporary).
557 * go-exp.y (parse_number): Make first argument const.
558 (parse_string_or_char): Likewise.
559 Make local variable 'tokstart' const.
560 (lex_one_token): Likewise for numerous locals called 'p'.
561 Cast away const for struct stoken (temporary).
562 * jv-exp.y (parse_number): Make first argument const.
563 Make local variables 'tokstart' and 'tokptr' const.
564 Cast away const for call to skip_quoted (temporary).
565 (yylex): Make local variable 'p' const.
566 Cast away const for struct stoken (temporary).
567 * m2-exp.y (parse_number): Make local variable 'p' const.
568 (yylex): Likewise for 'tokstart'.
569 Cast away const for struct stoken (temporary).
570 Make local variable 'p' const.
571 * macroexp.c (get_character_constant): Pass a const string
572 to c_parse_escape.
573 (get_string_literal): Likewise.
574 (macro_expand_next): Make first argument const.
575 Cast away const for init_shared_buffer.
576 * macroexp.h (macro_expand_next): Make first argument const.
577 * p-exp.y (yylex): Make a local copy of 'lexptr'.
578 Pass a const string to c_parse_escape.
579 Make local variables 'p' and 'namestart' const.
580 * parse.c (lexptr): Make const.
581 (prev_lexptr): Likewise.
582 (find_template_name_end): Return const.
583 Make argument const, too.
584 (parse_exp_in_context): Make first argument const.
585 Remove the entire const_hack.
586 (parse_exp_in_context_1): Make first argument const.
587 * parser-defs.h (find_template_name_end): Return const.
588 Make argument const, too.
589 (lexptr): Make const.
590 (prev_lexptr): Likewise.
591 * utils.c (parse_escape): Make second argument const.
592 * utils.h (parse_escape): Likewise.
593
5942013-10-01 Keith Seitz <keiths@redhat.com>
595
596 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
597 is now const.
598 (block_lookup): Make 'raw_name' and 'name' const.
599 * ada-lex.l (processString): Update for struct stoken.ptr.
600 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
601 (operator_stoken): Likewise.
602 (lex_one_token): Remove temporary cast to char * for
603 'yylval.sval.ptr'.
604 * f-exp.y (yylex): Likewise.
605 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
606 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
607 * go-exp.y (lex_one_token): Remove temporary cast to char * for
608 'yylval.sval.ptr'.
609 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
610 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
611 * linespec.c (struct ls_parser): Make 'stream' const.
612 (find_parameter_list_end): Make argument 'input' and local
613 variable 'p' const.
614 (linespec_lexer_lex_string): Make local variables 'start' and
615 'p' const.
616 Use skip_spaces_const instead of skip_spaces.
617 (linespec_lexer_peek_token): Make local variable 'saved_stream'
618 const.
619 (parse_linespec): Temporarily cast 'argptr' to const for
620 'parser->lexer.stream'.
621 * m2-exp.y (yylex): Remove temporary cast to char * for
622 'yylval.sval.ptr'.
623 * objc-lang.c (add_msglist): Make local variable 'p' const.
624 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
625 (exp : STRING): Make 'sp' const.
626 (parse_number): Make argument 'p' const.
627 * parser-defs.h (struct stoken): Make 'ptr' const.
628
193a8eac
DE
6292013-10-01 Doug Evans <dje@google.com>
630
631 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
632
2213e2be
YQ
6332013-10-01 Yao Qi <yao@codesourcery.com>
634
635 * varobj.c (c_value_of_root): Remove declaration.
636 (cplus_value_of_root, java_value_of_root): Likewise.
637 (ada_value_of_root): Likewise.
638 (struct language_specific) <value_of_root>: Remove.
639 (languages): Update initialization.
640 (check_scope): Move earlier.
641 (c_value_of_root): Move earlier and rename to ...
642 (value_of_root_1): ... this.
643 (value_of_root): Caller update.
644 (cplus_value_of_root, java_value_of_root): Remove.
645 (ada_value_of_root): Remove.
646
c573f273
YQ
6472013-10-01 Yao Qi <yao@codesourcery.com>
648
649 * varobj.c (varobj_format_string): Remove "unknown".
650 (languages): Remove the first element.
651 * varobj.h (enum varobj_languages): Remove vlang_c.
652
56250258
YQ
6532013-10-01 Yao Qi <yao@codesourcery.com>
654
655 * varobj.c (struct language_specific) <language>: Remove.
656 (languages): Update the initialization.
657
29f9ebfa
YQ
6582013-10-01 Yao Qi <yao@codesourcery.com>
659
660 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
661 "solib-target.h". Include "windows-tdep.h".
662 (arm_wince_init_abi): Call windows_init_abi. Remove call to
663 set_solib_ops and set_gdbarch_has_dos_based_file_system.
664 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
665 windows-tdep.o to gdb_target_obs.
666
64870a42
YQ
6672013-10-01 Yao Qi <yao@codesourcery.com>
668
669 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
670 "solib-target.h".
671 (amd64_windows_init_abi): Don't call set_solib_ops and
672 set_gdbarch_iterate_over_objfiles_in_search_order. Call
673 windows_init_abi instead.
674 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
675 "solib-target.h".
676 (i386_cygwin_init_abi): Don't call set_solib_ops,
677 set_gdbarch_has_dos_based_file_system and
678 set_gdbarch_iterate_over_objfiles_in_search_order. Call
679 windows_init_abi instead.
680 * windows-tdep.c: Include "solib.h" and "solib-target.h".
681 (windows_init_abi): New function.
682 (windows_iterate_over_objfiles_in_search_order): Make it
683 static.
684 * windows-tdep.h (windows_init_abi): Declare.
685 (windows_iterate_over_objfiles_in_search_order): Remove
686 declaration.
687
0aebdefa
JB
6882013-10-01 Jerome Guitton <guitton@adacore.com>
689
690 Checked in by Joel Brobecker <brobecker@adacore.com>
691 * system-gdbinit/elinos.py (get_elinos_environment): Return an
692 incomplete dictionnary instead of None in case of missing
693 environment variables.
694 (elinos_init): in case of an incomplete environment, best
695 effort to load system libraries instead of abort.
696
1c8e84b0
JB
6972013-10-01 Joel Brobecker <brobecker@adacore.com>
698
699 * ada-lang.c (ada_has_this_exception_support): Ignore
700 mst_solib_trampoline minimal symbols.
701
61d82a0d
TG
7022013-09-30 Tristan Gingold <gingold@adacore.com>
703
704 * i386-darwin-nat.c (darwin_complete_target): Install methods for
705 hardware watchpoint.
706 (i386_darwin_dr_set): Support 32 and 64 bit states.
707 (i386_darwin_dr_get): Likewise.
708 (i386_darwin_dr_set_control): Make static.
709 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
710 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
711
dfd4cc63
LM
7122013-09-30 Luis Machado <lgustavo@codesourcery.com>
713
714 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
715 Replace TIDGET with ptid_get_lwp.
716 Replace GET_LWP with ptid_get_lwp.
717 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
718 Replace BUILD_THREAD with ptid_build.
719 Replace BUILD_LWP with ptid_build.
720 Replace PIDGET with ptid_get_pid.
721 Replace TIDGET with ptid_get_lwp.
722 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
723 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
724 Replace TIDGET with ptid_get_lwp.
725 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
726 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
727 Replace TIDGET with ptid_get_lwp.
728 Replace GET_LWP with ptid_get_lwp.
729 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
730 * auxv.c: Likewise.
731 * breakpoint.c: Likewise.
732 * common/ptid.c (ptid_is_pid): Condense check for
733 null_ptid and minus_one_ptid.
734 (ptid_lwp_p): New function.
735 (ptid_tid_p): New function.
736 * common/ptid.h: Update comments for accessors.
737 (ptid_lwp_p): New prototype.
738 (ptid_tid_p): New prototype.
739 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
740 * gcore.c: Replace PIDGET with ptid_get_pid.
741 * gdbthread.h: Likewise.
742 * gnu-nat.c: Likewise.
743 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
744 Replace TIDGET with ptid_get_lwp.
745 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
746 * hppanbsd-nat.c: Likewise.
747 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
748 Replace TIDGET with ptid_get_lwp.
749 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
750 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
751 * infcmd.c: Likewise.
752 * inferior.h: Likewise.
753 * inflow.c: Likewise.
754 * infrun.c: Likewise.
755 * linux-fork.c: Likewise.
756 * linux-nat.c: Replace PIDGET with ptid_get_pid.
757 Replace GET_PID with ptid_get_pid.
758 Replace is_lwp with ptid_lwp_p.
759 Replace GET_LWP with ptid_get_lwp.
760 Replace BUILD_LWP with ptid_build.
761
5b4e221c
MF
7622013-09-28 Mike Frysinger <vapier@gentoo.org>
763
764 * common/linux-btrace.c: Move sys/syscall.h out of the
765 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
766 Also check for SYS_perf_event_open before attempting to buid.
767
57d63ce2
DE
7682013-09-27 Doug Evans <dje@google.com>
769
19ac8c2e
DE
770 * dwarf2read.c (dwarf2_section_info): Add comment.
771 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
772 All uses updated.
773 (dwarf2_section_empty_p): Rename arg from "info" to "section".
774 (dwarf2_read_section): Delete unused local "header". Add section
775 name to error message.
776 (create_dwo_in_dwp): Tweak comment.
777 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
778
a32a8923
DE
779 * dwarf2read.c (die_reader_specs): Tweak comment.
780 (get_section_bfd_owner, get_section_bfd_section): New functions.
781 (get_section_name, get_section_file_name): New functions.
782 (get_section_id, get_section_flags): New functions.
783 (*): Use new functions to access section fields.
784
57d63ce2
DE
785 * dwarf2read.c (struct dwo_file): Add/tweak comments.
786 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
787 arg "htab". All callers updated.
788 (create_debug_types_hash_table): Remove redundant copy of
789 abbrev_section.
790 (create_dwo_in_dwp): Tweak comments.
791 (read_str_index): Tweak comment. Record dwarf form name in static
792 local.
793
3736004f
PA
7942013-09-27 Pedro Alves <palves@redhat.com>
795
796 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
797 (remote_filename_p): Add comment.
798 * remote.c (remote_filename_p): Adjust to use
799 REMOTE_SYSROOT_PREFIX.
800 * solib.c (solib_find): When deciding whether we need to add a
801 directory separator, check whether the sysroot is "remote:"
802 instead of checking whether the patch has a drive spec. Add
803 comments.
804
5b5596ff
PA
8052013-09-27 Pedro Alves <palves@redhat.com>
806
807 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
808 Delete fields.
809 (remote_parse_stop_reply): Adjust, setting event->ws.kind
810 directly.
811
b5eef7aa
JK
8122013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
813
814 Fix set debug frame output.
815 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
816 SENTINEL_FRAME entry lower to match enum frame_type order.
817
5b856f36
PM
8182013-09-26 Pierre Muller <muller@sourceware.org>
819
820 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
821 AMD64_R15_REGNUM when a register index is expected.
822 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
823 Substitute in array.
824 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
825 (amd64_push_arguments): Substitute in integer_regnum array.
826
ade7ed9e
DE
8272013-09-25 Doug Evans <dje@google.com>
828
d3e81981
DE
829 * objfiles.c (allocate_objfile): Move comment to better place.
830
8fb8eb5c
DE
831 New option "set debug symfile on".
832 * NEWS: Mention "set debug symfile".
833 * Makefile.in (SFILES): Add symfile-debug.c.
834 (COMMON_OBS): Add symfile-debug.o.
835 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
836 objfile's symbol functions.
837 * objfiles.h (objfile_set_sym_fns): Declare.
838 * symfile-debug.c: New file.
839 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
840 objfile's symbol functions.
841 (reread_symbols): Ditto.
842
c256e171
DE
843 * symfile.h (struct sym_fns): Delete member "sym_flavour".
844 All uses updated.
845 (add_symtab_fns): Update prototype.
846 * symfile.c (sym_fns_ptr): Delete. Replace with ...
847 (registered_sym_fns): ... this.
848 (symtab_fns): Update.
849 (add_symtab_fns): New arg "flavour". All callers updated.
850 (find_sym_fns): Rewrite to use new sym_fns registry.
851
f56ce883
DE
852 * symfile.h (struct sym_fns): Add "objfile" argument to
853 sym_read_linetable. All uses updated.
854
20c681d1
DE
855 * symtab.c (domain_name, search_domain_name): New functions.
856 * symtab.h (domain_name, search_domain_name): Declare.
857
ade7ed9e
DE
858 * symfile.h (struct quick_symbol_functions): Reorg arg list of
859 map_matching_symbols so objfile is first. All uses updated.
860 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
861 * psymtab.c (map_matching_symbols_psymtab): Update signature.
862
7d760051
UW
8632013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
864
865 PR shlibs/8882
866 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
867 link map entries.
868
020f7036
DE
8692013-09-24 Doug Evans <dje@google.com>
870
871 * objfiles.c (free_objfile): Move comment.
872
598402f0
JB
8732013-09-24 Joel Brobecker <brobecker@adacore.com>
874
875 * ada-exp.y (string_to_operator): Delete.
876 (dummy_string_to_ada_operator): Delete.
877
bf4d6c1c
JB
8782013-09-24 Joel Brobecker <brobecker@adacore.com>
879
880 Revert:
881 * i386-tdep.h (enum amd64_reg_class): New, moved here from
882 amd64-tdep.c.
883 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
884 call_dummy_integer_regs, and classify.
885 * amd64-tdep.h (amd64_classify): Add declaration.
886 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
887 (amd64_reg_class): Delete, moved to i386-tdep.h.
888 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
889 Replace call to amd64_classify by call to tdep->classify.
890 (amd64_push_arguments): Get the list of registers to use for
891 passing integer parameters from the gdbarch tdep structure,
892 rather than using a hardcoded one. Replace calls to amd64_classify
893 by calls to tdep->classify.
894 (amd64_push_dummy_call): Get the register number used for
895 the "hidden" argument from tdep->call_dummy_integer_regs.
896 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
897 and tdep->call_dummy_integer_regs. Set tdep->classify.
898
849e9755
JB
8992013-09-24 Joel Brobecker <brobecker@adacore.com>
900
901 Revert:
902 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
903 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
904 where tdep->memory_args_by_pointer is non-zero.
905
c1459fd6
JB
9062013-09-24 Joel Brobecker <brobecker@adacore.com>
907
908 Revert:
909 * i386-tdep.h (struct gdbarch_tdep): Add new field
910 integer_param_regs_saved_in_caller_frame.
911 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
912 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
913
20c2e3e0
JB
9142013-09-24 Joel Brobecker <brobecker@adacore.com>
915
874440b8 916 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
917 (amd64_windows_classify): Delete.
918 (amd64_windows_passed_by_integer_register)
919 (amd64_windows_passed_by_xmm_register)
920 (amd64_windows_passed_by_pointer)
921 (amd64_windows_adjust_args_passed_by_pointer)
922 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
923 (amd64_windows_push_dummy_call): New functions.
924 (amd64_windows_init_abi): Remove setting of
925 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
926 tdep->classify, tdep->memory_args_by_pointer and
927 tdep->integer_param_regs_saved_in_caller_frame.
928 Add call to set_gdbarch_push_dummy_call.
929
82bf32bc
JK
9302013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
931
932 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
933 objfile->original_name.
934
24ba069a
JK
9352013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
936
937 Pass down original filename for objfile.
938 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
939 * elfread.c (elf_symfile_read): Likewise.
940 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
941 longer set ORIGINAL_NAME.
942 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
943 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
944 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
945 symbol_file_add_from_bfd call.
946 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
947 (macho_check_dsym): Add parameter filenamep. Change function comment.
948 Set *filenamep.
949 (macho_symfile_read): New variable dsym_filename. Update
950 macho_check_dsym call. Use it for symbol_file_add_separate.
951 * objfiles.c (allocate_objfile): Add parameter name. New comment for
952 it. Use it for objfile->original_name.
953 (objfile_name): Return OBFD's filename, if available.
954 * objfiles.h (allocate_objfile): Add new parameter name.
955 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
956 * symfile-mem.c (symbol_file_add_from_memory): Update
957 symbol_file_add_from_bfd call.
958 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
959 comment for it.
960 (symbol_file_add_with_addrs): New parameter name, add function comment
961 for it. Remove variable name. Update allocate_objfile call.
962 (symbol_file_add_separate): New parameter name, add function comment
963 for it. Update symbol_file_add_with_addrs call.
964 (symbol_file_add_from_bfd): New parameter name. Update
965 symbol_file_add_with_addrs call.
966 (symbol_file_add): Update symbol_file_add_from_bfd call.
967 (reread_symbols): New variable original_name. Save
968 objfile->original_name by it.
969 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
970 second parameter.
971
4262abfb
JK
9722013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
973
974 Code cleanup: Add objfile_name accessor function.
975 * ada-lang.c (is_known_support_routine): Use objfile_name.
976 * auto-load.c (source_gdb_script_for_objfile)
977 (auto_load_objfile_script): Likewise.
978 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
979 * dbxread.c (dbx_symfile_read): Likewise.
980 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
981 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
982 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
983 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
984 (lookup_dwp_signatured_type, lookup_dwo_unit)
985 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
986 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
987 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
988 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
989 (dwarf2_record_block_ranges, read_common_block, read_typedef)
990 (read_subrange_type, load_partial_dies, read_partial_die)
991 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
992 (die_containing_type, build_error_marker_type, lookup_die_type)
993 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
994 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
995 (get_DW_AT_signature_type, write_psymtabs_to_index)
996 (save_gdb_index_command): Likewise.
997 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
998 Likewise.
999 * expprint.c (dump_subexp_body_standard): Likewise.
1000 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1001 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1002 original_name.
1003 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1004 obj_name, use objfile_name for it, use the variable.
1005 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1006 Use objfile_name.
1007 * machoread.c (macho_symtab_read, macho_check_dsym)
1008 (macho_symfile_relocate): Likewise.
1009 * maint.c (maintenance_translate_address): Likewise.
1010 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1011 * minsyms.c (install_minimal_symbols): Likewise.
1012 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1013 original_name.
1014 (filter_overlapping_sections): Use objfile_name.
1015 (objfile_name): New function.
1016 * objfiles.h (struct objfile): Rename field name to original_name.
1017 (objfile_name): New prototype.
1018 * printcmd.c (sym_info, address_info): Use objfile_name.
1019 * probe.c (parse_probes, collect_probes, compare_probes)
1020 (info_probes_for_ops): Likewise.
1021 * progspace.c (clone_program_space): Likewise.
1022 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1023 (maintenance_info_psymtabs): Likewise.
1024 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1025 (source_section_scripts): Likewise.
1026 * python/py-objfile.c (objfpy_get_filename): Likewise.
1027 * python/py-progspace.c (pspy_get_filename): Likewise.
1028 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1029 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1030 * solib.c (solib_read_symbols): Likewise.
1031 * stabsread.c (scan_file_globals): Likewise.
1032 * stap-probe.c (handle_stap_probe): Likewise.
1033 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1034 (find_separate_debug_file_by_debuglink): Likewise.
1035 (reread_symbols): Likewise. Use the objfile field name renamed to
1036 original_name.
1037 (allocate_symtab): Use objfile_name.
1038 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1039 (dump_objfile, dump_msymbols, dump_symtab_1)
1040 (maintenance_print_msymbols, maintenance_print_objfiles)
1041 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1042 * target.c (target_translate_tls_address, target_info): Likewise.
1043 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1044 objfile_name.
1045
4721dc18
JK
10462013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1047
1048 Code cleanup.
1049 * probe.c (parse_probes): Rename variable objfile_name to
1050 objfile_namestr.
1051
a61d6db8
JK
10522013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1053
1054 Remove solib-sunos.c.
1055 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1056 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1057 * objfiles.c (rt_common_objfile): Remove.
1058 (free_objfile): Remove rt_common_objfile comparison.
1059 * objfiles.h (rt_common_objfile): Remove.
1060 * solib-sunos.c: Remove.
1061 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1062
2659903b
JK
10632013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1064
1065 Remove a.out NetBSD and OpenBSD hosts.
1066 * NEWS (Removed native configurations): New.
1067 * config/arm/nbsdaout.mh: Remove.
1068 * config/i386/nbsdaout.mh: Remove.
1069 * config/i386/obsdaout.mh: Remove.
1070 * config/m68k/nbsdaout.mh: Remove.
1071 * config/sparc/nbsdaout.mh: Remove.
1072 * config/vax/nbsdaout.mh: Remove.
1073 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1074 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1075 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1076 error.
1077 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1078 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1079 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1080
f60e2d5c
TT
10812013-09-23 Tom Tromey <tromey@redhat.com>
1082
1083 * linespec.c (struct minsym_and_objfile): Remove.
1084 (minsym_and_objfile_d): Remove.
1085 (struct linespec, struct collect_info, linespec_parse_basic)
1086 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1087 (compare_msymbols, find_method, find_function_symbols)
1088 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1089 (add_minsym, search_minsyms_for_name): Update.
1090
d3eaaf66
AB
10912013-09-23 Andrew Burgess <aburgess@broadcom.com>
1092
1093 * regcache.c: Add include of valprint.h.
1094 (dump_endian_bytes): Delete.
1095 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1096
2cc762b5
AB
10972013-09-23 Andrew Burgess <aburgess@broadcom.com>
1098
1099 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1100
96181529
PA
11012013-09-19 Pedro Alves <palves@redhat.com>
1102
1103 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1104 breakpoints.
1105
9b3f3ee6
TS
11062013-09-19 Pedro Alves <palves@redhat.com>
1107 Thomas Schwinge <thomas@codesourcery.com>
1108 Yue Lu <hacklu.newborn@gmail.com>
1109
1110 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1111 Take a gdb_byte pointer instead of a char pointer.
1112
1113 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1114 gnu_xfer_partial helper.
1115 (gnu_xfer_partial): New function.
1116 (gnu_target): Don't install a deprecated_xfer_memory hook.
1117 Install a to_xfer_partial hook.
1118
69150c3d
JK
11192013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1120
1121 Constification.
1122 * main.c (captured_main): Replace catch_command_errors by
1123 catch_command_errors_const. Twice.
1124 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1125 (symbol_file_add): Make name parameter const.
1126 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1127 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1128 variable name. Change their usage accordingly.
1129 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1130 const.
1131 (symbol_file_add_main): Make args parameter const.
1132
086850b2
UW
11332013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1134 Ulrich Weigand <uweigand@de.ibm.com>
1135
1136 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1137 of c_value member.
1138 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1139
ca08a94c 11402013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1141 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1142
1143 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1144 (gnu_create_inferior)
1145 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1146 (set_sig_thread_cmd): Use the lwpid field of ptids to
1147 store/extract thread ids instead of the tid field.
1148 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1149
e4c6a2c4
AB
11502013-09-18 Andrew Burgess <aburgess@broadcom.com>
1151
1152 * infcmd.c (default_print_one_register_info): Add detection of
1153 optimized out values.
1154 (default_print_registers_info): Switch to using
1155 get_frame_register_value.
1156
58c48e72
MM
11572013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1158
1159 * infrun.c (handle_inferior_event): Check if we know the
1160 function start address before setting a resume breakpoint.
1161
c8d37639
PA
11622013-09-18 Pedro Alves <palves@redhat.com>
1163
1164 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1165 minus_one_ptid instead of looking at the ptid's tid field and
1166 comparing that to -1.
1167
71926e28
AB
11682013-09-18 Andrew Burgess <aburgess@broadcom.com>
1169
1170 * main.h (get_gdb_program_name): Remove extra whitespace.
1171
c88a1531
AB
11722013-09-18 Andrew Burgess <aburgess@broadcom.com>
1173
1174 * main.h (get_gdb_program_name): Add declaration.
1175 * main.c (get_gdb_program_name): Add definition.
1176
4390d890
DE
11772013-09-17 Doug Evans <dje@google.com>
1178
1179 * dwarf2read.c: Move definitions of complaint functions to after
1180 forward declarations of local functions.
1181
49fa26b0
PA
11822013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1183 Pedro Alves <palves@redhat.com>
1184
1185 PR gdb/11568
1186 * breakpoint.c (remove_threaded_breakpoints): New function.
1187 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1188 as thread_exit observer.
1189
08d72866
PA
11902013-09-17 Pedro Alves <palves@redhat.com>
1191
1192 PR gdb/15911
1193 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1194 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1195 * corelow.c (core_open):
1196 * frame.h (print_stack_frame, print_frame_info): New
1197 'set_current_sal' parameter.
1198 * infcmd.c (finish_command, kill_command): Adjust call to
1199 print_stack_frame.
1200 * inferior.c (inferior_command): Likewise.
1201 * infrun.c (normal_stop): Likewise.
1202 * linux-fork.c (linux_fork_context): Likewise.
1203 * record-full.c (record_full_goto_entry, record_full_restore):
1204 Likewise.
1205 * remote-mips.c (common_open): Likewise.
1206 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1207 Use it.
1208 (print_frame_info): New 'set_current_sal' parameter. Set the last
1209 displayed sal depending on the new paremeter instead of looking at
1210 print_what.
1211 (backtrace_command_1, select_and_print_frame, frame_command)
1212 (current_frame_command, up_command, down_command): Adjust call to
1213 print_stack_frame.
1214 * thread.c (print_thread_info, restore_selected_frame)
1215 (do_captured_thread_select): Adjust call to print_stack_frame.
1216 * tracepoint.c (tfind_1): Likewise.
1217 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1218 (mi_cmd_stack_info_frame): Likewise.
1219 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1220 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1221
6bc305f5
SDJ
12222013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1223
1224 * value.c (isvoid_internal_fn): Replace "parameter" with
1225 "argument".
1226
0a7cfe2c
SS
12272013-09-16 Stan Shebs <stan@codesourcery.com>
1228
1229 * README: Update references to writing code for GDB.
1230 * configure.ac (build_warnings): Remove obsolete comment.
1231 * configure: Regenerate.
1232 * gdbarch.sh: Remove references to gdbint.texinfo.
1233 * gdbarch.h: Regenerate.
1234 * gdbtypes.c (objfile_type): Remove comments referencing internals
1235 manual and D10V.
1236
a280dbd1
SDJ
12372013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1238
1239 * NEWS: Mention new convenience function $_isvoid.
1240 * value.c (isvoid_internal_fn): New function.
1241 (_initialize_values): Add new convenience function $_isvoid.
1242
04a83fee
PM
12432013-09-16 Pierre Muller <muller@sourceware.org>
1244
1245 * arm-linux-tdep.c: Add "elf/common.h" header.
1246 Remove AT_HWCAP macro definintion as it is provided in
1247 added include file.
1248 * s390-tdep.c: Remove system header <elf.h>
1249 Add "elf/common.h" header for AT_HWCAP definition.
1250 (s390_core_read_description): Use correct CORE_ADDR
1251 for hwcap local variable used as third parameter
1252 of function target_auxv_search.
1253
88505fac
PM
12542013-09-14 Pierre Muller <muller@sourceware.org>
1255 Tom Tromey <tromey@redhat.com>
1256 Pedro Alves <palves@redhat.com>
1257
1258 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1259 mode if operating system doesn't know O_CLOEXEC.
1260
d3846e71
JK
12612013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1262
1263 Code cleanup.
1264 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1265 inner block.
1266
4ac33720
UW
12672013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1268
1269 * NEWS: Mention TDB support.
1270 * features/s390-tdb.xml: New file.
1271 * features/s390-te-linux64.xml: New file.
1272 * features/s390x-te-linux64.xml: New file.
1273 * features/Makefile (WHICH): Add new tdescs above.
1274 (s390-te-linux64-expedite): Set.
1275 (s390x-te-linux64-expedite): Set.
1276 * features/s390-te-linux64.c: New file (generated).
1277 * features/s390x-te-linux64.c: New file (generated).
1278 * regformats/s390-te-linux64.dat: New file (generated).
1279 * regformats/s390x-te-linux64.dat: New file (generated).
1280 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1281 (HWCAP_S390_TE): Likewise.
1282 (S390_TDB_DWORD0_REGNUM): Likewise.
1283 (S390_TDB_DWORD0_REGNUM): Likewise.
1284 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1285 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1286 (S390_TDB_ATIA_REGNUM): Likewise.
1287 (S390_TDB_R0_REGNUM): Likewise.
1288 (S390_TDB_R1_REGNUM): Likewise.
1289 (S390_TDB_R2_REGNUM): Likewise.
1290 (S390_TDB_R3_REGNUM): Likewise.
1291 (S390_TDB_R4_REGNUM): Likewise.
1292 (S390_TDB_R5_REGNUM): Likewise.
1293 (S390_TDB_R6_REGNUM): Likewise.
1294 (S390_TDB_R7_REGNUM): Likewise.
1295 (S390_TDB_R8_REGNUM): Likewise.
1296 (S390_TDB_R9_REGNUM): Likewise.
1297 (S390_TDB_R10_REGNUM): Likewise.
1298 (S390_TDB_R11_REGNUM): Likewise.
1299 (S390_TDB_R12_REGNUM): Likewise.
1300 (S390_TDB_R13_REGNUM): Likewise.
1301 (S390_TDB_R14_REGNUM): Likewise.
1302 (S390_TDB_R15_REGNUM): Likewise.
1303 (S390_NUM_REGS): Increase.
1304 (S390_IS_TDBREGSET_REGNUM): New macro.
1305 (s390_regmap_tdb): Declare.
1306 (s390_sizeof_tdbregset): Define.
1307 (tdesc_s390_te_linux64): Declare.
1308 (tdesc_s390x_te_linux64): Likewise.
1309 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1310 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1311 (s390_regmap_tdb): New regmap.
1312 (s390_supply_tdb_regset): New function.
1313 (s390_tdb_regset): New regset.
1314 (s390_linux64v2_regset_sections): Add TDB regset to list.
1315 (s390x_linux64v2_regset_sections): Likewise.
1316 (s390_regset_from_core_section): Recognize TDB core note section.
1317 (s390_core_read_description): If HWCAP indicates TE support,
1318 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1319 (s390_gdbarch_init): Handle TDB regset.
1320 (_initialize_s390_tdep): Initialize new tdescs.
1321 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1322 (have_regset_tdb): New variable.
1323 (s390_native_supply): Support register invalidation.
1324 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1325 (check_regset): Treat ENODATA as "regset exists".
1326 (s390_linux_fetch_inferior_registers): Add TDB.
1327 (s390_read_description): Check for TDB existence and select
1328 appropriate tdesc.
1329 * gdbserver/Makefile.in (clean): Add removal of new makefile
1330 targets.
1331 (s390-te-linux64.c): New makefile target.
1332 (s390x-te-linux64.c): Likewise.
1333 * gdbserver/configure.srv (srv_regobj): Append new objects
1334 s390-te-linux64.o and s390x-te-linux64.o.
1335 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1336 s390x-te-linux64.xml, and s390-tdb.xml.
1337 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1338 declaration.
1339 (tdesc_s390_te_linux64): Likewise.
1340 (init_registers_s390x_te_linux64): Likewise.
1341 (tdesc_s390x_te_linux64): Likewise.
1342 (s390_check_regset): Treat ENODATA as "regset exists".
1343 (s390_arch_setup): Add TDB regset support.
1344 (initialize_low_arch): Initialize registers for new tdescs.
1345
2ccd1468
UW
13462013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1347
1348 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1349 (S390_IS_FPREGSET_REGNUM): New macro.
1350 * s390-tdep.c (s390_dwarf_regmap): Make const.
1351 (regnum_is_gpr_full): New function for replacing repeated code.
1352 (s390_pseudo_register_name): Use it.
1353 (s390_pseudo_register_type): Likewise.
1354 (s390_pseudo_register_read): Likewise.
1355 (s390_pseudo_register_write): Likewise.
1356 (s390_unwind_pseudo_register): Likewise.
1357 (s390_regmap_gregset): New format for regmap.
1358 (s390x_regmap_gregset): Likewise.
1359 (s390_regmap_fpregset): Likewise.
1360 (s390_regmap_upper): Likewise.
1361 (s390_regmap_last_break): Likewise.
1362 (s390_regmap_system_call): Likewise.
1363 (s390_supply_regset): Adjust to new regmap format.
1364 (s390_collect_regset): Likewise.
1365 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1366 (s390_native_collect): Likewise.
1367 (supply_gregset): Likewise.
1368 (fill_gregset): Likewise.
1369 (supply_fpregset): Likewise.
1370 (fill_fpregset): Likewise.
1371 (fetch_regset): Likewise.
1372 (store_regset): Likewise.
1373 (s390_linux_fetch_inferior_registers): Likewise.
1374 (s390_linux_fetch_inferior_registers): Likewise.
1375
1aa4cd77
AP
13762013-09-12 Andrew Pinski <apinski@cavium.com>
1377
1378 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1379
d91fab15
UW
13802013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1381
1382 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1383
5a5d8ead
AB
13842013-09-09 Andrew Burgess <aburgess@broadcom.com>
1385
1386 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1387
1385f66c
PA
13882013-09-06 Pedro Alves <palves@redhat.com>
1389
1390 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1391 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1392 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1393 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1394 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1395 gdb_stdlog.
1396
146ec4db
PA
13972013-09-06 Pedro Alves <palves@redhat.com>
1398
1399 * remote-sim.c (dump_mem): Constify buf parameter.
1400 gdbsim_xfer_inferior_memory): Rename to ...
1401 (gdbsim_xfer_memory): ... this. Adjust interface as
1402 target_xfer_partial helper.
1403 (gdbsim_xfer_partial): New function.
1404 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1405 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1406
fcde0081
PA
14072013-09-06 Pedro Alves <palves@redhat.com>
1408
1409 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1410 host_address_to_string, and send debug output to gdb_stdlog.
1411
749c8b38
RW
14122013-09-06 Ricard Wanderlof <ricardw@axis.com>
1413
1414 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1415 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1416 gdb_target_obs for cris target.
1417 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1418 (cris_gdbarch_init): Move calls to
1419 set_gdbarch_fetch_tls_load_module_address and
1420 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1421 Add call to gdbarch_init_osabi.
1422 * cris-linux-tdep.c: New file.
1423 * cris-tdep.h: New file.
1424
43df09d9
AB
14252013-09-06 Andrew Burgess <aburgess@broadcom.com>
1426
1427 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1428 to deprecated_init_ui_hook.
1429
4d09c5b4
AB
14302013-09-06 Andrew Burgess <aburgess@broadcom.com>
1431
1432 * cli/cli-interp.c (_initialize_cli_interp): Add a
1433 command_loop_proc to interp_procs.
1434 * event-top.c (cli_command_loop): Change signature to match
1435 interp_command_loop_ftype.
1436 * event-top.h (cli_command_loop): Same.
1437 * interps.c (interp_new): Require every interpreter to have a
1438 command_loop_proc.
1439 (current_interp_command_loop): Just call the command_loop_proc on
1440 the current interpreter.
1441 * tui/tui-interp.c (_initialize_tui_interp): Add a
1442 command_loop_proc to interp_procs.
1443
8eb3d7b6
RW
14442013-09-06 Ricard Wanderlof <ricardw@axis.com>
1445
1446 * cris-tdep.c (cris_gdbarch_init): Add call to
1447 get_gdbarch_fetch_tls_load_module_address.
1448
18b3c2f5
RW
14492013-09-06 Ricard Wanderlof <ricardw@axis.com>
1450
1451 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1452 (cris_elf_gregset_t): Rename from elf_gregset_t.
1453 (crisv32_elf_gregset_t): Adjust.
1454 (cris_supply_gregset, fetch_core_registers): Adjust.
1455
dc8636ef
RW
14562013-09-06 Ricard Wanderlof <ricardw@axis.com>
1457
1458 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1459
257e6d53
AB
14602013-09-05 Andrew Burgess <aburgess@broadcom.com>
1461
1581d8a7 1462 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1463 references in comments.
1581d8a7 1464 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1465 deprecated_command_loop_hook.
1466 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1467 setup.
1581d8a7 1468 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1469
7c33b57c
PA
14702013-09-05 Pedro Alves <palves@redhat.com>
1471
1472 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1473 local is now int instead of ULONGEST. Print it with %d
1474 instead of paddress.
1475
9f8edbd5
TG
14762013-09-05 Tristan Gingold <gingold@adacore.com>
1477
1478 * MAINTAINERS: Remove avr maintainership.
1479
d5b495b4
PA
14802013-09-05 Pedro Alves <palves@redhat.com>
1481
1482 * findvar.c (value_of_register): Rework in terms of
1483 value_of_register_lazy.
1484
40b91786
MB
14852013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1486
1487 * symfile.c (add_symbol_file_command): Remove trailing
1488 whitespaces and blank line after comment.
1489
6eed1678
PA
14902013-09-05 Pedro Alves <palves@redhat.com>
1491
1492 * tui/tui-regs.c (tui_register_format): Don't look at the
1493 register's name here. Return string representing register
1494 value instead of storing it in the data element.
1495 (tui_get_register): Compare register string representations
1496 instead of register value states and contents.
1497
8eb6bda2
PA
14982013-09-05 Pedro Alves <palves@redhat.com>
1499
1500 PR tui/15933
1501 * tui/tui-regs.c (tui_show_registers): Show registers of the
1502 selected frame, not the current frame.
1503
48b1f08c
RW
15042013-09-05 Ricard Wanderlof <ricardw@axis.com>
1505
1506 * MAINTAINERS (Write After Approval): Add myself to the list.
1507
89e63ee4
DE
15082013-09-04 Doug Evans <dje@google.com>
1509
1510 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1511 (queue_and_load_dwo_tu): New function.
1512 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1513 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1514 Make dependent_cu optional.
1515 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1516 and an older .gdb_index is in use, queue and load all its TUs too.
1517
492c0ab7
JK
15182013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1519
1520 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1521 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1522 variable search_flags.
1523 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1524 (OPF_RETURN_REALPATH): ... here.
1525 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1526 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1527 call. Twice.
1528 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1529 openp call.
1530 * solib.c (solib_find): Likewise. Four times.
1531 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1532 in the function comment and for the realpath_fptr variable.
1533 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1534 (find_and_open_source): Likewise. Twice.
1535 * symfile.c (symfile_bfd_open): Likewise, also twice.
1536
23a44de8
DE
15372013-09-04 Doug Evans <dje@google.com>
1538
1539 * progspace.c (save_current_space_and_thread): Remove unnecessary
1540 call to save_current_inferior.
1541
47061676
AB
15422013-09-04 Andrew Burgess <aburgess@broadcom.com>
1543
1544 * sh64-tdep.c (sh64_do_register): Return after printing message
1545 about unavailable register contents.
1546
41dc8db8
MB
15472013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1548 Pedro Alves <palves@redhat.com>
1549
1550 * symfile.c (add_symbol_file_command): Error out on unknown
1551 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1552 options and collapse into single conditional branch.
1553
07107ca6
LM
15542013-09-03 Luis Machado <lgustavo@codesourcery.com>
1555
a7ea61cf 1556 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1557 detach_fork.
1558 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1559 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1560 * inferior.h (detach_fork): Remove.
1561 * infrun.c (detach_fork): Adjust comment and make it
1562 static.
1563 (follow_fork): Pass detach_fork parameter to
1564 target_follow_fork.
1565 * linux-nat.c (linux_child_follow_fork): New parameter
1566 detach_fork.
1567 * target.c (target_follow_fork): New parameter detach_fork.
1568 Pass detach_fork as parameter and print its value.
1569 * target.h (struct target_ops) <to_follow_fork>: New int
1570 parameter.
1571 (target_follow_fork): New parameter detach_fork.
1572
3bec2768
JB
15732013-09-03 Joel Brobecker <brobecker@adacore.com>
1574
1575 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1576 Replace sec->bfd by sec->the_bfd_section->owner.
1577
c01cbb3d
YQ
15782013-09-03 Yao Qi <yao@codesourcery.com>
1579
1580 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1581 from linux_has_shared_address_space.
1582 (linux_has_shared_address_space): Call linux_is_uclinux.
1583 * linux-tdep.h (linux_is_uclinux): Declare.
1584 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1585 linux_is_uclinux.
1586
7b00db47
YQ
15872013-09-03 Yao Qi <yao@codesourcery.com>
1588
1589 * config/djgpp/fnchange.lst: Remove entry of
1590 i386-interix-nat.c and i386-interix-tdep.c.
1591 * configure.ac: Remove '*-*-interix*'.
1592 * configure: Re-generated.
1593 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1594 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1595 obsolete comments.
1596 * osabi.c (gdb_osabi_names): Remove "Interix".
1597
0f9741f2
YQ
15982013-09-03 Yao Qi <yao@codesourcery.com>
1599
1600 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1601
1e038f67
MM
16022013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1603
1604 * record.h (record_print_flag) <record_print_src_line,
1605 record_print_insn_range>: Rename into ...
1606 (record_print_flag) <record_print_src_line,
1607 record_print_insn_range>: ... this. Update all users.
1608
9e52adf9
PM
16092013-09-02 Pierre Muller <muller@sourceware.org>
1610
1611 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1612 error code.
1613
a2388568
PM
16142013-09-02 Pierre Muller <muller@sourceware.org>
1615
1616 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1617 by use of plongest function.
1618
9058cc3a
TG
16192013-09-02 Tristan Gingold <gingold@adacore.com>
1620
1621 * NEWS: Add entry mentioning support for native Windows x64
1622 SEH data.
1623
1624 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1625 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1626 (struct amd64_windows_frame_cache): New struct.
1627 (amd64_windows_w2gdb_regnum): New global.
1628 (pc_in_range, amd64_windows_frame_decode_epilogue)
1629 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1630 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1631 (amd64_windows_frame_this_id): New functions.
1632 (amd64_windows_frame_unwind): New static global.
1633 (amd64_windows_skip_prologue): New function.
1634 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1635 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1636 with amd64_windows_skip_prologue.
1637
3161820b 16382013-08-30 Joel Brobecker <brobecker@adacore.com>
1639
1640 GDB 7.6.1 released.
1641
02457c76
PA
16422013-08-30 Pedro Alves <palves@redhat.com>
1643
1644 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1645 SRC_AND_LOC.
1646
e0162910
PA
16472013-08-30 Pedro Alves <palves@redhat.com>
1648
1649 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1650 warning text.
1651
6391ce51
PA
16522013-08-30 Pedro Alves <palves@redhat.com>
1653
1654 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1655 Adjust arguments to print_stack_frame.
1656
d1da0587
PA
16572013-08-30 Pedro Alves <palves@redhat.com>
1658
1659 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1660
adfd8245
PA
16612013-08-30 Pedro Alves <palves@redhat.com>
1662
1663 * frame.h (show_and_print_stack_frame): Delete declaration.
1664
96d9056e
PM
16652013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1666
1667 PR python/15461
1668
1669 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1670 (archpy_name): Check for valid architecture.
1671 (archpy_disassemble): Ditto.
1672
11cb8762
JB
16732013-08-29 Joel Brobecker <brobecker@adacore.com>
1674
1675 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1676 instead of "long long" in call to ptrace64.
1677
1af12a7d
AB
16782013-08-29 Andrew Burgess <aburgess@broadcom.com>
1679
1680 * mi/mi-interp.c (mi_command_loop): Change signature to match
1681 interp_command_loop_ftype.
1682 (mi1_command_loop): Remove.
1683 (mi2_command_loop): Remove.
1684 (mi3_command_loop): Remove.
1685 (mi_interpreter_resume): Remove setting of
1686 deprecated_command_loop_hook.
1687 (_initialize_mi_interp): Set mi_command_loop as the command loop
1688 callback.
1689
acc900c2
SA
16902013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1691
1692 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1693 value_type.
1694
548b762d
SA
16952013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1696
1697 * value.c (allocate_value_contents): Make static.
1698 * value.h (allocate_value_contents): Remove prototype.
1699
08039c9e
SA
17002013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1701
1702 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1703 of assembling value via allocate_value_lazy and attribute setter.
1704 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1705 assembling value via allocate_value_lazy and attribute setter.
1706 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1707 assembling value via allocate_value_lazy and attribute setter.
1708
314c7de9
SA
17092013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1710
1711 * value.c (value_from_contents_and_address): Replace allocate_value and
1712 memcpy with value_from_contents.
1713
8f28f522
PM
17142013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1715
1716 * python/py-framefilter.c (py_print_frame): Remove usage of
1717 PyString_AsString. Use python_string_to_host_string instead.
1718 Refactor function to work with a string as a new allocation
1719 instead of a pointer.
1720 (py_print_frame): Ditto.
1721 * python/lib/gdb/frames.py (return_list): Cain iterators together
1722 instead of adding them as a list.
1723 (_sort_list): Call return_list, and remove duplicate code.
1724 (execute_frame_filters): Convert iterator to a list with list().
1725 * python/lib/gdb/command/frame_filters.py
1726 (SetFrameFilterPriority._set_filter_priority): Convert priority
1727 attribute to an integer.
1728 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1729 wrapper function __next__.
1730 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1731 define as "str".
1732
8ee002df
PM
17332013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1734
1735 PR python/15752
8ee002df
PM
1736 * python/py-framefilter.c (apply_frame_filter): Check
1737 gdb_python_initialized. Exit if the Python frame-filter code
1738 cannot be initialized.
1739
af4c453a
PM
17402013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1741
1742 PR cli/15842
af4c453a
PM
1743 * top.c (print_gdb_version): Remove erroneous newline after help
1744 text.
1745
bf8793bb
YQ
17462013-08-29 Yao Qi <yao@codesourcery.com>
1747
1748 * varobj.c (install_dynamic_child): Remove trailing space.
1749 Add one blank line after variable declaration.
1750
1f0c4988
JK
17512013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1752
1753 PR gdb/15415
1754 * corefile.c (get_exec_file): Use exec_filename.
1755 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1756 * exec.c (exec_close): Free EXEC_FILENAME.
1757 (exec_file_attach): New variable canonical_pathname. Use
1758 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1759 EXEC_FILENAME.
1760 * exec.h (exec_filename): New.
1761 * inferior.c (print_inferior, inferior_command): Use
1762 PSPACE_EXEC_FILENAME.
1763 * mi/mi-main.c (print_one_inferior): Likewise.
1764 * progspace.c (clone_program_space, print_program_space): Likewise.
1765 * progspace.h (struct program_space): New field pspace_exec_filename.
1766 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1767 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1768
59ee9f94
WN
17692013-08-28 Will Newton <will.newton@linaro.org>
1770
1771 * common/linux-ptrace.c: Include stdint.h unconditionally.
1772
c8a2a419
JK
17732013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1774
1775 Code cleanup.
1776 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1777
ffa4ac95
YQ
17782013-08-28 Yao Qi <yao@codesourcery.com>
1779 Pedro Alves <palves@redhat.com>
1780
1781 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1782 instead of stdio_fileopen.
1783 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1784 .Call stderr_fileopen instead of stdio_fileopen.
1785 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1786 [__MINGW32__] (stderr_file_fputs): New function.
1787 (stderr_fileopen): New function.
1788 * ui-file.h (stderr_fileopen): Declare.
1789
69d751e3
DE
17902013-08-27 Doug Evans <dje@google.com>
1791
1792 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1793 (struct dwarf2_per_cu_data): Ditto.
1794 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1795 (process_imported_unit_die): Ditto.
1796 (follow_die_sig_1): Simplify assert.
1797
44f38867
PA
17982013-08-27 Pedro Alves <palves@redhat.com>
1799
1800 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1801 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1802 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1803 windows_xfer_memory directly.
1804 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1805
d28d46b5
PA
18062013-08-27 Pedro Alves <palves@redhat.com>
1807
1808 * darwin-nat.c (darwin_xfer_memory): Delete.
1809 (_initialize_darwin_inferior): Don't install a
1810 deprecated_xfer_memory method.
1811
6211c335
YQ
18122013-08-27 Pedro Alves <pedro@codesourcery.com>
1813 Yao Qi <yao@codesourcery.com>
1814
1815 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1816 (parse_no_frames_option): Remove.
1817 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1818 (mi_cmd_stack_list_args): Adjust.
1819 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1820 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1821 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1822 Caller update.
1823 (list_args_or_locals): New parameter 'skip_unavailable'.
1824 Handle it.
1825 * valprint.c (scalar_type_p): Rename to ...
1826 (val_print_scalar_type_p): ... this. Make extern.
1827 (val_print, value_check_printable): Adjust.
1828 * valprint.h (val_print_scalar_type_p): Declare.
1829 * value.c (value_entirely_unavailable): New function.
1830 * value.h (value_entirely_unavailable): Declare.
1831
1832 * NEWS: Mention the new option "--skip-unavailable" to MI
1833 commands '-stack-list-locals', '-stack-list-arguments' and
1834 '-stack-list-variables'.
1835
242f1fd7
YQ
18362013-08-27 Yao Qi <yao@codesourcery.com>
1837
1838 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1839 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1840 options.
1841 * mi/mi-getopt.c (mi_getopt): Remove.
1842 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1843 'error_on_unknown'.
1844 (mi_getopt): Call mi_getopt_1.
1845 (mi_getopt_silent): New.
1846 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1847
260b681b
DE
18482013-08-26 Doug Evans <dje@google.com>
1849
779bd270
DE
1850 PR symtab/15885
1851 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1852 .gdb_index is in use.
1853 * symfile.c (reread_symbols): Reset objfile->sf.
1854
52e260a3
DE
1855 * NEWS: Document "mt print objfiles" now takes optional regexp.
1856 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1857 regexp of objfiles to print.
1858 (_initialize_symmisc): Update doc string for "mt print objfiles".
1859
260b681b
DE
1860 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1861 missing debug info checks.
1862
a85c52f2
UW
18632013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1864 Ulrich Weigand <uweigand@de.ibm.com>
1865
1866 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1867 line tables generated by XLC compiled binaries.
1868
4f00dda3
DE
18692013-08-23 Doug Evans <dje@google.com>
1870
db68bbae
DE
1871 * symmisc.c (dump_symtab): Delete prototype.
1872 (dump_msymbols, dump_objfile): Ditto.
1873 (maintenance_info_symtabs): Mark as dont_repeat.
1874 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1875
4f00dda3
DE
1876 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1877 debugging printf to better location.
1878
23d577b0
PA
18792013-08-23 Pedro Alves <palves@redhat.com>
1880
1881 * target.c (target_read_live_memory): Change type of 'ret' local
1882 to LONGEST.
1883
00d84524
PA
18842013-08-23 Pedro Alves <palves@redhat.com>
1885
1886 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1887 (remote_read_bytes): Change return type to LONGEST, and adjust to
1888 return a target_xfer_error on error.
1889 (remote_xfer_memory): Delete.
1890 (remote_flash_write): Change type of 'ret' local to LONGEST.
1891 (remote_xfer_partial, remote_xfer_partial): Adjust.
1892 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1893
1ed3ee94
PM
18942013-08-23 Pierre Muller <muller@sourceware.org>
1895
1896 ARI fix: Push # directives to start of line.
1897 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1898
9eaabc75
MW
18992013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1900
1901 PR gdb/15501
1902 * breakpoint.c (enable_command, disable_command): Iterate over
1903 all specified breakpoint locations.
1904
101158d9
LM
19052013-08-22 Luis Machado <lgustavo@codesourcery.com>
1906
1907 * common/linux-ptrace.c (linux_fork_to_function): Push #
1908 directives to the start of the line.
1909 (linux_check_ptrace_features): Fix warning message to use
1910 the "_" markup.
1911
96d7229d
LM
19122013-08-22 Luis Machado <lgustavo@codesourcery.com>
1913
1914 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1915 nat/linux-waitpid.h.
1916 (linux-waitpid.o): New object file rule.
1917 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1918 (current_ptrace_options): Moved from linux-nat.c.
1919 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1920 parameters.
1921 (linux_fork_to_function): New function.
1922 (linux_grandchild_function): Likewise.
1923 (linux_child_function): Likewise.
1924 (linux_check_ptrace_features): New function, heavily
1925 based on linux-nat.c:linux_test_for_tracefork.
1926 (linux_enable_event_reporting): New function.
1927 (ptrace_supports_feature): Likewise.
1928 (linux_supports_tracefork): Likewise.
1929 (linux_supports_traceclone): Likewise.
1930 (linux_supports_tracevforkdone): Likewise.
1931 (linux_supports_tracesysgood): Likewise.
1932 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1933 gdbserver/linux-low.c.
1934 (linux_enable_event_reporting): New declaration.
1935 (linux_supports_tracefork): Likewise.
1936 (linux_supports_traceclone): Likewise.
1937 (linux_supports_tracevforkdone): Likewise.
1938 (linux_supports_tracesysgood): Likewise.
1939 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1940 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1941 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1942 * config/arm/linux.mh (NATDEPFILES): Likewise.
1943 * config/i386/linux.mh (NATDEPFILES): Likewise.
1944 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1945 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1946 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1947 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1948 * config/mips/linux.mh (NATDEPFILES): Likewise.
1949 * config/pa/linux.mh (NATDEPFILES): Likewise..
1950 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1951 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1952 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1953 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1954 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1955 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1956 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1957 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1958 ptrace's 4th argument's types.
1959 Check the type of PTRACE_TYPE_ARG4.
1960 * configure: Regenerate.
1961 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1962 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1963 (linux_supports_tracefork_flag): Remove.
1964 (linux_supports_tracesysgood_flag): Likewise.
1965 (linux_supports_tracevforkdone_flag): Likewise.
1966 (current_ptrace_options): Moved to
1967 common/linux-ptrace.c.
1968 (linux_tracefork_child): Remove.
1969 (my_waitpid): Remove.
1970 (linux_test_for_tracefork): Renamed to
1971 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1972 (linux_test_for_tracesysgood): Remove.
1973 (linux_supports_tracesysgood): Remove.
1974 (linux_supports_tracefork): Remove.
1975 (linux_supports_tracevforkdone): Remove.
1976 (linux_enable_tracesysgood): Remove.
1977 (linux_enable_event_reporting): Remove.
1978 (linux_init_ptrace): New function.
1979 (linux_child_post_attach): Call linux_init_ptrace.
1980 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1981 (linux_child_follow_fork): Call linux_supports_tracefork
1982 and linux_supports_tracevforkdone.
1983 (linux_child_insert_fork_catchpoint): Call
1984 linux_supports_tracefork.
1985 (linux_child_insert_vfork_catchpoint): Likewise.
1986 (linux_child_set_syscall_catchpoint): Call
1987 linux_supports_tracesysgood.
1988 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1989 * nat/linux-nat.h: New file.
1990 * nat/linux-waitpid.c: New file.
1991 * nat/linux-waitpid.h: New file.
1992
9f948660
SDJ
19932013-08-22 Samuel Bronson <naesten@gmail.com>
1994
1995 ARM Linux support for `catch syscall'.
1996 * syscalls/arm-linux.py: New file.
1997 * syscalls/arm-linux.xml: Likewise.
1998 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1999 (arm_linux_init_abi): Register the new function and syscall xml file.
2000 * data-directory/Makefile.in: Install the new syscall xml file.
2001 * NEWS: Brag about this.
2002
6be7b56e
PA
20032013-08-22 Pedro Alves <palves@redhat.com>
2004
2005 PR gdb/15871
2006 * corefile.c (target_xfer_memory_error): New function.
2007 (memory_error): Defer EIO to target_memory_error.
2008 (read_memory): Use target_xfer_partial, and handle finer-grained
2009 target xfer errors.
2010 * target.c (target_xfer_error_to_string): New function.
2011 (memory_xfer_partial_1): If memory is known to be
2012 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2013 (target_xfer_partial): Make extern.
2014 * target.h (enum target_xfer_error): New enum.
2015 (target_xfer_error_to_string): Declare function.
2016 (target_xfer_partial): Declare function.
2017 (struct target_ops) <xfer_partial>: Adjust describing comment.
2018
bcbec14e
AM
20192013-08-22 Alan Modra <amodra@gmail.com>
2020
2021 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2022 * configure.tgt: Likewise as targets.
2023
fc474241
DE
20242013-08-20 Doug Evans <dje@google.com>
2025
2026 * buildsym.c (subfile_stack): Move here from buildsym.h.
2027 (pending_macros): Ditto.
2028 (get_macro_table): New function.
2029 (buildsym_init): Initialize subfile_stack.
2030 * coffread.c (type_vector,type_vector_length): Moved here from
2031 buildsym.h.
2032 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2033 (coff_symtab_read): Use it.
2034 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2035 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2036 with call to get_macro_table.
2037 * stabsread.c (type_vector,type_vector_length): Moved here from
2038 buildsym.h.
2039 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2040 * buildsym.h (get_macro_table): Declare.
2041
bec71544
TT
20422013-08-20 Tom Tromey <tromey@redhat.com>
2043
2044 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2045 Update.
2046 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2047
0002ad5f
DE
20482013-08-20 Doug Evans <dje@google.com>
2049
2050 * blockframe.c: Remove #include "psymtab.h".
2051 * cp-support.c: Ditto.
2052 * source.c: Ditto.
2053 * stack.c: Ditto.
2054
df302446
TT
20552013-08-20 Tom Tromey <tromey@redhat.com>
2056
2057 PR python/15816:
2058 * exceptions.h (return_mask): Now an enum.
2059 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2060 enum constants.
2061
df6d5441
TT
20622013-08-20 Tom Tromey <tromey@redhat.com>
2063
2064 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2065 get_objfile_arch.
2066 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2067 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2068 * jit.c (jit_object_close_impl): Update.
2069 * jv-lang.c (get_dynamics_objfile): Update.
2070 * linespec.c (add_minsym): Use get_dynamics_objfile.
2071 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2072 (allocate_objfile): Don't initialize 'gdbarch' field.
2073 (get_objfile_arch): Update.
2074 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2075 moved from...
2076 (struct objfile) <gdbarch>: ... here. Remove.
2077 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2078 get_objfile_arch.
2079 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2080
f5aee5ee
AM
20812013-08-20 Alan Modra <amodra@gmail.com>
2082
2083 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2084 for IBM long double nan and inf.
2085 (floatformat_is_negative, floatformat_classify,
2086 floatformat_mantissa): Similarly.
2087 (floatformat_ieee_single, floatformat_ieee_double,
2088 floatformat_ieee_quad, floatformat_arm_ext,
2089 floatformat_ia64_spill): Delete unused vars.
2090 (_initialize_doublest): Delete unused function.
2091 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2092 little-endian variants of floatformat_ibm_long_double.
2093
33b60d58 20942013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2095
33b60d58
LM
2096 * Makefile.in (SFILES): Remove common/target-common.c and
2097 add target/waitstatus.c.
2098 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2099 target/resume.h, target/wait.h and target/waitstatus.h.
2100 (COMMON_OBS): Remove target-common.o and add
2101 waitstatus.o.
2102 (target-common.o): Remove.
2103 (waitstatus.o): New target object file.
2104 * common/target-common.c: Move contents to
2105 target/waitstatus.c and remove.
2106 * common/target-common.h: Move contents to other files and
2107 remove.
2108 (enum resume_kind: Move to target/resume.h.
2109 (TARGET_WNOHANG): Move to target/wait.h.
2110 (enum target_waitkind): Move to target/waitstatus.h.
2111 (struct target_waitstatus): Likewise.
2112 * target.h: Do not include target-common.h and
2113 include target/resume.h, target/wait.h and
2114 target/waitstatus.h.
2115 * target/resume.h: New file.
2116 * target/wait.h: New file.
2117 * target/waitstatus.h: New file.
2118 * target/waitstatus.c: New file.
2119
12696c10
PA
21202013-08-19 Pedro Alves <palves@redhat.com>
2121
2122 * linux-nat.c (linux_test_for_tracefork)
2123 (linux_test_for_tracesysgood, linux_child_follow_fork)
2124 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2125 (linux_nat_wait_1): Extend comment.
2126 (linux_async_pipe): Add comment.
2127
ba89f962
KB
21282013-08-15 Kevin Buettner <kevinb@redhat.com>
2129
2130 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2131 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2132 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2133 Update to account for fact that PC is now a pseudo-register.
2134 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2135 cases for RL78_PC_REGNUM.
2136
35ab155d
MB
21372013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2138
2139 PR cli/15841
2140 * top.c (quit_force): Skip writing history file
2141 if input is not from terminal.
2142
0d031856
TT
21432013-08-14 Tom Tromey <tromey@redhat.com>
2144
2145 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2146 resultthreadlist>: New fields.
2147 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2148 (remote_get_threadlist, remote_threadlist_iterator): Use
2149 new fields. Remove static variables.
2150
ee154bee
TT
21512013-08-14 Tom Tromey <tromey@redhat.com>
2152
2153 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2154 remote_watch_data_address>: New fields.
2155 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2156 (process_stop_reply, remote_wait_as)
2157 (remote_check_watch_resources, remote_stopped_data_address): Update.
2158
88b496c3
TT
21592013-08-14 Tom Tromey <tromey@redhat.com>
2160
2161 * remote.c (struct remote_state) <async_client_callback,
2162 async_client_context>: New fields.
2163 (async_client_callback, async_client_context): Remove.
2164 (remote_async_serial_handler, remote_async): Update.
2165
2f65bcb7
TT
21662013-08-14 Tom Tromey <tromey@redhat.com>
2167
2168 * remote.c (sizeof_pkt): Remove.
2169 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2170
b80fafe3
TT
21712013-08-14 Tom Tromey <tromey@redhat.com>
2172
2173 * remote.c (struct remote_state) <use_threadinfo_query,
2174 use_threadextra_query>: New fields.
2175 (remote_threads_info, remote_threads_extra_info)
2176 (remote_open_1): Update.
2177
8e88304f
TT
21782013-08-14 Tom Tromey <tromey@redhat.com>
2179
2180 * remote.c (struct remote_state) <finished_object,
2181 finished_annex, finished_offset>: New fields.
2182 (remote_read_qxfer): Use remote_state fields; remove static
2183 variables.
2184
280ceea3
TT
21852013-08-14 Tom Tromey <tromey@redhat.com>
2186
2187 * remote.c (struct remote_state) <last_sent_step>:
2188 New field.
2189 (last_sent_step): Remove.
2190 (remote_resume, remote_wait_as): Update.
2191
b73be471
TT
21922013-08-14 Tom Tromey <tromey@redhat.com>
2193
2194 * remote.c (struct remote_state) <last_sent_signal>:
2195 New field.
2196 (last_sent_signal): Remove.
2197 (new_remote_state, remote_resume, remote_wait_as): Update.
2198
5e4a05c4
TT
21992013-08-14 Tom Tromey <tromey@redhat.com>
2200
2201 * remote.c (struct remote_state) <last_program_signals_packet>:
2202 New field.
2203 (last_program_signals_packet): Remove.
2204 (remote_program_signals, remote_open_1): Update.
2205
747dc59d
TT
22062013-08-14 Tom Tromey <tromey@redhat.com>
2207
2208 * remote.c (struct remote_state) <last_pass_packet>:
2209 New field.
2210 (last_pass_packet): Remove.
2211 (remote_pass_signals, remote_open_1): Update.
2212
262e1174
TT
22132013-08-14 Tom Tromey <tromey@redhat.com>
2214
2215 * remote.c (struct remote_state) <remote_traceframe_number>:
2216 New field.
2217 (remote_traceframe_number): Remove.
2218 (new_remote_state, remote_open_1, set_remote_traceframe)
2219 (remote_trace_find): Update.
2220
47f8a51d
TT
22212013-08-14 Tom Tromey <tromey@redhat.com>
2222
2223 * remote.c (struct remote_state) <general_thread, continue_thread>:
2224 New fields.
2225 (general_thread, continue_thread): Remove.
2226 (record_currthread, set_thread, set_general_process)
2227 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2228 (extended_remote_mourn_1): Update.
2229
5d93a237
TT
22302013-08-14 Tom Tromey <tromey@redhat.com>
2231
2232 * remote.c (struct remote_state) <remote_desc>: New field.
2233 (remote_desc): Remove.
2234 (remote_threads_info, remote_threads_extra_info, remote_close)
2235 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2236 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2237 (remote_hostio_send_command, remote_file_put, remote_file_get)
2238 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2239 (remote_async, remote_new_objfile, set_range_stepping): Update.
2240
cf792862
TT
22412013-08-14 Tom Tromey <tromey@redhat.com>
2242
2243 * remote.c (remote_state): Now a pointer.
2244 (get_remote_state_raw): Update.
2245 (new_remote_state): New function.
2246 (_initialize_remote): Use new_remote_state.
2247
dc473cfb
TT
22482013-08-14 Tom Tromey <tromey@redhat.com>
2249
2250 * remote.c (remote_protocol_features): Now const.
2251
85ec6ce7
TT
22522013-08-14 Tom Tromey <tromey@redhat.com>
2253
2254 * remote.c (crc32_table, crc32): Remove.
2255 (remote_verify_memory): Use xcrc32.
2256
73033f12
SDJ
22572013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2258
2259 * value.h (create_internalvar_type_lazy): Adjust prototype
2260 declaration.
2261
5c30d39a
AB
22622013-08-13 Andrew Burgess <aburgess@broadcom.com>
2263
2264 * common/format.c (parse_format_string): Don't allow '#' flag for
2265 pointer arguments in format string.
2266
1a66331e
PM
22672013-08-13 Pierre Muller <muller@sourceware.org>
2268
fde605f3 2269 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2270 if rl_get_screen_size did not return useful values.
2271
b4013987
AA
22722013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2273
2274 PR breakpoints/15117
2275 * linespec.c (linespec_parse_basic): Check for convenience
2276 variable or history value while parsing.
2277
959b6a66
SDJ
22782013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2279
2280 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2281 AVR.
2282 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2283 different signals between the generic Linux kernel implementation
2284 and AVR's.
2285 (avr_linux_gdb_signal_from_target): Delete.
2286 (avr_linux_gdb_signal_to_target): Delete.
2287 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2288
24a55014
DE
22892013-08-09 Doug Evans <dje@google.com>
2290
2291 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2292 entries.
2293
eb14d406
SDJ
22942013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2295
2296 * linux-tdep.c: Define enum with generic signal numbers.
2297 (linux_gdb_signal_from_target): New function.
2298 (linux_gdb_signal_to_target): Likewise.
2299 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2300 methods to the functions above.
2301 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2302 (linux_gdb_signal_to_target): Likewise.
2303 * alpha-linux-tdep.c: Define new enum with signals different
2304 from generic Linux kernel.
2305 (alpha_linux_gdb_signal_from_target): New function.
2306 (alpha_linux_gdb_signal_to_target): Likewise.
2307 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2308 with the functions mentioned above.
2309 * avr-tdep.c: Define enum with differences between Linux kernel
2310 and AVR signals.
2311 (avr_linux_gdb_signal_from_target): New function.
2312 (avr_linux_gdb_signal_to_target): Likewise.
2313 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2314 the functions mentioned above.
2315 * sparc-linux-tdep.c: Define enum with differences between SPARC
2316 and generic Linux kernel signal numbers.
2317 (sparc32_linux_gdb_signal_from_target): New function.
2318 (sparc32_linux_gdb_signal_to_target): Likewise.
2319 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2320 to the functions defined above.
2321 * xtensa-linux-tdep.c: Define enum with differences between
2322 Xtensa and Linux kernel generic signals.
2323 (xtensa_linux_gdb_signal_from_target): New function.
2324 (xtensa_linux_gdb_signal_to_target): Likewise.
2325 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2326 to the functions defined above.
2327 * mips-linux-tdep.c: Define enum with differences between
2328 signals in MIPS and Linux kernel generic ones.
2329 (mips_gdb_signal_to_target): New function.
2330 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2331 only different signals from the Linux kernel generic.
2332 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2333 the functions defined above.
2334 * mips-linux-tdep.h (enum mips_signals): Remove.
2335
156d08c8
PA
23362013-08-09 Pedro Alves <palves@redhat.com>
2337
2338 * avr-tdep.c (XMALLOC): Delete macro.
2339 * cli/cli-dump.c (XMALLOC): Delete macro.
2340
db229724
PA
23412013-08-09 Pedro Alves <palves@redhat.com>
2342
2343 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2344 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2345 (fopen_with_cleanup, add_dump_command): Make static.
2346 * cli/cli-dump.h: Delete file.
2347 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2348 cli/cli-dump.h.
2349
3f12a589
PA
23502013-08-09 Pedro Alves <palves@redhat.com>
2351
2352 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2353 error message.
2354
c718be47
PA
23552013-08-09 Pedro Alves <palves@redhat.com>
2356
156d08c8 2357 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2358 error message.
2359
1e351ed1
PA
23602013-08-09 Pedro Alves <palves@redhat.com>
2361
2362 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2363 (gcore_command): Use tilde_expand here, and when showing the
2364 filename to the user, show the expanded version.
2365
1ed8d800
YQ
23662013-08-09 Yao Qi <yao@codesourcery.com>
2367
2368 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2369 'entryval' is set.
2370
47ecca85
PA
23712013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2372
2373 * gcore.c (create_gcore_bfd): Use tilde_expand.
2374
82a0a75f
YQ
23752013-08-08 Yao Qi <yao@codesourcery.com>
2376
2377 * frame.h (read_frame_local): Declare.
2378 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2379 read_frame_local.
2380 * stack.c (read_frame_local): New.
2381
5c4aa40b
YQ
23822013-08-08 Yao Qi <yao@codesourcery.com>
2383
2384 * mi/mi-cmd-stack.c: Update comments to function
2385 list_args_or_locals.
2386
b93601f3
TT
23872013-08-07 Tom Tromey <tromey@redhat.com>
2388
2389 PR symtab/15028:
2390 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2391 (process_psymtab_comp_unit_reader): Use it.
2392 (process_psymtab_comp_unit): Update. Add "pretend_language"
2393 argument.
2394 (dwarf2_build_psymtabs_hard): Update.
2395 (scan_partial_symbols): Pass CU's language to
2396 process_psymtab_comp_unit.
2397
fa760f46
TT
23982013-08-07 Tom Tromey <tromey@redhat.com>
2399
2400 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2401 (dwarf2_gdb_index_functions): Update.
2402 * psymtab.c (find_symbol_file_from_partial): Remove.
2403 (psym_functions): Update.
2404 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2405 Remove.
2406
bf6d8a91
TT
24072013-08-07 Tom Tromey <tromey@redhat.com>
2408
2409 * symfile.c (set_initial_language): Look up "main" symbol
2410 and use its language.
2411 * symtab.c (find_main_filename): Remove.
2412 * symtab.h (find_main_filename): Remove.
2413
f9125b6c
TT
24142013-08-07 Tom Tromey <tromey@redhat.com>
2415
2416 * dwarf2read.c (recursively_compute_inclusions): Add
2417 "immediate_parent" argument. Set symtab's "user" field
2418 if not set.
2419 (compute_symtab_includes): Update.
2420
fdbb204b
TT
24212013-08-07 Tom Tromey <tromey@redhat.com>
2422
2423 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2424 when adding label symbols.
2425
49de1690
UW
24262013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2427 Ulrich Weigand <uweigand@de.ibm.com>
2428
2429 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2430 * configure.host (powerpc64-*-aix*): Likewise.
2431
b08ee99f
UW
24322013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2433 Ulrich Weigand <uweigand@de.ibm.com>
2434
2435 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2436 is defined.
2437 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2438 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2439 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2440 * configure.ac: Check for ptrace64.
2441 * configure, config.in: Regenerate.
2442
fecf803e
UW
24432013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2444 Ulrich Weigand <uweigand@de.ibm.com>
2445
2446 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2447 Call ptrace64 instead of ptrace if defined.
2448 Add macro addr_ptr to take care of ptrace address argument.
2449 (pdc_read_regs): Likewise.
2450 (pdc_write_regs): Likewise.
2451 (aix_thread_resume): Likewise.
2452 (fetch_regs_kernel_thread): Likewise.
2453 (store_regs_kernel_thread): Likewise.
2454
3bb5e4a8
AB
24552013-08-07 Anton Blanchard <anton@samba.org>
2456
2457 * MAINTAINERS: Add myself to Write After Approval.
2458
12070676
TT
24592013-08-05 Tom Tromey <tromey@redhat.com>
2460
2461 * aix-thread.c (_initialize_aix_thread): Use
2462 complete_target_initialization.
2463 * bsd-uthread.c (_initialize_bsd_uthread): Use
2464 complete_target_initialization.
2465 * dec-thread.c (_initialize_dec_thread): Use
2466 complete_target_initialization.
2467 * ravenscar-thread.c (_initialize_ravenscar): Use
2468 complete_target_initialization.
2469 * sol-thread.c (_initialize_sol_thread): Use
2470 complete_target_initialization.
2471 * spu-multiarch.c (_initialize_spu_multiarch): Use
2472 complete_target_initialization.
2473
7c7b6655
TT
24742013-08-05 Tom Tromey <tromey@redhat.com>
2475
2476 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2477 * ada-lang.c (ada_lookup_simple_minsym): Return
2478 bound_minimal_symbol.
2479 * ada-lang.h (ada_lookup_simple_minsym): Update.
2480 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2481 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2482 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2483 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2484 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2485 * minsyms.c (msymbol_objfile): Remove.
2486 (lookup_minimal_symbol_internal): New function, from
2487 lookup_minimal_symbol.
2488 (lookup_minimal_symbol): Rewrite using
2489 lookup_minimal_symbol_internal.
2490 (lookup_bound_minimal_symbol): New function.
2491 * minsyms.h (msymbol_objfile): Remove.
2492 (lookup_bound_minimal_symbol): Declare.
2493 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2494 * parse.c (write_exp_msymbol): Change parameter to a
2495 bound_minimal_symbol.
2496 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2497 * parser-defs.h (write_exp_msymbol): Update.
2498 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2499 * symfile.c (simple_read_overlay_table): Use
2500 lookup_bound_minimal_symbol.
2501 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2502 (search_symbols): Likewise.
2503 (print_msymbol_info): Take a bound_minimal_symbol argument.
2504 (symtab_symbol_info, rbreak_command): Update.
2505 * symtab.h (struct symbol_search) <msymbol>: Change type
2506 to bound_minimal_symbol.
2507 * valops.c (find_function_in_inferior): Use
2508 lookup_bound_minimal_symbol.
2509 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2510
934b9bac
JK
25112013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2512
2513 Code cleanup.
2514 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2515 to ...
2516 (async_cleanup_sigint_signal_handler): ... this.
2517 (initialize_sigint_signal_handler): Remove declaration.
2518 (handle_remote_sigint): Rename the declaration to ...
2519 (async_handle_remote_sigint): ... this.
2520 (handle_remote_sigint_twice): Rename the declaration to ...
2521 (async_handle_remote_sigint_twice): ... this.
2522 (async_remote_interrupt, async_remote_interrupt_twice)
2523 (remote_interrupt): Remove the declarations.
2524 (remote_interrupt_twice): Rename the declaration ...
2525 (sync_remote_interrupt_twice): ... this.
2526 (sigint_remote_twice_token): Rename the variable to ...
2527 (async_sigint_remote_twice_token): ... this.
2528 (sigint_remote_token): Rename the variable to ...
2529 (async_sigint_remote_token): ... this.
2530 (initialize_sigint_signal_handler): Rename the function to ...
2531 (async_initialize_sigint_signal_handler): ... this. Update the name
2532 inside.
2533 (handle_remote_sigint): Rename the function to ...
2534 (async_handle_remote_sigint): ... this. Update the names inside.
2535 (handle_remote_sigint_twice): Rename the function to ...
2536 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2537 (cleanup_sigint_signal_handler): Rename the function to ...
2538 (async_cleanup_sigint_signal_handler): ... this.
2539 (remote_interrupt): Rename the function to ...
2540 (sync_remote_interrupt): this. Update the names inside.
2541 (remote_interrupt_twice): Rename the function to ...
2542 (sync_remote_interrupt_twice): this. Update the names inside.
2543 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2544 (_initialize_remote): Update the names inside.
2545
3a1115a0
TT
25462013-08-02 Tom Tromey <tromey@redhat.com>
2547
2548 PR symtab/15719:
2549 * breakpoint.c (update_watchpoint, watchpoint_check)
2550 (watch_command_1): Update.
2551 * eval.c (fetch_subexp_value): Add "preserve_errors"
2552 parameter.
2553 * ppc-linux-nat.c (check_condition): Update.
2554 * value.h (fetch_subexp_value): Update.
2555
58b19776
AB
25562013-08-02 Andrew Burgess <aburgess@broadcom.com>
2557
2558 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2559 add_file_handler.
2560
ec94af83
DE
25612013-08-01 Doug Evans <dje@google.com>
2562
7ee85ab1
DE
2563 PR symtab/15691
2564 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2565 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2566 Add assert of sig_entry->dwo_unit == NULL.
2567 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2568 had already been read.
2569 (read_signatured_type): Set per_cu.tu_read.
2570
b846d303
DE
2571 PR symtab/15695
2572 * valops.c (value_struct_elt): Add missing call to check_typedef.
2573 (value_find_oload_method_list): Ditto.
2574
b52109bc
DE
2575 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2576 effectively, struct symbol_search **.
2577 (make_cleanup_free_search_symbols): Change arg to struct
2578 symbol_search **. All callers updated.
2579 (compare_search_syms): Compare symtab file name and block as well.
2580 (search_symbols_equal): New function.
2581 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2582 New args new_head, new_tail. Result is now void. Remove dups after
2583 sorting the symbols.
2584 (search_symbols): Sort all found symbols once, after all have been
2585 found, and remove duplicates. Simplify cleanup tracking of result.
2586 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2587
ec94af83
DE
2588 Further workarounds for binutils/15021.
2589 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2590 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2591 Watch for duplicate symtabs coming from type units.
2592 (compute_symtab_includes): Update call to
2593 recursively_compute_inclusions. Build vector of included symtabs
2594 instead of per_cus.
2595 * symtab.h (symtab_ptr): New typedef.
2596 (DEF_VEC_P (symtab_ptr)): New VEC type.
2597 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2598 instead.
2599
b2ae85cf
AB
26002013-08-01 Andrew Burgess <aburgess@broadcom.com>
2601
2602 * cli/cli-script.c (script_from_file): Remove use of
2603 error_pre_print.
2604 * main.c (captured_main): Remove use of error_pre_print and
2605 quit_pre_print.
2606 * utils.c (error_pre_print, quit_pre_print): Remove.
2607 * utils.h (error_pre_print, quit_pre_print): Likewise.
2608
645eab03
YQ
26092013-08-01 Yao Qi <yao@codesourcery.com>
2610
2611 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2612 with mi_getopt.
2613 (mi_cmd_stack_list_variables): Likewise.
2614
16f92dd4
AB
26152013-07-31 Andrew Burgess <aburgess@broadcom.com>
2616
2617 * exceptions.c (deprecated_throw_reason): Remove.
2618 * exceptions.h (deprecated_throw_reason): Remove.
2619
13f78033
AB
26202013-07-31 Andrew Burgess <aburgess@broadcom.com>
2621
2622 * remote-mips.c (mips_error): Replace use of
2623 deprecated_throw_reason with throw_verror. Use the error message
2624 passed to mips_error as the error message for throw_verror.
2625
039e3c22
AB
26262013-07-31 Andrew Burgess <aburgess@broadcom.com>
2627
2628 * monitor.c (monitor_interrupt_query): Replace use of
2629 deprecated_throw_reason with quit.
2630 * nto-procfs.c (interrupt_query): Likewise.
2631 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2632 * remote-mips.c (mips_kill): Likewise.
2633 * remote.c (interrupt_query): Likewise.
2634
8150913b
AB
26352013-07-31 Andrew Burgess <aburgess@broadcom.com>
2636
2637 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2638 with call to fatal.
2639
de74e63a
YQ
26402013-07-31 Pedro Alves <pedro@codesourcery.com>
2641 Yao Qi <yao@codesourcery.com>
2642
2643 * tracepoint.c (trace_dump_command): Select the current frame.
2644
247f5c4f
DE
26452013-07-30 Doug Evans <dje@google.com>
2646
2647 * dwarf2read.c (process_queue): Add type signature to debug output.
2648
11b4b7cc
AB
26492013-07-30 Andrew Burgess <aburgess@broadcom.com>
2650
2651 * value.c (value_fetch_lazy): Mark optimized out values as such
2652 rather than raising an error.
2653
b0c54aa5
AB
26542013-07-30 Andrew Burgess <aburgess@broadcom.com>
2655
2656 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2657 before checking which bits of the parent, not the child, value are
2658 valid.
2659
97c85fc6
MB
26602013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2661
2662 PR gdb/15715
2663 * top.c: Include "filenames.h".
2664 (set_history_filename): New function.
2665 (init_main): Install it as set hook of the "set history filename"
2666 command.
2667
ff39bb5e
SA
26682013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2669
2670 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2671 attribute parameter.
2672 (dwarf2_const_value_data): Constify struct attribute parameter.
2673 (dwarf2_const_value): Constify struct attribute parameter.
2674 (dwarf2_const_value_attr): Constify struct attribute parameter.
2675 (lookup_die_type): Constify struct attribute parameter.
2676 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2677 (follow_die_ref_or_sig): Constify struct attribute parameter.
2678 (follow_die_ref): Constify struct attribute parameter.
2679 (follow_die_sig): Constify struct attribute parameter.
2680 (get_DW_AT_signature_type): Constify struct attribute parameter.
2681 (get_type_unit_group): Constify struct attribute parameter.
2682 (fill_in_loclist_baton): Constify struct attribute parameter.
2683 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2684 (type_unit_group): Constify struct attribute parameter.
2685
6e5a29e1
SA
26862013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2687
2688 * dwarf2read.c (attr_form_is_block): Make argument const.
2689 (attr_form_is_section_offset): Make argument const.
2690 (attr_form_is_constant): Make argument const.
2691 (attr_form_is_ref): Make argument const.
2692
7771576e
SA
26932013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2694
2695 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2696 All uses updated.
2697 (attr_form_is_ref): Moved below attr_form_is_constant.
2698
a94e8645
DE
26992013-07-29 Doug Evans <dje@google.com>
2700
bb5291d0
DE
2701 * main.c (captured_command_loop): Tweak comment.
2702
b5419e49
DE
2703 * target.c (target_async_permitted_1): Fix comment.
2704
b2d23133
DE
2705 * symtab.c (iterate_over_some_symtabs): Add comment.
2706
a94e8645
DE
2707 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2708
7a60ad40
YQ
27092013-07-27 Yao Qi <yao@codesourcery.com>
2710
2711 * NEWS: Mention that GDBserver now supports hardware
2712 watchpoints on the MIPS GNU/Linux target.
2713
aaee2056
YQ
27142013-07-27 Yao Qi <yao@codesourcery.com>
2715
2716 * Makefile.in (HFILES_NO_SRCDIR): Add
2717 common/mips-linux-watch.h.
2718 (mips-linux-watch.o): New rule.
2719 * common/mips-linux-watch.c: New.
2720 * common/mips-linux-watch.h: New.
2721 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2722 * mips-linux-nat.c: Include mips-linux-watch.h.
2723 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2724 to common/mips-linux-watch.h.
2725 (MAX_DEBUG_REGISTER): Likewise.
2726 (enum pt_watch_style): Likewise.
2727 (struct mips32_watch_regs): Likewise.
2728 (struct mips64_watch_regs): Likewise.
2729 (struct pt_watch_regs): Likewise.
2730 (struct mips_watchpoint): Likewise.
2731 (mips_linux_watch_get_irw_mask): Move to
2732 common/mips-linux-watch.c.
2733 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2734 (mips_linux_watch_get_watchlo): Likewise.
2735 (mips_linux_watch_set_watchlo): Likewise.
2736 (mips_linux_watch_get_watchhi): Likewise.
2737 (mips_linux_watch_set_watchhi): Likewise.
2738 (mips_linux_read_watch_registers): Likewise.
2739 (mips_linux_watch_type_to_irw): Likewise.
2740 (mips_linux_stopped_data_address, fill_mask): Likewise.
2741 (mips_linux_watch_try_one_watch): Likewise.
2742 (mips_linux_watch_populate_regs): Likewise.
2743
b3436450
YQ
27442013-07-27 Yao Qi <yao@codesourcery.com>
2745
2746 * mips-linux-nat.c (get_irw_mask): Rename to ...
2747 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2748 'set' to 'n'. Update function comment. All callers changed.
2749 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2750 function comment. All callers changed.
2751 (get_num_valid): Rename to ...
2752 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2753 'set' to 'n'. Update function comment. All callers changed.
2754 (get_watchlo): Rename to ...
2755 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2756 'set' to 'n'. Update function comment. All callers changed.
2757 (set_watchlo): Rename to ...
2758 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2759 'set' to 'n'. Update function comment. All callers changed.
2760 (get_watchhi): Rename to ...
2761 (mips_linux_watch_get_watchhi): ... this. Update function
2762 comment. All callers changed.
2763 (set_watchhi): Rename to ...
2764 (mips_linux_watch_set_watchhi): ... this. Update function
2765 comment. All callers changed.
2766 (mips_linux_read_watch_registers): Update function comment.
2767 Add new parameters 'lwpid', 'watch_readback', and
2768 'watch_readback_valid'. Update.
2769 (type_to_irw): Rename to ...
2770 (mips_linux_watch_type_to_irw): ... this. Update function
2771 comment. All callers changed.
2772 (fill_mask): Update function comment.
2773 (try_one_watch): Rename to ...
2774 (mips_linux_watch_try_one_watch): ... this. Change the type
2775 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2776 (populate_regs_from_watches): Rename to ...
2777 (mips_linux_watch_populate_regs): ... this. Add parameter
2778 'current_watches'. All callers changed.
2779
9be14b81
YQ
27802013-07-27 Yao Qi <yao@codesourcery.com>
2781
2782 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2783 the code.
2784 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2785 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2786 (struct pt_watch_regs): Likewise.
2787 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2788 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2789 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2790 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2791 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2792
de6f69ad
YQ
27932013-07-27 Yao Qi <yao@codesourcery.com>
2794
2795 * breakpoint.h: Include break-common.h.
2796 (enum target_hw_bp_type): Move to ...
2797 * common/break-common.h: ... here. New.
2798
6f64ef53
PA
27992013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2800
2801 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2802 process group regardless of having tty on stdin.
2803
6107e809
DE
28042013-07-25 Doug Evans <dje@google.com>
2805
2806 * linux-fork.h (detach_fork): Delete.
2807
7fdc1521
TT
28082013-07-25 Tom Tromey <tromey@redhat.com>
2809
2810 PR remote/15256, PR remote/15266:
2811 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2812 * monitor.c (monitor_detach): Use unpush_target.
2813 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2814 * remote-mips.c (mips_detach): Use unpush_target. Don't
2815 call mips_close.
2816 * remote-sim.c (gdbsim_detach): Use unpush_target.
2817 * target.c (pop_target): Remove.
2818 (pop_all_targets_above): Don't call target_close.
2819 (target_close): Assert that the target is unpushed.
2820 * target.h (pop_target): Don't declare.
2821 * tracepoint.c (tfile_open): Use unpush_target.
2822
c22a2b88
TT
28232013-07-25 Tom Tromey <tromey@redhat.com>
2824
2825 * linux-thread-db.c (init_thread_db_ops): Call
2826 complete_target_initialization.
2827 (_initialize_thread_db): Don't call add_target.
2828 * target.c (complete_target_initialization): New function.
2829 (add_target_with_completer): Call it.
2830 * target.h (complete_target_initialization): Declare.
2831
cbb6aada
MK
28322013-07-25 Mark Kettenis <kettenis@gnu.org>
2833
2834 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2835 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2836 (HPPANBSD_SIZEOF_GREGS): New define.
2837 (hppaobsd_supply_gregset): Handle additional registers.
2838 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2839 we provide more registers now.
2840 (hppabsd_supply_gregset): Supply additional registers.
2841 (hppabsd_collect_gregset): Collect additional registers.
2842
17767988
MK
28432013-07-25 Mark Kettenis <kettenis@gnu.org>
2844
2845 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2846 (hppabsd_dwarf2_frame_init_reg): New function.
2847 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2848
fdc8aae8
AB
28492013-07-25 Andrew Burgess <aburgess@broadcom.com>
2850
2851 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2852 'z' format code. Remove error for optimized out values, standard
2853 code will handle these fine.
2854
6fbe845e
AB
28552013-07-25 Andrew Burgess <aburgess@broadcom.com>
2856
2857 * NEWS: Mention new 'z' formatter.
2858 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2859 (_initialize_printcmd): Mention 'z' formatter in help text of the
2860 'x' command.
2861
3373342d
MR
28622013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2863
2864 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2865 formatting.
2866
25f9533e
SDJ
28672013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2868
2869 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2870 interface can evaluate arguments. Fallback to the old mode if it
2871 cannot.
2872 (create_exception_master_breakpoint): Likewise.
2873 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2874 (struct sym_probe_fns elf_probe_fns): Export function above to the
2875 probe interface.
2876 * probe.c (can_evaluate_probe_arguments): New function.
2877 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2878 function pointer.
2879 (can_evaluate_probe_arguments): New function prototype.
2880 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2881 probe interface can evaluate arguments. Fallback to the old mode
2882 if it cannot.
2883 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2884 interface can evaluate arguments. Warning the user if it cannot.
2885 (stap_can_evaluate_probe_arguments): New function.
2886 (struct probe_ops stap_probe_ops): Export function above to the
2887 probe interface.
2888 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2889 New function pointer.
2890
3360c0bf
LM
28912013-07-24 Luis Machado <lgustavo@codesourcery.com>
2892
2893 * Makefile.in (SFILES): Add common/target-common.c.
2894 Add common/target-common.h to headers.
2895 (COMMON_OBS): Add target-common.o.
2896 (target-common.o): New target.
2897 * linux-nat.h (resume_kind): Move to common/target-common.h.
2898 * target.c (target_waitstatus_to_string): Move to
2899 common/target-common.c.
2900 * target.h: Include target-common.h.
2901 (target_waitkind): Move to common/target-common.h.
2902 (target_waitstatus): Likewise.
2903 (TARGET_WNOHANG): Likewise.
2904 * common/target-common.c: New file.
2905 * common/target-common.h: New file.
2906
6656a72d
DE
29072013-07-24 Doug Evans <dje@google.com>
2908
2909 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2910 a warning.
2911
6df81a63
YQ
29122013-07-23 Yao Qi <yao@codesourcery.com>
2913
2914 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2915 parameter 'gdbarch'.
2916 (i386_stack_tramp_frame_sniffer): Caller update.
2917 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2918 parameter 'gdbarch' and 'target'.
2919 (i386_linux_core_read_description): Caller update.
2920 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2921 Likewise.
2922 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2923 declaration.
2924
365156ad
TT
29252013-07-23 Tom Tromey <tromey@redhat.com>
2926
2927 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2928 2013-07-22.
2929
046ac79f
JK
29302013-07-22 Doug Evans <dje@google.com>
2931
2932 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
2933 * exec.c (exec_close): Update call to remove_target_sections.
2934 (remove_target_sections): Delete arg abfd.
046ac79f
JK
2935 * solib.c (update_solib_list): Ditto.
2936 (reload_shared_libraries_1): Ditto.
2937 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
2938 * target.h (struct target_section): Rename key to owner.
2939 All uses updated.
046ac79f 2940
29b2cc46
TT
29412013-07-22 Tom Tromey <tromey@redhat.com>
2942
2943 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2944
d1160018
TT
29452013-07-22 Tom Tromey <tromey@redhat.com>
2946
2947 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2948 Simplify cleanup handling.
2949
2f324bf6
TT
29502013-07-22 Tom Tromey <tromey@redhat.com>
2951
2952 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2953 on all return paths.
2954
e23b9d6e
UW
29552013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2956
2957 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2958 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2959 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2960
1cf55f60
PM
29612013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2962
2963 * top.c (print_gdb_version): Add help, apropos description and
2964 url to online documentation.
2965
fa876972
HZ
29662013-07-19 Hui Zhu <hui@codesourcery.com>
2967
2968 PR gdb/15692
2969 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2970
1527aea8
YQ
29712013-07-19 Yao Qi <yao@codesourcery.com>
2972
2973 * target.c (update_current_target): Change the default action
2974 of 'to_traceframe_info' from tcomplain to return_zero.
2975 * target.h (struct target_ops) <to_traceframe_info>: Add more
2976 comments.
2977 * valops.c (read_value_memory): Call
2978 traceframe_available_memory unconditionally.
2979
886f230e
YQ
29802013-07-18 Yao Qi <yao@codesourcery.com>
2981
2982 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2983 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2984 symbol without prefix. If found, set its type to
2985 'mst_solib_trampoline'.
2986
16419bae
DE
29872013-07-17 Doug Evans <dje@google.com>
2988
e7045703
DE
2989 * NEWS: Mention "set print raw frame-arguments".
2990 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2991 * stack.c (print_raw_frame_arguments): New static global.
2992 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2993 (_initialize_stack): New command "set/show print raw frame-arguments".
2994 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2995 (set_print_raw, show_print_raw): New functions.
2996 (_initialize_valprint): New prefix command "set/show print raw".
2997 * valprint.h (value_print_options): Improve comments.
2998
453e48a5
DE
2999 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3000 of all *list variables.
3001
16419bae
DE
3002 * gdbcmd.h (togglelist): Delete.
3003 * cli/cli-cmds.c (togglelist): Delete.
3004 (init_cmd_lists): Update.
3005 * cli/cli-cmds.h (togglelist): Delete.
3006
626f2d1c
TT
30072013-07-17 Tom Tromey <tromey@redhat.com>
3008
3009 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3010 dwarf2_per_objfile.
3011
57e6060e
DE
30122013-07-16 Doug Evans <dje@google.com>
3013
3014 * nto-tdep.c (nto_relocate_section_addresses): Update,
3015 target_section.bfd deleted.
3016 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3017 * s390-tdep.c (s390_load): Ditto.
3018 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3019
5ea5559b
AB
30202013-07-16 Andrew Burgess <aburgess@broadcom.com>
3021
3022 * common/format.c (parse_format_string): Add checks for NULL
3023 character before calling strchr.
3024
2b2848e2
DE
30252013-07-16 Doug Evans <dje@google.com>
3026
2c571006
DE
3027 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3028 temp_pathname argument.
3029 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3030 when opening the file fails.
3031
2b2848e2
DE
3032 * target.h (struct target_section): Delete member bfd.
3033 All users updated to use the_bfd_section->owner instead.
3034 * exec.c (add_to_section_table): Assert bfd is expected value.
3035 Remove initialization of target_section.bfd.
3036 (remove_target_sections): Update.
3037 (section_table_available_memory): Update.
3038 (section_table_xfer_memory_partial): Update.
3039 (print_section_info): Update.
3040 (exec_set_section_address): Update.
3041 * record-full.c (record_full_core_xfer_partial): Update.
3042 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3043 * solib-target.c (solib_target_relocate_section_addresses): Update.
3044 * symfile.c (build_section_addr_info_from_section_table): Update.
3045 * target.c (memory_xfer_live_readonly_partial): Update.
3046 (memory_xfer_partial_1): Update.
3047
926bf92d
UW
30482013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3049
3050 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3051 now available for embedded (BookE) and server (BookS) processors,
3052 correct mentions of 'booke' and adjust comments accordingly in order to
3053 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3054 (have_ptrace_booke_interface): Rename function and variable
3055 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3056 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3057 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3058 'hwdebug_point_cmp'. Update all uses.
3059 (booke_find_thread_points_by_tid): Rename function
3060 'booke_find_thread_points_by_tid' to
3061 'hwdebug_find_thread_points_by_tid'. Update all uses.
3062 (booke_insert_point): Rename function 'booke_insert_point' to
3063 'hwdebug_insert_point'. Update all uses.
3064 (booke_remove_point): Rename function 'booke_remove_point' to
3065 'hwdebug_remove_point'. Update all uses.
3066
d929bc19
MR
30672013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3068
3069 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3070 numbers with enum values.
3071
054e8d9e
AA
30722013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3073
3074 PR threads/13217
3075 * thread.c (thread_apply_all_command): Check for valid threads
3076 and thread count.
3077 (thread_array_cleanup): New struct.
3078 (set_thread_refcount): New function.
3079
cf006359
AB
30802013-07-11 Andrew Burgess <aburgess@broadcom.com>
3081
3082 * infcmd.c (default_print_one_register_info): Reuse function
3083 print_hex_chars.
3084
94e36acc
TT
30852013-07-10 Tom Tromey <tromey@redhat.com>
3086
3087 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3088 (ada-exp.o): New target.
3089
915dd369
SDJ
30902013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3091
3092 * mt-tdep.c (mt_registers_info): Call
3093 get_no_prettyformat_print_options instead of
3094 get_raw_print_options (regression by last patch from Doug
3095 Evans).
3096
eca07816
JB
30972013-07-09 Pedro Alves <palves@redhat.com>
3098
3099 Checked in by Joel Brobecker <brobecker@adacore.com>.
3100 * ada-lang.c (coerce_unspec_val_to_type): Use
3101 value_optimized_out_const.
3102 * value.c (value_optimized_out_const): New function.
3103 * value.h (value_optimized_out_const): New declaration.
3104
2a998fc0
DE
31052013-07-09 Doug Evans <dje@google.com>
3106
3107 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3108 Enum values rename as well. All uses updated.
3109 * valprint.h (value_print_options): Rename member pretty to
3110 pretty format. Rename member prettyprint_arrays to
3111 prettyformat_arrays. Rename member prettyprint_structs to
3112 prettyformat_structs. All uses updated.
3113 (get_no_prettyformat_print_options): Renamed from
3114 get_raw_print_options.
3115 * valprint.c (get_no_prettyformat_print_options): Renamed from
3116 get_raw_print_options. All callers updated.
3117 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3118 All callers updated.
3119 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3120 All callers updated.
3121 (_initialize_valprint): Improve help text for "set print pretty" and
3122 "set print arrays".
3123
466c1fca
AB
31242013-07-09 Andrew Burgess <aburgess@broadcom.com>
3125
3126 * value.c (value_bits_valid): Revert previous change, and change
3127 by Pedro on 2013-07-04, due to regressions in
3128 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3129
ad0f0303
AB
31302013-07-08 Andrew Burgess <aburgess@broadcom.com>
3131 Pedro Alves <palves@redhat.com>
3132
3133 * value.c (value_bits_valid): If the value is not lval_computed
3134 or has no check validity handler then the answer is the
3135 optimized_out flag, otherwise defer to the handler.
3136
b187bec1
EZ
31372013-07-06 Eli Zaretskii <eliz@gnu.org>
3138
48d1d6f5
EZ
3139 * top.c (print_gdb_configuration): Explain in output of
3140 --configuration what does "relocatable" mean.
3141
b187bec1
EZ
3142 * main.c (print_gdb_help): Regroup options in the --help text.
3143 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3144 the relevant discussions.
3145
52d361e1
YQ
31462013-07-06 Yao Qi <yao@codesourcery.com>
3147
3148 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3149 Remove parameter 'lsal'.
3150 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3151 to inner block. Caller update.
3152 (base_breakpoint_create_breakpoints_sal): Update.
3153 (bkpt_create_breakpoints_sal): Likewise.
3154 (tracepoint_create_breakpoints_sal): Likewise.
3155 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3156 element 0 of vector 'canonical->sals'.
3157
e1ec1b42
LM
31582013-07-05 Luis Machado <lgustavo@codesourcery.com>
3159
3160 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3161 register number instead of the pseudo register one.
3162 (rs6000_dwarf2_reg_to_regnum): Likewise.
3163
7195e6f0
PA
31642013-07-04 Pedro Alves <palves@redhat.com>
3165
3166 * findvar.c (value_of_register): Use allocate_optimized_out_value
3167 if the register has been optimized out, instead of
3168 set_value_optimized_out.
3169 * frame-unwind.c (frame_unwind_got_optimized): Use
3170 allocate_optimized_out_value.
3171
58722cac
PA
31722013-07-04 Pedro Alves <palves@redhat.com>
3173
3174 * value.c (value_bits_valid): If the value is not lval_computed,
3175 or doesn't have a check_validity hook, assume the value is entirely
3176 valid.
3177
691a26f5
AB
31782013-07-04 Andrew Burgess <aburgess@broadcom.com>
3179
3180 * stack.c (read_frame_arg): No longer fetch lazy values.
3181 * value.c (value_optimized_out): If the value is not already
3182 marked optimized out, and is lazy then fetch it.
3183 (value_primitive_field): Move optimized out check to later in the
3184 function, after we have loaded any lazy values.
3185 (value_fetch_lazy): Use optimized out flag directly rather than
3186 calling optimized_out method.
3187
a58e2656
AB
31882013-07-04 Andrew Burgess <aburgess@broadcom.com>
3189
3190 * valops.c: Don't include "user-regs.h".
3191 (value_fetch_lazy): Moved to value.c.
3192 * value.c: Include "user-regs.h".
3193 (value_fetch_lazy): Moved from valops.c.
3194
bd885420
YQ
31952013-07-04 Yao Qi <yao@codesourcery.com>
3196
3197 Revert:
3198 2013-06-27 Yao Qi <yao@codesourcery.com>
3199
3200 * common/create-version.sh: Update comments. Handle the case
3201 that TARGET_ALIAS is empty.
3202
17ef446e
PA
32032013-07-03 Pedro Alves <palves@redhat.com>
3204
3205 * Makefile.in (config.status): Depend on development.sh.
3206 (aclocal_m4_deps): Add libmcheck.m4.
3207 * acinclude.m4: Include libmcheck.m4.
3208 * configure.ac: Source development.sh instead of setting
3209 'development' here. --enable-libmcheck/--disable-libmcheck code
3210 factored out to GDB_AC_LIBMCHECK. Run it.
3211 * development.sh: New file.
3212 * libmcheck.m4: New file.
3213 * configure: Regenerate.
3214
ac6dd50f
TT
32152013-07-02 Tom Tromey <tromey@redhat.com>
3216
3217 * contrib/ari/update-web-ari.sh: Update for version.in change.
3218
bd1df410
TT
32192013-07-02 Tom Tromey <tromey@redhat.com>
3220
3221 * common/ptid.h: Comment fixes.
3222
4db1a1dc
TT
32232013-07-01 Tom Tromey <tromey@redhat.com>
3224
3225 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3226 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3227 (dwarf2_read_index, create_all_comp_units): Update.
3228
dd9aa048
TT
32292013-07-01 Tom Tromey <tromey@redhat.com>
3230
3231 * configure.ac (build_warnings): Add -Wold-style-definition.
3232 * configure: Rebuild.
3233 * machoread.c (_initialize_machoread): Use "(void)".
3234 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3235 use "(void)".
3236
44d100c3
TT
32372013-07-01 Tom Tromey <tromey@redhat.com>
3238
3239 * configure.ac (build_warnings): Add -Wold-style-declaration.
3240 * configure: Rebuild.
3241 * dsrec.c (make_srec): Use "static const", not "const static".
3242 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3243 not "const static".
3244 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3245 Use "static const", not "const static".
3246 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3247 not "const static".
3248 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3249 not "const static".
3250 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3251 not "const static".
3252 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3253 not "const static".
3254 (v850_dbtrap_breakpoint_from_pc): Likewise.
3255 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3256 not "const static".
3257
2945b807
TT
32582013-07-01 Tom Tromey <tromey@redhat.com>
3259
3260 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3261 * configure: Rebuild.
3262
d8d2a3ee
PA
32632013-07-01 Pedro Alves <palves@redhat.com>
3264
3265 * defs.h: Include "pathmax.h".
3266 * utils.c: Don't include sys/param.h.
3267 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3268 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3269 instead of MAXPATHLEN.
3270 * solib-sunos.c: Don't include sys/param.h.
3271 * xcoffread.c: Don't include sys/param.h.
3272 * bsd-kvm.c: Don't include sys/param.h.
3273 * darwin-nat.c: Don't include sys/param.h.
3274 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3275 * darwin-nat-info.c: Don't include sys/param.h.
3276 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3277 MAXPATHLEN.
3278 * i386obsd-nat.c: Don't include sys/param.h.
3279 * inf-child.c: Don't include sys/param.h.
3280 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3281 * linux-fork.c: Don't include sys/param.h.
3282 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3283 * linux-nat.c: Don't include sys/param.h.
3284 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3285 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3286 * m68klinux-nat.c: Don't include sys/param.h.
3287 * nbsd-nat.c: Don't include sys/param.h.
3288 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3289 * ppc-linux-nat.c: Don't include sys/param.h.
3290 * rs6000-nat.c: Don't include sys/param.h.
3291 * spu-linux-nat.c. Don't include sys/param.h.
3292 * windows-nat.c: Don't include sys/param.h.
3293 * xtensa-linux-nat.c: Don't include sys/param.h.
3294 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3295
38ec2207
PA
32962013-07-01 Pedro Alves <palves@redhat.com>
3297
3298 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3299 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3300 * gnulib/aclocal.m4: Regenerate.
3301 * gnulib/config.in: Regenerate.
3302 * gnulib/configure: Regenerate.
3303 * gnulib/import/pathmax.h: New file.
3304 * gnulib/import/Makefile.am: Regenerate.
3305 * gnulib/import/Makefile.in: Regenerate.
3306 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3307 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3308 * gnulib/import/m4/pathmax.m4: New file.
3309
e655c1a2
PA
33102013-07-01 Pedro Alves <palves@redhat.com>
3311
3312 * configure.ac (GDBINIT): Define, depending on host.
3313 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3314 * top.c (PATH_MAX): Delete fallback definition.
3315 (GDBINIT_FILENAME): Delete.
3316 (gdbinit): Reimplement as const char array set to the GDBINIT
3317 string constant.
3318 * top.h (gdbinit): Make const.
3319 * configure, config.in: Regenerate.
3320
50dd9793
PA
33212013-07-01 Pedro Alves <palves@redhat.com>
3322
3323 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3324 * cli/cli-cmds.h (source_script): Likewise.
3325 * exceptions.c (catch_command_errors_const): New function.
3326 * exceptions.h (catch_command_errors_const): Declare.
3327 * main.c (get_init_files): Make parameters const, and adjust.
3328 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3329 'local_gdbinit' locals const. Adjust to use
3330 catch_command_errors_const.
3331 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3332 'local_gdbinit' locals const.
3333
bc7dea8d
PA
33342013-07-01 Pedro Alves <palves@redhat.com>
3335
3336 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3337 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3338 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3339 <unistd.h>.
3340
8839a007
PA
33412013-07-01 Pedro Alves <palves@redhat.com>
3342
3343 Import the "unistd" gnulib module.
3344 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3345 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3346 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3347 import/m4/unistd_h.m4.
3348 * gnulib/aclocal.m4: Renenerate.
3349 * gnulib/config.in: Renenerate.
3350 * gnulib/configure: Renenerate.
3351 * gnulib/import/Makefile.am: Renenerate.
3352 * gnulib/import/Makefile.in: Renenerate.
3353 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3354 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3355 * gnulib/import/m4/off_t.m4: New file.
3356 * gnulib/import/m4/ssize_t.m4: New file.
3357 * gnulib/import/m4/sys_types_h.m4: New file.
3358 * gnulib/import/m4/unistd_h.m4: New file.
3359 * gnulib/import/sys_types.in.h: New file.
3360 * gnulib/import/unistd.c: New file.
3361 * gnulib/import/unistd.in.h: New file.
3362
8c0da261
PA
33632013-07-01 Pedro Alves <palves@redhat.com>
3364
3365 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3366 defined instead of checking HAVE_UNISTD_H.
3367
3574124b
PA
33682013-07-01 Pedro Alves <palves@redhat.com>
3369
3370 Reimport gnulib from scratch.
3371 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3372 import/m4/onceonly.m4.
3373 * gnulib/aclocal.m4: Renegerate.
3374 * gnulib/config.in: Renegerate.
3375 * gnulib/configure: Renegerate.
3376 * gnulib/import/Makefile.in: Renegerate.
3377 * gnulib/import/extra/update-copyright: Renegerate.
3378 * gnulib/import/m4/onceonly.m4: Delete.
3379
702dc4fd
PA
33802013-07-01 Pedro Alves <palves@redhat.com>
3381
3382 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3383
47e1ce27
JK
33842013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3385
3386 Code cleanup.
3387 * remote.c (async_remote_interrupt_twice): Make it static.
3388 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3389
e82839d4
SDJ
33902013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3391
3392 * ia64-linux-tdep.c: Include <ctype.h>.
3393 (ia64_linux_stap_is_single_operand): New function.
3394 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3395
d6c2da54
TT
33962013-06-28 Tom Tromey <tromey@redhat.com>
3397
3398 * Makefile.in (version.c): Use version.in, not
3399 common/version.in.
3400 * common/create-version.sh: Likewise.
3401 * common/version.in: Move...
3402 * version.in: ...here.
3403
74da6f00
PA
34042013-06-28 Pedro Alves <palves@redhat.com>
3405
3406 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3407 here.
3408 * utils.h (pagination_enabled): Declare.
3409
d32dc48e
PA
34102013-06-28 Pedro Alves <palves@redhat.com>
3411
3412 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3413 Move higher up in file.
3414
0edd9e3b
TT
34152013-06-28 Tom Tromey <tromey@redhat.com>
3416
3417 * tracepoint.c (deprecated_readline_begin_hook)
3418 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3419 declare.
3420
4eb59108
PA
34212013-06-28 Pedro Alves <palves@redhat.com>
3422
3423 PR tui/14880
3424 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3425 checking if they're available.
3426 * value.c (value_available_contents_eq): Change comment.
3427 * value.h (value_available_contents_eq): Expand comment.
3428
97b17156
TT
34292013-06-27 Tom Tromey <tromey@redhat.com>
3430
3431 * target.c (find_run_target): Remove.
3432 * target.h (find_run_target): Remove.
3433
6a3bfc5c
TT
34342013-06-27 Tom Tromey <tromey@redhat.com>
3435
3436 * corelow.c (core_gdbarch): Now static.
3437
c9ef825d
TT
34382013-06-27 Tom Tromey <tromey@redhat.com>
3439
3440 * target.c (target_struct_index): Remove.
3441
e5823f1c
PA
34422013-06-27 Pedro Alves <palves@redhat.com>
3443
3444 * infrun.c: Remove comment describing the 'stepping over runtime
3445 loader dynamic symbol resolution code' mechanism; moved to
3446 gdbint.texinfo.
3447
97f8dd09
PA
34482013-06-27 Pedro Alves <palves@redhat.com>
3449
3450 * exceptions.c (catch_command_errors): Remove spurious space.
3451 * exceptions.h (catch_command_errors): Second parameter is "arg",
3452 not "command".
3453
02b1871e
YQ
34542013-06-27 Yao Qi <yao@codesourcery.com>
3455
3456 * common/create-version.sh: Update comments. Handle the case
3457 that TARGET_ALIAS is empty.
3458
bb1b1cf1
PA
34592013-06-26 Pedro Alves <palves@redhat.com>
3460
3461 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3462 comment.
3463
7b624e71
PA
34642013-06-26 Pedro Alves <palves@redhat.com>
3465
3466 * infrun.c: Update comments on stepping over runtime loader
3467 dynamic symbol resolution code.
3468
74e5a346
SDJ
34692013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3470
3471 * ax-gdb.h (union exp_element): Forward declare.
3472 * parser-defs.h: Include expression.h.
3473
a2fb2cee
MR
34742013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3475
3476 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3477
cdba14e0
DK
34782013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3479
3480 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3481
f30aa5af
DK
34822013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3483
3484 Fix trace-status to output proper start-time and stop-time.
3485 * tracepoint.c (trace_status_command): Fix type of printf arg to
3486 prevent improper type conversion.
3487 (trace_status_mi): Likewise.
3488
1aee363c
MR
34892013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3490
3491 * mips-tdep.c (mips_next_pc): Fix a typo.
3492
3356937a
MR
34932013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3494
3495 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3496
dc673c81
YQ
34972013-06-26 Pedro Alves <pedro@codesourcery.com>
3498 Yao Qi <yao@codesourcery.com>
3499
3500 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3501 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3502 * mi/mi-main.c (print_variable_or_computed): New function.
3503 (mi_cmd_trace_frame_collected): New function.
3504 * tracepoint.c (find_trace_state_variable_by_number): New.
3505 (struct traceframe_info): Move to tracepoint.h
3506 (struct collection_list): Likewise.
3507 (do_collect_symbol): Include locals and arguments in the
3508 collected variables list.
3509 (clear_collection_list): Clear wholly collected variables list
3510 and computed variables list.
3511 (append_exp): New function.
3512 (encode_actions_1): Include variables in the wholly
3513 collected variables list. Include memory ranges and
3514 full-fledged expressions in the computed expressions list.
3515 (encode_actions): Move some code to ...
3516 Return the cleanup chain.
3517 (encode_actions_rsp): ... here. New function.
3518 (get_traceframe_location, get_traceframe_info): Remove static.
3519 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3520 (struct collection_list): Moved from tracepoint.c. Add two
3521 new fields 'wholly_collected' and 'computed'.
3522 (find_trace_state_variable_by_number): Declare.
3523 (encode_actions): Adjust declaration.
3524 (encode_actions_rsp): Declare.
3525 (get_traceframe_info, get_traceframe_location): Declare.
3526
3527 * NEWS: Mention new MI command -trace-frame-collected.
3528
28a93511
YQ
35292013-06-26 Pedro Alves <pedro@codesourcery.com>
3530 Yao Qi <yao@codesourcery.com>
3531
3532 * ctf.c (ctf_traceframe_info): Push trace state variables
3533 present in the trace data into the traceframe info object.
3534 * breakpoint.c (DEF_VEC_I): Remove.
3535 * common/filestuff.c (DEF_VEC_I): Likewise.
3536 * dwarf2loc.c (DEF_VEC_I): Likewise.
3537 * mi/mi-main.c (DEF_VEC_I): Likewise.
3538 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3539 * features/traceframe-info.dtd: Add tvar element and its
3540 attributes.
3541 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3542 (build_traceframe_info): Push trace state variables present in
3543 the trace data into the traceframe info object.
3544 (traceframe_info_start_tvar): New function.
3545 (tvar_attributes): New.
3546 (traceframe_info_children): Add "tvar" element.
3547 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3548
3549 * NEWS: Mention the change in GDB and GDBserver.
3550
ddacd3c8
YQ
35512013-06-26 Pedro Alves <pedro@codesourcery.com>
3552 Yao Qi <yao@codesourcery.com>
3553
3554 * tracepoint.c (trace_dump_command): Move code to ...
3555 (get_traceframe_location): ... here. New.
3556
05796b35
YQ
35572013-06-26 Pedro Alves <pedro@codesourcery.com>
3558 Yao Qi <yao@codesourcery.com>
3559
3560 * tracepoint.c (trace_dump_command): GDB emits an error
3561 instead of a warning when a traceframe is not selected.
3562
cbfa3b61
YQ
35632013-06-26 Pedro Alves <pedro@codesourcery.com>
3564 Yao Qi <yao@codesourcery.com>
3565
3566 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3567 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3568 in collection_list.
3569 (do_clear_collection_list, init_collection_list): New.
3570 (encode_actions): Add local variables 'tracepoint_list' and
3571 'stepping_list'. Call init_collection_list and make cleanup
3572 which calls do_clear_collection_list. Don't call
3573 clear_collection_list.
3574 (_initialize_tracepoint): Delete references to
3575 'tracepoint_list' and 'stepping_list'.
3576
6e2048d3
TT
35772013-06-25 Tom Tromey <tromey@redhat.com>
3578
3579 * common/create-version.sh (date): Use "$", not "$$" in sed
3580 expression.
3581
42059f0e
KB
35822013-06-25 Kevin Buettner <kevinb@redhat.com>
3583
3584 * NEWS (New targets): Add entry for TI MSP430.
3585
a0743c90
YQ
35862013-06-25 Yao Qi <yao@codesourcery.com>
3587
3588 * remote.c (remote_start_remote): Move code to upload tsv
3589 earlier.
3590
9d6e6e84
HZ
35912013-06-25 Yao Qi <yao@codesourcery.com>
3592 Hui Zhu <hui@codesourcery.com>
3593 Pedro Alves <palves@redhat.com>
3594
3595 PR breakpoints/15075
3596 PR breakpoints/15434
3597 * breakpoint.c (bpstat_stop_status): Call
3598 b->ops->after_condition_true.
3599 (update_dprintf_command_list): Don't append "continue" command
3600 to the command list of dprintf breakpoint.
3601 (base_breakpoint_after_condition_true): New function.
3602 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3603 (dprintf_after_condition_true): New function.
3604 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3605 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3606
586cf749
KB
36072013-06-24 Kevin Buettner <kevinb@redhat.com>
3608
3609 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3610 (ALLDEPFILES): Add msp430-tdep.c.
3611 * configure.tgt (msp430*-*-elf): New target.
3612 * msp430-tdep.c: New file.
3613
1bbce132
MR
36142013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3615
3616 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3617 microMIPS synthetic symbols.
3618
3e5d3a5a
MR
36192013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3620
3621 * objfiles.h (pc_in_section): New prototype.
3622 (in_plt_section): Remove name argument, replace prototype with
3623 static inline function.
3624 * mips-tdep.h: Include "objfiles.h".
3625 (in_mips_stubs_section): New function.
3626 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3627 in_solib_call_trampoline member.
3628 (hppa_in_solib_call_trampoline): Remove name argument.
3629 * objfiles.c (pc_in_section): New function.
3630 (in_plt_section): Remove function.
3631 * mips-linux-tdep.c: Include "objfiles.h".
3632 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3633 name argument. Return 1 rather than the low 16-bit halfword of
3634 any instruction examined.
3635 (mips_linux_in_dynsym_resolve_code): Update
3636 mips_linux_in_dynsym_stub call accordingly.
3637 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3638 rather than an equivalent hand-coded sequence.
3639 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3640 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3641 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3642 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3643 in_opd_section.
3644 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3645 on call to tdep->in_solib_call_trampoline.
3646 (hppa_in_solib_call_trampoline): Remove name argument, update
3647 according to in_plt_section change.
3648 (hppa_skip_trampoline_code): Update according to in_plt_section
3649 change.
3650 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3651 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3652 Likewise.
3653 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3654 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3655 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3656 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3657 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3658 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3659 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3660 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3661 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3662 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3663 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3664 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3665 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3666
b9b26a16
JB
36672013-06-24 Joel Brobecker <brobecker@adacore.com>
3668
3669 * common/create-version.sh: Fix expansion of $host_alias
3670 and $target_alias in generation of HOST_NAME and TARGET_NAME
3671 (resp.).
3672
01208463
TT
36732013-06-24 Tom Tromey <tromey@redhat.com>
3674
3675 * common/create-version.sh: New file.
3676 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3677 create-version.sh.
3678 (HFILES_NO_SRCDIR): Use common/version.h.
3679 * version.in: Move to ...
3680 * common/version.in: ... here. Replace date with "DATE".
3681 * version.h: Move to ...
3682 * common/version.h: ... here.
3683
bb6b9a5e
JB
36842013-06-21 Joel Brobecker <brobecker@adacore.com>
3685
3686 * gdb/gnulib/Makefile.in: Update date in copyright header.
3687 * gdb/gnulib/configure.ac: Ditto.
3688 * gdb/gnulib/update-gnulib.sh: Ditto.
3689
c3b18ee7
JB
36902013-06-21 Joel Brobecker <brobecker@adacore.com>
3691
3692 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3693 "gdb/gnulib/import".
3694
85d3b769
WN
36952013-06-21 Will Newton <will.newton@linaro.org>
3696
3697 * doublest.c (ldfrexp): Remove function.
3698 (convert_doublest_to_floatformat): Call frexpl instead of
3699 ldfrexp.
3700
88b48903
WN
37012013-06-21 Will Newton <will.newton@linaro.org>
3702
3703 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3704 * gnulib/aclocal.m4: Regenerate.
3705 * gnulib/config.in: Regenerate.
3706 * gnulib/configure: Regenerate.
3707 * gnulib/import/Makefile.am: Update.
3708 * gnulib/import/Makefile.in: Update.
3709 * gnulib/import/m4/gnulib-cache.m4: Update.
3710 * gnulib/import/m4/gnulib-comp.m4: Update.
3711 * gnulib/import/float+.h: Import.
3712 * gnulib/import/float.c: Import.
3713 * gnulib/import/float.in.h: Import.
3714 * gnulib/import/fpucw.h: Import.
3715 * gnulib/import/frexp.c: Import.
3716 * gnulib/import/frexpl.c: Import.
3717 * gnulib/import/isnan.c: Import.
3718 * gnulib/import/isnand-nolibm.h: Import.
3719 * gnulib/import/isnand.c: Import.
3720 * gnulib/import/isnanl-nolibm.h: Import.
3721 * gnulib/import/isnanl.c: Import.
3722 * gnulib/import/itold.c: Import.
3723 * gnulib/import/m4/exponentd.m4: Import.
3724 * gnulib/import/m4/exponentl.m4: Import.
3725 * gnulib/import/m4/float_h.m4: Import.
3726 * gnulib/import/m4/fpieee.m4: Import.
3727 * gnulib/import/m4/frexp.m4: Import.
3728 * gnulib/import/m4/frexpl.m4: Import.
3729 * gnulib/import/m4/isnand.m4: Import.
3730 * gnulib/import/m4/isnanl.m4: Import.
3731 * gnulib/import/m4/math_h.m4: Import.
3732 * gnulib/import/math.c: Import.
3733 * gnulib/import/math.in.h: Import.
3734
4353c9e6
JK
37352013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3736
3737 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3738 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3739 signature_INTEL_edx comparisons.
3740
e3e06db3
DE
37412013-06-20 Doug Evans <dje@google.com>
3742
6ac97d4c
DE
3743 symtab/15652
3744 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3745 All callers updated.
3746 (open_dwp_file): If we can't find the dwp file, search the basename
3747 in debug-file-directory.
3748
93417882
DE
3749 * dwarf2read.c (struct dwp_file): Fix comment.
3750 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3751
e3e06db3
DE
3752 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3753 better.
3754
0878d0fa
YQ
37552013-06-20 Yao Qi <yao@codesourcery.com>
3756
3757 * breakpoint.c (create_breakpoint): Fix code indentation.
3758
023fa29b
YQ
37592013-06-20 Yao Qi <yao@codesourcery.com>
3760
3761 * breakpoint.c (create_breakpoints_sal_default): Remove
3762 parameter 'lsal'. Update declaration.
3763 (bkpt_create_breakpoints_sal): Caller update.
3764 (tracepoint_create_breakpoints_sal): Likewise.
3765
c898adb7
YQ
37662013-06-20 Pedro Alves <pedro@codesourcery.com>
3767 Yao Qi <yao@codesourcery.com>
3768
3769 * NEWS: Mention the new option '--skip-unavailable' of command
3770 -data-list-register-values.
3771 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3772 --skip-unavailable option. Adjust to use output_register.
3773 (output_register): Add new 'skip_unavailable' parameter.
3774 Handle it.
3775
4d157a3d
MF
37762013-06-19 Mike Frysinger <vapier@gentoo.org>
3777
3778 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3779 common/i386-gcc-cpuid.h.
3780 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3781 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3782 Copy the latest version from upstream gcc.
3783 * common/linux-btrace.c: Include i386-cpuid.h.
3784 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3785 call to i386_cpuid.
3786 (cpu_supports_btrace): Likewise.
3787 * go32-nat.c: Include i386-cpuid.h.
3788 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3789
1ce4db08
DE
37902013-06-19 Doug Evans <dje@google.com>
3791
3792 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3793 (get_section_index): Ditto.
3794
0e4777df
TT
37952013-06-19 Tom Tromey <tromey@redhat.com>
3796
3797 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3798 "dprintf" help.
3799
3190f0c6
DE
38002013-06-18 Doug Evans <dje@google.com>
3801
3802 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3803 before using it.
3804 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3805 Move test of cu_index closer to use. Print complaint if cu_index
3806 is bad.
3807
8b89a20a
JB
38082013-06-18 Joel Brobecker <brobecker@adacore.com>
3809
3810 * machoread.c (oso_vector): Delete this global.
3811 (macho_register_oso): Add new parameter "oso_vector_ptr".
3812 Use it instead of the "oso_vector" global.
3813 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3814 (macho_symfile_read): Use a local oso_vector, to be free'ed
3815 at the end of this function, in place of the old "oso_vector"
3816 global. Update various function calls accordingly. Use one
3817 single cleanup chain for the entire function.
3818
59b0c7c1
JB
38192013-06-18 Joel Brobecker <brobecker@adacore.com>
3820
937c708c 3821 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
3822 DWARF2_PER_OBJFILE by uses of DATA instead.
3823
427cd150
TT
38242013-06-18 Tom Tromey <tromey@redhat.com>
3825
3826 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3827 argument.
3828 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3829 Special case signals other than GDB_SIGNAL_TRAP.
3830 (explains_signal_watchpoint): New function.
3831 (base_breakpoint_explains_signal): Add 'sig' argument.
3832 (initialize_breakpoint_ops): Set 'explains_signal' method for
3833 watchpoints.
3834 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3835 signal argument.
3836 (bpstat_explains_signal): Likewise.
3837 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3838
2d57700b
TT
38392013-06-18 Tom Tromey <tromey@redhat.com>
3840
3841 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3842
ac475191
TT
38432013-06-18 Tom Tromey <tromey@redhat.com>
3844
3845 * python/python.c (finish_python_initialization): Decref
3846 'pythondir' on failure path as well.
3847
5bd1ef56
TT
38482013-06-18 Tom Tromey <tromey@redhat.com>
3849
3850 PR symtab/15391:
3851 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3852 after taking bits_to_skip into account. Sign extend byte_offset.
3853 * utils.h (gdb_sign_extend): Declare.
3854 * utils.c (gdb_sign_extend): New function.
3855
92fac807
JK
38562013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3857
3858 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3859
2d503272
PM
38602013-06-17 Pierre Muller <muller@sourceware.org>
3861
3862 * corelow.c (core_open): Print GDB signal name instead of target
3863 signal number.
3864
6916fd98
MF
38652013-06-17 Mike Frysinger <vapier@gentoo.org>
3866
3867 * .gitignore: Add /gcore.
3868
9c02c129
DE
38692013-06-13 Doug Evans <dje@google.com>
3870
3871 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3872 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3873
d0548fa2
PM
38742013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3875
3876 * stack.c (backtrace_command_1): Fix indentation.
3877
22128028
JB
38782013-06-11 Joel Brobecker <brobecker@adacore.com>
3879
3880 * window-nat.c (thread_rec): Add missing empty line after
3881 local variable declaration.
3882
2ed3e009
JB
38832013-06-11 Joel Brobecker <brobecker@adacore.com>
3884
3885 * windows-nat.c (thread_rec): Revert format used to print
3886 error code returned by SuspendThread from %d back to %u.
3887
0c3d84be
JB
38882013-06-11 Joel Brobecker <brobecker@adacore.com>
3889
3890 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3891 ID in debug trace.
3892 (get_windows_debug_event): Likewise, for all debug traces.
3893
80e88e1a
JB
38942013-06-11 Joel Brobecker <brobecker@adacore.com>
3895
3896 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3897 warning message.
3898
1edebdbf
YQ
38992013-06-08 Pedro Alves <pedro@codesourcery.com>
3900 Yao Qi <yao@codesourcery.com>
3901
3902 * mi/mi-main.c (get_register): Remove declaration.
3903 (output_register): Declare.
3904 (mi_cmd_data_list_register_values): Remove local variable
3905 'tuple_cleanup'. Move some code into output_register.
3906 (get_register): Renamed to ...
3907 (output_register): ... this. Output the register's
3908 "number" ui_out tuple here.
3909
47d48711
PA
39102013-06-07 Pedro Alves <palves@redhat.com>
3911
3912 * darwin-nat.c: Fix formating in copyright header.
3913 * darwin-nat.h: Likewise.
3914 * gnu-nat.c: Likewise.
3915 * machoread.c: Likewise.
3916
3aee8918
PA
39172013-06-07 Pedro Alves <palves@redhat.com>
3918
5f2b57b5 3919 PR server/14823
3aee8918
PA
3920 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3921 static. Output a global target description pointer.
3922 (init_registers_${name}): Adjust to initialize a
3923 target description structure.
3924
fe8400b4
WN
39252013-06-07 Will Newton <will.newton@linaro.org>
3926
3927 * printcmd.c (build_address_symbolic): Call
3928 gdbarch_addr_bits_remove for text minimal symbols.
3929
20df6206
WN
39302013-06-07 Will Newton <will.newton@linaro.org>
3931
3932 * MAINTAINERS: Add myself to Write After Approval.
3933
aef525cb
YQ
39342013-06-07 Yao Qi <yao@codesourcery.com>
3935
3936 * tracepoint.c (start_tracing): Move code to ...
3937 (trace_reset_local_state): ... here. New.
3938 (disconnect_tracing): Don't call set_current_traceframe,
3939 set_tracepoint_num, and set_traceframe_context. Call
3940 trace_reset_local_state instead.
3941 (tfile_close): Call trace_reset_local_state.
3942 * ctf.c (ctf_close): Likewise.
3943 * remote.c (remote_close): Likewise.
3944 * tracepoint.h (trace_reset_local_state): Declare.
3945
d2415c6c
DE
39462013-06-06 Doug Evans <dje@google.com>
3947
3948 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3949 and fix header docs.
3950
69fc87c2
DE
39512013-06-05 Doug Evans <dje@google.com>
3952 Keith Seitz <keiths@redhat.com>
3953
3954 PR 15519
3955 * cp-namespace.c (find_symbol_in_baseclass): Call
3956 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3957 Check result of call to lookup_symbol_static.
3958 Call lookup_static_symbol_aux unconditionally.
3959 Call check_typedef on base types before accessing them.
3960 (cp_lookup_nested_symbol): Fix comment.
3961
a513d1e8
LM
39622013-06-05 Luis Machado <lgustavo@codesourcery.com>
3963
3964 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3965 minimal symbols pointing to function descriptors.
3966
351a6f02
TT
39672013-06-05 Tom Tromey <tromey@redhat.com>
3968
3969 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3970
5e1b953b 39712013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 3972 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
3973
3974 * remote.c (remote_wait_as): Restore signal handler before returning
3975 when GDB gets a notification.
3976
f9e14852
GB
39772013-06-04 Gary Benson <gbenson@redhat.com>
3978
8445cbf1 3979 PR 2328
f9e14852
GB
3980 * breakpoint.h (handle_solib_event): Moved function declaration
3981 to solib.h.
3982 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3983 (bpstat_stop_status): Pass new argument to handle_solib_event.
3984 * solib.h (update_solib_breakpoints): New function declaration.
3985 (handle_solib_event): Moved function declaration from
3986 breakpoint.h.
3987 * solib.c (update_solib_breakpoints): New function.
3988 (handle_solib_event): Moved function from breakpoint.c.
3989 Updated to call solib_ops->handle_event if not NULL.
3990 * solist.h (target_so_ops): New fields "update_breakpoints" and
3991 "handle_event".
3992 * infrun.c (set_stop_on_solib_events): New function.
3993 (_initialize_infrun): Use the above for "set
3994 stop-on-solib-events".
3995 (handle_inferior_event): Pass new argument to handle_solib_event.
3996 * solib-svr4.c (probe.h): New include.
3997 (svr4_free_library_list): New forward declaration.
3998 (probe_action): New enum.
3999 (probe_info): New struct.
4000 (probe_info): New static variable.
4001 (NUM_PROBES): New definition.
4002 (svr4_info): New fields "using_xfer", "probes_table" and
4003 "solib_list".
4004 (free_probes_table): New function.
4005 (free_solib_list): New function.
4006 (svr4_pspace_data_cleanup): Free probes table and solib list.
4007 (svr4_copy_library_list): New function.
4008 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4009 (svr4_read_so_list): New parameter "prev_lm".
4010 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4011 (svr4_current_sos): New function.
4012 (probe_and_action): New struct.
4013 (hash_probe_and_action): New function.
4014 (equal_probe_and_action): Likewise.
4015 (register_solib_event_probe): Likewise.
4016 (solib_event_probe_at): Likewise.
4017 (solib_event_probe_action): Likewise.
4018 (solist_update_full): Likewise.
4019 (solist_update_incremental): Likewise.
4020 (disable_probes_interface_cleanup): Likewise.
4021 (svr4_handle_solib_event): Likewise.
4022 (svr4_update_solib_event_breakpoint): Likewise.
4023 (svr4_update_solib_event_breakpoints): Likewise.
4024 (svr4_create_solib_event_breakpoints): Likewise.
4025 (enable_break): Free probes table before creating breakpoints.
4026 Use svr4_create_solib_event_breakpoints to create breakpoints.
4027 (svr4_solib_create_inferior_hook): Free the solib list.
4028 (_initialize_svr4_solib): Initialise
4029 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4030
ced63ec0
GB
40312013-06-04 Gary Benson <gbenson@redhat.com>
4032
4033 * target.h (target_ops): New field
4034 "to_augmented_libraries_svr4_read".
4035 (target_augmented_libraries_svr4_read): New macro.
4036 * target.c (update_current_target): Handle
4037 to_augmented_libraries_svr4_read.
4038 * remote.c (remote_state): New field
4039 "augmented_libraries_svr4_read".
4040 (remote_augmented_libraries_svr4_read_feature): New function.
4041 (remote_protocol_features): Add entry for
4042 "augmented-libraries-svr4-read".
4043 (remote_augmented_libraries_svr4_read): New function.
4044 (init_remote_ops): Initialize
4045 remote_ops.to_augmented_libraries_svr4_read.
4046
7f91dbec
GB
40472013-06-04 Gary Benson <gbenson@redhat.com>
4048
4049 * NEWS: Update.
4050
607ece04
GB
40512013-06-04 Gary Benson <gbenson@redhat.com>
4052
4053 * objfiles.h (inhibit_section_map_updates): New function
4054 declaration.
4055 (resume_section_map_updates): Likewise.
4056 (resume_section_map_updates_cleanup): Likewise.
4057 * objfiles.c (objfile_pspace_info): Removed field
4058 "objfiles_changed_p". New fields "new_objfiles_available",
4059 "section_map_dirty" and "inhibit_updates".
4060 (allocate_objfile): Set new_objfiles_available.
4061 (free_objfile): Set section_map_dirty.
4062 (objfile_relocate1): Likewise.
4063 (in_plt_section): Likewise.
4064 (find_pc_section): Update the conditions under which the
4065 section map will be updated.
4066 (inhibit_section_map_updates): New function.
4067 (resume_section_map_updates): Likewise.
4068 (resume_section_map_updates_cleanup): Likewise.
4069
9ee6a5ac
GB
40702013-06-04 Gary Benson <gbenson@redhat.com>
4071
4072 * probe.h (get_probe_argument_count): New declaration.
4073 (evaluate_probe_argument): Likewise.
4074 * probe.c (get_probe_argument_count): New function.
4075 (evaluate_probe_argument): Likewise.
4076 (probe_safe_evaluate_at_pc): Use the above new functions.
4077
845d4708
AM
40782013-06-04 Alan Modra <amodra@gmail.com>
4079
4080 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4081 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4082 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4083 target mem reads on optional insns.
4084 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4085 ppc_insns_match_pattern calls.
4086 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4087 Add match for power7 thread safety insns, and new order of
4088 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4089 invocation in comment, and update rest of comment.
4090 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4091 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4092 (ppc64_standard_linkage2_target): Update insn offsets.
4093 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4094 stubs first. Update calls.
4095
404e278f
YQ
40962013-06-04 Yao Qi <yao@codesourcery.com>
4097
4098 * solib.c (solib_find): Don't need dir separator if path has
4099 drive spec.
4100
f6aea118
JB
41012013-06-03 Joel Brobecker <brobecker@adacore.com>
4102
4103 Revert (indirectly causes a SIGSEGV):
4104 * machoread.c (macho_symfile_read): Assign first cleanup to
4105 'back_to'.
4106
87967e27
YQ
41072013-06-03 Yao Qi <yao@codesourcery.com>
4108
4109 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4110 mi-parse.c. Make them static.
4111 (mi_all_values): Likewise.
4112 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4113 mi_parse_print_values. Make it external.
4114 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4115 Remove the declarations.
4116 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4117 * mi/mi-parse.h (mi_parse_print_values): Declare.
4118 * mi/mi-cmd-stack.c: Include mi-parse.h.
4119 (parse_print_values): Remove
4120 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4121 of parse_print_values.
4122 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4123
3ca73e0c
YQ
41242013-05-31 Pedro Alves <pedro@codesourcery.com>
4125 Yao Qi <yao@codesourcery.com>
4126
4127 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4128 (encode_actions): Move code to ...
4129 (all_tracepoint_actions_and_cleanup): ... here. New.
4130 (trace_dump_command): Likewise.
4131
4e993a19
TT
41322013-05-30 Tom Tromey <tromey@redhat.com>
4133
4134 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4135
e3b76b4f
TT
41362013-05-30 Tom Tromey <tromey@redhat.com>
4137
4138 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4139 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4140 'old_chain' argument. Add 'parser_result' argument.
4141 (gdb_xml_create_parser_and_cleanup): Remove old version.
4142 (gdb_xml_parse_quick): Update.
4143 (xml_process_xincludes): Update.
4144 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4145 declare.
4146
db26349c
TT
41472013-05-30 Tom Tromey <tromey@redhat.com>
4148
4149 * probe.c (collect_probes): Check arguments for NULL before
4150 calling compile_rx_or_error.
4151 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4152 Remove NULL return.
4153
77f9e713
TT
41542013-05-30 Tom Tromey <tromey@redhat.com>
4155
4156 * infrun.c (adjust_pc_after_break): Introduce an outer null
4157 cleanup.
4158
45475de7
TT
41592013-05-30 Tom Tromey <tromey@redhat.com>
4160
4161 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4162
ac5007fd
TT
41632013-05-30 Tom Tromey <tromey@redhat.com>
4164
4165 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4166 for 'old_chain'. Do not check 'head' before processing
4167 cleanups.
4168
cd82eddc
TT
41692013-05-30 Tom Tromey <tromey@redhat.com>
4170
4171 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4172 "cleanup_tuple".
4173
57cee33a
TT
41742013-05-30 Tom Tromey <tromey@redhat.com>
4175
4176 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4177 inner scope. Unconditionally call do_cleanups.
4178
795d915c
TT
41792013-05-30 Tom Tromey <tromey@redhat.com>
4180
4181 * source.c (find_and_open_source): Call do_cleanups.
4182
1fc3cf4a
TT
41832013-05-30 Tom Tromey <tromey@redhat.com>
4184
4185 * linux-thread-db.c (thread_db_load_search): Unconditionally
4186 call do_cleanups.
4187
e35ac9bf
TT
41882013-05-30 Tom Tromey <tromey@redhat.com>
4189
4190 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4191 for 'cleanup'; instead use a later one.
4192
f3300387
TT
41932013-05-30 Tom Tromey <tromey@redhat.com>
4194
4195 * python/py-breakpoint.c (bppy_get_commands): Use
4196 explicit, unconditional return.
4197 * python/py-frame.c (frapy_read_var): Likewise.
4198 * python/python.c (gdbpy_decode_line): Likewise.
4199
c27e16e3
TT
42002013-05-30 Tom Tromey <tromey@redhat.com>
4201
4202 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4203 do_cleanups on all return paths.
4204
5ae85e44
TT
42052013-05-30 Tom Tromey <tromey@redhat.com>
4206
4207 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4208
73b8d9da
TT
42092013-05-30 Tom Tromey <tromey@redhat.com>
4210
4211 * stabsread.c (read_struct_type): Call do_cleanups along
4212 all return paths.
4213
7d266584
MR
42142013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4215
4216 * mips-linux-tdep.c: Adjust formatting throughout.
4217
0f900f54
TT
42182013-05-30 Tom Tromey <tromey@redhat.com>
4219
4220 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4221 along all return paths.
4222
a991ac28
TT
42232013-05-30 Tom Tromey <tromey@redhat.com>
4224
4225 * symfile.c (find_separate_debug_file): Call do_cleanups
4226 along all return paths.
4227
1abaf042
TT
42282013-05-30 Tom Tromey <tromey@redhat.com>
4229
4230 * symtab.c (search_symbols): Introduce a null cleanup for
4231 'retval_chain'.
4232
edefe1da
TT
42332013-05-30 Tom Tromey <tromey@redhat.com>
4234
4235 * python/py-value.c (valpy_binop): Call do_cleanups before
4236 exiting loop.
4237
54f72dcc
TT
42382013-05-30 Tom Tromey <tromey@redhat.com>
4239
4240 * python/py-prettyprint.c (print_children): Remove extra
4241 do_cleanups call.
4242
af1c6971
TT
42432013-05-30 Tom Tromey <tromey@redhat.com>
4244
4245 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4246 all return paths.
4247
b862ce75
TT
42482013-05-30 Tom Tromey <tromey@redhat.com>
4249
4250 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4251 along all return paths.
4252
e12fefc8
TT
42532013-05-30 Tom Tromey <tromey@redhat.com>
4254
4255 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4256 call do_cleanups.
4257
4867f990
TT
42582013-05-30 Tom Tromey <tromey@redhat.com>
4259
4260 * varobj.c (c_value_of_root): Call do_cleanups along all
4261 return paths.
4262
4fd2d6af
TT
42632013-05-30 Tom Tromey <tromey@redhat.com>
4264
4265 * tracepoint.c (trace_dump_command): Unconditionally call
4266 do_cleanups.
4267
752eb8b4
TT
42682013-05-30 Tom Tromey <tromey@redhat.com>
4269
4270 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4271 do_cleanups earlier.
4272
e42d0aa5
TT
42732013-05-30 Tom Tromey <tromey@redhat.com>
4274
4275 * machoread.c (macho_symfile_read): Assign first cleanup to
4276 'back_to'.
4277
4bbc010a
TT
42782013-05-30 Tom Tromey <tromey@redhat.com>
4279
4280 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4281
b9635925
TT
42822013-05-30 Tom Tromey <tromey@redhat.com>
4283
4284 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4285
25f43500
TT
42862013-05-30 Tom Tromey <tromey@redhat.com>
4287
4288 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4289 call discard_cleanups.
4290 (inf_ptrace_attach): Likewise.
4291
d6a2e54a
TT
42922013-05-30 Tom Tromey <tromey@redhat.com>
4293
4294 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4295 return paths.
4296 (mips_initialize): Likewise.
4297 (common_open): Call do_cleanups.
4298
48be7c1b
TT
42992013-05-30 Tom Tromey <tromey@redhat.com>
4300
4301 * utils.c (internal_vproblem): Call do_cleanups.
4302
e61727ab
TT
43032013-05-30 Tom Tromey <tromey@redhat.com>
4304
4305 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4306
b81b921f
TT
43072013-05-30 Tom Tromey <tromey@redhat.com>
4308
4309 * cli/cli-script.c (setup_user_args): Don't return after error.
4310
fe48dfb1
TT
43112013-05-30 Tom Tromey <tromey@redhat.com>
4312
4313 * somread.c (som_symtab_read): Call do_cleanups.
4314
27833de7
TT
43152013-05-30 Tom Tromey <tromey@redhat.com>
4316
4317 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4318
5b3fca71
TT
43192013-05-30 Tom Tromey <tromey@redhat.com>
4320
4321 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4322 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4323 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4324 * source.c (show_substitute_path_command): Call do_cleanups.
4325 (unset_substitute_path_command, set_substitute_path_command):
4326 Likewise.
4327 * symfile.c (load_command): Call do_cleanups.
4328
af83e3f8
TT
43292013-05-30 Tom Tromey <tromey@redhat.com>
4330
4331 * contrib/cleanup_check.py: New file.
4332 * contrib/gcc-with-excheck: Add option parsing.
4333
564eac42
JB
43342013-05-30 Joel Brobecker <brobecker@adacore.com>
4335
4336 * windows-nat.c (windows_delete_thread): Add missing space
4337 in cast expression.
4338
47902076
HAQ
43392013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4340
4341 * inferior.c (top level): Include tilde.h.
4342 (add_inferior_command): Call tilde_expand on the value of 'exec'
4343 argument.
4344
23da373a
YQ
43452013-05-30 Pedro Alves <pedro@codesourcery.com>
4346 Yao Qi <yao@codesourcery.com>
4347
4348 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4349 Caller update.
4350 (encode_actions): Likewise.
4351 * remote.c (remote_download_tracepoint): Caller update.
4352 * tracepoint.h (encode_actions): Update declaration.
4353
a6e6f791
PA
43542013-05-30 Pedro Alves <palves@redhat.com>
4355
4356 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4357 pointer.
4358
36d25514
YQ
43592013-05-30 Yao Qi <yao@codesourcery.com>
4360
4361 * remote.c (remote_check_symbols): Remove unused parameter
4362 'objfile'.
4363 Declaration update.
4364 (remote_start_remote, remote_new_objfile): Caller update.
4365
62a813cc
YQ
43662013-05-30 Yao Qi <yao@codesourcery.com>
4367
4368 * mi/mi-cmds.c (mi_cmds): Define MI command
4369 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4370 DEF_MI_CMD_CLI.
4371
28439a30
PA
43722013-05-29 Pedro Alves <palves@redhat.com>
4373
4374 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4375 (remote_insert_watchpoint, remote_remove_watchpoint)
4376 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4377 (remote_verify_memory, compare_sections_command)
4378 (remote_search_memory): Set the general process/thread on the
4379 remote side.
4380
6ac1c082
PA
43812013-05-29 Pedro Alves <palves@redhat.com>
4382
4383 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4384 (_initialize_aarch64_tdep): Don't call
4385 initialize_tdesc_aarch64_without_fpu.
4386 * features/Makefile (WHICH): Remove reference to
4387 aarch64-without-fpu.
4388 * features/aarch64-without-fpu.c: Delete file.
4389 * regformats/aarch64-without-fpu.dat: Delete file.
4390
a73e3634
YQ
43912013-05-28 Yao Qi <yao@codesourcery.com>
4392
4393 * tracepoint.c (stringify_collection_list): Remove parameter
4394 'string'.
4395 (encode_actions): Caller update. Remove local variables.
4396
c0ea94eb
YQ
43972013-05-24 Yao Qi <yao@codesourcery.com>
4398
4399 * tracepoint.c (TFILE_PID): Remove.
4400 (tfile_open): Don't add thread and inferior.
4401 (tfile_close): Don't set 'inferior_ptid'. Don't call
4402 exit_inferior_silent.
4403 (tfile_thread_alive): Remove.
4404 (init_tfile_ops): Don't set field 'to_thread_alive' of
4405 tfile_ops.
4406
20d7f211
DE
44072013-05-23 Doug Evans <dje@google.com>
4408
4409 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4410
8658d16d
PA
44112013-05-23 Pedro Alves <palves@redhat.com>
4412
4413 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4414 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4415 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4416 Only define if HAVE_SOCKETS is defined.
4417 * configure.ac: Check for sys/socket.h.
4418 * config.in, configure: Regenerate.
4419
21aa081e
PA
44202013-05-23 Pedro Alves <palves@redhat.com>
4421
4422 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4423 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4424 printing uint32_t variables.
4425
c2d6af84
PA
44262013-05-23 Pedro Alves <palves@redhat.com>
4427
4428 * NEWS: Mention GDBserver range stepping support.
4429
c1e36e3e
PA
44302013-05-23 Yao Qi <yao@codesourcery.com>
4431 Pedro Alves <palves@redhat.com>
4432
4433 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4434 field.
4435 * infcmd.c (step_once, until_next_command): Enable range stepping.
4436 * infrun.c (displaced_step_prepare): Disable range stepping.
4437 (resume): Disable range stepping if stepping over a breakpoint or
4438 we have software watchpoints. If range stepping is enabled,
4439 assert the thread is in the stepping range.
4440 (clear_proceed_status_thread): Clear may_range_step.
4441 (handle_inferior_event): Disable range stepping as soon as we know
4442 the thread that hit the event. Re-enable it whenever we're going
4443 to step with a step range.
4444 * remote.c (struct vCont_action_support) <r>: New field.
4445 (use_range_stepping): New global.
4446 (remote_vcont_probe): Handle 'r' action.
4447 (append_resumption): Append an 'r' action if the thread may range
4448 step.
4449 (show_range_stepping): New function.
4450 (set_range_stepping): New function.
4451 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4452 'set range-stepping' and 'show range-stepping' commands.
4453 * NEWS: Mention range stepping, the new vCont;r action, and the
4454 new "set/show range-stepping" commands.
4455
d458bd84
PA
44562013-05-23 Yao Qi <yao@codesourcery.com>
4457 Pedro Alves <palves@redhat.com>
4458
4459 * remote.c (struct vCont_action_support): New struct.
4460 (struct remote_state) <support_vCont_t>: Remove field.
4461 <vCont_actions_support>: New field.
4462 (remote_vcont_probe, remote_stop_ns): Update.
4463
ce4c476a
PA
44642013-05-23 Yao Qi <yao@codesourcery.com>
4465 Pedro Alves <palves@redhat.com>
4466
4467 * gdbthread.h (pc_in_thread_step_range): New declaration.
4468 * thread.c (pc_in_thread_step_range): New function.
4469 * infrun.c (handle_inferior_event): Use it.
4470
ce70887a
JB
44712013-05-23 Joel Brobecker <brobecker@adacore.com>
4472
4473 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4474 of sprintf.
4475
55b87a52
KS
44762013-05-22 Keith Seitz <keiths@redhat.com>
4477
4478 * ada-lang.c (is_known_support_routine): Add explicit free of
4479 'func_name' from find_frame_funname.
4480 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4481 for func_name from find_frame_funname.
4482 * python/py-frame.c (frapy_name): Add explicit free of
4483 'name' from find_frame_funname.
4484 * stack.c (find_frame_funname): Add comment explaining that
4485 funcp must be freed by the caller.
4486 Return copy of symbol names instead of pointers.
4487 (print_frame): Add a cleanup for 'funname' from
4488 find_frame_funname.
4489 * stack.h (find_frame_funname): Remove "const" from
4490 'funname' parameter.
4491
5f2e6b00
TT
44922013-05-22 Tom Tromey <tromey@redhat.com>
4493
4494 PR c++/15401:
4495 * c-valprint.c (c_value_print): Use value_addr for
4496 references. Convert back to reference type with value_ref.
4497
d85c4847
EZ
44982013-05-22 Eli Zaretskii <eliz@gnu.org>
4499
4500 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4501 unloaded DLL, it will be done by handle_solib_event. See
4502 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4503 details.
4504
54eb231c
PM
45052013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4506
4507 * ui-out.c: Create typedef ui_out_level_p and define vector
4508 operations for that type.
4509 (struct ui_out): Use a vector instead of an array.
4510 (current_level): Return level from a vector.
4511 (push_level): Create a level in a vector.
4512 (pop_level): Delete a level in a vector.
4513 (ui_out_new): Create initial level zero level, and store in a
4514 vector.
4515 (ui_out_destroy): Add vector cleanup.
4516
ac90359c
PA
45172013-05-22 Pedro Alves <palves@redhat.com>
4518
4519 * python/python-internal.h (gdb_Py_DECREF): Tag with
4520 "ARI: editCase function".
4521
6dcc1893
PP
45222013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4523
4524 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4525
c8c735b9
PA
45262013-05-21 Pedro Alves <palves@redhat.com>
4527
4528 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4529 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4530 * python/py-utils.c (py_decref): Don't check for NULL before
4531 calling Py_DECREF.
4532
1915daeb
PA
45332013-05-21 Pedro Alves <palves@redhat.com>
4534
4535 * python/py-utils.c (py_decref): Remove extra braces.
4536 (gdb_pymodule_addobject): Remove extra braces.
4537 * python-internal.h (gdb_Py_DECREF): New static inline function.
4538 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4539
bd9673a4
PW
45402013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4541
4542 * breakpoints.c (detach_breakpoints): Do not
4543 detach breakpoints locations with loc_type bp_loc_other.
4544
ff6009d0
JK
45452013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4546
4547 Workaround Python 2.6.
4548 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4549 a block.
4550
3641da11
JK
45512013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4552
4553 Code cleanup: constification.
4554 * solib.c (solib_ops): Make return type and ops variable type const.
4555 (set_solib_ops): Make the new_ops parameter and ops variable const.
4556 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4557 (solib_add, solib_keep_data_in_core, clear_solib)
4558 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4559 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4560 const.
4561 * solib.h (set_solib_ops): Make the new_ops parameter const.
4562
776af39e
JB
45632013-05-21 Joel Brobecker <brobecker@adacore.com>
4564
4565 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4566 variable.
4567 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4568 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4569 (SYSTEM_GDBINIT_FILES): New variables.
4570 (all): Add stamp-system-gdbinit.
4571 (stamp-system-gdbinit): New rule.
4572 (clean-system-gdbinit, install-system-gdbinit)
4573 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4574 (install-only): Add dependency on install-system-gdbinit.
4575 (uninstall): Add dependency on uninstall-system-gdbinit.
4576 (clean): Add dependency on clean-system-gdbinit.
4577 * system-gdbinit/elinos.py: New file.
4578 * system-gdbinit/wrs-linux.py: New file.
4579
1509e573
JB
45802013-05-21 Joel Brobecker <brobecker@adacore.com>
4581
4582 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4583
c5867ab6
HZ
45842013-05-21 Hui Zhu <hui@codesourcery.com>
4585
4586 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4587 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4588 * mi/mi-cmd-break.c (ctype.h): New include.
4589 (gdb_obstack.h): New include.
4590 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4591 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4592 (mi_cmd_dprintf_insert): New.
4593 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4594 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4595
7d38e38f
TT
45962013-05-20 Tom Tromey <tromey@redhat.com>
4597
4598 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4599
97b77b39
TT
46002013-05-20 Tom Tromey <tromey@redhat.com>
4601
4602 * python/py-value.c (valpy_get_dynamic_type): Simplify
4603 dynamic_type assignment. Use Py_XINCREF.
4604
53e66479
TT
46052013-05-20 Tom Tromey <tromey@redhat.com>
4606
4607 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4608
dcf87832
TT
46092013-05-20 Tom Tromey <tromey@redhat.com>
4610
4611 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4612 (gdbpy_selected_frame): Move object-construction code
4613 out of TRY_CATCH.
4614
aa36459a
TT
46152013-05-20 Tom Tromey <tromey@redhat.com>
4616
4617 * python/py-arch.c (gdbpy_initialize_arch): Use
4618 gdb_pymodule_addobject.
4619 * python/py-block.c (gdbpy_initialize_blocks): Use
4620 gdb_pymodule_addobject.
4621 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4622 gdb_pymodule_addobject.
4623 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4624 gdb_pymodule_addobject.
4625 * python/py-event.c (gdbpy_initialize_event_generic): Use
4626 gdb_pymodule_addobject.
4627 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4628 gdb_pymodule_addobject.
4629 * python/py-evts.c (add_new_registry): Use
4630 gdb_pymodule_addobject.
4631 (gdbpy_initialize_py_events): Likewise.
4632 * python/py-finishbreakpoint.c
4633 (gdbpy_initialize_finishbreakpoints): Use
4634 gdb_pymodule_addobject.
4635 * python/py-frame.c (gdbpy_initialize_frames): Use
4636 gdb_pymodule_addobject.
4637 * python/py-function.c (gdbpy_initialize_functions): Use
4638 gdb_pymodule_addobject.
4639 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4640 gdb_pymodule_addobject.
4641 * python/py-infthread.c (gdbpy_initialize_thread): Use
4642 gdb_pymodule_addobject.
4643 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4644 gdb_pymodule_addobject.
4645 * python/py-param.c (gdbpy_initialize_parameters): Use
4646 gdb_pymodule_addobject.
4647 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4648 gdb_pymodule_addobject.
4649 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4650 gdb_pymodule_addobject.
4651 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4652 gdb_pymodule_addobject.
4653 * python/py-type.c (gdbpy_initialize_types): Use
4654 gdb_pymodule_addobject.
4655 * python/py-utils.c (gdb_pymodule_addobject): New function.
4656 * python/py-value.c (gdbpy_initialize_values): Use
4657 gdb_pymodule_addobject.
4658 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4659 * python/python.c (_initialize_python): Use
4660 gdb_pymodule_addobject.
4661
3d4a3c3e
TT
46622013-05-20 Tom Tromey <tromey@redhat.com>
4663
4664 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4665 * python/py-param.c (get_set_value, get_show_value): Use
4666 explicit decrefs.
4667 * python/python.c (start_type_printers, apply_type_printers):
4668 Use explicit decrefs.
4669
72ff8829
TT
46702013-05-20 Tom Tromey <tromey@redhat.com>
4671
4672 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4673 incref the module.
4674
02146ba5
TT
46752013-05-20 Tom Tromey <tromey@redhat.com>
4676
4677 * python/python.c (gdbpy_run_events): Decref the result
4678 of PyObject_CallObject.
4679
33ee792f
TT
46802013-05-20 Tom Tromey <tromey@redhat.com>
4681
4682 * python/py-symtab.c (set_sal): Use
4683 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4684 (symtab_and_line_to_sal_object): Update.
4685
fcb49fc8
TT
46862013-05-20 Tom Tromey <tromey@redhat.com>
4687
4688 * python/py-param.c (compute_enum_values): Decref 'item'.
4689
0646da15
TT
46902013-05-20 Tom Tromey <tromey@redhat.com>
4691
4692 * mi/mi-main.c: Include python-internal.h.
4693 (mi_cmd_list_features): Check gdb_python_initialized.
4694 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4695 (python_inferior_exit, python_new_objfile, add_thread_object)
4696 (delete_thread_object, py_free_inferior): Check
4697 gdb_python_initialized.
4698 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4699 gdb_python_initialized.
4700 * python/py-type.c (save_objfile_types): Check
4701 gdb_python_initialized.
4702 * python/python-internal.h (gdb_python_initialized): Declare.
4703 * python/python.c (ensure_python_env): Throw exception if
4704 Python not initialized.
4705 (before_prompt_hook, source_python_script_for_objfile)
4706 (start_type_printers, apply_type_printers,
4707 free_type_printers): Check gdb_python_initialized.
4708 * varobj.c (varobj_get_display_hint)
4709 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4710 (install_new_value_visualizer, varobj_set_visualizer)
4711 (value_get_print_value): Check gdb_python_initialized.
4712
999633ed
TT
47132013-05-20 Tom Tromey <tromey@redhat.com>
4714
4715 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4716 Check errors.
4717 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4718 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4719 Check errors.
4720 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4721 Check errors.
4722 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4723 Check errors.
4724 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4725 Check errors.
4726 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4727 init function to return 'int'.
4728 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4729 Return 'int'. Check errors.
4730 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4731 Check errors.
4732 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4733 Return 'int'. Check errors.
4734 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4735 Check errors.
4736 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4737 Check errors.
4738 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4739 Check errors.
4740 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4741 Check errors.
4742 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4743 Check errors.
4744 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4745 Check errors.
4746 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4747 Check errors.
4748 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4749 Check errors.
4750 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4751 Check errors.
4752 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4753 Check errors.
4754 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4755 Check errors.
4756 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4757 Check errors.
4758 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4759 Check errors.
4760 * python/python-internal.h (gdbpy_initialize_auto_load,
4761 gdbpy_initialize_values, gdbpy_initialize_frames,
4762 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4763 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4764 gdbpy_initialize_blocks, gdbpy_initialize_types,
4765 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4766 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4767 gdbpy_initialize_finishbreakpoints,
4768 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4769 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4770 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4771 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4772 gdbpy_initialize_signal_event,
4773 gdbpy_initialize_breakpoint_event,
4774 gdbpy_initialize_continue_event,
4775 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4776 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4777 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4778 * python/python.c (gdb_python_initialized): New global.
4779 (gdbpy_initialize_events): Return 'int'. Check errors.
4780 (_initialize_python): Check errors. Set
4781 gdb_python_initialized.
4782
18868860
TT
47832013-05-20 Tom Tromey <tromey@redhat.com>
4784
4785 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4786 Decref the reslut of PyObject_CallMethod.
4787
9f4ff0c2
TT
47882013-05-20 Tom Tromey <tromey@redhat.com>
4789
4790 * python/py-event.c (gdbpy_initialize_event_generic): Return
4791 early if PyType_Ready fails.
4792
0d3a2e8a
TT
47932013-05-20 Tom Tromey <tromey@redhat.com>
4794
4795 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4796 as 'default' in the switch.
4797
b86af38a
TT
47982013-05-20 Tom Tromey <tromey@redhat.com>
4799
4800 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4801 get_addr_from_python calls out of TRY_CATCH.
4802 (infpy_write_memory, infpy_search_memory): Likewise.
4803 * python/py-utils.c (get_addr_from_python): Return negative
4804 value on error. Use TRY_CATCH.
4805 * python/python-internal.h (get_addr_from_python): Use
4806 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4807
c127ec58
TT
48082013-05-20 Tom Tromey <tromey@redhat.com>
4809
4810 * python/py-event.c (evpy_emit_event): Decref the
4811 result of PyObject_CallFunctionObjArgs.
4812
ba327838
TT
48132013-05-20 Tom Tromey <tromey@redhat.com>
4814
4815 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4816 Correctly decref.
4817
d8191432
TT
48182013-05-20 Tom Tromey <tromey@redhat.com>
4819
4820 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4821
5d153bd1
TT
48222013-05-20 Tom Tromey <tromey@redhat.com>
4823
4824 * python/py-event.h (gdbpy_initialize_event_generic): Use
4825 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4826 * python/py-evts.c (add_new_registry): Use
4827 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4828 * python/python-internal.h
4829 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4830
56cc411c
TT
48312013-05-20 Tom Tromey <tromey@redhat.com>
4832
4833 * python/py-arch.c (archpy_disassemble): Update.
4834 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4835 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4836 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4837 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4838 macro.
4839 (GDB_PY_HANDLE_EXCEPTION): Update.
4840 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4841
8919e174
TT
48422013-05-20 Tom Tromey <tromey@redhat.com>
4843
4844 * python/python-internal.h (events_object_type): Remove.
4845
9b08f225
TT
48462013-05-20 Tom Tromey <tromey@redhat.com>
4847
f5aee5ee
AM
4848 * python/py-event.h (evpy_emit_event): Use
4849 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4850 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4851 New macro.
9b08f225 4852
f04010ff
TT
48532013-05-20 Tom Tromey <tromey@redhat.com>
4854
4855 * py-evtregistry.c (create_event_object): Decref
4856 eventregistry_object if PyList_New fails.
4857
3919fd96
TT
48582013-05-20 Tom Tromey <tromey@redhat.com>
4859
4860 * py-cmd.c (gdbpy_string_to_argv): Check result of
4861 PyList_New.
4862
0430e8cb
TT
48632013-05-20 Tom Tromey <tromey@redhat.com>
4864
4865 * python/python.c (before_prompt_hook): Add cleanup to
4866 decref 'hook'.
4867
764123e4
TT
48682013-05-20 Tom Tromey <tromey@redhat.com>
4869
4870 * python/py-function.c (fnpy_init): Decref result of
4871 PyObject_GetAttrString.
4872
634c58be
TT
48732013-05-20 Tom Tromey <tromey@redhat.com>
4874
4875 * python/py-threadevent.c (get_event_thread): Use
4876 CPYCHECKER_RETURNS_BORROWED_REF.
4877 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4878 New define.
4879 (pspace_to_pspace_object, objfile_to_objfile_object)
4880 (find_thread_object): Use it.
4881
62eec1a5
TT
48822013-05-20 Tom Tromey <tromey@redhat.com>
4883
4884 * python/py-arch.c (arch_object_type): Use
4885 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4886 * python/py-block.c (block_syms_iterator_object_type):
4887 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4888 * python/py-bpevent.c (breakpoint_event_object_type):
4889 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4890 * python/py-cmd.c (cmdpy_object_type): Use
4891 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4892 * python/py-continueevent.c (continue_event_object_type):
4893 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4894 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4895 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4896 * python/py-events.h (thread_event_object_type):
4897 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4898 * python/py-evtregistry.c (eventregistry_object_type): Use
4899 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4900 * python/py-exitedevent.c (exited_event_object_type):
4901 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4902 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4903 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4904 * python/py-function.c (fnpy_object_type): Use
4905 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4906 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4907 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4908 * python/py-infthread.c (thread_object_type): Use
4909 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4910 * python/py-lazy-string.c (lazy_string_object_type):
4911 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4912 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4913 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4914 * python/py-objfile.c (objfile_object_type): Use
4915 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4916 * python/py-param.c (parmpy_object_type):
4917 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4918 * python/py-progspace.c (pspace_object_type):
4919 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4920 * python/py-signalevent.c (signal_event_object_type):
4921 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4922 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4923 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4924 * python/py-type.c (type_object_type, field_object_type)
4925 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4926 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4927 define.
4928 (value_object_type, block_object_type, symbol_object_type)
4929 (event_object_type, stop_event_object_type, breakpoint_object_type)
4930 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4931
81ea8796
AT
49322013-05-20 Andreas Tobler <andreas@fgznet.ch>
4933
4934 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4935 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4936
a2ce51a0
DE
49372013-05-20 Doug Evans <dje@google.com>
4938
4939 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4940 For Fission.
4941 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4942 reading_dwo_directly.
4943 (struct signatured_type): New member dwo_unit.
4944 (struct die_reader_specs): New member comp_dir.
4945 (create_signatured_type_table_from_index): Use malloc for
4946 all_type_units instead of objfile's obstack.
4947 (create_all_type_units): Ditto.
4948 (fill_in_sig_entry_from_dwo_entry): New function.
4949 (add_type_unit): New function.
4950 (lookup_dwo_signatured_type): New function.
4951 (lookup_dwp_signatured_type): New function.
4952 (lookup_signatured_type): New arg cu. All callers updated.
4953 (init_cu_die_reader): Initialize comp_dir.
4954 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4955 Change assert of matching type signatures to call error on mismatch.
4956 (lookup_dwo_unit): Add assert.
4957 (init_tu_and_read_dwo_dies): New function.
4958 (init_cutu_and_read_dies): Call it.
4959 (build_type_unit_groups): Handle case of no type unit groups created.
4960 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4961 (lookup_dwo_cutu): Tweak complaint.
4962 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4963 (dwarf2_per_objfile_free): Free all_type_units.
4964
a25cd31f
JB
49652013-05-20 Joel Brobecker <brobecker@adacore.com>
4966
4967 * windows-nat.c (handle_unload_dll): Add missing empty line.
4968
4d804846
JB
49692013-05-20 Joel Brobecker <brobecker@adacore.com>
4970
4971 * dwarf2read.c (prototyped_function_p): New function.
4972 (read_subroutine_type): Use it.
4973
1c432e72
JB
49742013-05-20 Joel Brobecker <brobecker@adacore.com>
4975
4976 * rs6000-aix-tdep.c: De-indent some example code provided
4977 as a comment.
4978
4feebbdd
EBM
49792013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4980
4981 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4982 region is ok for a hardware watchpoint using the new ptrace interface
4983 on Power servers.
4984
7d0c9981
DE
49852013-05-17 Doug Evans <dje@google.com>
4986
4987 * NEWS: Mention new maintenance commands check-symtabs, and
4988 expand-symtabs, and renamed check-psymtabs.
4989 * psymtab.c (maintenance_check_psymtabs): Renamed from
4990 maintenance_check_symtabs. Only process already-expanded symbol
4991 tables.
4992 (_initialize_psymtab): Update.
4993 * symmisc.c (maintenance_check_symtabs): New function.
4994 (maintenance_expand_name_matcher): New function
4995 (maintenance_expand_file_matcher): New function
4996 (maintenance_expand_symtabs): New function.
4997 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4998 commands.
4999
6cbc7c3d
TT
50002013-05-17 Tom Tromey <tromey@redhat.com>
5001
5002 * python/py-inferior.c (infpy_read_memory): Don't call
5003 PyErr_SetString if PyObject_New fails.
5004 * python/py-frame.c (frame_info_to_frame_object): Don't call
5005 PyErr_SetString if PyObject_New fails.
5006
a48b32c0
L
50072013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5008
5009 * acinclude.m4: Add check for dlopen in libdl.
5010 * configure.ac: Ditto.
5011 * configure: Regenerate.
5012
3de661e6
PM
50132013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5014
5015 * frame.c (frame_stash): Convert to htab.
5016 (frame_addr_hash): New function.
5017 (frame_addr_hash_eq): New function.
5018 (frame_stash_create): Convert function to create
5019 a hash table.
5020 (frame_stash_add): Convert function to add an entry to a hash
5021 table.
5022 (frame_stash_find): Convert function to search the hash table.
5023 (frame_stash_invalidate): Convert function to empty the hash
5024 table.
5025 (get_frame_id): Only add to stash if a frame_id is created.
5026 (_initialize_frame): Call frame_stash_create.
5027
bb4168a9 50282013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5029
5030 * configure.ac: Ensure MIG is available when building for GNU Hurd
5031 hosts.
5032 * configure: Regenerate.
5033
d1be3247
JB
50342013-05-16 Joel Brobecker <brobecker@adacore.com>
5035
5036 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5037
b8fea896
JB
50382013-05-16 Joel Brobecker <brobecker@adacore.com>
5039
5040 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5041 all cleanups are done before returning from this function.
5042
af880d85
JB
50432013-05-15 Joel Brobecker <brobecker@adacore.com>
5044
5045 * utils.h: #include "exceptions.h".
5046 (enum errors): Remove partial declaration.
5047
356a5233
JB
50482013-05-15 Joel Brobecker <brobecker@adacore.com>
5049
5050 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5051 * gdbarch.h, gdbarch.c: Regenerate.
5052 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5053 handling.
5054
5055 * rs6000-aix-tdep.h: New file.
5056 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5057 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5058 "xml-utils.h".
5059 (struct field_info, struct ld_info_desc): New types.
5060 (ld_info32_desc, ld_info64_desc): New static constants.
5061 (struct ld_info): New type.
5062 (rs6000_aix_extract_ld_info): New function.
5063 (rs6000_aix_shared_library_to_xml): Likewise.
5064 (rs6000_aix_ld_info_to_xml): Likewise.
5065 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5066 (rs6000_aix_init_osabi): Add call to
5067 set_gdbarch_core_xfer_shared_libraries_aix.
5068 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5069 Remove "xml-utils.h" include.
5070 (LdInfo): Delete typedef.
5071 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5072 Delete macros.
5073 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5074 Adjust code accordingly.
5075 (rs6000_core_ldinfo): Delete, folded into
5076 rs6000_aix_core_xfer_shared_libraries_aix.
5077 (rs6000_xfer_shared_library): Delete.
5078 (rs6000_xfer_shared_libraries): Reimplement.
5079
742ce053
MM
50802013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5081
5082 * record.c (record_goto_cmdlist): New.
5083 (cmd_record_goto): Split into this ...
5084 (cmd_record_goto_begin): ... this
5085 (cmd_record_goto_end): ... and this.
5086 (_initialize_record): Change "record goto" to prefix command.
5087 Add commands for "record goto begin" and "record goto end".
5088 Add an alias for "record goto start" to "record goto begin".
5089
e93ba630
JK
50902013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5091
5092 * linespec.c (convert_linespec_to_sals): New comment for
5093 SOURCE_FILENAME assignment.
5094
5821aace
JK
50952013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5096
5097 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5098 internal_warning.
5099
a1b8c4cc
TT
51002013-05-14 Tom Tromey <tromey@redhat.com>
5101
5102 * eval.c (parse_and_eval_long): Make 'exp' const.
5103 * value.h (parse_and_eval_long): Update.
5104
23b3a2c3
TT
51052013-05-14 Tom Tromey <tromey@redhat.com>
5106
5107 * ui-file.c (gdb_fopen): Make arguments const.
5108 * ui-file.h (gdb_fopen): Make arguments const.
5109
ca623f82
TT
51102013-05-14 Tom Tromey <tromey@redhat.com>
5111
5112 * remote.c (remote_set_trace_notes): Make arguments const.
5113 * target.c (update_current_target): Update cast.
5114 * target.h (to_set_trace_notes): Make arguments const.
5115
503ebb2c
TT
51162013-05-14 Tom Tromey <tromey@redhat.com>
5117
5118 * go32-nat.c (go32_terminal_info): Make 'args' const.
5119 * inferior.h (child_terminal_info): Update.
5120 * inflow.c (child_terminal_info): Make 'args' const.
5121 * target.c (default_terminal_info): Make 'args' const.
5122 (debug_to_terminal_save_ours): Likewise.
5123 * target.h (struct target_ops) <to_terminal_info>: Make argument
5124 const.
5125
85e1311a
TT
51262013-05-13 Tom Tromey <tromey@redhat.com>
5127
5128 * gcore.c (create_gcore_bfd): Make 'filename' const.
5129 * gcore.h (create_gcore_bfd): Make 'filename' const.
5130 * record-full.c (record_full_save): Make 'recfilename' const.
5131 * target.c (target_save_record): Make 'filename' const.
5132 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5133 const.
5134 (target_save_record): Likewise.
5135
d62bfeaf
TT
51362013-05-13 Tom Tromey <tromey@redhat.com>
5137
f5aee5ee 5138 PR gdb/15338:
d62bfeaf
TT
5139 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5140 ranges section has been read.
5141
ac1ca910
TT
51422013-05-13 Tom Tromey <tromey@redhat.com>
5143
5144 PR exp/15364:
5145 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5146 STRUCTOP_PTR>: Return a not_lval value for
5147 EVAL_AVOID_SIDE_EFFECTS.
5148 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5149 for EVAL_AVOID_SIDE_EFFECTS.
5150
36d1c68c
JB
51512013-05-13 Joel Brobecker <brobecker@adacore.com>
5152
5153 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5154 floating point registers to register type before storing
5155 value.
5156 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5157 Likewise.
5158
21ff4686
TT
51592013-05-10 Joel Brobecker <brobecker@adacore.com>
5160 Tom Tromey <tromey@redhat.com>
5161
5162 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5163 New functions.
5164 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5165 Declare.
5166 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5167 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5168 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5169 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5170
d3685d60
TT
51712013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5172 Tom Tromey <tromey@redhat.com>
5173
5174 PR build/15414:
5175 * configure: Rebuild.
5176 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5177 with -Wno-format.
5178
eb9fe518
PA
51792013-05-10 Pedro Alves <palves@redhat.com>
5180
5181 * remote.c (_initialize_remote): Fix spelling of
5182 qXfer:traceframe-info:read packet in packet config command.
5183
9779ab84
PA
51842013-05-10 David Taylor <dtaylor@emc.com>
5185
5186 PR remote/15455
5187
5188 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5189 "QTro" at start of packet.
5190
060cfbef
JB
51912013-05-10 Joel Brobecker <brobecker@adacore.com>
5192
5193 * solib-aix.c (solib_aix_relocate_section_addresses):
5194 For the .bss section action, apply the same offset as
5195 the .data section.
5196
ab1c4e88
JB
51972013-05-10 Joel Brobecker <brobecker@adacore.com>
5198
5199 * solib-aix.c (solib_aix_relocate_section_addresses):
5200 Remove FIXME comment.
5201
c1357578
JB
52022013-05-10 Joel Brobecker <brobecker@adacore.com>
5203
5204 PR tdep/15420:
5205 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5206 New functions, directly copied from sparc-sol-thread.c.
5207 * sparc-sol-thread.c: Delete.
5208 * configure.ac: Remove code handling sparc-solaris-thread.c.
5209 * configure: Regenerate.
5210
1e611234
PM
52112013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5212
5213 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5214 filter logic.
5215 (backtrace_command): Add "no-filters" option parsing.
5216 (_initialize_stack): Alter help to reflect "no-filters" option.
5217 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5218 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5219 (py-frame.o): Add target
5220 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5221 filter files.
5222 * python/python.h: Add new frame filter constants, and flag enum.
5223 (apply_frame_filter): Add definition.
5224 * python/python.c (apply_frame_filter): New non-Python
5225 enabled function.
5226 * python/py-utils.c (py_xdecref): New function.
5227 (make_cleanup_py_xdecref): Ditto.
5228 * python/py-objfile.c: Declare frame_filters dictionary.
5229 (objfpy_dealloc): Add frame_filters dealloc.
5230 (objfpy_new): Initialize frame_filters attribute.
5231 (objfile_to_objfile_object): Ditto.
5232 (objfpy_get_frame_filters): New function.
5233 (objfpy_set_frame_filters): New function.
5234 * python/py-progspace.c: Declare frame_filters dictionary.
5235 (pspy_dealloc): Add frame_filters dealloc.
5236 (pspy_new): Initialize frame_filters attribute.
5237 (pspacee_to_pspace_object): Ditto.
5238 (pspy_get_frame_filters): New function.
5239 (pspy_set_frame_filters): New function.
5240 * python/py-framefilter.c: New file.
5241 * python/lib/gdb/command/frame_filters.py: New file.
5242 * python/lib/gdb/frames.py: New file.
5243 * python/lib/gdb/__init__.py: Initialize global frame_filters
5244 dictionary
5245 * python/lib/gdb/FrameDecorator.py: New file.
5246 * python/lib/gdb/FrameIterator.py: New file.
5247 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5248 * mi/mi-cmds.h: Declare.
5249 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5250 --no-frame-filter logic, and Python frame filter logic.
5251 (stack_enable_frame_filters): New function.
5252 (parse_no_frame_option): Ditto.
5253 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5254 filter logic.
5255 (mi_cmd_stack_list_locals): Ditto.
5256 (mi_cmd_stack_list_args): Ditto.
5257 (mi_cmd_stack_list_variables): Ditto.
5258 * NEWS: Add frame filter note.
5259
2cb9c859
DE
52602013-05-09 Doug Evans <dje@google.com>
5261
6bf667bb
DE
5262 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5263 All callers updated.
5264 (syms_from_objfile): Ditto. Make static.
5265 (symbol_file_add_with_addrs): Renamed from
5266 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5267 num_offsets. All callers updated.
5268 * symfile.h (syms_from_objfile): Delete.
5269
2cb9c859
DE
5270 * symfile.c (decrement_reading_symtab): Add assert.
5271 (increment_reading_symtab): Ditto.
5272
40aea477
JB
52732013-05-09 Joel Brobecker <brobecker@adacore.com>
5274
5275 * source.c (forward_search_command): Replace call to getc
5276 by call to fgetc.
5277 (reverse_search_command): Likewise.
5278
680d1742
DE
52792013-05-08 Doug Evans <dje@google.com>
5280
5281 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5282 matching test.
5283
17e760ae
JB
52842013-05-08 Joel Brobecker <brobecker@adacore.com>
5285
5286 * sol-thread.c (info_cb): Factorize the code a little.
5287
c0f5f490
JB
52882013-05-08 Joel Brobecker <brobecker@adacore.com>
5289
5290 * sol-thread.c (info_cb): Rework the output of the "maintenance
5291 info sol-threads" command a bit.
5292
5d74e061
JB
52932013-05-08 Joel Brobecker <brobecker@adacore.com>
5294
5295 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5296 Replace ti.ti_startfunc by ti.ti_pc.
5297
814a3ff7
JB
52982013-05-08 Joel Brobecker <brobecker@adacore.com>
5299
5300 * solib-aix.c (solib_aix_free_library_list): New function
5301 for the case where HAVE_LIBEXPAT is not defined.
5302
58ce7251
SDJ
53032013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5304
5305 PR breakpoints/15413:
5306 * breakpoint.c (condition_completer): Simplify the code to
5307 disconsider multiple locations of breakpoints when completing the
5308 "condition" command.
5309
be8b1ea6
PM
53102013-05-07 Pierre Muller <muller@sourceware.org>
5311
5312 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5313 instead of <sys/wait.h>.
5314
1e52bda6
PM
53152013-05-07 Pierre Muller <muller@sourceware.org>
5316
5317 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5318 trailing new line from warning message.
5319
27fd0c6b
PM
53202013-05-07 Pierre Muller <muller@sourceware.org>
5321
5322 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5323 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5324
e228ac87
JB
53252013-05-07 Joel Brobecker <brobecker@adacore.com>
5326
5327 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5328 error message (ARI fix).
5329
53302013-05-07 Joel Brobecker <brobecker@adacore.com>
5331
5332 * features/library-list-aix.dtd: Replace library-list by
5333 library-list-aix.
5334 * rs6000-nat.c: Replace library-list by library-list-aix
5335 throughout.
5336 * solib-aix.c: Likewise.
5337
53382013-05-07 Joel Brobecker <brobecker@adacore.com>
5339
5340 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5341 Renames TARGET_OBJECT_AIX_LIBRARIES.
5342 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5343 TARGET_OBJECT_LIBRARIES_AIX throughout.
5344 * solib-aix.c: Likwise.
5345
26a4dda9
YQ
53462013-05-07 Yao Qi <yao@codesourcery.com>
5347
5348 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5349 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5350
3582629f
YQ
53512013-05-07 Yao Qi <yao@codesourcery.com>
5352
5353 * solib-dsbt.c (enable_break): Declare.
5354 (dsbt_current_sos): Remove call to enable_break2.
5355 (enable_break2): Rename to enable_break. Set solib breakpoint
5356 on '_dl_debug_state'.
5357 (enable_break): Remove.
5358
aacbb8a5
LM
53592013-05-07 Luis Machado <lgustavo@codesourcery.com>
5360
5361 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5362 debug state prior to replicating existing hardware watchpoints or
5363 breakpoints.
5364
0c013353
JK
53652013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5366
5367 * gcore.c (gcore_create_callback): Ignore sections with
5368 separate_debug_objfile_backlink != NULL.
5369
a1217d97
SL
53702013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5371 Andrew Jenner <andrew@codesourcery.com>
5372 Chung-Lin Tang <cltang@codesourcery.com>
5373 Julian Brown <julian@codesourcery.com>
5374
5375 Based on the nios2-elf port from Altera Corporation.
5376
5377 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5378 nios2-linux-tdep.o.
5379 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5380 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5381 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5382 * nios2-tdep.h: New.
5383 * nios2-tdep.c: New.
5384 * nios2-linux-tdep.c: New.
5385 * features/Makefile (WHICH): Add nios2-linux.
5386 (nios2-linux-expedite): Set.
5387 * features/nios2-cpu.xml: New.
5388 * features/nios2.xml: New.
5389 * features/nios2-linux.xml: New.
5390 * features/nios2.c: New (autogenerated).
5391 * features/nios2-linux.c: New (autogenerated).
5392 * regformats/nios2-linux.dat: New (autogenerated).
5393 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5394 and commands.
5395
0892cb63
DE
53962013-05-06 Doug Evans <dje@google.com>
5397
3b7bacac
DE
5398 * symfile.c: Whitespace cleanup.
5399
0892cb63
DE
5400 * solist.h (struct target_so_ops): New member clear_so.
5401 * solib-svr4.c (svr4_clear_so): New function.
5402 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5403 * solib.c (clear_so): Renamed from free_so_symbols.
5404 All callers updated. Call target clear_so if it exists.
5405
40501e00
TT
54062013-05-06 Tom Tromey <tromey@redhat.com>
5407
5408 * ada-lang.c (ada_value_primitive_packed_val): Don't
5409 call value_incref.
5410 * value.c (set_value_parent): Incref the new parent and decref
5411 the old parent.
5412 (value_copy, value_primitive_field): Use set_value_parent.
5413
b6807d98
TT
54142013-05-06 Tom Tromey <tromey@redhat.com>
5415
5416 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5417 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5418 if needed.
5419 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5420 * dwarf2read.c (write_constant_as_bytes)
5421 (dwarf2_fetch_constant_bytes): New functions.
5422
3aef2284
TT
54232013-05-06 Tom Tromey <tromey@redhat.com>
5424
5425 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5426 parameters.
5427 (dwarf2_const_value_attr): Update.
5428
66f65e2b
TT
54292013-05-06 Tom Tromey <tromey@redhat.com>
5430
5431 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5432 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5433 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5434 Remove declaration.
5435
7919a973
TT
54362013-05-06 Tom Tromey <tromey@redhat.com>
5437
5438 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5439 objfile's obstack.
5440
a7bfba49
DE
54412013-05-06 Doug Evans <dje@google.com>
5442
3189cb12
DE
5443 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5444 * stabsread.h (process_one_symbol): Update declaration.
5445 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5446 * elfread.c (elf_symfile_relocate_probe): Ditto.
5447 * psymtab.c (relocate_psymtabs): Ditto.
5448 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5449 (objfile_relocate): Ditto.
5450 * objfiles.h (objfile_relocate): Update declaration.
5451 * symfile.c (relative_addr_info_to_section_offsets): Constify
5452 addrs parameter.
5453 (default_symfile_offsets): Ditto.
5454 (syms_from_objfile_1): Constify offsets parameter.
5455 (syms_from_objfile): Ditto.
5456 (symbol_file_add_with_addrs_or_offsets): Ditto.
5457 (symfile_map_offsets_to_segments): Constify data parameter.
5458 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5459 delta parameters of member relocate.
5460 (struct sym_probe_fns): Constify new_offsets,
5461 delta parameters of member sym_relocate_probe.
5462 (struct sym_fns): Constify section_addr_info parameter of member
5463 sym_offsets.
5464 (relative_addr_info_to_section_offsets): Update declaration.
5465 (default_symfile_offsets): Ditto.
5466 (syms_from_objfile): Ditto.
5467 (symfile_map_offsets_to_segments): Ditto.
5468
a7bfba49
DE
5469 * symfile.c (syms_from_objfile_1): Use correct section count when
5470 objfile->sf == NULL.
5471
5f8e0b8f
MF
54722013-05-06 Mike Frysinger <vapier@gentoo.org>
5473
5474 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5475
ea52d893
DE
54762013-05-06 Doug Evans <dje@google.com>
5477
5478 * psympriv.h (struct partial_symtab): Augment comment for member
5479 section_offsets.
5480
4d1eb6b4
JB
54812013-05-06 Joel Brobecker <brobecker@adacore.com>
5482
5483 Reimplement shared library support on ppc-aix...
5484 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5485 * features/library-list-aix.dtd: New file.
5486 * solib-aix.h, solib-aix.c: New file.
5487 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5488 (rs6000_find_toc_address_hook): Delete.
5489 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5490 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5491 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5492 "xml-utils.h".
5493 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5494 (vmap_symtab, fixup_breakpoints): Delete.
5495 (rs6000_xfer_shared_libraries): New function.
5496 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5497 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5498 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5499 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5500 (rs6000_xfer_shared_library): New function.
5501 (find_toc_address): Delete.
5502 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5503 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5504 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5505 before creating minimal symbol. Adjust function description
5506 accordingly.
5507 (scan_xcoff_symtab): Replace call to
5508 prim_record_minimal_symbol_and_info by call to
5509 record_minimal_symbol.
5510 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5511 around default_symfile_offsets.
5512 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5513 powerpc-aix targets.
5514 * config/rs6000/nm-rs6000.h: Delete.
5515 * config/powerpc/aix.mh (NAT_FILE): Delete.
5516 (NATDEPFILES): Remove xcoffsolib.o.
5517 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5518 (ALL_TARGET_OBS): Add solib-aix.o.
5519 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5520 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5521 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5522 * xcoffsolib.h, xcoffsolib.c: Delete.
5523
5524 * solib.c (reload_shared_libraries): Remove reference to
5525 SOLIB_CREATE_INFERIOR_HOOK.
5526 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5527 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5528 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5529 comment.
5530 * corelow.c (deprecated_core_resize_section_table): Delete.
5531 * exec.c: Remove include of xcoffsolib.h".
5532 (map_vmap, vmap): Delete.
5533 (exec_close_1): Remove references to vmap.
5534 (exec_file_attach): Remove vmap handling code, and reference
5535 to DEPRECATED_IBM6000_TARGET.
5536 (bfdsec_to_vmap): Delete.
5537 (exec_files_info): Remove block of code handling VMAP.
5538 * infcmd.c (post_create_inferior): Remove reference to
5539 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5540 * infrun.c (follow_exec): Remove reference to
5541 SOLIB_CREATE_INFERIOR_HOOK.
5542 * stack.c (print_frame): Remove reference to PC_SOLIB.
5543 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5544 (dsbt_relocate_main_executable): Likewise.
5545 * solib-frv.c (frv_current_sos): Likewise.
5546
0c4f667c
JB
55472013-05-06 Joel Brobecker <brobecker@adacore.com>
5548
5549 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5550 to target_write_memory and target_read_memory.
5551
726ce67c
JB
55522013-05-06 Joel Brobecker <brobecker@adacore.com>
5553
5554 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5555 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5556
c8c9911f
JB
55572013-05-06 Joel Brobecker <brobecker@adacore.com>
5558
5559 * darwin-nat.c: Replace all "%x" instances in format strings
5560 into "0x%x" throughout.
5561
fda184b6
JB
55622013-05-06 Joel Brobecker <brobecker@adacore.com>
5563
5564 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5565 gdb_assert by call to MACH_CHECK_ERROR.
5566 (darwin_attach_pid): Raise an error rather than a failed
5567 assertion when various system calls failed. Report a warning
5568 instead of raising a failed assertion when PREV_NOT is not NULL
5569 after call to mach_port_request_notification.
5570 (darwin_ptrace_me): Raise an error rather than a failed
5571 assertion when read returns nonzero.
5572
d1d69afb
JB
55732013-05-06 Joel Brobecker <brobecker@adacore.com>
5574
5575 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5576
dc90b24d
JK
55772013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5578
5579 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5580
faab9922
JK
55812013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5582
5583 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5584 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5585 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5586 a stale cleanup. Fix double free of NAME.
5587
e0ea48a0
EZ
55882013-05-04 Eli Zaretskii <eliz@gnu.org>
5589
5590 * windows-nat.c (windows_delete_thread): Accept an additional
5591 argument, the thread's exit code, and announce thread death when
5592 print_thread_events is non-zero and we are deleting a thread that
5593 is not the main thread.
5594 (get_windows_debug_event): Pass thread exit code to
5595 windows_delete_thread.
5596
83b2706a
KB
55972013-05-03 Kevin Buettner <kevinb@redhat.com>
5598
5599 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5600 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5601 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5602 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5603 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5604 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5605 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5606 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5607 (gdbarch_tdep): New struct.
5608 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5609 E_NUM_REGS.
5610 (v850e3v5_register_name): New function.
5611 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5612 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5613 code handling the struct return conventions for the RH850 ABI.
5614 Update all callers.
5615 (v850_eight_byte_align_p): New function.
5616 (v850_push_call_dummy): Push structs by value, not by reference
5617 for the RH850 ABI. Add support for eight byte alignment.
5618 (v850_dbtrap_breakpoint_from_pc): New function.
5619 (v850_gdbarch_init): Add ABI detection code. Register
5620 v850e3v5_register_name for the v850e3v5 architecture. Set the
5621 number of registers for v850e3v5. Register
5622 v850_dbtrap_breakpoint_from_pc as appropriate.
5623 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5624
d445b2f6
DE
56252013-05-03 Doug Evans <dje@google.com>
5626
5627 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5628 of bfd_count_sections.
5629 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5630 * symfile.c (default_symfile_offsets): Ditto.
5631 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5632 one entry, not bfd_count_sections entries.
5633
b3ce41ea
KB
56342013-05-03 Kevin Buettner <kevinb@redhat.com>
5635
5636 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5637 `save' and `restore' register groups. Don't include SPL
5638 or SPH in these groups.
5639 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5640 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5641 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5642 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5643 dwarf2_append_unwinders().
5644
96f7d3f1
PW
56452013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5646
5647 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5648 ignore SIGINT and SIGTRAP in case these internal signals are
5649 caught explicitely.
5650
b9dd1947
JB
56512013-05-01 Joel Brobecker <brobecker@adacore.com>
5652
5653 * darwin-nat.c (darwin_read_write_inferior): Change types
5654 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5655 of copy_count to "mach_msg_type_number_t".
5656 (darwin_read_dyld_info): Change type of parameter
5657 rdaddr to "gdb_byte *".
5658
4ca18a63
JB
56592013-05-01 Joel Brobecker <brobecker@adacore.com>
5660
5661 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5662 of &info->load_map from "char *" to "gdb_byte *".
5663
2b692d32
JB
56642013-05-01 Joel Brobecker <brobecker@adacore.com>
5665
5666 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5667 from "char *" to "gdb_byte *".
5668 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5669
a98c29a0
DE
56702013-04-30 Doug Evans <dje@google.com>
5671
6a506a2d
DE
5672 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5673 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5674 DWO stub. If DWO isn't found, just use stub.
5675 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5676
a98c29a0
DE
5677 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5678 calling init_cutu_and_read_dies.
5679
f92b06da
WT
56802013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5681
5682 * target-descriptions.c (maint_print_c_tdesc_cmd):
5683 Add case to parse structures as register types and
5684 bitfields.
5685
95eebdcc
WT
56862013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5687
5688 * MAINTAINERS (Write After Approval): Add myself to the list.
5689
019c1128
JB
56902013-04-30 Joel Brobecker <brobecker@adacore.com>
5691
5692 * sol-thread.c (rw_common): Change type of parameter "buf"
5693 to "gdb_byte *".
5694 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5695 rw_common to "gdb_byte *" instead of "char *".
5696
5812197c
JB
56972013-04-30 Joel Brobecker <brobecker@adacore.com>
5698
5699 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5700 of local variable msym to const struct bound_minimal_symbol.
5701 Adjust use accordingly.
5702 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5703
ecccb813
TS
57042013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5705
5706 * i386gnu-nat.c (CREG_OFFSET): New macro.
5707 (creg_offset): New array.
5708 (CREG_ADDR): Use creg_offset instead of reg_offset.
5709
f1d02dd4 57102013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
5711
5712 * mep-tdep.c (mep_write_pc): Delete.
5713 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5714 Add call to set_gdbarch_pc_regnum.
5715
f1d02dd4 57162013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
5717
5718 * common/filestuff.c: Replace #include <dirent.h> by
5719 #include "gdb_dirent.h".
5720
f1d02dd4 57212013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
5722
5723 * common/filestuff.c: Replace #include <sys/stat.h> by
5724 #include "gdb_stat.h".
5725
b385a60d
PM
57262013-04-29 Pierre Muller <muller@sourceware.org>
5727
5728 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5729 editCase function rule.
5730 (get_DW_AT_signature_type): Likewise.
5731
d27b54ad
JB
57322013-04-29 Joel Brobecker <brobecker@adacore.com>
5733
5734 * m32r-tdep.c (m32r_write_pc): Delete.
5735 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5736 Add call to set_gdbarch_pc_regnum.
5737
47d21dc5
PM
57382013-04-29 Pierre Muller <muller@sourceware.org>
5739
5740 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5741
9056882e
JB
57422013-04-29 Joel Brobecker <brobecker@adacore.com>
5743
5744 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5745
7ee4732a
YQ
57462013-04-28 Yao Qi <yao@codesourcery.com>
5747
5748 * solib-dsbt.c (fetch_loadmap): Re-indent.
5749 (displacement_from_map, enable_break2): Likewise.
5750 (dsbt_relocate_section_addresses): Likewise.
5751
2260af53 57522013-04-26 Joel Brobecker <brobecker@adacore.com>
5753
5754 GDB 7.6 released.
5755
ff546935
TT
57562013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5757
5758 PR corefiles/14983:
5759 * dwarf2read.c (process_full_comp_unit): Always create a static
5760 block.
5761
40fb6c5e
HZ
57622013-04-25 Hui Zhu <hui@codesourcery.com>
5763
5764 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5765 to loc->cmd_bytecode.
5766
74e04d1c
DE
57672013-04-24 Doug Evans <dje@google.com>
5768
5769 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5770
3cf62c1d
KS
57712013-04-22 Keith Seitz <keiths@redhat.com>
5772
5773 * tracepoint.c (trace_save): Call the writer's start method.
5774
bf9e4d0c
MB
57752013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5776
5777 PR gdb/10462
5778 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5779 before argument.
5780
5d71132c
TT
57812013-04-23 Tom Tromey <tromey@redhat.com>
5782
5783 * common/filestuff.c: Check USE_WIN32API before including
5784 sys/socket.h.
5785 (HAVE_F_GETFD): New define.
5786 (mark_cloexec): Check HAVE_F_GETFD.
5787 (gdb_open_cloexec): Change 'mode' to unsigned long.
5788 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5789 (gdb_pipe_cloexec): Check HAVE_PIPE.
5790 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5791 long.
5792
a11cfd87
HZ
57932013-04-23 Hui Zhu <hui@codesourcery.com>
5794
5795 PR gdb/15293
a11cfd87
HZ
5796 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5797
2d9442cc
HZ
57982013-04-23 Hui Zhu <hui@codesourcery.com>
5799
5800 PR gdb/15165
2d9442cc
HZ
5801 * breakpoint.c (dprintf_print_recreate): New.
5802 (save_breakpoints): Let it not save dprintf commands.
5803 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5804
614c279d
TT
58052013-04-22 Tom Tromey <tromey@redhat.com>
5806
5807 PR gdb/7912:
5808 * Makefile.in (SFILES): Add filestuff.c
5809 (COMMON_OBS): Add filestuff.o.
5810 (filestuff.o): New target.
5811 * auto-load.c (auto_load_objfile_script_1): Use
5812 gdb_fopen_cloexec.
5813 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5814 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5815 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5816 * common/agent.c (gdb_connect_sync_socket): Use
5817 gdb_socket_cloexec.
5818 * common/filestuff.c: New file.
5819 * common/filestuff.h: New file.
5820 * common/linux-osdata.c (linux_common_core_of_thread)
5821 (command_from_pid, commandline_from_pid, print_source_lines)
5822 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5823 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5824 gdb_fopen_cloexec.
5825 * common/linux-procfs.c (linux_proc_get_int)
5826 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5827 * config.in, configure: Rebuild.
5828 * configure.ac: Don't check for sys/socket.h. Check for
5829 fdwalk, pipe2.
5830 * corelow.c (core_open): Use gdb_open_cloexec.
5831 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5832 * fork-child.c (fork_inferior): Call close_most_fds.
5833 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5834 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5835 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5836 Use gdb_fopen_cloexec.
5837 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5838 gdb_open_cloexec.
5839 (linux_async_pipe): Use gdb_pipe_cloexec.
5840 * remote-fileio.c (remote_fileio_func_open): Use
5841 gdb_open_cloexec.
5842 * remote.c (remote_file_put, remote_file_get): Use
5843 gdb_fopen_cloexec.
5844 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5845 close_most_fds.
5846 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5847 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5848 * solib.c (solib_find): Use gdb_open_cloexec.
5849 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5850 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5851 (tfile_open): Use gdb_open_cloexec.
5852 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5853 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5854 * xml-support.c (xml_fetch_content_from_file): Use
5855 gdb_fopen_cloexec.
5856 * main.c (captured_main): Call notice_open_fds.
5857
5fda2332
EBM
58582013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5859
5860 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5861 'char *' to 'gdb_byte *'.
5862 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5863 'gdb_byte'.
5864
eb6c553b
YQ
58652013-04-22 Yao Qi <yao@codesourcery.com>
5866
5867 * infrun.c: Fix typo in comment.
5868
9991b207
SDJ
58692013-04-22 Andrew Haley <aph@redhat.com>
5870
5871 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5872 instead of "long".
5873
8b4833e3
YQ
58742013-04-20 Yao Qi <yao@codesourcery.com>
5875
5876 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5877 'char *' to 'gdb_byte *'. Cast the return value of
5878 'bt_ctf_get_char_array' to 'gdb_byte *'.
5879
bd3f3b55
PA
58802013-04-19 Pedro Alves <palves@redhat.com>
5881
5882 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5883 -Wpointer-sign.
5884 * configure: Regenerate.
5885
c49e7f76
PA
58862013-04-19 Pedro Alves <palves@redhat.com>
5887
5888 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5889 'void *'.
5890
12ff8552
PA
58912013-04-19 Pedro Alves <palves@redhat.com>
5892
5893 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5894 Change type of 'myaddr' parameter to gdb_byte pointer.
5895 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5896 to 'long long' pointer instead of to 'unsigned long long'.
5897 (monitor_write_memory_block, monitor_read_memory_single)
5898 (monitor_read_memory): Change type of 'myaddr' parameter to
5899 gdb_byte pointer.
5900
9c37696b
PA
59012013-04-19 Pedro Alves <palves@redhat.com>
5902
5903 * record.c (validate_history_size): Make parameter 'setting'
5904 unsigned.
5905
a398505b
PA
59062013-04-19 Pedro Alves <palves@redhat.com>
5907
5908 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5909 to 'gdb_byte *'.
5910
9f8afa72
PA
59112013-04-19 Pedro Alves <palves@redhat.com>
5912
5913 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5914 local to int.
5915
c714b426
PA
59162013-04-19 Pedro Alves <palves@redhat.com>
5917
5918 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5919 * ada-tasks.c (read_fat_string_value): Likewise.
5920
507a579c
PA
59212013-04-19 Pedro Alves <palves@redhat.com>
5922
5923 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5924 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5925 'offset', and adjust.
5926
f9d83a0b
PA
59272013-04-19 Pedro Alves <palves@redhat.com>
5928
5929 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5930 (read_index_from_section): Add cast to 'char *'.
5931
745eb4fd
PA
59322013-04-19 Pedro Alves <palves@redhat.com>
5933
5934 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5935
db5be46f
PA
59362013-04-19 Pedro Alves <palves@redhat.com>
5937
5938 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5939
0f928d68
PA
59402013-04-19 Pedro Alves <palves@redhat.com>
5941
5942 * record-full.c (record_full_get_bookmark): Change local 'ret'
5943 type to char * and add cast to gdb_byte *.
5944 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5945 string.
5946 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5947
89f6d837
PA
59482013-04-19 Pedro Alves <palves@redhat.com>
5949
5950 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5951 * python/py-prettyprint.c (print_string_repr): Change type of
5952 'output' local to char *. Add cast to gdb_byte * in
5953 LA_PRINT_STRING call.
5954 (print_children): Change type of 'output' local to char *.
5955 * python/py-value.c (valpy_string): Add cast to const char * in
5956 PyUnicode_Decode call.
5957
ce6ec7d8
PA
59582013-04-19 Pedro Alves <palves@redhat.com>
5959
5960 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5961 and change its type to 'const char *'. Adjust.
5962 (mips_send_packet): Add cast to 'char *', and remove cast to
5963 'unsigned char *'.
5964 (mips_receive_packet): Remove cast to 'unsigned char *'.
5965 (mips_load_srec): Use bfd_byte.
5966 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5967 (pmon_checkset): Make 'value' parameter unsigned.
5968
fda0389f
PA
59692013-04-19 Pedro Alves <palves@redhat.com>
5970
5971 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5972
bc20a4af
PA
59732013-04-19 Pedro Alves <palves@redhat.com>
5974
5975 * remote.c (remote_write_bytes_aux, compare_sections_command)
5976 (remote_read_qxfer)
5977 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5978 (remote_hostio_readlink, remote_bfd_iovec_pread)
5979 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5980 binary buffer, and char when buffer is used as string.
5981 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5982 (trace_save, tfile_open, traceframe_walk_blocks)
5983 (tfile_fetch_registers): Likewise.
5984
c628b528
PA
59852013-04-19 Pedro Alves <palves@redhat.com>
5986
5987 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5988 buffer and size_t size. Adjust.
5989 * ser-base.h (ser_base_write): Adjust.
5990 * ser-go32.c (cnts): Change type to size_t.
5991 (dos_write): Change prototype -- take 'void *'
5992 buffer and size_t size. Adjust.
5993 (dos_info): Print elements of 'cnts' as unsigned long.
5994 * serial.c (serial_write): Likewise.
5995 * serial.h (serial_write): Adjust.
5996 (struct serial_ops) <write>: Change prototype -- take 'void *'
5997 buffer and size_t size. Adjust.
5998
51a5cd90
PA
59992013-04-19 Pedro Alves <palves@redhat.com>
6000
6001 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6002 gdb_byte *.
6003 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6004
a9933661
PA
60052013-04-19 Pedro Alves <palves@redhat.com>
6006
6007 * alpha-tdep.c (alpha_extract_return_value): Use
6008 regcache_cooked_read_unsigned to read 'v0'.
6009
19afdd07
PA
60102013-04-19 Pedro Alves <palves@redhat.com>
6011
6012 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6013 parameters 'at', 'as' and 'offset' to uint32_t.
6014
96b32e50
PA
60152013-04-19 Pedro Alves <palves@redhat.com>
6016
6017 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6018 'is64' to signed 'int'.
6019
eb1bd1fb
PA
60202013-04-19 Pedro Alves <palves@redhat.com>
6021
6022 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6023 parameter to int *.
6024
463920bf
PA
60252013-04-19 Pedro Alves <palves@redhat.com>
6026
6027 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6028 'insnbuf' buffer type to unsigned int[].
6029
70242eb1
PA
60302013-04-19 Pedro Alves <palves@redhat.com>
6031
6032 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6033
9d1dd0e2
PA
60342013-04-19 Pedro Alves <palves@redhat.com>
6035
6036 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6037 unsigned long *.
6038
44096aee
PA
60392013-04-19 Pedro Alves <palves@redhat.com>
6040
6041 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6042 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6043 UINT_MAX.
6044 * mips-tdep.c (heuristic_fence_post): Change type to int.
6045 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6046
e4286e57
PA
60472013-04-19 Pedro Alves <palves@redhat.com>
6048
6049 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6050 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6051 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6052
001f13d8
PA
60532013-04-19 Pedro Alves <palves@redhat.com>
6054
6055 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6056 it to get a string view of the byte buffer.
6057 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6058 type to gdb_byte *. Adjust.
6059 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6060 Change local to char *.
6061 * solib-darwin.c (find_program_interpreter): Change return type to
6062 char *. Adjust.
6063 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6064 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6065 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6066 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6067 * solib-svr4.c (find_program_interpreter): Change return type to
6068 char *. Adjust.
6069 (enable_break): Change local 'interp_name' to char *.
6070 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6071 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6072 (spu_pseudo_register_write_spu): Use char for string buffer.
6073 Adjust.
6074 (info_spu_event_command, info_spu_signal_command): Add casts to
6075 'char *'.
6076
948f8e3d
PA
60772013-04-19 Pedro Alves <palves@redhat.com>
6078
6079 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6080 gdb_byte[].
6081 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6082 * ada-lang.c (ada_value_assign): Use gdb_byte.
6083 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6084 (alphanbsd_sigtramp_offset): Use gdb_byte.
6085 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6086 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6087 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6088 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6089 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6090 * arm-tdep.c (arm_stub_unwind_sniffer)
6091 (arm_displaced_init_closure): Use gdb_byte.
6092 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6093 (arm_default_thumb_le_breakpoint)
6094 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6095 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6096 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6097 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6098 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6099 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6100 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6101 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6102 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6103 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6104 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6105 (cris_store_return_value, cris_extract_return_value): Use
6106 gdb_byte.
6107 (constraint): Change type of parameter to char * from signed
6108 char*. Use gdb_byte.
6109 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6110 of local buffer to gdb_byte *.
6111 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6112 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6113 (add_address_entry): Change type of local buffer to gdb_byte[].
6114 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6115 (frv_push_dummy_call): Use gdb_byte.
6116 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6117 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6118 (hppa_hpux_supply_save_state): Use gdb_byte.
6119 * hppa-tdep.c (hppa32_push_dummy_call)
6120 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6121 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6122 (slotN_contents, replace_slotN_contents): Change type of parameter
6123 to gdb_byte *.
6124 (fetch_instruction, ia64_pseudo_register_write)
6125 (ia64_register_to_value, ia64_value_to_register)
6126 (ia64_extract_return_value, ia64_store_return_value)
6127 (ia64_push_dummy_call): Use gdb_byte.
6128 * m32c-tdep.c (m32c_return_value): Remove cast.
6129 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6130 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6131 gdb_byte.
6132 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6133 * mn10300-tdep.c (mn10300_store_return_value)
6134 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6135 gdb_byte.
6136 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6137 (moxie_process_record): Remove casts.
6138 * ppc-ravenscar-thread.c (supply_register_at_address)
6139 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6140 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6141 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6142 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6143 * remote.c (compare_sections_command): Use gdb_byte.
6144 * score-tdep.c (score7_free_memblock): Change type of parameter to
6145 gdb_byte *.
6146 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6147 gdb_byte *. Use gdb_byte.
6148 (sh_push_dummy_call_fpu): Use gdb_byte.
6149 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6150 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6151 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6152 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6153 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6154 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6155 (sh64_store_return_value, sh64_register_convert_to_virtual):
6156 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6157 (sh64_pseudo_register_write): Use gdb_byte.
6158 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6159 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6160 buffer.
6161 (irix_current_sos): Use gdb_byte.
6162 * solib-som.c (som_current_sos): Use gdb_byte.
6163 * sparc-ravenscar-thread.c (supply_register_at_address)
6164 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6165 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6166 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6167 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6168 'gdb_byte *'.
6169 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6170 'gdb_byte *'.
6171 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6172 * xstormy16-tdep.c (xstormy16_extract_return_value)
6173 (xstormy16_store_return_value): Change parameter type to
6174 'gdb_byte *'. Adjust.
6175 (xstormy16_push_dummy_call): Use gdb_byte.
6176 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6177 (call0_analyze_prologue, execute_code): Use gdb_byte.
6178
433730c9
PA
61792013-04-19 Vladimir Kargov <kargov@gmail.com>
6180 Pedro Alves <palves@redhat.com>
6181
6182 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6183 value contents.
6184
ac9ec31b
DE
61852013-04-17 Doug Evans <dje@google.com>
6186
6187 * dwarf2read.c (struct signatured_type): New member type.
6188 (struct attribute): Replace member signatured_type with signature.
6189 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6190 (read_call_site_scope): Call follow_die_ref instead of
6191 follow_die_ref_or_sig.
6192 (read_structure_type): Rewrite handling of signatured types.
6193 (read_enumeration_type): Ditto.
6194 (read_attribute_value): Update.
6195 (build_error_marker_type): New function.
6196 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6197 Don't call error for bad types, just build an error marker type.
6198 (dump_die_shallow): Update.
6199 (follow_die_sig_1): Renamed from follow_die_sig.
6200 Don't call error for bad types, instead return NULL.
6201 (follow_die_sig): New function.
6202 (get_signatured_type, get_DW_AT_signature_type): New functions.
6203
e546e8bb
YZ
62042013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6205
6206 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6207 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6208 function.
e546e8bb 6209
ab116149
YQ
62102013-04-17 Yao Qi <yao@codesourcery.com>
6211
6212 * top.c (print_gdb_configuration): Print configure-time
6213 parameter on using libbabeltrace or not.
6214
488a42b8
PA
62152013-04-16 Pedro Alves <palves@redhat.com>
6216
6217 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6218
f5fb825b
PA
62192013-04-16 Pedro Alves <palves@redhat.com>
6220
85d494ea 6221 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6222 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6223
e1154999
PA
62242013-04-16 Pedro Alves <palves@redhat.com>
6225
6226 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6227 * common/glibc_thread_db.h: ... this new file ...
6228 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6229
e3b50a7f
PA
62302013-04-16 Will Newton <will.newton@gmail.com>
6231 Pedro Alves <palves@redhat.com>
6232
6233 PR build/11881
6234
6235 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6236 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6237 HAVE_THREAD_DB_H.
6238
1c2e4450
PA
62392013-04-16 Pedro Alves <palves@redhat.com>
6240 Eli Zaretskii <eliz@gnu.org>
6241
6242 * NEWS: Mention "set foo unlimited".
6243
4031ecc5
DE
62442013-04-15 Doug Evans <dje@google.com>
6245
19c3d4c9
DE
6246 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6247 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6248 (create_dwo_cu_reader): Renamed from
6249 create_dwo_debug_info_hash_table_reader.
6250 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6251 Remove support for multiple CUs in a DWO file.
6252 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6253
4031ecc5
DE
6254 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6255 instead of phex.
6256 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6257 (create_dwo_in_dwp): Ditto.
6258
b340913d
TT
62592013-04-15 Tom Tromey <tromey@redhat.com>
6260
6261 * NEWS: Move recent entries into "since 7.6" section.
6262
cc16e6c9
TT
62632013-04-15 Tom Tromey <tromey@redhat.com>
6264
6265 PR c++/13588:
6266 * NEWS: Update.
6267 * break-catch-throw.c (struct exception_catchpoint)
6268 <exception_rx, pattern>: New fields.
6269 (fetch_probe_arguments, dtor_exception_catchpoint)
6270 (check_status_exception_catchpoint)
6271 (print_one_detail_exception_catchpoint): New functions.
6272 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6273 Compile regular expression if needed.
6274 (extract_exception_regexp): New function.
6275 (catch_exception_command_1): Use extract_exception_regexp.
6276 (compute_exception): Use fetch_probe_arguments.
6277 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6278 and check_status fields.
6279 * cp-abi.c (cplus_typename_from_type_info): New function.
6280 * cp-abi.h (cplus_typename_from_type_info): Declare.
6281 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6282 * gdb_regex.h (compile_rx_or_error): Declare.
6283 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6284 comment.
6285 (init_gnuv3_ops): Set get_type_from_type_info field.
6286 * probe.c (compile_rx_or_error): Move...
6287 * utils.c (compile_rx_or_error): ... here.
6288
72f1fe8a
TT
62892013-04-15 Tom Tromey <tromey@redhat.com>
6290
6291 PR c++/15176:
6292 * NEWS: Update.
6293 * break-catch-throw.c (compute_exception): New function.
6294 (exception_funcs): New global.
6295 (_initialize_break_catch_throw): Create $_exception.
6296 * cp-abi.c (cplus_type_from_type_info): New function.
6297 * cp-abi.h (cplus_type_from_type_info): Declare.
6298 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6299 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6300 (gnuv3_get_type_from_type_info): New functions.
6301 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6302
fc4746a2
TT
63032013-04-15 Tom Tromey <tromey@redhat.com>
6304
6305 * break-catch-throw.c (struct exception_names): New.
6306 (exception_functions): Change type.
6307 (re_set_exception_catchpoint): Look for SDT probes.
6308
15a73f56
TT
63092013-04-15 Tom Tromey <tromey@redhat.com>
6310
6311 PR c++/10119:
6312 * break-catch-throw.c (exception_functions): New global.
6313 (gnu_v3_exception_catchpoint_ops): Move earlier.
6314 (struct exception_catchpoint): New.
6315 (classify_exception_breakpoint): Rewrite.
6316 (re_set_exception_catchpoint): New function.
6317 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6318 Allocate a struct exception_catchpoint.
6319 (catch_exception_command_1): Update.
6320 (initialize_throw_catchpoint_ops): Set 're_set' method.
6321
916703c0
TT
63222013-04-15 Tom Tromey <tromey@redhat.com>
6323
6324 * Makefile.in (SFILES): Add break-catch-throw.c
6325 (COMMON_OBS): Add break-catch-throw.o.
6326 * break-catch-throw.c: New file.
6327 * breakpoint.c: Move exception-catching code to new file.
6328 (ep_parse_optional_if_clause): No longer static.
6329 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6330
6e72ca20
TT
63312013-04-15 Tom Tromey <tromey@redhat.com>
6332
6333 PR c++/9065:
6334 * NEWS: Update.
6335 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6336 * c-exp.y (TYPEID): New token.
6337 (exp): Add new TYPEID productions.
6338 (ident_tokens): Add "typeid".
6339 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6340 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6341 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6342 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6343 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6344 case.
6345 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6346 (build_std_type_info_type, gnuv3_get_typeid_type)
6347 (gnuv3_get_typeid): New functions.
6348 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6349 new fields on ABI object.
6350 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6351 * std-operator.def (OP_TYPEID): New.
6352
715c6909
TT
63532013-04-15 Tom Tromey <tromey@redhat.com>
6354
6355 * elfread.c (elf_symtab_read): Install versioned symbol under
6356 unversioned name as well.
6357
8de20a37
TT
63582013-04-15 Tom Tromey <tromey@redhat.com>
6359
6360 PR c++/11990:
6361 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6362 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6363 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6364 (gdb_demangle): New function.
6365 * cp-support.h (gdb_demangle): Declare.
6366 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6367 (dwarf2_name): Use gdb_demangle.
6368 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6369 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6370 suffixes from name.
6371 (gnuv3_print_method_ptr): Use gdb_demangle.
6372 * jv-lang.c (java_demangle): Use gdb_demangle.
6373 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6374 * language.c (unk_lang_demangle): Use gdb_demangle.
6375 * symtab.c (symbol_find_demangled_name)
6376 (demangle_for_lookup): Use gdb_demangle.
6377
591f19e8
TT
63782013-04-15 Tom Tromey <tromey@redhat.com>
6379
6380 PR c++/12824:
6381 * NEWS: Update.
6382 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6383 New constant.
6384 (classify_exception_breakpoint): New function.
6385 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6386 (print_mention_exception_catchpoint)
6387 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6388 (catch_exception_command_1): Handle "rethrow" catchpoint.
6389 (catch_rethrow_command): New function.
6390 (_initialize_breakpoint): Add "catch rethrow" command.
6391
4d40cad2
PM
63922013-04-15 Pierre Muller <muller@sourceware.org>
6393
6394 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6395 set_gdbarch_write_pc as deprecated anymore.
6396
30bcb456
JB
63972013-04-15 Joel Brobecker <brobecker@adacore.com>
6398
6399 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6400 declarations.
6401
da9160e4
YQ
64022013-04-13 Yao Qi <yao@codesourcery.com>
6403
6404 * ctf.c (_initialize_ctf): Include "completer.h".
6405 Call add_target_with_completer instead of add_target.
6406
39ed5604
JK
64072013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6408
6409 Fix GDB regression related to PR binutils/14813.
6410 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6411 * minidebug.c (lzma_close): Add return value comment.
6412 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6413 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6414 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6415
64162013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6417
6418 * config.in: Regenerate.
6419
d521ce57
TT
64202013-04-12 Tom Tromey <tromey@redhat.com>
6421
6422 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6423 const.
6424 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6425 (struct die_reader_specs) <buffer>: Likewise.
6426 (die_reader_func_ftype): Make 'info_ptr' const.
6427 (struct line_header) <include_dirs, statement_program_start,
6428 statement_program_end>: Now const.
6429 (struct file_entry) <name>: Likewise.
6430 (struct partial_die_info) <sibling>: Likewise.
6431 (struct dwarf_block) <data>: Likewise.
6432 (dwarf2_read_section): Remove cast.
6433 (dwarf2_get_section_info): Make 'bufp' const.
6434 (read_index_from_section): Constify.
6435 (dw2_get_file_names_reader): Make 'info_ptr' const.
6436 (dw2_get_primary_filename_reader): Likewise.
6437 (read_comp_unit_head): Make 'info_ptr' and return type const.
6438 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6439 Likewise.
6440 (read_abbrev_offset): Constify.
6441 (dwarf2_create_include_psymtab): Make 'name' const.
6442 (create_debug_types_hash_table): Update.
6443 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6444 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6445 Constify.
6446 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6447 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6448 (read_comp_units_from_section): Constify.
6449 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6450 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6451 const.
6452 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6453 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6454 (create_dwp_hash_table, dwarf2_ranges_read)
6455 (dwarf2_record_block_ranges): Constify.
6456 (read_die_and_children, read_die_and_siblings_1)
6457 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6458 const.
6459 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6460 (abbrev_table_read_table): Constify.
6461 (load_partial_dies): Make 'info_ptr' const.
6462 (read_partial_die, read_attribute_value, read_attribute): Make
6463 'info_ptr' and return type const.
6464 (read_address, read_initial_length)
6465 (read_checked_initial_length_and_offset, read_offset)
6466 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6467 const.
6468 (read_direct_string): Make 'buf' and return type const.
6469 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6470 (read_indirect_string): Make return type const.
6471 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6472 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6473 'info_ptr' const.
6474 (read_str_index): Make return type const.
6475 (add_include_dir): Make 'include_dir' const.
6476 (add_file_name): Make 'name' const.
6477 (dwarf_decode_line_header): Constify.
6478 (psymtab_include_file_name): Make return type const.
6479 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6480 (dwarf2_start_subfile): Make 'filename' const.
6481 (dwarf2_const_value_attr): Make 'bytes' const.
6482 (read_signatured_type_reader): Make 'info_ptr' const.
6483 (decode_locdesc): Constify.
6484 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6485 const.
6486 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6487 'mac_end', and return type const.
6488 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6489 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6490 type const.
6491 (per_cu_header_read_in): Constify.
6492 * symfile.h (dwarf2_get_section_info): Update.
6493
d47a1bc1
TT
64942013-04-12 Tom Tromey <tromey@redhat.com>
6495
6496 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6497
6eaaf48b
EZ
64982013-04-12 Eli Zaretskii <eliz@gnu.org>
6499
fc4c25bf 6500 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6501 * top.c (print_gdb_configuration): New function, displays the
6502 details about GDB configure-time parameters.
6503 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6504 * cli/cli-cmds.c (show_configuration): New function.
6505 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6506 * main.c (captured_main) <print_configuration>: New static var.
6507 <long_options>: Use it.
6508 If --configuration was given, call print_gdb_configuration.
6509
b292c783
JK
65102013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6511 Pedro Alves <palves@redhat.com>
6512
6513 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6514 (generated_files): Add gcore.
6515 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6516 HAVE_NATIVE_GCORE_HOST.
6517 (gcore): New.
6518 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6519 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6520 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6521 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6522 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6523 Add HAVE_NATIVE_GCORE_HOST.
6524 * configure: Regenerate.
6525 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6526 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6527 AC_CONFIG_FILES for gcore.
6528 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6529 gdb_have_gcore.
6530 * gdb_gcore.sh: Rename to ...
6531 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6532 and GCORE_TRANSFORM_NAME substitutions.
6533
c96b3c4f
JK
6534 Fix parsing tabs in ${gdb_target_obs}.
6535 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6536
d6cb50a2
JK
65372013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6538
6539 * remote.c (unpush_and_perror): Add output message final dot.
6540
cf2cb5ec
YQ
65412013-04-11 Yao Qi <yao@codesourcery.com>
6542
6543 * tracepoint.c (tfile_interp_line): Fit parameters line and
6544 utpp in one line.
6545
07293be4
JB
65462013-04-10 Joel Brobecker <brobecker@adacore.com>
6547
6548 * solib.c (solib_map_sections): Remove code overwriting
6549 SO->SO_NAME with the bfd's filename.
6550
f81d1120
PA
65512013-04-10 Pedro Alves <palves@redhat.com>
6552
6553 * cli/cli-decode.c (integer_unlimited_completer): New function.
6554 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6555 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6556 completer.
6557 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6558 (is_unlimited_literal): New function.
6559 (do_set_command): Handle literal "unlimited" arguments.
6560 * frame.c (_initialize_frame) <set backtrace limit>: Document
6561 "unlimited".
6562 * printcmd.c (_initialize_printcmd) <set print
6563 max-symbolic-offset>: Add help text.
6564 * record-full.c (_initialize_record_full) <set record full
6565 insn-number-max>: Likewise.
6566 * record.c (_initialize_record) <set record
6567 instruction-history-size, set record function-call-history-size>:
6568 Add help text.
6569 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6570 help text.
6571 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6572 Likewise.
6573 * source.c (_initialize_source) <set listsize>: Add help text.
6574 * utils.c (initialize_utils) <set height, set width>: Likewise.
6575 <set pagination>: Mention "set height unlimited".
6576 * valprint.c (_initialize_valprint) <set print elements, set print
6577 repeats>: Document "unlimited".
6578
2f9d54cf
PA
65792013-04-10 Pedro Alves <palves@redhat.com>
6580
6581 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6582 instead of disconnect_tracing.
6583 * infcmd.c (detach_command, disconnect_command): Call
6584 query_if_trace_running. Adjust.
6585 * top.c: Include "tracepoint.h".
6586 (quit_target): Delete. Contents moved ...
6587 (quit_force): ... here. Wrap each stage of teardown in
6588 TRY_CATCH. Call disconnect_tracing before detaching.
6589
393fd4c3
YQ
65902013-04-10 Hui Zhu <hui@codesourcery.com>
6591 Yao Qi <yao@codesourcery.com>
6592
6593 * configure.ac: Check libbabeltrace is installed.
6594 * config.in: Regenerate.
6595 * configure: Regenerate.
6596 * Makefile.in (LIBBABELTRACE): New.
6597 (CLIBS): Add LIBBABELTRACE.
6598 * ctf.c: Include "exec.h".
6599 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6600 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6601 (ctf_save_metadata_header): Define new type aliases in
6602 metadata.
6603 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6604 in metadata. Start a new faked packet for trace status.
6605 (ctf_write_status): Write trace status to CTF.
6606 (ctf_write_uploaded_tsv): Write TSV to CTF.
6607 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6608 (ctf_write_definition_end): End the faked packet.
6609
6610 (ctx, ctf_iter, trace_dirname): New.
6611 (start_pos): New variable.
6612 (ctf_destroy, ctf_open_dir, ctf_open): New.
6613 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6614 macros.
6615 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6616 (ctf_fetch_registers, ctf_xfer_partial): New.
6617 (ctf_get_trace_state_variable_value): New.
6618 (ctf_get_tpnum_from_frame_event): New.
6619 (ctf_get_traceframe_address): New.
6620 (ctf_trace_find, ctf_has_stack): New.
6621 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6622 (ctf_get_trace_status, ctf_read_status): New.
6623 (_initialize_ctf): New.
6624 * tracepoint.c (get_tracepoint_number): New
6625 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6626 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6627 * tracepoint.h: ... here.
6628 (get_tracepoint_number): Declare it.
6629 (get_uploaded_tsv): Declare it.
6630
6631 * NEWS: Mention new configure option.
6632
5c2b4418
HZ
66332013-04-10 Pedro Alves <palves@redhat.com>
6634 Hui Zhu <hui@codesourcery.com>
6635
6636 * breakpoint.c (dprintf_re_set): New.
6637 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6638 to dprintf_re_set.
6639
a5c66735
JB
66402013-04-09 Joel Brobecker <brobecker@adacore.com>
6641
6642 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6643 Remove solib-svr4.o from the list.
6644
9e77999c
JB
66452013-04-09 Joel Brobecker <brobecker@adacore.com>
6646
6647 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6648 Use gdb_assert_not_reached instead of invalid boolean expression.
6649
1927e618
PA
66502013-04-09 Pedro Alves <palves@redhat.com>
6651
6652 * remote.c (unpush_and_perror): New function.
6653 (readchar, remote_serial_write): Use it.
6654
10782d74
MM
66552013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6656
6657 * NEWS: Mention new btrace RSP packets.
6658
4c8429ef
TT
66592013-04-08 Tom Tromey <tromey@redhat.com>
6660
6661 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6662 long.
6663
8625fc1b
TT
66642013-04-08 Tom Tromey <tromey@redhat.com>
6665
6666 * maint.c (print_bfd_section_info): Print the section index.
6667 * symmisc.c (dump_msymbols): Print the section index.
6668
e27d198c
TT
66692013-04-08 Tom Tromey <tromey@redhat.com>
6670
6671 PR symtab/8424:
6672 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6673 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6674 * breakpoint.c (resolve_sal_pc): Update.
6675 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6676 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6677 (minsym_lookup_iterator_cb): Use it.
6678 (default_read_var_value): Update.
6679 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6680 Update.
6681 * infcmd.c (jump_command): Update.
6682 * linespec.c (minsym_found): Update.
6683 * maint.c (maintenance_translate_address): Update.
6684 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6685 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6686 * parse.c (write_exp_msymbol): Update.
6687 * printcmd.c (address_info): Update.
6688 * psymtab.c (find_pc_sect_psymbol): Update.
6689 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6690 SYMBOL_OBJ_SECTION.
6691 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6692 Don't initialize SYMBOL_OBJ_SECTION.
6693 * spu-tdep.c (spu_catch_start): Update.
6694 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6695 * symmisc.c (dump_msymbols, print_symbol): Update.
6696 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6697 how fallback section is computed.
6698 (fixup_symbol_section): Update.
6699 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6700 Update.
6701 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6702 Initialize SYMBOL_SECTION.
6703 * symtab.h (struct general_symbol_info) <section>: Update comment.
6704 <obj_section>: Remove.
6705 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6706 (SYMBOL_OBJFILE): New macro.
6707
e6dc44a8
TT
67082013-04-08 Tom Tromey <tromey@redhat.com>
6709
6710 * coffread.c (record_minimal_symbol): Update.
6711 * dbxread.c (record_minimal_symbol): Update.
6712 * elfread.c (record_minimal_symbol): Update.
6713 * machoread.c (macho_symtab_add_minsym): Update.
6714 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6715 Update.
6716 * minsyms.c (prim_record_minimal_symbol): Update.
6717 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6718 argument.
6719 (prim_record_minimal_symbol_and_info): Likewise.
6720 * minsyms.h (prim_record_minimal_symbol_full)
6721 (prim_record_minimal_symbol_and_info): Update.
6722 * symtab.c (allocate_symbol, initialize_symbol)
6723 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6724 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6725 Update.
6726
36192a8d
TT
67272013-04-08 Tom Tromey <tromey@redhat.com>
6728
6729 PR symtab/8423:
6730 * solib-som.c (som_solib_section_offsets): Use BFD section
6731 indices. Set offsets for all sections.
6732 * somread.c (som_symtab_read): Compute BFD section for
6733 symbol. Use prim_record_minimal_symbol_and_info.
6734 (som_symfile_read): Fix comment.
6735 (struct find_section_offset_arg): New.
6736 (find_section_offset, set_section_index): New functions.
6737 (som_symfile_offsets): Use set_section_index to compute
6738 section indices.
6739
65cf3563
TT
67402013-04-08 Tom Tromey <tromey@redhat.com>
6741
6742 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6743 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6744 gdb_bfd_section_index.
6745 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6746 New functions.
6747 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6748 Declare.
6749 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6750 Update.
6751 * objfiles.c (add_to_objfile_sections_full): New function.
6752 (add_to_objfile_sections): Use it.
6753 (build_section_table): Rewrite.
6754 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6755 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6756 (struct objfile) <sections>: Update comment.
6757 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6758 is NULL.
6759 (ALL_OBJSECTIONS): Use it.
6760 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6761 * solib-frv.c (frv_relocate_main_executable): Update.
6762 * solib-target.c (solib_target_relocate_section_addresses):
6763 Use gdb_bfd_section_index.
6764 * symfile.c (build_section_addr_info_from_section_table):
6765 Use gdb_bfd_section_index.
6766 (build_section_addr_info_from_bfd, place_section): Likewise.
6767 * symtab.c (fixup_section): Update.
6768 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6769
7cbd4a93
TT
67702013-04-08 Tom Tromey <tromey@redhat.com>
6771
6772 * minsyms.h (struct bound_minimal_symbol): New.
6773 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6774 Remove objfile argument.
6775 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6776 Return bound_minimal_symbol.
6777 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6778 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6779 Return bound_minimal_symbol.
6780 (in_gnu_ifunc_stub): Update.
6781 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6782 Remove 'objfile_p' argument.
6783 (lookup_solib_trampoline_symbol_by_pc): Update.
6784 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6785 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6786 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6787 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6788 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6789 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6790 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6791 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6792 stack.c, symtab.c, tui/tui-disasm.c: Update.
6793
f85f34ed
TT
67942013-04-08 Tom Tromey <tromey@redhat.com>
6795
6796 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6797 Use symbol's obstack, not an objfile.
6798 * coffread.c (process_coff_symbol): Update.
6799 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6800 * jv-lang.c (add_class_symbol): Update.
6801 * mdebugread.c (new_symbol): Update.
6802 * minsyms.c (prim_record_minimal_symbol_full)
6803 (terminate_minimal_symbol_table): Update.
6804 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6805 * stabsread.c (define_symbol, read_enum_type): Update.
6806 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6807 Handle Ada specially.
6808 (symbol_set_language): Add 'obstack' argument.
6809 (symbol_set_names): Update.
6810 (symbol_natural_name, symbol_demangled_name): Always use
6811 ada_decode_symbol.
6812 * symtab.h (struct general_symbol_info)
6813 <language_specific::obstack>: New field.
6814 <ada_mangled>: New field.
6815 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6816 (symbol_set_language): Update.
6817
ccde22c0
TT
68182013-04-08 Tom Tromey <tromey@redhat.com>
6819
6820 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6821 Take an obstack, not an objfile.
6822 (symbol_set_names): Update.
6823 * symtab.h (symbol_set_demangled_name): Update.
6824
e623cf5d
TT
68252013-04-08 Tom Tromey <tromey@redhat.com>
6826
6827 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6828 allocate_symbol.
6829 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6830 (read_func_scope): Call allocate_template_symbol.
6831 (new_symbol_full): Call allocate_symbol.
6832 * jit.c (finalize_symtab): Call allocate_symbol.
6833 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6834 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6835 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6836 (common_block_end): Call allocate_symbol.
6837 * symtab.c (allocate_symbol, initialize_symbol)
6838 (allocate_template_symbol): New functions.
6839 * symtab.c (allocate_symbol, initialize_symbol)
6840 (allocate_template_symbol): Declare.
6841 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6842
f6de8ec2
PA
68432013-04-08 Pedro Alves <palves@redhat.com>
6844 Keith Seitz <keiths@redhat.com>
6845
6846 * breakpoint.c (create_breakpoint): Rename
6847 "parse_condition_and_thread" parameter to "parse_arg". Update
6848 describing comment. If !PARSE_ARG, then error out if ARG is not
6849 the empty string after extracting the location.
6850 * breakpoint.h (create_breakpoint): Rename
6851 "parse_condition_and_thread" parameter to "parse_arg".
6852
f65ce5fb
AR
68532013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6854
6855 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6856
cc5925ad
YQ
68572013-04-07 Yao Qi <yao@codesourcery.com>
6858
6859 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6860 and 'addr2' to CORE_ADDR.
6861 * target.c (update_current_target): Update.
6862 * target.h (struct target_ops) <to_trace_find>: Change parameter
6863 type to CORE_ADDR.
6864 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6865 'addr2' to CORE_ADDR.
6866 (tfile_trace_find): Likewise.
6867 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6868 Change local variable 'addr' to type CORE_ADDR.
6869 * tracepoint.h (tfind_1): Update declaration.
6870
d9ac0664
EZ
68712013-04-06 Eli Zaretskii <eliz@gnu.org>
6872
6873 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6874 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6875 Include main.h.
6876
6877 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6878 here...
6879 * main.h (windows_get_absolute_argv0): ...to here.
6880
02142a6c
DE
68812013-04-05 Doug Evans <dje@google.com>
6882
6883 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6884 (read_cutu_die_from_dwo): Add comments.
6885 (read_structure_type): Update comment.
6886 (read_enumeration_type, read_namespace_type): Update comment.
6887 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6888
43662968
JK
68892013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6890
6891 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6892 * Makefile.in (gdb.z): Remove.
6893 (install-only): Remove $(man1dir) and gdb.1 installation.
6894 * gdb.1: Remove.
6895
9ead1b84
JK
68962013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6897
6898 Fix compatibility with Linux kernel 3.8.3.
6899 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6900 to more inner block. Remove parsing of NUMBER from outer block.
6901 Parse NUMBER only if KEYWORD has been identified.
6902
d1794952
JK
69032013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6904
6905 Fix variable name shadowing.
6906 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6907 filename to mapsfilename and update its uses.
6908
9025569e
EZ
69092013-04-05 Eli Zaretskii <eliz@gnu.org>
6910
6911 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6912 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6913 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6914 details of the problem.
6915
c9a6ce02
PA
69162013-04-04 Pedro Alves <palves@redhat.com>
6917 Hui Zhu <hui@codesourcery.com>
6918
6919 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6920 tracepoint, reset its STEP_COUNT and call validate_actionline.
6921
5ff888ce
DE
69222013-04-03 Doug Evans <dje@google.com>
6923
bf6af496
DE
6924 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6925 read_die_and_siblings.
6926 (read_die_and_siblings): New function.
6927 (read_cutu_die_from_dwo): Dump die if requested.
6928 (read_die_and_children): Call read_full_die_1 and
6929 read_die_and_siblings_1.
6930 (read_full_die): Dump die if requested.
6931
6932 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6933
0ac5b59e
DE
6934 * dwarf2read.c (struct dwo_file): New member comp_dir.
6935 Rename member name to dwo_name. All uses updated.
6936 (hash_dwo_file): Include comp_dir in computation.
6937 (eq_dwo_file): Ditto.
6938 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6939 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6940
5ff888ce
DE
6941 * psymtab.c (read_psymtabs_with_fullname): Don't call
6942 psymtab_to_fullname if the basenames are different.
6943
ec83d211
JK
69442013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6945
6946 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6947 New entry about "fullname" presence.
6948
4f4352f7
PA
69492013-04-03 Pedro Alves <palves@redhat.com>
6950
6951 * NEWS: Mention x86_64/Cygwin as new native configuration.
6952
3d1d5ea3
DE
69532013-04-02 Doug Evans <dje@google.com>
6954
6955 * dwarf2read.c (read_structure_type): Fix typo in comment.
6956
be9a8770
PA
69572013-04-02 Pedro Alves <palves@redhat.com>
6958
6959 * NEWS: Mention "set/show debug aarch64", "set/show debug
6960 coff-pe-read" and "set/show debug mach-o".
6961
a46c1e42
PA
69622013-04-02 Pedro Alves <palves@redhat.com>
6963
6964 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6965
3ad18b19
EZ
69662013-04-02 Eli Zaretskii <eliz@gnu.org>
6967
6968 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6969 gdb_string.h is now in common/.
6970
e9f1758d
PA
69712013-04-02 Pedro Alves <palves@redhat.com>
6972
6973 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6974 under "New options".
6975
049dc89b
JK
69762013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6977
6978 Revert this patch:
6979 PR gdb/15275
6980 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6981
c33e31fd
PA
69822013-04-02 Pedro Alves <palves@redhat.com>
6983
6984 PR gdb/15275
6985
6986 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6987 (remote_serial_write): New function.
6988 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6989
ea5f3910
JW
69902013-04-01 Jiong Wang <jiwang@tilera.com>
6991
6992 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 6993 "New targets" sections.
ea5f3910 6994
5c6fa7ab
DE
69952013-04-01 Doug Evans <dje@google.com>
6996
c0f78cd4
DE
6997 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6998 (process_enumeration_scope): Simplify.
6999
0186c6a7
DE
7000 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7001 type_unit_group ...
7002 (struct signatured_type): ... to here.
7003 (sig_type_ptr): New typedef.
7004 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7005 out of union 't'. All uses updated.
7006 (dw2_get_file_names_reader): Assert not called for a type unit.
7007 (dw2_get_file_names): Assert not called for a type unit or type
7008 unit group.
7009 (build_type_psymtabs_reader): Assert called for a type unit.
7010 (build_type_psymtab_dependencies): Assert called for a type unit group.
7011
5c6fa7ab
DE
7012 * dwarf2read.c (free_dwo_file): Add comment.
7013 (dwarf2_per_objfile_free): Unref dwp bfd.
7014
b3c0ad67 70152013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7016
7017 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7018 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7019 (read_pe_exported_syms): Remove unused 'exportix'.
7020 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7021 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7022 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7023
e2df1547
AR
70242013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7025
7026 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7027 (print_it_watchpoint): Remove unused 'bl'.
7028 (say_where): Remove unused 'uiout'.
7029 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7030 (bkpt_breakpoint_hit): Remove unused 'b'.
7031 (internal_bkpt_print_it): Remove unused 'uiout'.
7032 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7033
d81e75c0
TD
70342013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7035
7036 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7037 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7038
5a8b3f62
DE
70392013-03-29 Doug Evans <dje@google.com>
7040
ab5088bf
DE
7041 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7042 Delete arg is_dwp. All callers updated.
7043 (open_dwp_file): New function.
7044 (open_and_init_dwp_file): Call it.
7045 (get_dwp_file): New function.
7046 (lookup_dwo_cutu): Call it.
7047
a8ad1e57
DE
7048 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7049 unnecessary, cleanup.
7050
6296d8c1
DE
7051 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7052
b0c7bfa9
DE
7053 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7054 (lookup_dwo_unit): New function.
7055 (init_cutu_and_read_dies): Move DWO handling to new functions.
7056
c88ee1f0
DE
7057 * dwarf2read.c (struct signatured_type): Tweak comment.
7058 (struct dwo_unit): Tweak comment.
7059 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7060 (create_dwo_debug_info_hash_table): Tweak comment.
7061 (dwarf2_per_cu_offset_and_type): Tweak comment.
7062
5a8b3f62
DE
7063 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7064 missing .debug_types section.
7065
9852c492
YQ
70662013-03-29 Yao Qi <yao@codesourcery.com>
7067
7068 * corelow.c: Include "completer.h".
7069 (_initialize_corelow): Call add_target_with_completer with
7070 argument 'filename_completer'.
7071 * tracepoint.c: Likewise.
7072 * exec.c (_initialize_exec): Likewise.
7073 * target.c (add_target): Rename to ...
7074 (add_target_with_completer): ... this. Call set_cmd_completer
7075 if parameter completer is not NULL.
7076 (add_target): New.
7077 * target.h: Include "command.h".
7078 (add_target_with_completer): Declare it.
7079
af312be7
JB
70802013-03-28 Joel Brobecker <brobecker@adacore.com>
7081
7082 * coffread.c (is_import_fixup_symbol): New function.
7083 (record_minimal_symbol): Use is_import_fixup_symbol to
7084 detect import fixup symbols, and discard them.
7085
8a0459fd
DE
70862013-03-28 Doug Evans <dje@google.com>
7087
0349ea22
DE
7088 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7089 types hash table until we know we need it.
7090
f652bce2
DE
7091 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7092 index numbers.
7093
e4a48d9d
DE
7094 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7095 All callers updated.
7096 (dw2_print_stats): Print #read CUs too.
7097 (dump_die_shallow): Print signatured types better.
7098
8a0459fd
DE
7099 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7100 info_or_types_section to section. All uses updated.
7101 (struct dwo_unit): Ditto.
7102
bd3eecc3
PA
71032013-03-28 Pedro Alves <palves@redhat.com>
7104
7105 * NEWS (New options): New section.
7106 (New options): Mention set/show remote trace-status-packet.
7107 * remote.c (PACKET_qTStatus): New enumeration value.
7108 (remote_get_trace_status): Skip sending qTStatus if the packet is
7109 disabled. Use packet_ok.
7110 (_initialize_remote): Register a configuration command for
7111 qTStatus packet.
7112
41245087
DE
71132013-03-28 Doug Evans <dje@google.com>
7114
7edbb660
DE
7115 * symfile.c (find_separate_debug_file): Add comment.
7116 (terminate_after_last_dir_separator): Tweak comment.
7117
0018ea6f
DE
7118 * dwarf2read.c (create_partial_symtab): Add forward decl.
7119 (create_partial_symtab): Move to be closer to other psymtab functions.
7120 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7121
ca69b9e6
DE
7122 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7123 (compute_symtab_includes): Remove unnecessary forward declaration.
7124 (die_needs_namespace): Add comment marking group of functions for
7125 dwarf2 name computation.
7126
a9375afe
DE
7127 * typeprint.c (_initialize_typeprint): Improve type help text.
7128
41245087
DE
7129 * python/python.c (finish_python_initialization): Provide suggestion
7130 for how to tell gdb to find its python files.
7131
7f7cc265
PA
71322013-03-28 Pedro Alves <palves@redhat.com>
7133
7134 PR gdb/15294
7135
7136 * source.c (_initialize_source): Change back "set listsize" to an
7137 integer command.
7138
ec21308c
JK
71392013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7140
7141 PR gdb/15275
7142 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7143
840a9a1f
PA
71442013-03-27 Pedro Alves <palves@redhat.com>
7145
7146 * top.c (history_size): Rename to ...
7147 (history_size_setshow_var): ... this. Add comment.
7148 (show_commands): Use readline's 'history_length' instead of
7149 computing the history length by calling history_get in a loop.
7150 (set_history_size_command): Error out for sizes over INT_MAX.
7151 Restore previous history size on invalid size.
7152 (init_history): If HISTSIZE is negative, leave the history size as
7153 zero. Add comments.
7154 (init_main): Adjust.
7155
826ecc4d
PA
71562013-03-27 Pedro Alves <palves@redhat.com>
7157
7158 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7159 coff_pe_read" command to "set debug coff-pe-read".
7160
0ccfeeae
MM
71612013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7162
7163 * record.c (command_size_to_target_size): Fix size comparison.
7164 Change parameter type from pointer to integer to integer.
7165 Update all users.
7166
40653b35
PM
71672013-03-27 Pierre Muller <muller@sourceware.org>
7168
7169 * windows-nat.c (handle_output_debug_string): Avoid typecast
7170 from integer of different size warning.
7171
c62fa0e2
JB
71722013-03-26 Joel Brobecker <brobecker@adacore.com>
7173
7174 * windows-nat.c (handle_output_debug_string): Add empty line
7175 after local block variable definition.
7176
2c619be2
PA
71772013-03-26 Pedro Alves <palves@redhat.com>
7178
7179 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7180 (net_open): Make 'polls' local unsigned.
7181
1b493192
PA
71822013-03-26 Pedro Alves <palves@redhat.com>
7183
7184 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7185 a zuinteger command instead of uinteger.
7186
7ee70bf5
PA
71872013-03-26 Pedro Alves <palves@redhat.com>
7188
7189 * record-full.c (record_full_insn_num): Make it unsigned.
7190 (record_full_check_insn_num, record_full_message)
7191 (record_full_registers_change, record_full_xfer_partial): Remove
7192 record_full_insn_max_num check (it's always != 0).
7193 (record_full_info, record_full_restore): Use %u as format string.
7194 (): Use %u as format string.
7195 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7196 check (it's always != 0).
7197
dfd1f9bb
PA
71982013-03-26 Pedro Alves <palves@redhat.com>
7199
7200 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7201 and "set dcache size" commands zuinteger instead of uinteger.
7202
addb4faf
PA
72032013-03-26 Pedro Alves <palves@redhat.com>
7204
7205 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7206 command zuinteger instead of uinteger.
7207
b75bf488
PA
72082013-03-26 Pedro Alves <palves@redhat.com>
7209
7210 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7211 zuinteger instead of uinteger.
7212
42c634cb
PA
72132013-03-26 Pedro Alves <palves@redhat.com>
7214
7215 * record.c (record_insn_history_size_setshow_var)
7216 (record_call_history_size_setshow_var): New globals.
7217 (command_size_to_target_size): New function.
7218 (cmd_record_insn_history, cmd_record_call_history): Use
7219 command_size_to_target_size instead of cast.
7220 (validate_history_size, set_record_insn_history_size)
7221 (set_record_call_history_size): New functions.
7222 (_initialize_record): Install set_record_insn_history_size and
7223 set_record_call_history_size as "set" hooks of "set record
7224 instruction-history-size" and "set record
7225 function-call-history-size".
7226
1fb2e2b5
PA
72272013-03-26 Pedro Alves <palves@redhat.com>
7228
7229 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7230 use with history_max_entries use. Remove FIXME note.
7231
99c819ee
MM
72322013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7233
7234 * record-btrace.c (record_btrace_close): Call
7235 record_btrace_auto_disable.
7236
9f9e404c
JB
72372013-03-25 Joel Brobecker <brobecker@adacore.com>
7238
7239 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7240
ebcdfe33
DE
72412013-03-25 Doug Evans <dje@google.com>
7242
7243 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7244
24955f63
TT
72452013-03-25 Tom Tromey <tromey@redhat.com>
7246
7247 PR symtab/11462:
7248 * c-exp.y (exp): Add new productions for destructors after '.' and
7249 '->'.
7250 (write_destructor_name): New function.
7251
fce632b6
TT
72522013-03-25 Tom Tromey <tromey@redhat.com>
7253
7254 PR c++/9197:
7255 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7256 value_struct_elt, not lookup_struct_elt_type.
7257 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7258 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7259 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7260
a4341769
YQ
72612013-03-25 Yao Qi <yao@codesourcery.com>
7262
7263 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7264 instead of '_mkdir'.
7265
b5981e5a
EZ
72662013-03-23 Eli Zaretskii <eliz@gnu.org>
7267
7268 * windows-nat.c (windows_get_absolute_argv0): New function.
7269 * windows-nat.h: Add its prototype.
7270
7271 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7272 Use IS_DIR_SEPARATOR instead of looking for a character inside
7273 SLASH_STRING. Include filenames.h.
7274 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7275 relocate_gdb_directory works when passed gdb_program_name.
7276 Include windows-nat.h.
7277
598d3636
JK
72782013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7279
7280 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7281 * remote.c (trace_error): Remove the special handling of '2'.
7282 (readchar) <SERIAL_EOF>
7283 (readchar) <SERIAL_ERROR>
7284 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7285 (remote_get_trace_status): Call throw_exception if EX is
7286 TARGET_CLOSE_ERROR.
7287 * utils.c (perror_with_name): Rename to ...
7288 (throw_perror_with_name): ... here. New parameter errcode, describe it
7289 in the function comment.
7290 (perror_with_name): New function wrapper.
7291 * utils.h (enum errors): New stub declaration.
7292 (throw_perror_with_name): New declaration.
7293
82b821e9
PA
72942013-03-22 Pedro Alves <palves@redhat.com>
7295 Yao Qi <yao@codesourcery.com>
7296 Mark Kettenis <kettenis@gnu.org>
7297
7298 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7299 Don't let the user set the value to UINT_MAX directly.
7300 <var_integer>: Don't let the user set the value to INT_MAX
7301 directly.
7302
78a095c3
JK
73032013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7304
7305 * remote.c (remote_unpush_target): New function.
7306 (remote_open_1): Remove two pop_target calls, update one comment, add
7307 comment to target_preopen call. Replace pop_target call by
7308 remote_unpush_target call.
7309 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7310 pop_target calls by remote_unpush_target calls.
7311
3e74e146
PA
73122013-03-22 Pedro Alves <palves@redhat.com>
7313
7314 * linux-nat.c (linux_child_follow_fork): Don't call
7315 linux_enable_event_reporting.
7316 (linux_handle_extended_wait): Don't call
7317 linux_enable_event_reporting.
7318
a2213dca
PA
73192013-03-22 Pedro Alves <palves@redhat.com>
7320
7321 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7322 use it to rewrite the trampoline buffers with type gdb_byte[], and
7323 undefine the macro. Remove char* cast.
7324
bd712aed
DE
73252013-03-21 Doug Evans <dje@google.com>
7326
7327 New commands "mt set per-command {space,time,symtab} {on,off}".
7328 * NEWS: Add entry.
7329 * event-top.c: #include "maint.h".
7330 * main.c: #include "maint.h".
7331 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7332 timeval-utils.h, maint.h, cli/cli-setshow.h.
7333 (per_command_time, per_command_space): New static globals.
7334 (per_command_symtab): New static global.
7335 (per_command_setlist, per_command_showlist): New static globals.
7336 (struct cmd_stats): Move here from utils.c.
7337 (set_per_command_time): Renamed from set_display_time in utils.c
7338 and moved here. All callers updated.
7339 (set_per_command_space): Renamed from set_display_space in utils.c
7340 and moved here. All callers updated.
7341 (count_symtabs_and_blocks): New function.
7342 (report_command_stats): Moved here from utils.c. Add support for
7343 printing symtab stats. Only print data if enabled before command
7344 executed.
7345 (make_command_stats_cleanup): Ditto.
7346 (sert_per_command_cmd, show_per_command_cmd): New functions.
7347 (_initialize_maint_cmds): Add new commands
7348 mt set per-command {space,time,symtab} {on,off}.
7349 * maint.h: New file.
7350 * top.c: #include "maint.h".
7351 * utils.c (reset_prompt_for_continue_wait_time): New function.
7352 (get_prompt_for_continue_wait_time): New function.
7353 * utils.h (reset_prompt_for_continue_wait_time): Declare
7354 (get_prompt_for_continue_wait_time): Declare.
7355 (make_command_stats_cleanup): Moved to maint.h.
7356 (set_display_time, set_display_space): Moved to maint.h and renamed
7357 to set_per_command_time, set_per_command_space.
7358 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7359 parse_binary_operation and made non-static. Don't call error,
7360 just return an error marker. All callers updated.
7361 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7362
d76488d8
TT
73632013-03-21 Tom Tromey <tromey@redhat.com>
7364
7365 * symfile.c (alloc_section_addr_info): Update header. Don't set
7366 'num_sections' field.
7367 (build_section_addr_info_from_section_table): Set 'num_sections'.
7368 (build_section_addr_info_from_bfd): Likewise.
7369 (build_section_addr_info_from_objfile): Remove dead loop
7370 condition.
7371 (free_section_addr_info): Unconditionally call xfree.
7372 (relative_addr_info_to_section_offsets, addrs_section_sort)
7373 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7374 condition.
7375 (syms_from_objfile_1): Remove dead 'if' condition. Check
7376 'num_sections'.
7377 (add_symbol_file_command): Set 'num_sections'.
7378 * symfile-mem.c (symbol_file_add_from_memory): Set
7379 'num_sections'.
7380 * somread.c (som_symfile_offsets): Remove dead loop condition.
7381 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7382 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7383
a72e5169 73842013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7385
7386 * tracepoint.h (decode_agent_options): Add 'trace_string'
7387 argument.
7388 * tracepoint.c (decode_agent_options): Add 'trace_string'
7389 argument.
7390 (validate_actionline): Update.
7391 (collect_symbol): Add 'trace_string' argument.
7392 (struct add_local_symbols_data) <trace_string>: New field.
7393 (do_collect_symbol): Update.
7394 (add_local_symbols): Add 'trace_string' argument.
7395 (encode_actions_1): Update.
7396 (trace_dump_actions): Update.
7397 * dwarf2loc.c (access_memory): Update.
7398 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7399 * ax-general.c (new_agent_expr): Update.
7400 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7401 (gen_trace_for_return_address): Add argument.
7402 (trace_kludge, trace_string_kludge): Remove.
7403 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7404 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7405 (gen_trace_for_var): Add 'trace_string' argument.
7406 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7407 (gen_printf, agent_eval_command_one): Update.
7408
b2f83c08
TT
74092013-03-21 Tom Tromey <tromey@redhat.com>
7410
7411 PR exp/15109:
7412 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7413 Handle FILENAME token.
7414
9507860e
TT
74152013-03-21 Tom Tromey <tromey@redhat.com>
7416
7417 * c-exp.y (YYPRINT): Define.
7418 (c_print_token): New function.
7419
e403aa4b
TT
74202013-03-21 Tom Tromey <tromey@redhat.com>
7421
7422 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7423
af307d6a
YQ
74242013-03-21 Yao Qi <yao@codesourcery.com>
7425
7426 * ctf.c: Include "gdb_stat.h".
7427 [USE_WIN32API]: New macro 'mkdir'.
7428 (ctf_start): Use permission bits macros if they are defined.
7429
fb81d016
KS
74302013-03-20 Keith Seitz <keiths@redhat.com>
7431
7432 * breakpoint.h (struct breakpoint): Add comment to
7433 extra_string indicating that this member is mallod'd.
7434 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7435
ef0026f0
PA
74362013-03-20 Pedro Alves <palves@redhat.com>
7437
7438 PR gdb/15289
7439
7440 * cli/cli-setshow.c (do_set_command)
7441 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7442 the result of parsing the command argument. Throw error if the
7443 value is greater than UINT_MAX. Print the invalid value with
7444 plongest.
7445 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7446 result of parsing the command argument. Throw error if the value
7447 is greater than INT_MAX, not greater or equal. Also throw error
7448 if the value is less than INT_MIN. Print the invalid value with
7449 plongest.
7450 <var_zuinteger_unlimited>: Throw error if the value is greater
7451 than INT_MAX, not greater or equal.
7452 (do_show_command) <var_integer, var_zinteger,
7453 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7454
24d6c2a0
TT
74552013-03-20 Tom Tromey <tromey@redhat.com>
7456
7457 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7458 if possible.
7459 * dwarf2read.c (read_func_scope): Remove old FIXME.
7460 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7461 not LOC_COMPUTED.
7462 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7463 Unconditionally call via computed ops, if possible.
7464 * printcmd.c (address_info): Unconditionally call via computed ops,
7465 if possible.
7466 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7467 if possible.
7468 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7469 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7470 if possible.
7471
f1e6e072
TT
74722013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7473 Tom Tromey <tromey@redhat.com>
7474
7475 PR symtab/8421:
7476 * coffread.c (coff_register_index): New global.
7477 (process_coff_symbol, coff_read_enum_type): Set
7478 SYMBOL_ACLASS_INDEX.
7479 (_initialize_coffread): Initialize new global.
7480 * dwarf2loc.c (locexpr_find_frame_base_location)
7481 (dwarf2_block_frame_base_locexpr_funcs)
7482 (loclist_find_frame_base_location)
7483 (dwarf2_block_frame_base_loclist_funcs): New.
7484 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7485 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7486 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7487 (dwarf2_block_frame_base_loclist_funcs): New.
7488 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7489 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7490 globals.
7491 (read_func_scope): Update.
7492 (fixup_go_packaging, mark_common_block_symbol_computed)
7493 (var_decode_location, new_symbol_full, dwarf2_const_value):
7494 Set SYMBOL_ACLASS_INDEX.
7495 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7496 (_initialize_dwarf2_read): Initialize new globals.
7497 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7498 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7499 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7500 globals.
7501 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7502 (_initialize_mdebugread): Initialize new globals.
7503 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7504 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7505 (stab_register_index, stab_regparm_index): New globals.
7506 (define_symbol, read_enum_type, common_block_end): Set
7507 SYMBOL_ACLASS_INDEX.
7508 (_initialize_stabsread): Initialize new globals.
7509 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7510 globals.
7511 (MAX_SYMBOL_IMPLS): New define.
7512 (register_symbol_computed_impl, register_symbol_block_impl)
7513 (register_symbol_register_impl)
7514 (initialize_ordinary_address_classes): New functions.
7515 (_initialize_symtab): Call initialize_ordinary_address_classes.
7516 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7517 (struct symbol_impl): New.
7518 (SYMBOL_ACLASS_BITS): New define.
7519 (struct symbol) <aclass, ops>: Remove fields.
7520 <aclass_index>: New field.
7521 (symbol_impls): Declare.
7522 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7523 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7524 (register_symbol_computed_impl, register_symbol_block_impl)
7525 (register_symbol_register_impl): Declare.
7526 (struct symbol_computed_ops): Add location_has_loclist.
7527 (struct symbol_block_ops): New.
7528 (SYMBOL_BLOCK_OPS): New.
7529 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7530
dbccfd4c
TT
75312013-03-20 Tom Tromey <tromey@redhat.com>
7532
7533 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7534 (print_partial_symbols, recursively_search_psymtabs): Use
7535 PSYMBOL_CLASS.
7536
e3f1ad4f
PM
75372013-03-20 Pierre Muller <muller@sourceware.org>
7538
7539 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7540 addtion, subtraction, multiplication and division binary operator.
7541
460014f5
JK
75422013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7543
7544 Code cleanup.
7545 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7546 * bsd-kvm.c (bsd_kvm_close): Likewise.
7547 * bsd-uthread.c (bsd_uthread_close): Likewise.
7548 * corelow.c (core_close): Likewise.
7549 (core_close_cleanup): Remove parameter quitting from a caller.
7550 * event-top.c (async_disconnect): Likewise.
7551 * exec.c (exec_close_1): Remove parameter quitting.
7552 * go32-nat.c (go32_close): Likewise.
7553 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7554 parameter quitting from a caller.
7555 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7556 variable.
7557 (mips_linux_close): Remove parameter quitting. Remove parameter
7558 quitting from a caller.
7559 * monitor.c (monitor_close): Remove parameter quitting.
7560 * monitor.h (monitor_close): Likewise.
7561 * record-btrace.c (record_btrace_close): Likewise.
7562 * record-full.c (record_full_close): Likewise.
7563 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7564 it also from fprintf_unfiltered.
7565 * remote-mips.c (mips_close): Remove parameter quitting.
7566 (mips_detach): Remove parameter quitting from a caller.
7567 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7568 (gdbsim_close): Remove duplicate function comment. Remove parameter
7569 quitting and remove it also from printf_filtered.
7570 * remote.c (remote_close): Remove parameter quitting.
7571 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7572 * target.c (update_current_target): Remove parameter int from to_close
7573 de_fault.
7574 (push_target, unpush_target, pop_target): Remove parameter quitting from
7575 a caller.
7576 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7577 Remove parameter quitting from a caller.
7578 (target_preopen): Remove parameter quitting from a caller.
7579 (target_close): Remove parameter quitting. Remove parameter quitting
7580 from a caller two times. Remove parameter quitting also from
7581 fprintf_unfiltered.
7582 * target.h (struct target_ops): Remove parameter quitting and as int
7583 from fields to_xclose and to_close.
7584 (extern struct target_ops current_target):
7585 (target_close, pop_all_targets): Remove parameter quitting. Update the
7586 comment.
7587 (pop_all_targets_above): Remove parameter quitting.
7588 * top.c (quit_target): Remove parameter quitting from a caller.
7589 * tracepoint.c (tfile_close): Remove parameter quitting.
7590 * windows-nat.c (windows_close): Remove parameter quitting.
7591
35a7120b
CV
75922013-03-20 Corinna Vinschen <vinschen@redhat.com>
7593
7594 * windows-nat.c (handle_output_debug_string): Replace call
7595 to string_to_core_addr with call to strtoull.
7596
8249a5a9
YQ
75972013-03-20 Yao Qi <yao@codesourcery.com>
7598
7599 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7600 and write it to CTF metadata.
7601
2c15ef43
CV
76022013-03-19 Corinna Vinschen <vinschen@redhat.com>
7603
7604 * windows-nat.c (handle_output_debug_string): Change type of n to
7605 SIZE_T to avoid crash on 64 bit systems.
7606
1cdd3232
EZ
76072013-03-17 Eli Zaretskii <eliz@gnu.org>
7608
7609 * python/python-internal.h (HAVE_SNPRINTF)
7610 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7611 about redefinition of snprintf by pyerrors.h.
7612
3cb2ab1a
SE
76132013-03-15 Steve Ellcey <sellcey@mips.com>
7614
7615 * remote-sim.c (sim_command_completer): Make char arguments const.
7616
9ce98649
TT
76172013-03-15 Tom Tromey <tromey@redhat.com>
7618
7619 PR c++/15116:
7620 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7621
dccee2de
TT
76222013-03-14 Tom Tromey <tromey@redhat.com>
7623
7624 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7625 New fields.
7626 (get_file_crc): Move from symfile.c.
7627 (gdb_bfd_crc): New function.
7628 * gdb_bfd.h (gdb_bfd_crc): Declare.
7629 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7630 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7631 (separate_debug_file_exists): Use gdb_bfd_crc.
7632
cc0ea93c
TT
76332013-03-14 Tom Tromey <tromey@redhat.com>
7634
7635 * symfile.c (get_debug_link_info): Remove.
7636 (find_separate_debug_file_by_debuglink): Use
7637 bfd_get_debug_link_info.
7638
08c23b0d
TT
76392013-03-14 Tom Tromey <tromey@redhat.com>
7640
7641 * symtab.c (error_in_psymtab_expansion): New function.
7642 (lookup_symbol_aux_quick)
7643 (basic_lookup_transparent_type_quick): Remove "last resort"
7644 code. Use error_in_psymtab_expansion.
7645
288e77a7
JK
76462013-03-14 Doug Evans <dje@google.com>
7647 Jan Kratochvil <jan.kratochvil@redhat.com>
7648
7649 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7650 any successful compare_filenames_for_search or FILENAME_CMP.
7651 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7652 * symtab.c (iterate_over_some_symtabs): Likewise.
7653
8f1b8b82
JK
76542013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7655
7656 * source.c (print_source_lines_base): Make a local copy of
7657 symtab_to_fullname.
7658
23eb71e4
JK
76592013-03-14 Hui Zhu <hui_zhu@mentor.com>
7660 Jan Kratochvil <jan.kratochvil@redhat.com>
7661
7662 * source.c (print_source_lines_base): Suppress "file" for TUI.
7663
bb869963
SDJ
76642013-03-14 Keith Seitz <keiths@redhat.com>
7665 Alan Matsuoka <alanm@redhat.com>
7666
7667 PR c++/15203
7668 PR c++/15210
7669 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7670 TYPE_CODE_METHOD.
7671 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7672 symbols.
7673
d6682f9e
YQ
76742013-03-14 Yao Qi <yao@codesourcery.com>
7675
7676 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7677 status to tfile if trace is stopped by command 'tstop'.
7678
a22fa6e4
YQ
76792013-03-14 Yao Qi <yao@codesourcery.com>
7680
7681 * tracepoint.c (tfile_write_status): Write trace notes and user
7682 name into tfile if they are not NULL.
7683
d0353e76
YQ
76842013-03-14 Hui Zhu <hui@codesourcery.com>
7685 Yao Qi <yao@codesourcery.com>
7686
7687 * Makefile.in (REMOTE_OBS): Add ctf.o.
7688 (SFILES): Add ctf.c.
7689 (HFILES_NO_SRCDIR): Add ctf.h.
7690 * ctf.c, ctf.h: New files.
7691 * tracepoint.c: Include 'ctf.h'.
7692 (collect_pseudocommand): Remove static.
7693 (trace_save_command): Parse option "-ctf".
7694 Produce different trace file writers per option.
7695 Adjust output message.
7696 (trace_save_tfile, trace_save_ctf): New.
7697 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7698 * mi/mi-main.c: Include 'ctf.h'.
7699 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7700 trace_save_tfile or trace_save_ctf.
7701 * NEWS: Mention these changes.
7702
3f43bc09
YQ
77032013-03-14 Yao Qi <yao@codesourcery.com>
7704
7705 * tracepoint.c (trace_file_writer_xfree): New.
7706 (struct tfile_writer_data): New.
7707 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7708 (tfile_write_header, tfile_write_regblock_type): New.
7709 (tfile_write_status, tfile_write_uploaded_tsv): New.
7710 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7711 (tfile_write_raw_data, (tfile_end): New.
7712 (tfile_write_ops): New global variable.
7713 (TRACE_WRITE_R_BLOCK): New macro.
7714 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7715 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7716 (TRACE_WRITE_V_BLOCK): New macro.
7717 (trace_save): Add extra one parameter WRITER. Make it static.
7718 Use WRITER to writer trace.
7719 (tfile_trace_file_writer_new): New.
7720 (trace_save_command): Caller update.
7721 (trace_save_tfile): Write trace data in TFILE format.
7722 * tracepoint.h (struct trace_frame_write_ops): New.
7723 (struct trace_file_write_ops): New.
7724 (struct trace_file_writer): New.
7725 (trace_save): Remove its declaration.
7726 (trace_save_tfile): Declare it.
7727 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7728 instead of trace_save.
7729
58665b40
PA
77302013-03-13 Pedro Alves <palves@redhat.com>
7731
7732 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7733
10217050
PA
77342013-03-13 Pedro Alves <palves@redhat.com>
7735
7736 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7737 commented out code.
7738 * demangle.c (current_demangling_style_string): Make it const.
7739 (set_demangling_command): Assert the demangling style is known.
7740 Remove all handling of unknown styles. Set
7741 'current_demangling_style_string' to an element of the
7742 demangling_style_names array.
7743 (set_demangling_style): Delete.
7744 (_initialize_demangler): Set current_demangling_style_string to the
7745 element of the demangling_style_names array that corresponds to
7746 the default demangling style. Remove FIXME note. Don't call
7747 set_demangling_style.
7748 * gdb-demangle.h (set_demangling_style): Remove declaration.
7749
6f937416
PA
77502013-03-13 Pedro Alves <palves@redhat.com>
7751
7752 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7753 fields const.
7754 (ada_make_symbol_completion_list): Make "text0" parameter const.
7755 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7756 * breakpoint.c (condition_completer): Make "text" and "word"
7757 parameters const. Adjust.
7758 (check_tracepoint_command): Adjust to validate_actionline
7759 prototype change.
7760 (catch_syscall_completer): Make "text" and "word" parameters
7761 const.
7762 * cli/cli-cmds.c (show_user): Make "comname" local const.
7763 (valid_command_p): Make "command" parameter const.
7764 (alias_command): Make "alias_prefix" and "command_prefix" locals
7765 const.
7766 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7767 (add_alias_cmd): Make "name" and "oldname" parameters const.
7768 Adjust. No longer make copy of OLDNAME.
7769 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7770 (add_setshow_cmd_full, add_setshow_enum_cmd)
7771 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7772 (add_setshow_filename_cmd, add_setshow_string_cmd)
7773 (add_setshow_string_noescape_cmd)
7774 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7775 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7776 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7777 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7778 Make "name" parameter const.
7779 (help_cmd): Rename "command" parameter to "arg". New const local
7780 "command".
7781 (find_cmd): Make "command" parameter const.
7782 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7783 deprecated_cmd_warning prototype change.
7784 (undef_cmd_error): Make "cmdtype" parameter const.
7785 (lookup_cmd): Make "line" parameter const.
7786 (deprecated_cmd_warning): Change type of "text" parameter to
7787 pointer to const char, from pointer to pointer to char. Adjust.
7788 (lookup_cmd_composition): Make "text" parameter const.
7789 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7790 parameters const.
7791 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7792 const.
7793 * cli/cli-script.c (validate_comname): Make "tem" local const.
7794 (define_command): New const local "tem_c". Use it in calls to
7795 lookup_cmd.
7796 (document_command): Make "tem" and "comfull" locals const.
7797 (show_user_1): Make "prefix" and "name" parameters const.
7798 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7799 const.
7800 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7801 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7802 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7803 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7804 (complete_on_enum, add_setshow_enum_cmd)
7805 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7806 (add_setshow_filename_cmd, add_setshow_string_cmd)
7807 (add_setshow_string_noescape_cmd)
7808 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7809 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7810 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7811 Change prototypes, constifying strings.
7812 * completer.c (noop_completer, filename_completer): Make "text"
7813 and "prefix" parameters const.
7814 (location_completer, expression_completer)
7815 (complete_line_internal): Make "text" and "prefix" parameters
7816 const and adjust.
7817 (command_completer, signal_completer): Make "text" and "prefix"
7818 parameters const.
7819 * completer.h (noop_completer, filename_completer)
7820 (expression_completer, location_completer, command_completer)
7821 (signal_completer): Change prototypes.
7822 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7823 parameters const.
7824 * cp-abi.c (cp_abi_completer): Likewise.
7825 * expression.h (parse_expression_for_completion): Change
7826 prototype.
7827 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7828 parameters const.
7829 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7830 * infrun.c (handle_completer): Make "text" and "word" parameters
7831 const.
7832 * interps.c (interpreter_completer): Make "text" and "word"
7833 parameters const.
7834 * language.h (struct language_defn)
7835 <la_make_symbol_completion_list>: Make "text" and "word"
7836 parameters const.
7837 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7838 (parse_exp_in_context): Rename to ...
7839 (parse_exp_in_context_1): ... this.
7840 (parse_exp_in_context): Reimplement, with const hack from
7841 parse_exp_1.
7842 (parse_expression_for_completion): Make "string" parameter const.
7843 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7844 to pointer to const char. Adjust.
7845 (print_command_1): Make "exp" parameter const.
7846 (output_command): Rename to ...
7847 (output_command_const): ... this. Make "exp" parameter const.
7848 (output_command): Reimplement.
7849 (x_command): Adjust.
7850 (display_command): Rename "exp" parameter to "arg". New "exp"
7851 local, const version of "arg".
7852 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7853 "cmd_name" local const.
7854 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7855 call.
7856 (cmdpy_completer): Make "text" and "word" parameters const.
7857 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7858 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7859 const.
7860 * remote.c (_initialize_remote): Make "cmd_name" local const.
7861 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7862 parameters const. Adjust.
7863 (completion_list_add_fields): Make "sym_text", "text" and "word"
7864 parameters const.
7865 (struct add_name_data) <sym_text, text, word>: Make fields const.
7866 (default_make_symbol_completion_list_break_on): Make "text" and
7867 "word" parameters const. Adjust locals.
7868 (default_make_symbol_completion_list)
7869 (make_symbol_completion_list, make_symbol_completion_type)
7870 (make_symbol_completion_list_fn): Make "text" and "word"
7871 parameters const.
7872 (make_file_symbol_completion_list): Make "text", "word" and
7873 "srcfile" parameters const. Adjust locals.
7874 (add_filename_to_list): Make "text" and "word" parameters const.
7875 (struct add_partial_filename_data) <text, word>: Make fields
7876 const.
7877 (make_source_files_completion_list): Make "text" and "word"
7878 parameters const.
7879 * symtab.h (default_make_symbol_completion_list_break_on)
7880 (default_make_symbol_completion_list, make_symbol_completion_list)
7881 (make_symbol_completion_type enum type_code)
7882 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7883 (make_source_files_completion_list): Change prototype.
7884 * top.c (execute_command): Adjust to pass pointer to pointer to
7885 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7886 change.
7887 (set_verbose): Make "cmdname" local const.
7888 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7889 and adjust.
7890 (validate_actionline): Make "line" parameter a pointer to const
7891 char, and adjust.
7892 (encode_actions_1): Make "action_exp" local const, and adjust.
7893 (encode_actions): Adjust.
7894 (replace_comma): Delete.
7895 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7896 const, and adjust. Don't frob the action string while splitting
7897 it at commas. Instead, make a copy of each split substring in
7898 turn.
7899 (trace_dump_command): Adjust to validate_actionline prototype
7900 change.
7901 * tracepoint.h (decode_agent_options, decode_agent_options)
7902 (encode_actions, validate_actionline): Change prototypes.
7903 * valprint.h (output_command): Delete declaration.
7904 (output_command_const): Declare.
7905 * value.c (function_destroyer): Cast const away in xfree call.
7906
a0bcdaa7
PA
79072013-03-13 Pedro Alves <palves@redhat.com>
7908
7909 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7910 rather than casting 'const char * const *' to 'const char **'.
7911 * ada-lex.l (processInt): Make "trailer" local const. Remove
7912 'const char **' cast.
7913 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7914 locals, and use those as strtol output pointer, instead than doing
7915 invalid casts to from 'const char **' to 'char **'.
7916 (_initialize_demangle): Remove cast.
7917 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7918 locals, and use those as strtol output pointer, instead than doing
7919 invalid casts to from 'const char **' to 'char **'.
7920 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7921 casts.
7922 * stap-probe.c (stap_parse_register_operand)
7923 (stap_parse_single_operand): Likewise.
7924
8ddb1965
YQ
79252013-03-13 Yao Qi <yao@codesourcery.com>
7926
7927 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7928 the last matched 'V' blcok in trace frame.
7929
2d450646
JB
79302013-03-12 Joel Brobecker <brobecker@adacore.com>
7931
7932 * NEWS: Create a new section for the next release branch.
7933 Rename the section of the current branch, now that it has
7934 been cut.
7935
b4b79973 79362013-03-12 Joel Brobecker <brobecker@adacore.com>
7937
7938 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7939 * version.in: Bump version to 7.6.50.20130312-cvs.
7940
ee047554
KS
79412013-03-12 Keith Seitz <keiths@redhat.com>
7942
7943 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7944 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7945 Remove temporary copy of input string.
7946 (mi_execute_command_wrapper): Make "cmd" const.
7947 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7948 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7949 Use const strings.
7950 (mi_parse): Make "cmd" const.
7951 Use const strings.
7952 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7953
bbc13ae3
KS
79542013-03-12 Keith Seitz <keiths@redhat.com>
7955
7956 * ada-lang.c (ada_read_renaming_var_value): Pass const
7957 pointer to expression string to parse_exp_1.
7958 (create_excep_cond_exprs): Likewise.
7959 * ax-gdb.c (agent_eval_command_one): Likewise.
7960 (maint_agent_printf_command): Likewise.
7961 Constify much of the string handling/parsing.
7962 * breakpoint.c (set_breakpoint_condition): Pass const
7963 pointer to expression string to parse_exp_1.
7964 (update_watchpoint): Likewise.
7965 (parse_cmd_to_aexpr): Constify string handling.
7966 Pass const pointer to parse_exp_1.
7967 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7968 (find_condition_and_thread): Likewise.
7969 Make TOK const.
7970 (watch_command_1): Make "arg" const.
7971 Constify string handling.
7972 Copy the expression string instead of changing the input
7973 string.
7974 (update_breakpoint_location): Pass const pointer to
7975 parse_exp_1.
7976 * eval.c (parse_and_eval_address): Make "exp" const.
7977 (parse_to_comma_and_eval): Make "expp" const.
7978 (parse_and_eval): Make "exp" const.
7979 * expression.h (parse_expression): Make argument const.
7980 (parse_exp_1): Make first argument const.
7981 * findcmd.c (parse_find_args): Treat "args" as const.
7982 * linespec.c (parse_linespec): Pass const pointer to
7983 linespec_expression_to_pc.
7984 (linespec_expression_to_pc): Make "exp_ptr" const.
7985 * parse.c (parse_exp_1): Make "stringptr" const.
7986 Make a copy of the expression to pass to parse_exp_in_context until
7987 this whole interface can be constified.
7988 (parse_expression): Make "string" const.
7989 * printcmd.c (ui_printf): Treat "arg" as const.
7990 Handle const strings.
7991 * tracepoint.c (validate_actionline): Pass const pointer to
7992 all calls to parse_exp_1.
7993 (encode_actions_1): Likewise.
7994 * value.h (parse_to_comma_and_eval): Make argument const.
7995 (parse_and_eval_address): Likewise.
7996 (parse_and_eval): Likewise.
7997 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7998 (varobj_set_value): Likewise.
7999 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8000 constify string handling.
8001 Pass const pointers to parse_and_eval_address and
8002 parse_to_comman_and_eval.
8003 * cli/cli-utils.c (skip_to_space): Rename to ...
8004 (skip_to_space_const): ... this. Handle const strings.
8005 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8006 skip_to_space_const.
8007 (skip_to_space_const): Declare.
8008 * common/format.c (parse_format_string): Make "arg" const.
8009 Handle const strings.
8010 * common/format.h (parse_format_string): Make "arg" const.
8011 * gdbserver/ax.c (ax_printf): Make "format" const.
8012 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8013 of the expression string.
8014
f3cec7e6
HZ
80152013-03-12 Hui Zhu <hui@codesourcery.com>
8016
8017 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8018
9df7235c
HZ
80192013-03-12 Yao Qi <yao@codesourcery.com>
8020 Hui Zhu <hui@codesourcery.com>
8021
8022 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8023 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8024 DW_OP_deref_size.
8025
82d049ab
PH
80262013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8027
5f8e0b8f
MF
8028 * ada-lex.l (rules): Only recognize 'thread' as a
8029 delimiter when followed by numerals, as for c-exp.y.
8030 Use new rewind_to_char function to rewind the input for
8031 expression-delimiting tokens.
8032 (rewind_to_char): New function.
82d049ab 8033
8c1fb155
JK
80342013-03-11 Pedro Alves <palves@redhat.com>
8035 Jan Kratochvil <jan.kratochvil@redhat.com>
8036
8037 * configure: Regenerate.
8038 * configure.ac (check dynamic export flag): Link python test with
8039 $PYTHON_LIBS.
8040
cc81e1c6
DE
80412013-03-11 Doug Evans <dje@google.com>
8042 Keith Seitz <keiths@redhat.com>
8043
8044 * linespec.c (find_linespec_symbols): Call find_function_symbols
8045 first, and then call lookup_prefix_sym/find_method.
8046
39086a0e
PA
80472013-03-11 Pedro Alves <palves@redhat.com>
8048
8049 * charset.c (convert_between_encodings): Don't cast between
8050 different pointer to pointer types. Instead, make the 'inp' local
8051 be of the type iconv expects.
8052 (wchar_iterate): Don't cast between different pointer to pointer
8053 types. Instead, use new pointer local of the type iconv expects.
8054 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8055 Add new local of type char pointer, and use it to get a
8056 char/string view of the byte buffer, instead of casting between
8057 pointer to pointer types.
8058
90585175
HAQ
80592013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8060
8061 * remote.c (remote_set_trace_buffer_size): Move != operator
8062 to the start of next line to fix an ARI warning.
8063
59ea5688
MM
80642013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8065
8066 * NEWS: Add record changes.
8067
946287b7
MM
80682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8069
8070 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8071 the instruction history disassembly.
8072 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8073 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8074
afedecd3
MM
80752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8076
8077 * Makefile.in (SFILES): Add record-btrace.c
8078 (COMMON_OBS): Add record-btrace.o
8079 * record-btrace.c: New.
8080 * objfiles.c: Include btrace.h.
8081 (free_objfile): call btrace_free_objfile.
8082
15984c13
MM
80832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8084
8085 * target.c (target_call_history, target_call_history_from,
8086 target_call_history_range): New.
8087 * target.h (target_ops) <to_call_history, to_call_history_from,
8088 to_call_history_range>: New fields.
8089 (target_call_history, target_call_history_from,
8090 target_call_history_range): New declaration.
8091 * record.c (get_call_history_modifiers, cmd_record_call_history,
8092 record_call_history_size): New.
8093 (_initialize_record): Add the "record function-call-history" command.
8094 Add "set/show record function-call-history-size" commands.
8095 * record.h (record_print_flag): New.
8096
67c86d06
MM
80972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8098
8099 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8100 to_insn_history_range>: New fields.
8101 (target_insn_history): New.
8102 (target_insn_history_from): New.
8103 (target_insn_history_range): New.
8104 * target.c (target_insn_history): New.
8105 (target_insn_history_from): New.
8106 (target_insn_history_range): New.
8107 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8108 (record_insn_history_size): New.
8109 (get_insn_number): New.
8110 (get_context_size): New.
8111 (no_chunk): New.
8112 (get_insn_history_modifiers): New.
8113 (cmd_record_insn_history): New.
8114 (_initialize_record): Add "set/show record instruction-history-size"
8115 command. Add "record instruction-history" command.
8116
7c1687a9
MM
81172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8118
8119 * record.h (record_disconnect): New.
8120 (record_detach): New.
8121 (record_mourn_inferior): New.
8122 (record_kill): New.
8123 * record-full.c (record_disconnect, record_detach,
8124 record_mourn_inferior, record_kill): Move to...
8125 * record.c: ...here.
8126 (DEBUG): New.
8127 (record_stop): New.
8128 (record_unpush): New.
8129 (cmd_record_stop): Call record_stop. Replace unpush_target
8130 call with record_unpush call.
8131 (record_disconnect, record_detach): Assert that the target
8132 is of record stratum. Call record_unpush, record_stop, and
8133 DEBUG.
8134 (record_mourn_inferior, record_kill): Assert that the target
8135 is of record stratum. Call record_unpush and DEBUG.
8136
25ea693b
MM
81372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8138
8139 * record-full.h, record-full.c (record_memory_query): Rename
8140 to ...
8141 (record_full_memory_query): ...this. Update all users.
8142 (record_arch_list_add_reg): Rename to ...
8143 (record_full_arch_list_add_reg): ...this. Update all users.
8144 (record_arch_list_add_mem): Rename to ...
8145 (record_full_arch_list_add_mem): ...this. Update all users.
8146 (record_arch_list_add_end): Rename to ...
8147 (record_full_arch_list_add_end): ...this. Update all users.
8148 (record_gdb_operation_disable_set): Rename to ...
8149 (record_full_gdb_operation_disable_set): ...this.
8150 Update all users.
8151
88d1aa9d
MM
81522013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8153
8154 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8155 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8156 (RECORD_IS_REPLAY): Renamed to ...
8157 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8158 (RECORD_FILE_MAGIC): Renamed to ...
8159 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8160 (record_mem_entry): Renamed to ...
8161 (record_full_mem_entry): ... this. Updated all users.
8162 (record_reg_entry): Renamed to ...
8163 (record_full_reg_entry): ... this. Updated all users.
8164 (record_end_entry): Renamed to ...
8165 (record_full_end_entry): ... this. Updated all users.
8166 (record_type) <record_end, record_reg, record_mem>: Renamed
8167 to ...
8168 (record_full_type) <record_full_end, record_full_reg,
8169 record_full_mem>: ... this. Updated all users.
8170 (record_entry): Renamed to ...
8171 (record_full_entry): ... this. Updated all users.
8172 (record_core_buf_entry): Renamed to ...
8173 (record_full_core_buf_entry): ... this. Updated all users.
8174 (record_core_regbuf): Renamed to ...
8175 (record_full_core_regbuf): ... this. Updated all users.
8176 (record_core_start): Renamed to ...
8177 (record_full_core_start): ... this. Updated all users.
8178 (record_core_end): Renamed to ...
8179 (record_full_core_end): ... this. Updated all users.
8180 (record_core_buf_list): Renamed to ...
8181 (record_full_core_buf_list): ... this. Updated all users.
8182 (record_first): Renamed to ...
8183 (record_full_first): ... this. Updated all users.
8184 (record_list): Renamed to ...
8185 (record_full_list): ... this. Updated all users.
8186 (record_arch_list_head): Renamed to ...
8187 (record_full_arch_list_head): ... this. Updated all users.
8188 (record_arch_list_tail): Renamed to ...
8189 (record_full_arch_list_tail): ... this. Updated all users.
8190 (record_stop_at_limit): Renamed to ...
8191 (record_full_stop_at_limit): ... this. Updated all users.
8192 (record_insn_max_num): Renamed to ...
8193 (record_full_insn_max_num): ... this. Updated all users.
8194 (record_insn_num): Renamed to ...
8195 (record_full_insn_num): ... this. Updated all users.
8196 (record_insn_count): Renamed to ...
8197 (record_full_insn_count): ... this. Updated all users.
8198 (record_ops): Renamed to ...
8199 (record_full_ops): ... this. Updated all users.
8200 (record_core_ops): Renamed to ...
8201 (record_full_core_ops): ... this. Updated all users.
8202 (set_record_cmdlist): Renamed to ...
8203 (set_record_full_cmdlist): ... this. Updated all users.
8204 (show_record_cmdlist): Renamed to ...
8205 (show_record_full_cmdlist): ... this. Updated all users.
8206 (record_cmdlist): Renamed to ...
8207 (record_full_cmdlist): ... this. Updated all users.
8208 (record_beneath_to_resume_ops): Renamed to ...
8209 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8210 (record_beneath_to_resume): Renamed to ...
8211 (record_full_beneath_to_resume): ... this. Updated all users.
8212 (record_beneath_to_wait_ops): Renamed to ...
8213 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8214 (record_beneath_to_wait): Renamed to ...
8215 (record_full_beneath_to_wait): ... this. Updated all users.
8216 (record_beneath_to_store_registers_ops): Renamed to ...
8217 (record_full_beneath_to_store_registers_ops): ... this.
8218 Updated all users.
8219 (record_beneath_to_store_registers): Renamed to ...
8220 (record_full_beneath_to_store_registers): ... this.
8221 Updated all users.
8222 (record_beneath_to_xfer_partial_ops): Renamed to ...
8223 (record_full_beneath_to_xfer_partial_ops): ... this.
8224 Updated all users.
8225 (record_beneath_to_xfer_partial): Renamed to ...
8226 (record_full_beneath_to_xfer_partial): ... this.
8227 Updated all users.
8228 (record_beneath_to_insert_breakpoint): Renamed to ...
8229 (record_full_beneath_to_insert_breakpoint): ... this.
8230 Updated all users.
8231 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8232 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8233 Updated all users.
8234 (record_beneath_to_stopped_data_address): Renamed to ...
8235 (record_full_beneath_to_stopped_data_address): ... this.
8236 Updated all users.
8237 (record_beneath_to_async): Renamed to ...
8238 (record_full_beneath_to_async): ... this. Updated all users.
8239 (record_goto_insn): Renamed to ...
8240 (record_full_goto_insn): ... this. Updated all users.
8241 (record_save): Renamed to ...
8242 (record_full_save): ... this. Updated all users.
8243 (record_reg_alloc): Renamed to ...
8244 (record_full_reg_alloc): ... this. Updated all users.
8245 (record_reg_release): Renamed to ...
8246 (record_full_reg_release): ... this. Updated all users.
8247 (record_mem_alloc): Renamed to ...
8248 (record_full_mem_alloc): ... this. Updated all users.
8249 (record_mem_release): Renamed to ...
8250 (record_full_mem_release): ... this. Updated all users.
8251 (record_end_alloc): Renamed to ...
8252 (record_full_end_alloc): ... this. Updated all users.
8253 (record_end_release): Renamed to ...
8254 (record_full_end_release): ... this. Updated all users.
8255 (record_entry_release): Renamed to ...
8256 (record_full_entry_release): ... this. Updated all users.
8257 (record_list_release): Renamed to ...
8258 (record_full_list_release): ... this. Updated all users.
8259 (record_list_release_following): Renamed to ...
8260 (record_full_list_release_following): ... this.
8261 Updated all users.
8262 (record_list_release_first): Renamed to ...
8263 (record_full_list_release_first): ... this. Updated all users.
8264 (record_arch_list_add): Renamed to ...
8265 (record_full_arch_list_add): ... this. Updated all users.
8266 (record_get_loc): Renamed to ...
8267 (record_full_get_loc): ... this. Updated all users.
8268 (record_check_insn_num): Renamed to ...
8269 (record_full_check_insn_num): ... this. Updated all users.
8270 (record_arch_list_cleanups): Renamed to ...
8271 (record_full_arch_list_cleanups): ... this. Updated all users.
8272 (record_message): Renamed to ...
8273 (record_full_message): ... this. Updated all users.
8274 (record_message_wrapper): Renamed to ...
8275 (record_full_message_wrapper): ... this. Updated all users.
8276 (record_message_wrapper_safe): Renamed to ...
8277 (record_full_message_wrapper_safe): ... this. Updated all users.
8278 (record_gdb_operation_disable): Renamed to ...
8279 (record_full_gdb_operation_disable): ... this. Updated all users.
8280 (record_hw_watchpoint): Renamed to ...
8281 (record_full_hw_watchpoint): ... this. Updated all users.
8282 (record_exec_insn): Renamed to ...
8283 (record_full_exec_insn): ... this. Updated all users.
8284 (record_restore): Renamed to ...
8285 (record_full_restore): ... this. Updated all users.
8286 (record_async_inferior_event_token): Renamed to ...
8287 (record_full_async_inferior_event_token): ... this.
8288 Updated all users.
8289 (record_async_inferior_event_handler): Renamed to ...
8290 (record_full_async_inferior_event_handler): ... this.
8291 Updated all users.
8292 (record_core_open_1): Renamed to ...
8293 (record_full_core_open_1): ... this. Updated all users.
8294 (record_open_1): Renamed to ...
8295 (record_full_open_1): ... this. Updated all users.
8296 (record_open): Renamed to ...
8297 (record_full_open): ... this. Updated all users.
8298 (record_close): Renamed to ...
8299 (record_full_close): ... this. Updated all users.
8300 (record_resume_step): Renamed to ...
8301 (record_full_resume_step): ... this. Updated all users.
8302 (record_resumed): Renamed to ...
8303 (record_full_resumed): ... this. Updated all users.
8304 (record_execution_dir): Renamed to ...
8305 (record_full_execution_dir): ... this. Updated all users.
8306 (record_resume): Renamed to ...
8307 (record_full_resume): ... this. Updated all users.
8308 (record_get_sig): Renamed to ...
8309 (record_full_get_sig): ... this. Updated all users.
8310 (record_sig_handler): Renamed to ...
8311 (record_full_sig_handler): ... this. Updated all users.
8312 (record_wait_cleanups): Renamed to ...
8313 (record_full_wait_cleanups): ... this. Updated all users.
8314 (record_wait_1): Renamed to ...
8315 (record_full_wait_1): ... this. Updated all users.
8316 (record_wait): Renamed to ...
8317 (record_full_wait): ... this. Updated all users.
8318 (record_stopped_by_watchpoint): Renamed to ...
8319 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8320 (record_disconnect): Renamed to ...
8321 (record_full_disconnect): ... this. Updated all users.
8322 (record_detach): Renamed to ...
8323 (record_full_detach): ... this. Updated all users.
8324 (record_mourn_inferior): Renamed to ...
8325 (record_full_mourn_inferior): ... this. Updated all users.
8326 (record_kill): Renamed to ...
8327 (record_full_kill): ... this. Updated all users.
8328 (record_stopped_data_address): Renamed to ...
8329 (record_full_stopped_data_address): ... this. Updated all users.
8330 (record_registers_change): Renamed to ...
8331 (record_full_registers_change): ... this. Updated all users.
8332 (record_store_registers): Renamed to ...
8333 (record_full_store_registers): ... this. Updated all users.
8334 (record_xfer_partial): Renamed to ...
8335 (record_full_xfer_partial): ... this. Updated all users.
8336 (record_breakpoint): Renamed to ...
8337 (record_full_breakpoint): ... this. Updated all users.
8338 (record_breakpoint_p): Renamed to ...
8339 (record_full_breakpoint_p): ... this. Updated all users.
8340 (record_breakpoints): Renamed to ...
8341 (record_full_breakpoints): ... this. Updated all users.
8342 (record_sync_record_breakpoints): Renamed to ...
8343 (record_full_sync_record_breakpoints): ... this.
8344 Updated all users.
8345 (record_init_record_breakpoints): Renamed to ...
8346 (record_full_init_record_breakpoints): ... this.
8347 Updated all users.
8348 (record_insert_breakpoint): Renamed to ...
8349 (record_full_insert_breakpoint): ... this. Updated all users.
8350 (record_remove_breakpoint): Renamed to ...
8351 (record_full_remove_breakpoint): ... this. Updated all users.
8352 (record_can_execute_reverse): Renamed to ...
8353 (record_full_can_execute_reverse): ... this. Updated all users.
8354 (record_get_bookmark): Renamed to ...
8355 (record_full_get_bookmark): ... this. Updated all users.
8356 (record_goto_bookmark): Renamed to ...
8357 (record_full_goto_bookmark): ... this. Updated all users.
8358 (record_async): Renamed to ...
8359 (record_full_async): ... this. Updated all users.
8360 (record_can_async_p): Renamed to ...
8361 (record_full_can_async_p): ... this. Updated all users.
8362 (record_is_async_p): Renamed to ...
8363 (record_full_is_async_p): ... this. Updated all users.
8364 (record_execution_direction): Renamed to ...
8365 (record_full_execution_direction): ... this. Updated all users.
8366 (record_info): Renamed to ...
8367 (record_full_info): ... this. Updated all users.
8368 (record_delete): Renamed to ...
8369 (record_full_delete): ... this. Updated all users.
8370 (record_is_replaying): Renamed to ...
8371 (record_full_is_replaying): ... this. Updated all users.
8372 (record_goto_entry): Renamed to ...
8373 (record_full_goto_entry): ... this. Updated all users.
8374 (record_goto_begin): Renamed to ...
8375 (record_full_goto_begin): ... this. Updated all users.
8376 (record_goto_end): Renamed to ...
8377 (record_full_goto_end): ... this. Updated all users.
8378 (record_goto): Renamed to ...
8379 (record_full_goto): ... this. Updated all users.
8380 (init_record_ops): Renamed to ...
8381 (init_record_full_ops): ... this. Updated all users.
8382 (record_core_resume): Renamed to ...
8383 (record_full_core_resume): ... this. Updated all users.
8384 (record_core_kill): Renamed to ...
8385 (record_full_core_kill): ... this. Updated all users.
8386 (record_core_fetch_registers): Renamed to ...
8387 (record_full_core_fetch_registers): ... this. Updated all users.
8388 (record_core_prepare_to_store): Renamed to ...
8389 (record_full_core_prepare_to_store): ... this. Updated all users.
8390 (record_core_store_registers): Renamed to ...
8391 (record_full_core_store_registers): ... this. Updated all users.
8392 (record_core_xfer_partial): Renamed to ...
8393 (record_full_core_xfer_partial): ... this. Updated all users.
8394 (record_core_insert_breakpoint): Renamed to ...
8395 (record_full_core_insert_breakpoint): ... this. Updated all users.
8396 (record_core_remove_breakpoint): Renamed to ...
8397 (record_full_core_remove_breakpoint): ... this. Updated all users.
8398 (record_core_has_execution): Renamed to ...
8399 (record_full_core_has_execution): ... this. Updated all users.
8400 (init_record_core_ops): Renamed to ...
8401 (init_record_full_core_ops): ... this. Updated all users.
8402 (cmd_record_restore): Renamed to ...
8403 (cmd_record_full_restore): ... this. Updated all users.
8404 (record_save_cleanups): Renamed to ...
8405 (record_full_save_cleanups): ... this. Updated all users.
8406 (cmd_record_start): Renamed to ...
8407 (cmd_record_full_start): ... this. Updated all users.
8408 (set_record_insn_max_num): Renamed to ...
8409 (set_record_full_insn_max_num): ... this. Updated all users.
8410 (set_record_command): Renamed to ...
8411 (set_record_full_command): ... this. Updated all users.
8412 (show_record_command): Renamed to ...
8413 (show_record_full_command): ... this. Updated all users.
8414 (_initialize_record): Renamed to ...
8415 (_initialize_record_full): ... this. Updated all users.
8416
d02ed0bb
MM
84172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8418
8419 * record.h: Split into this and ...
8420 * record-full.h: ... this.
8421 * record.c: Split into this and ...
8422 * record-full.c: ... this.
8423 * target.h (target_ops): Add new fields to_info_record,
8424 to_save_record, to_delete_record, to_record_is_replaying,
8425 to_goto_record_begin, to_goto_record_end, to_goto_record.
8426 (target_info_record): New.
8427 (target_save_record): New.
8428 (target_supports_delete_record): New.
8429 (target_delete_record): New.
8430 (target_record_is_replaying): New.
8431 (target_goto_record_begin): New.
8432 (target_goto_record_end): New.
8433 (target_goto_record): New.
8434 * target.c (target_info_record): New.
8435 (target_save_record): New.
8436 (target_supports_delete_record): New.
8437 (target_delete_record): New.
8438 (target_record_is_replaying): New.
8439 (target_goto_record_begin): New.
8440 (target_goto_record_end): New.
8441 (target_goto_record): New.
8442 * record.h: Declare struct cmd_list_element.
8443 (record_cmdlist): New declaration.
8444 (set_record_cmdlist): New declaration.
8445 (show_record_cmdlist): New declaration.
8446 (info_record_cmdlist): New declaration.
8447 (cmd_record_goto): New declaration.
8448 * record.c: Remove unnecessary includes.
8449 Include inferior.h.
8450 (cmd_record_goto): Remove declaration.
8451 (record_cmdlist): Now extern. Initialize.
8452 (set_record_cmdlist): Now extern. Initialize.
8453 (show_record_cmdlist): Now extern. Initialize.
8454 (info_record_cmdlist): Now extern. Initialize.
8455 (find_record_target): New.
8456 (require_record_target): New.
8457 (cmd_record_start): Update.
8458 (cmd_record_delete): Remove target-specific code.
8459 Call target_delete_record.
8460 (cmd_record_stop): Unpush any record target.
8461 (set_record_insn_max_num): Move to record-full.c
8462 (set_record_command): Add comment.
8463 (show_record_command): Add comment.
8464 (info_record_command): Update comment.
8465 Remove target-specific code.
8466 Call the record target's to_info_record.
8467 (cmd_record_start): New.
8468 (cmd_record_goto): Now extern.
8469 Remove target-specific code.
8470 Call target_goto_begin, target_goto_end, or target_goto.
8471 (_initialize_record): Move record target ops initialization to
8472 record-full.c.
8473 Change "record" command help text.
8474 Move "record restore", "record set", and "record show" commands to
8475 record-full.c.
8476 * Makefile.in (SFILES): Add record-full.c.
8477 (HFILES_NO_SRCDIR): Add record-full.h.
8478 (COMMON_OBS): Add record-full.o.
8479 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8480 * arm-tdep.c: Include record-full.h.
8481 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8482 * i386-tdep.c: Include record-full.h.
8483 * infrun.c: Include record-full.h.
8484 * linux-record.c: Include record-full.h.
8485 * moxie-tdep.c: Include record-full.h.
8486 * record-full.c: Include record-full.h.
8487 Change module comment.
8488 (set_record_full_cmdlist): New.
8489 (show_record_full_cmdlist): New.
8490 (record_full_cmdlist): New.
8491 (record_goto_insn): New declaration.
8492 (record_save): New declaration.
8493 (record_check_insn_num): Change query string.
8494 (record_info): New.
8495 (record_delete): New.
8496 (record_is_replaying): New.
8497 (record_goto_entry): New.
8498 (record_goto_begin): New.
8499 (record_goto_end): New.
8500 (record_goto): New.
8501 (init_record_ops): Update.
8502 (init_record_core_ops): Update.
8503 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8504 (cmd_record_start): New.
8505 (set_record_insn_max_num): Moved from record.c
8506 (set_record_full_command): New.
8507 (show_record_full_command): New.
8508 (_initialize_record_full): New.
8509
b48d48eb
MM
85102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8511
8512 * target.h (add_deprecated_target_alias): New.
8513 * target.c (add_deprecated_target_alias): New.
8514
a950d57c
MM
85152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8516
8517 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8518 and signal.h.
8519 (linux_supports_btrace): Add kernel and
8520 cpuid check.
8521 (kernel_supports_btrace): New function.
8522 (cpu_supports_btrace): New function.
8523 (intel_supports_btrace): New function.
8524
9accd112
MM
85252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8526
8527 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8528 * remote.c: Include btrace.h.
8529 (struct btrace_target_info): New struct.
8530 (remote_supports_btrace): New function.
8531 (send_Qbtrace): New function.
8532 (remote_enable_btrace): New function.
8533 (remote_disable_btrace): New function.
8534 (remote_teardown_btrace): New function.
8535 (remote_read_btrace): New function.
8536 (init_remote_ops): Add btrace ops.
8537 (enum <unnamed>): Add btrace packets.
8538 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8539 (_initialize_remote): Add packet configuration for branch tracing.
8540
c12a2917
MM
85412013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8542
8543 * features/btrace.dtd: New file.
8544 * Makefile.in (XMLFILES): Add btrace.dtd.
8545 * btrace.h (parse_xml_btrace): New declaration.
8546 * btrace.c: Include xml-support.h.
8547 (parse_xml_btrace): New function.
8548 (parse_xml_btrace_block): New function.
8549 (block_attributes): New struct.
8550 (btrace_attributes): New struct.
8551 (btrace_children): New struct.
8552 (btrace_elements): New struct.
8553
3e3aea48
MM
85542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8555
8556 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8557 (amd64_linux_enable_btrace): New.
8558 (amd64_linux_disable_btrace): New.
8559 (amd64_linux_teardown_btrace): New.
8560 (_initialize_amd64_linux_nat): Initialize btrace ops.
8561 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8562 (i386_linux_enable_btrace): New.
8563 (i386_linux_disable_btrace): New.
8564 (i386_linux_teardown_btrace): New.
8565 (_initialize_i386_linux_nat): Initialize btrace ops.
8566 * config/i386/linux.mh: Add linux-btrace.o.
8567 * config/i386/linux64.mh: Add linux-btrace.o.
8568
7c97f91e
MM
85692013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8570
8571 * common/linux_btrace.h: New file.
8572 * common/linux_btrace.c: New file.
8573 * Makefile.in (SFILES): Add btrace.c.
8574 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8575 (COMMON_OBS): Add btrace.o.
8576 (linux-btrace.o): New rule.
8577
1999790b 85782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8579
8580 * target.h: Include btrace.h.
8581 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8582 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8583 * target.c (target_supports_btrace): New function.
8584 (target_enable_btrace): New function.
8585 (target_disable_btrace): New function.
8586 (target_teardown_btrace): New function.
8587 (target_read_btrace): New function.
8588 * btrace.h: New file.
8589 * btrace.c: New file.
8590 * Makefile.in: Add btrace.c.
8591 * gdbthread.h: Include btrace.h.
8592 (struct thread_info): Add btrace field.
8593 * thread.c: Include btrace.h.
8594 (clear_thread_inferior_resources): Call target_teardown_btrace.
8595 * common/btrace-common.h: New file.
8596
61a31a67
JK
85972013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8598
8599 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8600 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8601 kill_status to outer block.
8602
05c56a9d
JK
86032013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8604
8605 Fix entry-values if the callee called a noreturn function.
8606 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8607 get_frame_address_in_block. Add new comment.
8608
9112db09
JK
86092013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8610
8611 Fix entry-values in C++ across CUs.
8612 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8613 lookup_minimal_symbol. Add a comment.
8614 * dwarf2read.c
8615 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8616 DW_AT_linkage_name.
8617
9b67fcec
YQ
86182013-03-08 Yao Qi <yao@codesourcery.com>
8619
8620 * tracepoint.c (_initialize_tracepoint): Indent the code.
8621
6221be90
PA
86222013-03-08 Pedro Alves <palves@redhat.com>
8623
8624 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8625 (parse_find_args, find_command): Change type of pattern buffer
8626 locals to 'gdb_byte *'.
8627
be9a119c 86282013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8629 Hafiz Abid Qadeer <abidh@codesourcery.com>
8630
8631 * NEWS: Mention set and show trace-buffer-size commands.
8632 Mention new packet.
8633 * target.h (struct target_ops): New method
8634 to_set_trace_buffer_size.
8635 (target_set_trace_buffer_size): New macro.
8636 * target.c (update_current_target): Set up new method.
8637 * tracepoint.c (trace_buffer_size): New global.
8638 (start_tracing): Send it to the target.
8639 (set_trace_buffer_size): New function.
8640 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8641 * remote.c (remote_set_trace_buffer_size): New function.
8642 (_initialize_remote): Use it.
8643 (QTBuffer:size) New remote command.
8644 (PACKET_QTBuffer_size): New enum.
8645 (remote_protocol_features): Add an entry for
8646 PACKET_QTBuffer_size.
8647
7da3ab79
TT
86482013-03-08 Tom Tromey <tromey@redhat.com>
8649
8650 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8651 variable.
8652
0c1f71e7
PA
86532013-03-07 Pedro Alves <palves@redhat.com>
8654
8655 * target.c (target_read_stralloc, target_fileio_read_alloc):
8656 *Cast pointer to 'gdb_byte *' in target call.
8657
c8af03a2
PA
86582013-03-07 Pedro Alves <palves@redhat.com>
8659
8660 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8661 call.
8662
529480d0
KS
86632013-03-07 Keith Seitz <keiths@redhat.com>
8664
8665 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8666 (trace_pass_command): Likewise.
8667 * cli/cli-cmds.c: Include cli/cli-utils.h.
8668 (source_command): Use skip-spaces.
8669 (disassemble_command): Likewise.
8670 * findcmd.c: Include cli/cli-utils.h.
8671 (parse_find_args): Use skip_spaces.
8672 * go32-nat.c: Include cli/cli-utils.h.
8673 (go32_sldt): Use skip_spaces.
8674 (go32_sgdt): Likewise.
8675 (go32_sidt): Likewise.
8676 (go32_pde): Likewise.
8677 (go32_pte): Likewise.
8678 (go32_pte_for_address): Likewise.
8679 * infcmd.c: Include cli/cli-utils.h.
8680 (registers_info): Use skip_spaces.
8681 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8682 (linux_info_proc): Likewise.
8683 * linux-thread-db.c: Include cli/cli-utils.h.
8684 (info_auto_load_libthread_db): Use skip_spaces_const.
8685 * m32r-rom.c: Include cli/cli-utils.h.
8686 (m32r_upload_command): Use skip_spaces.
8687 * maint.c: Include cli/cli-utils.h.
8688 (maintenance_translate_address): Use skip_spaces.
8689 * mi/mi-parse.c: Include cli/cli-utils.h.
8690 (mi_parse_argv): Use skip_spaces.
8691 (mi_parse): Likewise.
8692 * minsyms.c: Include cli/cli-utils.h.
8693 (msymbol_hash_iw): Use skip_spaces_const.
8694 * objc-lang.c: Include cli/cli-utils.h.
8695 (parse_selector): Use skip_spaces.
8696 (parse_method): Likewise.
8697 * python/python.c: Include cli/cli-utils.h.
8698 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8699 (python_command)[HAVE_PYTHON]: Likewise.
8700 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8701 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8702 (m32r_load): Use skip_spaces.
8703 * serial.c: Include cli/cli-utils.h.
8704 (serial_open): Use skip_spaces_const.
8705 * stack.c: Include cli/cli-utils.h.
8706 (parse_frame_specification_1): Use skip_spaces_const.
8707 * symfile.c: Include cli/cli-utils.h.
8708 (set_ext_lang_command): Use skip_spaces.
8709 * symtab.c: Include cli/cli-utils.h.
8710 (rbreak_command): Use skip_spaces.
8711 * thread.c (thread_name_command): Use skip_spaces.
8712 * tracepoint.c (validate_actionline): Use skip_spaces.
8713 (encode_actions_1): Likewise.
8714 (trace_find_range_command): Likewise.
8715 (trace_find_outside_command): Likewise.
8716 (trace_dump_actions): Likewise.
8717
ac91cd70
PA
87182013-03-07 Pedro Alves <palves@redhat.com>
8719
8720 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8721 * expprint.c (print_subexp_standard): Likewise.
8722 * utils.c (host_char_to_target): Likewise.
8723 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8724 * varobj.c (value_get_print_value): Change type of local to char*.
8725 Cast it gdb_byte * in call to language printer.
8726
2898e560
PA
87272013-03-07 Pedro Alves <palves@redhat.com>
8728
8729 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8730 gdb_byte *'.
8731 (make_wchar_iterator): Remove cast to char*.
8732 (wchar_iterate): Change type of local.
8733
a09b4448
PA
87342013-03-07 Pedro Alves <palves@redhat.com>
8735
8736 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8737 for 'regcache->register_status'.
8738
20ced3e4
PA
87392013-03-07 Pedro Alves <palves@redhat.com>
8740
c2d6a675 8741 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
8742 int.
8743
fe106009
PA
87442013-03-07 Pedro Alves <palves@redhat.com>
8745
8746 * stap-probe.c (handle_stap_probe): Add cast to char*.
8747
8ac2c12b
PA
87482013-03-07 Pedro Alves <palves@redhat.com>
8749
8750 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8751 RECORD_MSGRCV>: Pass a signed variable to
8752 regcache_raw_read_signed, instead of an unsigned one.
8753
99f0a309
PA
87542013-03-07 Pedro Alves <palves@redhat.com>
8755
8756 * remote-notif.c (notif_debug): Change type to int.
8757 * remote-notif.h (notif_debug): Likewise.
8758
964b8317
PA
87592013-03-07 Pedro Alves <palves@redhat.com>
8760
8761 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8762
f0cc8ad4
PA
87632013-03-07 Pedro Alves <palves@redhat.com>
8764
8765 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8766 * remote.h (hex2bin, bin2hex): ... here.
8767 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8768
77dec115
EZ
87692013-03-07 Eli Zaretskii <eliz@gnu.org>
8770
8771 * utils.c (initialize_utils): Improve doc strings of "set/show
8772 width", "set/show height", and "set/show pagination".
8773
741d92cf
KS
87742013-03-06 Keith Seitz <keiths@redhat.com>
8775
8776 * ax-gdb.c (gen_printf): Make FORMAT const.
8777 * ax-gdb.h (gen_printf): Likewise.
8778 * ax-general.c (ax_string): Make STR const.
8779 * ax.h (ax_string): Likewise.
8780
7b6c814e
DE
87812013-03-06 Doug Evans <dje@google.com>
8782
8783 * elfread.c (elf_symfile_read): Move debugging printf to more
8784 logical location.
8785
634334ab
PA
87862013-03-06 Pedro Alves <palves@redhat.com>
8787
8788 * python/py-utils.c (target_string_to_unicode): Delete function.
8789 * python/python-internal.h (target_string_to_unicode): Delete
8790 declaration.
8791
e482a1a7
PM
87922013-03-06 Pierre Muller <muller@sourceware.org>
8793
8794 * linespec.c (get_current_search_block): ARI fix, use (void)
8795 for empty parameter list.
8796
4eeaa230
DE
87972013-03-05 Doug Evans <dje@google.com>
8798
8799 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8800 of old ada_lookup_symbol_list. In !full_search case, don't
8801 search superblocks.
8802 (ada_lookup_symbol_list): Delete arg full_search, all callers
8803 updated. Call ada_lookup_symbol_list_worker.
8804 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8805 * ada-lang.h (ada_lookup_symbol_list): Update.
8806 * language.h (language_defn): Update comment for
8807 la_iterate_over_symbols.
8808 * linespec.c (iterate_over_file_blocks): New function.
8809 (iterate_over_all_matching_symtabs): Call it.
8810 (lookup_prefix_sym): Ditto.
8811 (get_current_search_block): New function.
8812 (get_search_block): Delete.
8813 (find_label_symbols): Call get_current_search_block.
8814 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8815 * symtab.c (iterate_over_symbols): Don't search superblocks.
8816
b69b1fb1
YQ
88172013-03-05 Yao Qi <yao@codesourcery.com>
8818
8819 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8820 parameter VAR's type from "unsigned int" to "int".
8821 * command.h (var_zuinteger_unlimited): Update its comments.
8822 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8823
3c095f49
CV
88242013-03-05 Corinna Vinschen <vinschen@redhat.de>
8825
8826 * NEWS: Mention new target x86_64-*-cygwin*.
8827
b5b0b0af
CV
88282013-03-05 Corinna Vinschen <vinschen@redhat.de>
8829
8830 * configure.host: Add x86_64-*-cygwin* as host.
8831 * configure.tgt: Add x86_64-*-cygwin* as target.
8832 * config/i386/cygwin64.mh: New file.
8833
f6f99966
JK
88342013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8835
8836 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8837
33f448b1
JK
88382013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8839
8840 * linespec.c (struct linespec_canonical_name): New.
8841 (struct linespec_state): Change canonical_names type to it.
8842 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8843 xrealloc element size. Initialize the different CANONICAL fields.
8844 (canonical_to_fullform): New.
8845 (filter_results): Use it. Add variables canonical, fullform and
8846 cleanup.
8847 (struct decode_line_2_item, decode_line_2_compare_items): New.
8848 (decode_line_2): Remove variables iter and item_names, add variables
8849 items and items_count. Modify the code for these new variables.
8850
feb14725
CV
88512013-03-04 Corinna Vinschen <vinschen@redhat.com>
8852
8853 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8854 calling do_cleanup.
8855
e83b17ba
HZ
88562013-03-04 Luis Machado <lgustavo@codesourcery.com>
8857
8858 * tracepoint.c (build_traceframe_info): Add code for byte order.
8859
a2d13a0d
KB
88602013-03-02 Kevin Buettner <kevinb@redhat.com>
8861
8dddcae8
KB
8862 * v850-tdep.c: (v850e2_register_name): Revise system register
8863 names to match current V850E2M architecture specifications.
8864 Update register number enum comments too.
f5aee5ee 8865
d79e58d8
JW
88662013-03-01 Jiong Wang <jiwang@tilera.com>
8867 Pedro Alves <palves@redhat.com>
8868
8869 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8870 to END_ADDR.
8871 (tilegx_skip_prologue): Limit prologue analysis to section end.
8872
c4be5165
JK
88732013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8874
8875 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8876 use it.
8877
e362b510
PA
88782013-03-01 Pedro Alves <palves@redhat.com>
8879
8880 Use gdb_byte for bytes from the program being debugged.
8881
8882 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8883 Change type of local 'buf' to gdb_byte.
8884 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8885 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8886 * cris-tdep.c (cris_sigcontext_addr)
8887 (cris_sigtramp_frame_unwind_cache): Likewise.
8888 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8889 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8890 Likewise.
8891 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8892 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8893 (hppa32_hpux_search_dummy_call_sequence)
8894 (hppa_hpux_supply_save_state): Likewise.
8895 * hppa-linux-tdep.c (insns_match_pattern)
8896 (hppa_linux_find_global_pointer): Likewise.
8897 * hppa-tdep.c (hppa_in_function_epilogue_p)
8898 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8899 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8900 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8901 (i386fbsd_collect_uthread): Likewise.
8902 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8903 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8904 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8905 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8906 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8907 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8908 (ia64_libunwind_frame_prev_register)
8909 (ia64_libunwind_sigtramp_frame_this_id)
8910 (ia64_find_global_pointer_from_dynamic_section)
8911 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8912 (ia64_unwind_pc): Likewise.
8913 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8914 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8915 (m68hc11_extract_return_value): Likewise.
8916 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8917 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8918 (mep_get_insn, mep_push_dummy_call): Likewise.
8919 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8920 (mips_linux_in_dynsym_stub): Likewise.
8921 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8922 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8923 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8924 to gdb_byte.
8925 * remote-mips.c (mips_set_register): Likewise.
8926 * remote-sim.c (gdbsim_fetch_register): Likewise.
8927 * score-tdep.c (score7_fetch_inst): Change type of parameter
8928 'memblock' and local 'buf' to gdb_byte.
8929 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8930 Change type of local 'buf' to gdb_byte. Adjust.
8931 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8932 to gdb_byte**.
8933 (score7_analyze_prologue): Change type of 'memblock' and
8934 'memblock_ptr' locals to gdb_byte*.
8935 * sh64-tdep.c (sh64_extract_return_value)
8936 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8937 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8938 * solib-pa64.c (pa64_solib_create_inferior_hook)
8939 (pa64_open_symbol_file_object): Remove local 'buf'.
8940 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8941 (som_open_symbol_file_object): Likewise.
8942 * solib-spu.c (spu_current_sos): Likewise.
8943 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8944 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8945 (spu_store_registers): Likewise.
8946 * target.c (debug_print_register): Likewise.
8947 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8948 * xstormy16-tdep.c (xstormy16_store_return_value)
8949 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8950 (xstormy16_find_jmp_table_entry): Likewise.
8951
75cc61ca 89522013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
8953
8954 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8955 (tilegx_gdbarch_init): Install it.
8956
ddb08e9c
TT
89572013-02-28 Tom Tromey <tromey@redhat.com>
8958
8959 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8960 PyLong_Check.
8961
62d7fb51
DE
89622013-02-28 Doug Evans <dje@google.com>
8963
8964 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8965 * python/python.c (gdbpy_find_pc_line): Ditto.
8966
c4a9e8b4
TT
89672013-02-28 Tom Tromey <tromey@redhat.com>
8968
8969 * contrib/excheck.py: New file.
8970 * contrib/exsummary.py: New file.
8971 * contrib/gcc-with-excheck: New file.
8972
7f6a5dde
TT
89732013-02-28 Tom Tromey <tromey@redhat.com>
8974
8975 * python/python.c (gdbpy_print_stack): Call begin_line and
8976 fprintf_filtered inside TRY_CATCH.
8977
9e974e55
TT
89782013-02-28 Tom Tromey <tromey@redhat.com>
8979
8980 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8981 inside TRY_CATCH.
8982
dd5fa3e7
TT
89832013-02-28 Tom Tromey <tromey@redhat.com>
8984
8985 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8986 frame_object_to_frame_info inside TRY_CATCH.
8987
86a3263f
TT
89882013-02-28 Tom Tromey <tromey@redhat.com>
8989
8990 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8991 TRY_CATCH.
8992
81b52a3a
TT
89932013-02-28 Tom Tromey <tromey@redhat.com>
8994
8995 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8996
d50a0ce2
CV
89972013-02-27 Corinna Vinschen <vinschen@redhat.com>
8998
8999 * windows-nat.c: Throughout, fix format strings and casts of
9000 printf-like functions to avoid type related warnings on all
9001 platforms.
9002 (handle_output_debug_string): Fetch context information address
9003 from debug string using string_to_core_addr.
9004
e1f58301
JW
90052013-02-27 Jiong Wang <jiwang@tilera.com>
9006
9007 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9008 * regformats/reg-tilegx32.dat: New.
9009
4fcd89fc
JW
90102013-02-27 Jiong Wang <jiwang@tilera.com>
9011
9012 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9013
748d24e6
JW
90142013-02-27 Jiong Wang <jiwang@tilera.com>
9015
9016 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9017
6c8e944d
YQ
90182013-02-27 Yao Qi <yao@codesourcery.com>
9019 Pedro Alves <palves@redhat.com>
9020
9021 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9022 pc/tp/range/outside, look for the next trace frame instead of
9023 always starting from frame 0.
6c8e944d 9024
acd7db30
AG
90252013-02-26 Anthony Green <green@moxielogic.com>
9026
9027 * configure.tgt: Add support for moxie-*-rtems* target.
9028
025e6dce
PA
90292013-02-25 Pedro Alves <palves@redhat.com>
9030
9031 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9032 warning text.
9033
ca9c94ef
MR
90342013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9035
9036 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9037 if $fp is used as the virtual frame pointer.
9038
24c274a1
AM
90392013-02-23 Alan Modra <amodra@gmail.com>
9040
9041 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9042 symbol size.
9043 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9044 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9045 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9046 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9047
bfada189
JK
90482013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9049
9050 Code cleanup.
9051 * elfread.c (build_id_bfd_get): Make the return type const.
9052 (build_id_verify): Make the check parameter const.
9053 (build_id_to_debug_filename): Make the build_id parameter and variable
9054 data const.
9055 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9056
c0355132
AM
90572013-02-21 Alan Modra <amodra@gmail.com>
9058
9059 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9060
9f44fbc0
SCR
90612013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9062
9063 Add a new method 'disassemble' to gdb.Architecture class.
9064 * python/py-arch.c (archpy_disassmble): Implementation of the
9065 new method gdb.Architecture.disassemble.
9066 (arch_object_methods): Add entry for the new method.
9067
b74ea3eb
JW
90682013-02-20 Jiong Wang <jiwang@tilera.com>
9069
9070 * MAINTAINERS (Write After Approval): Add myself to the list.
9071
61a672f1
PA
90722013-02-19 Pedro Alves <palves@redhat.com>
9073
9074 Garbage collect 'struct monitor_ops'::load_routine.
9075
9076 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9077 * monitor.c (monitor_load): No longer call
9078 current_monitor->load_routine.
9079 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9080 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9081 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9082
40e397df
PA
90832013-02-19 Pedro Alves <palves@redhat.com>
9084
9085 PR gdb/15161
9086
9087 Harmonize with generic_load.
9088
9089 * monitor.c: Include "readline/readline.h".
9090 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9091 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9092 long/strtol for the 'load_offset' local. Error out if no argument
9093 is given or if too many arguments are given. Tilde expand the
9094 passed in file name.
9095
f698ca8e
KT
90962013-02-19 Kai Tietz <ktietz@redhat.com>
9097
9098 PR gdb/15161
9099 * symfile.c (load_section_data): Change type of load_offset
9100 to CORE_ADDR.
9101 (generic_load): User strtoulst instead of strtoul for conversion
9102 of load_offset.
9103
3361b059
WL
91042013-02-19 Jiong Wang <jiwang@tilera.com>
9105
9106 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9107 for return address, "lr" register, saved on stack.
9108 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9109 after we invoke tilegx_analyze_prologue.
9110
3e9d5130
WL
91112013-02-19 Jiong Wang <jiwang@tilera.com>
9112
bb1bcd86
WL
9113 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9114
3361b059 91152013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9116
b74ea3eb 9117 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9118
4aaf2503
WL
91192013-02-19 Jiong Wang <jiwang@tilera.com>
9120
b74ea3eb 9121 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9122 (tilegx_write_pc): New function.
9123 (tilegx_cannot_reference_register): Return zero if REGNO
9124 is TILEGX_FAULTNUM_REGNUM.
9125 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9126 (tilegx_register_name): Add handling of "faultnum" register.
9127 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9128 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9129 handling of TILEGX_FAULTNUM_REGNUM.
9130 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9131
bc23a956
WL
91322013-02-19 Jiong Wang <jiwang@tilera.com>
9133
9134 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9135 should be aligned to 64bit.
bc23a956 9136
42f45f1a
KT
91372013-02-19 Kai Tietz <ktietz@redhat.com>
9138
9139 * windows-nat.c (windows_xfer_memory): Fix debug-output
9140 for LLP64.
9141
6ce4c112
LL
91422013-02-19 Lei Liu <lei.liu2@windriver.com>
9143
9144 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9145 Don't check DSP register number if HAVE_DSP is not set.
9146
30e8ee25
AM
91472013-02-19 Alan Modra <amodra@gmail.com>
9148
9149 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9150 throughout file instead.
9151 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9152 Don't xmalloc return value.
9153 (build_id_verify): Similarly. Don't xfree.
9154 (build_id_to_debug_filename): Update.
9155 (find_separate_debug_file_by_buildid): Update, don't xfree.
9156
4c9ad8c2
TT
91572013-02-18 Tom Tromey <tromey@redhat.com>
9158
9159 PR gdb/15102:
9160 * dwarf2read.c (read_subrange_type): Use result of
9161 'check_typedef'.
9162
983dc440
YQ
91632013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9164
9165 * frame.c: Remove one extra white space after #include
9166 directive.
9167
7fb2b84a
JK
91682013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9169
9170 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9171
edceb2a9
JK
91722013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9173
9174 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9175 and dir commands into an if block.
9176
e81b7af8
TT
91772013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9178
9179 * python/py-breakpoint (struct pybp_code): Use int instead of
9180 enum type_code.
9181
f5911ea1
HAQ
91822013-02-15 Pedro Alves <pedro@codesourcery.com>
9183 Hafiz Abid Qadeer <abidh@codesourcery.com>
9184
9185 * NEWS: Mention new field "trace-file".
9186 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9187 (tfile_open): Record the trace file's filename in the trace
9188 status.
9189 (tfile_files_info): Mention the name of the trace file.
9190 Check the "filename" field explicitely.
9191 (trace_status_command): Explicitely check "filename" field.
9192 (trace_find_command): Ditto.
9193 (trace_find_pc_command): Ditto.
9194 (trace_find_tracepoint_command): Ditto.
9195 (trace_find_line_command): Ditto.
9196 (trace_find_range_command): Ditto.
9197 (trace_find_outside_command): Ditto.
9198 * tracepoint.h (struct trace_status) <from_file>: Rename it
9199 to "filename" and make it hold the trace file's filename
9200 instead of a boolean.
9201 * remote.c (remote_get_trace_status): Initialize "filename"
9202 field with NULL instead of 0.
9203
796cb314
YQ
92042013-02-15 Yao Qi <yao@codesourcery.com>
9205
9206 * remote.c: Fix a typo.
9207
42e79b1d
PM
92082013-02-14 Pierre Muller <muller@sourceware.org>
9209
9210 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9211
baea0dae
PA
92122013-02-14 Pedro Alves <palves@redhat.com>
9213
9214 * utils.c (savestring): Don't #undef it. Move function to
9215 common/common-utils.c.
9216 * common/common-utils.c: Include gdb_string.h.
9217 (savestring): Move here from utils.c.
9218 * common/common-utils.h (savestring): Declare.
9219
57c3b6ed
PA
92202013-02-14 Pedro Alves <palves@redhat.com>
9221
9222 * utils.c (savestring): Rename parameter 'size' to 'len'.
9223
d6c44983
YZ
92242013-02-14 Pedro Alves <palves@redhat.com>
9225 Yufeng Zhang <yufeng.zhang@arm.com>
9226
9227 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9228 (aarch64_inferior_data, struct aarch64_inferior_data):
9229 Delete.
9230 (struct aarch64_process_info): New.
9231 (aarch64_process_list): New global.
9232 (aarch64_find_process_pid, aarch64_add_process)
9233 (aarch64_process_info_get): New functions.
9234 (aarch64_inferior_data_get): Delete.
9235 (aarch64_process_info_get): New function.
9236 (aarch64_forget_process): New function.
9237 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9238 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9239 aarch64_get_debug_reg_state.
9240 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9241 instead of linux_nat_iterate_watchpoint_lwps.
9242 (aarch64_linux_new_fork): New function.
9243 (aarch64_linux_child_post_startup_inferior): Use
9244 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9245 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9246 (aarch64_linux_remove_hw_breakpoint)
9247 (aarch64_handle_aligned_watchpoint)
9248 (aarch64_handle_unaligned_watchpoint)
9249 (aarch64_linux_insert_watchpoint)
9250 (aarch64_linux_remove_watchpoint)
9251 (aarch64_linux_stopped_data_address): Adjust to pass the current
9252 process id to aarch64_debug_reg_state.
9253 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9254 linux_nat_new_fork hook, and aarch64_forget_process as
9255 linux_nat_forget_process hook; remove the call to
9256 register_inferior_data_with_cleanup.
9257
4819b3f8
PA
92582013-02-14 Pedro Alves <palves@redhat.com>
9259
9260 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9261 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9262 lval_memory.
9263
1773c82c
HAQ
92642013-02-14 Pedro Alves <pedro@codesourcery.com>
9265 Hafiz Abid Qadeer <abidh@codesourcery.com>
9266
9267 * tracepoint.h (validate_trace_state_variable_name): Declare.
9268 * tracepoint.c (validate_trace_state_variable_name): New.
9269 (trace_variable_command): Parse the trace state variable's name
9270 without using parse_expression. Do several validations.
9271 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9272 trace state variable's name with parse_expression. Validate it.
9273
53778a97
YQ
92742013-02-14 Yao Qi <yao@codesourcery.com>
9275
9276 * infcmd.c (breakpoint_proceeded): Remove it.
9277
7b3ae3a6
YQ
92782013-02-14 Yao Qi <yao@codesourcery.com>
9279
9280 * tracepoint.c (end_actions_pseudocommand): Make it static.
9281 (while_stepping_pseudocommand): Likewise.
9282 * tracepoint.h (end_actions_pseudocommand): Remove the
9283 declaration.
9284 (while_stepping_pseudocommand): Likewise.
9285
64580925
YQ
92862013-02-14 Yao Qi <yao@codesourcery.com>
9287
9288 * cli/cli-decode.c (help_cmd): Remove the declaration of
9289 "cmdlist".
9290 (help_all): Likewise.
9291
26cb8b7c
PA
92922013-02-13 Pedro Alves <palves@redhat.com>
9293
9294 * amd64-linux-nat.c (update_debug_registers_callback):
9295 Update comment.
9296 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9297 iterate_over_lwps.
9298 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9299 i386_debug_reg_state.
9300 (amd64_linux_new_fork): New function.
9301 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9302 linux_nat_new_fork hook, and i386_forget_process as
9303 linux_nat_forget_process hook.
9304 * i386-linux-nat.c (update_debug_registers_callback):
9305 Update comment.
a8256ea1 9306 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9307 iterate_over_lwps.
9308 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9309 i386_debug_reg_state.
9310 (i386_linux_new_fork): New function.
9311 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9312 linux_nat_new_fork hook, and i386_forget_process as
9313 linux_nat_forget_process hook.
9314 * i386-nat.c (i386_init_dregs): Delete.
9315 (i386_inferior_data, struct i386_inferior_data):
9316 Delete.
9317 (struct i386_process_info): New.
9318 (i386_process_list): New global.
9319 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9320 New functions.
9321 (i386_inferior_data_get): Delete.
9322 (i386_process_info_get): New function.
9323 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9324 (i386_forget_process): New function.
9325 (i386_cleanup_dregs): Rewrite.
9326 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9327 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9328 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9329 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9330 to i386_debug_reg_state.
9331 (i386_use_watchpoints): Don't register inferior data.
9332 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9333 adjust comment.
9334 (i386_forget_process): Declare.
9335 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9336 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9337 New static globals.
9338 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9339 (add_initial_lwp): New, factored out from ...
9340 (add_lwp): ... this. Don't check the number of lwps before
9341 calling linux_nat_new_thread.
9342 (linux_nat_iterate_watchpoint_lwps): Delete.
9343 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9344 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9345 forks and vforks.
9346 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9347 initial lwp.
9348 (linux_nat_kill, linux_nat_mourn_inferior): Call
9349 linux_nat_forget_process.
9350 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9351 (linux_nat_forget_process): New functions.
9352 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9353 type.
9354 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9355 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9356 types.
9357 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9358 (linux_nat_forget_process): New declarations.
9359
9360 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9361 (amd64fbsd_mourn_inferior): New function.
9362 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9363 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9364
5befea72
MS
93652013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9366
55015247
YQ
9367 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9368 Adding _().
5befea72 9369
1d3ffd6b
MS
93702013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9371
9372 * aarch64-linux-nat.c (debug_reg_change_callback)
9373 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9374 %s and phex().
9375
6eb04473
MS
93762013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9377
9378 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9379 with LONGEST.
9380
a016fc87
HAQ
93812013-02-13 Pedro Alves <palves@redhat.com>
9382 Hafiz Abid Qadeer <abidh@codesourcery.com>
9383
9384 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9385
e234dfaf
TT
93862013-02-12 Tom Tromey <tromey@redhat.com>
9387
9388 PR symtab/11464:
9389 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9390 NAME return.
9391 (classify_inner_name): Remove 'first_name' argument, add
9392 'context'. Remove unused variable.
9393 (yylex): Explicitly maintain the context type. Exit loop earlier
9394 if NAME result is seen.
9395
0b1afbb3
PA
93962013-02-12 Pedro Alves <palves@redhat.com>
9397
9398 * amd64-darwin-tdep.c: Add (C) after Copyright.
9399 * cli/cli-cmds.h: Ditto.
9400 * cli/cli-decode.c: Ditto.
9401 * cli/cli-decode.h: Ditto.
9402 * cli/cli-dump.c: Ditto.
9403 * cli/cli-dump.h: Ditto.
9404 * cli/cli-interp.c: Ditto.
9405 * cli/cli-logging.c: Ditto.
9406 * cli/cli-script.c: Ditto.
9407 * cli/cli-script.h: Ditto.
9408 * cli/cli-setshow.c: Ditto.
9409 * cli/cli-setshow.h: Ditto.
9410 * cli/cli-utils.c: Ditto.
9411 * cli/cli-utils.h: Ditto.
9412 * config/alpha/nm-osf3.h: Ditto.
9413 * config/djgpp/djconfig.sh: Ditto.
9414 * config/i386/nm-fbsd.h: Ditto.
9415 * config/i386/nm-i386gnu.h: Ditto.
9416 * config/nm-linux.h: Ditto.
9417 * config/nm-nto.h: Ditto.
9418 * config/rs6000/nm-rs6000.h: Ditto.
9419 * config/sparc/nm-sol2.h: Ditto.
9420 * darwin-nat-info.c: Ditto.
9421 * dfp.c: Ditto.
9422 * dfp.h: Ditto.
9423 * gdb-demangle.h: Ditto.
9424 * i386-darwin-nat.c: Ditto.
9425 * i386-darwin-tdep.c: Ditto.
9426 * linux-fork.h: Ditto.
9427 * m32c-tdep.c: Ditto.
9428 * microblaze-linux-tdep.c: Ditto.
9429 * microblaze-rom.c: Ditto.
9430 * microblaze-tdep.c: Ditto.
9431 * microblaze-tdep.h: Ditto.
9432 * mips-linux-tdep.h: Ditto.
9433 * ppc-ravenscar-thread.c: Ditto.
9434 * ppc-ravenscar-thread.h: Ditto.
9435 * prologue-value.c: Ditto.
9436 * prologue-value.h: Ditto.
9437 * ravenscar-thread.c: Ditto.
9438 * ravenscar-thread.h: Ditto.
9439 * sparc-ravenscar-thread.c: Ditto.
9440 * sparc-ravenscar-thread.h: Ditto.
9441 * tilegx-linux-tdep.c: Ditto.
9442 * unwind_stop_reasons.def: Ditto.
9443 * windows-nat.h: Ditto.
9444 * xtensa-linux-tdep.c: Ditto.
9445 * xtensa-xtregs.c: Ditto.
9446 * regformats/regdat.sh: Ditto.
9447 * regformats/regdef.h: Ditto.
9448
6c01dd94
PA
94492013-02-12 Pedro Alves <palves@redhat.com>
9450
9451 * break-catch-sig.c: Update copyright years.
9452
b65a2bd9
SCR
94532013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9454
9455 Add support for a destructor for ui_out data and use it to
9456 provide a ui_out destructor.
9457 * ui-out.h: Declare the new ui_out destructor.
9458 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9459 * ui-out.c (default_data_destroy): Add a default data destructor
9460 which does nothing.
9461 (default_ui_out_impl): Set the new data_destroy field to
9462 default_data_destroy
9463 (uo_data_destroy): Local function which invokes the data
9464 destructor if present.
9465 (clear_table): Local function which clears the table data of a
9466 ui_out object.
9467 (ui_out_destroy): Public function which frees a ui_out object.
9468 (ui_out_table_end): Use the new clear_table function.
9469 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9470 NULL.
9471 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9472 to NULL.
9473
c2792f5a
DE
94742013-02-11 Doug Evans <dje@google.com>
9475
9476 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9477 (printf_decfloat): New function. Broken out from ui_printf.
9478 Remove unnecessary code to shift the entire format string down.
9479 (printf_pointer): New function.
9480 (ui_printf): Code to print C strings, wide C strings, decfloats,
9481 and pointers moved to separate functions.
9482
d9e98382
SDJ
94832013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9484
9485 * valops.c (value_assign): Handling bitfield offset in
9486 `lval_internalvar_component' case.
9487
4ff3ce77
DE
94882013-02-08 Doug Evans <dje@google.com>
9489
9490 * common/format.c (parse_format_string): Fix whitespace.
9491
901900c4
MGD
94922013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9493
9494 * stack.c (return_command): Work around uninitialized variable
9495 warning.
9496
b5dbc8d4
YZ
94972013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9498
9499 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9500 number of the registers from 36 to 34.
9501
51d66578
MS
95022013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9503
9504 * NEWS: Mention new AArch64 native and target support.
9505
176b1c95
MS
95062013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9507
9508 * MAINTAINERS (Write After Approval): Add myself.
9509
9d19df75
MS
95102013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9511 Marcus Shawcroft <marcus.shawcroft@arm.com>
9512 Nigel Stephens <nigel.stephens@arm.com>
9513 Yufeng Zhang <yufeng.zhang@arm.com>
9514
9515 * aarch64-linux-nat.c: New file.
9516 * config/aarch64/linux.mh: New file.
9517 * configure.host: Add AArch64.
9518 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9519
7e1e0340
DE
95202013-02-07 Doug Evans <dje@google.com>
9521
9522 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9523 disassemble command.
9524
45e25a36
MS
95252013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9526
9527 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9528 set_gdbarch_fetch_tls_load_module_address.
9529
bbfdfe1c
DM
95302013-02-06 David S. Miller <davem@davemloft.net>
9531
9532 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9533 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9534 * value.c (struct_return_convention): New function.
9535 (using_struct_return): Implement in terms of struct_return_convention.
9536 * value.h (struct_return_convention): Declare.
9537 * stack.c (return_command): Allow successful overriding of the return
9538 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9539
bc9abe4a
TT
95402013-02-06 Tom Tromey <tromey@redhat.com>
9541
9542 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9543 outside of TRY_CATCH.
9544
134a2066
YQ
95452013-02-06 Yao Qi <yao@codesourcery.com>
9546
9547 * mi/mi-interp.c: Include "tracepoint.h".
9548 (mi_tsv_modified): Declare.
9549 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9550 (mi_interpreter_init): Call observer_attach_tsv_modified.
9551 (mi_tsv_modified): New.
9552 (mi_tsv_created, mi_tsv_deleted): Update.
9553 * tracepoint.c (trace_variable_command): Call
9554 observer_notify_tsv_modified if the initial value of tsv is
9555 changed.
9556 (delete_trace_state_variable): Call
9557 observer_notify_tsv_deleted earlier.
9558 (trace_variable_command): Caller update.
9559 (create_tsv_from_upload): Likewise.
9560 * observer.sh: Declare "struct trace_state_variable".
9561
9562 * NEWS: Mention the new MI notification "=tsv-modified".
9563
59be2b6a
DE
95642013-02-05 Doug Evans <dje@google.com>
9565
9566 * completer.c (location_completer): Fix typo in comment.
9567
d30113d4
JK
95682013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9569
9570 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9571 ADDRESS sorted.
9572
14ac654f
MS
95732013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9574
9575 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9576 Refactor if statement to avoid trailing || operator.
9577
543bf33d
AT
95782013-02-05 Andreas Tobler <andreast@fgznet.ch>
9579
9580 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9581
dc18f110
AT
95822013-02-04 Andreas Tobler <andreast@fgznet.ch>
9583
9584 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9585 * configure.host: Add powerpc*-*-freebsd* target.
9586 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9587 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9588 * config/powerpc/fbsd.mh: New file.
9589
b3ac9c77
SDJ
95902013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9591 Denys Vlasenko <dvlasenk@redhat.com>
9592 Pedro Alves <palves@redhat.com>
9593
9594 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9595 (struct elf_internal_linux_prpsinfo): Forward declare.
9596 * gdbarch.h, gdbarch.c: Regenerate.
9597 * linux-tdep.c: Include `cli/cli-utils.h'.
9598 (linux_fill_prpsinfo): New function.
9599 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9600 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9601 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9602 depending on gdbarch pointer bitness.
9603 * ppc-linux-tdep.c: Include elf-bfd.h.
9604 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9605 on 32-bit.
9606
176eb98c
MS
96072013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9608 Marcus Shawcroft <marcus.shawcroft@arm.com>
9609 Nigel Stephens <nigel.stephens@arm.com>
9610 Yufeng Zhang <yufeng.zhang@arm.com>
9611
9612 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9613
cf0dbd6f
MS
96142013-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 * aarch64-newlib-tdep.c: New file.
9620 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9621 aarch64*-*-elf.
9622 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9623 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9624 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9625 * osabi.c (gdb_osabi_names): Add "Newlib".
9626
1ae3db19
MS
96272013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9628 Marcus Shawcroft <marcus.shawcroft@arm.com>
9629 Nigel Stephens <nigel.stephens@arm.com>
9630 Yufeng Zhang <yufeng.zhang@arm.com>
9631
9632 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9633 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9634 * aarch64-linux-tdep.c: New file.
9635 * aarch64-linux-tdep.h: New file.
9636 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9637 * configure.tgt: Add aarch64-none-linux-gnu.
9638
07b287a0
MS
96392013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9640 Marcus Shawcroft <marcus.shawcroft@arm.com>
9641 Nigel Stephens <nigel.stephens@arm.com>
9642 Yufeng Zhang <yufeng.zhang@arm.com>
9643
9644 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9645 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9646 (ALLDEPFILES): Add aarch64-tdep.c.
9647 * aarch64-tdep.c: New file.
9648 * aarch64-tdep.h: New file.
9649 * configure.tgt: Add AArch64.
9650 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9651 (aarch64-expedite): New definition.
9652 * features/aarch64-core.xml: New file.
9653 * features/aarch64-fpu.xml: New file.
9654 * features/aarch64-without-fpu.c: New file (generated).
9655 * features/aarch64-without-fpu.xml: New file.
9656 * features/aarch64.c: New file (generated).
9657 * features/aarch64.xml: New file.
9658 * regformats/aarch64-without-fpu.dat: New file (generated).
9659 * regformats/aarch64.dat: New file (generated).
9660
0f1b18ab
JK
96612013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9662
9663 * contrib/expect-read1.c: New file.
9664 * contrib/expect-read1.sh: New file.
9665
233d95b5
JK
96662013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9667
9668 * dwarf2read.c (file_file_name): New function with code from
9669 file_full_name.
9670 (file_full_name): Move most of the code to file_file_name.
9671 (macro_start_file): Rename variable full_name to file_name and use
9672 file_file_name for it. Add comp_dir parameter to new_macro_table.
9673 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9674 macro_source_file->filename access by macro_source_fullname call.
9675 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9676 caller.
9677 * macrotab.c (struct macro_table): New field comp_dir.
9678 (macro_include): New variables link_fullname and source_fullname.
9679 Replace any macro_source_file->filename access by macro_source_fullname
9680 call.
9681 (macro_lookup_inclusion): Remove the partial filenames checking code.
9682 (check_for_redefinition): New variables source_fullname and
9683 found_key_fullname. Replace any macro_source_file->filename access by
9684 macro_source_fullname call.
9685 (macro_undef): New variables source_fullname and key_fullname. Replace
9686 any macro_source_file->filename access by macro_source_fullname call.
9687 (macro_lookup_definition): New variables retval and source_fullname.
9688 Replace any macro_source_file->filename access by macro_source_fullname
9689 call.
9690 (foreach_macro): New variable key_fullname. Replace any
9691 macro_source_file->filename access by macro_source_fullname call.
9692 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9693 macro_source_file->filename access by macro_source_fullname call.
9694 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9695 (macro_source_fullname): New function.
9696 * macrotab.h (struct macro_source_file): Extent the filename field
9697 comment.
9698 (new_macro_table): New parameter comp_dir, add a comment for it.
9699 (macro_source_fullname): new declaration.
9700
da235a7c
JK
97012013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9702
9703 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9704 this_real_name to outer block. Use it also for
9705 compare_filenames_for_search.
9706 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9707 with dw2_get_real_path for file_matcher, considering also
9708 BASENAMES_MAY_DIFFER.
9709 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9710
fbd9ab74
JK
97112013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9712
9713 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9714 to the file_matcher parameter. Pass 0 to it.
9715 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9716 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9717 NULL psymtab_to_fullname result.
9718 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9719 an expected filename instead.
9720 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9721 file_matcher parameter. Call also psymtab_to_fullname, after newly
9722 considering BASENAMES_MAY_DIFFER.
9723 * source.c (rewrite_source_path): Remove static.
9724 * source.h (rewrite_source_path): New declaration.
9725 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9726 the expand_symtabs_matching field. Comment it.
9727 * symtab.c (file_matches): New function comment. Add parameter
9728 basenames, implement it.
9729 (search_symbols_file_matches): Add basenames parameter. Update the
9730 file_matches caller.
9731 (search_symbols): Match FILES also against symtab_to_fullname.
9732 Optimize it for BASENAMES_MAY_DIFFER.
9733
56d397a3
JK
97342013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9735
9736 * source.c (print_source_lines_base): Print for TUI also "fullname".
9737 * tui/tui-data.c (init_content_element): Change tui_locator_element
9738 field to full_name.
9739 * tui/tui-data.h (struct tui_locator_element): Likewise.
9740 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9741 tui_update_locator_filename calls to tui_update_locator_fullname.
9742 Replace symtab->filename refererence by symtab_to_fullname call.
9743 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9744 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9745 field to full_name. Replace symtab->filename refererence by
9746 symtab_to_fullname call.
9747 (tui_show_symtab_source): Rename parameter to fullname. Change
9748 tui_locator_element field to full_name.
9749 * tui/tui-stack.c: Include source.h.
9750 (tui_set_locator_filename): Rename the declaration to ...
9751 (tui_set_locator_fullname): ... here. Rename its parameter to
9752 fullname, updates its comment.
9753 (tui_set_locator_info): Rename its parameter to fullname.
9754 (tui_set_locator_filename): Rename the definition to ...
9755 (tui_set_locator_fullname): ... here. Rename its parameter to
9756 fullname, updates its comment. Change tui_locator_element field to
9757 full_name.
9758 (tui_set_locator_info): Rename its parameter to fullname.
9759 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9760 (tui_update_locator_filename): Rename to ...
9761 (tui_update_locator_fullname): ... here. Rename callee to
9762 tui_set_locator_fullname.
9763 (tui_show_frame_info): Replace symtab->filename refererence by
9764 symtab_to_fullname call.
9765 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9766 (tui_update_locator_fullname): ... here.
9767 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9768 tui_update_locator_fullname. Replace symtab->filename refererence by
9769 symtab_to_fullname call.
9770 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9771 Rename the callee to tui_update_locator_fullname.
9772 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9773
05cba821
JK
97742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9775
9776 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9777 by symtab_to_filename_for_display calls.
9778 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9779 (clear_command): New variable sal_fullname, initialize it. Replace
9780 compare_filenames_for_search by filename_cmp with sal_fullname.
9781 (say_where, update_static_tracepoint): Replace symtab->filename
9782 refererences by symtab_to_filename_for_display calls.
9783 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9784 Likewise.
9785 * dwarf2read.c: Include source.h.
9786 (fixup_go_packaging): Replace symtab->filename refererences by
9787 symtab_to_filename_for_display calls.
9788 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9789 Replace symtab->filename refererences by symtab_to_filename_for_display
9790 calls.
9791 (create_sals_line_offset, convert_linespec_to_sals): New variable
9792 fullname, initialize it, replace symtab->filename reference by the
9793 variable.
9794 * linux-fork.c: Include source.h.
9795 (info_checkpoints_command): Replace symtab->filename refererences by
9796 symtab_to_filename_for_display calls.
9797 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9798 by symtab_to_filename_for_display calls.
9799 * mdebugread.c: Include source.h.
9800 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9801 symtab_to_filename_for_display calls.
9802 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9803 (mi_cmd_file_list_exec_source_files): Likewise.
9804 * printcmd.c: Include source.h.
9805 (build_address_symbolic): Replace symtab->filename refererences by
9806 symtab_to_filename_for_display calls.
9807 * psymtab.c (partial_map_symtabs_matching_filename)
9808 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9809 with psymtab_to_fullname.
9810 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9811 by symtab_to_filename_for_display calls.
9812 (stpy_get_filename): New variable filename, initialize it, use instead
9813 of symtab->filename refererences.
9814 (salpy_str): Make variable filename const char *. Replace
9815 symtab->filename refererences by symtab_to_filename_for_display calls.
9816 * skip.c: Include source.h and filenames.h.
9817 (skip_file_command): Remove const from the symtab variable. Replace
9818 symtab->filename refererences by symtab_to_fullname call.
9819 (function_name_is_marked_for_skip): New variables searched_for_fullname
9820 and fullname. Use them to search also with symtab's fullname.
9821 * source.c (find_source_lines): Replace symtab->filename refererences
9822 by symtab_to_filename_for_display calls.
9823 (print_source_lines_base): New variable filename, use it instead of
9824 symtab->filename. Replace symtab->filename refererences by
9825 symtab_to_filename_for_display calls.
9826 (line_info, forward_search_command): Replace symtab->filename
9827 refererences by symtab_to_filename_for_display calls.
9828 (reverse_search_command): Replace symtab->filename refererences by
9829 symtab_to_filename_for_display calls. New variable filename for it.
9830 * stack.c (frame_info): Likewise.
9831 * symmisc.c: Include source.h.
9832 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9833 (maintenance_info_symtabs): Replace symtab->filename refererences by
9834 symtab_to_filename_for_display calls.
9835 * symtab.c (iterate_over_some_symtabs): Call
9836 compare_filenames_for_search also with symtab_to_fullname.
9837 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9838 symtab->filename refererences by symtab_to_filename_for_display calls.
9839 (find_line_symtab): Replace symtab->filename refererences by
9840 symtab_to_filename_for_display calls.
9841 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9842 (print_symbol_info): Make the last parameter const char *. New
9843 variable s_filename. Use it in the function.
9844 (symtab_symbol_info): Make the last_filename variable const char *.
9845 Replace symtab->filename refererences by symtab_to_filename_for_display
9846 calls.
9847 (rbreak_command): New variable fullname. Use it. Replace
9848 symtab->filename refererence by symtab_to_filename_for_display call.
9849 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9850 (print_one_static_tracepoint_marker): Replace symtab->filename
9851 refererences by symtab_to_filename_for_display calls.
9852 * tui/tui-source.c (tui_set_source_content): New variables filename and
9853 s_filename. Replace symtab->filename refererences by this variable.
9854 Replace other symtab->filename refererences by
9855 symtab_to_filename_for_display calls.
9856
1b56eb55
JK
98572013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9858 Jan Kratochvil <jan.kratochvil@redhat.com>
9859
9860 Add a new variable that controls a way in which filenames are
9861 displayed.
9862 * NEWS (set filename-display): New entry.
9863 * source.c (filename_display_basename, filename_display_relative)
9864 (filename_display_absolute, filename_display_kind_names)
9865 (filename_display_string, show_filename_display_string)
9866 (symtab_to_filename_for_display): New.
9867 (_initialize_source): Added initialization of 'filename-display'
9868 variable.
9869 * source.h (symtab_to_filename_for_display): Added declaration.
9870 * stack.c (print_frame): Added new variable and calling of a new
9871 function and condition with this variable. Changed third argument of
9872 calling of a function.
9873
aa079c93
JK
98742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9875
9876 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9877 Rename field reference filename to fullname.
9878 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9879 fullname. New comment for it.
9880 * tui/tui-source.c (tui_set_source_content): Rename field reference
9881 filename to fullname. Initialize field by symtab_to_fullname now.
9882 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9883 reference filename to fullname. Use symtab_to_fullname during
9884 comparison.
9885
652a8996
JK
98862013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9887
9888 Code cleanup.
9889 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9890 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9891 filename to fullname. Rename variable this_name to this_fullname.
9892 Lowercase FILENAME_CMP call.
9893 (dw2_find_symbol_file): New comment for the returned string.
9894 (dwarf2_gdb_index_functions): Rename the function to
9895 dw2_expand_symtabs_with_fullname.
9896 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9897 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9898 fullname.
9899 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9900 * symfile.h (struct quick_symbol_functions): Rename field
9901 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9902 parameter filename to fullname. Document returned string meaning for
9903 find_symbol_file.
9904 * symtab.c (find_line_symtab): Rename the called function to
9905 expand_symtabs_with_fullname.
9906
af529f8f
JK
99072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 Code cleanup.
9910 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9911 call of filename_cmp with compare_filenames_for_search.
9912 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9913 is_abs, unify the call of FILENAME_CMP with
9914 compare_filenames_for_search. New gdb_asserts for real_path and name.
9915 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9916 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9917 * symfile.h (struct quick_symbol_functions): Extend the comment for
9918 map_symtabs_matching_filename.
9919 * symtab.c (compare_filenames_for_search): Remove the function comment
9920 relative path requirement. Handle absolute filenames, with a comment.
9921 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9922 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9923 real_path and name. Unify the call of compare_filenames_for_search
9924 with FILENAME_CMP.
9925 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9926
2f202fde
JK
99272013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9928
9929 Code cleanup.
9930 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9931 source_file references by symtab field references. Remove variables
9932 sal and fullname.
9933 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9934 (clear_command, say_where): Replace bp_location field source_file
9935 references by symtab field references.
9936 (bp_location_dtor): Remove the source_file reference.
9937 (update_static_tracepoint): Replace bp_location field source_file
9938 references by symtab field references.
9939 (breakpoint_free_objfile): New function.
9940 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9941 Replace the field source_file by field symtab, extend its comment.
9942 (breakpoint_free_objfile): New declaration.
9943 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9944 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9945 field source_file references by symtab field references.
9946
f5b95b50
JK
99472013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9948
9949 Replace xfullpath calls by gdb_realpath calls.
9950 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9951 function comment.
9952 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9953 Remove it from the iterate_over_some_symtabs call.
9954 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9955 Remove it from the dw2_map_expand_apply calls, remove a block handling
9956 it.
9957 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9958 Remove it from the iterate_over_some_symtabs call.
9959 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9960 Remove it from the partial_map_expand_apply calls, remove a block
9961 handling it. Drop gdb_realpath call and cleanups from the real_path
9962 handling.
9963 * source.c (openp): Drop the comment part about xfullpath. Replace
9964 xfullpath calls by gdb_realpath calls.
9965 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9966 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9967 from method map_symtabs_matching_filename and its comment.
9968 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9969 gdb_realpath call.
9970 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9971 remove it also from the function comment, remove a block handling it.
9972 Drop gdb_realpath call and cleanups from the real_path handling.
9973 (iterate_over_symtabs): Drop variable full_path and its use.
9974 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9975 * utils.c (xfullpath): Remove.
9976 * utils.h (xfullpath): Remove.
9977
d78489bf
AT
99782013-02-01 Andreas Tobler <andreast@fgznet.ch>
9979
9980 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9981 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9982 (ALLDEPFILES): Add ppc64-tdep.c.
9983 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9984 ppc64-tdep.o to gdb_target_obs.
9985 * ppc64-tdep.h: New file.
9986 * ppc64-tdep.c: New file.
9987 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9988 ppc-linux-tdep.c to here.
9989 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9990 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9991 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9992 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9993 from ppc-linux-tdep.c to here.
9994 (ppc64_convert_from_func_ptr_addr): Rename from
9995 ppc64_linux_convert_from_func_ptr_addr to
9996 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9997 here.
9998 * rs6000-tdep.c:
9999 (read_insn): Move from ppc-linux-tdep.c to here.
10000 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10001 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10002 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10003 Removed above functions.
10004 (ppc_linux_init_abi): Adjust.
10005
8db60374
AR
100062013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10007
10008 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10009
f2e5f4ce
AR
100102013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10011
10012 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10013
c1f7d745
PA
100142013-02-01 Pedro Alves <palves@redhat.com>
10015
10016 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10017 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10018
8a92335b
JK
100192013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10020
10021 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10022 files with no separate debug info.
10023 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10024 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10025 only for files with no separate debug info.
10026
8eacb197
TT
100272013-01-31 Tom Tromey <tromey@redhat.com>
10028
10029 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10030 change type.
10031 (struct jit_program_space_data): Rename from jit_inferior_data.
10032 Update comments.
10033 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10034 Change return type. Attach data to program space.
10035 (jit_program_space_data_cleanup): Rename from
10036 jit_inferior_data_cleanup; change argument type.
10037 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10038 change type.
10039 (jit_register_code): Update.
10040 (jit_update_inferior_cache): Remove.
10041 (jit_breakpoint_deleted): Get jit data from the location's program
10042 space.
10043 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10044 'ps_data', change type.
10045 (jit_inferior_init, jit_breakpoint_re_set_internal)
10046 (jit_event_handler): Update.
10047 (free_objfile_data): Get data from objfile's program space.
10048 (_initialize_jit): Update.
10049
f25c0135
TT
100502013-01-31 Tom Tromey <tromey@redhat.com>
10051
10052 PR gdb/13987:
10053 * jit.c (struct jit_inferior_data) <cached_code_address,
10054 jit_breakpoint>: New fields.
10055 (jit_breakpoint_re_set_internal): Fix logging. Only create
10056 breakpoint if cached address has changed.
10057 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10058 functions.
10059 (_initialize_jit): Register breakpoint deleted observer.
10060
974a734b
AR
100612013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10062
10063 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10064 (save_infcall_suspend_state): Ifdef out unused inf.
10065 (restore_infcall_suspend_state): Ifdef out unused inf.
10066 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10067 (jit_frame_sniffer): Remove unused inf_data.
10068
df54f8eb
AR
100692013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10070
10071 * c-exp.y (classify_inner_name): Remove unused type.
10072 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10073 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10074 need_escape.
10075 (c_get_string): Remove unused kind.
10076 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10077
5799c0b9
AR
100782013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10079
10080 * charset.c (intermediate_encoding): Remove unused i.
10081 * completer.c (signal_completer): Remove unused i.
10082 * continuations.c (discard_my_continuations_1): Remove unused
10083 continuation_ptr.
10084 * corelow.c (core_close): Remove unuseD name.
10085 (get_core_siginfo): Remove unused pid.
10086 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10087 i, cps.
10088 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10089 (loclist_describe_location): Remove unused first.
10090 * event-top.c (command_line_handler): Remove unused got_eof.
10091 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10092 (resize_section_table): Remove unused old_value.
10093 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10094 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10095 * i386-tdep.c (i386_process_record): Remove unused rex.
10096 * infcmd.c (get_return_value): Remove unused uiout.
10097 * jv-lang.c (type_from_class): Remove unused is_array.
10098 * jv-valprint.c (java_val_print): Remove unused i.
10099 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10100 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10101 * m2-typeprint.c (m2_print_type): Remove unused code.
10102 * macroexp.c (get_character_constant): Remove unused body_start.
10103 (macro_stringify): Remove unused result.
10104 * objc-lang.c (find_methods): Remove unused gdbarch.
10105 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10106 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10107 * stack.c (print_frame_args): Remove unused summary.
10108 * thread.c (thread_apply_command): Remove unused p.
10109 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10110 * valops.c (search_struct_method): Remove unused skip.
10111 * valprint.c (generic_val_print): Remove unused byte_order.
10112 * varobj.c (varobj_update): Remove unused changed.
10113 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10114 (alias_command): Remove unused c.
10115 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10116 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10117 format.
10118 (mi_cmd_data_write_memory): Remove unused word_format.
10119 (mi_cmd_data_write_memory_bytes): Remove unused r.
10120 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10121 p_start, p_end.
10122 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10123 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10124 line_width.
10125
c656bca5
AR
101262013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10127
10128 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10129 * symtab.c (iterate_over_symtabs): Remove unused s.
10130 (find_pc_sect_symtab): Remove unused pspAce.
10131 (find_pc_sect_line): Remove unused alt_symtab.
10132 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10133 (completion_list_add_name): Remove unused newsize.
10134
7078baeb
TT
101352013-01-31 Tom Tromey <tromey@redhat.com>
10136
10137 PR c++/14998:
10138 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10139 TYPE_CODE_FUNC.
10140
c2e8b827
AR
101412013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10142
10143 * target.c (target_read_string): Remove unused origlen.
10144
0e43993a
AR
101452013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10146
10147 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10148 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10149 * ax-general.c (ax_print): Remove unused is_float.
10150 * blockframe.c (block_innermost_frame): Remove unused start, end.
10151 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10152
765a97ab
AR
101532013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10154
10155 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10156 (svr4_read_so_list): Remove unused lmo.
10157 * solib-target.c (solib_target_relocate_section_addresses): Remove
10158 unused flags.
10159
a99dad3d
TT
101602013-01-30 Tom Tromey <tromey@redhat.com>
10161
10162 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10163
3bff1ecd
TT
101642013-01-30 Tom Tromey <tromey@redhat.com>
10165
10166 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10167 * utils.c (gnu_debuglink_crc32): Remove.
10168 * utils.h (gnu_debuglink_crc32): Don't declare.
10169
7d455152
TT
101702013-01-30 Tom Tromey <tromey@redhat.com>
10171
10172 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10173 (read_structure_type, read_enumeration_type): Remove cast.
10174
abee88f2
TT
101752013-01-30 Tom Tromey <tromey@redhat.com>
10176
10177 * dwarf2read.c (read_namespace_type): Remove cast.
10178 (read_typedef): Likewise.
10179
8d9878a4
TT
101802013-01-29 Tom Tromey <tromey@redhat.com>
10181
10182 * dwarf2read.c (free_dwo_file): Remove assert.
10183
a543d2a9
TT
101842013-01-29 Tom Tromey <tromey@redhat.com>
10185
10186 * value.c (deprecated_set_value_modifiable): Remove.
10187 * value.h (deprecated_set_value_modifiable): Remove.
10188
bed911e5
DE
101892013-01-28 Doug Evans <dje@google.com>
10190
10191 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10192 to addresses from dwo files.
10193
28c64fc2
SCR
101942013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10195
10196 * valops.c (find_overload_match): Remove unused argument 'lax'.
10197 * value.h: Remove unused argument 'lax' from the declaration of
10198 find_overload_match.
10199 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10200 to find_overload_match.
10201 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10202 argument to find_overload_match.
10203
4d4ec4e5
TT
102042013-01-25 Tom Tromey <tromey@redhat.com>
10205
10206 * dwarf2read.c (processing_has_namespace_info): Remove.
10207 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10208 (process_die, read_func_scope, dwarf2_start_symtab)
10209 (new_symbol_full): Update.
10210
195a3f6c
TT
102112013-01-25 Tom Tromey <tromey@redhat.com>
10212
10213 * cp-namespace.c (cp_set_block_scope): Remove.
10214 * cp-support.h (cp_set_block_scope): Remove.
10215 * dbxread.c: Include block.h.
10216 (cp_set_block_scope): New function.
10217 (process_one_symbol): Update.
10218 * dwarf2read.c (read_func_scope): Use block_set_scope.
10219
8ba0730a
PA
102202013-01-25 Pedro Alves <palves@redhat.com>
10221
10222 * remote.c (add_current_inferior_and_thread): Tweak comment.
10223
12aaed36
TT
102242013-01-25 Tom Tromey <tromey@redhat.com>
10225
10226 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10227 (cp_add_using_directive): Add 'copy_names' argument.
10228 * cp-support.h (cp_add_using_directive): Update.
10229 (struct using_direct) <import_src, import_dest, alias,
10230 declaration>: Now const.
10231 * dwarf2read.c (read_import_statement): Use obconcat.
10232 Don't copy names passed to cp_add_using_directive.
10233
7fc75ca7
TT
102342013-01-25 Tom Tromey <tromey@redhat.com>
10235
10236 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10237
3405876a
PA
102382013-01-25 Pedro Alves <palves@redhat.com>
10239
10240 * remote.c (stop_reply_extract_thread): New.
10241 (add_current_inferior_and_thread): New parameter 'wait_status'.
10242 Handle it.
10243 (remote_start_remote): Pass wait status to
10244 add_current_inferior_and_thread.
10245 (extended_remote_run): Update comment.
10246 (extended_remote_create_inferior_1): Pass wait status to
10247 add_current_inferior_and_thread.
10248
8954db33
AB
102492013-01-25 Andrew Burgess <aburgess@broadcom.com>
10250 Ulrich Weigand <uweigand@de.ibm.com>
10251
10252 * valarith.c (value_vector_widen): New function for replicating a
10253 scalar into a vector.
10254 (value_binop): Use value_vector_widen to widen scalar to vector
10255 rather than casting, this better matches gcc C behaviour.
10256 * valops.c (value_casst): Update logic for casting between vector
10257 types, and for casting from scalar to vector, try to match gcc C
10258 behaviour.
10259 * value.h (value_vector_widen): Declare.
10260 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10261 function, handle special case for casting scalar to vector.
10262 (opencl_relop): Use opencl_value_cast.
10263 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10264 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10265 in order to use opencl_value_cast.
10266
843b20dc
YQ
102672013-01-25 Yao Qi <yao@codesourcery.com>
10268
10269 * event-loop.c: Include "queue.h".
10270 (gdb_event_p): New typedef.
10271 (DECLARE_QUEUE_P): Use.
10272 (DEFINE_QUEUE_P): Use.
10273 (async_queue_event): Remove.
10274 (gdb_event_xfree): New.
10275 (initialize_event_loop): New.
10276 (process_event): Use QUEUE macros.
10277 (event_queue): Remove.
10278 (gdb_wait_for_event): Caller update.
10279 (check_async_event_handlers): Likewise.
10280 (poll_timers): Likewise.
10281 * event-loop.h (initialize_event_loop): Declare.
10282 * event-loop.c (gdb_event_xfree): New.
10283 * top.c (gdb_init): Call initialize_event_loop.
10284
20ad8856
YQ
102852013-01-25 Yao Qi <yao@codesourcery.com>
10286
10287 * event-loop.c (async_queue_event): Remove one parameter
10288 'position'. Remove code handling 'position' == TAIL.
10289 (gdb_wait_for_event): Caller update.
10290 (check_async_event_handlers): Caller update.
10291 (poll_timers): Caller update.
10292 * event-loop.h (enum queue_position): Remove.
10293
3bbbe775
MK
102942013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10295
10296 * MAINTAINERS: Update my email.
10297
a87d9ac4
YQ
102982013-01-25 Yao Qi <yao@codesourcery.com>
10299
10300 * main.c (print_gdb_help): Remove "--epoch" from the help
10301 message.
10302
2077afdd
TD
103032013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10304
10305 * symtab.c (skip_prologue_using_sal): Consider a file
10306 change the same as an increased line number
10307
63da4037
TD
103082013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10309
30e8ee25 10310 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10311
45e6c716
TT
103122013-01-24 Tom Tromey <tromey@redhat.com>
10313
10314 * ada-lang.h (ada_decode_symbol): Make return type const.
10315 * ada-lang.c (ada_decode_symbol): Likewise.
10316
b1ae631a
DE
103172013-01-23 Doug Evans <dje@google.com>
10318
10319 * linespec.c (find_linespec_symbols): Make static.
10320
55a78401
SDJ
103212013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10322
10323 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10324 type on float conversion for complex type.
10325
bea883fd
SCR
103262013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10327
10328 Add a new class gdb.Architecture which exposes GDB's
10329 internal representation of architecture via GDB Python API.
10330 * Makefile.in: Add entries corresponding to the new file
10331 python/py-arch.c.
10332 * NEWS (Python Scripting): Add entries for the new class
10333 gdb.Architecture and the new method gdb.Frame.architecture.
10334 * python/py-arch.c: Implement gdb.Architecture class.
10335 * python/py-frame.c (frapy_arch): Implement the method
10336 gdb.Frame.architecture().
10337 (frame_object_methods): Add 'architecture' to the method table.
10338 * python/python-internal.h: Add declarations of new utility
10339 functions.
10340 * python/python.c (_initialize_python): Initialize
10341 gdb.Architecture class.
10342
796a7ff8
DE
103432013-01-23 Doug Evans <dje@google.com>
10344
10345 Work around binutils/15021.
10346 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10347 type_unit_group out of union s. All uses updated.
10348 (read_index_from_section): Watch for index version 8.
10349 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10350 an imported symtab.
10351 (write_psymtabs_to_index): Increment version number to 8.
10352
0928e93d
PA
103532013-01-22 Pedro Alves <palves@redhat.com>
10354
10355 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10356 user-visible.
10357
9c97429f
PA
103582013-01-22 Pedro Alves <palves@redhat.com>
10359
10360 * annotate.c (annotate_breakpoints_changed): Rename to ...
10361 (annotate_breakpoints_invalid): ... this. Make static.
10362 (breakpoint_changed): Adjust.
10363 (_initialize_annotate): Always install the observers. Install a
10364 "breakpoint_created" observer.
10365 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10366 * breakpoint.c (set_breakpoint_condition)
10367 (breakpoint_set_commands, do_map_commands_command)
10368 (init_raw_breakpoint, clear_command, set_ignore_count)
10369 (enable_breakpoint_disp): No longer call
10370 annotate_breakpoints_changed.
10371
bd00c694
PA
103722013-01-22 Pedro Alves <palves@redhat.com>
10373
10374 * annotate.c: Include "inferior.h".
10375 (frames_invalid_emitted)
10376 (breakpoints_invalid_emitted): New globals.
10377 (async_background_execution_p): New function.
10378 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10379 emitting the annotation if it has already been emitted.
10380 (annotate_display_prompt): New function.
10381 * annotate.h (annotate_display_prompt): New declaration.
10382 * event-top.c: Include annotate.h.
10383 (display_gdb_prompt): Call annotate_display_prompt.
10384
187d10dd
PA
103852013-01-22 Pedro Alves <palves@redhat.com>
10386
10387 * annotate.c (ignore_count_changed): Delete.
10388 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10389 (annotate_ignore_count_change): Delete.
10390 (annotate_stopped): Don't emit a delayed breakpoints-changed
10391 annotation.
10392 * annotate.h (annotate_ignore_count_change): Delete.
10393 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10394 annotate_ignore_count_change.
10395
d84cf7eb
TT
103962013-01-22 Tom Tromey <tromey@redhat.com>
10397
10398 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10399 require_rvalue for a register location.
10400
8f1d5693
MK
104012013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10402
10403 * breakpoint.c (print_one_breakpoint_location): Add MI
10404 field 'thread-groups' when printing a breakpoint.
10405 (output_thread_groups): New function.
10406
aa6199c6
SCR
104072013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10408
10409 * python/lib/gdb/commands/explore.py
10410 (CompoundExplorer.explore_expr): Correct the name of a method
10411 being invoked.
10412 (ExploreTypeCommand.invoke): Add a missing 'return'.
10413
d2afef13
TT
104142013-01-21 Tom Tromey <tromey@redhat.com>
10415
10416 * gdb_obstack.h (obconcat): Move declaration here, from...
10417 * symfile.h (obconcat): ... here.
10418 * gdb_obstack.c: New file.
10419 (obconcat): Move from...
10420 * symfile.c (obconcat): ... here.
10421 * Makefile.in (SFILES): Add gdb_obstack.c.
10422 (COMMON_OBS): Add gdb_obstack.o.
10423
10f0c4bb
TT
104242013-01-21 Tom Tromey <tromey@redhat.com>
10425
10426 * symfile.h (obsavestring): Don't declare.
10427 * symfile.c (obsavestring): Remove.
10428 * ada-exp.y: Use obstack_copy0, not obsavestring.
10429 * ada-lang.c: Use obstack_copy0, not obsavestring.
10430 * coffread.c: Use obstack_copy0, not obsavestring.
10431 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10432 * dbxread.c: Use obstack_copy0, not obsavestring.
10433 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10434 * jit.c: Use obstack_copy0, not obsavestring.
10435 * mdebugread.c: Use obstack_copy0, not obsavestring.
10436 * psymtab.c: Use obstack_copy0, not obsavestring.
10437 * stabsread.c: Use obstack_copy0, not obsavestring.
10438 * xcoffread.c: Use obstack_copy0, not obsavestring.
10439
86f62fd7
TT
104402013-01-21 Tom Tromey <tromey@redhat.com>
10441
10442 * dwarf2read.c (fixup_go_packaging): Save package name
10443 on objfile obstack.
10444 * gdbtypes.c (init_type): Don't copy name.
10445
15d034d0
TT
104462013-01-21 Tom Tromey <tromey@redhat.com>
10447
10448 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10449 const.
10450 (struct attribute) <u.str>: Now const.
10451 (struct fnfieldlist) <name>: Now const.
10452 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10453 (partial_die_parent_scope): Make return type const.
10454 (partial_die_full_name, add_partial_symbol): Update.
10455 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10456 'name' const.
10457 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10458 (read_file_scope, read_func_scope, dwarf2_add_field)
10459 (dwarf2_add_member_fn, read_structure_type)
10460 (process_enumeration_scope, read_array_type, read_module_type)
10461 (read_base_type, read_subrange_type): Update.
10462 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10463 (new_symbol_full, guess_full_die_structure_name): Update.
10464 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10465 (dwarf2_name): Return const type.
10466 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10467 const.
10468
748e18ae
TT
104692013-01-21 Tom Tromey <tromey@redhat.com>
10470
10471 * gdbtypes.c (init_type): Make 'name' const.
10472 * gdbtypes.h (init_type): Update.
10473
46212e0b
TT
104742013-01-21 Tom Tromey <tromey@redhat.com>
10475
10476 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10477 (start_symtab): Make 'name' and 'dirname' const. Use
10478 set_last_source_file.
10479 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10480 (last_source_file): Define. Now static.
10481 (set_last_source_file, get_last_source_file): New functions.
10482 * buildsym.h (last_source_file): Don't declare.
10483 (start_symtab): Update.
10484 (set_last_source_file, get_last_source_file): Declare.
10485 * coffread.c (complete_symtab): Use set_last_source_file.
10486 (coff_end_symtab): Likewise.
10487 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10488 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10489 set_last_source_file.
10490 (process_one_symbol): Use get_last_source_file.
10491 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10492 (psymtab_to_symtab_1): Use get_last_source_file.
10493 * xcoffread.c (process_linenos): Use get_last_source_file.
10494 (complete_symtab): Use set_last_source_file.
10495 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10496 (scan_xcoff_symtab): Use set_last_source_file.
10497
9d2ceabe
TT
104982013-01-21 Tom Tromey <tromey@redhat.com>
10499
10500 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10501 (symbol_set_names): Remove casts. Handle field const-ness.
10502
cfc594ee
TT
105032013-01-21 Tom Tromey <tromey@redhat.com>
10504
10505 * dwarf2read.c (new_symbol_full): Remove cast.
10506 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10507 * symtab.h (symbol_set_demangled_name): Update.
10508
5484b13a
TT
105092013-01-21 Tom Tromey <tromey@redhat.com>
10510
10511 * main.c (captured_main): Call bfd_init.
10512
1605ef26
TT
105132013-01-21 Tom Tromey <tromey@redhat.com>
10514
10515 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10516 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10517 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10518 * NEWS: Update.
10519
3b74cdc3
JK
105202013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10521
10522 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10523
5a352474
JK
105242013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10525
10526 Fix gdb.fortran/common-block.exp crash in PIE mode.
10527 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10528 LOC_COMMON_BLOCK.
10529 * f-valprint.c (info_common_command_for_block): Expect
10530 LOC_COMMON_BLOCK in gdb_assert.
10531 * symtab.h (struct general_symbol_info): Update comment for the
10532 common_block member.
10533 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10534 (enum address_class): New member LOC_COMMON_BLOCK.
10535
c60797fd
DB
105362013-01-18 David Blaikie <dblaikie@gmail.com>
10537
10538 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10539
46f35228
TT
105402013-01-18 Tom Tromey <tromey@redhat.com>
10541
10542 PR c++/14999:
10543 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10544 Call require_rvalue.
10545
257e7a09
YQ
105462013-01-18 Yao Qi <yao@codesourcery.com>
10547
10548 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10549 (dbx_read_symtab): New declaration.
10550 (dbx_psymtab_to_symtab): Delete.
10551 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10552 Rename parameter PST to SELF. Exchanged two parameters.
10553 (start_psymtab): Caller update.
10554 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10555 (dwarf2_read_symtab): New declaration.
10556 (dwarf2_psymtab_to_symtab): Delete.
10557 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10558 Rename parameter PST to SELF. Exchanged two parameters.
10559 (create_partial_symtab): Caller update.
10560 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10561 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10562 Rename parameter PST to SELF. Exchanged two parameters.
10563 (parse_partial_symbols, new_psymtab): Caller update.
10564 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10565 two parameters.
10566 * psymtab.c (psymtab_to_symtab): Caller update.
10567 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10568 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10569 Rename parameter PST to SELF. Exchanged two parameters.
10570 (xcoff_start_psymtab): Caller update.
10571
0de5618e
YQ
105722013-01-18 Yao Qi <yao@codesourcery.com>
10573
10574 * infrun.c (proceed): Rename local variable 'oneproc' to
10575 'force_step'.
10576
5c04624b
DE
105772013-01-17 Doug Evans <dje@google.com>
10578
848e3e78
DE
10579 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10580 (dw2_build_type_unit_groups): Delete. All uses updated.
10581
5c04624b
DE
10582 * symtab.h (struct symbol_search): Add comment.
10583
d84fca2c
JK
105842013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10585
10586 * symtab.c (compare_filenames_for_search): New comment for
10587 HAS_DRIVE_SPEC.
10588
6108433d
TT
105892013-01-17 Tom Tromey <tromey@redhat.com>
10590
10591 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10592
c89ffd86
JK
105932013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10594
10595 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10596 initialize it by existing make_cleanup. Call new do_cleanups.
10597
db2b2972
TT
105982013-01-17 Tom Tromey <tromey@redhat.com>
10599
10600 * cp-abi.c (cp_abi_completer): New function.
10601 (_initialize_cp_abi): Set completer for "set cp-abi".
10602
be7d37a2
TT
106032013-01-17 Tom Tromey <tromey@redhat.com>
10604
10605 * mem-break.c: Remove obsolete comment.
10606 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10607
c9fb1240
SD
106082012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10609
10610 * jit.c (jit_reader_load_command): Interpret the jit reader name
10611 as an absolute path if it begins with a forward slash.
10612
db334a01
SD
106132012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10614
10615 PR gdb/14550
10616
10617 * jit.c (finalize_symtab): Ensure that only the global block has a
10618 NULL superblock.
10619
7d928dac
PA
106202013-01-17 Pedro Alves <palves@redhat.com>
10621
10622 * acinclude.m4: Include ../config/plugins.m4,
10623 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10624 * Makefile.in (aclocal_m4_deps): Update.
10625 * aclocal.m4: Renegerate.
10626
fb8cf7c5
DE
106272013-01-16 Doug Evans <dje@google.com>
10628
10629 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10630
ab04a2af
TT
106312013-01-16 Pedro Alves <palves@redhat.com>
10632 Tom Tromey <tromey@redhat.com>
10633
10634 PR cli/7221:
10635 * NEWS: Add "catch signal".
10636 * breakpoint.c (base_breakpoint_ops): No longer static.
10637 (bpstat_explains_signal): New function.
10638 (init_catchpoint): No longer static.
10639 (base_breakpoint_explains_signal): New function.
10640 (base_breakpoint_ops): Initialize new field.
10641 * breakpoint.h (enum bpstat_signal_value): New.
10642 (struct breakpoint_ops) <explains_signal>: New field.
10643 (bpstat_explains_signal): Remove macro, declare as function.
10644 (base_breakpoint_ops, init_catchpoint): Declare.
10645 * break-catch-sig.c: New file.
10646 * inferior.h (signal_catch_update): Declare.
10647 * infrun.c (signal_catch): New global.
10648 (handle_syscall_event): Update for change to
10649 bpstat_explains_signal.
10650 (handle_inferior_event): Likewise. Always handle random signals
10651 via bpstats.
10652 (signal_cache_update): Check signal_catch.
10653 (signal_catch_update): New function.
10654 (_initialize_infrun): Initialize signal_catch.
10655 * Makefile.in (SFILES): Add break-catch-sig.c.
10656 (COMMON_OBS): Add break-catch-sig.o.
10657
8ac3646f
TT
106582013-01-16 Tom Tromey <tromey@redhat.com>
10659
10660 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10661 (print_one_catch_solib, print_one_catch_syscall)
10662 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10663 "catch-type".
10664
5a18e302
YQ
106652013-01-16 Yao Qi <yao@codesourcery.com>
10666
10667 * printcmd.c (current_display_number): Make it static.
10668
3f01d0d0
YQ
106692013-01-16 Yao Qi <yao@codesourcery.com>
10670
10671 * infcmd.c (step_once): Don't check '!single_inst' as it was
10672 checked before.
10673
1ed59174
JK
106742013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10675
10676 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10677
44478ab3
TT
106782013-01-14 Tom Tromey <tromey@redhat.com>
10679
10680 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10681 set command.
10682 * command.h (add_setshow_string_noescape_cmd): Update.
10683 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10684 (complete_set_gnutarget): New function.
10685 (_initialize_core): Set the "set gnutarget" completer.
10686
06d66ee9
TT
106872013-01-14 Tom Tromey <tromey@redhat.com>
10688
10689 PR symtab/14442:
10690 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10691 (c_type_print_modifier): Likewise.
10692 * dwarf2read.c (read_tag_restrict_type): New function.
10693 (read_type_die_1): Handle DW_TAG_restrict_type.
10694 * gdbtypes.c (make_restrict_type): New function.
10695 (recursive_dump_type): Handle TYPE_RESTRICT.
10696 * gdbtypes.h (enum type_flag_values): Renumber.
10697 (enum type_instance_flag_value): Add
10698 TYPE_INSTANCE_FLAG_RESTRICT.
10699 (TYPE_RESTRICT): New macro.
10700 (make_restrict_type): Declare.
10701
c9bf0622
TT
107022013-01-14 Tom Tromey <tromey@redhat.com>
10703
10704 PR symtab/14931:
10705 * psymtab.c (struct psymtab_state): New.
10706 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10707 functions.
10708 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10709 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10710
44d594fd
PA
107112013-01-14 Richard Sharman <richard_sharman@mitel.com>
10712 Pedro Alves <palves@redhat.com>
10713
10714 PR remote/14786
10715
10716 * remote.c (remote_threads_info): Make a copy of the reply from
10717 qfThreadInfo and use that instead of rs->buf.
10718
442e4d9c
YQ
107192013-01-14 Yao Qi <yao@codesourcery.com>
10720
10721 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10722 (dbx_psymtab_to_symtab): Likewise.
10723 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10724 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10725 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10726
5b12a61c
JK
107272013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10728
10729 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10730 make_cleanup_restore_current_language. Call set_language. Move
10731 OLD_CHAIN and INNER_CHAIN cleanups.
10732 * utils.c (do_restore_current_language)
10733 (make_cleanup_restore_current_language): New functions.
10734 * utils.h (make_cleanup_restore_current_language): New declaration.
10735
f0a4b570
JK
107362013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10737
10738 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10739 non-existing files.
10740
57b3c00c
JK
10741 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10742 non-existing files if FILENAME is already absolute.
10743
daefa854
JK
107442013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10745
10746 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10747 fputs_filtered. Append trailing newline.
10748
ca9c6ee2
YQ
107492013-01-11 Yao Qi <yao@codesourcery.com>
10750 Stan Shebs <stan@codesourcery.com>
10751
10752 * psymtab.c (init_psymbol_list): Clarify the comment.
10753
f28045c2
YQ
107542013-01-11 Yao Qi <yao@codesourcery.com>
10755
10756 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10757 (update_dprintf_command_list): Assert that 'printf_line' is
10758 non-null. Remove condition check.
10759
da5132d3
JK
107602013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10761
10762 Code cleanup.
10763 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10764 type const char *.
10765 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10766 const char *.
10767 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10768
843e694d
AG
107692013-01-09 Anthony Green <green@moxielogic.com>
10770
10771 * cp-abi.c (cplus_print_vtable): Don't return value from void
10772 function.
10773 * ada-lang.c (re_set_catch_assert): Ditto.
10774
da51c347
DE
107752013-01-09 Doug Evans <dje@google.com>
10776
10777 * symfile.h (quick_symbol_functions): Delete member
10778 pre_expand_symtabs_matching. All uses removed.
10779 * dwarf2read.c (dw2_lookup_symbol): Implement.
10780 (dw2_do_expand_symtabs_matching): Delete.
10781 (dw2_pre_expand_symtabs_matching): Delete.
10782 (struct dw2_symtab_iterator): New type.
10783 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10784 (dw2_expand_symtabs_for_function): Rewrite.
10785 (dwarf2_gdb_index_functions): Update.
10786 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10787 (psym_functions): Update.
10788
b2259038
TT
107892013-01-09 Tom Tromey <tromey@redhat.com>
10790
10791 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10792 * configure: Rebuild.
10793 * configure.ac: Add somread.o to the build if BFD has SOM
10794 support.
10795 * somread.c: Include som/aout.h, not syms.h.
10796 (som_symtab_read): Use som_external_symbol_dictionary_record.
10797 Unpack records manually.
10798 (_initialize_somread): Declare.
10799
bdad4180
MF
108002012-01-08 Mike Frysinger <vapier@gentoo.org>
10801
10802 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10803 Cast return_address to 64bits.
10804
03cdf680
HZ
108052013-01-08 Hui Zhu <hui_zhu@mentor.com>
10806
10807 * printcmd.c: Remove define of function output_command.
10808 * tracepoint.c: Remove extern of function output_command.
10809 * valprint.h: (output_command): New extern.
10810
8a808554
TT
108112013-01-07 Tom Tromey <tromey@redhat.com>
10812
10813 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10814 Remove.
10815 (objc_language_defn): Use c_printchar, c_printstr,
10816 c_emit_char.
10817
e93a8774
TT
108182013-01-07 Tom Tromey <tromey@redhat.com>
10819
10820 PR cli/7719:
10821 * NEWS: Update.
10822 * ada-valprint.c (printstr, print_field_values): Remove
10823 "inspect_it" code.
10824 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10825 code.
10826 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10827 code.
10828 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10829 * main.c (captured_main): Remove "epoch" argument.
10830 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10831 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10832 * p-valprint.c (pascal_object_print_value_fields): Remove
10833 "inspect_it" code.
10834 * printcmd.c (print_command_1): Remove 'inspect' argument.
10835 (print_command, call_command): Update.
10836 (inspect_command): Remove.
10837 (_initialize_printcmd): Make "inspect" an alias for "print".
10838 * top.c (epoch_interface): Remove.
10839 * top.h (epoch_interface): Remove.
10840 * valprint.c (user_print_options): Update.
10841 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10842 * valprint.h (struct value_print_options) <inspect_it>: Remove
10843 field.
10844
108452013-01-04 Tom Tromey <tromey@redhat.com>
10846
10847 * valprint.h (read_string): Add 'extern'.
10848
b967eb24
JB
108492013-01-07 Joel Brobecker <brobecker@adacore.com>
10850
10851 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10852 used to decide whether to define darwin_read_dyld_info or not.
10853
78a8b30e
PM
108542013-01-03 Pierre Muller <muller@sourceware.org>
10855
10856 * main.c (relocate_gdb_directory): Avoid calling stat function
10857 if DIR is empty.
10858
50da2f25
YQ
108592013-01-03 Yao Qi <yao@codesourcery.com>
10860
10861 * psymtab.c (fixup_psymbol_section): Update declaration.
10862 (fixup_psymbol_section): Remove code returning value.
10863
e7e8980f
YQ
108642013-01-03 Yao Qi <yao@codesourcery.com>
10865
10866 * symtab.h: Remove some out of date comments.
10867 (enum exception_event_kind): Move it ...
10868 * breakpoint.c: ... here.
10869
569283d4
MF
108702013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10871
9f9d9a96 10872 PR gdb/14405
569283d4
MF
10873 * darwin-nat.c (darwin_read_dyld_info): Only build if
10874 TASK_DYLD_INFO_COUNT is defined.
10875 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10876 TASK_DYLD_INFO_COUNT is defined.
10877
2e36fbea
TT
108782013-01-02 Tom Tromey <tromey@redhat.com>
10879
10880 * symfile.h (struct ecoff_debug_hack): Remove.
10881 * objfiles.c: Don't include mdebugread.h.
10882
4f05add4
TT
108832013-01-02 Tom Tromey <tromey@redhat.com>
10884
10885 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10886 * configure.ac: Check for Mach-O support in BFD. Update
10887 CONFIG_OBS.
10888 * configure: Rebuild.
10889
def63ff0
TT
108902013-01-02 Tom Tromey <tromey@redhat.com>
10891
10892 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10893 * configure.ac: Use GDB_AC_CHECK_BFD.
10894 * configure: Rebuild.
10895
60c5dd93
MK
108962013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10897
10898 * MAINTAINERS: Update my email.
10899
6e58437e
JB
109002013-01-01 Joel Brobecker <brobecker@adacore.com>
10901
10902 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10903
627fe805
JB
109042013-01-01 Joel Brobecker <brobecker@adacore.com>
10905
10906 * rs6000-nat.c (bss_data_overlap): New function.
10907 (vmap_symtab): Use it to adjust the .bss section's offset.
10908
28e7fd62
JB
109092013-01-01 Joel Brobecker <brobecker@adacore.com>
10910
10911 Update year range in copyright notice of all files.
10912
e93a8774 109132013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
10914
10915 * top.c (print_gdb_version): Update copyright year.
10916
72b20e9c 10917For older changes see ChangeLog-2012.
c906108c
SS
10918\f
10919Local Variables:
10920mode: change-log
10921left-margin: 8
10922fill-column: 74
10923version-control: never
57da7796 10924coding: utf-8
c906108c 10925End:
This page took 2.090776 seconds and 4 git commands to generate.