binutils doc update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e8369a73
AB
12013-10-18 Andrew Burgess <aburgess@broadcom.com>
2
3 * breakpoint.c (update_watchpoint): If hardware watchpoints are
4 forced off, downgrade them to software watchpoints if possible,
5 and error out if not possible.
6 (watch_command_1): Move watchpoint type selection closer to
7 watchpoint creation, and extend the comments.
8
776f04fa
PA
92013-10-18 Pedro Alves <palves@redhat.com>
10
11 PR gdb/16062
12 * infrun.c (handle_inferior_event): Keep going if we got a random
13 signal we should not stop for, instead of falling through to the
14 step tests.
15
0c6faab5
YQ
162013-10-18 Yao Qi <yao@codesourcery.com>
17
18 * c-varobj.c (cplus_number_of_children): Fix indentation.
19
50b34a18
TT
202013-10-17 Tom Tromey <tromey@redhat.com>
21
22 PR gdb/15995:
23 * printcmd.c (printcmd): Call gdb_flush.
24
5c4c8a59
TT
252013-10-17 Tom Tromey <tromey@redhat.com>
26
27 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
28 (elf_locate_sections): Update.
29
c4124bf1
YQ
302013-10-17 Yao Qi <yao@codesourcery.com>
31
32 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
33 * ada-varobj.c: Remove the include of ada-varobj.h.
34 (ada_varobj_get_number_of_children): Declare.
35 (ada_varobj_get_name_of_child): Make it static.
36 (ada_varobj_get_path_expr_of_child): Likewise.
37 (ada_varobj_get_value_of_child): Likewise.
38 (ada_varobj_get_type_of_child): Likewise.
39 (ada_varobj_get_value_of_array_variable): Likewise.
40 * ada-varobj.h: Remove.
41
99ad9427
YQ
422013-10-17 Yao Qi <yao@codesourcery.com>
43
44 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
45 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
46 * ada-varobj.c: Include "varobj.h".
47 (ada_number_of_children): New. Moved from varobj.c.
48 (ada_name_of_variable, ada_name_of_child): Likewise.
49 (ada_path_expr_of_child, ada_value_of_child): Likewise.
50 (ada_type_of_child, ada_value_of_variable): Likewise.
51 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
52 (ada_varobj_ops): New.
53 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
54 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
55 * gdbtypes.h (get_target_type): Declare.
56 * varobj.c: Remove the inclusion of "ada-varobj.h" and
57 "ada-lang.h".
58 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
59 (ANONYMOUS_UNION_NAME): Likewise.
60 (get_type, get_value_type, get_target_type): Remove declarations.
61 (value_get_print_value, varobj_value_get_print_value): Likewise.
62 (c_number_of_children, c_name_of_variable): Likewise.
63 (c_name_of_child, c_path_expr_of_child): Likewise.
64 (c_value_of_child, c_type_of_child): Likewise.
65 (c_value_of_variable, cplus_number_of_children): Likewise.
66 (cplus_class_num_children, cplus_name_of_variable): Likewise.
67 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
68 (cplus_value_of_child, cplus_type_of_child): Likewise.
69 (cplus_value_of_variable, java_number_of_children): Likewise.
70 (java_name_of_variable, java_name_of_child): Likewise.
71 (java_path_expr_of_child, java_value_of_child): Likewise.
72 (java_type_of_child, java_value_of_variable): Likewise.
73 (ada_number_of_children, ada_name_of_variable): Likewise.
74 (ada_name_of_child, ada_path_expr_of_child): Likewise.
75 (ada_value_of_child, ada_type_of_child): Likewise.
76 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
77 (ada_value_has_mutated): Likewise.
78 (struct language_specific): Move it to varobj.h.
79 (CPLUS_FAKE_CHILD): Move it to varobj.h.
80 (restrict_range): Rename it varobj_restrict_range. Make it extern.
81 Callers update.
82 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
83 Make it extern.
84 (is_anonymous_child): Move it to c-varobj.c and rename to
85 varobj_is_anonymous_child. Caller update.
86 (get_type): Move it to c-varobj.c.
87 (get_value_type): Rename it varobj_get_value_type. Make it
88 extern.
89 (get_target_type): Move it gdbtypes.c.
90 (varobj_formatted_print_options): New function.
91 (value_get_print_value): Rename it to
92 varobj_value_get_print_value and make it extern.
93 (varobj_value_is_changeable_p): Make it extern.
94 (adjust_value_for_child_access): Move it to c-varobj.c.
95 (default_value_is_changeable_p): Rename it to
96 varobj_default_value_is_changeable_p. Make it extern.
97 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
98 (c_name_of_child, c_path_expr_of_child): Likewise.
99 (c_value_of_child, c_type_of_child): Likewise.
100 (c_value_of_variable, cplus_number_of_children): Likewise.
101 (cplus_class_num_children, cplus_name_of_variable): Likewise.
102 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
103 (cplus_value_of_child, cplus_type_of_child): Likewise.
104 (cplus_value_of_variable): Likewise.
105 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
106 (java_name_of_child, java_path_expr_of_child): Likewise.
107 (java_value_of_child, java_type_of_child): Likewise.
108 (java_value_of_variable): Likewise.
109 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
110 (ada_name_of_child, ada_path_expr_of_child): Likewise.
111 (ada_value_of_child, ada_type_of_child): Likewise.
112 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
113 (ada_value_has_mutated): Likewise.
114 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
115 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
116 (c_varobj_ops, cplus_varobj_ops): Declare.
117 (java_varobj_ops, ada_varobj_ops): Declare.
118 (varobj_default_value_is_changeable_p): Declare.
119 (varobj_value_is_changeable_p): Declare.
120 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
121 (varobj_get_path_expr_parent): Declare.
122 (varobj_value_get_print_value): Declare.
123 (varobj_formatted_print_options): Declare.
124 (varobj_restrict_range): Declare.
125
c8a62302
LM
1262013-10-17 Luis Machado <lgustavo@codesourcery.com>
127
128 * target/waitstatus.h (target_waitkind): Remove spurious
129 character from the comments.
130
eade6471
JB
1312013-10-17 Joel Brobecker <brobecker@adacore.com>
132
133 * gdbarch.sh (get_longjmp_target): Add method documentation.
134 * gdbarch.h: Regenerate.
135
5411b26c
TT
1362013-10-16 Tom Tromey <tromey@redhat.com>
137
138 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
139 label.
140
87326c87
LM
1412013-10-16 Luis Machado <lgustavo@codesourcery.com>
142
143 * gcore.in: Call GDB using the full path to the gcore script.
144 Error out if the GDB binary is not found.
145
fd0a4d76
SDJ
1462013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
147
148 PR gdb/16014
149 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
150 sizeof.
151
d92f7ee3
SDJ
1522013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
153
154 PR gdb/16042
155 * target.c (target_disable_btrace): Fix invalid return value for
156 void function.
157 (target_teardown_btrace): Likewise.
158
bb5ce47a
YQ
1592013-10-14 Yao Qi <yao@codesourcery.com>
160
161 * varobj.c (struct varobj): Move most of the fields to
162 varobj.h.
163 (struct varobj_dynamic): New struct.
164 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
165 (varobj_has_more): Likewise.
166 (dynamic_varobj_has_child_method): Likewise.
167 (update_dynamic_varobj_children): Likewise.
168 (varobj_get_num_children): Likewise.
169 (varobj_list_children, varobj_pretty_printed_p): Likewise.
170 (install_new_value_visualizer): Likewise.
171 (install_new_value_visualizer, install_new_value): Likewise.
172 (varobj_update, new_variable, free_variable): Likewise.
173 (my_value_of_variable, value_get_print_value): Likewise.
174 (install_visualizer): Change the type of parameter 'var' to
175 'struct varobjd_dynamic *'. Callers update.
176 * varobj.h (struct varobj): Moved from varobj.c.
177 (struct varobj) <dynamic>: New field.
178
0b76b0ce
SL
1792013-10-13 Sandra Loosemore <sandra@codesourcery.com>
180
181 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
182 as the preferred name of r30.
183 * nios2-linux-tdep.c (reg_offsets): Likewise.
184 * features/nios2-cpu.xml: Likewise.
185 * features/nios2-linux.c: Regenerated.
186 * features/nios2.c: Regenerated.
187 * regformats/nios2-linux.dat: Regenerated.
188
4856b6bc
JK
1892013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
190
191 Canonicalize directories for EXEC_FILENAME.
192 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
193 exec_filename.
194 * utils.c (gdb_realpath_keepfile): New function.
195 * utils.h (gdb_realpath_keepfile): New declaration.
196
9b557b58
DE
1972013-10-11 Doug Evans <dje@google.com>
198
199 * Makefile.in (GDBFLAGS): New variable.
200 (run): New rule.
201
ce13fade
JB
2022013-10-11 Joel Brobecker <brobecker@adacore.com>
203
204 * NEWS: Add entry documenting the new "-catch-assert" and
205 "-catch-exception" GDB/MI commands.
206
349774ef
JB
2072013-10-11 Joel Brobecker <brobecker@adacore.com>
208
209 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
210 "enabled".
211 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
212 "enabled". Set B->ENABLE_STATE accordingly.
213 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
214 ada-lang.c.
215 (create_ada_exception_catchpoint): Add declaration.
216 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
217 (create_ada_exception_catchpoint): Make non-static. Add new
218 parameter "disabled". Use it in call to
219 init_ada_exception_breakpoint.
220 (catch_ada_exception_command): Add parameter "enabled" in call
221 to create_ada_exception_catchpoint.
222 (catch_assert_command): Likewise.
223
224 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
225 Add declarations.
226 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
227 "catch-exception" commands.
228 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
229 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
230
761269c8
JB
2312013-10-11 Joel Brobecker <brobecker@adacore.com>
232
233 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
234 "enum exception_catchpoint_kind". Replace the "ex_" prefix
235 of all its enumerates with "ada_". Update the rest of this
236 file throughout.
237
b4a5b78b
JB
2382013-10-11 Joel Brobecker <brobecker@adacore.com>
239
240 * ada-lang.c (ada_decode_exception_location): Delete.
241 (create_ada_exception_catchpoint): Remove arguments "sal",
242 "addr_string" and "ops". Add argument "ex_kind" instead.
243 Adjust implementation accordingly, calling ada_exception_sal
244 to get the entities it no longer gets passed as arguments.
245 Document the function's arguments.
246 (catch_ada_exception_command): Use catch_ada_exception_command_split
247 instead of ada_decode_exception_location, and update call to
248 create_ada_exception_catchpoint.
249 (catch_ada_assert_command_split): Renames
250 ada_decode_assert_location. Remove parameters "addr_string" and
251 "ops", and now returns void. Adjust implementation accordingly.
252 Update the function documentation.
253 (catch_assert_command): Use catch_ada_assert_command_split
254 instead of ada_decode_assert_location. Update call to
255 create_ada_exception_catchpoint.
256
7ad1d32c 2572013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
258
259 * utils.h (perror_warning_with_name): Add declaration.
260 * utils.c (perror_warning_with_name): New function.
261 * cli/cli-cmds.c (source_script_with_search): Add call to
262 perror_warning_with_name if from_tty is nul.
263
7ad1d32c 2642013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
265
266 * utils.c (perror_string): New function, extracted out of
267 throw_perror_with_name.
268 (throw_perror_with_name): Rework to use perror_string.
269
bcc75809
YQ
2702013-10-11 Yao Qi <yao@codesourcery.com>
271
272 * remote.c (discard_pending_stop_replies_in_queue): Update
273 declaration.
274 (struct stop_reply) <rs>: New field.
275 (remove_stop_reply_of_remote_state): New function.
276 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
277 Callers update. Pass remove_stop_reply_of_remote_state to
278 QUEUE_iterate.
279 (remote_parse_stop_reply): Initialize field 'rs'.
280
05feb193
WN
2812013-10-10 Will Newton <will.newton@linaro.org>
282
283 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
284 linux_init_abi.
285
0d12017b
JB
2862013-10-10 Joel Brobecker <brobecker@adacore.com>
287
288 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
289 serial_baud_show_cmd.
290 (_initialize_cli_cmds): Delete the code creating the
291 "set/show remotebaud" commands.
292 * serial.c (baud_rate): Move here from top.c.
293 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
294 (_initialize_serial): Create "set/show serial baud" commands.
295 Add "set/show remotebaud" command aliases.
296 * top.c (baud_rate): Moved to serial.c.
297 * NEWS: Document the new "set/show serial baud" commands,
298 replacing "set/show remotebaud".
299
578d3588
PA
3002013-10-09 Pedro Alves <palves@redhat.com>
301
302 * breakpoint.c (insert_bp_location): Use memory_error_message to
303 build the memory error string.
304 * c-lang.c: Include "gdbcore.h".
305 (c_get_string): Use memory_error to throw error.
306 (target_xfer_memory_error): Delete.
307 (memory_error_message): New, factored out from
308 target_xfer_memory_error.
309 (memory_error): Change parameter type to target_xfer_error.
310 Rewrite.
311 (read_memory): Use memory_error instead of
312 target_xfer_memory_error.
313 * gdbcore.h: Include "target.h".
314 (memory_error): Change parameter type to target_xfer_error.
315 (memory_error_message): Declare function.
316 * target.c (target_read_memory, target_read_stack)
317 (target_write_memory, target_write_raw_memory): Return
318 TARGET_XFER_E_IO on error. Adjust comments.
319 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
320 instead of EIO.
321 * target.h (target_read, target_insert_breakpoint)
322 (target_remove_breakpoint): Adjust comments.
323 * valprint.c (partial_memory_read): Rename parameter, and adjust
324 comment.
325 (val_print_string): Use memory_error_message to build the memory
326 error string.
327
c74e1ccf
JK
3282013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
329
330 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
331 result variable. Rename variable fopen_e_ever_failed to
332 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
333
915215be
PA
3342013-10-09 Pedro Alves <palves@redhat.com>
335
336 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
337 (monitor_write_memory_longlongs, monitor_write_memory_block):
338 Constify 'myaddr' parameter.
339 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
340 helper.
341 (monitor_xfer_partial): New function.
342 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
343 hook. Install a to_xfer_partial hook.
344
acd13123
TT
3452013-10-09 Tom Tromey <tromey@redhat.com>
346
347 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
348 bfd_get_alt_debug_link_info.
349
40135bb1
JK
3502013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
351
352 New flag OBJF_NOT_FILENAME.
353 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
354 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
355 allocate_objfile.
356 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
357 symbol_file_add_from_bfd.
358 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
359 allocate_objfile.
360 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
361 NULL.
362 * objfiles.h (OBJF_NOT_FILENAME): New.
363
dc294be5
TT
3642013-10-08 Tom Tromey <tromey@redhat.com>
365
366 * Makefile.in (SFILES): Add build-id.c.
367 (HFILES_NO_SRCDIR): Add build-id.h.
368 * build-id.c: New file, largely from elfread.c. Modified
369 most functions.
370 * build-id.h: New file.
371 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
372 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
373 Search for dwz file using build-id.
374 * elfread.c (build_id_bfd_get, build_id_verify)
375 (build_id_to_debug_filename, find_separate_debug_file): Remove.
376
db230ce3
JB
3772013-10-08 Joel Brobecker <brobecker@adacore.com>
378
379 * ada-lang.c (compare_names_with_case): Renamed from
380 compare_names, adding a new parameter "casing" and its handling.
381 New function documentation.
382 (compare_names): New function, implemented using
383 compare_names_with_case.
384
6501c98a
JB
3852013-10-08 Joel Brobecker <brobecker@adacore.com>
386
387 * ada-lang.c (ada_exception_sal): Remove advance declaration.
388
84a1243b
TT
3892013-10-07 Tom Tromey <tromey@redhat.com>
390
391 * objfiles.c (free_objfile_per_bfd_storage): Delete the
392 demangled_names_hash.
393 (free_objfile): Don't delete the demangled_names_hash.
394 * objfiles.h (struct objfile_per_bfd_storage)
395 <demangled_names_hash>: New field.
396 (struct objfile) <demangled_names_hash>: Move to
397 objfile_per_bfd_storage.
398 * symfile.c (reread_symbols): Don't delete the
399 demangled_names_hash.
400 * symtab.c (create_demangled_names_hash): Update.
401 (symbol_set_names): Update.
402
1da77581
TT
4032013-10-07 Tom Tromey <tromey@redhat.com>
404
405 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
406 needs_relocations>: New fields.
407 (gdb_bfd_requires_relocations): New function.
408 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
409 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
410 the BFD needs relocations applied.
411
46ecd527
PA
4122013-10-07 Pedro Alves <palves@redhat.com>
413
414 PR breakpoints/11568
415 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
416 the thread list" instead of "gone".
417
0c557179
SDJ
4182013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
419
420 * NEWS: Mention new convenience variable $_exitsignal.
421 * corelow.c (core_open): Reset exit convenience variables. Set
422 $_exitsignal to the uncaught signal which generated the corefile.
423 * infrun.c (handle_inferior_event): Reset exit convenience
424 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
425 (clear_exit_convenience_vars): New function.
426 * inferior.h (clear_exit_convenience_vars): New prototype.
427
1cc47d81
YQ
4282013-10-06 Yao Qi <yao@codesourcery.com>
429
430 * varobj.h: Add comments to enum varobj_languages.
431
73869dc2
DE
4322013-10-04 Doug Evans <dje@google.com>
433
434 Add support for DWP file format version 2.
435 * NEWS: Mention support for DWP file format version 2.
436 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
437 union of asection, containing_section. New fields virtual_offset
438 and is_virtual. Change type of readin filed from int to char.
439 (dwo_sections, dwo_file): Tweak comments.
440 (dwp_v2_section_ids): New enum.
441 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
442 str_offsets, types.
443 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
444 All uses updated.
445 (virtual_v2_dwo_sections): New struct.
446 (dwp_hash_table): New fields version, nr_columns. Change type of
447 section_pool field to a union.
448 (dwp_file): New field version.
449 (dwarf2_has_info): Check for virtual sections.
450 (get_containing_section): New function.
451 (get_section_bfd_owner, get_section_bfd_section): Call it.
452 (dwarf2_locate_sections): Update.
453 (dwarf2_section_empty_p): Update.
454 (dwarf2_read_section): Handle virtual sections.
455 (locate_dwz_sections): Update.
456 (create_dwp_hash_table): Document and handle V2 format.
457 (locate_v1_virtual_dwo_sections): Renamed from
458 locate_virtual_dwo_sections and update. All callers updated.
459 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
460 Delete arg htab. Rename arg section_index to unit_index.
461 All callers updated.
462 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
463 All uses updated.
464 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
465 (lookup_dwo_unit_in_dwp): Add V2 support.
466 (dwarf2_locate_dwo_sections): Update.
467 (dwarf2_locate_common_dwp_sections): Renamed from
468 dwarf2_locate_dwp_sections and update. All callers updated.
469 (dwarf2_locate_v2_dwp_sections): New function.
470 (open_and_init_dwp_file): Add V2 support.
471 (read_str_index): New locals str_section, str_offsets_section.
472
9a2c3737
PA
4732013-10-04 Pedro Alves <palves@redhat.com>
474
475 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
476 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
477 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
478 describing comments with references to ptid.h.
479 * common/ptid.h: Remove intro description of constructors,
480 accessors and predicates.
481 (struct ptid): Reformat.
482 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
483 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
484 describing comments.
485
f5371440
JB
4862013-10-04 Joel Brobecker <brobecker@adacore.com>
487
488 * aix-thread.c (sync_threadlists): Add missing ')' in call
489 to ptid_build.
490
793e1c06
JB
4912013-10-04 Joel Brobecker <brobecker@adacore.com>
492
493 * procfs.c (procfs_init_inferior): Fix typo causing the build
494 to fail.
495
26f0edc1
JB
4962013-10-04 Joel Brobecker <brobecker@adacore.com>
497
498 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
499
5713b9b5
JB
5002013-10-04 Joel Brobecker <brobecker@adacore.com>
501
502 * mi/mi-main.c (run_one_inferior): Add function description.
503 Make ARG a pointer to an integer whose value determines whether
504 we should "run" or "start" the program.
505 (mi_cmd_exec_run): Add handling of the "--start" option.
506 Reject all other command-line options.
507 * NEWS: Add entry for "-exec-run"'s new "--start" option.
508
f48ff2a7
YQ
5092013-10-04 Yao Qi <yao@codesourcery.com>
510
511 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
512 (struct notif_client) <pending_event>: Moved
513 to struct remote_notif_state.
514 <id>: New field.
515 (struct remote_notif_state) <pending_event>: New field.
516 (notif_event_xfree): Declare.
517 * remote-notif.c (handle_notification): Adjust.
518 (notif_event_xfree): New function.
519 (do_notif_event_xfree): Call notif_event_xfree.
520 (remote_notif_state_xfree): Call notif_event_xfree to free
521 each element in field pending_event.
522 * remote.c (discard_pending_stop_replies): Remove declaration.
523 (discard_pending_stop_replies_in_queue): Declare.
524 (remote_close): Call discard_pending_stop_replies_in_queue
525 instead of discard_pending_stop_replies.
526 (remote_start_remote): Adjust.
527 (stop_reply_xfree): Call notif_event_xfree.
528 (notif_client_stop): Adjust initialization.
529 (remote_notif_remove_all): Rename it to ...
530 (remove_stop_reply_for_inferior): ... this. Update comments.
531 Don't check INF is NULL.
532 (discard_pending_stop_replies): Return early if notif_state is
533 NULL. Adjust. Don't check INF is NULL.
534 (remote_notif_get_pending_events): Adjust.
535 (discard_pending_stop_replies_in_queue): New function.
536 (remote_wait_ns): Likewise.
537
5965e028
YQ
5382013-10-04 Yao Qi <yao@codesourcery.com>
539
540 * remote-notif.c (DECLARE_QUEUE_P): Remove.
541 (notif_queue): Remove.
542 (remote_notif_process): Add one parameter 'notif_queue'.
543 Update comments. Callers update.
544 (remote_async_get_pending_events_token): Remove.
545 (remote_notif_register_async_event_handler): Remove.
546 (remote_notif_unregister_async_event_handler): Remove.
547 (handle_notification): Add parameter 'notif_queue'. Update
548 comments. Callers update.
549 (notif_xfree): Remove.
550 (remote_notif_state_allocate): New function.
551 (remote_notif_state_xfree): New function.
552 (_initialize_notif): Remove code to allocate queue.
553 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
554 (struct remote_notif_state): New.
555 (handle_notification): Update declaration.
556 (remote_notif_process): Likewise.
557 (remote_notif_register_async_event_handler): Remove.
558 (remote_notif_unregister_async_event_handler): Remove.
559 (remote_notif_state_allocate): Declare.
560 (remote_notif_state_xfree): Declare.
561 * remote.c (struct remote_state) <notif_state>: New field.
562 (remote_close): Don't call
563 remote_notif_unregister_async_event_handler. Call
564 remote_notif_state_xfree.
565 (remote_open_1): Don't call
566 remote_notif_register_async_event_handler. Call
567 remote_notif_state_allocate.
568
5e5ac9a5
YQ
5692013-10-04 Yao Qi <yao@codesourcery.com>
570
571 * varobj.c (create_child_with_value): Remove 'const' from the
572 type of parameter 'name'.
573 (varobj_add_child): Likewise.
574 (install_dynamic_child): Remove 'const' from the type of
575 parameter 'name'.
576 (varobj_add_child): Likewise.
577 (create_child_with_value): Likewise. Update comments. Don't
578 duplicate 'name'.
579 (update_dynamic_varobj_children): Duplicate 'name'
580 and pass it to install_dynamic_child.
581
06ab7b19
PM
5822013-10-03 Phil Muldoon <pmuldoon@redhat.com>
583
584 * python/py-value.c (convert_value_from_python): Move PyInt_Check
585 conversion logic to occur after PyLong_Check. Comment on order
586 change significance.
587 * python/py-arch.c (archpy_disassemble): Comment on order of
588 conversion for integers and longs.
589
8ae377e8
PA
5902013-10-03 Pedro Alves <palves@redhat.com>
591
592 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
593 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
594 functions. Always test for PTRACE_O_TRACESYSGOOD even if
595 PTRACE_O_TRACEFORK is not supported.
596 (linux_test_for_tracesysgood): New function.
597 (linux_test_for_tracefork): New function, factored out from
598 linux_check_ptrace_features, and also don't kill child_pid here.
599
b1328b1b
TG
6002013-10-03 Tristan Gingold <gingold@adacore.com>
601
602 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
603 Remove verbose error reporting. Use detected state to
604 thread_set_state call.
605 (i386_darwin_dr_get): Fix return type. Remove verbose error
606 report.
607 Remove trailing spaces.
608
901461f8
PA
6092013-10-02 Pedro Alves <palves@redhat.com>
610
611 * cp-valprint.c (cp_print_value_fields): Adjust calls to
612 val_print_optimized_out.
613 * jv-valprint.c (java_print_value_fields): Likewise.
614 * p-valprint.c (pascal_object_print_value_fields): Likewise.
615 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
616 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
617 new optimized out value.
618 * findvar.c (address_from_register): Likewise.
619 * frame.c (put_frame_register): Tweak error string to say the
620 register was not saved, rather than optimized out.
621 * infcmd.c (default_print_one_register_info): Adjust call to
622 val_print_optimized_out. Use value_of_register instead of
623 get_frame_register_value.
624 * mi/mi-main.c (output_register): Use value_of_register instead of
625 get_frame_register_value.
626 * valprint.c (valprint_check_validity): Likewise.
627 (val_print_optimized_out): New value parameter. If the value is
628 lval_register, print <not saved> instead.
629 (value_check_printable, val_print_scalar_formatted): Adjust calls
630 to val_print_optimized_out.
631 * valprint.h (val_print_optimized_out): New value parameter.
632 * value.c (struct value) <optimized_out>: Extend comment.
633 (error_value_optimized_out): New function.
634 (require_not_optimized_out): Use it. Use a different string for
635 lval_register values.
636 * value.h (error_value_optimized_out): New declaration.
637 * NEWS: Mention <not saved>.
638
042a84d9
JB
6392013-10-02 Joel Brobecker <brobecker@adacore.com>
640
641 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
642 strcmp to compare two symtab filenames.
643
6b9780fb
JB
6442013-10-02 Joel Brobecker <brobecker@adacore.com>
645
646 * symtab.c (search_symbols_equal): Delete.
647 (sort_search_symbols_remove_dups): Replace call to
648 search_symbols_equal by call to compare_search_syms,
649 adjusting as necessary.
650
751e7549
PM
6512013-10-02 Phil Muldoon <pmuldoon@redhat.com>
652
653 PR python/15579
654
655 * python/python.c: Document gdb.execute command in Python help.
656
1efd7661
PM
6572013-10-02 Phil Muldoon <pmuldoon@redhat.com>
658
659 * python/py-frame.c (frame_info_to_frame_object): Use
660 gdbpy_convert_exception. Clean up Python object on failure.
661
562fc849
PM
6622013-10-02 Phil Muldoon <pmuldoon@redhat.com>
663
664 * python/lib/gdb/command/frame_filters.py
665 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
666 (ShowFrameFilterPriority.invoke): Ditto.
667
d7561cbb
KS
6682013-10-01 Keith Seitz <keiths@redhat.com>
669
670 * linespec.c (struct ls_parser): Make 'saved_arg' const.
671 (parse_linespec): Make 'argptr' const.
672 Remove temporary cast of 'argptr' to const char **.
673 (decode_line_full): Pass const pointer to parse_linespec.
674 (decode_line_1): Likewise.
675 (decode_objc): Make local variable 'new_argptr' const.
676 (find_function_symbols): Remove temporary cast to char *
677 to find_imps.
678 * objc-lang.c (find_imps): Make argument 'method' const.
679 Return const.
680 * objc-lang.h (find_imps): Likewise.
681
6822013-10-01 Keith Seitz <keiths@redhat.com>
683
684 * completer.c (skip_quoted_chars): Make all arguments const.
685 Return const.
686 (skip_quoted): Likewise.
687 * completer.h (skip_quoted_chars): Likewise.
688 (skip_quoted): Likewise.
689 * defs.h (skip_quoted): Remove duplicate declaration.
690 * jv-exp.y: Include completer.h.
691 (yylex): Remove unneccessary cast to char * fro skip_quoted.
692 * p-exp.y: Include completer.h.
693
6942013-10-01 Keith Seitz <keiths@redhat.com>
695
696 * c-exp.y (parse_number): Make first argument const.
697 Make a copy of the input to manipulate.
698 (c_parse_escape): Make first argument const.
699 Make local variable 'tokptr' const.
700 (parse_string_or_char): Make first two arguments const.
701 (macro_original_text): Make const.
702 (lex_one_token): Make local variable 'tokstart' const.
703 Likewise for local variables named 'p'.
704 Cast away const for struct stoken (temporary).
705 * c-lang.h (c_parse_escpae): Make first argument const.
706 * cli/cli-cmds.c (echo_command): Make local variable 'p'
707 const.
708 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
709 var_string case.
710 * f-exp.y (parse_number): Make first argument const.
711 (match_string_literal): Make local variable 'tokstart'
712 const.
713 (yylex): Make local variable 'p' const.
714 Cast away const for struct stoken (temporary).
715 * go-exp.y (parse_number): Make first argument const.
716 (parse_string_or_char): Likewise.
717 Make local variable 'tokstart' const.
718 (lex_one_token): Likewise for numerous locals called 'p'.
719 Cast away const for struct stoken (temporary).
720 * jv-exp.y (parse_number): Make first argument const.
721 Make local variables 'tokstart' and 'tokptr' const.
722 Cast away const for call to skip_quoted (temporary).
723 (yylex): Make local variable 'p' const.
724 Cast away const for struct stoken (temporary).
725 * m2-exp.y (parse_number): Make local variable 'p' const.
726 (yylex): Likewise for 'tokstart'.
727 Cast away const for struct stoken (temporary).
728 Make local variable 'p' const.
729 * macroexp.c (get_character_constant): Pass a const string
730 to c_parse_escape.
731 (get_string_literal): Likewise.
732 (macro_expand_next): Make first argument const.
733 Cast away const for init_shared_buffer.
734 * macroexp.h (macro_expand_next): Make first argument const.
735 * p-exp.y (yylex): Make a local copy of 'lexptr'.
736 Pass a const string to c_parse_escape.
737 Make local variables 'p' and 'namestart' const.
738 * parse.c (lexptr): Make const.
739 (prev_lexptr): Likewise.
740 (find_template_name_end): Return const.
741 Make argument const, too.
742 (parse_exp_in_context): Make first argument const.
743 Remove the entire const_hack.
744 (parse_exp_in_context_1): Make first argument const.
745 * parser-defs.h (find_template_name_end): Return const.
746 Make argument const, too.
747 (lexptr): Make const.
748 (prev_lexptr): Likewise.
749 * utils.c (parse_escape): Make second argument const.
750 * utils.h (parse_escape): Likewise.
751
7522013-10-01 Keith Seitz <keiths@redhat.com>
753
754 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
755 is now const.
756 (block_lookup): Make 'raw_name' and 'name' const.
757 * ada-lex.l (processString): Update for struct stoken.ptr.
758 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
759 (operator_stoken): Likewise.
760 (lex_one_token): Remove temporary cast to char * for
761 'yylval.sval.ptr'.
762 * f-exp.y (yylex): Likewise.
763 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
764 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
765 * go-exp.y (lex_one_token): Remove temporary cast to char * for
766 'yylval.sval.ptr'.
767 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
768 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
769 * linespec.c (struct ls_parser): Make 'stream' const.
770 (find_parameter_list_end): Make argument 'input' and local
771 variable 'p' const.
772 (linespec_lexer_lex_string): Make local variables 'start' and
773 'p' const.
774 Use skip_spaces_const instead of skip_spaces.
775 (linespec_lexer_peek_token): Make local variable 'saved_stream'
776 const.
777 (parse_linespec): Temporarily cast 'argptr' to const for
778 'parser->lexer.stream'.
779 * m2-exp.y (yylex): Remove temporary cast to char * for
780 'yylval.sval.ptr'.
781 * objc-lang.c (add_msglist): Make local variable 'p' const.
782 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
783 (exp : STRING): Make 'sp' const.
784 (parse_number): Make argument 'p' const.
785 * parser-defs.h (struct stoken): Make 'ptr' const.
786
193a8eac
DE
7872013-10-01 Doug Evans <dje@google.com>
788
789 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
790
2213e2be
YQ
7912013-10-01 Yao Qi <yao@codesourcery.com>
792
793 * varobj.c (c_value_of_root): Remove declaration.
794 (cplus_value_of_root, java_value_of_root): Likewise.
795 (ada_value_of_root): Likewise.
796 (struct language_specific) <value_of_root>: Remove.
797 (languages): Update initialization.
798 (check_scope): Move earlier.
799 (c_value_of_root): Move earlier and rename to ...
800 (value_of_root_1): ... this.
801 (value_of_root): Caller update.
802 (cplus_value_of_root, java_value_of_root): Remove.
803 (ada_value_of_root): Remove.
804
c573f273
YQ
8052013-10-01 Yao Qi <yao@codesourcery.com>
806
807 * varobj.c (varobj_format_string): Remove "unknown".
808 (languages): Remove the first element.
809 * varobj.h (enum varobj_languages): Remove vlang_c.
810
56250258
YQ
8112013-10-01 Yao Qi <yao@codesourcery.com>
812
813 * varobj.c (struct language_specific) <language>: Remove.
814 (languages): Update the initialization.
815
29f9ebfa
YQ
8162013-10-01 Yao Qi <yao@codesourcery.com>
817
818 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
819 "solib-target.h". Include "windows-tdep.h".
820 (arm_wince_init_abi): Call windows_init_abi. Remove call to
821 set_solib_ops and set_gdbarch_has_dos_based_file_system.
822 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
823 windows-tdep.o to gdb_target_obs.
824
64870a42
YQ
8252013-10-01 Yao Qi <yao@codesourcery.com>
826
827 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
828 "solib-target.h".
829 (amd64_windows_init_abi): Don't call set_solib_ops and
830 set_gdbarch_iterate_over_objfiles_in_search_order. Call
831 windows_init_abi instead.
832 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
833 "solib-target.h".
834 (i386_cygwin_init_abi): Don't call set_solib_ops,
835 set_gdbarch_has_dos_based_file_system and
836 set_gdbarch_iterate_over_objfiles_in_search_order. Call
837 windows_init_abi instead.
838 * windows-tdep.c: Include "solib.h" and "solib-target.h".
839 (windows_init_abi): New function.
840 (windows_iterate_over_objfiles_in_search_order): Make it
841 static.
842 * windows-tdep.h (windows_init_abi): Declare.
843 (windows_iterate_over_objfiles_in_search_order): Remove
844 declaration.
845
0aebdefa
JB
8462013-10-01 Jerome Guitton <guitton@adacore.com>
847
848 Checked in by Joel Brobecker <brobecker@adacore.com>
849 * system-gdbinit/elinos.py (get_elinos_environment): Return an
850 incomplete dictionnary instead of None in case of missing
851 environment variables.
852 (elinos_init): in case of an incomplete environment, best
853 effort to load system libraries instead of abort.
854
1c8e84b0
JB
8552013-10-01 Joel Brobecker <brobecker@adacore.com>
856
857 * ada-lang.c (ada_has_this_exception_support): Ignore
858 mst_solib_trampoline minimal symbols.
859
61d82a0d
TG
8602013-09-30 Tristan Gingold <gingold@adacore.com>
861
862 * i386-darwin-nat.c (darwin_complete_target): Install methods for
863 hardware watchpoint.
864 (i386_darwin_dr_set): Support 32 and 64 bit states.
865 (i386_darwin_dr_get): Likewise.
866 (i386_darwin_dr_set_control): Make static.
867 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
868 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
869
dfd4cc63
LM
8702013-09-30 Luis Machado <lgustavo@codesourcery.com>
871
872 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
873 Replace TIDGET with ptid_get_lwp.
874 Replace GET_LWP with ptid_get_lwp.
875 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
876 Replace BUILD_THREAD with ptid_build.
877 Replace BUILD_LWP with ptid_build.
878 Replace PIDGET with ptid_get_pid.
879 Replace TIDGET with ptid_get_lwp.
880 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
881 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
882 Replace TIDGET with ptid_get_lwp.
883 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
884 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
885 Replace TIDGET with ptid_get_lwp.
886 Replace GET_LWP with ptid_get_lwp.
887 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
888 * auxv.c: Likewise.
889 * breakpoint.c: Likewise.
890 * common/ptid.c (ptid_is_pid): Condense check for
891 null_ptid and minus_one_ptid.
892 (ptid_lwp_p): New function.
893 (ptid_tid_p): New function.
894 * common/ptid.h: Update comments for accessors.
895 (ptid_lwp_p): New prototype.
896 (ptid_tid_p): New prototype.
897 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
898 * gcore.c: Replace PIDGET with ptid_get_pid.
899 * gdbthread.h: Likewise.
900 * gnu-nat.c: Likewise.
901 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
902 Replace TIDGET with ptid_get_lwp.
903 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
904 * hppanbsd-nat.c: Likewise.
905 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
906 Replace TIDGET with ptid_get_lwp.
907 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
908 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
909 * infcmd.c: Likewise.
910 * inferior.h: Likewise.
911 * inflow.c: Likewise.
912 * infrun.c: Likewise.
913 * linux-fork.c: Likewise.
914 * linux-nat.c: Replace PIDGET with ptid_get_pid.
915 Replace GET_PID with ptid_get_pid.
916 Replace is_lwp with ptid_lwp_p.
917 Replace GET_LWP with ptid_get_lwp.
918 Replace BUILD_LWP with ptid_build.
919
5b4e221c
MF
9202013-09-28 Mike Frysinger <vapier@gentoo.org>
921
922 * common/linux-btrace.c: Move sys/syscall.h out of the
923 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
924 Also check for SYS_perf_event_open before attempting to buid.
925
57d63ce2
DE
9262013-09-27 Doug Evans <dje@google.com>
927
19ac8c2e
DE
928 * dwarf2read.c (dwarf2_section_info): Add comment.
929 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
930 All uses updated.
931 (dwarf2_section_empty_p): Rename arg from "info" to "section".
932 (dwarf2_read_section): Delete unused local "header". Add section
933 name to error message.
934 (create_dwo_in_dwp): Tweak comment.
935 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
936
a32a8923
DE
937 * dwarf2read.c (die_reader_specs): Tweak comment.
938 (get_section_bfd_owner, get_section_bfd_section): New functions.
939 (get_section_name, get_section_file_name): New functions.
940 (get_section_id, get_section_flags): New functions.
941 (*): Use new functions to access section fields.
942
57d63ce2
DE
943 * dwarf2read.c (struct dwo_file): Add/tweak comments.
944 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
945 arg "htab". All callers updated.
946 (create_debug_types_hash_table): Remove redundant copy of
947 abbrev_section.
948 (create_dwo_in_dwp): Tweak comments.
949 (read_str_index): Tweak comment. Record dwarf form name in static
950 local.
951
3736004f
PA
9522013-09-27 Pedro Alves <palves@redhat.com>
953
954 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
955 (remote_filename_p): Add comment.
956 * remote.c (remote_filename_p): Adjust to use
957 REMOTE_SYSROOT_PREFIX.
958 * solib.c (solib_find): When deciding whether we need to add a
959 directory separator, check whether the sysroot is "remote:"
960 instead of checking whether the patch has a drive spec. Add
961 comments.
962
5b5596ff
PA
9632013-09-27 Pedro Alves <palves@redhat.com>
964
965 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
966 Delete fields.
967 (remote_parse_stop_reply): Adjust, setting event->ws.kind
968 directly.
969
b5eef7aa
JK
9702013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
971
972 Fix set debug frame output.
973 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
974 SENTINEL_FRAME entry lower to match enum frame_type order.
975
5b856f36
PM
9762013-09-26 Pierre Muller <muller@sourceware.org>
977
978 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
979 AMD64_R15_REGNUM when a register index is expected.
980 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
981 Substitute in array.
982 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
983 (amd64_push_arguments): Substitute in integer_regnum array.
984
ade7ed9e
DE
9852013-09-25 Doug Evans <dje@google.com>
986
d3e81981
DE
987 * objfiles.c (allocate_objfile): Move comment to better place.
988
8fb8eb5c
DE
989 New option "set debug symfile on".
990 * NEWS: Mention "set debug symfile".
991 * Makefile.in (SFILES): Add symfile-debug.c.
992 (COMMON_OBS): Add symfile-debug.o.
993 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
994 objfile's symbol functions.
995 * objfiles.h (objfile_set_sym_fns): Declare.
996 * symfile-debug.c: New file.
997 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
998 objfile's symbol functions.
999 (reread_symbols): Ditto.
1000
c256e171
DE
1001 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1002 All uses updated.
1003 (add_symtab_fns): Update prototype.
1004 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1005 (registered_sym_fns): ... this.
1006 (symtab_fns): Update.
1007 (add_symtab_fns): New arg "flavour". All callers updated.
1008 (find_sym_fns): Rewrite to use new sym_fns registry.
1009
f56ce883
DE
1010 * symfile.h (struct sym_fns): Add "objfile" argument to
1011 sym_read_linetable. All uses updated.
1012
20c681d1
DE
1013 * symtab.c (domain_name, search_domain_name): New functions.
1014 * symtab.h (domain_name, search_domain_name): Declare.
1015
ade7ed9e
DE
1016 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1017 map_matching_symbols so objfile is first. All uses updated.
1018 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1019 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1020
7d760051
UW
10212013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1022
1023 PR shlibs/8882
1024 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1025 link map entries.
1026
020f7036
DE
10272013-09-24 Doug Evans <dje@google.com>
1028
1029 * objfiles.c (free_objfile): Move comment.
1030
598402f0
JB
10312013-09-24 Joel Brobecker <brobecker@adacore.com>
1032
1033 * ada-exp.y (string_to_operator): Delete.
1034 (dummy_string_to_ada_operator): Delete.
1035
bf4d6c1c
JB
10362013-09-24 Joel Brobecker <brobecker@adacore.com>
1037
1038 Revert:
1039 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1040 amd64-tdep.c.
1041 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1042 call_dummy_integer_regs, and classify.
1043 * amd64-tdep.h (amd64_classify): Add declaration.
1044 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1045 (amd64_reg_class): Delete, moved to i386-tdep.h.
1046 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1047 Replace call to amd64_classify by call to tdep->classify.
1048 (amd64_push_arguments): Get the list of registers to use for
1049 passing integer parameters from the gdbarch tdep structure,
1050 rather than using a hardcoded one. Replace calls to amd64_classify
1051 by calls to tdep->classify.
1052 (amd64_push_dummy_call): Get the register number used for
1053 the "hidden" argument from tdep->call_dummy_integer_regs.
1054 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1055 and tdep->call_dummy_integer_regs. Set tdep->classify.
1056
849e9755
JB
10572013-09-24 Joel Brobecker <brobecker@adacore.com>
1058
1059 Revert:
1060 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1061 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1062 where tdep->memory_args_by_pointer is non-zero.
1063
c1459fd6
JB
10642013-09-24 Joel Brobecker <brobecker@adacore.com>
1065
1066 Revert:
1067 * i386-tdep.h (struct gdbarch_tdep): Add new field
1068 integer_param_regs_saved_in_caller_frame.
1069 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1070 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1071
20c2e3e0
JB
10722013-09-24 Joel Brobecker <brobecker@adacore.com>
1073
874440b8 1074 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1075 (amd64_windows_classify): Delete.
1076 (amd64_windows_passed_by_integer_register)
1077 (amd64_windows_passed_by_xmm_register)
1078 (amd64_windows_passed_by_pointer)
1079 (amd64_windows_adjust_args_passed_by_pointer)
1080 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1081 (amd64_windows_push_dummy_call): New functions.
1082 (amd64_windows_init_abi): Remove setting of
1083 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1084 tdep->classify, tdep->memory_args_by_pointer and
1085 tdep->integer_param_regs_saved_in_caller_frame.
1086 Add call to set_gdbarch_push_dummy_call.
1087
82bf32bc
JK
10882013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1089
1090 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1091 objfile->original_name.
1092
24ba069a
JK
10932013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1094
1095 Pass down original filename for objfile.
1096 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1097 * elfread.c (elf_symfile_read): Likewise.
1098 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1099 longer set ORIGINAL_NAME.
1100 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1101 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1102 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1103 symbol_file_add_from_bfd call.
1104 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1105 (macho_check_dsym): Add parameter filenamep. Change function comment.
1106 Set *filenamep.
1107 (macho_symfile_read): New variable dsym_filename. Update
1108 macho_check_dsym call. Use it for symbol_file_add_separate.
1109 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1110 it. Use it for objfile->original_name.
1111 (objfile_name): Return OBFD's filename, if available.
1112 * objfiles.h (allocate_objfile): Add new parameter name.
1113 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1114 * symfile-mem.c (symbol_file_add_from_memory): Update
1115 symbol_file_add_from_bfd call.
1116 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1117 comment for it.
1118 (symbol_file_add_with_addrs): New parameter name, add function comment
1119 for it. Remove variable name. Update allocate_objfile call.
1120 (symbol_file_add_separate): New parameter name, add function comment
1121 for it. Update symbol_file_add_with_addrs call.
1122 (symbol_file_add_from_bfd): New parameter name. Update
1123 symbol_file_add_with_addrs call.
1124 (symbol_file_add): Update symbol_file_add_from_bfd call.
1125 (reread_symbols): New variable original_name. Save
1126 objfile->original_name by it.
1127 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1128 second parameter.
1129
4262abfb
JK
11302013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1131
1132 Code cleanup: Add objfile_name accessor function.
1133 * ada-lang.c (is_known_support_routine): Use objfile_name.
1134 * auto-load.c (source_gdb_script_for_objfile)
1135 (auto_load_objfile_script): Likewise.
1136 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1137 * dbxread.c (dbx_symfile_read): Likewise.
1138 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1139 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1140 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1141 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1142 (lookup_dwp_signatured_type, lookup_dwo_unit)
1143 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1144 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1145 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1146 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1147 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1148 (read_subrange_type, load_partial_dies, read_partial_die)
1149 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1150 (die_containing_type, build_error_marker_type, lookup_die_type)
1151 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1152 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1153 (get_DW_AT_signature_type, write_psymtabs_to_index)
1154 (save_gdb_index_command): Likewise.
1155 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1156 Likewise.
1157 * expprint.c (dump_subexp_body_standard): Likewise.
1158 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1159 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1160 original_name.
1161 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1162 obj_name, use objfile_name for it, use the variable.
1163 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1164 Use objfile_name.
1165 * machoread.c (macho_symtab_read, macho_check_dsym)
1166 (macho_symfile_relocate): Likewise.
1167 * maint.c (maintenance_translate_address): Likewise.
1168 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1169 * minsyms.c (install_minimal_symbols): Likewise.
1170 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1171 original_name.
1172 (filter_overlapping_sections): Use objfile_name.
1173 (objfile_name): New function.
1174 * objfiles.h (struct objfile): Rename field name to original_name.
1175 (objfile_name): New prototype.
1176 * printcmd.c (sym_info, address_info): Use objfile_name.
1177 * probe.c (parse_probes, collect_probes, compare_probes)
1178 (info_probes_for_ops): Likewise.
1179 * progspace.c (clone_program_space): Likewise.
1180 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1181 (maintenance_info_psymtabs): Likewise.
1182 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1183 (source_section_scripts): Likewise.
1184 * python/py-objfile.c (objfpy_get_filename): Likewise.
1185 * python/py-progspace.c (pspy_get_filename): Likewise.
1186 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1187 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1188 * solib.c (solib_read_symbols): Likewise.
1189 * stabsread.c (scan_file_globals): Likewise.
1190 * stap-probe.c (handle_stap_probe): Likewise.
1191 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1192 (find_separate_debug_file_by_debuglink): Likewise.
1193 (reread_symbols): Likewise. Use the objfile field name renamed to
1194 original_name.
1195 (allocate_symtab): Use objfile_name.
1196 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1197 (dump_objfile, dump_msymbols, dump_symtab_1)
1198 (maintenance_print_msymbols, maintenance_print_objfiles)
1199 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1200 * target.c (target_translate_tls_address, target_info): Likewise.
1201 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1202 objfile_name.
1203
4721dc18
JK
12042013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1205
1206 Code cleanup.
1207 * probe.c (parse_probes): Rename variable objfile_name to
1208 objfile_namestr.
1209
a61d6db8
JK
12102013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1211
1212 Remove solib-sunos.c.
1213 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1214 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1215 * objfiles.c (rt_common_objfile): Remove.
1216 (free_objfile): Remove rt_common_objfile comparison.
1217 * objfiles.h (rt_common_objfile): Remove.
1218 * solib-sunos.c: Remove.
1219 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1220
2659903b
JK
12212013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1222
1223 Remove a.out NetBSD and OpenBSD hosts.
1224 * NEWS (Removed native configurations): New.
1225 * config/arm/nbsdaout.mh: Remove.
1226 * config/i386/nbsdaout.mh: Remove.
1227 * config/i386/obsdaout.mh: Remove.
1228 * config/m68k/nbsdaout.mh: Remove.
1229 * config/sparc/nbsdaout.mh: Remove.
1230 * config/vax/nbsdaout.mh: Remove.
1231 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1232 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1233 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1234 error.
1235 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1236 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1237 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1238
f60e2d5c
TT
12392013-09-23 Tom Tromey <tromey@redhat.com>
1240
1241 * linespec.c (struct minsym_and_objfile): Remove.
1242 (minsym_and_objfile_d): Remove.
1243 (struct linespec, struct collect_info, linespec_parse_basic)
1244 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1245 (compare_msymbols, find_method, find_function_symbols)
1246 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1247 (add_minsym, search_minsyms_for_name): Update.
1248
d3eaaf66
AB
12492013-09-23 Andrew Burgess <aburgess@broadcom.com>
1250
1251 * regcache.c: Add include of valprint.h.
1252 (dump_endian_bytes): Delete.
1253 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1254
2cc762b5
AB
12552013-09-23 Andrew Burgess <aburgess@broadcom.com>
1256
1257 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1258
96181529
PA
12592013-09-19 Pedro Alves <palves@redhat.com>
1260
1261 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1262 breakpoints.
1263
9b3f3ee6
TS
12642013-09-19 Pedro Alves <palves@redhat.com>
1265 Thomas Schwinge <thomas@codesourcery.com>
1266 Yue Lu <hacklu.newborn@gmail.com>
1267
1268 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1269 Take a gdb_byte pointer instead of a char pointer.
1270
1271 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1272 gnu_xfer_partial helper.
1273 (gnu_xfer_partial): New function.
1274 (gnu_target): Don't install a deprecated_xfer_memory hook.
1275 Install a to_xfer_partial hook.
1276
69150c3d
JK
12772013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1278
1279 Constification.
1280 * main.c (captured_main): Replace catch_command_errors by
1281 catch_command_errors_const. Twice.
1282 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1283 (symbol_file_add): Make name parameter const.
1284 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1285 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1286 variable name. Change their usage accordingly.
1287 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1288 const.
1289 (symbol_file_add_main): Make args parameter const.
1290
086850b2
UW
12912013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1292 Ulrich Weigand <uweigand@de.ibm.com>
1293
1294 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1295 of c_value member.
1296 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1297
ca08a94c 12982013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1299 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1300
1301 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1302 (gnu_create_inferior)
1303 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1304 (set_sig_thread_cmd): Use the lwpid field of ptids to
1305 store/extract thread ids instead of the tid field.
1306 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1307
e4c6a2c4
AB
13082013-09-18 Andrew Burgess <aburgess@broadcom.com>
1309
1310 * infcmd.c (default_print_one_register_info): Add detection of
1311 optimized out values.
1312 (default_print_registers_info): Switch to using
1313 get_frame_register_value.
1314
58c48e72
MM
13152013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1316
1317 * infrun.c (handle_inferior_event): Check if we know the
1318 function start address before setting a resume breakpoint.
1319
c8d37639
PA
13202013-09-18 Pedro Alves <palves@redhat.com>
1321
1322 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1323 minus_one_ptid instead of looking at the ptid's tid field and
1324 comparing that to -1.
1325
71926e28
AB
13262013-09-18 Andrew Burgess <aburgess@broadcom.com>
1327
1328 * main.h (get_gdb_program_name): Remove extra whitespace.
1329
c88a1531
AB
13302013-09-18 Andrew Burgess <aburgess@broadcom.com>
1331
1332 * main.h (get_gdb_program_name): Add declaration.
1333 * main.c (get_gdb_program_name): Add definition.
1334
4390d890
DE
13352013-09-17 Doug Evans <dje@google.com>
1336
1337 * dwarf2read.c: Move definitions of complaint functions to after
1338 forward declarations of local functions.
1339
49fa26b0
PA
13402013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1341 Pedro Alves <palves@redhat.com>
1342
1343 PR gdb/11568
1344 * breakpoint.c (remove_threaded_breakpoints): New function.
1345 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1346 as thread_exit observer.
1347
08d72866
PA
13482013-09-17 Pedro Alves <palves@redhat.com>
1349
1350 PR gdb/15911
1351 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1352 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1353 * corelow.c (core_open):
1354 * frame.h (print_stack_frame, print_frame_info): New
1355 'set_current_sal' parameter.
1356 * infcmd.c (finish_command, kill_command): Adjust call to
1357 print_stack_frame.
1358 * inferior.c (inferior_command): Likewise.
1359 * infrun.c (normal_stop): Likewise.
1360 * linux-fork.c (linux_fork_context): Likewise.
1361 * record-full.c (record_full_goto_entry, record_full_restore):
1362 Likewise.
1363 * remote-mips.c (common_open): Likewise.
1364 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1365 Use it.
1366 (print_frame_info): New 'set_current_sal' parameter. Set the last
1367 displayed sal depending on the new paremeter instead of looking at
1368 print_what.
1369 (backtrace_command_1, select_and_print_frame, frame_command)
1370 (current_frame_command, up_command, down_command): Adjust call to
1371 print_stack_frame.
1372 * thread.c (print_thread_info, restore_selected_frame)
1373 (do_captured_thread_select): Adjust call to print_stack_frame.
1374 * tracepoint.c (tfind_1): Likewise.
1375 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1376 (mi_cmd_stack_info_frame): Likewise.
1377 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1378 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1379
6bc305f5
SDJ
13802013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1381
1382 * value.c (isvoid_internal_fn): Replace "parameter" with
1383 "argument".
1384
0a7cfe2c
SS
13852013-09-16 Stan Shebs <stan@codesourcery.com>
1386
1387 * README: Update references to writing code for GDB.
1388 * configure.ac (build_warnings): Remove obsolete comment.
1389 * configure: Regenerate.
1390 * gdbarch.sh: Remove references to gdbint.texinfo.
1391 * gdbarch.h: Regenerate.
1392 * gdbtypes.c (objfile_type): Remove comments referencing internals
1393 manual and D10V.
1394
a280dbd1
SDJ
13952013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1396
1397 * NEWS: Mention new convenience function $_isvoid.
1398 * value.c (isvoid_internal_fn): New function.
1399 (_initialize_values): Add new convenience function $_isvoid.
1400
04a83fee
PM
14012013-09-16 Pierre Muller <muller@sourceware.org>
1402
1403 * arm-linux-tdep.c: Add "elf/common.h" header.
1404 Remove AT_HWCAP macro definintion as it is provided in
1405 added include file.
1406 * s390-tdep.c: Remove system header <elf.h>
1407 Add "elf/common.h" header for AT_HWCAP definition.
1408 (s390_core_read_description): Use correct CORE_ADDR
1409 for hwcap local variable used as third parameter
1410 of function target_auxv_search.
1411
88505fac
PM
14122013-09-14 Pierre Muller <muller@sourceware.org>
1413 Tom Tromey <tromey@redhat.com>
1414 Pedro Alves <palves@redhat.com>
1415
1416 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1417 mode if operating system doesn't know O_CLOEXEC.
1418
d3846e71
JK
14192013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 Code cleanup.
1422 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1423 inner block.
1424
4ac33720
UW
14252013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1426
1427 * NEWS: Mention TDB support.
1428 * features/s390-tdb.xml: New file.
1429 * features/s390-te-linux64.xml: New file.
1430 * features/s390x-te-linux64.xml: New file.
1431 * features/Makefile (WHICH): Add new tdescs above.
1432 (s390-te-linux64-expedite): Set.
1433 (s390x-te-linux64-expedite): Set.
1434 * features/s390-te-linux64.c: New file (generated).
1435 * features/s390x-te-linux64.c: New file (generated).
1436 * regformats/s390-te-linux64.dat: New file (generated).
1437 * regformats/s390x-te-linux64.dat: New file (generated).
1438 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1439 (HWCAP_S390_TE): Likewise.
1440 (S390_TDB_DWORD0_REGNUM): Likewise.
1441 (S390_TDB_DWORD0_REGNUM): Likewise.
1442 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1443 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1444 (S390_TDB_ATIA_REGNUM): Likewise.
1445 (S390_TDB_R0_REGNUM): Likewise.
1446 (S390_TDB_R1_REGNUM): Likewise.
1447 (S390_TDB_R2_REGNUM): Likewise.
1448 (S390_TDB_R3_REGNUM): Likewise.
1449 (S390_TDB_R4_REGNUM): Likewise.
1450 (S390_TDB_R5_REGNUM): Likewise.
1451 (S390_TDB_R6_REGNUM): Likewise.
1452 (S390_TDB_R7_REGNUM): Likewise.
1453 (S390_TDB_R8_REGNUM): Likewise.
1454 (S390_TDB_R9_REGNUM): Likewise.
1455 (S390_TDB_R10_REGNUM): Likewise.
1456 (S390_TDB_R11_REGNUM): Likewise.
1457 (S390_TDB_R12_REGNUM): Likewise.
1458 (S390_TDB_R13_REGNUM): Likewise.
1459 (S390_TDB_R14_REGNUM): Likewise.
1460 (S390_TDB_R15_REGNUM): Likewise.
1461 (S390_NUM_REGS): Increase.
1462 (S390_IS_TDBREGSET_REGNUM): New macro.
1463 (s390_regmap_tdb): Declare.
1464 (s390_sizeof_tdbregset): Define.
1465 (tdesc_s390_te_linux64): Declare.
1466 (tdesc_s390x_te_linux64): Likewise.
1467 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1468 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1469 (s390_regmap_tdb): New regmap.
1470 (s390_supply_tdb_regset): New function.
1471 (s390_tdb_regset): New regset.
1472 (s390_linux64v2_regset_sections): Add TDB regset to list.
1473 (s390x_linux64v2_regset_sections): Likewise.
1474 (s390_regset_from_core_section): Recognize TDB core note section.
1475 (s390_core_read_description): If HWCAP indicates TE support,
1476 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1477 (s390_gdbarch_init): Handle TDB regset.
1478 (_initialize_s390_tdep): Initialize new tdescs.
1479 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1480 (have_regset_tdb): New variable.
1481 (s390_native_supply): Support register invalidation.
1482 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1483 (check_regset): Treat ENODATA as "regset exists".
1484 (s390_linux_fetch_inferior_registers): Add TDB.
1485 (s390_read_description): Check for TDB existence and select
1486 appropriate tdesc.
1487 * gdbserver/Makefile.in (clean): Add removal of new makefile
1488 targets.
1489 (s390-te-linux64.c): New makefile target.
1490 (s390x-te-linux64.c): Likewise.
1491 * gdbserver/configure.srv (srv_regobj): Append new objects
1492 s390-te-linux64.o and s390x-te-linux64.o.
1493 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1494 s390x-te-linux64.xml, and s390-tdb.xml.
1495 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1496 declaration.
1497 (tdesc_s390_te_linux64): Likewise.
1498 (init_registers_s390x_te_linux64): Likewise.
1499 (tdesc_s390x_te_linux64): Likewise.
1500 (s390_check_regset): Treat ENODATA as "regset exists".
1501 (s390_arch_setup): Add TDB regset support.
1502 (initialize_low_arch): Initialize registers for new tdescs.
1503
2ccd1468
UW
15042013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1505
1506 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1507 (S390_IS_FPREGSET_REGNUM): New macro.
1508 * s390-tdep.c (s390_dwarf_regmap): Make const.
1509 (regnum_is_gpr_full): New function for replacing repeated code.
1510 (s390_pseudo_register_name): Use it.
1511 (s390_pseudo_register_type): Likewise.
1512 (s390_pseudo_register_read): Likewise.
1513 (s390_pseudo_register_write): Likewise.
1514 (s390_unwind_pseudo_register): Likewise.
1515 (s390_regmap_gregset): New format for regmap.
1516 (s390x_regmap_gregset): Likewise.
1517 (s390_regmap_fpregset): Likewise.
1518 (s390_regmap_upper): Likewise.
1519 (s390_regmap_last_break): Likewise.
1520 (s390_regmap_system_call): Likewise.
1521 (s390_supply_regset): Adjust to new regmap format.
1522 (s390_collect_regset): Likewise.
1523 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1524 (s390_native_collect): Likewise.
1525 (supply_gregset): Likewise.
1526 (fill_gregset): Likewise.
1527 (supply_fpregset): Likewise.
1528 (fill_fpregset): Likewise.
1529 (fetch_regset): Likewise.
1530 (store_regset): Likewise.
1531 (s390_linux_fetch_inferior_registers): Likewise.
1532 (s390_linux_fetch_inferior_registers): Likewise.
1533
1aa4cd77
AP
15342013-09-12 Andrew Pinski <apinski@cavium.com>
1535
1536 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1537
d91fab15
UW
15382013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1539
1540 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1541
5a5d8ead
AB
15422013-09-09 Andrew Burgess <aburgess@broadcom.com>
1543
1544 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1545
1385f66c
PA
15462013-09-06 Pedro Alves <palves@redhat.com>
1547
1548 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1549 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1550 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1551 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1552 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1553 gdb_stdlog.
1554
146ec4db
PA
15552013-09-06 Pedro Alves <palves@redhat.com>
1556
1557 * remote-sim.c (dump_mem): Constify buf parameter.
1558 gdbsim_xfer_inferior_memory): Rename to ...
1559 (gdbsim_xfer_memory): ... this. Adjust interface as
1560 target_xfer_partial helper.
1561 (gdbsim_xfer_partial): New function.
1562 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1563 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1564
fcde0081
PA
15652013-09-06 Pedro Alves <palves@redhat.com>
1566
1567 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1568 host_address_to_string, and send debug output to gdb_stdlog.
1569
749c8b38
RW
15702013-09-06 Ricard Wanderlof <ricardw@axis.com>
1571
1572 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1573 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1574 gdb_target_obs for cris target.
1575 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1576 (cris_gdbarch_init): Move calls to
1577 set_gdbarch_fetch_tls_load_module_address and
1578 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1579 Add call to gdbarch_init_osabi.
1580 * cris-linux-tdep.c: New file.
1581 * cris-tdep.h: New file.
1582
43df09d9
AB
15832013-09-06 Andrew Burgess <aburgess@broadcom.com>
1584
1585 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1586 to deprecated_init_ui_hook.
1587
4d09c5b4
AB
15882013-09-06 Andrew Burgess <aburgess@broadcom.com>
1589
1590 * cli/cli-interp.c (_initialize_cli_interp): Add a
1591 command_loop_proc to interp_procs.
1592 * event-top.c (cli_command_loop): Change signature to match
1593 interp_command_loop_ftype.
1594 * event-top.h (cli_command_loop): Same.
1595 * interps.c (interp_new): Require every interpreter to have a
1596 command_loop_proc.
1597 (current_interp_command_loop): Just call the command_loop_proc on
1598 the current interpreter.
1599 * tui/tui-interp.c (_initialize_tui_interp): Add a
1600 command_loop_proc to interp_procs.
1601
8eb3d7b6
RW
16022013-09-06 Ricard Wanderlof <ricardw@axis.com>
1603
1604 * cris-tdep.c (cris_gdbarch_init): Add call to
1605 get_gdbarch_fetch_tls_load_module_address.
1606
18b3c2f5
RW
16072013-09-06 Ricard Wanderlof <ricardw@axis.com>
1608
1609 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1610 (cris_elf_gregset_t): Rename from elf_gregset_t.
1611 (crisv32_elf_gregset_t): Adjust.
1612 (cris_supply_gregset, fetch_core_registers): Adjust.
1613
dc8636ef
RW
16142013-09-06 Ricard Wanderlof <ricardw@axis.com>
1615
1616 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1617
257e6d53
AB
16182013-09-05 Andrew Burgess <aburgess@broadcom.com>
1619
1581d8a7 1620 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1621 references in comments.
1581d8a7 1622 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1623 deprecated_command_loop_hook.
1624 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1625 setup.
1581d8a7 1626 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1627
7c33b57c
PA
16282013-09-05 Pedro Alves <palves@redhat.com>
1629
1630 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1631 local is now int instead of ULONGEST. Print it with %d
1632 instead of paddress.
1633
9f8edbd5
TG
16342013-09-05 Tristan Gingold <gingold@adacore.com>
1635
1636 * MAINTAINERS: Remove avr maintainership.
1637
d5b495b4
PA
16382013-09-05 Pedro Alves <palves@redhat.com>
1639
1640 * findvar.c (value_of_register): Rework in terms of
1641 value_of_register_lazy.
1642
40b91786
MB
16432013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1644
1645 * symfile.c (add_symbol_file_command): Remove trailing
1646 whitespaces and blank line after comment.
1647
6eed1678
PA
16482013-09-05 Pedro Alves <palves@redhat.com>
1649
1650 * tui/tui-regs.c (tui_register_format): Don't look at the
1651 register's name here. Return string representing register
1652 value instead of storing it in the data element.
1653 (tui_get_register): Compare register string representations
1654 instead of register value states and contents.
1655
8eb6bda2
PA
16562013-09-05 Pedro Alves <palves@redhat.com>
1657
1658 PR tui/15933
1659 * tui/tui-regs.c (tui_show_registers): Show registers of the
1660 selected frame, not the current frame.
1661
48b1f08c
RW
16622013-09-05 Ricard Wanderlof <ricardw@axis.com>
1663
1664 * MAINTAINERS (Write After Approval): Add myself to the list.
1665
89e63ee4
DE
16662013-09-04 Doug Evans <dje@google.com>
1667
1668 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1669 (queue_and_load_dwo_tu): New function.
1670 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1671 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1672 Make dependent_cu optional.
1673 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1674 and an older .gdb_index is in use, queue and load all its TUs too.
1675
492c0ab7
JK
16762013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1677
1678 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1679 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1680 variable search_flags.
1681 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1682 (OPF_RETURN_REALPATH): ... here.
1683 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1684 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1685 call. Twice.
1686 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1687 openp call.
1688 * solib.c (solib_find): Likewise. Four times.
1689 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1690 in the function comment and for the realpath_fptr variable.
1691 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1692 (find_and_open_source): Likewise. Twice.
1693 * symfile.c (symfile_bfd_open): Likewise, also twice.
1694
23a44de8
DE
16952013-09-04 Doug Evans <dje@google.com>
1696
1697 * progspace.c (save_current_space_and_thread): Remove unnecessary
1698 call to save_current_inferior.
1699
47061676
AB
17002013-09-04 Andrew Burgess <aburgess@broadcom.com>
1701
1702 * sh64-tdep.c (sh64_do_register): Return after printing message
1703 about unavailable register contents.
1704
41dc8db8
MB
17052013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1706 Pedro Alves <palves@redhat.com>
1707
1708 * symfile.c (add_symbol_file_command): Error out on unknown
1709 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1710 options and collapse into single conditional branch.
1711
07107ca6
LM
17122013-09-03 Luis Machado <lgustavo@codesourcery.com>
1713
a7ea61cf 1714 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1715 detach_fork.
1716 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1717 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1718 * inferior.h (detach_fork): Remove.
1719 * infrun.c (detach_fork): Adjust comment and make it
1720 static.
1721 (follow_fork): Pass detach_fork parameter to
1722 target_follow_fork.
1723 * linux-nat.c (linux_child_follow_fork): New parameter
1724 detach_fork.
1725 * target.c (target_follow_fork): New parameter detach_fork.
1726 Pass detach_fork as parameter and print its value.
1727 * target.h (struct target_ops) <to_follow_fork>: New int
1728 parameter.
1729 (target_follow_fork): New parameter detach_fork.
1730
3bec2768
JB
17312013-09-03 Joel Brobecker <brobecker@adacore.com>
1732
1733 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1734 Replace sec->bfd by sec->the_bfd_section->owner.
1735
c01cbb3d
YQ
17362013-09-03 Yao Qi <yao@codesourcery.com>
1737
1738 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1739 from linux_has_shared_address_space.
1740 (linux_has_shared_address_space): Call linux_is_uclinux.
1741 * linux-tdep.h (linux_is_uclinux): Declare.
1742 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1743 linux_is_uclinux.
1744
7b00db47
YQ
17452013-09-03 Yao Qi <yao@codesourcery.com>
1746
1747 * config/djgpp/fnchange.lst: Remove entry of
1748 i386-interix-nat.c and i386-interix-tdep.c.
1749 * configure.ac: Remove '*-*-interix*'.
1750 * configure: Re-generated.
1751 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1752 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1753 obsolete comments.
1754 * osabi.c (gdb_osabi_names): Remove "Interix".
1755
0f9741f2
YQ
17562013-09-03 Yao Qi <yao@codesourcery.com>
1757
1758 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1759
1e038f67
MM
17602013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1761
1762 * record.h (record_print_flag) <record_print_src_line,
1763 record_print_insn_range>: Rename into ...
1764 (record_print_flag) <record_print_src_line,
1765 record_print_insn_range>: ... this. Update all users.
1766
9e52adf9
PM
17672013-09-02 Pierre Muller <muller@sourceware.org>
1768
1769 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1770 error code.
1771
a2388568
PM
17722013-09-02 Pierre Muller <muller@sourceware.org>
1773
1774 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1775 by use of plongest function.
1776
9058cc3a
TG
17772013-09-02 Tristan Gingold <gingold@adacore.com>
1778
1779 * NEWS: Add entry mentioning support for native Windows x64
1780 SEH data.
1781
1782 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1783 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1784 (struct amd64_windows_frame_cache): New struct.
1785 (amd64_windows_w2gdb_regnum): New global.
1786 (pc_in_range, amd64_windows_frame_decode_epilogue)
1787 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1788 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1789 (amd64_windows_frame_this_id): New functions.
1790 (amd64_windows_frame_unwind): New static global.
1791 (amd64_windows_skip_prologue): New function.
1792 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1793 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1794 with amd64_windows_skip_prologue.
1795
3161820b 17962013-08-30 Joel Brobecker <brobecker@adacore.com>
1797
1798 GDB 7.6.1 released.
1799
02457c76
PA
18002013-08-30 Pedro Alves <palves@redhat.com>
1801
1802 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1803 SRC_AND_LOC.
1804
e0162910
PA
18052013-08-30 Pedro Alves <palves@redhat.com>
1806
1807 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1808 warning text.
1809
6391ce51
PA
18102013-08-30 Pedro Alves <palves@redhat.com>
1811
1812 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1813 Adjust arguments to print_stack_frame.
1814
d1da0587
PA
18152013-08-30 Pedro Alves <palves@redhat.com>
1816
1817 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1818
adfd8245
PA
18192013-08-30 Pedro Alves <palves@redhat.com>
1820
1821 * frame.h (show_and_print_stack_frame): Delete declaration.
1822
96d9056e
PM
18232013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1824
1825 PR python/15461
1826
1827 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1828 (archpy_name): Check for valid architecture.
1829 (archpy_disassemble): Ditto.
1830
11cb8762
JB
18312013-08-29 Joel Brobecker <brobecker@adacore.com>
1832
1833 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1834 instead of "long long" in call to ptrace64.
1835
1af12a7d
AB
18362013-08-29 Andrew Burgess <aburgess@broadcom.com>
1837
1838 * mi/mi-interp.c (mi_command_loop): Change signature to match
1839 interp_command_loop_ftype.
1840 (mi1_command_loop): Remove.
1841 (mi2_command_loop): Remove.
1842 (mi3_command_loop): Remove.
1843 (mi_interpreter_resume): Remove setting of
1844 deprecated_command_loop_hook.
1845 (_initialize_mi_interp): Set mi_command_loop as the command loop
1846 callback.
1847
acc900c2
SA
18482013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1849
1850 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1851 value_type.
1852
548b762d
SA
18532013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1854
1855 * value.c (allocate_value_contents): Make static.
1856 * value.h (allocate_value_contents): Remove prototype.
1857
08039c9e
SA
18582013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1859
1860 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1861 of assembling value via allocate_value_lazy and attribute setter.
1862 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1863 assembling value via allocate_value_lazy and attribute setter.
1864 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1865 assembling value via allocate_value_lazy and attribute setter.
1866
314c7de9
SA
18672013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1868
1869 * value.c (value_from_contents_and_address): Replace allocate_value and
1870 memcpy with value_from_contents.
1871
8f28f522
PM
18722013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1873
1874 * python/py-framefilter.c (py_print_frame): Remove usage of
1875 PyString_AsString. Use python_string_to_host_string instead.
1876 Refactor function to work with a string as a new allocation
1877 instead of a pointer.
1878 (py_print_frame): Ditto.
1879 * python/lib/gdb/frames.py (return_list): Cain iterators together
1880 instead of adding them as a list.
1881 (_sort_list): Call return_list, and remove duplicate code.
1882 (execute_frame_filters): Convert iterator to a list with list().
1883 * python/lib/gdb/command/frame_filters.py
1884 (SetFrameFilterPriority._set_filter_priority): Convert priority
1885 attribute to an integer.
1886 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1887 wrapper function __next__.
1888 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1889 define as "str".
1890
8ee002df
PM
18912013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1892
1893 PR python/15752
8ee002df
PM
1894 * python/py-framefilter.c (apply_frame_filter): Check
1895 gdb_python_initialized. Exit if the Python frame-filter code
1896 cannot be initialized.
1897
af4c453a
PM
18982013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1899
1900 PR cli/15842
af4c453a
PM
1901 * top.c (print_gdb_version): Remove erroneous newline after help
1902 text.
1903
bf8793bb
YQ
19042013-08-29 Yao Qi <yao@codesourcery.com>
1905
1906 * varobj.c (install_dynamic_child): Remove trailing space.
1907 Add one blank line after variable declaration.
1908
1f0c4988
JK
19092013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1910
1911 PR gdb/15415
1912 * corefile.c (get_exec_file): Use exec_filename.
1913 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1914 * exec.c (exec_close): Free EXEC_FILENAME.
1915 (exec_file_attach): New variable canonical_pathname. Use
1916 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1917 EXEC_FILENAME.
1918 * exec.h (exec_filename): New.
1919 * inferior.c (print_inferior, inferior_command): Use
1920 PSPACE_EXEC_FILENAME.
1921 * mi/mi-main.c (print_one_inferior): Likewise.
1922 * progspace.c (clone_program_space, print_program_space): Likewise.
1923 * progspace.h (struct program_space): New field pspace_exec_filename.
1924 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1925 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1926
59ee9f94
WN
19272013-08-28 Will Newton <will.newton@linaro.org>
1928
1929 * common/linux-ptrace.c: Include stdint.h unconditionally.
1930
c8a2a419
JK
19312013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1932
1933 Code cleanup.
1934 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1935
ffa4ac95
YQ
19362013-08-28 Yao Qi <yao@codesourcery.com>
1937 Pedro Alves <palves@redhat.com>
1938
1939 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1940 instead of stdio_fileopen.
1941 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1942 .Call stderr_fileopen instead of stdio_fileopen.
1943 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1944 [__MINGW32__] (stderr_file_fputs): New function.
1945 (stderr_fileopen): New function.
1946 * ui-file.h (stderr_fileopen): Declare.
1947
69d751e3
DE
19482013-08-27 Doug Evans <dje@google.com>
1949
1950 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1951 (struct dwarf2_per_cu_data): Ditto.
1952 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1953 (process_imported_unit_die): Ditto.
1954 (follow_die_sig_1): Simplify assert.
1955
44f38867
PA
19562013-08-27 Pedro Alves <palves@redhat.com>
1957
1958 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1959 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1960 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1961 windows_xfer_memory directly.
1962 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1963
d28d46b5
PA
19642013-08-27 Pedro Alves <palves@redhat.com>
1965
1966 * darwin-nat.c (darwin_xfer_memory): Delete.
1967 (_initialize_darwin_inferior): Don't install a
1968 deprecated_xfer_memory method.
1969
6211c335
YQ
19702013-08-27 Pedro Alves <pedro@codesourcery.com>
1971 Yao Qi <yao@codesourcery.com>
1972
1973 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1974 (parse_no_frames_option): Remove.
1975 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1976 (mi_cmd_stack_list_args): Adjust.
1977 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1978 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1979 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1980 Caller update.
1981 (list_args_or_locals): New parameter 'skip_unavailable'.
1982 Handle it.
1983 * valprint.c (scalar_type_p): Rename to ...
1984 (val_print_scalar_type_p): ... this. Make extern.
1985 (val_print, value_check_printable): Adjust.
1986 * valprint.h (val_print_scalar_type_p): Declare.
1987 * value.c (value_entirely_unavailable): New function.
1988 * value.h (value_entirely_unavailable): Declare.
1989
1990 * NEWS: Mention the new option "--skip-unavailable" to MI
1991 commands '-stack-list-locals', '-stack-list-arguments' and
1992 '-stack-list-variables'.
1993
242f1fd7
YQ
19942013-08-27 Yao Qi <yao@codesourcery.com>
1995
1996 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1997 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1998 options.
1999 * mi/mi-getopt.c (mi_getopt): Remove.
2000 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2001 'error_on_unknown'.
2002 (mi_getopt): Call mi_getopt_1.
2003 (mi_getopt_silent): New.
2004 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2005
260b681b
DE
20062013-08-26 Doug Evans <dje@google.com>
2007
779bd270
DE
2008 PR symtab/15885
2009 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2010 .gdb_index is in use.
2011 * symfile.c (reread_symbols): Reset objfile->sf.
2012
52e260a3
DE
2013 * NEWS: Document "mt print objfiles" now takes optional regexp.
2014 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2015 regexp of objfiles to print.
2016 (_initialize_symmisc): Update doc string for "mt print objfiles".
2017
260b681b
DE
2018 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2019 missing debug info checks.
2020
a85c52f2
UW
20212013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2022 Ulrich Weigand <uweigand@de.ibm.com>
2023
2024 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2025 line tables generated by XLC compiled binaries.
2026
4f00dda3
DE
20272013-08-23 Doug Evans <dje@google.com>
2028
db68bbae
DE
2029 * symmisc.c (dump_symtab): Delete prototype.
2030 (dump_msymbols, dump_objfile): Ditto.
2031 (maintenance_info_symtabs): Mark as dont_repeat.
2032 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2033
4f00dda3
DE
2034 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2035 debugging printf to better location.
2036
23d577b0
PA
20372013-08-23 Pedro Alves <palves@redhat.com>
2038
2039 * target.c (target_read_live_memory): Change type of 'ret' local
2040 to LONGEST.
2041
00d84524
PA
20422013-08-23 Pedro Alves <palves@redhat.com>
2043
2044 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2045 (remote_read_bytes): Change return type to LONGEST, and adjust to
2046 return a target_xfer_error on error.
2047 (remote_xfer_memory): Delete.
2048 (remote_flash_write): Change type of 'ret' local to LONGEST.
2049 (remote_xfer_partial, remote_xfer_partial): Adjust.
2050 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2051
1ed3ee94
PM
20522013-08-23 Pierre Muller <muller@sourceware.org>
2053
2054 ARI fix: Push # directives to start of line.
2055 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2056
9eaabc75
MW
20572013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2058
2059 PR gdb/15501
2060 * breakpoint.c (enable_command, disable_command): Iterate over
2061 all specified breakpoint locations.
2062
101158d9
LM
20632013-08-22 Luis Machado <lgustavo@codesourcery.com>
2064
2065 * common/linux-ptrace.c (linux_fork_to_function): Push #
2066 directives to the start of the line.
2067 (linux_check_ptrace_features): Fix warning message to use
2068 the "_" markup.
2069
96d7229d
LM
20702013-08-22 Luis Machado <lgustavo@codesourcery.com>
2071
2072 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2073 nat/linux-waitpid.h.
2074 (linux-waitpid.o): New object file rule.
2075 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2076 (current_ptrace_options): Moved from linux-nat.c.
2077 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2078 parameters.
2079 (linux_fork_to_function): New function.
2080 (linux_grandchild_function): Likewise.
2081 (linux_child_function): Likewise.
2082 (linux_check_ptrace_features): New function, heavily
2083 based on linux-nat.c:linux_test_for_tracefork.
2084 (linux_enable_event_reporting): New function.
2085 (ptrace_supports_feature): Likewise.
2086 (linux_supports_tracefork): Likewise.
2087 (linux_supports_traceclone): Likewise.
2088 (linux_supports_tracevforkdone): Likewise.
2089 (linux_supports_tracesysgood): Likewise.
2090 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2091 gdbserver/linux-low.c.
2092 (linux_enable_event_reporting): New declaration.
2093 (linux_supports_tracefork): Likewise.
2094 (linux_supports_traceclone): Likewise.
2095 (linux_supports_tracevforkdone): Likewise.
2096 (linux_supports_tracesysgood): Likewise.
2097 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2098 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2099 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2100 * config/arm/linux.mh (NATDEPFILES): Likewise.
2101 * config/i386/linux.mh (NATDEPFILES): Likewise.
2102 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2103 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2104 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2105 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2106 * config/mips/linux.mh (NATDEPFILES): Likewise.
2107 * config/pa/linux.mh (NATDEPFILES): Likewise..
2108 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2109 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2110 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2111 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2112 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2113 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2114 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2115 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2116 ptrace's 4th argument's types.
2117 Check the type of PTRACE_TYPE_ARG4.
2118 * configure: Regenerate.
2119 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2120 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2121 (linux_supports_tracefork_flag): Remove.
2122 (linux_supports_tracesysgood_flag): Likewise.
2123 (linux_supports_tracevforkdone_flag): Likewise.
2124 (current_ptrace_options): Moved to
2125 common/linux-ptrace.c.
2126 (linux_tracefork_child): Remove.
2127 (my_waitpid): Remove.
2128 (linux_test_for_tracefork): Renamed to
2129 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2130 (linux_test_for_tracesysgood): Remove.
2131 (linux_supports_tracesysgood): Remove.
2132 (linux_supports_tracefork): Remove.
2133 (linux_supports_tracevforkdone): Remove.
2134 (linux_enable_tracesysgood): Remove.
2135 (linux_enable_event_reporting): Remove.
2136 (linux_init_ptrace): New function.
2137 (linux_child_post_attach): Call linux_init_ptrace.
2138 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2139 (linux_child_follow_fork): Call linux_supports_tracefork
2140 and linux_supports_tracevforkdone.
2141 (linux_child_insert_fork_catchpoint): Call
2142 linux_supports_tracefork.
2143 (linux_child_insert_vfork_catchpoint): Likewise.
2144 (linux_child_set_syscall_catchpoint): Call
2145 linux_supports_tracesysgood.
2146 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2147 * nat/linux-nat.h: New file.
2148 * nat/linux-waitpid.c: New file.
2149 * nat/linux-waitpid.h: New file.
2150
9f948660
SDJ
21512013-08-22 Samuel Bronson <naesten@gmail.com>
2152
2153 ARM Linux support for `catch syscall'.
2154 * syscalls/arm-linux.py: New file.
2155 * syscalls/arm-linux.xml: Likewise.
2156 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2157 (arm_linux_init_abi): Register the new function and syscall xml file.
2158 * data-directory/Makefile.in: Install the new syscall xml file.
2159 * NEWS: Brag about this.
2160
6be7b56e
PA
21612013-08-22 Pedro Alves <palves@redhat.com>
2162
2163 PR gdb/15871
2164 * corefile.c (target_xfer_memory_error): New function.
2165 (memory_error): Defer EIO to target_memory_error.
2166 (read_memory): Use target_xfer_partial, and handle finer-grained
2167 target xfer errors.
2168 * target.c (target_xfer_error_to_string): New function.
2169 (memory_xfer_partial_1): If memory is known to be
2170 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2171 (target_xfer_partial): Make extern.
2172 * target.h (enum target_xfer_error): New enum.
2173 (target_xfer_error_to_string): Declare function.
2174 (target_xfer_partial): Declare function.
2175 (struct target_ops) <xfer_partial>: Adjust describing comment.
2176
bcbec14e
AM
21772013-08-22 Alan Modra <amodra@gmail.com>
2178
2179 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2180 * configure.tgt: Likewise as targets.
2181
fc474241
DE
21822013-08-20 Doug Evans <dje@google.com>
2183
2184 * buildsym.c (subfile_stack): Move here from buildsym.h.
2185 (pending_macros): Ditto.
2186 (get_macro_table): New function.
2187 (buildsym_init): Initialize subfile_stack.
2188 * coffread.c (type_vector,type_vector_length): Moved here from
2189 buildsym.h.
2190 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2191 (coff_symtab_read): Use it.
2192 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2193 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2194 with call to get_macro_table.
2195 * stabsread.c (type_vector,type_vector_length): Moved here from
2196 buildsym.h.
2197 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2198 * buildsym.h (get_macro_table): Declare.
2199
bec71544
TT
22002013-08-20 Tom Tromey <tromey@redhat.com>
2201
2202 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2203 Update.
2204 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2205
0002ad5f
DE
22062013-08-20 Doug Evans <dje@google.com>
2207
2208 * blockframe.c: Remove #include "psymtab.h".
2209 * cp-support.c: Ditto.
2210 * source.c: Ditto.
2211 * stack.c: Ditto.
2212
df302446
TT
22132013-08-20 Tom Tromey <tromey@redhat.com>
2214
2215 PR python/15816:
2216 * exceptions.h (return_mask): Now an enum.
2217 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2218 enum constants.
2219
df6d5441
TT
22202013-08-20 Tom Tromey <tromey@redhat.com>
2221
2222 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2223 get_objfile_arch.
2224 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2225 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2226 * jit.c (jit_object_close_impl): Update.
2227 * jv-lang.c (get_dynamics_objfile): Update.
2228 * linespec.c (add_minsym): Use get_dynamics_objfile.
2229 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2230 (allocate_objfile): Don't initialize 'gdbarch' field.
2231 (get_objfile_arch): Update.
2232 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2233 moved from...
2234 (struct objfile) <gdbarch>: ... here. Remove.
2235 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2236 get_objfile_arch.
2237 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2238
f5aee5ee
AM
22392013-08-20 Alan Modra <amodra@gmail.com>
2240
2241 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2242 for IBM long double nan and inf.
2243 (floatformat_is_negative, floatformat_classify,
2244 floatformat_mantissa): Similarly.
2245 (floatformat_ieee_single, floatformat_ieee_double,
2246 floatformat_ieee_quad, floatformat_arm_ext,
2247 floatformat_ia64_spill): Delete unused vars.
2248 (_initialize_doublest): Delete unused function.
2249 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2250 little-endian variants of floatformat_ibm_long_double.
2251
33b60d58 22522013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2253
33b60d58
LM
2254 * Makefile.in (SFILES): Remove common/target-common.c and
2255 add target/waitstatus.c.
2256 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2257 target/resume.h, target/wait.h and target/waitstatus.h.
2258 (COMMON_OBS): Remove target-common.o and add
2259 waitstatus.o.
2260 (target-common.o): Remove.
2261 (waitstatus.o): New target object file.
2262 * common/target-common.c: Move contents to
2263 target/waitstatus.c and remove.
2264 * common/target-common.h: Move contents to other files and
2265 remove.
2266 (enum resume_kind: Move to target/resume.h.
2267 (TARGET_WNOHANG): Move to target/wait.h.
2268 (enum target_waitkind): Move to target/waitstatus.h.
2269 (struct target_waitstatus): Likewise.
2270 * target.h: Do not include target-common.h and
2271 include target/resume.h, target/wait.h and
2272 target/waitstatus.h.
2273 * target/resume.h: New file.
2274 * target/wait.h: New file.
2275 * target/waitstatus.h: New file.
2276 * target/waitstatus.c: New file.
2277
12696c10
PA
22782013-08-19 Pedro Alves <palves@redhat.com>
2279
2280 * linux-nat.c (linux_test_for_tracefork)
2281 (linux_test_for_tracesysgood, linux_child_follow_fork)
2282 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2283 (linux_nat_wait_1): Extend comment.
2284 (linux_async_pipe): Add comment.
2285
ba89f962
KB
22862013-08-15 Kevin Buettner <kevinb@redhat.com>
2287
2288 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2289 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2290 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2291 Update to account for fact that PC is now a pseudo-register.
2292 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2293 cases for RL78_PC_REGNUM.
2294
35ab155d
MB
22952013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2296
2297 PR cli/15841
2298 * top.c (quit_force): Skip writing history file
2299 if input is not from terminal.
2300
0d031856
TT
23012013-08-14 Tom Tromey <tromey@redhat.com>
2302
2303 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2304 resultthreadlist>: New fields.
2305 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2306 (remote_get_threadlist, remote_threadlist_iterator): Use
2307 new fields. Remove static variables.
2308
ee154bee
TT
23092013-08-14 Tom Tromey <tromey@redhat.com>
2310
2311 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2312 remote_watch_data_address>: New fields.
2313 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2314 (process_stop_reply, remote_wait_as)
2315 (remote_check_watch_resources, remote_stopped_data_address): Update.
2316
88b496c3
TT
23172013-08-14 Tom Tromey <tromey@redhat.com>
2318
2319 * remote.c (struct remote_state) <async_client_callback,
2320 async_client_context>: New fields.
2321 (async_client_callback, async_client_context): Remove.
2322 (remote_async_serial_handler, remote_async): Update.
2323
2f65bcb7
TT
23242013-08-14 Tom Tromey <tromey@redhat.com>
2325
2326 * remote.c (sizeof_pkt): Remove.
2327 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2328
b80fafe3
TT
23292013-08-14 Tom Tromey <tromey@redhat.com>
2330
2331 * remote.c (struct remote_state) <use_threadinfo_query,
2332 use_threadextra_query>: New fields.
2333 (remote_threads_info, remote_threads_extra_info)
2334 (remote_open_1): Update.
2335
8e88304f
TT
23362013-08-14 Tom Tromey <tromey@redhat.com>
2337
2338 * remote.c (struct remote_state) <finished_object,
2339 finished_annex, finished_offset>: New fields.
2340 (remote_read_qxfer): Use remote_state fields; remove static
2341 variables.
2342
280ceea3
TT
23432013-08-14 Tom Tromey <tromey@redhat.com>
2344
2345 * remote.c (struct remote_state) <last_sent_step>:
2346 New field.
2347 (last_sent_step): Remove.
2348 (remote_resume, remote_wait_as): Update.
2349
b73be471
TT
23502013-08-14 Tom Tromey <tromey@redhat.com>
2351
2352 * remote.c (struct remote_state) <last_sent_signal>:
2353 New field.
2354 (last_sent_signal): Remove.
2355 (new_remote_state, remote_resume, remote_wait_as): Update.
2356
5e4a05c4
TT
23572013-08-14 Tom Tromey <tromey@redhat.com>
2358
2359 * remote.c (struct remote_state) <last_program_signals_packet>:
2360 New field.
2361 (last_program_signals_packet): Remove.
2362 (remote_program_signals, remote_open_1): Update.
2363
747dc59d
TT
23642013-08-14 Tom Tromey <tromey@redhat.com>
2365
2366 * remote.c (struct remote_state) <last_pass_packet>:
2367 New field.
2368 (last_pass_packet): Remove.
2369 (remote_pass_signals, remote_open_1): Update.
2370
262e1174
TT
23712013-08-14 Tom Tromey <tromey@redhat.com>
2372
2373 * remote.c (struct remote_state) <remote_traceframe_number>:
2374 New field.
2375 (remote_traceframe_number): Remove.
2376 (new_remote_state, remote_open_1, set_remote_traceframe)
2377 (remote_trace_find): Update.
2378
47f8a51d
TT
23792013-08-14 Tom Tromey <tromey@redhat.com>
2380
2381 * remote.c (struct remote_state) <general_thread, continue_thread>:
2382 New fields.
2383 (general_thread, continue_thread): Remove.
2384 (record_currthread, set_thread, set_general_process)
2385 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2386 (extended_remote_mourn_1): Update.
2387
5d93a237
TT
23882013-08-14 Tom Tromey <tromey@redhat.com>
2389
2390 * remote.c (struct remote_state) <remote_desc>: New field.
2391 (remote_desc): Remove.
2392 (remote_threads_info, remote_threads_extra_info, remote_close)
2393 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2394 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2395 (remote_hostio_send_command, remote_file_put, remote_file_get)
2396 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2397 (remote_async, remote_new_objfile, set_range_stepping): Update.
2398
cf792862
TT
23992013-08-14 Tom Tromey <tromey@redhat.com>
2400
2401 * remote.c (remote_state): Now a pointer.
2402 (get_remote_state_raw): Update.
2403 (new_remote_state): New function.
2404 (_initialize_remote): Use new_remote_state.
2405
dc473cfb
TT
24062013-08-14 Tom Tromey <tromey@redhat.com>
2407
2408 * remote.c (remote_protocol_features): Now const.
2409
85ec6ce7
TT
24102013-08-14 Tom Tromey <tromey@redhat.com>
2411
2412 * remote.c (crc32_table, crc32): Remove.
2413 (remote_verify_memory): Use xcrc32.
2414
73033f12
SDJ
24152013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2416
2417 * value.h (create_internalvar_type_lazy): Adjust prototype
2418 declaration.
2419
5c30d39a
AB
24202013-08-13 Andrew Burgess <aburgess@broadcom.com>
2421
2422 * common/format.c (parse_format_string): Don't allow '#' flag for
2423 pointer arguments in format string.
2424
1a66331e
PM
24252013-08-13 Pierre Muller <muller@sourceware.org>
2426
fde605f3 2427 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2428 if rl_get_screen_size did not return useful values.
2429
b4013987
AA
24302013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2431
2432 PR breakpoints/15117
2433 * linespec.c (linespec_parse_basic): Check for convenience
2434 variable or history value while parsing.
2435
959b6a66
SDJ
24362013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2437
2438 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2439 AVR.
2440 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2441 different signals between the generic Linux kernel implementation
2442 and AVR's.
2443 (avr_linux_gdb_signal_from_target): Delete.
2444 (avr_linux_gdb_signal_to_target): Delete.
2445 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2446
24a55014
DE
24472013-08-09 Doug Evans <dje@google.com>
2448
2449 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2450 entries.
2451
eb14d406
SDJ
24522013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2453
2454 * linux-tdep.c: Define enum with generic signal numbers.
2455 (linux_gdb_signal_from_target): New function.
2456 (linux_gdb_signal_to_target): Likewise.
2457 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2458 methods to the functions above.
2459 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2460 (linux_gdb_signal_to_target): Likewise.
2461 * alpha-linux-tdep.c: Define new enum with signals different
2462 from generic Linux kernel.
2463 (alpha_linux_gdb_signal_from_target): New function.
2464 (alpha_linux_gdb_signal_to_target): Likewise.
2465 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2466 with the functions mentioned above.
2467 * avr-tdep.c: Define enum with differences between Linux kernel
2468 and AVR signals.
2469 (avr_linux_gdb_signal_from_target): New function.
2470 (avr_linux_gdb_signal_to_target): Likewise.
2471 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2472 the functions mentioned above.
2473 * sparc-linux-tdep.c: Define enum with differences between SPARC
2474 and generic Linux kernel signal numbers.
2475 (sparc32_linux_gdb_signal_from_target): New function.
2476 (sparc32_linux_gdb_signal_to_target): Likewise.
2477 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2478 to the functions defined above.
2479 * xtensa-linux-tdep.c: Define enum with differences between
2480 Xtensa and Linux kernel generic signals.
2481 (xtensa_linux_gdb_signal_from_target): New function.
2482 (xtensa_linux_gdb_signal_to_target): Likewise.
2483 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2484 to the functions defined above.
2485 * mips-linux-tdep.c: Define enum with differences between
2486 signals in MIPS and Linux kernel generic ones.
2487 (mips_gdb_signal_to_target): New function.
2488 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2489 only different signals from the Linux kernel generic.
2490 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2491 the functions defined above.
2492 * mips-linux-tdep.h (enum mips_signals): Remove.
2493
156d08c8
PA
24942013-08-09 Pedro Alves <palves@redhat.com>
2495
2496 * avr-tdep.c (XMALLOC): Delete macro.
2497 * cli/cli-dump.c (XMALLOC): Delete macro.
2498
db229724
PA
24992013-08-09 Pedro Alves <palves@redhat.com>
2500
2501 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2502 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2503 (fopen_with_cleanup, add_dump_command): Make static.
2504 * cli/cli-dump.h: Delete file.
2505 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2506 cli/cli-dump.h.
2507
3f12a589
PA
25082013-08-09 Pedro Alves <palves@redhat.com>
2509
2510 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2511 error message.
2512
c718be47
PA
25132013-08-09 Pedro Alves <palves@redhat.com>
2514
156d08c8 2515 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2516 error message.
2517
1e351ed1
PA
25182013-08-09 Pedro Alves <palves@redhat.com>
2519
2520 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2521 (gcore_command): Use tilde_expand here, and when showing the
2522 filename to the user, show the expanded version.
2523
1ed8d800
YQ
25242013-08-09 Yao Qi <yao@codesourcery.com>
2525
2526 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2527 'entryval' is set.
2528
47ecca85
PA
25292013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2530
2531 * gcore.c (create_gcore_bfd): Use tilde_expand.
2532
82a0a75f
YQ
25332013-08-08 Yao Qi <yao@codesourcery.com>
2534
2535 * frame.h (read_frame_local): Declare.
2536 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2537 read_frame_local.
2538 * stack.c (read_frame_local): New.
2539
5c4aa40b
YQ
25402013-08-08 Yao Qi <yao@codesourcery.com>
2541
2542 * mi/mi-cmd-stack.c: Update comments to function
2543 list_args_or_locals.
2544
b93601f3
TT
25452013-08-07 Tom Tromey <tromey@redhat.com>
2546
2547 PR symtab/15028:
2548 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2549 (process_psymtab_comp_unit_reader): Use it.
2550 (process_psymtab_comp_unit): Update. Add "pretend_language"
2551 argument.
2552 (dwarf2_build_psymtabs_hard): Update.
2553 (scan_partial_symbols): Pass CU's language to
2554 process_psymtab_comp_unit.
2555
fa760f46
TT
25562013-08-07 Tom Tromey <tromey@redhat.com>
2557
2558 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2559 (dwarf2_gdb_index_functions): Update.
2560 * psymtab.c (find_symbol_file_from_partial): Remove.
2561 (psym_functions): Update.
2562 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2563 Remove.
2564
bf6d8a91
TT
25652013-08-07 Tom Tromey <tromey@redhat.com>
2566
2567 * symfile.c (set_initial_language): Look up "main" symbol
2568 and use its language.
2569 * symtab.c (find_main_filename): Remove.
2570 * symtab.h (find_main_filename): Remove.
2571
f9125b6c
TT
25722013-08-07 Tom Tromey <tromey@redhat.com>
2573
2574 * dwarf2read.c (recursively_compute_inclusions): Add
2575 "immediate_parent" argument. Set symtab's "user" field
2576 if not set.
2577 (compute_symtab_includes): Update.
2578
fdbb204b
TT
25792013-08-07 Tom Tromey <tromey@redhat.com>
2580
2581 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2582 when adding label symbols.
2583
49de1690
UW
25842013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2585 Ulrich Weigand <uweigand@de.ibm.com>
2586
2587 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2588 * configure.host (powerpc64-*-aix*): Likewise.
2589
b08ee99f
UW
25902013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2591 Ulrich Weigand <uweigand@de.ibm.com>
2592
2593 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2594 is defined.
2595 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2596 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2597 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2598 * configure.ac: Check for ptrace64.
2599 * configure, config.in: Regenerate.
2600
fecf803e
UW
26012013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2602 Ulrich Weigand <uweigand@de.ibm.com>
2603
2604 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2605 Call ptrace64 instead of ptrace if defined.
2606 Add macro addr_ptr to take care of ptrace address argument.
2607 (pdc_read_regs): Likewise.
2608 (pdc_write_regs): Likewise.
2609 (aix_thread_resume): Likewise.
2610 (fetch_regs_kernel_thread): Likewise.
2611 (store_regs_kernel_thread): Likewise.
2612
3bb5e4a8
AB
26132013-08-07 Anton Blanchard <anton@samba.org>
2614
2615 * MAINTAINERS: Add myself to Write After Approval.
2616
12070676
TT
26172013-08-05 Tom Tromey <tromey@redhat.com>
2618
2619 * aix-thread.c (_initialize_aix_thread): Use
2620 complete_target_initialization.
2621 * bsd-uthread.c (_initialize_bsd_uthread): Use
2622 complete_target_initialization.
2623 * dec-thread.c (_initialize_dec_thread): Use
2624 complete_target_initialization.
2625 * ravenscar-thread.c (_initialize_ravenscar): Use
2626 complete_target_initialization.
2627 * sol-thread.c (_initialize_sol_thread): Use
2628 complete_target_initialization.
2629 * spu-multiarch.c (_initialize_spu_multiarch): Use
2630 complete_target_initialization.
2631
7c7b6655
TT
26322013-08-05 Tom Tromey <tromey@redhat.com>
2633
2634 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2635 * ada-lang.c (ada_lookup_simple_minsym): Return
2636 bound_minimal_symbol.
2637 * ada-lang.h (ada_lookup_simple_minsym): Update.
2638 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2639 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2640 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2641 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2642 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2643 * minsyms.c (msymbol_objfile): Remove.
2644 (lookup_minimal_symbol_internal): New function, from
2645 lookup_minimal_symbol.
2646 (lookup_minimal_symbol): Rewrite using
2647 lookup_minimal_symbol_internal.
2648 (lookup_bound_minimal_symbol): New function.
2649 * minsyms.h (msymbol_objfile): Remove.
2650 (lookup_bound_minimal_symbol): Declare.
2651 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2652 * parse.c (write_exp_msymbol): Change parameter to a
2653 bound_minimal_symbol.
2654 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2655 * parser-defs.h (write_exp_msymbol): Update.
2656 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2657 * symfile.c (simple_read_overlay_table): Use
2658 lookup_bound_minimal_symbol.
2659 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2660 (search_symbols): Likewise.
2661 (print_msymbol_info): Take a bound_minimal_symbol argument.
2662 (symtab_symbol_info, rbreak_command): Update.
2663 * symtab.h (struct symbol_search) <msymbol>: Change type
2664 to bound_minimal_symbol.
2665 * valops.c (find_function_in_inferior): Use
2666 lookup_bound_minimal_symbol.
2667 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2668
934b9bac
JK
26692013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2670
2671 Code cleanup.
2672 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2673 to ...
2674 (async_cleanup_sigint_signal_handler): ... this.
2675 (initialize_sigint_signal_handler): Remove declaration.
2676 (handle_remote_sigint): Rename the declaration to ...
2677 (async_handle_remote_sigint): ... this.
2678 (handle_remote_sigint_twice): Rename the declaration to ...
2679 (async_handle_remote_sigint_twice): ... this.
2680 (async_remote_interrupt, async_remote_interrupt_twice)
2681 (remote_interrupt): Remove the declarations.
2682 (remote_interrupt_twice): Rename the declaration ...
2683 (sync_remote_interrupt_twice): ... this.
2684 (sigint_remote_twice_token): Rename the variable to ...
2685 (async_sigint_remote_twice_token): ... this.
2686 (sigint_remote_token): Rename the variable to ...
2687 (async_sigint_remote_token): ... this.
2688 (initialize_sigint_signal_handler): Rename the function to ...
2689 (async_initialize_sigint_signal_handler): ... this. Update the name
2690 inside.
2691 (handle_remote_sigint): Rename the function to ...
2692 (async_handle_remote_sigint): ... this. Update the names inside.
2693 (handle_remote_sigint_twice): Rename the function to ...
2694 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2695 (cleanup_sigint_signal_handler): Rename the function to ...
2696 (async_cleanup_sigint_signal_handler): ... this.
2697 (remote_interrupt): Rename the function to ...
2698 (sync_remote_interrupt): this. Update the names inside.
2699 (remote_interrupt_twice): Rename the function to ...
2700 (sync_remote_interrupt_twice): this. Update the names inside.
2701 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2702 (_initialize_remote): Update the names inside.
2703
3a1115a0
TT
27042013-08-02 Tom Tromey <tromey@redhat.com>
2705
2706 PR symtab/15719:
2707 * breakpoint.c (update_watchpoint, watchpoint_check)
2708 (watch_command_1): Update.
2709 * eval.c (fetch_subexp_value): Add "preserve_errors"
2710 parameter.
2711 * ppc-linux-nat.c (check_condition): Update.
2712 * value.h (fetch_subexp_value): Update.
2713
58b19776
AB
27142013-08-02 Andrew Burgess <aburgess@broadcom.com>
2715
2716 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2717 add_file_handler.
2718
ec94af83
DE
27192013-08-01 Doug Evans <dje@google.com>
2720
7ee85ab1
DE
2721 PR symtab/15691
2722 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2723 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2724 Add assert of sig_entry->dwo_unit == NULL.
2725 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2726 had already been read.
2727 (read_signatured_type): Set per_cu.tu_read.
2728
b846d303
DE
2729 PR symtab/15695
2730 * valops.c (value_struct_elt): Add missing call to check_typedef.
2731 (value_find_oload_method_list): Ditto.
2732
b52109bc
DE
2733 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2734 effectively, struct symbol_search **.
2735 (make_cleanup_free_search_symbols): Change arg to struct
2736 symbol_search **. All callers updated.
2737 (compare_search_syms): Compare symtab file name and block as well.
2738 (search_symbols_equal): New function.
2739 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2740 New args new_head, new_tail. Result is now void. Remove dups after
2741 sorting the symbols.
2742 (search_symbols): Sort all found symbols once, after all have been
2743 found, and remove duplicates. Simplify cleanup tracking of result.
2744 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2745
ec94af83
DE
2746 Further workarounds for binutils/15021.
2747 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2748 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2749 Watch for duplicate symtabs coming from type units.
2750 (compute_symtab_includes): Update call to
2751 recursively_compute_inclusions. Build vector of included symtabs
2752 instead of per_cus.
2753 * symtab.h (symtab_ptr): New typedef.
2754 (DEF_VEC_P (symtab_ptr)): New VEC type.
2755 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2756 instead.
2757
b2ae85cf
AB
27582013-08-01 Andrew Burgess <aburgess@broadcom.com>
2759
2760 * cli/cli-script.c (script_from_file): Remove use of
2761 error_pre_print.
2762 * main.c (captured_main): Remove use of error_pre_print and
2763 quit_pre_print.
2764 * utils.c (error_pre_print, quit_pre_print): Remove.
2765 * utils.h (error_pre_print, quit_pre_print): Likewise.
2766
645eab03
YQ
27672013-08-01 Yao Qi <yao@codesourcery.com>
2768
2769 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2770 with mi_getopt.
2771 (mi_cmd_stack_list_variables): Likewise.
2772
16f92dd4
AB
27732013-07-31 Andrew Burgess <aburgess@broadcom.com>
2774
2775 * exceptions.c (deprecated_throw_reason): Remove.
2776 * exceptions.h (deprecated_throw_reason): Remove.
2777
13f78033
AB
27782013-07-31 Andrew Burgess <aburgess@broadcom.com>
2779
2780 * remote-mips.c (mips_error): Replace use of
2781 deprecated_throw_reason with throw_verror. Use the error message
2782 passed to mips_error as the error message for throw_verror.
2783
039e3c22
AB
27842013-07-31 Andrew Burgess <aburgess@broadcom.com>
2785
2786 * monitor.c (monitor_interrupt_query): Replace use of
2787 deprecated_throw_reason with quit.
2788 * nto-procfs.c (interrupt_query): Likewise.
2789 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2790 * remote-mips.c (mips_kill): Likewise.
2791 * remote.c (interrupt_query): Likewise.
2792
8150913b
AB
27932013-07-31 Andrew Burgess <aburgess@broadcom.com>
2794
2795 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2796 with call to fatal.
2797
de74e63a
YQ
27982013-07-31 Pedro Alves <pedro@codesourcery.com>
2799 Yao Qi <yao@codesourcery.com>
2800
2801 * tracepoint.c (trace_dump_command): Select the current frame.
2802
247f5c4f
DE
28032013-07-30 Doug Evans <dje@google.com>
2804
2805 * dwarf2read.c (process_queue): Add type signature to debug output.
2806
11b4b7cc
AB
28072013-07-30 Andrew Burgess <aburgess@broadcom.com>
2808
2809 * value.c (value_fetch_lazy): Mark optimized out values as such
2810 rather than raising an error.
2811
b0c54aa5
AB
28122013-07-30 Andrew Burgess <aburgess@broadcom.com>
2813
2814 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2815 before checking which bits of the parent, not the child, value are
2816 valid.
2817
97c85fc6
MB
28182013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2819
2820 PR gdb/15715
2821 * top.c: Include "filenames.h".
2822 (set_history_filename): New function.
2823 (init_main): Install it as set hook of the "set history filename"
2824 command.
2825
ff39bb5e
SA
28262013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2827
2828 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2829 attribute parameter.
2830 (dwarf2_const_value_data): Constify struct attribute parameter.
2831 (dwarf2_const_value): Constify struct attribute parameter.
2832 (dwarf2_const_value_attr): Constify struct attribute parameter.
2833 (lookup_die_type): Constify struct attribute parameter.
2834 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2835 (follow_die_ref_or_sig): Constify struct attribute parameter.
2836 (follow_die_ref): Constify struct attribute parameter.
2837 (follow_die_sig): Constify struct attribute parameter.
2838 (get_DW_AT_signature_type): Constify struct attribute parameter.
2839 (get_type_unit_group): Constify struct attribute parameter.
2840 (fill_in_loclist_baton): Constify struct attribute parameter.
2841 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2842 (type_unit_group): Constify struct attribute parameter.
2843
6e5a29e1
SA
28442013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2845
2846 * dwarf2read.c (attr_form_is_block): Make argument const.
2847 (attr_form_is_section_offset): Make argument const.
2848 (attr_form_is_constant): Make argument const.
2849 (attr_form_is_ref): Make argument const.
2850
7771576e
SA
28512013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2852
2853 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2854 All uses updated.
2855 (attr_form_is_ref): Moved below attr_form_is_constant.
2856
a94e8645
DE
28572013-07-29 Doug Evans <dje@google.com>
2858
bb5291d0
DE
2859 * main.c (captured_command_loop): Tweak comment.
2860
b5419e49
DE
2861 * target.c (target_async_permitted_1): Fix comment.
2862
b2d23133
DE
2863 * symtab.c (iterate_over_some_symtabs): Add comment.
2864
a94e8645
DE
2865 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2866
7a60ad40
YQ
28672013-07-27 Yao Qi <yao@codesourcery.com>
2868
2869 * NEWS: Mention that GDBserver now supports hardware
2870 watchpoints on the MIPS GNU/Linux target.
2871
aaee2056
YQ
28722013-07-27 Yao Qi <yao@codesourcery.com>
2873
2874 * Makefile.in (HFILES_NO_SRCDIR): Add
2875 common/mips-linux-watch.h.
2876 (mips-linux-watch.o): New rule.
2877 * common/mips-linux-watch.c: New.
2878 * common/mips-linux-watch.h: New.
2879 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2880 * mips-linux-nat.c: Include mips-linux-watch.h.
2881 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2882 to common/mips-linux-watch.h.
2883 (MAX_DEBUG_REGISTER): Likewise.
2884 (enum pt_watch_style): Likewise.
2885 (struct mips32_watch_regs): Likewise.
2886 (struct mips64_watch_regs): Likewise.
2887 (struct pt_watch_regs): Likewise.
2888 (struct mips_watchpoint): Likewise.
2889 (mips_linux_watch_get_irw_mask): Move to
2890 common/mips-linux-watch.c.
2891 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2892 (mips_linux_watch_get_watchlo): Likewise.
2893 (mips_linux_watch_set_watchlo): Likewise.
2894 (mips_linux_watch_get_watchhi): Likewise.
2895 (mips_linux_watch_set_watchhi): Likewise.
2896 (mips_linux_read_watch_registers): Likewise.
2897 (mips_linux_watch_type_to_irw): Likewise.
2898 (mips_linux_stopped_data_address, fill_mask): Likewise.
2899 (mips_linux_watch_try_one_watch): Likewise.
2900 (mips_linux_watch_populate_regs): Likewise.
2901
b3436450
YQ
29022013-07-27 Yao Qi <yao@codesourcery.com>
2903
2904 * mips-linux-nat.c (get_irw_mask): Rename to ...
2905 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2906 'set' to 'n'. Update function comment. All callers changed.
2907 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2908 function comment. All callers changed.
2909 (get_num_valid): Rename to ...
2910 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2911 'set' to 'n'. Update function comment. All callers changed.
2912 (get_watchlo): Rename to ...
2913 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2914 'set' to 'n'. Update function comment. All callers changed.
2915 (set_watchlo): Rename to ...
2916 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2917 'set' to 'n'. Update function comment. All callers changed.
2918 (get_watchhi): Rename to ...
2919 (mips_linux_watch_get_watchhi): ... this. Update function
2920 comment. All callers changed.
2921 (set_watchhi): Rename to ...
2922 (mips_linux_watch_set_watchhi): ... this. Update function
2923 comment. All callers changed.
2924 (mips_linux_read_watch_registers): Update function comment.
2925 Add new parameters 'lwpid', 'watch_readback', and
2926 'watch_readback_valid'. Update.
2927 (type_to_irw): Rename to ...
2928 (mips_linux_watch_type_to_irw): ... this. Update function
2929 comment. All callers changed.
2930 (fill_mask): Update function comment.
2931 (try_one_watch): Rename to ...
2932 (mips_linux_watch_try_one_watch): ... this. Change the type
2933 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2934 (populate_regs_from_watches): Rename to ...
2935 (mips_linux_watch_populate_regs): ... this. Add parameter
2936 'current_watches'. All callers changed.
2937
9be14b81
YQ
29382013-07-27 Yao Qi <yao@codesourcery.com>
2939
2940 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2941 the code.
2942 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2943 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2944 (struct pt_watch_regs): Likewise.
2945 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2946 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2947 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2948 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2949 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2950
de6f69ad
YQ
29512013-07-27 Yao Qi <yao@codesourcery.com>
2952
2953 * breakpoint.h: Include break-common.h.
2954 (enum target_hw_bp_type): Move to ...
2955 * common/break-common.h: ... here. New.
2956
6f64ef53
PA
29572013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2958
2959 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2960 process group regardless of having tty on stdin.
2961
6107e809
DE
29622013-07-25 Doug Evans <dje@google.com>
2963
2964 * linux-fork.h (detach_fork): Delete.
2965
7fdc1521
TT
29662013-07-25 Tom Tromey <tromey@redhat.com>
2967
2968 PR remote/15256, PR remote/15266:
2969 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2970 * monitor.c (monitor_detach): Use unpush_target.
2971 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2972 * remote-mips.c (mips_detach): Use unpush_target. Don't
2973 call mips_close.
2974 * remote-sim.c (gdbsim_detach): Use unpush_target.
2975 * target.c (pop_target): Remove.
2976 (pop_all_targets_above): Don't call target_close.
2977 (target_close): Assert that the target is unpushed.
2978 * target.h (pop_target): Don't declare.
2979 * tracepoint.c (tfile_open): Use unpush_target.
2980
c22a2b88
TT
29812013-07-25 Tom Tromey <tromey@redhat.com>
2982
2983 * linux-thread-db.c (init_thread_db_ops): Call
2984 complete_target_initialization.
2985 (_initialize_thread_db): Don't call add_target.
2986 * target.c (complete_target_initialization): New function.
2987 (add_target_with_completer): Call it.
2988 * target.h (complete_target_initialization): Declare.
2989
cbb6aada
MK
29902013-07-25 Mark Kettenis <kettenis@gnu.org>
2991
2992 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2993 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2994 (HPPANBSD_SIZEOF_GREGS): New define.
2995 (hppaobsd_supply_gregset): Handle additional registers.
2996 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2997 we provide more registers now.
2998 (hppabsd_supply_gregset): Supply additional registers.
2999 (hppabsd_collect_gregset): Collect additional registers.
3000
17767988
MK
30012013-07-25 Mark Kettenis <kettenis@gnu.org>
3002
3003 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3004 (hppabsd_dwarf2_frame_init_reg): New function.
3005 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3006
fdc8aae8
AB
30072013-07-25 Andrew Burgess <aburgess@broadcom.com>
3008
3009 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3010 'z' format code. Remove error for optimized out values, standard
3011 code will handle these fine.
3012
6fbe845e
AB
30132013-07-25 Andrew Burgess <aburgess@broadcom.com>
3014
3015 * NEWS: Mention new 'z' formatter.
3016 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3017 (_initialize_printcmd): Mention 'z' formatter in help text of the
3018 'x' command.
3019
3373342d
MR
30202013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3021
3022 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3023 formatting.
3024
25f9533e
SDJ
30252013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3026
3027 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3028 interface can evaluate arguments. Fallback to the old mode if it
3029 cannot.
3030 (create_exception_master_breakpoint): Likewise.
3031 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3032 (struct sym_probe_fns elf_probe_fns): Export function above to the
3033 probe interface.
3034 * probe.c (can_evaluate_probe_arguments): New function.
3035 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3036 function pointer.
3037 (can_evaluate_probe_arguments): New function prototype.
3038 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3039 probe interface can evaluate arguments. Fallback to the old mode
3040 if it cannot.
3041 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3042 interface can evaluate arguments. Warning the user if it cannot.
3043 (stap_can_evaluate_probe_arguments): New function.
3044 (struct probe_ops stap_probe_ops): Export function above to the
3045 probe interface.
3046 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3047 New function pointer.
3048
3360c0bf
LM
30492013-07-24 Luis Machado <lgustavo@codesourcery.com>
3050
3051 * Makefile.in (SFILES): Add common/target-common.c.
3052 Add common/target-common.h to headers.
3053 (COMMON_OBS): Add target-common.o.
3054 (target-common.o): New target.
3055 * linux-nat.h (resume_kind): Move to common/target-common.h.
3056 * target.c (target_waitstatus_to_string): Move to
3057 common/target-common.c.
3058 * target.h: Include target-common.h.
3059 (target_waitkind): Move to common/target-common.h.
3060 (target_waitstatus): Likewise.
3061 (TARGET_WNOHANG): Likewise.
3062 * common/target-common.c: New file.
3063 * common/target-common.h: New file.
3064
6656a72d
DE
30652013-07-24 Doug Evans <dje@google.com>
3066
3067 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3068 a warning.
3069
6df81a63
YQ
30702013-07-23 Yao Qi <yao@codesourcery.com>
3071
3072 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3073 parameter 'gdbarch'.
3074 (i386_stack_tramp_frame_sniffer): Caller update.
3075 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3076 parameter 'gdbarch' and 'target'.
3077 (i386_linux_core_read_description): Caller update.
3078 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3079 Likewise.
3080 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3081 declaration.
3082
365156ad
TT
30832013-07-23 Tom Tromey <tromey@redhat.com>
3084
3085 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3086 2013-07-22.
3087
046ac79f
JK
30882013-07-22 Doug Evans <dje@google.com>
3089
3090 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3091 * exec.c (exec_close): Update call to remove_target_sections.
3092 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3093 * solib.c (update_solib_list): Ditto.
3094 (reload_shared_libraries_1): Ditto.
3095 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3096 * target.h (struct target_section): Rename key to owner.
3097 All uses updated.
046ac79f 3098
29b2cc46
TT
30992013-07-22 Tom Tromey <tromey@redhat.com>
3100
3101 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3102
d1160018
TT
31032013-07-22 Tom Tromey <tromey@redhat.com>
3104
3105 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3106 Simplify cleanup handling.
3107
2f324bf6
TT
31082013-07-22 Tom Tromey <tromey@redhat.com>
3109
3110 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3111 on all return paths.
3112
e23b9d6e
UW
31132013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3114
3115 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3116 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3117 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3118
1cf55f60
PM
31192013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3120
3121 * top.c (print_gdb_version): Add help, apropos description and
3122 url to online documentation.
3123
fa876972
HZ
31242013-07-19 Hui Zhu <hui@codesourcery.com>
3125
3126 PR gdb/15692
3127 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3128
1527aea8
YQ
31292013-07-19 Yao Qi <yao@codesourcery.com>
3130
3131 * target.c (update_current_target): Change the default action
3132 of 'to_traceframe_info' from tcomplain to return_zero.
3133 * target.h (struct target_ops) <to_traceframe_info>: Add more
3134 comments.
3135 * valops.c (read_value_memory): Call
3136 traceframe_available_memory unconditionally.
3137
886f230e
YQ
31382013-07-18 Yao Qi <yao@codesourcery.com>
3139
3140 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3141 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3142 symbol without prefix. If found, set its type to
3143 'mst_solib_trampoline'.
3144
16419bae
DE
31452013-07-17 Doug Evans <dje@google.com>
3146
e7045703
DE
3147 * NEWS: Mention "set print raw frame-arguments".
3148 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3149 * stack.c (print_raw_frame_arguments): New static global.
3150 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3151 (_initialize_stack): New command "set/show print raw frame-arguments".
3152 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3153 (set_print_raw, show_print_raw): New functions.
3154 (_initialize_valprint): New prefix command "set/show print raw".
3155 * valprint.h (value_print_options): Improve comments.
3156
453e48a5
DE
3157 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3158 of all *list variables.
3159
16419bae
DE
3160 * gdbcmd.h (togglelist): Delete.
3161 * cli/cli-cmds.c (togglelist): Delete.
3162 (init_cmd_lists): Update.
3163 * cli/cli-cmds.h (togglelist): Delete.
3164
626f2d1c
TT
31652013-07-17 Tom Tromey <tromey@redhat.com>
3166
3167 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3168 dwarf2_per_objfile.
3169
57e6060e
DE
31702013-07-16 Doug Evans <dje@google.com>
3171
3172 * nto-tdep.c (nto_relocate_section_addresses): Update,
3173 target_section.bfd deleted.
3174 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3175 * s390-tdep.c (s390_load): Ditto.
3176 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3177
5ea5559b
AB
31782013-07-16 Andrew Burgess <aburgess@broadcom.com>
3179
3180 * common/format.c (parse_format_string): Add checks for NULL
3181 character before calling strchr.
3182
2b2848e2
DE
31832013-07-16 Doug Evans <dje@google.com>
3184
2c571006
DE
3185 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3186 temp_pathname argument.
3187 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3188 when opening the file fails.
3189
2b2848e2
DE
3190 * target.h (struct target_section): Delete member bfd.
3191 All users updated to use the_bfd_section->owner instead.
3192 * exec.c (add_to_section_table): Assert bfd is expected value.
3193 Remove initialization of target_section.bfd.
3194 (remove_target_sections): Update.
3195 (section_table_available_memory): Update.
3196 (section_table_xfer_memory_partial): Update.
3197 (print_section_info): Update.
3198 (exec_set_section_address): Update.
3199 * record-full.c (record_full_core_xfer_partial): Update.
3200 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3201 * solib-target.c (solib_target_relocate_section_addresses): Update.
3202 * symfile.c (build_section_addr_info_from_section_table): Update.
3203 * target.c (memory_xfer_live_readonly_partial): Update.
3204 (memory_xfer_partial_1): Update.
3205
926bf92d
UW
32062013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3207
3208 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3209 now available for embedded (BookE) and server (BookS) processors,
3210 correct mentions of 'booke' and adjust comments accordingly in order to
3211 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3212 (have_ptrace_booke_interface): Rename function and variable
3213 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3214 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3215 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3216 'hwdebug_point_cmp'. Update all uses.
3217 (booke_find_thread_points_by_tid): Rename function
3218 'booke_find_thread_points_by_tid' to
3219 'hwdebug_find_thread_points_by_tid'. Update all uses.
3220 (booke_insert_point): Rename function 'booke_insert_point' to
3221 'hwdebug_insert_point'. Update all uses.
3222 (booke_remove_point): Rename function 'booke_remove_point' to
3223 'hwdebug_remove_point'. Update all uses.
3224
d929bc19
MR
32252013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3226
3227 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3228 numbers with enum values.
3229
054e8d9e
AA
32302013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3231
3232 PR threads/13217
3233 * thread.c (thread_apply_all_command): Check for valid threads
3234 and thread count.
3235 (thread_array_cleanup): New struct.
3236 (set_thread_refcount): New function.
3237
cf006359
AB
32382013-07-11 Andrew Burgess <aburgess@broadcom.com>
3239
3240 * infcmd.c (default_print_one_register_info): Reuse function
3241 print_hex_chars.
3242
94e36acc
TT
32432013-07-10 Tom Tromey <tromey@redhat.com>
3244
3245 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3246 (ada-exp.o): New target.
3247
915dd369
SDJ
32482013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3249
3250 * mt-tdep.c (mt_registers_info): Call
3251 get_no_prettyformat_print_options instead of
3252 get_raw_print_options (regression by last patch from Doug
3253 Evans).
3254
eca07816
JB
32552013-07-09 Pedro Alves <palves@redhat.com>
3256
3257 Checked in by Joel Brobecker <brobecker@adacore.com>.
3258 * ada-lang.c (coerce_unspec_val_to_type): Use
3259 value_optimized_out_const.
3260 * value.c (value_optimized_out_const): New function.
3261 * value.h (value_optimized_out_const): New declaration.
3262
2a998fc0
DE
32632013-07-09 Doug Evans <dje@google.com>
3264
3265 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3266 Enum values rename as well. All uses updated.
3267 * valprint.h (value_print_options): Rename member pretty to
3268 pretty format. Rename member prettyprint_arrays to
3269 prettyformat_arrays. Rename member prettyprint_structs to
3270 prettyformat_structs. All uses updated.
3271 (get_no_prettyformat_print_options): Renamed from
3272 get_raw_print_options.
3273 * valprint.c (get_no_prettyformat_print_options): Renamed from
3274 get_raw_print_options. All callers updated.
3275 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3276 All callers updated.
3277 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3278 All callers updated.
3279 (_initialize_valprint): Improve help text for "set print pretty" and
3280 "set print arrays".
3281
466c1fca
AB
32822013-07-09 Andrew Burgess <aburgess@broadcom.com>
3283
3284 * value.c (value_bits_valid): Revert previous change, and change
3285 by Pedro on 2013-07-04, due to regressions in
3286 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3287
ad0f0303
AB
32882013-07-08 Andrew Burgess <aburgess@broadcom.com>
3289 Pedro Alves <palves@redhat.com>
3290
3291 * value.c (value_bits_valid): If the value is not lval_computed
3292 or has no check validity handler then the answer is the
3293 optimized_out flag, otherwise defer to the handler.
3294
b187bec1
EZ
32952013-07-06 Eli Zaretskii <eliz@gnu.org>
3296
48d1d6f5
EZ
3297 * top.c (print_gdb_configuration): Explain in output of
3298 --configuration what does "relocatable" mean.
3299
b187bec1
EZ
3300 * main.c (print_gdb_help): Regroup options in the --help text.
3301 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3302 the relevant discussions.
3303
52d361e1
YQ
33042013-07-06 Yao Qi <yao@codesourcery.com>
3305
3306 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3307 Remove parameter 'lsal'.
3308 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3309 to inner block. Caller update.
3310 (base_breakpoint_create_breakpoints_sal): Update.
3311 (bkpt_create_breakpoints_sal): Likewise.
3312 (tracepoint_create_breakpoints_sal): Likewise.
3313 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3314 element 0 of vector 'canonical->sals'.
3315
e1ec1b42
LM
33162013-07-05 Luis Machado <lgustavo@codesourcery.com>
3317
3318 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3319 register number instead of the pseudo register one.
3320 (rs6000_dwarf2_reg_to_regnum): Likewise.
3321
7195e6f0
PA
33222013-07-04 Pedro Alves <palves@redhat.com>
3323
3324 * findvar.c (value_of_register): Use allocate_optimized_out_value
3325 if the register has been optimized out, instead of
3326 set_value_optimized_out.
3327 * frame-unwind.c (frame_unwind_got_optimized): Use
3328 allocate_optimized_out_value.
3329
58722cac
PA
33302013-07-04 Pedro Alves <palves@redhat.com>
3331
3332 * value.c (value_bits_valid): If the value is not lval_computed,
3333 or doesn't have a check_validity hook, assume the value is entirely
3334 valid.
3335
691a26f5
AB
33362013-07-04 Andrew Burgess <aburgess@broadcom.com>
3337
3338 * stack.c (read_frame_arg): No longer fetch lazy values.
3339 * value.c (value_optimized_out): If the value is not already
3340 marked optimized out, and is lazy then fetch it.
3341 (value_primitive_field): Move optimized out check to later in the
3342 function, after we have loaded any lazy values.
3343 (value_fetch_lazy): Use optimized out flag directly rather than
3344 calling optimized_out method.
3345
a58e2656
AB
33462013-07-04 Andrew Burgess <aburgess@broadcom.com>
3347
3348 * valops.c: Don't include "user-regs.h".
3349 (value_fetch_lazy): Moved to value.c.
3350 * value.c: Include "user-regs.h".
3351 (value_fetch_lazy): Moved from valops.c.
3352
bd885420
YQ
33532013-07-04 Yao Qi <yao@codesourcery.com>
3354
3355 Revert:
3356 2013-06-27 Yao Qi <yao@codesourcery.com>
3357
3358 * common/create-version.sh: Update comments. Handle the case
3359 that TARGET_ALIAS is empty.
3360
17ef446e
PA
33612013-07-03 Pedro Alves <palves@redhat.com>
3362
3363 * Makefile.in (config.status): Depend on development.sh.
3364 (aclocal_m4_deps): Add libmcheck.m4.
3365 * acinclude.m4: Include libmcheck.m4.
3366 * configure.ac: Source development.sh instead of setting
3367 'development' here. --enable-libmcheck/--disable-libmcheck code
3368 factored out to GDB_AC_LIBMCHECK. Run it.
3369 * development.sh: New file.
3370 * libmcheck.m4: New file.
3371 * configure: Regenerate.
3372
ac6dd50f
TT
33732013-07-02 Tom Tromey <tromey@redhat.com>
3374
3375 * contrib/ari/update-web-ari.sh: Update for version.in change.
3376
bd1df410
TT
33772013-07-02 Tom Tromey <tromey@redhat.com>
3378
3379 * common/ptid.h: Comment fixes.
3380
4db1a1dc
TT
33812013-07-01 Tom Tromey <tromey@redhat.com>
3382
3383 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3384 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3385 (dwarf2_read_index, create_all_comp_units): Update.
3386
dd9aa048
TT
33872013-07-01 Tom Tromey <tromey@redhat.com>
3388
3389 * configure.ac (build_warnings): Add -Wold-style-definition.
3390 * configure: Rebuild.
3391 * machoread.c (_initialize_machoread): Use "(void)".
3392 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3393 use "(void)".
3394
44d100c3
TT
33952013-07-01 Tom Tromey <tromey@redhat.com>
3396
3397 * configure.ac (build_warnings): Add -Wold-style-declaration.
3398 * configure: Rebuild.
3399 * dsrec.c (make_srec): Use "static const", not "const static".
3400 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3401 not "const static".
3402 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3403 Use "static const", not "const static".
3404 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3405 not "const static".
3406 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3407 not "const static".
3408 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3409 not "const static".
3410 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3411 not "const static".
3412 (v850_dbtrap_breakpoint_from_pc): Likewise.
3413 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3414 not "const static".
3415
2945b807
TT
34162013-07-01 Tom Tromey <tromey@redhat.com>
3417
3418 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3419 * configure: Rebuild.
3420
d8d2a3ee
PA
34212013-07-01 Pedro Alves <palves@redhat.com>
3422
3423 * defs.h: Include "pathmax.h".
3424 * utils.c: Don't include sys/param.h.
3425 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3426 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3427 instead of MAXPATHLEN.
3428 * solib-sunos.c: Don't include sys/param.h.
3429 * xcoffread.c: Don't include sys/param.h.
3430 * bsd-kvm.c: Don't include sys/param.h.
3431 * darwin-nat.c: Don't include sys/param.h.
3432 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3433 * darwin-nat-info.c: Don't include sys/param.h.
3434 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3435 MAXPATHLEN.
3436 * i386obsd-nat.c: Don't include sys/param.h.
3437 * inf-child.c: Don't include sys/param.h.
3438 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3439 * linux-fork.c: Don't include sys/param.h.
3440 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3441 * linux-nat.c: Don't include sys/param.h.
3442 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3443 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3444 * m68klinux-nat.c: Don't include sys/param.h.
3445 * nbsd-nat.c: Don't include sys/param.h.
3446 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3447 * ppc-linux-nat.c: Don't include sys/param.h.
3448 * rs6000-nat.c: Don't include sys/param.h.
3449 * spu-linux-nat.c. Don't include sys/param.h.
3450 * windows-nat.c: Don't include sys/param.h.
3451 * xtensa-linux-nat.c: Don't include sys/param.h.
3452 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3453
38ec2207
PA
34542013-07-01 Pedro Alves <palves@redhat.com>
3455
3456 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3457 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3458 * gnulib/aclocal.m4: Regenerate.
3459 * gnulib/config.in: Regenerate.
3460 * gnulib/configure: Regenerate.
3461 * gnulib/import/pathmax.h: New file.
3462 * gnulib/import/Makefile.am: Regenerate.
3463 * gnulib/import/Makefile.in: Regenerate.
3464 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3465 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3466 * gnulib/import/m4/pathmax.m4: New file.
3467
e655c1a2
PA
34682013-07-01 Pedro Alves <palves@redhat.com>
3469
3470 * configure.ac (GDBINIT): Define, depending on host.
3471 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3472 * top.c (PATH_MAX): Delete fallback definition.
3473 (GDBINIT_FILENAME): Delete.
3474 (gdbinit): Reimplement as const char array set to the GDBINIT
3475 string constant.
3476 * top.h (gdbinit): Make const.
3477 * configure, config.in: Regenerate.
3478
50dd9793
PA
34792013-07-01 Pedro Alves <palves@redhat.com>
3480
3481 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3482 * cli/cli-cmds.h (source_script): Likewise.
3483 * exceptions.c (catch_command_errors_const): New function.
3484 * exceptions.h (catch_command_errors_const): Declare.
3485 * main.c (get_init_files): Make parameters const, and adjust.
3486 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3487 'local_gdbinit' locals const. Adjust to use
3488 catch_command_errors_const.
3489 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3490 'local_gdbinit' locals const.
3491
bc7dea8d
PA
34922013-07-01 Pedro Alves <palves@redhat.com>
3493
3494 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3495 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3496 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3497 <unistd.h>.
3498
8839a007
PA
34992013-07-01 Pedro Alves <palves@redhat.com>
3500
3501 Import the "unistd" gnulib module.
3502 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3503 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3504 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3505 import/m4/unistd_h.m4.
3506 * gnulib/aclocal.m4: Renenerate.
3507 * gnulib/config.in: Renenerate.
3508 * gnulib/configure: Renenerate.
3509 * gnulib/import/Makefile.am: Renenerate.
3510 * gnulib/import/Makefile.in: Renenerate.
3511 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3512 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3513 * gnulib/import/m4/off_t.m4: New file.
3514 * gnulib/import/m4/ssize_t.m4: New file.
3515 * gnulib/import/m4/sys_types_h.m4: New file.
3516 * gnulib/import/m4/unistd_h.m4: New file.
3517 * gnulib/import/sys_types.in.h: New file.
3518 * gnulib/import/unistd.c: New file.
3519 * gnulib/import/unistd.in.h: New file.
3520
8c0da261
PA
35212013-07-01 Pedro Alves <palves@redhat.com>
3522
3523 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3524 defined instead of checking HAVE_UNISTD_H.
3525
3574124b
PA
35262013-07-01 Pedro Alves <palves@redhat.com>
3527
3528 Reimport gnulib from scratch.
3529 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3530 import/m4/onceonly.m4.
3531 * gnulib/aclocal.m4: Renegerate.
3532 * gnulib/config.in: Renegerate.
3533 * gnulib/configure: Renegerate.
3534 * gnulib/import/Makefile.in: Renegerate.
3535 * gnulib/import/extra/update-copyright: Renegerate.
3536 * gnulib/import/m4/onceonly.m4: Delete.
3537
702dc4fd
PA
35382013-07-01 Pedro Alves <palves@redhat.com>
3539
3540 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3541
47e1ce27
JK
35422013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3543
3544 Code cleanup.
3545 * remote.c (async_remote_interrupt_twice): Make it static.
3546 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3547
e82839d4
SDJ
35482013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3549
3550 * ia64-linux-tdep.c: Include <ctype.h>.
3551 (ia64_linux_stap_is_single_operand): New function.
3552 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3553
d6c2da54
TT
35542013-06-28 Tom Tromey <tromey@redhat.com>
3555
3556 * Makefile.in (version.c): Use version.in, not
3557 common/version.in.
3558 * common/create-version.sh: Likewise.
3559 * common/version.in: Move...
3560 * version.in: ...here.
3561
74da6f00
PA
35622013-06-28 Pedro Alves <palves@redhat.com>
3563
3564 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3565 here.
3566 * utils.h (pagination_enabled): Declare.
3567
d32dc48e
PA
35682013-06-28 Pedro Alves <palves@redhat.com>
3569
3570 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3571 Move higher up in file.
3572
0edd9e3b
TT
35732013-06-28 Tom Tromey <tromey@redhat.com>
3574
3575 * tracepoint.c (deprecated_readline_begin_hook)
3576 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3577 declare.
3578
4eb59108
PA
35792013-06-28 Pedro Alves <palves@redhat.com>
3580
3581 PR tui/14880
3582 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3583 checking if they're available.
3584 * value.c (value_available_contents_eq): Change comment.
3585 * value.h (value_available_contents_eq): Expand comment.
3586
97b17156
TT
35872013-06-27 Tom Tromey <tromey@redhat.com>
3588
3589 * target.c (find_run_target): Remove.
3590 * target.h (find_run_target): Remove.
3591
6a3bfc5c
TT
35922013-06-27 Tom Tromey <tromey@redhat.com>
3593
3594 * corelow.c (core_gdbarch): Now static.
3595
c9ef825d
TT
35962013-06-27 Tom Tromey <tromey@redhat.com>
3597
3598 * target.c (target_struct_index): Remove.
3599
e5823f1c
PA
36002013-06-27 Pedro Alves <palves@redhat.com>
3601
3602 * infrun.c: Remove comment describing the 'stepping over runtime
3603 loader dynamic symbol resolution code' mechanism; moved to
3604 gdbint.texinfo.
3605
97f8dd09
PA
36062013-06-27 Pedro Alves <palves@redhat.com>
3607
3608 * exceptions.c (catch_command_errors): Remove spurious space.
3609 * exceptions.h (catch_command_errors): Second parameter is "arg",
3610 not "command".
3611
02b1871e
YQ
36122013-06-27 Yao Qi <yao@codesourcery.com>
3613
3614 * common/create-version.sh: Update comments. Handle the case
3615 that TARGET_ALIAS is empty.
3616
bb1b1cf1
PA
36172013-06-26 Pedro Alves <palves@redhat.com>
3618
3619 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3620 comment.
3621
7b624e71
PA
36222013-06-26 Pedro Alves <palves@redhat.com>
3623
3624 * infrun.c: Update comments on stepping over runtime loader
3625 dynamic symbol resolution code.
3626
74e5a346
SDJ
36272013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3628
3629 * ax-gdb.h (union exp_element): Forward declare.
3630 * parser-defs.h: Include expression.h.
3631
a2fb2cee
MR
36322013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3633
3634 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3635
cdba14e0
DK
36362013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3637
3638 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3639
f30aa5af
DK
36402013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3641
3642 Fix trace-status to output proper start-time and stop-time.
3643 * tracepoint.c (trace_status_command): Fix type of printf arg to
3644 prevent improper type conversion.
3645 (trace_status_mi): Likewise.
3646
1aee363c
MR
36472013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3648
3649 * mips-tdep.c (mips_next_pc): Fix a typo.
3650
3356937a
MR
36512013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3652
3653 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3654
dc673c81
YQ
36552013-06-26 Pedro Alves <pedro@codesourcery.com>
3656 Yao Qi <yao@codesourcery.com>
3657
3658 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3659 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3660 * mi/mi-main.c (print_variable_or_computed): New function.
3661 (mi_cmd_trace_frame_collected): New function.
3662 * tracepoint.c (find_trace_state_variable_by_number): New.
3663 (struct traceframe_info): Move to tracepoint.h
3664 (struct collection_list): Likewise.
3665 (do_collect_symbol): Include locals and arguments in the
3666 collected variables list.
3667 (clear_collection_list): Clear wholly collected variables list
3668 and computed variables list.
3669 (append_exp): New function.
3670 (encode_actions_1): Include variables in the wholly
3671 collected variables list. Include memory ranges and
3672 full-fledged expressions in the computed expressions list.
3673 (encode_actions): Move some code to ...
3674 Return the cleanup chain.
3675 (encode_actions_rsp): ... here. New function.
3676 (get_traceframe_location, get_traceframe_info): Remove static.
3677 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3678 (struct collection_list): Moved from tracepoint.c. Add two
3679 new fields 'wholly_collected' and 'computed'.
3680 (find_trace_state_variable_by_number): Declare.
3681 (encode_actions): Adjust declaration.
3682 (encode_actions_rsp): Declare.
3683 (get_traceframe_info, get_traceframe_location): Declare.
3684
3685 * NEWS: Mention new MI command -trace-frame-collected.
3686
28a93511
YQ
36872013-06-26 Pedro Alves <pedro@codesourcery.com>
3688 Yao Qi <yao@codesourcery.com>
3689
3690 * ctf.c (ctf_traceframe_info): Push trace state variables
3691 present in the trace data into the traceframe info object.
3692 * breakpoint.c (DEF_VEC_I): Remove.
3693 * common/filestuff.c (DEF_VEC_I): Likewise.
3694 * dwarf2loc.c (DEF_VEC_I): Likewise.
3695 * mi/mi-main.c (DEF_VEC_I): Likewise.
3696 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3697 * features/traceframe-info.dtd: Add tvar element and its
3698 attributes.
3699 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3700 (build_traceframe_info): Push trace state variables present in
3701 the trace data into the traceframe info object.
3702 (traceframe_info_start_tvar): New function.
3703 (tvar_attributes): New.
3704 (traceframe_info_children): Add "tvar" element.
3705 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3706
3707 * NEWS: Mention the change in GDB and GDBserver.
3708
ddacd3c8
YQ
37092013-06-26 Pedro Alves <pedro@codesourcery.com>
3710 Yao Qi <yao@codesourcery.com>
3711
3712 * tracepoint.c (trace_dump_command): Move code to ...
3713 (get_traceframe_location): ... here. New.
3714
05796b35
YQ
37152013-06-26 Pedro Alves <pedro@codesourcery.com>
3716 Yao Qi <yao@codesourcery.com>
3717
3718 * tracepoint.c (trace_dump_command): GDB emits an error
3719 instead of a warning when a traceframe is not selected.
3720
cbfa3b61
YQ
37212013-06-26 Pedro Alves <pedro@codesourcery.com>
3722 Yao Qi <yao@codesourcery.com>
3723
3724 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3725 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3726 in collection_list.
3727 (do_clear_collection_list, init_collection_list): New.
3728 (encode_actions): Add local variables 'tracepoint_list' and
3729 'stepping_list'. Call init_collection_list and make cleanup
3730 which calls do_clear_collection_list. Don't call
3731 clear_collection_list.
3732 (_initialize_tracepoint): Delete references to
3733 'tracepoint_list' and 'stepping_list'.
3734
6e2048d3
TT
37352013-06-25 Tom Tromey <tromey@redhat.com>
3736
3737 * common/create-version.sh (date): Use "$", not "$$" in sed
3738 expression.
3739
42059f0e
KB
37402013-06-25 Kevin Buettner <kevinb@redhat.com>
3741
3742 * NEWS (New targets): Add entry for TI MSP430.
3743
a0743c90
YQ
37442013-06-25 Yao Qi <yao@codesourcery.com>
3745
3746 * remote.c (remote_start_remote): Move code to upload tsv
3747 earlier.
3748
9d6e6e84
HZ
37492013-06-25 Yao Qi <yao@codesourcery.com>
3750 Hui Zhu <hui@codesourcery.com>
3751 Pedro Alves <palves@redhat.com>
3752
3753 PR breakpoints/15075
3754 PR breakpoints/15434
3755 * breakpoint.c (bpstat_stop_status): Call
3756 b->ops->after_condition_true.
3757 (update_dprintf_command_list): Don't append "continue" command
3758 to the command list of dprintf breakpoint.
3759 (base_breakpoint_after_condition_true): New function.
3760 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3761 (dprintf_after_condition_true): New function.
3762 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3763 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3764
586cf749
KB
37652013-06-24 Kevin Buettner <kevinb@redhat.com>
3766
3767 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3768 (ALLDEPFILES): Add msp430-tdep.c.
3769 * configure.tgt (msp430*-*-elf): New target.
3770 * msp430-tdep.c: New file.
3771
1bbce132
MR
37722013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3773
3774 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3775 microMIPS synthetic symbols.
3776
3e5d3a5a
MR
37772013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3778
3779 * objfiles.h (pc_in_section): New prototype.
3780 (in_plt_section): Remove name argument, replace prototype with
3781 static inline function.
3782 * mips-tdep.h: Include "objfiles.h".
3783 (in_mips_stubs_section): New function.
3784 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3785 in_solib_call_trampoline member.
3786 (hppa_in_solib_call_trampoline): Remove name argument.
3787 * objfiles.c (pc_in_section): New function.
3788 (in_plt_section): Remove function.
3789 * mips-linux-tdep.c: Include "objfiles.h".
3790 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3791 name argument. Return 1 rather than the low 16-bit halfword of
3792 any instruction examined.
3793 (mips_linux_in_dynsym_resolve_code): Update
3794 mips_linux_in_dynsym_stub call accordingly.
3795 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3796 rather than an equivalent hand-coded sequence.
3797 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3798 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3799 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3800 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3801 in_opd_section.
3802 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3803 on call to tdep->in_solib_call_trampoline.
3804 (hppa_in_solib_call_trampoline): Remove name argument, update
3805 according to in_plt_section change.
3806 (hppa_skip_trampoline_code): Update according to in_plt_section
3807 change.
3808 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3809 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3810 Likewise.
3811 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3812 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3813 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3814 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3815 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3816 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3817 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3818 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3819 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3820 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3821 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3822 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3823 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3824
b9b26a16
JB
38252013-06-24 Joel Brobecker <brobecker@adacore.com>
3826
3827 * common/create-version.sh: Fix expansion of $host_alias
3828 and $target_alias in generation of HOST_NAME and TARGET_NAME
3829 (resp.).
3830
01208463
TT
38312013-06-24 Tom Tromey <tromey@redhat.com>
3832
3833 * common/create-version.sh: New file.
3834 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3835 create-version.sh.
3836 (HFILES_NO_SRCDIR): Use common/version.h.
3837 * version.in: Move to ...
3838 * common/version.in: ... here. Replace date with "DATE".
3839 * version.h: Move to ...
3840 * common/version.h: ... here.
3841
bb6b9a5e
JB
38422013-06-21 Joel Brobecker <brobecker@adacore.com>
3843
3844 * gdb/gnulib/Makefile.in: Update date in copyright header.
3845 * gdb/gnulib/configure.ac: Ditto.
3846 * gdb/gnulib/update-gnulib.sh: Ditto.
3847
c3b18ee7
JB
38482013-06-21 Joel Brobecker <brobecker@adacore.com>
3849
3850 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3851 "gdb/gnulib/import".
3852
85d3b769
WN
38532013-06-21 Will Newton <will.newton@linaro.org>
3854
3855 * doublest.c (ldfrexp): Remove function.
3856 (convert_doublest_to_floatformat): Call frexpl instead of
3857 ldfrexp.
3858
88b48903
WN
38592013-06-21 Will Newton <will.newton@linaro.org>
3860
3861 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3862 * gnulib/aclocal.m4: Regenerate.
3863 * gnulib/config.in: Regenerate.
3864 * gnulib/configure: Regenerate.
3865 * gnulib/import/Makefile.am: Update.
3866 * gnulib/import/Makefile.in: Update.
3867 * gnulib/import/m4/gnulib-cache.m4: Update.
3868 * gnulib/import/m4/gnulib-comp.m4: Update.
3869 * gnulib/import/float+.h: Import.
3870 * gnulib/import/float.c: Import.
3871 * gnulib/import/float.in.h: Import.
3872 * gnulib/import/fpucw.h: Import.
3873 * gnulib/import/frexp.c: Import.
3874 * gnulib/import/frexpl.c: Import.
3875 * gnulib/import/isnan.c: Import.
3876 * gnulib/import/isnand-nolibm.h: Import.
3877 * gnulib/import/isnand.c: Import.
3878 * gnulib/import/isnanl-nolibm.h: Import.
3879 * gnulib/import/isnanl.c: Import.
3880 * gnulib/import/itold.c: Import.
3881 * gnulib/import/m4/exponentd.m4: Import.
3882 * gnulib/import/m4/exponentl.m4: Import.
3883 * gnulib/import/m4/float_h.m4: Import.
3884 * gnulib/import/m4/fpieee.m4: Import.
3885 * gnulib/import/m4/frexp.m4: Import.
3886 * gnulib/import/m4/frexpl.m4: Import.
3887 * gnulib/import/m4/isnand.m4: Import.
3888 * gnulib/import/m4/isnanl.m4: Import.
3889 * gnulib/import/m4/math_h.m4: Import.
3890 * gnulib/import/math.c: Import.
3891 * gnulib/import/math.in.h: Import.
3892
4353c9e6
JK
38932013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3894
3895 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3896 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3897 signature_INTEL_edx comparisons.
3898
e3e06db3
DE
38992013-06-20 Doug Evans <dje@google.com>
3900
6ac97d4c
DE
3901 symtab/15652
3902 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3903 All callers updated.
3904 (open_dwp_file): If we can't find the dwp file, search the basename
3905 in debug-file-directory.
3906
93417882
DE
3907 * dwarf2read.c (struct dwp_file): Fix comment.
3908 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3909
e3e06db3
DE
3910 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3911 better.
3912
0878d0fa
YQ
39132013-06-20 Yao Qi <yao@codesourcery.com>
3914
3915 * breakpoint.c (create_breakpoint): Fix code indentation.
3916
023fa29b
YQ
39172013-06-20 Yao Qi <yao@codesourcery.com>
3918
3919 * breakpoint.c (create_breakpoints_sal_default): Remove
3920 parameter 'lsal'. Update declaration.
3921 (bkpt_create_breakpoints_sal): Caller update.
3922 (tracepoint_create_breakpoints_sal): Likewise.
3923
c898adb7
YQ
39242013-06-20 Pedro Alves <pedro@codesourcery.com>
3925 Yao Qi <yao@codesourcery.com>
3926
3927 * NEWS: Mention the new option '--skip-unavailable' of command
3928 -data-list-register-values.
3929 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3930 --skip-unavailable option. Adjust to use output_register.
3931 (output_register): Add new 'skip_unavailable' parameter.
3932 Handle it.
3933
4d157a3d
MF
39342013-06-19 Mike Frysinger <vapier@gentoo.org>
3935
3936 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3937 common/i386-gcc-cpuid.h.
3938 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3939 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3940 Copy the latest version from upstream gcc.
3941 * common/linux-btrace.c: Include i386-cpuid.h.
3942 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3943 call to i386_cpuid.
3944 (cpu_supports_btrace): Likewise.
3945 * go32-nat.c: Include i386-cpuid.h.
3946 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3947
1ce4db08
DE
39482013-06-19 Doug Evans <dje@google.com>
3949
3950 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3951 (get_section_index): Ditto.
3952
0e4777df
TT
39532013-06-19 Tom Tromey <tromey@redhat.com>
3954
3955 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3956 "dprintf" help.
3957
3190f0c6
DE
39582013-06-18 Doug Evans <dje@google.com>
3959
3960 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3961 before using it.
3962 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3963 Move test of cu_index closer to use. Print complaint if cu_index
3964 is bad.
3965
8b89a20a
JB
39662013-06-18 Joel Brobecker <brobecker@adacore.com>
3967
3968 * machoread.c (oso_vector): Delete this global.
3969 (macho_register_oso): Add new parameter "oso_vector_ptr".
3970 Use it instead of the "oso_vector" global.
3971 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3972 (macho_symfile_read): Use a local oso_vector, to be free'ed
3973 at the end of this function, in place of the old "oso_vector"
3974 global. Update various function calls accordingly. Use one
3975 single cleanup chain for the entire function.
3976
59b0c7c1
JB
39772013-06-18 Joel Brobecker <brobecker@adacore.com>
3978
937c708c 3979 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
3980 DWARF2_PER_OBJFILE by uses of DATA instead.
3981
427cd150
TT
39822013-06-18 Tom Tromey <tromey@redhat.com>
3983
3984 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3985 argument.
3986 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3987 Special case signals other than GDB_SIGNAL_TRAP.
3988 (explains_signal_watchpoint): New function.
3989 (base_breakpoint_explains_signal): Add 'sig' argument.
3990 (initialize_breakpoint_ops): Set 'explains_signal' method for
3991 watchpoints.
3992 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3993 signal argument.
3994 (bpstat_explains_signal): Likewise.
3995 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3996
2d57700b
TT
39972013-06-18 Tom Tromey <tromey@redhat.com>
3998
3999 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4000
ac475191
TT
40012013-06-18 Tom Tromey <tromey@redhat.com>
4002
4003 * python/python.c (finish_python_initialization): Decref
4004 'pythondir' on failure path as well.
4005
5bd1ef56
TT
40062013-06-18 Tom Tromey <tromey@redhat.com>
4007
4008 PR symtab/15391:
4009 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4010 after taking bits_to_skip into account. Sign extend byte_offset.
4011 * utils.h (gdb_sign_extend): Declare.
4012 * utils.c (gdb_sign_extend): New function.
4013
92fac807
JK
40142013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4015
4016 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4017
2d503272
PM
40182013-06-17 Pierre Muller <muller@sourceware.org>
4019
4020 * corelow.c (core_open): Print GDB signal name instead of target
4021 signal number.
4022
6916fd98
MF
40232013-06-17 Mike Frysinger <vapier@gentoo.org>
4024
4025 * .gitignore: Add /gcore.
4026
9c02c129
DE
40272013-06-13 Doug Evans <dje@google.com>
4028
4029 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4030 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4031
d0548fa2
PM
40322013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4033
4034 * stack.c (backtrace_command_1): Fix indentation.
4035
22128028
JB
40362013-06-11 Joel Brobecker <brobecker@adacore.com>
4037
4038 * window-nat.c (thread_rec): Add missing empty line after
4039 local variable declaration.
4040
2ed3e009
JB
40412013-06-11 Joel Brobecker <brobecker@adacore.com>
4042
4043 * windows-nat.c (thread_rec): Revert format used to print
4044 error code returned by SuspendThread from %d back to %u.
4045
0c3d84be
JB
40462013-06-11 Joel Brobecker <brobecker@adacore.com>
4047
4048 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4049 ID in debug trace.
4050 (get_windows_debug_event): Likewise, for all debug traces.
4051
80e88e1a
JB
40522013-06-11 Joel Brobecker <brobecker@adacore.com>
4053
4054 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4055 warning message.
4056
1edebdbf
YQ
40572013-06-08 Pedro Alves <pedro@codesourcery.com>
4058 Yao Qi <yao@codesourcery.com>
4059
4060 * mi/mi-main.c (get_register): Remove declaration.
4061 (output_register): Declare.
4062 (mi_cmd_data_list_register_values): Remove local variable
4063 'tuple_cleanup'. Move some code into output_register.
4064 (get_register): Renamed to ...
4065 (output_register): ... this. Output the register's
4066 "number" ui_out tuple here.
4067
47d48711
PA
40682013-06-07 Pedro Alves <palves@redhat.com>
4069
4070 * darwin-nat.c: Fix formating in copyright header.
4071 * darwin-nat.h: Likewise.
4072 * gnu-nat.c: Likewise.
4073 * machoread.c: Likewise.
4074
3aee8918
PA
40752013-06-07 Pedro Alves <palves@redhat.com>
4076
5f2b57b5 4077 PR server/14823
3aee8918
PA
4078 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4079 static. Output a global target description pointer.
4080 (init_registers_${name}): Adjust to initialize a
4081 target description structure.
4082
fe8400b4
WN
40832013-06-07 Will Newton <will.newton@linaro.org>
4084
4085 * printcmd.c (build_address_symbolic): Call
4086 gdbarch_addr_bits_remove for text minimal symbols.
4087
20df6206
WN
40882013-06-07 Will Newton <will.newton@linaro.org>
4089
4090 * MAINTAINERS: Add myself to Write After Approval.
4091
aef525cb
YQ
40922013-06-07 Yao Qi <yao@codesourcery.com>
4093
4094 * tracepoint.c (start_tracing): Move code to ...
4095 (trace_reset_local_state): ... here. New.
4096 (disconnect_tracing): Don't call set_current_traceframe,
4097 set_tracepoint_num, and set_traceframe_context. Call
4098 trace_reset_local_state instead.
4099 (tfile_close): Call trace_reset_local_state.
4100 * ctf.c (ctf_close): Likewise.
4101 * remote.c (remote_close): Likewise.
4102 * tracepoint.h (trace_reset_local_state): Declare.
4103
d2415c6c
DE
41042013-06-06 Doug Evans <dje@google.com>
4105
4106 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4107 and fix header docs.
4108
69fc87c2
DE
41092013-06-05 Doug Evans <dje@google.com>
4110 Keith Seitz <keiths@redhat.com>
4111
4112 PR 15519
4113 * cp-namespace.c (find_symbol_in_baseclass): Call
4114 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4115 Check result of call to lookup_symbol_static.
4116 Call lookup_static_symbol_aux unconditionally.
4117 Call check_typedef on base types before accessing them.
4118 (cp_lookup_nested_symbol): Fix comment.
4119
a513d1e8
LM
41202013-06-05 Luis Machado <lgustavo@codesourcery.com>
4121
4122 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4123 minimal symbols pointing to function descriptors.
4124
351a6f02
TT
41252013-06-05 Tom Tromey <tromey@redhat.com>
4126
4127 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4128
5e1b953b 41292013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4130 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4131
4132 * remote.c (remote_wait_as): Restore signal handler before returning
4133 when GDB gets a notification.
4134
f9e14852
GB
41352013-06-04 Gary Benson <gbenson@redhat.com>
4136
8445cbf1 4137 PR 2328
f9e14852
GB
4138 * breakpoint.h (handle_solib_event): Moved function declaration
4139 to solib.h.
4140 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4141 (bpstat_stop_status): Pass new argument to handle_solib_event.
4142 * solib.h (update_solib_breakpoints): New function declaration.
4143 (handle_solib_event): Moved function declaration from
4144 breakpoint.h.
4145 * solib.c (update_solib_breakpoints): New function.
4146 (handle_solib_event): Moved function from breakpoint.c.
4147 Updated to call solib_ops->handle_event if not NULL.
4148 * solist.h (target_so_ops): New fields "update_breakpoints" and
4149 "handle_event".
4150 * infrun.c (set_stop_on_solib_events): New function.
4151 (_initialize_infrun): Use the above for "set
4152 stop-on-solib-events".
4153 (handle_inferior_event): Pass new argument to handle_solib_event.
4154 * solib-svr4.c (probe.h): New include.
4155 (svr4_free_library_list): New forward declaration.
4156 (probe_action): New enum.
4157 (probe_info): New struct.
4158 (probe_info): New static variable.
4159 (NUM_PROBES): New definition.
4160 (svr4_info): New fields "using_xfer", "probes_table" and
4161 "solib_list".
4162 (free_probes_table): New function.
4163 (free_solib_list): New function.
4164 (svr4_pspace_data_cleanup): Free probes table and solib list.
4165 (svr4_copy_library_list): New function.
4166 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4167 (svr4_read_so_list): New parameter "prev_lm".
4168 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4169 (svr4_current_sos): New function.
4170 (probe_and_action): New struct.
4171 (hash_probe_and_action): New function.
4172 (equal_probe_and_action): Likewise.
4173 (register_solib_event_probe): Likewise.
4174 (solib_event_probe_at): Likewise.
4175 (solib_event_probe_action): Likewise.
4176 (solist_update_full): Likewise.
4177 (solist_update_incremental): Likewise.
4178 (disable_probes_interface_cleanup): Likewise.
4179 (svr4_handle_solib_event): Likewise.
4180 (svr4_update_solib_event_breakpoint): Likewise.
4181 (svr4_update_solib_event_breakpoints): Likewise.
4182 (svr4_create_solib_event_breakpoints): Likewise.
4183 (enable_break): Free probes table before creating breakpoints.
4184 Use svr4_create_solib_event_breakpoints to create breakpoints.
4185 (svr4_solib_create_inferior_hook): Free the solib list.
4186 (_initialize_svr4_solib): Initialise
4187 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4188
ced63ec0
GB
41892013-06-04 Gary Benson <gbenson@redhat.com>
4190
4191 * target.h (target_ops): New field
4192 "to_augmented_libraries_svr4_read".
4193 (target_augmented_libraries_svr4_read): New macro.
4194 * target.c (update_current_target): Handle
4195 to_augmented_libraries_svr4_read.
4196 * remote.c (remote_state): New field
4197 "augmented_libraries_svr4_read".
4198 (remote_augmented_libraries_svr4_read_feature): New function.
4199 (remote_protocol_features): Add entry for
4200 "augmented-libraries-svr4-read".
4201 (remote_augmented_libraries_svr4_read): New function.
4202 (init_remote_ops): Initialize
4203 remote_ops.to_augmented_libraries_svr4_read.
4204
7f91dbec
GB
42052013-06-04 Gary Benson <gbenson@redhat.com>
4206
4207 * NEWS: Update.
4208
607ece04
GB
42092013-06-04 Gary Benson <gbenson@redhat.com>
4210
4211 * objfiles.h (inhibit_section_map_updates): New function
4212 declaration.
4213 (resume_section_map_updates): Likewise.
4214 (resume_section_map_updates_cleanup): Likewise.
4215 * objfiles.c (objfile_pspace_info): Removed field
4216 "objfiles_changed_p". New fields "new_objfiles_available",
4217 "section_map_dirty" and "inhibit_updates".
4218 (allocate_objfile): Set new_objfiles_available.
4219 (free_objfile): Set section_map_dirty.
4220 (objfile_relocate1): Likewise.
4221 (in_plt_section): Likewise.
4222 (find_pc_section): Update the conditions under which the
4223 section map will be updated.
4224 (inhibit_section_map_updates): New function.
4225 (resume_section_map_updates): Likewise.
4226 (resume_section_map_updates_cleanup): Likewise.
4227
9ee6a5ac
GB
42282013-06-04 Gary Benson <gbenson@redhat.com>
4229
4230 * probe.h (get_probe_argument_count): New declaration.
4231 (evaluate_probe_argument): Likewise.
4232 * probe.c (get_probe_argument_count): New function.
4233 (evaluate_probe_argument): Likewise.
4234 (probe_safe_evaluate_at_pc): Use the above new functions.
4235
845d4708
AM
42362013-06-04 Alan Modra <amodra@gmail.com>
4237
4238 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4239 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4240 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4241 target mem reads on optional insns.
4242 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4243 ppc_insns_match_pattern calls.
4244 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4245 Add match for power7 thread safety insns, and new order of
4246 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4247 invocation in comment, and update rest of comment.
4248 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4249 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4250 (ppc64_standard_linkage2_target): Update insn offsets.
4251 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4252 stubs first. Update calls.
4253
404e278f
YQ
42542013-06-04 Yao Qi <yao@codesourcery.com>
4255
4256 * solib.c (solib_find): Don't need dir separator if path has
4257 drive spec.
4258
f6aea118
JB
42592013-06-03 Joel Brobecker <brobecker@adacore.com>
4260
4261 Revert (indirectly causes a SIGSEGV):
4262 * machoread.c (macho_symfile_read): Assign first cleanup to
4263 'back_to'.
4264
87967e27
YQ
42652013-06-03 Yao Qi <yao@codesourcery.com>
4266
4267 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4268 mi-parse.c. Make them static.
4269 (mi_all_values): Likewise.
4270 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4271 mi_parse_print_values. Make it external.
4272 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4273 Remove the declarations.
4274 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4275 * mi/mi-parse.h (mi_parse_print_values): Declare.
4276 * mi/mi-cmd-stack.c: Include mi-parse.h.
4277 (parse_print_values): Remove
4278 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4279 of parse_print_values.
4280 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4281
3ca73e0c
YQ
42822013-05-31 Pedro Alves <pedro@codesourcery.com>
4283 Yao Qi <yao@codesourcery.com>
4284
4285 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4286 (encode_actions): Move code to ...
4287 (all_tracepoint_actions_and_cleanup): ... here. New.
4288 (trace_dump_command): Likewise.
4289
4e993a19
TT
42902013-05-30 Tom Tromey <tromey@redhat.com>
4291
4292 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4293
e3b76b4f
TT
42942013-05-30 Tom Tromey <tromey@redhat.com>
4295
4296 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4297 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4298 'old_chain' argument. Add 'parser_result' argument.
4299 (gdb_xml_create_parser_and_cleanup): Remove old version.
4300 (gdb_xml_parse_quick): Update.
4301 (xml_process_xincludes): Update.
4302 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4303 declare.
4304
db26349c
TT
43052013-05-30 Tom Tromey <tromey@redhat.com>
4306
4307 * probe.c (collect_probes): Check arguments for NULL before
4308 calling compile_rx_or_error.
4309 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4310 Remove NULL return.
4311
77f9e713
TT
43122013-05-30 Tom Tromey <tromey@redhat.com>
4313
4314 * infrun.c (adjust_pc_after_break): Introduce an outer null
4315 cleanup.
4316
45475de7
TT
43172013-05-30 Tom Tromey <tromey@redhat.com>
4318
4319 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4320
ac5007fd
TT
43212013-05-30 Tom Tromey <tromey@redhat.com>
4322
4323 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4324 for 'old_chain'. Do not check 'head' before processing
4325 cleanups.
4326
cd82eddc
TT
43272013-05-30 Tom Tromey <tromey@redhat.com>
4328
4329 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4330 "cleanup_tuple".
4331
57cee33a
TT
43322013-05-30 Tom Tromey <tromey@redhat.com>
4333
4334 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4335 inner scope. Unconditionally call do_cleanups.
4336
795d915c
TT
43372013-05-30 Tom Tromey <tromey@redhat.com>
4338
4339 * source.c (find_and_open_source): Call do_cleanups.
4340
1fc3cf4a
TT
43412013-05-30 Tom Tromey <tromey@redhat.com>
4342
4343 * linux-thread-db.c (thread_db_load_search): Unconditionally
4344 call do_cleanups.
4345
e35ac9bf
TT
43462013-05-30 Tom Tromey <tromey@redhat.com>
4347
4348 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4349 for 'cleanup'; instead use a later one.
4350
f3300387
TT
43512013-05-30 Tom Tromey <tromey@redhat.com>
4352
4353 * python/py-breakpoint.c (bppy_get_commands): Use
4354 explicit, unconditional return.
4355 * python/py-frame.c (frapy_read_var): Likewise.
4356 * python/python.c (gdbpy_decode_line): Likewise.
4357
c27e16e3
TT
43582013-05-30 Tom Tromey <tromey@redhat.com>
4359
4360 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4361 do_cleanups on all return paths.
4362
5ae85e44
TT
43632013-05-30 Tom Tromey <tromey@redhat.com>
4364
4365 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4366
73b8d9da
TT
43672013-05-30 Tom Tromey <tromey@redhat.com>
4368
4369 * stabsread.c (read_struct_type): Call do_cleanups along
4370 all return paths.
4371
7d266584
MR
43722013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4373
4374 * mips-linux-tdep.c: Adjust formatting throughout.
4375
0f900f54
TT
43762013-05-30 Tom Tromey <tromey@redhat.com>
4377
4378 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4379 along all return paths.
4380
a991ac28
TT
43812013-05-30 Tom Tromey <tromey@redhat.com>
4382
4383 * symfile.c (find_separate_debug_file): Call do_cleanups
4384 along all return paths.
4385
1abaf042
TT
43862013-05-30 Tom Tromey <tromey@redhat.com>
4387
4388 * symtab.c (search_symbols): Introduce a null cleanup for
4389 'retval_chain'.
4390
edefe1da
TT
43912013-05-30 Tom Tromey <tromey@redhat.com>
4392
4393 * python/py-value.c (valpy_binop): Call do_cleanups before
4394 exiting loop.
4395
54f72dcc
TT
43962013-05-30 Tom Tromey <tromey@redhat.com>
4397
4398 * python/py-prettyprint.c (print_children): Remove extra
4399 do_cleanups call.
4400
af1c6971
TT
44012013-05-30 Tom Tromey <tromey@redhat.com>
4402
4403 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4404 all return paths.
4405
b862ce75
TT
44062013-05-30 Tom Tromey <tromey@redhat.com>
4407
4408 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4409 along all return paths.
4410
e12fefc8
TT
44112013-05-30 Tom Tromey <tromey@redhat.com>
4412
4413 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4414 call do_cleanups.
4415
4867f990
TT
44162013-05-30 Tom Tromey <tromey@redhat.com>
4417
4418 * varobj.c (c_value_of_root): Call do_cleanups along all
4419 return paths.
4420
4fd2d6af
TT
44212013-05-30 Tom Tromey <tromey@redhat.com>
4422
4423 * tracepoint.c (trace_dump_command): Unconditionally call
4424 do_cleanups.
4425
752eb8b4
TT
44262013-05-30 Tom Tromey <tromey@redhat.com>
4427
4428 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4429 do_cleanups earlier.
4430
e42d0aa5
TT
44312013-05-30 Tom Tromey <tromey@redhat.com>
4432
4433 * machoread.c (macho_symfile_read): Assign first cleanup to
4434 'back_to'.
4435
4bbc010a
TT
44362013-05-30 Tom Tromey <tromey@redhat.com>
4437
4438 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4439
b9635925
TT
44402013-05-30 Tom Tromey <tromey@redhat.com>
4441
4442 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4443
25f43500
TT
44442013-05-30 Tom Tromey <tromey@redhat.com>
4445
4446 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4447 call discard_cleanups.
4448 (inf_ptrace_attach): Likewise.
4449
d6a2e54a
TT
44502013-05-30 Tom Tromey <tromey@redhat.com>
4451
4452 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4453 return paths.
4454 (mips_initialize): Likewise.
4455 (common_open): Call do_cleanups.
4456
48be7c1b
TT
44572013-05-30 Tom Tromey <tromey@redhat.com>
4458
4459 * utils.c (internal_vproblem): Call do_cleanups.
4460
e61727ab
TT
44612013-05-30 Tom Tromey <tromey@redhat.com>
4462
4463 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4464
b81b921f
TT
44652013-05-30 Tom Tromey <tromey@redhat.com>
4466
4467 * cli/cli-script.c (setup_user_args): Don't return after error.
4468
fe48dfb1
TT
44692013-05-30 Tom Tromey <tromey@redhat.com>
4470
4471 * somread.c (som_symtab_read): Call do_cleanups.
4472
27833de7
TT
44732013-05-30 Tom Tromey <tromey@redhat.com>
4474
4475 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4476
5b3fca71
TT
44772013-05-30 Tom Tromey <tromey@redhat.com>
4478
4479 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4480 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4481 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4482 * source.c (show_substitute_path_command): Call do_cleanups.
4483 (unset_substitute_path_command, set_substitute_path_command):
4484 Likewise.
4485 * symfile.c (load_command): Call do_cleanups.
4486
af83e3f8
TT
44872013-05-30 Tom Tromey <tromey@redhat.com>
4488
4489 * contrib/cleanup_check.py: New file.
4490 * contrib/gcc-with-excheck: Add option parsing.
4491
564eac42
JB
44922013-05-30 Joel Brobecker <brobecker@adacore.com>
4493
4494 * windows-nat.c (windows_delete_thread): Add missing space
4495 in cast expression.
4496
47902076
HAQ
44972013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4498
4499 * inferior.c (top level): Include tilde.h.
4500 (add_inferior_command): Call tilde_expand on the value of 'exec'
4501 argument.
4502
23da373a
YQ
45032013-05-30 Pedro Alves <pedro@codesourcery.com>
4504 Yao Qi <yao@codesourcery.com>
4505
4506 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4507 Caller update.
4508 (encode_actions): Likewise.
4509 * remote.c (remote_download_tracepoint): Caller update.
4510 * tracepoint.h (encode_actions): Update declaration.
4511
a6e6f791
PA
45122013-05-30 Pedro Alves <palves@redhat.com>
4513
4514 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4515 pointer.
4516
36d25514
YQ
45172013-05-30 Yao Qi <yao@codesourcery.com>
4518
4519 * remote.c (remote_check_symbols): Remove unused parameter
4520 'objfile'.
4521 Declaration update.
4522 (remote_start_remote, remote_new_objfile): Caller update.
4523
62a813cc
YQ
45242013-05-30 Yao Qi <yao@codesourcery.com>
4525
4526 * mi/mi-cmds.c (mi_cmds): Define MI command
4527 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4528 DEF_MI_CMD_CLI.
4529
28439a30
PA
45302013-05-29 Pedro Alves <palves@redhat.com>
4531
4532 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4533 (remote_insert_watchpoint, remote_remove_watchpoint)
4534 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4535 (remote_verify_memory, compare_sections_command)
4536 (remote_search_memory): Set the general process/thread on the
4537 remote side.
4538
6ac1c082
PA
45392013-05-29 Pedro Alves <palves@redhat.com>
4540
4541 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4542 (_initialize_aarch64_tdep): Don't call
4543 initialize_tdesc_aarch64_without_fpu.
4544 * features/Makefile (WHICH): Remove reference to
4545 aarch64-without-fpu.
4546 * features/aarch64-without-fpu.c: Delete file.
4547 * regformats/aarch64-without-fpu.dat: Delete file.
4548
a73e3634
YQ
45492013-05-28 Yao Qi <yao@codesourcery.com>
4550
4551 * tracepoint.c (stringify_collection_list): Remove parameter
4552 'string'.
4553 (encode_actions): Caller update. Remove local variables.
4554
c0ea94eb
YQ
45552013-05-24 Yao Qi <yao@codesourcery.com>
4556
4557 * tracepoint.c (TFILE_PID): Remove.
4558 (tfile_open): Don't add thread and inferior.
4559 (tfile_close): Don't set 'inferior_ptid'. Don't call
4560 exit_inferior_silent.
4561 (tfile_thread_alive): Remove.
4562 (init_tfile_ops): Don't set field 'to_thread_alive' of
4563 tfile_ops.
4564
20d7f211
DE
45652013-05-23 Doug Evans <dje@google.com>
4566
4567 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4568
8658d16d
PA
45692013-05-23 Pedro Alves <palves@redhat.com>
4570
4571 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4572 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4573 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4574 Only define if HAVE_SOCKETS is defined.
4575 * configure.ac: Check for sys/socket.h.
4576 * config.in, configure: Regenerate.
4577
21aa081e
PA
45782013-05-23 Pedro Alves <palves@redhat.com>
4579
4580 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4581 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4582 printing uint32_t variables.
4583
c2d6af84
PA
45842013-05-23 Pedro Alves <palves@redhat.com>
4585
4586 * NEWS: Mention GDBserver range stepping support.
4587
c1e36e3e
PA
45882013-05-23 Yao Qi <yao@codesourcery.com>
4589 Pedro Alves <palves@redhat.com>
4590
4591 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4592 field.
4593 * infcmd.c (step_once, until_next_command): Enable range stepping.
4594 * infrun.c (displaced_step_prepare): Disable range stepping.
4595 (resume): Disable range stepping if stepping over a breakpoint or
4596 we have software watchpoints. If range stepping is enabled,
4597 assert the thread is in the stepping range.
4598 (clear_proceed_status_thread): Clear may_range_step.
4599 (handle_inferior_event): Disable range stepping as soon as we know
4600 the thread that hit the event. Re-enable it whenever we're going
4601 to step with a step range.
4602 * remote.c (struct vCont_action_support) <r>: New field.
4603 (use_range_stepping): New global.
4604 (remote_vcont_probe): Handle 'r' action.
4605 (append_resumption): Append an 'r' action if the thread may range
4606 step.
4607 (show_range_stepping): New function.
4608 (set_range_stepping): New function.
4609 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4610 'set range-stepping' and 'show range-stepping' commands.
4611 * NEWS: Mention range stepping, the new vCont;r action, and the
4612 new "set/show range-stepping" commands.
4613
d458bd84
PA
46142013-05-23 Yao Qi <yao@codesourcery.com>
4615 Pedro Alves <palves@redhat.com>
4616
4617 * remote.c (struct vCont_action_support): New struct.
4618 (struct remote_state) <support_vCont_t>: Remove field.
4619 <vCont_actions_support>: New field.
4620 (remote_vcont_probe, remote_stop_ns): Update.
4621
ce4c476a
PA
46222013-05-23 Yao Qi <yao@codesourcery.com>
4623 Pedro Alves <palves@redhat.com>
4624
4625 * gdbthread.h (pc_in_thread_step_range): New declaration.
4626 * thread.c (pc_in_thread_step_range): New function.
4627 * infrun.c (handle_inferior_event): Use it.
4628
ce70887a
JB
46292013-05-23 Joel Brobecker <brobecker@adacore.com>
4630
4631 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4632 of sprintf.
4633
55b87a52
KS
46342013-05-22 Keith Seitz <keiths@redhat.com>
4635
4636 * ada-lang.c (is_known_support_routine): Add explicit free of
4637 'func_name' from find_frame_funname.
4638 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4639 for func_name from find_frame_funname.
4640 * python/py-frame.c (frapy_name): Add explicit free of
4641 'name' from find_frame_funname.
4642 * stack.c (find_frame_funname): Add comment explaining that
4643 funcp must be freed by the caller.
4644 Return copy of symbol names instead of pointers.
4645 (print_frame): Add a cleanup for 'funname' from
4646 find_frame_funname.
4647 * stack.h (find_frame_funname): Remove "const" from
4648 'funname' parameter.
4649
5f2e6b00
TT
46502013-05-22 Tom Tromey <tromey@redhat.com>
4651
4652 PR c++/15401:
4653 * c-valprint.c (c_value_print): Use value_addr for
4654 references. Convert back to reference type with value_ref.
4655
d85c4847
EZ
46562013-05-22 Eli Zaretskii <eliz@gnu.org>
4657
4658 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4659 unloaded DLL, it will be done by handle_solib_event. See
4660 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4661 details.
4662
54eb231c
PM
46632013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4664
4665 * ui-out.c: Create typedef ui_out_level_p and define vector
4666 operations for that type.
4667 (struct ui_out): Use a vector instead of an array.
4668 (current_level): Return level from a vector.
4669 (push_level): Create a level in a vector.
4670 (pop_level): Delete a level in a vector.
4671 (ui_out_new): Create initial level zero level, and store in a
4672 vector.
4673 (ui_out_destroy): Add vector cleanup.
4674
ac90359c
PA
46752013-05-22 Pedro Alves <palves@redhat.com>
4676
4677 * python/python-internal.h (gdb_Py_DECREF): Tag with
4678 "ARI: editCase function".
4679
6dcc1893
PP
46802013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4681
4682 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4683
c8c735b9
PA
46842013-05-21 Pedro Alves <palves@redhat.com>
4685
4686 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4687 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4688 * python/py-utils.c (py_decref): Don't check for NULL before
4689 calling Py_DECREF.
4690
1915daeb
PA
46912013-05-21 Pedro Alves <palves@redhat.com>
4692
4693 * python/py-utils.c (py_decref): Remove extra braces.
4694 (gdb_pymodule_addobject): Remove extra braces.
4695 * python-internal.h (gdb_Py_DECREF): New static inline function.
4696 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4697
bd9673a4
PW
46982013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4699
4700 * breakpoints.c (detach_breakpoints): Do not
4701 detach breakpoints locations with loc_type bp_loc_other.
4702
ff6009d0
JK
47032013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4704
4705 Workaround Python 2.6.
4706 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4707 a block.
4708
3641da11
JK
47092013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4710
4711 Code cleanup: constification.
4712 * solib.c (solib_ops): Make return type and ops variable type const.
4713 (set_solib_ops): Make the new_ops parameter and ops variable const.
4714 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4715 (solib_add, solib_keep_data_in_core, clear_solib)
4716 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4717 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4718 const.
4719 * solib.h (set_solib_ops): Make the new_ops parameter const.
4720
776af39e
JB
47212013-05-21 Joel Brobecker <brobecker@adacore.com>
4722
4723 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4724 variable.
4725 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4726 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4727 (SYSTEM_GDBINIT_FILES): New variables.
4728 (all): Add stamp-system-gdbinit.
4729 (stamp-system-gdbinit): New rule.
4730 (clean-system-gdbinit, install-system-gdbinit)
4731 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4732 (install-only): Add dependency on install-system-gdbinit.
4733 (uninstall): Add dependency on uninstall-system-gdbinit.
4734 (clean): Add dependency on clean-system-gdbinit.
4735 * system-gdbinit/elinos.py: New file.
4736 * system-gdbinit/wrs-linux.py: New file.
4737
1509e573
JB
47382013-05-21 Joel Brobecker <brobecker@adacore.com>
4739
4740 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4741
c5867ab6
HZ
47422013-05-21 Hui Zhu <hui@codesourcery.com>
4743
4744 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4745 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4746 * mi/mi-cmd-break.c (ctype.h): New include.
4747 (gdb_obstack.h): New include.
4748 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4749 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4750 (mi_cmd_dprintf_insert): New.
4751 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4752 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4753
7d38e38f
TT
47542013-05-20 Tom Tromey <tromey@redhat.com>
4755
4756 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4757
97b77b39
TT
47582013-05-20 Tom Tromey <tromey@redhat.com>
4759
4760 * python/py-value.c (valpy_get_dynamic_type): Simplify
4761 dynamic_type assignment. Use Py_XINCREF.
4762
53e66479
TT
47632013-05-20 Tom Tromey <tromey@redhat.com>
4764
4765 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4766
dcf87832
TT
47672013-05-20 Tom Tromey <tromey@redhat.com>
4768
4769 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4770 (gdbpy_selected_frame): Move object-construction code
4771 out of TRY_CATCH.
4772
aa36459a
TT
47732013-05-20 Tom Tromey <tromey@redhat.com>
4774
4775 * python/py-arch.c (gdbpy_initialize_arch): Use
4776 gdb_pymodule_addobject.
4777 * python/py-block.c (gdbpy_initialize_blocks): Use
4778 gdb_pymodule_addobject.
4779 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4780 gdb_pymodule_addobject.
4781 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4782 gdb_pymodule_addobject.
4783 * python/py-event.c (gdbpy_initialize_event_generic): Use
4784 gdb_pymodule_addobject.
4785 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4786 gdb_pymodule_addobject.
4787 * python/py-evts.c (add_new_registry): Use
4788 gdb_pymodule_addobject.
4789 (gdbpy_initialize_py_events): Likewise.
4790 * python/py-finishbreakpoint.c
4791 (gdbpy_initialize_finishbreakpoints): Use
4792 gdb_pymodule_addobject.
4793 * python/py-frame.c (gdbpy_initialize_frames): Use
4794 gdb_pymodule_addobject.
4795 * python/py-function.c (gdbpy_initialize_functions): Use
4796 gdb_pymodule_addobject.
4797 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4798 gdb_pymodule_addobject.
4799 * python/py-infthread.c (gdbpy_initialize_thread): Use
4800 gdb_pymodule_addobject.
4801 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4802 gdb_pymodule_addobject.
4803 * python/py-param.c (gdbpy_initialize_parameters): Use
4804 gdb_pymodule_addobject.
4805 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4806 gdb_pymodule_addobject.
4807 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4808 gdb_pymodule_addobject.
4809 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4810 gdb_pymodule_addobject.
4811 * python/py-type.c (gdbpy_initialize_types): Use
4812 gdb_pymodule_addobject.
4813 * python/py-utils.c (gdb_pymodule_addobject): New function.
4814 * python/py-value.c (gdbpy_initialize_values): Use
4815 gdb_pymodule_addobject.
4816 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4817 * python/python.c (_initialize_python): Use
4818 gdb_pymodule_addobject.
4819
3d4a3c3e
TT
48202013-05-20 Tom Tromey <tromey@redhat.com>
4821
4822 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4823 * python/py-param.c (get_set_value, get_show_value): Use
4824 explicit decrefs.
4825 * python/python.c (start_type_printers, apply_type_printers):
4826 Use explicit decrefs.
4827
72ff8829
TT
48282013-05-20 Tom Tromey <tromey@redhat.com>
4829
4830 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4831 incref the module.
4832
02146ba5
TT
48332013-05-20 Tom Tromey <tromey@redhat.com>
4834
4835 * python/python.c (gdbpy_run_events): Decref the result
4836 of PyObject_CallObject.
4837
33ee792f
TT
48382013-05-20 Tom Tromey <tromey@redhat.com>
4839
4840 * python/py-symtab.c (set_sal): Use
4841 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4842 (symtab_and_line_to_sal_object): Update.
4843
fcb49fc8
TT
48442013-05-20 Tom Tromey <tromey@redhat.com>
4845
4846 * python/py-param.c (compute_enum_values): Decref 'item'.
4847
0646da15
TT
48482013-05-20 Tom Tromey <tromey@redhat.com>
4849
4850 * mi/mi-main.c: Include python-internal.h.
4851 (mi_cmd_list_features): Check gdb_python_initialized.
4852 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4853 (python_inferior_exit, python_new_objfile, add_thread_object)
4854 (delete_thread_object, py_free_inferior): Check
4855 gdb_python_initialized.
4856 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4857 gdb_python_initialized.
4858 * python/py-type.c (save_objfile_types): Check
4859 gdb_python_initialized.
4860 * python/python-internal.h (gdb_python_initialized): Declare.
4861 * python/python.c (ensure_python_env): Throw exception if
4862 Python not initialized.
4863 (before_prompt_hook, source_python_script_for_objfile)
4864 (start_type_printers, apply_type_printers,
4865 free_type_printers): Check gdb_python_initialized.
4866 * varobj.c (varobj_get_display_hint)
4867 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4868 (install_new_value_visualizer, varobj_set_visualizer)
4869 (value_get_print_value): Check gdb_python_initialized.
4870
999633ed
TT
48712013-05-20 Tom Tromey <tromey@redhat.com>
4872
4873 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4874 Check errors.
4875 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4876 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4877 Check errors.
4878 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4879 Check errors.
4880 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4881 Check errors.
4882 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4883 Check errors.
4884 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4885 init function to return 'int'.
4886 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4887 Return 'int'. Check errors.
4888 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4889 Check errors.
4890 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4891 Return 'int'. Check errors.
4892 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4893 Check errors.
4894 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4895 Check errors.
4896 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4897 Check errors.
4898 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4899 Check errors.
4900 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4901 Check errors.
4902 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4903 Check errors.
4904 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4905 Check errors.
4906 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4907 Check errors.
4908 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4909 Check errors.
4910 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4911 Check errors.
4912 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4913 Check errors.
4914 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4915 Check errors.
4916 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4917 Check errors.
4918 * python/python-internal.h (gdbpy_initialize_auto_load,
4919 gdbpy_initialize_values, gdbpy_initialize_frames,
4920 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4921 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4922 gdbpy_initialize_blocks, gdbpy_initialize_types,
4923 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4924 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4925 gdbpy_initialize_finishbreakpoints,
4926 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4927 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4928 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4929 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4930 gdbpy_initialize_signal_event,
4931 gdbpy_initialize_breakpoint_event,
4932 gdbpy_initialize_continue_event,
4933 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4934 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4935 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4936 * python/python.c (gdb_python_initialized): New global.
4937 (gdbpy_initialize_events): Return 'int'. Check errors.
4938 (_initialize_python): Check errors. Set
4939 gdb_python_initialized.
4940
18868860
TT
49412013-05-20 Tom Tromey <tromey@redhat.com>
4942
4943 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4944 Decref the reslut of PyObject_CallMethod.
4945
9f4ff0c2
TT
49462013-05-20 Tom Tromey <tromey@redhat.com>
4947
4948 * python/py-event.c (gdbpy_initialize_event_generic): Return
4949 early if PyType_Ready fails.
4950
0d3a2e8a
TT
49512013-05-20 Tom Tromey <tromey@redhat.com>
4952
4953 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4954 as 'default' in the switch.
4955
b86af38a
TT
49562013-05-20 Tom Tromey <tromey@redhat.com>
4957
4958 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4959 get_addr_from_python calls out of TRY_CATCH.
4960 (infpy_write_memory, infpy_search_memory): Likewise.
4961 * python/py-utils.c (get_addr_from_python): Return negative
4962 value on error. Use TRY_CATCH.
4963 * python/python-internal.h (get_addr_from_python): Use
4964 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4965
c127ec58
TT
49662013-05-20 Tom Tromey <tromey@redhat.com>
4967
4968 * python/py-event.c (evpy_emit_event): Decref the
4969 result of PyObject_CallFunctionObjArgs.
4970
ba327838
TT
49712013-05-20 Tom Tromey <tromey@redhat.com>
4972
4973 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4974 Correctly decref.
4975
d8191432
TT
49762013-05-20 Tom Tromey <tromey@redhat.com>
4977
4978 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4979
5d153bd1
TT
49802013-05-20 Tom Tromey <tromey@redhat.com>
4981
4982 * python/py-event.h (gdbpy_initialize_event_generic): Use
4983 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4984 * python/py-evts.c (add_new_registry): Use
4985 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4986 * python/python-internal.h
4987 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4988
56cc411c
TT
49892013-05-20 Tom Tromey <tromey@redhat.com>
4990
4991 * python/py-arch.c (archpy_disassemble): Update.
4992 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4993 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4994 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4995 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4996 macro.
4997 (GDB_PY_HANDLE_EXCEPTION): Update.
4998 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4999
8919e174
TT
50002013-05-20 Tom Tromey <tromey@redhat.com>
5001
5002 * python/python-internal.h (events_object_type): Remove.
5003
9b08f225
TT
50042013-05-20 Tom Tromey <tromey@redhat.com>
5005
f5aee5ee
AM
5006 * python/py-event.h (evpy_emit_event): Use
5007 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5008 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5009 New macro.
9b08f225 5010
f04010ff
TT
50112013-05-20 Tom Tromey <tromey@redhat.com>
5012
5013 * py-evtregistry.c (create_event_object): Decref
5014 eventregistry_object if PyList_New fails.
5015
3919fd96
TT
50162013-05-20 Tom Tromey <tromey@redhat.com>
5017
5018 * py-cmd.c (gdbpy_string_to_argv): Check result of
5019 PyList_New.
5020
0430e8cb
TT
50212013-05-20 Tom Tromey <tromey@redhat.com>
5022
5023 * python/python.c (before_prompt_hook): Add cleanup to
5024 decref 'hook'.
5025
764123e4
TT
50262013-05-20 Tom Tromey <tromey@redhat.com>
5027
5028 * python/py-function.c (fnpy_init): Decref result of
5029 PyObject_GetAttrString.
5030
634c58be
TT
50312013-05-20 Tom Tromey <tromey@redhat.com>
5032
5033 * python/py-threadevent.c (get_event_thread): Use
5034 CPYCHECKER_RETURNS_BORROWED_REF.
5035 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5036 New define.
5037 (pspace_to_pspace_object, objfile_to_objfile_object)
5038 (find_thread_object): Use it.
5039
62eec1a5
TT
50402013-05-20 Tom Tromey <tromey@redhat.com>
5041
5042 * python/py-arch.c (arch_object_type): Use
5043 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5044 * python/py-block.c (block_syms_iterator_object_type):
5045 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5046 * python/py-bpevent.c (breakpoint_event_object_type):
5047 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5048 * python/py-cmd.c (cmdpy_object_type): Use
5049 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5050 * python/py-continueevent.c (continue_event_object_type):
5051 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5052 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5053 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5054 * python/py-events.h (thread_event_object_type):
5055 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5056 * python/py-evtregistry.c (eventregistry_object_type): Use
5057 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5058 * python/py-exitedevent.c (exited_event_object_type):
5059 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5060 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5061 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5062 * python/py-function.c (fnpy_object_type): Use
5063 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5064 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5065 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5066 * python/py-infthread.c (thread_object_type): Use
5067 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5068 * python/py-lazy-string.c (lazy_string_object_type):
5069 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5070 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5071 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5072 * python/py-objfile.c (objfile_object_type): Use
5073 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5074 * python/py-param.c (parmpy_object_type):
5075 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5076 * python/py-progspace.c (pspace_object_type):
5077 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5078 * python/py-signalevent.c (signal_event_object_type):
5079 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5080 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5081 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5082 * python/py-type.c (type_object_type, field_object_type)
5083 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5084 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5085 define.
5086 (value_object_type, block_object_type, symbol_object_type)
5087 (event_object_type, stop_event_object_type, breakpoint_object_type)
5088 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5089
81ea8796
AT
50902013-05-20 Andreas Tobler <andreas@fgznet.ch>
5091
5092 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5093 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5094
a2ce51a0
DE
50952013-05-20 Doug Evans <dje@google.com>
5096
5097 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5098 For Fission.
5099 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5100 reading_dwo_directly.
5101 (struct signatured_type): New member dwo_unit.
5102 (struct die_reader_specs): New member comp_dir.
5103 (create_signatured_type_table_from_index): Use malloc for
5104 all_type_units instead of objfile's obstack.
5105 (create_all_type_units): Ditto.
5106 (fill_in_sig_entry_from_dwo_entry): New function.
5107 (add_type_unit): New function.
5108 (lookup_dwo_signatured_type): New function.
5109 (lookup_dwp_signatured_type): New function.
5110 (lookup_signatured_type): New arg cu. All callers updated.
5111 (init_cu_die_reader): Initialize comp_dir.
5112 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5113 Change assert of matching type signatures to call error on mismatch.
5114 (lookup_dwo_unit): Add assert.
5115 (init_tu_and_read_dwo_dies): New function.
5116 (init_cutu_and_read_dies): Call it.
5117 (build_type_unit_groups): Handle case of no type unit groups created.
5118 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5119 (lookup_dwo_cutu): Tweak complaint.
5120 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5121 (dwarf2_per_objfile_free): Free all_type_units.
5122
a25cd31f
JB
51232013-05-20 Joel Brobecker <brobecker@adacore.com>
5124
5125 * windows-nat.c (handle_unload_dll): Add missing empty line.
5126
4d804846
JB
51272013-05-20 Joel Brobecker <brobecker@adacore.com>
5128
5129 * dwarf2read.c (prototyped_function_p): New function.
5130 (read_subroutine_type): Use it.
5131
1c432e72
JB
51322013-05-20 Joel Brobecker <brobecker@adacore.com>
5133
5134 * rs6000-aix-tdep.c: De-indent some example code provided
5135 as a comment.
5136
4feebbdd
EBM
51372013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5138
5139 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5140 region is ok for a hardware watchpoint using the new ptrace interface
5141 on Power servers.
5142
7d0c9981
DE
51432013-05-17 Doug Evans <dje@google.com>
5144
5145 * NEWS: Mention new maintenance commands check-symtabs, and
5146 expand-symtabs, and renamed check-psymtabs.
5147 * psymtab.c (maintenance_check_psymtabs): Renamed from
5148 maintenance_check_symtabs. Only process already-expanded symbol
5149 tables.
5150 (_initialize_psymtab): Update.
5151 * symmisc.c (maintenance_check_symtabs): New function.
5152 (maintenance_expand_name_matcher): New function
5153 (maintenance_expand_file_matcher): New function
5154 (maintenance_expand_symtabs): New function.
5155 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5156 commands.
5157
6cbc7c3d
TT
51582013-05-17 Tom Tromey <tromey@redhat.com>
5159
5160 * python/py-inferior.c (infpy_read_memory): Don't call
5161 PyErr_SetString if PyObject_New fails.
5162 * python/py-frame.c (frame_info_to_frame_object): Don't call
5163 PyErr_SetString if PyObject_New fails.
5164
a48b32c0
L
51652013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5166
5167 * acinclude.m4: Add check for dlopen in libdl.
5168 * configure.ac: Ditto.
5169 * configure: Regenerate.
5170
3de661e6
PM
51712013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5172
5173 * frame.c (frame_stash): Convert to htab.
5174 (frame_addr_hash): New function.
5175 (frame_addr_hash_eq): New function.
5176 (frame_stash_create): Convert function to create
5177 a hash table.
5178 (frame_stash_add): Convert function to add an entry to a hash
5179 table.
5180 (frame_stash_find): Convert function to search the hash table.
5181 (frame_stash_invalidate): Convert function to empty the hash
5182 table.
5183 (get_frame_id): Only add to stash if a frame_id is created.
5184 (_initialize_frame): Call frame_stash_create.
5185
bb4168a9 51862013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5187
5188 * configure.ac: Ensure MIG is available when building for GNU Hurd
5189 hosts.
5190 * configure: Regenerate.
5191
d1be3247
JB
51922013-05-16 Joel Brobecker <brobecker@adacore.com>
5193
5194 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5195
b8fea896
JB
51962013-05-16 Joel Brobecker <brobecker@adacore.com>
5197
5198 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5199 all cleanups are done before returning from this function.
5200
af880d85
JB
52012013-05-15 Joel Brobecker <brobecker@adacore.com>
5202
5203 * utils.h: #include "exceptions.h".
5204 (enum errors): Remove partial declaration.
5205
356a5233
JB
52062013-05-15 Joel Brobecker <brobecker@adacore.com>
5207
5208 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5209 * gdbarch.h, gdbarch.c: Regenerate.
5210 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5211 handling.
5212
5213 * rs6000-aix-tdep.h: New file.
5214 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5215 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5216 "xml-utils.h".
5217 (struct field_info, struct ld_info_desc): New types.
5218 (ld_info32_desc, ld_info64_desc): New static constants.
5219 (struct ld_info): New type.
5220 (rs6000_aix_extract_ld_info): New function.
5221 (rs6000_aix_shared_library_to_xml): Likewise.
5222 (rs6000_aix_ld_info_to_xml): Likewise.
5223 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5224 (rs6000_aix_init_osabi): Add call to
5225 set_gdbarch_core_xfer_shared_libraries_aix.
5226 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5227 Remove "xml-utils.h" include.
5228 (LdInfo): Delete typedef.
5229 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5230 Delete macros.
5231 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5232 Adjust code accordingly.
5233 (rs6000_core_ldinfo): Delete, folded into
5234 rs6000_aix_core_xfer_shared_libraries_aix.
5235 (rs6000_xfer_shared_library): Delete.
5236 (rs6000_xfer_shared_libraries): Reimplement.
5237
742ce053
MM
52382013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5239
5240 * record.c (record_goto_cmdlist): New.
5241 (cmd_record_goto): Split into this ...
5242 (cmd_record_goto_begin): ... this
5243 (cmd_record_goto_end): ... and this.
5244 (_initialize_record): Change "record goto" to prefix command.
5245 Add commands for "record goto begin" and "record goto end".
5246 Add an alias for "record goto start" to "record goto begin".
5247
e93ba630
JK
52482013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5249
5250 * linespec.c (convert_linespec_to_sals): New comment for
5251 SOURCE_FILENAME assignment.
5252
5821aace
JK
52532013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5254
5255 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5256 internal_warning.
5257
a1b8c4cc
TT
52582013-05-14 Tom Tromey <tromey@redhat.com>
5259
5260 * eval.c (parse_and_eval_long): Make 'exp' const.
5261 * value.h (parse_and_eval_long): Update.
5262
23b3a2c3
TT
52632013-05-14 Tom Tromey <tromey@redhat.com>
5264
5265 * ui-file.c (gdb_fopen): Make arguments const.
5266 * ui-file.h (gdb_fopen): Make arguments const.
5267
ca623f82
TT
52682013-05-14 Tom Tromey <tromey@redhat.com>
5269
5270 * remote.c (remote_set_trace_notes): Make arguments const.
5271 * target.c (update_current_target): Update cast.
5272 * target.h (to_set_trace_notes): Make arguments const.
5273
503ebb2c
TT
52742013-05-14 Tom Tromey <tromey@redhat.com>
5275
5276 * go32-nat.c (go32_terminal_info): Make 'args' const.
5277 * inferior.h (child_terminal_info): Update.
5278 * inflow.c (child_terminal_info): Make 'args' const.
5279 * target.c (default_terminal_info): Make 'args' const.
5280 (debug_to_terminal_save_ours): Likewise.
5281 * target.h (struct target_ops) <to_terminal_info>: Make argument
5282 const.
5283
85e1311a
TT
52842013-05-13 Tom Tromey <tromey@redhat.com>
5285
5286 * gcore.c (create_gcore_bfd): Make 'filename' const.
5287 * gcore.h (create_gcore_bfd): Make 'filename' const.
5288 * record-full.c (record_full_save): Make 'recfilename' const.
5289 * target.c (target_save_record): Make 'filename' const.
5290 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5291 const.
5292 (target_save_record): Likewise.
5293
d62bfeaf
TT
52942013-05-13 Tom Tromey <tromey@redhat.com>
5295
f5aee5ee 5296 PR gdb/15338:
d62bfeaf
TT
5297 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5298 ranges section has been read.
5299
ac1ca910
TT
53002013-05-13 Tom Tromey <tromey@redhat.com>
5301
5302 PR exp/15364:
5303 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5304 STRUCTOP_PTR>: Return a not_lval value for
5305 EVAL_AVOID_SIDE_EFFECTS.
5306 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5307 for EVAL_AVOID_SIDE_EFFECTS.
5308
36d1c68c
JB
53092013-05-13 Joel Brobecker <brobecker@adacore.com>
5310
5311 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5312 floating point registers to register type before storing
5313 value.
5314 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5315 Likewise.
5316
21ff4686
TT
53172013-05-10 Joel Brobecker <brobecker@adacore.com>
5318 Tom Tromey <tromey@redhat.com>
5319
5320 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5321 New functions.
5322 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5323 Declare.
5324 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5325 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5326 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5327 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5328
d3685d60
TT
53292013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5330 Tom Tromey <tromey@redhat.com>
5331
5332 PR build/15414:
5333 * configure: Rebuild.
5334 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5335 with -Wno-format.
5336
eb9fe518
PA
53372013-05-10 Pedro Alves <palves@redhat.com>
5338
5339 * remote.c (_initialize_remote): Fix spelling of
5340 qXfer:traceframe-info:read packet in packet config command.
5341
9779ab84
PA
53422013-05-10 David Taylor <dtaylor@emc.com>
5343
5344 PR remote/15455
5345
5346 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5347 "QTro" at start of packet.
5348
060cfbef
JB
53492013-05-10 Joel Brobecker <brobecker@adacore.com>
5350
5351 * solib-aix.c (solib_aix_relocate_section_addresses):
5352 For the .bss section action, apply the same offset as
5353 the .data section.
5354
ab1c4e88
JB
53552013-05-10 Joel Brobecker <brobecker@adacore.com>
5356
5357 * solib-aix.c (solib_aix_relocate_section_addresses):
5358 Remove FIXME comment.
5359
c1357578
JB
53602013-05-10 Joel Brobecker <brobecker@adacore.com>
5361
5362 PR tdep/15420:
5363 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5364 New functions, directly copied from sparc-sol-thread.c.
5365 * sparc-sol-thread.c: Delete.
5366 * configure.ac: Remove code handling sparc-solaris-thread.c.
5367 * configure: Regenerate.
5368
1e611234
PM
53692013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5370
5371 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5372 filter logic.
5373 (backtrace_command): Add "no-filters" option parsing.
5374 (_initialize_stack): Alter help to reflect "no-filters" option.
5375 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5376 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5377 (py-frame.o): Add target
5378 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5379 filter files.
5380 * python/python.h: Add new frame filter constants, and flag enum.
5381 (apply_frame_filter): Add definition.
5382 * python/python.c (apply_frame_filter): New non-Python
5383 enabled function.
5384 * python/py-utils.c (py_xdecref): New function.
5385 (make_cleanup_py_xdecref): Ditto.
5386 * python/py-objfile.c: Declare frame_filters dictionary.
5387 (objfpy_dealloc): Add frame_filters dealloc.
5388 (objfpy_new): Initialize frame_filters attribute.
5389 (objfile_to_objfile_object): Ditto.
5390 (objfpy_get_frame_filters): New function.
5391 (objfpy_set_frame_filters): New function.
5392 * python/py-progspace.c: Declare frame_filters dictionary.
5393 (pspy_dealloc): Add frame_filters dealloc.
5394 (pspy_new): Initialize frame_filters attribute.
5395 (pspacee_to_pspace_object): Ditto.
5396 (pspy_get_frame_filters): New function.
5397 (pspy_set_frame_filters): New function.
5398 * python/py-framefilter.c: New file.
5399 * python/lib/gdb/command/frame_filters.py: New file.
5400 * python/lib/gdb/frames.py: New file.
5401 * python/lib/gdb/__init__.py: Initialize global frame_filters
5402 dictionary
5403 * python/lib/gdb/FrameDecorator.py: New file.
5404 * python/lib/gdb/FrameIterator.py: New file.
5405 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5406 * mi/mi-cmds.h: Declare.
5407 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5408 --no-frame-filter logic, and Python frame filter logic.
5409 (stack_enable_frame_filters): New function.
5410 (parse_no_frame_option): Ditto.
5411 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5412 filter logic.
5413 (mi_cmd_stack_list_locals): Ditto.
5414 (mi_cmd_stack_list_args): Ditto.
5415 (mi_cmd_stack_list_variables): Ditto.
5416 * NEWS: Add frame filter note.
5417
2cb9c859
DE
54182013-05-09 Doug Evans <dje@google.com>
5419
6bf667bb
DE
5420 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5421 All callers updated.
5422 (syms_from_objfile): Ditto. Make static.
5423 (symbol_file_add_with_addrs): Renamed from
5424 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5425 num_offsets. All callers updated.
5426 * symfile.h (syms_from_objfile): Delete.
5427
2cb9c859
DE
5428 * symfile.c (decrement_reading_symtab): Add assert.
5429 (increment_reading_symtab): Ditto.
5430
40aea477
JB
54312013-05-09 Joel Brobecker <brobecker@adacore.com>
5432
5433 * source.c (forward_search_command): Replace call to getc
5434 by call to fgetc.
5435 (reverse_search_command): Likewise.
5436
680d1742
DE
54372013-05-08 Doug Evans <dje@google.com>
5438
5439 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5440 matching test.
5441
17e760ae
JB
54422013-05-08 Joel Brobecker <brobecker@adacore.com>
5443
5444 * sol-thread.c (info_cb): Factorize the code a little.
5445
c0f5f490
JB
54462013-05-08 Joel Brobecker <brobecker@adacore.com>
5447
5448 * sol-thread.c (info_cb): Rework the output of the "maintenance
5449 info sol-threads" command a bit.
5450
5d74e061
JB
54512013-05-08 Joel Brobecker <brobecker@adacore.com>
5452
5453 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5454 Replace ti.ti_startfunc by ti.ti_pc.
5455
814a3ff7
JB
54562013-05-08 Joel Brobecker <brobecker@adacore.com>
5457
5458 * solib-aix.c (solib_aix_free_library_list): New function
5459 for the case where HAVE_LIBEXPAT is not defined.
5460
58ce7251
SDJ
54612013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5462
5463 PR breakpoints/15413:
5464 * breakpoint.c (condition_completer): Simplify the code to
5465 disconsider multiple locations of breakpoints when completing the
5466 "condition" command.
5467
be8b1ea6
PM
54682013-05-07 Pierre Muller <muller@sourceware.org>
5469
5470 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5471 instead of <sys/wait.h>.
5472
1e52bda6
PM
54732013-05-07 Pierre Muller <muller@sourceware.org>
5474
5475 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5476 trailing new line from warning message.
5477
27fd0c6b
PM
54782013-05-07 Pierre Muller <muller@sourceware.org>
5479
5480 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5481 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5482
e228ac87
JB
54832013-05-07 Joel Brobecker <brobecker@adacore.com>
5484
5485 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5486 error message (ARI fix).
5487
54882013-05-07 Joel Brobecker <brobecker@adacore.com>
5489
5490 * features/library-list-aix.dtd: Replace library-list by
5491 library-list-aix.
5492 * rs6000-nat.c: Replace library-list by library-list-aix
5493 throughout.
5494 * solib-aix.c: Likewise.
5495
54962013-05-07 Joel Brobecker <brobecker@adacore.com>
5497
5498 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5499 Renames TARGET_OBJECT_AIX_LIBRARIES.
5500 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5501 TARGET_OBJECT_LIBRARIES_AIX throughout.
5502 * solib-aix.c: Likwise.
5503
26a4dda9
YQ
55042013-05-07 Yao Qi <yao@codesourcery.com>
5505
5506 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5507 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5508
3582629f
YQ
55092013-05-07 Yao Qi <yao@codesourcery.com>
5510
5511 * solib-dsbt.c (enable_break): Declare.
5512 (dsbt_current_sos): Remove call to enable_break2.
5513 (enable_break2): Rename to enable_break. Set solib breakpoint
5514 on '_dl_debug_state'.
5515 (enable_break): Remove.
5516
aacbb8a5
LM
55172013-05-07 Luis Machado <lgustavo@codesourcery.com>
5518
5519 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5520 debug state prior to replicating existing hardware watchpoints or
5521 breakpoints.
5522
0c013353
JK
55232013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5524
5525 * gcore.c (gcore_create_callback): Ignore sections with
5526 separate_debug_objfile_backlink != NULL.
5527
a1217d97
SL
55282013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5529 Andrew Jenner <andrew@codesourcery.com>
5530 Chung-Lin Tang <cltang@codesourcery.com>
5531 Julian Brown <julian@codesourcery.com>
5532
5533 Based on the nios2-elf port from Altera Corporation.
5534
5535 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5536 nios2-linux-tdep.o.
5537 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5538 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5539 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5540 * nios2-tdep.h: New.
5541 * nios2-tdep.c: New.
5542 * nios2-linux-tdep.c: New.
5543 * features/Makefile (WHICH): Add nios2-linux.
5544 (nios2-linux-expedite): Set.
5545 * features/nios2-cpu.xml: New.
5546 * features/nios2.xml: New.
5547 * features/nios2-linux.xml: New.
5548 * features/nios2.c: New (autogenerated).
5549 * features/nios2-linux.c: New (autogenerated).
5550 * regformats/nios2-linux.dat: New (autogenerated).
5551 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5552 and commands.
5553
0892cb63
DE
55542013-05-06 Doug Evans <dje@google.com>
5555
3b7bacac
DE
5556 * symfile.c: Whitespace cleanup.
5557
0892cb63
DE
5558 * solist.h (struct target_so_ops): New member clear_so.
5559 * solib-svr4.c (svr4_clear_so): New function.
5560 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5561 * solib.c (clear_so): Renamed from free_so_symbols.
5562 All callers updated. Call target clear_so if it exists.
5563
40501e00
TT
55642013-05-06 Tom Tromey <tromey@redhat.com>
5565
5566 * ada-lang.c (ada_value_primitive_packed_val): Don't
5567 call value_incref.
5568 * value.c (set_value_parent): Incref the new parent and decref
5569 the old parent.
5570 (value_copy, value_primitive_field): Use set_value_parent.
5571
b6807d98
TT
55722013-05-06 Tom Tromey <tromey@redhat.com>
5573
5574 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5575 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5576 if needed.
5577 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5578 * dwarf2read.c (write_constant_as_bytes)
5579 (dwarf2_fetch_constant_bytes): New functions.
5580
3aef2284
TT
55812013-05-06 Tom Tromey <tromey@redhat.com>
5582
5583 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5584 parameters.
5585 (dwarf2_const_value_attr): Update.
5586
66f65e2b
TT
55872013-05-06 Tom Tromey <tromey@redhat.com>
5588
5589 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5590 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5591 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5592 Remove declaration.
5593
7919a973
TT
55942013-05-06 Tom Tromey <tromey@redhat.com>
5595
5596 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5597 objfile's obstack.
5598
a7bfba49
DE
55992013-05-06 Doug Evans <dje@google.com>
5600
3189cb12
DE
5601 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5602 * stabsread.h (process_one_symbol): Update declaration.
5603 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5604 * elfread.c (elf_symfile_relocate_probe): Ditto.
5605 * psymtab.c (relocate_psymtabs): Ditto.
5606 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5607 (objfile_relocate): Ditto.
5608 * objfiles.h (objfile_relocate): Update declaration.
5609 * symfile.c (relative_addr_info_to_section_offsets): Constify
5610 addrs parameter.
5611 (default_symfile_offsets): Ditto.
5612 (syms_from_objfile_1): Constify offsets parameter.
5613 (syms_from_objfile): Ditto.
5614 (symbol_file_add_with_addrs_or_offsets): Ditto.
5615 (symfile_map_offsets_to_segments): Constify data parameter.
5616 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5617 delta parameters of member relocate.
5618 (struct sym_probe_fns): Constify new_offsets,
5619 delta parameters of member sym_relocate_probe.
5620 (struct sym_fns): Constify section_addr_info parameter of member
5621 sym_offsets.
5622 (relative_addr_info_to_section_offsets): Update declaration.
5623 (default_symfile_offsets): Ditto.
5624 (syms_from_objfile): Ditto.
5625 (symfile_map_offsets_to_segments): Ditto.
5626
a7bfba49
DE
5627 * symfile.c (syms_from_objfile_1): Use correct section count when
5628 objfile->sf == NULL.
5629
5f8e0b8f
MF
56302013-05-06 Mike Frysinger <vapier@gentoo.org>
5631
5632 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5633
ea52d893
DE
56342013-05-06 Doug Evans <dje@google.com>
5635
5636 * psympriv.h (struct partial_symtab): Augment comment for member
5637 section_offsets.
5638
4d1eb6b4
JB
56392013-05-06 Joel Brobecker <brobecker@adacore.com>
5640
5641 Reimplement shared library support on ppc-aix...
5642 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5643 * features/library-list-aix.dtd: New file.
5644 * solib-aix.h, solib-aix.c: New file.
5645 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5646 (rs6000_find_toc_address_hook): Delete.
5647 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5648 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5649 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5650 "xml-utils.h".
5651 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5652 (vmap_symtab, fixup_breakpoints): Delete.
5653 (rs6000_xfer_shared_libraries): New function.
5654 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5655 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5656 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5657 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5658 (rs6000_xfer_shared_library): New function.
5659 (find_toc_address): Delete.
5660 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5661 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5662 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5663 before creating minimal symbol. Adjust function description
5664 accordingly.
5665 (scan_xcoff_symtab): Replace call to
5666 prim_record_minimal_symbol_and_info by call to
5667 record_minimal_symbol.
5668 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5669 around default_symfile_offsets.
5670 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5671 powerpc-aix targets.
5672 * config/rs6000/nm-rs6000.h: Delete.
5673 * config/powerpc/aix.mh (NAT_FILE): Delete.
5674 (NATDEPFILES): Remove xcoffsolib.o.
5675 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5676 (ALL_TARGET_OBS): Add solib-aix.o.
5677 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5678 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5679 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5680 * xcoffsolib.h, xcoffsolib.c: Delete.
5681
5682 * solib.c (reload_shared_libraries): Remove reference to
5683 SOLIB_CREATE_INFERIOR_HOOK.
5684 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5685 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5686 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5687 comment.
5688 * corelow.c (deprecated_core_resize_section_table): Delete.
5689 * exec.c: Remove include of xcoffsolib.h".
5690 (map_vmap, vmap): Delete.
5691 (exec_close_1): Remove references to vmap.
5692 (exec_file_attach): Remove vmap handling code, and reference
5693 to DEPRECATED_IBM6000_TARGET.
5694 (bfdsec_to_vmap): Delete.
5695 (exec_files_info): Remove block of code handling VMAP.
5696 * infcmd.c (post_create_inferior): Remove reference to
5697 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5698 * infrun.c (follow_exec): Remove reference to
5699 SOLIB_CREATE_INFERIOR_HOOK.
5700 * stack.c (print_frame): Remove reference to PC_SOLIB.
5701 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5702 (dsbt_relocate_main_executable): Likewise.
5703 * solib-frv.c (frv_current_sos): Likewise.
5704
0c4f667c
JB
57052013-05-06 Joel Brobecker <brobecker@adacore.com>
5706
5707 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5708 to target_write_memory and target_read_memory.
5709
726ce67c
JB
57102013-05-06 Joel Brobecker <brobecker@adacore.com>
5711
5712 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5713 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5714
c8c9911f
JB
57152013-05-06 Joel Brobecker <brobecker@adacore.com>
5716
5717 * darwin-nat.c: Replace all "%x" instances in format strings
5718 into "0x%x" throughout.
5719
fda184b6
JB
57202013-05-06 Joel Brobecker <brobecker@adacore.com>
5721
5722 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5723 gdb_assert by call to MACH_CHECK_ERROR.
5724 (darwin_attach_pid): Raise an error rather than a failed
5725 assertion when various system calls failed. Report a warning
5726 instead of raising a failed assertion when PREV_NOT is not NULL
5727 after call to mach_port_request_notification.
5728 (darwin_ptrace_me): Raise an error rather than a failed
5729 assertion when read returns nonzero.
5730
d1d69afb
JB
57312013-05-06 Joel Brobecker <brobecker@adacore.com>
5732
5733 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5734
dc90b24d
JK
57352013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5736
5737 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5738
faab9922
JK
57392013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5740
5741 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5742 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5743 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5744 a stale cleanup. Fix double free of NAME.
5745
e0ea48a0
EZ
57462013-05-04 Eli Zaretskii <eliz@gnu.org>
5747
5748 * windows-nat.c (windows_delete_thread): Accept an additional
5749 argument, the thread's exit code, and announce thread death when
5750 print_thread_events is non-zero and we are deleting a thread that
5751 is not the main thread.
5752 (get_windows_debug_event): Pass thread exit code to
5753 windows_delete_thread.
5754
83b2706a
KB
57552013-05-03 Kevin Buettner <kevinb@redhat.com>
5756
5757 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5758 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5759 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5760 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5761 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5762 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5763 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5764 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5765 (gdbarch_tdep): New struct.
5766 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5767 E_NUM_REGS.
5768 (v850e3v5_register_name): New function.
5769 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5770 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5771 code handling the struct return conventions for the RH850 ABI.
5772 Update all callers.
5773 (v850_eight_byte_align_p): New function.
5774 (v850_push_call_dummy): Push structs by value, not by reference
5775 for the RH850 ABI. Add support for eight byte alignment.
5776 (v850_dbtrap_breakpoint_from_pc): New function.
5777 (v850_gdbarch_init): Add ABI detection code. Register
5778 v850e3v5_register_name for the v850e3v5 architecture. Set the
5779 number of registers for v850e3v5. Register
5780 v850_dbtrap_breakpoint_from_pc as appropriate.
5781 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5782
d445b2f6
DE
57832013-05-03 Doug Evans <dje@google.com>
5784
5785 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5786 of bfd_count_sections.
5787 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5788 * symfile.c (default_symfile_offsets): Ditto.
5789 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5790 one entry, not bfd_count_sections entries.
5791
b3ce41ea
KB
57922013-05-03 Kevin Buettner <kevinb@redhat.com>
5793
5794 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5795 `save' and `restore' register groups. Don't include SPL
5796 or SPH in these groups.
5797 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5798 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5799 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5800 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5801 dwarf2_append_unwinders().
5802
96f7d3f1
PW
58032013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5804
5805 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5806 ignore SIGINT and SIGTRAP in case these internal signals are
5807 caught explicitely.
5808
b9dd1947
JB
58092013-05-01 Joel Brobecker <brobecker@adacore.com>
5810
5811 * darwin-nat.c (darwin_read_write_inferior): Change types
5812 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5813 of copy_count to "mach_msg_type_number_t".
5814 (darwin_read_dyld_info): Change type of parameter
5815 rdaddr to "gdb_byte *".
5816
4ca18a63
JB
58172013-05-01 Joel Brobecker <brobecker@adacore.com>
5818
5819 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5820 of &info->load_map from "char *" to "gdb_byte *".
5821
2b692d32
JB
58222013-05-01 Joel Brobecker <brobecker@adacore.com>
5823
5824 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5825 from "char *" to "gdb_byte *".
5826 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5827
a98c29a0
DE
58282013-04-30 Doug Evans <dje@google.com>
5829
6a506a2d
DE
5830 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5831 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5832 DWO stub. If DWO isn't found, just use stub.
5833 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5834
a98c29a0
DE
5835 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5836 calling init_cutu_and_read_dies.
5837
f92b06da
WT
58382013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5839
5840 * target-descriptions.c (maint_print_c_tdesc_cmd):
5841 Add case to parse structures as register types and
5842 bitfields.
5843
95eebdcc
WT
58442013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5845
5846 * MAINTAINERS (Write After Approval): Add myself to the list.
5847
019c1128
JB
58482013-04-30 Joel Brobecker <brobecker@adacore.com>
5849
5850 * sol-thread.c (rw_common): Change type of parameter "buf"
5851 to "gdb_byte *".
5852 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5853 rw_common to "gdb_byte *" instead of "char *".
5854
5812197c
JB
58552013-04-30 Joel Brobecker <brobecker@adacore.com>
5856
5857 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5858 of local variable msym to const struct bound_minimal_symbol.
5859 Adjust use accordingly.
5860 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5861
ecccb813
TS
58622013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5863
5864 * i386gnu-nat.c (CREG_OFFSET): New macro.
5865 (creg_offset): New array.
5866 (CREG_ADDR): Use creg_offset instead of reg_offset.
5867
f1d02dd4 58682013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
5869
5870 * mep-tdep.c (mep_write_pc): Delete.
5871 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5872 Add call to set_gdbarch_pc_regnum.
5873
f1d02dd4 58742013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
5875
5876 * common/filestuff.c: Replace #include <dirent.h> by
5877 #include "gdb_dirent.h".
5878
f1d02dd4 58792013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
5880
5881 * common/filestuff.c: Replace #include <sys/stat.h> by
5882 #include "gdb_stat.h".
5883
b385a60d
PM
58842013-04-29 Pierre Muller <muller@sourceware.org>
5885
5886 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5887 editCase function rule.
5888 (get_DW_AT_signature_type): Likewise.
5889
d27b54ad
JB
58902013-04-29 Joel Brobecker <brobecker@adacore.com>
5891
5892 * m32r-tdep.c (m32r_write_pc): Delete.
5893 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5894 Add call to set_gdbarch_pc_regnum.
5895
47d21dc5
PM
58962013-04-29 Pierre Muller <muller@sourceware.org>
5897
5898 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5899
9056882e
JB
59002013-04-29 Joel Brobecker <brobecker@adacore.com>
5901
5902 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5903
7ee4732a
YQ
59042013-04-28 Yao Qi <yao@codesourcery.com>
5905
5906 * solib-dsbt.c (fetch_loadmap): Re-indent.
5907 (displacement_from_map, enable_break2): Likewise.
5908 (dsbt_relocate_section_addresses): Likewise.
5909
2260af53 59102013-04-26 Joel Brobecker <brobecker@adacore.com>
5911
5912 GDB 7.6 released.
5913
ff546935
TT
59142013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5915
5916 PR corefiles/14983:
5917 * dwarf2read.c (process_full_comp_unit): Always create a static
5918 block.
5919
40fb6c5e
HZ
59202013-04-25 Hui Zhu <hui@codesourcery.com>
5921
5922 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5923 to loc->cmd_bytecode.
5924
74e04d1c
DE
59252013-04-24 Doug Evans <dje@google.com>
5926
5927 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5928
3cf62c1d
KS
59292013-04-22 Keith Seitz <keiths@redhat.com>
5930
5931 * tracepoint.c (trace_save): Call the writer's start method.
5932
bf9e4d0c
MB
59332013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5934
5935 PR gdb/10462
5936 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5937 before argument.
5938
5d71132c
TT
59392013-04-23 Tom Tromey <tromey@redhat.com>
5940
5941 * common/filestuff.c: Check USE_WIN32API before including
5942 sys/socket.h.
5943 (HAVE_F_GETFD): New define.
5944 (mark_cloexec): Check HAVE_F_GETFD.
5945 (gdb_open_cloexec): Change 'mode' to unsigned long.
5946 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5947 (gdb_pipe_cloexec): Check HAVE_PIPE.
5948 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5949 long.
5950
a11cfd87
HZ
59512013-04-23 Hui Zhu <hui@codesourcery.com>
5952
5953 PR gdb/15293
a11cfd87
HZ
5954 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5955
2d9442cc
HZ
59562013-04-23 Hui Zhu <hui@codesourcery.com>
5957
5958 PR gdb/15165
2d9442cc
HZ
5959 * breakpoint.c (dprintf_print_recreate): New.
5960 (save_breakpoints): Let it not save dprintf commands.
5961 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5962
614c279d
TT
59632013-04-22 Tom Tromey <tromey@redhat.com>
5964
5965 PR gdb/7912:
5966 * Makefile.in (SFILES): Add filestuff.c
5967 (COMMON_OBS): Add filestuff.o.
5968 (filestuff.o): New target.
5969 * auto-load.c (auto_load_objfile_script_1): Use
5970 gdb_fopen_cloexec.
5971 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5972 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5973 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5974 * common/agent.c (gdb_connect_sync_socket): Use
5975 gdb_socket_cloexec.
5976 * common/filestuff.c: New file.
5977 * common/filestuff.h: New file.
5978 * common/linux-osdata.c (linux_common_core_of_thread)
5979 (command_from_pid, commandline_from_pid, print_source_lines)
5980 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5981 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5982 gdb_fopen_cloexec.
5983 * common/linux-procfs.c (linux_proc_get_int)
5984 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5985 * config.in, configure: Rebuild.
5986 * configure.ac: Don't check for sys/socket.h. Check for
5987 fdwalk, pipe2.
5988 * corelow.c (core_open): Use gdb_open_cloexec.
5989 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5990 * fork-child.c (fork_inferior): Call close_most_fds.
5991 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5992 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5993 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5994 Use gdb_fopen_cloexec.
5995 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5996 gdb_open_cloexec.
5997 (linux_async_pipe): Use gdb_pipe_cloexec.
5998 * remote-fileio.c (remote_fileio_func_open): Use
5999 gdb_open_cloexec.
6000 * remote.c (remote_file_put, remote_file_get): Use
6001 gdb_fopen_cloexec.
6002 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6003 close_most_fds.
6004 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6005 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6006 * solib.c (solib_find): Use gdb_open_cloexec.
6007 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6008 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6009 (tfile_open): Use gdb_open_cloexec.
6010 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6011 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6012 * xml-support.c (xml_fetch_content_from_file): Use
6013 gdb_fopen_cloexec.
6014 * main.c (captured_main): Call notice_open_fds.
6015
5fda2332
EBM
60162013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6017
6018 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6019 'char *' to 'gdb_byte *'.
6020 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6021 'gdb_byte'.
6022
eb6c553b
YQ
60232013-04-22 Yao Qi <yao@codesourcery.com>
6024
6025 * infrun.c: Fix typo in comment.
6026
9991b207
SDJ
60272013-04-22 Andrew Haley <aph@redhat.com>
6028
6029 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6030 instead of "long".
6031
8b4833e3
YQ
60322013-04-20 Yao Qi <yao@codesourcery.com>
6033
6034 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6035 'char *' to 'gdb_byte *'. Cast the return value of
6036 'bt_ctf_get_char_array' to 'gdb_byte *'.
6037
bd3f3b55
PA
60382013-04-19 Pedro Alves <palves@redhat.com>
6039
6040 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6041 -Wpointer-sign.
6042 * configure: Regenerate.
6043
c49e7f76
PA
60442013-04-19 Pedro Alves <palves@redhat.com>
6045
6046 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6047 'void *'.
6048
12ff8552
PA
60492013-04-19 Pedro Alves <palves@redhat.com>
6050
6051 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6052 Change type of 'myaddr' parameter to gdb_byte pointer.
6053 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6054 to 'long long' pointer instead of to 'unsigned long long'.
6055 (monitor_write_memory_block, monitor_read_memory_single)
6056 (monitor_read_memory): Change type of 'myaddr' parameter to
6057 gdb_byte pointer.
6058
9c37696b
PA
60592013-04-19 Pedro Alves <palves@redhat.com>
6060
6061 * record.c (validate_history_size): Make parameter 'setting'
6062 unsigned.
6063
a398505b
PA
60642013-04-19 Pedro Alves <palves@redhat.com>
6065
6066 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6067 to 'gdb_byte *'.
6068
9f8afa72
PA
60692013-04-19 Pedro Alves <palves@redhat.com>
6070
6071 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6072 local to int.
6073
c714b426
PA
60742013-04-19 Pedro Alves <palves@redhat.com>
6075
6076 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6077 * ada-tasks.c (read_fat_string_value): Likewise.
6078
507a579c
PA
60792013-04-19 Pedro Alves <palves@redhat.com>
6080
6081 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6082 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6083 'offset', and adjust.
6084
f9d83a0b
PA
60852013-04-19 Pedro Alves <palves@redhat.com>
6086
6087 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6088 (read_index_from_section): Add cast to 'char *'.
6089
745eb4fd
PA
60902013-04-19 Pedro Alves <palves@redhat.com>
6091
6092 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6093
db5be46f
PA
60942013-04-19 Pedro Alves <palves@redhat.com>
6095
6096 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6097
0f928d68
PA
60982013-04-19 Pedro Alves <palves@redhat.com>
6099
6100 * record-full.c (record_full_get_bookmark): Change local 'ret'
6101 type to char * and add cast to gdb_byte *.
6102 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6103 string.
6104 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6105
89f6d837
PA
61062013-04-19 Pedro Alves <palves@redhat.com>
6107
6108 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6109 * python/py-prettyprint.c (print_string_repr): Change type of
6110 'output' local to char *. Add cast to gdb_byte * in
6111 LA_PRINT_STRING call.
6112 (print_children): Change type of 'output' local to char *.
6113 * python/py-value.c (valpy_string): Add cast to const char * in
6114 PyUnicode_Decode call.
6115
ce6ec7d8
PA
61162013-04-19 Pedro Alves <palves@redhat.com>
6117
6118 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6119 and change its type to 'const char *'. Adjust.
6120 (mips_send_packet): Add cast to 'char *', and remove cast to
6121 'unsigned char *'.
6122 (mips_receive_packet): Remove cast to 'unsigned char *'.
6123 (mips_load_srec): Use bfd_byte.
6124 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6125 (pmon_checkset): Make 'value' parameter unsigned.
6126
fda0389f
PA
61272013-04-19 Pedro Alves <palves@redhat.com>
6128
6129 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6130
bc20a4af
PA
61312013-04-19 Pedro Alves <palves@redhat.com>
6132
6133 * remote.c (remote_write_bytes_aux, compare_sections_command)
6134 (remote_read_qxfer)
6135 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6136 (remote_hostio_readlink, remote_bfd_iovec_pread)
6137 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6138 binary buffer, and char when buffer is used as string.
6139 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6140 (trace_save, tfile_open, traceframe_walk_blocks)
6141 (tfile_fetch_registers): Likewise.
6142
c628b528
PA
61432013-04-19 Pedro Alves <palves@redhat.com>
6144
6145 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6146 buffer and size_t size. Adjust.
6147 * ser-base.h (ser_base_write): Adjust.
6148 * ser-go32.c (cnts): Change type to size_t.
6149 (dos_write): Change prototype -- take 'void *'
6150 buffer and size_t size. Adjust.
6151 (dos_info): Print elements of 'cnts' as unsigned long.
6152 * serial.c (serial_write): Likewise.
6153 * serial.h (serial_write): Adjust.
6154 (struct serial_ops) <write>: Change prototype -- take 'void *'
6155 buffer and size_t size. Adjust.
6156
51a5cd90
PA
61572013-04-19 Pedro Alves <palves@redhat.com>
6158
6159 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6160 gdb_byte *.
6161 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6162
a9933661
PA
61632013-04-19 Pedro Alves <palves@redhat.com>
6164
6165 * alpha-tdep.c (alpha_extract_return_value): Use
6166 regcache_cooked_read_unsigned to read 'v0'.
6167
19afdd07
PA
61682013-04-19 Pedro Alves <palves@redhat.com>
6169
6170 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6171 parameters 'at', 'as' and 'offset' to uint32_t.
6172
96b32e50
PA
61732013-04-19 Pedro Alves <palves@redhat.com>
6174
6175 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6176 'is64' to signed 'int'.
6177
eb1bd1fb
PA
61782013-04-19 Pedro Alves <palves@redhat.com>
6179
6180 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6181 parameter to int *.
6182
463920bf
PA
61832013-04-19 Pedro Alves <palves@redhat.com>
6184
6185 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6186 'insnbuf' buffer type to unsigned int[].
6187
70242eb1
PA
61882013-04-19 Pedro Alves <palves@redhat.com>
6189
6190 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6191
9d1dd0e2
PA
61922013-04-19 Pedro Alves <palves@redhat.com>
6193
6194 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6195 unsigned long *.
6196
44096aee
PA
61972013-04-19 Pedro Alves <palves@redhat.com>
6198
6199 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6200 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6201 UINT_MAX.
6202 * mips-tdep.c (heuristic_fence_post): Change type to int.
6203 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6204
e4286e57
PA
62052013-04-19 Pedro Alves <palves@redhat.com>
6206
6207 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6208 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6209 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6210
001f13d8
PA
62112013-04-19 Pedro Alves <palves@redhat.com>
6212
6213 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6214 it to get a string view of the byte buffer.
6215 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6216 type to gdb_byte *. Adjust.
6217 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6218 Change local to char *.
6219 * solib-darwin.c (find_program_interpreter): Change return type to
6220 char *. Adjust.
6221 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6222 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6223 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6224 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6225 * solib-svr4.c (find_program_interpreter): Change return type to
6226 char *. Adjust.
6227 (enable_break): Change local 'interp_name' to char *.
6228 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6229 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6230 (spu_pseudo_register_write_spu): Use char for string buffer.
6231 Adjust.
6232 (info_spu_event_command, info_spu_signal_command): Add casts to
6233 'char *'.
6234
948f8e3d
PA
62352013-04-19 Pedro Alves <palves@redhat.com>
6236
6237 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6238 gdb_byte[].
6239 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6240 * ada-lang.c (ada_value_assign): Use gdb_byte.
6241 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6242 (alphanbsd_sigtramp_offset): Use gdb_byte.
6243 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6244 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6245 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6246 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6247 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6248 * arm-tdep.c (arm_stub_unwind_sniffer)
6249 (arm_displaced_init_closure): Use gdb_byte.
6250 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6251 (arm_default_thumb_le_breakpoint)
6252 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6253 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6254 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6255 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6256 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6257 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6258 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6259 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6260 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6261 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6262 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6263 (cris_store_return_value, cris_extract_return_value): Use
6264 gdb_byte.
6265 (constraint): Change type of parameter to char * from signed
6266 char*. Use gdb_byte.
6267 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6268 of local buffer to gdb_byte *.
6269 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6270 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6271 (add_address_entry): Change type of local buffer to gdb_byte[].
6272 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6273 (frv_push_dummy_call): Use gdb_byte.
6274 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6275 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6276 (hppa_hpux_supply_save_state): Use gdb_byte.
6277 * hppa-tdep.c (hppa32_push_dummy_call)
6278 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6279 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6280 (slotN_contents, replace_slotN_contents): Change type of parameter
6281 to gdb_byte *.
6282 (fetch_instruction, ia64_pseudo_register_write)
6283 (ia64_register_to_value, ia64_value_to_register)
6284 (ia64_extract_return_value, ia64_store_return_value)
6285 (ia64_push_dummy_call): Use gdb_byte.
6286 * m32c-tdep.c (m32c_return_value): Remove cast.
6287 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6288 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6289 gdb_byte.
6290 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6291 * mn10300-tdep.c (mn10300_store_return_value)
6292 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6293 gdb_byte.
6294 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6295 (moxie_process_record): Remove casts.
6296 * ppc-ravenscar-thread.c (supply_register_at_address)
6297 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6298 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6299 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6300 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6301 * remote.c (compare_sections_command): Use gdb_byte.
6302 * score-tdep.c (score7_free_memblock): Change type of parameter to
6303 gdb_byte *.
6304 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6305 gdb_byte *. Use gdb_byte.
6306 (sh_push_dummy_call_fpu): Use gdb_byte.
6307 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6308 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6309 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6310 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6311 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6312 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6313 (sh64_store_return_value, sh64_register_convert_to_virtual):
6314 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6315 (sh64_pseudo_register_write): Use gdb_byte.
6316 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6317 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6318 buffer.
6319 (irix_current_sos): Use gdb_byte.
6320 * solib-som.c (som_current_sos): Use gdb_byte.
6321 * sparc-ravenscar-thread.c (supply_register_at_address)
6322 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6323 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6324 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6325 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6326 'gdb_byte *'.
6327 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6328 'gdb_byte *'.
6329 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6330 * xstormy16-tdep.c (xstormy16_extract_return_value)
6331 (xstormy16_store_return_value): Change parameter type to
6332 'gdb_byte *'. Adjust.
6333 (xstormy16_push_dummy_call): Use gdb_byte.
6334 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6335 (call0_analyze_prologue, execute_code): Use gdb_byte.
6336
433730c9
PA
63372013-04-19 Vladimir Kargov <kargov@gmail.com>
6338 Pedro Alves <palves@redhat.com>
6339
6340 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6341 value contents.
6342
ac9ec31b
DE
63432013-04-17 Doug Evans <dje@google.com>
6344
6345 * dwarf2read.c (struct signatured_type): New member type.
6346 (struct attribute): Replace member signatured_type with signature.
6347 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6348 (read_call_site_scope): Call follow_die_ref instead of
6349 follow_die_ref_or_sig.
6350 (read_structure_type): Rewrite handling of signatured types.
6351 (read_enumeration_type): Ditto.
6352 (read_attribute_value): Update.
6353 (build_error_marker_type): New function.
6354 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6355 Don't call error for bad types, just build an error marker type.
6356 (dump_die_shallow): Update.
6357 (follow_die_sig_1): Renamed from follow_die_sig.
6358 Don't call error for bad types, instead return NULL.
6359 (follow_die_sig): New function.
6360 (get_signatured_type, get_DW_AT_signature_type): New functions.
6361
e546e8bb
YZ
63622013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6363
6364 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6365 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6366 function.
e546e8bb 6367
ab116149
YQ
63682013-04-17 Yao Qi <yao@codesourcery.com>
6369
6370 * top.c (print_gdb_configuration): Print configure-time
6371 parameter on using libbabeltrace or not.
6372
488a42b8
PA
63732013-04-16 Pedro Alves <palves@redhat.com>
6374
6375 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6376
f5fb825b
PA
63772013-04-16 Pedro Alves <palves@redhat.com>
6378
85d494ea 6379 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6380 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6381
e1154999
PA
63822013-04-16 Pedro Alves <palves@redhat.com>
6383
6384 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6385 * common/glibc_thread_db.h: ... this new file ...
6386 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6387
e3b50a7f
PA
63882013-04-16 Will Newton <will.newton@gmail.com>
6389 Pedro Alves <palves@redhat.com>
6390
6391 PR build/11881
6392
6393 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6394 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6395 HAVE_THREAD_DB_H.
6396
1c2e4450
PA
63972013-04-16 Pedro Alves <palves@redhat.com>
6398 Eli Zaretskii <eliz@gnu.org>
6399
6400 * NEWS: Mention "set foo unlimited".
6401
4031ecc5
DE
64022013-04-15 Doug Evans <dje@google.com>
6403
19c3d4c9
DE
6404 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6405 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6406 (create_dwo_cu_reader): Renamed from
6407 create_dwo_debug_info_hash_table_reader.
6408 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6409 Remove support for multiple CUs in a DWO file.
6410 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6411
4031ecc5
DE
6412 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6413 instead of phex.
6414 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6415 (create_dwo_in_dwp): Ditto.
6416
b340913d
TT
64172013-04-15 Tom Tromey <tromey@redhat.com>
6418
6419 * NEWS: Move recent entries into "since 7.6" section.
6420
cc16e6c9
TT
64212013-04-15 Tom Tromey <tromey@redhat.com>
6422
6423 PR c++/13588:
6424 * NEWS: Update.
6425 * break-catch-throw.c (struct exception_catchpoint)
6426 <exception_rx, pattern>: New fields.
6427 (fetch_probe_arguments, dtor_exception_catchpoint)
6428 (check_status_exception_catchpoint)
6429 (print_one_detail_exception_catchpoint): New functions.
6430 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6431 Compile regular expression if needed.
6432 (extract_exception_regexp): New function.
6433 (catch_exception_command_1): Use extract_exception_regexp.
6434 (compute_exception): Use fetch_probe_arguments.
6435 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6436 and check_status fields.
6437 * cp-abi.c (cplus_typename_from_type_info): New function.
6438 * cp-abi.h (cplus_typename_from_type_info): Declare.
6439 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6440 * gdb_regex.h (compile_rx_or_error): Declare.
6441 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6442 comment.
6443 (init_gnuv3_ops): Set get_type_from_type_info field.
6444 * probe.c (compile_rx_or_error): Move...
6445 * utils.c (compile_rx_or_error): ... here.
6446
72f1fe8a
TT
64472013-04-15 Tom Tromey <tromey@redhat.com>
6448
6449 PR c++/15176:
6450 * NEWS: Update.
6451 * break-catch-throw.c (compute_exception): New function.
6452 (exception_funcs): New global.
6453 (_initialize_break_catch_throw): Create $_exception.
6454 * cp-abi.c (cplus_type_from_type_info): New function.
6455 * cp-abi.h (cplus_type_from_type_info): Declare.
6456 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6457 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6458 (gnuv3_get_type_from_type_info): New functions.
6459 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6460
fc4746a2
TT
64612013-04-15 Tom Tromey <tromey@redhat.com>
6462
6463 * break-catch-throw.c (struct exception_names): New.
6464 (exception_functions): Change type.
6465 (re_set_exception_catchpoint): Look for SDT probes.
6466
15a73f56
TT
64672013-04-15 Tom Tromey <tromey@redhat.com>
6468
6469 PR c++/10119:
6470 * break-catch-throw.c (exception_functions): New global.
6471 (gnu_v3_exception_catchpoint_ops): Move earlier.
6472 (struct exception_catchpoint): New.
6473 (classify_exception_breakpoint): Rewrite.
6474 (re_set_exception_catchpoint): New function.
6475 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6476 Allocate a struct exception_catchpoint.
6477 (catch_exception_command_1): Update.
6478 (initialize_throw_catchpoint_ops): Set 're_set' method.
6479
916703c0
TT
64802013-04-15 Tom Tromey <tromey@redhat.com>
6481
6482 * Makefile.in (SFILES): Add break-catch-throw.c
6483 (COMMON_OBS): Add break-catch-throw.o.
6484 * break-catch-throw.c: New file.
6485 * breakpoint.c: Move exception-catching code to new file.
6486 (ep_parse_optional_if_clause): No longer static.
6487 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6488
6e72ca20
TT
64892013-04-15 Tom Tromey <tromey@redhat.com>
6490
6491 PR c++/9065:
6492 * NEWS: Update.
6493 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6494 * c-exp.y (TYPEID): New token.
6495 (exp): Add new TYPEID productions.
6496 (ident_tokens): Add "typeid".
6497 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6498 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6499 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6500 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6501 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6502 case.
6503 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6504 (build_std_type_info_type, gnuv3_get_typeid_type)
6505 (gnuv3_get_typeid): New functions.
6506 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6507 new fields on ABI object.
6508 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6509 * std-operator.def (OP_TYPEID): New.
6510
715c6909
TT
65112013-04-15 Tom Tromey <tromey@redhat.com>
6512
6513 * elfread.c (elf_symtab_read): Install versioned symbol under
6514 unversioned name as well.
6515
8de20a37
TT
65162013-04-15 Tom Tromey <tromey@redhat.com>
6517
6518 PR c++/11990:
6519 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6520 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6521 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6522 (gdb_demangle): New function.
6523 * cp-support.h (gdb_demangle): Declare.
6524 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6525 (dwarf2_name): Use gdb_demangle.
6526 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6527 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6528 suffixes from name.
6529 (gnuv3_print_method_ptr): Use gdb_demangle.
6530 * jv-lang.c (java_demangle): Use gdb_demangle.
6531 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6532 * language.c (unk_lang_demangle): Use gdb_demangle.
6533 * symtab.c (symbol_find_demangled_name)
6534 (demangle_for_lookup): Use gdb_demangle.
6535
591f19e8
TT
65362013-04-15 Tom Tromey <tromey@redhat.com>
6537
6538 PR c++/12824:
6539 * NEWS: Update.
6540 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6541 New constant.
6542 (classify_exception_breakpoint): New function.
6543 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6544 (print_mention_exception_catchpoint)
6545 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6546 (catch_exception_command_1): Handle "rethrow" catchpoint.
6547 (catch_rethrow_command): New function.
6548 (_initialize_breakpoint): Add "catch rethrow" command.
6549
4d40cad2
PM
65502013-04-15 Pierre Muller <muller@sourceware.org>
6551
6552 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6553 set_gdbarch_write_pc as deprecated anymore.
6554
30bcb456
JB
65552013-04-15 Joel Brobecker <brobecker@adacore.com>
6556
6557 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6558 declarations.
6559
da9160e4
YQ
65602013-04-13 Yao Qi <yao@codesourcery.com>
6561
6562 * ctf.c (_initialize_ctf): Include "completer.h".
6563 Call add_target_with_completer instead of add_target.
6564
39ed5604
JK
65652013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6566
6567 Fix GDB regression related to PR binutils/14813.
6568 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6569 * minidebug.c (lzma_close): Add return value comment.
6570 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6571 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6572 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6573
65742013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6575
6576 * config.in: Regenerate.
6577
d521ce57
TT
65782013-04-12 Tom Tromey <tromey@redhat.com>
6579
6580 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6581 const.
6582 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6583 (struct die_reader_specs) <buffer>: Likewise.
6584 (die_reader_func_ftype): Make 'info_ptr' const.
6585 (struct line_header) <include_dirs, statement_program_start,
6586 statement_program_end>: Now const.
6587 (struct file_entry) <name>: Likewise.
6588 (struct partial_die_info) <sibling>: Likewise.
6589 (struct dwarf_block) <data>: Likewise.
6590 (dwarf2_read_section): Remove cast.
6591 (dwarf2_get_section_info): Make 'bufp' const.
6592 (read_index_from_section): Constify.
6593 (dw2_get_file_names_reader): Make 'info_ptr' const.
6594 (dw2_get_primary_filename_reader): Likewise.
6595 (read_comp_unit_head): Make 'info_ptr' and return type const.
6596 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6597 Likewise.
6598 (read_abbrev_offset): Constify.
6599 (dwarf2_create_include_psymtab): Make 'name' const.
6600 (create_debug_types_hash_table): Update.
6601 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6602 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6603 Constify.
6604 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6605 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6606 (read_comp_units_from_section): Constify.
6607 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6608 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6609 const.
6610 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6611 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6612 (create_dwp_hash_table, dwarf2_ranges_read)
6613 (dwarf2_record_block_ranges): Constify.
6614 (read_die_and_children, read_die_and_siblings_1)
6615 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6616 const.
6617 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6618 (abbrev_table_read_table): Constify.
6619 (load_partial_dies): Make 'info_ptr' const.
6620 (read_partial_die, read_attribute_value, read_attribute): Make
6621 'info_ptr' and return type const.
6622 (read_address, read_initial_length)
6623 (read_checked_initial_length_and_offset, read_offset)
6624 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6625 const.
6626 (read_direct_string): Make 'buf' and return type const.
6627 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6628 (read_indirect_string): Make return type const.
6629 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6630 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6631 'info_ptr' const.
6632 (read_str_index): Make return type const.
6633 (add_include_dir): Make 'include_dir' const.
6634 (add_file_name): Make 'name' const.
6635 (dwarf_decode_line_header): Constify.
6636 (psymtab_include_file_name): Make return type const.
6637 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6638 (dwarf2_start_subfile): Make 'filename' const.
6639 (dwarf2_const_value_attr): Make 'bytes' const.
6640 (read_signatured_type_reader): Make 'info_ptr' const.
6641 (decode_locdesc): Constify.
6642 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6643 const.
6644 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6645 'mac_end', and return type const.
6646 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6647 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6648 type const.
6649 (per_cu_header_read_in): Constify.
6650 * symfile.h (dwarf2_get_section_info): Update.
6651
d47a1bc1
TT
66522013-04-12 Tom Tromey <tromey@redhat.com>
6653
6654 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6655
6eaaf48b
EZ
66562013-04-12 Eli Zaretskii <eliz@gnu.org>
6657
fc4c25bf 6658 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6659 * top.c (print_gdb_configuration): New function, displays the
6660 details about GDB configure-time parameters.
6661 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6662 * cli/cli-cmds.c (show_configuration): New function.
6663 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6664 * main.c (captured_main) <print_configuration>: New static var.
6665 <long_options>: Use it.
6666 If --configuration was given, call print_gdb_configuration.
6667
b292c783
JK
66682013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6669 Pedro Alves <palves@redhat.com>
6670
6671 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6672 (generated_files): Add gcore.
6673 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6674 HAVE_NATIVE_GCORE_HOST.
6675 (gcore): New.
6676 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6677 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6678 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6679 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6680 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6681 Add HAVE_NATIVE_GCORE_HOST.
6682 * configure: Regenerate.
6683 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6684 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6685 AC_CONFIG_FILES for gcore.
6686 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6687 gdb_have_gcore.
6688 * gdb_gcore.sh: Rename to ...
6689 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6690 and GCORE_TRANSFORM_NAME substitutions.
6691
c96b3c4f
JK
6692 Fix parsing tabs in ${gdb_target_obs}.
6693 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6694
d6cb50a2
JK
66952013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6696
6697 * remote.c (unpush_and_perror): Add output message final dot.
6698
cf2cb5ec
YQ
66992013-04-11 Yao Qi <yao@codesourcery.com>
6700
6701 * tracepoint.c (tfile_interp_line): Fit parameters line and
6702 utpp in one line.
6703
07293be4
JB
67042013-04-10 Joel Brobecker <brobecker@adacore.com>
6705
6706 * solib.c (solib_map_sections): Remove code overwriting
6707 SO->SO_NAME with the bfd's filename.
6708
f81d1120
PA
67092013-04-10 Pedro Alves <palves@redhat.com>
6710
6711 * cli/cli-decode.c (integer_unlimited_completer): New function.
6712 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6713 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6714 completer.
6715 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6716 (is_unlimited_literal): New function.
6717 (do_set_command): Handle literal "unlimited" arguments.
6718 * frame.c (_initialize_frame) <set backtrace limit>: Document
6719 "unlimited".
6720 * printcmd.c (_initialize_printcmd) <set print
6721 max-symbolic-offset>: Add help text.
6722 * record-full.c (_initialize_record_full) <set record full
6723 insn-number-max>: Likewise.
6724 * record.c (_initialize_record) <set record
6725 instruction-history-size, set record function-call-history-size>:
6726 Add help text.
6727 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6728 help text.
6729 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6730 Likewise.
6731 * source.c (_initialize_source) <set listsize>: Add help text.
6732 * utils.c (initialize_utils) <set height, set width>: Likewise.
6733 <set pagination>: Mention "set height unlimited".
6734 * valprint.c (_initialize_valprint) <set print elements, set print
6735 repeats>: Document "unlimited".
6736
2f9d54cf
PA
67372013-04-10 Pedro Alves <palves@redhat.com>
6738
6739 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6740 instead of disconnect_tracing.
6741 * infcmd.c (detach_command, disconnect_command): Call
6742 query_if_trace_running. Adjust.
6743 * top.c: Include "tracepoint.h".
6744 (quit_target): Delete. Contents moved ...
6745 (quit_force): ... here. Wrap each stage of teardown in
6746 TRY_CATCH. Call disconnect_tracing before detaching.
6747
393fd4c3
YQ
67482013-04-10 Hui Zhu <hui@codesourcery.com>
6749 Yao Qi <yao@codesourcery.com>
6750
6751 * configure.ac: Check libbabeltrace is installed.
6752 * config.in: Regenerate.
6753 * configure: Regenerate.
6754 * Makefile.in (LIBBABELTRACE): New.
6755 (CLIBS): Add LIBBABELTRACE.
6756 * ctf.c: Include "exec.h".
6757 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6758 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6759 (ctf_save_metadata_header): Define new type aliases in
6760 metadata.
6761 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6762 in metadata. Start a new faked packet for trace status.
6763 (ctf_write_status): Write trace status to CTF.
6764 (ctf_write_uploaded_tsv): Write TSV to CTF.
6765 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6766 (ctf_write_definition_end): End the faked packet.
6767
6768 (ctx, ctf_iter, trace_dirname): New.
6769 (start_pos): New variable.
6770 (ctf_destroy, ctf_open_dir, ctf_open): New.
6771 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6772 macros.
6773 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6774 (ctf_fetch_registers, ctf_xfer_partial): New.
6775 (ctf_get_trace_state_variable_value): New.
6776 (ctf_get_tpnum_from_frame_event): New.
6777 (ctf_get_traceframe_address): New.
6778 (ctf_trace_find, ctf_has_stack): New.
6779 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6780 (ctf_get_trace_status, ctf_read_status): New.
6781 (_initialize_ctf): New.
6782 * tracepoint.c (get_tracepoint_number): New
6783 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6784 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6785 * tracepoint.h: ... here.
6786 (get_tracepoint_number): Declare it.
6787 (get_uploaded_tsv): Declare it.
6788
6789 * NEWS: Mention new configure option.
6790
5c2b4418
HZ
67912013-04-10 Pedro Alves <palves@redhat.com>
6792 Hui Zhu <hui@codesourcery.com>
6793
6794 * breakpoint.c (dprintf_re_set): New.
6795 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6796 to dprintf_re_set.
6797
a5c66735
JB
67982013-04-09 Joel Brobecker <brobecker@adacore.com>
6799
6800 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6801 Remove solib-svr4.o from the list.
6802
9e77999c
JB
68032013-04-09 Joel Brobecker <brobecker@adacore.com>
6804
6805 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6806 Use gdb_assert_not_reached instead of invalid boolean expression.
6807
1927e618
PA
68082013-04-09 Pedro Alves <palves@redhat.com>
6809
6810 * remote.c (unpush_and_perror): New function.
6811 (readchar, remote_serial_write): Use it.
6812
10782d74
MM
68132013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6814
6815 * NEWS: Mention new btrace RSP packets.
6816
4c8429ef
TT
68172013-04-08 Tom Tromey <tromey@redhat.com>
6818
6819 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6820 long.
6821
8625fc1b
TT
68222013-04-08 Tom Tromey <tromey@redhat.com>
6823
6824 * maint.c (print_bfd_section_info): Print the section index.
6825 * symmisc.c (dump_msymbols): Print the section index.
6826
e27d198c
TT
68272013-04-08 Tom Tromey <tromey@redhat.com>
6828
6829 PR symtab/8424:
6830 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6831 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6832 * breakpoint.c (resolve_sal_pc): Update.
6833 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6834 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6835 (minsym_lookup_iterator_cb): Use it.
6836 (default_read_var_value): Update.
6837 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6838 Update.
6839 * infcmd.c (jump_command): Update.
6840 * linespec.c (minsym_found): Update.
6841 * maint.c (maintenance_translate_address): Update.
6842 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6843 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6844 * parse.c (write_exp_msymbol): Update.
6845 * printcmd.c (address_info): Update.
6846 * psymtab.c (find_pc_sect_psymbol): Update.
6847 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6848 SYMBOL_OBJ_SECTION.
6849 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6850 Don't initialize SYMBOL_OBJ_SECTION.
6851 * spu-tdep.c (spu_catch_start): Update.
6852 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6853 * symmisc.c (dump_msymbols, print_symbol): Update.
6854 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6855 how fallback section is computed.
6856 (fixup_symbol_section): Update.
6857 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6858 Update.
6859 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6860 Initialize SYMBOL_SECTION.
6861 * symtab.h (struct general_symbol_info) <section>: Update comment.
6862 <obj_section>: Remove.
6863 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6864 (SYMBOL_OBJFILE): New macro.
6865
e6dc44a8
TT
68662013-04-08 Tom Tromey <tromey@redhat.com>
6867
6868 * coffread.c (record_minimal_symbol): Update.
6869 * dbxread.c (record_minimal_symbol): Update.
6870 * elfread.c (record_minimal_symbol): Update.
6871 * machoread.c (macho_symtab_add_minsym): Update.
6872 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6873 Update.
6874 * minsyms.c (prim_record_minimal_symbol): Update.
6875 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6876 argument.
6877 (prim_record_minimal_symbol_and_info): Likewise.
6878 * minsyms.h (prim_record_minimal_symbol_full)
6879 (prim_record_minimal_symbol_and_info): Update.
6880 * symtab.c (allocate_symbol, initialize_symbol)
6881 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6882 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6883 Update.
6884
36192a8d
TT
68852013-04-08 Tom Tromey <tromey@redhat.com>
6886
6887 PR symtab/8423:
6888 * solib-som.c (som_solib_section_offsets): Use BFD section
6889 indices. Set offsets for all sections.
6890 * somread.c (som_symtab_read): Compute BFD section for
6891 symbol. Use prim_record_minimal_symbol_and_info.
6892 (som_symfile_read): Fix comment.
6893 (struct find_section_offset_arg): New.
6894 (find_section_offset, set_section_index): New functions.
6895 (som_symfile_offsets): Use set_section_index to compute
6896 section indices.
6897
65cf3563
TT
68982013-04-08 Tom Tromey <tromey@redhat.com>
6899
6900 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6901 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6902 gdb_bfd_section_index.
6903 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6904 New functions.
6905 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6906 Declare.
6907 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6908 Update.
6909 * objfiles.c (add_to_objfile_sections_full): New function.
6910 (add_to_objfile_sections): Use it.
6911 (build_section_table): Rewrite.
6912 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6913 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6914 (struct objfile) <sections>: Update comment.
6915 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6916 is NULL.
6917 (ALL_OBJSECTIONS): Use it.
6918 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6919 * solib-frv.c (frv_relocate_main_executable): Update.
6920 * solib-target.c (solib_target_relocate_section_addresses):
6921 Use gdb_bfd_section_index.
6922 * symfile.c (build_section_addr_info_from_section_table):
6923 Use gdb_bfd_section_index.
6924 (build_section_addr_info_from_bfd, place_section): Likewise.
6925 * symtab.c (fixup_section): Update.
6926 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6927
7cbd4a93
TT
69282013-04-08 Tom Tromey <tromey@redhat.com>
6929
6930 * minsyms.h (struct bound_minimal_symbol): New.
6931 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6932 Remove objfile argument.
6933 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6934 Return bound_minimal_symbol.
6935 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6936 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6937 Return bound_minimal_symbol.
6938 (in_gnu_ifunc_stub): Update.
6939 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6940 Remove 'objfile_p' argument.
6941 (lookup_solib_trampoline_symbol_by_pc): Update.
6942 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6943 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6944 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6945 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6946 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6947 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6948 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6949 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6950 stack.c, symtab.c, tui/tui-disasm.c: Update.
6951
f85f34ed
TT
69522013-04-08 Tom Tromey <tromey@redhat.com>
6953
6954 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6955 Use symbol's obstack, not an objfile.
6956 * coffread.c (process_coff_symbol): Update.
6957 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6958 * jv-lang.c (add_class_symbol): Update.
6959 * mdebugread.c (new_symbol): Update.
6960 * minsyms.c (prim_record_minimal_symbol_full)
6961 (terminate_minimal_symbol_table): Update.
6962 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6963 * stabsread.c (define_symbol, read_enum_type): Update.
6964 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6965 Handle Ada specially.
6966 (symbol_set_language): Add 'obstack' argument.
6967 (symbol_set_names): Update.
6968 (symbol_natural_name, symbol_demangled_name): Always use
6969 ada_decode_symbol.
6970 * symtab.h (struct general_symbol_info)
6971 <language_specific::obstack>: New field.
6972 <ada_mangled>: New field.
6973 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6974 (symbol_set_language): Update.
6975
ccde22c0
TT
69762013-04-08 Tom Tromey <tromey@redhat.com>
6977
6978 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6979 Take an obstack, not an objfile.
6980 (symbol_set_names): Update.
6981 * symtab.h (symbol_set_demangled_name): Update.
6982
e623cf5d
TT
69832013-04-08 Tom Tromey <tromey@redhat.com>
6984
6985 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6986 allocate_symbol.
6987 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6988 (read_func_scope): Call allocate_template_symbol.
6989 (new_symbol_full): Call allocate_symbol.
6990 * jit.c (finalize_symtab): Call allocate_symbol.
6991 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6992 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6993 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6994 (common_block_end): Call allocate_symbol.
6995 * symtab.c (allocate_symbol, initialize_symbol)
6996 (allocate_template_symbol): New functions.
6997 * symtab.c (allocate_symbol, initialize_symbol)
6998 (allocate_template_symbol): Declare.
6999 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7000
f6de8ec2
PA
70012013-04-08 Pedro Alves <palves@redhat.com>
7002 Keith Seitz <keiths@redhat.com>
7003
7004 * breakpoint.c (create_breakpoint): Rename
7005 "parse_condition_and_thread" parameter to "parse_arg". Update
7006 describing comment. If !PARSE_ARG, then error out if ARG is not
7007 the empty string after extracting the location.
7008 * breakpoint.h (create_breakpoint): Rename
7009 "parse_condition_and_thread" parameter to "parse_arg".
7010
f65ce5fb
AR
70112013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7012
7013 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7014
cc5925ad
YQ
70152013-04-07 Yao Qi <yao@codesourcery.com>
7016
7017 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7018 and 'addr2' to CORE_ADDR.
7019 * target.c (update_current_target): Update.
7020 * target.h (struct target_ops) <to_trace_find>: Change parameter
7021 type to CORE_ADDR.
7022 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7023 'addr2' to CORE_ADDR.
7024 (tfile_trace_find): Likewise.
7025 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7026 Change local variable 'addr' to type CORE_ADDR.
7027 * tracepoint.h (tfind_1): Update declaration.
7028
d9ac0664
EZ
70292013-04-06 Eli Zaretskii <eliz@gnu.org>
7030
7031 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7032 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7033 Include main.h.
7034
7035 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7036 here...
7037 * main.h (windows_get_absolute_argv0): ...to here.
7038
02142a6c
DE
70392013-04-05 Doug Evans <dje@google.com>
7040
7041 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7042 (read_cutu_die_from_dwo): Add comments.
7043 (read_structure_type): Update comment.
7044 (read_enumeration_type, read_namespace_type): Update comment.
7045 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7046
43662968
JK
70472013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7048
7049 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7050 * Makefile.in (gdb.z): Remove.
7051 (install-only): Remove $(man1dir) and gdb.1 installation.
7052 * gdb.1: Remove.
7053
9ead1b84
JK
70542013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7055
7056 Fix compatibility with Linux kernel 3.8.3.
7057 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7058 to more inner block. Remove parsing of NUMBER from outer block.
7059 Parse NUMBER only if KEYWORD has been identified.
7060
d1794952
JK
70612013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 Fix variable name shadowing.
7064 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7065 filename to mapsfilename and update its uses.
7066
9025569e
EZ
70672013-04-05 Eli Zaretskii <eliz@gnu.org>
7068
7069 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7070 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7071 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7072 details of the problem.
7073
c9a6ce02
PA
70742013-04-04 Pedro Alves <palves@redhat.com>
7075 Hui Zhu <hui@codesourcery.com>
7076
7077 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7078 tracepoint, reset its STEP_COUNT and call validate_actionline.
7079
5ff888ce
DE
70802013-04-03 Doug Evans <dje@google.com>
7081
bf6af496
DE
7082 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7083 read_die_and_siblings.
7084 (read_die_and_siblings): New function.
7085 (read_cutu_die_from_dwo): Dump die if requested.
7086 (read_die_and_children): Call read_full_die_1 and
7087 read_die_and_siblings_1.
7088 (read_full_die): Dump die if requested.
7089
7090 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7091
0ac5b59e
DE
7092 * dwarf2read.c (struct dwo_file): New member comp_dir.
7093 Rename member name to dwo_name. All uses updated.
7094 (hash_dwo_file): Include comp_dir in computation.
7095 (eq_dwo_file): Ditto.
7096 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7097 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7098
5ff888ce
DE
7099 * psymtab.c (read_psymtabs_with_fullname): Don't call
7100 psymtab_to_fullname if the basenames are different.
7101
ec83d211
JK
71022013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7103
7104 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7105 New entry about "fullname" presence.
7106
4f4352f7
PA
71072013-04-03 Pedro Alves <palves@redhat.com>
7108
7109 * NEWS: Mention x86_64/Cygwin as new native configuration.
7110
3d1d5ea3
DE
71112013-04-02 Doug Evans <dje@google.com>
7112
7113 * dwarf2read.c (read_structure_type): Fix typo in comment.
7114
be9a8770
PA
71152013-04-02 Pedro Alves <palves@redhat.com>
7116
7117 * NEWS: Mention "set/show debug aarch64", "set/show debug
7118 coff-pe-read" and "set/show debug mach-o".
7119
a46c1e42
PA
71202013-04-02 Pedro Alves <palves@redhat.com>
7121
7122 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7123
3ad18b19
EZ
71242013-04-02 Eli Zaretskii <eliz@gnu.org>
7125
7126 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7127 gdb_string.h is now in common/.
7128
e9f1758d
PA
71292013-04-02 Pedro Alves <palves@redhat.com>
7130
7131 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7132 under "New options".
7133
049dc89b
JK
71342013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7135
7136 Revert this patch:
7137 PR gdb/15275
7138 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7139
c33e31fd
PA
71402013-04-02 Pedro Alves <palves@redhat.com>
7141
7142 PR gdb/15275
7143
7144 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7145 (remote_serial_write): New function.
7146 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7147
ea5f3910
JW
71482013-04-01 Jiong Wang <jiwang@tilera.com>
7149
7150 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7151 "New targets" sections.
ea5f3910 7152
5c6fa7ab
DE
71532013-04-01 Doug Evans <dje@google.com>
7154
c0f78cd4
DE
7155 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7156 (process_enumeration_scope): Simplify.
7157
0186c6a7
DE
7158 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7159 type_unit_group ...
7160 (struct signatured_type): ... to here.
7161 (sig_type_ptr): New typedef.
7162 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7163 out of union 't'. All uses updated.
7164 (dw2_get_file_names_reader): Assert not called for a type unit.
7165 (dw2_get_file_names): Assert not called for a type unit or type
7166 unit group.
7167 (build_type_psymtabs_reader): Assert called for a type unit.
7168 (build_type_psymtab_dependencies): Assert called for a type unit group.
7169
5c6fa7ab
DE
7170 * dwarf2read.c (free_dwo_file): Add comment.
7171 (dwarf2_per_objfile_free): Unref dwp bfd.
7172
b3c0ad67 71732013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7174
7175 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7176 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7177 (read_pe_exported_syms): Remove unused 'exportix'.
7178 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7179 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7180 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7181
e2df1547
AR
71822013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7183
7184 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7185 (print_it_watchpoint): Remove unused 'bl'.
7186 (say_where): Remove unused 'uiout'.
7187 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7188 (bkpt_breakpoint_hit): Remove unused 'b'.
7189 (internal_bkpt_print_it): Remove unused 'uiout'.
7190 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7191
d81e75c0
TD
71922013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7193
7194 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7195 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7196
5a8b3f62
DE
71972013-03-29 Doug Evans <dje@google.com>
7198
ab5088bf
DE
7199 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7200 Delete arg is_dwp. All callers updated.
7201 (open_dwp_file): New function.
7202 (open_and_init_dwp_file): Call it.
7203 (get_dwp_file): New function.
7204 (lookup_dwo_cutu): Call it.
7205
a8ad1e57
DE
7206 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7207 unnecessary, cleanup.
7208
6296d8c1
DE
7209 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7210
b0c7bfa9
DE
7211 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7212 (lookup_dwo_unit): New function.
7213 (init_cutu_and_read_dies): Move DWO handling to new functions.
7214
c88ee1f0
DE
7215 * dwarf2read.c (struct signatured_type): Tweak comment.
7216 (struct dwo_unit): Tweak comment.
7217 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7218 (create_dwo_debug_info_hash_table): Tweak comment.
7219 (dwarf2_per_cu_offset_and_type): Tweak comment.
7220
5a8b3f62
DE
7221 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7222 missing .debug_types section.
7223
9852c492
YQ
72242013-03-29 Yao Qi <yao@codesourcery.com>
7225
7226 * corelow.c: Include "completer.h".
7227 (_initialize_corelow): Call add_target_with_completer with
7228 argument 'filename_completer'.
7229 * tracepoint.c: Likewise.
7230 * exec.c (_initialize_exec): Likewise.
7231 * target.c (add_target): Rename to ...
7232 (add_target_with_completer): ... this. Call set_cmd_completer
7233 if parameter completer is not NULL.
7234 (add_target): New.
7235 * target.h: Include "command.h".
7236 (add_target_with_completer): Declare it.
7237
af312be7
JB
72382013-03-28 Joel Brobecker <brobecker@adacore.com>
7239
7240 * coffread.c (is_import_fixup_symbol): New function.
7241 (record_minimal_symbol): Use is_import_fixup_symbol to
7242 detect import fixup symbols, and discard them.
7243
8a0459fd
DE
72442013-03-28 Doug Evans <dje@google.com>
7245
0349ea22
DE
7246 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7247 types hash table until we know we need it.
7248
f652bce2
DE
7249 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7250 index numbers.
7251
e4a48d9d
DE
7252 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7253 All callers updated.
7254 (dw2_print_stats): Print #read CUs too.
7255 (dump_die_shallow): Print signatured types better.
7256
8a0459fd
DE
7257 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7258 info_or_types_section to section. All uses updated.
7259 (struct dwo_unit): Ditto.
7260
bd3eecc3
PA
72612013-03-28 Pedro Alves <palves@redhat.com>
7262
7263 * NEWS (New options): New section.
7264 (New options): Mention set/show remote trace-status-packet.
7265 * remote.c (PACKET_qTStatus): New enumeration value.
7266 (remote_get_trace_status): Skip sending qTStatus if the packet is
7267 disabled. Use packet_ok.
7268 (_initialize_remote): Register a configuration command for
7269 qTStatus packet.
7270
41245087
DE
72712013-03-28 Doug Evans <dje@google.com>
7272
7edbb660
DE
7273 * symfile.c (find_separate_debug_file): Add comment.
7274 (terminate_after_last_dir_separator): Tweak comment.
7275
0018ea6f
DE
7276 * dwarf2read.c (create_partial_symtab): Add forward decl.
7277 (create_partial_symtab): Move to be closer to other psymtab functions.
7278 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7279
ca69b9e6
DE
7280 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7281 (compute_symtab_includes): Remove unnecessary forward declaration.
7282 (die_needs_namespace): Add comment marking group of functions for
7283 dwarf2 name computation.
7284
a9375afe
DE
7285 * typeprint.c (_initialize_typeprint): Improve type help text.
7286
41245087
DE
7287 * python/python.c (finish_python_initialization): Provide suggestion
7288 for how to tell gdb to find its python files.
7289
7f7cc265
PA
72902013-03-28 Pedro Alves <palves@redhat.com>
7291
7292 PR gdb/15294
7293
7294 * source.c (_initialize_source): Change back "set listsize" to an
7295 integer command.
7296
ec21308c
JK
72972013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7298
7299 PR gdb/15275
7300 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7301
840a9a1f
PA
73022013-03-27 Pedro Alves <palves@redhat.com>
7303
7304 * top.c (history_size): Rename to ...
7305 (history_size_setshow_var): ... this. Add comment.
7306 (show_commands): Use readline's 'history_length' instead of
7307 computing the history length by calling history_get in a loop.
7308 (set_history_size_command): Error out for sizes over INT_MAX.
7309 Restore previous history size on invalid size.
7310 (init_history): If HISTSIZE is negative, leave the history size as
7311 zero. Add comments.
7312 (init_main): Adjust.
7313
826ecc4d
PA
73142013-03-27 Pedro Alves <palves@redhat.com>
7315
7316 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7317 coff_pe_read" command to "set debug coff-pe-read".
7318
0ccfeeae
MM
73192013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7320
7321 * record.c (command_size_to_target_size): Fix size comparison.
7322 Change parameter type from pointer to integer to integer.
7323 Update all users.
7324
40653b35
PM
73252013-03-27 Pierre Muller <muller@sourceware.org>
7326
7327 * windows-nat.c (handle_output_debug_string): Avoid typecast
7328 from integer of different size warning.
7329
c62fa0e2
JB
73302013-03-26 Joel Brobecker <brobecker@adacore.com>
7331
7332 * windows-nat.c (handle_output_debug_string): Add empty line
7333 after local block variable definition.
7334
2c619be2
PA
73352013-03-26 Pedro Alves <palves@redhat.com>
7336
7337 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7338 (net_open): Make 'polls' local unsigned.
7339
1b493192
PA
73402013-03-26 Pedro Alves <palves@redhat.com>
7341
7342 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7343 a zuinteger command instead of uinteger.
7344
7ee70bf5
PA
73452013-03-26 Pedro Alves <palves@redhat.com>
7346
7347 * record-full.c (record_full_insn_num): Make it unsigned.
7348 (record_full_check_insn_num, record_full_message)
7349 (record_full_registers_change, record_full_xfer_partial): Remove
7350 record_full_insn_max_num check (it's always != 0).
7351 (record_full_info, record_full_restore): Use %u as format string.
7352 (): Use %u as format string.
7353 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7354 check (it's always != 0).
7355
dfd1f9bb
PA
73562013-03-26 Pedro Alves <palves@redhat.com>
7357
7358 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7359 and "set dcache size" commands zuinteger instead of uinteger.
7360
addb4faf
PA
73612013-03-26 Pedro Alves <palves@redhat.com>
7362
7363 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7364 command zuinteger instead of uinteger.
7365
b75bf488
PA
73662013-03-26 Pedro Alves <palves@redhat.com>
7367
7368 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7369 zuinteger instead of uinteger.
7370
42c634cb
PA
73712013-03-26 Pedro Alves <palves@redhat.com>
7372
7373 * record.c (record_insn_history_size_setshow_var)
7374 (record_call_history_size_setshow_var): New globals.
7375 (command_size_to_target_size): New function.
7376 (cmd_record_insn_history, cmd_record_call_history): Use
7377 command_size_to_target_size instead of cast.
7378 (validate_history_size, set_record_insn_history_size)
7379 (set_record_call_history_size): New functions.
7380 (_initialize_record): Install set_record_insn_history_size and
7381 set_record_call_history_size as "set" hooks of "set record
7382 instruction-history-size" and "set record
7383 function-call-history-size".
7384
1fb2e2b5
PA
73852013-03-26 Pedro Alves <palves@redhat.com>
7386
7387 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7388 use with history_max_entries use. Remove FIXME note.
7389
99c819ee
MM
73902013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7391
7392 * record-btrace.c (record_btrace_close): Call
7393 record_btrace_auto_disable.
7394
9f9e404c
JB
73952013-03-25 Joel Brobecker <brobecker@adacore.com>
7396
7397 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7398
ebcdfe33
DE
73992013-03-25 Doug Evans <dje@google.com>
7400
7401 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7402
24955f63
TT
74032013-03-25 Tom Tromey <tromey@redhat.com>
7404
7405 PR symtab/11462:
7406 * c-exp.y (exp): Add new productions for destructors after '.' and
7407 '->'.
7408 (write_destructor_name): New function.
7409
fce632b6
TT
74102013-03-25 Tom Tromey <tromey@redhat.com>
7411
7412 PR c++/9197:
7413 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7414 value_struct_elt, not lookup_struct_elt_type.
7415 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7416 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7417 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7418
a4341769
YQ
74192013-03-25 Yao Qi <yao@codesourcery.com>
7420
7421 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7422 instead of '_mkdir'.
7423
b5981e5a
EZ
74242013-03-23 Eli Zaretskii <eliz@gnu.org>
7425
7426 * windows-nat.c (windows_get_absolute_argv0): New function.
7427 * windows-nat.h: Add its prototype.
7428
7429 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7430 Use IS_DIR_SEPARATOR instead of looking for a character inside
7431 SLASH_STRING. Include filenames.h.
7432 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7433 relocate_gdb_directory works when passed gdb_program_name.
7434 Include windows-nat.h.
7435
598d3636
JK
74362013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7437
7438 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7439 * remote.c (trace_error): Remove the special handling of '2'.
7440 (readchar) <SERIAL_EOF>
7441 (readchar) <SERIAL_ERROR>
7442 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7443 (remote_get_trace_status): Call throw_exception if EX is
7444 TARGET_CLOSE_ERROR.
7445 * utils.c (perror_with_name): Rename to ...
7446 (throw_perror_with_name): ... here. New parameter errcode, describe it
7447 in the function comment.
7448 (perror_with_name): New function wrapper.
7449 * utils.h (enum errors): New stub declaration.
7450 (throw_perror_with_name): New declaration.
7451
82b821e9
PA
74522013-03-22 Pedro Alves <palves@redhat.com>
7453 Yao Qi <yao@codesourcery.com>
7454 Mark Kettenis <kettenis@gnu.org>
7455
7456 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7457 Don't let the user set the value to UINT_MAX directly.
7458 <var_integer>: Don't let the user set the value to INT_MAX
7459 directly.
7460
78a095c3
JK
74612013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7462
7463 * remote.c (remote_unpush_target): New function.
7464 (remote_open_1): Remove two pop_target calls, update one comment, add
7465 comment to target_preopen call. Replace pop_target call by
7466 remote_unpush_target call.
7467 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7468 pop_target calls by remote_unpush_target calls.
7469
3e74e146
PA
74702013-03-22 Pedro Alves <palves@redhat.com>
7471
7472 * linux-nat.c (linux_child_follow_fork): Don't call
7473 linux_enable_event_reporting.
7474 (linux_handle_extended_wait): Don't call
7475 linux_enable_event_reporting.
7476
a2213dca
PA
74772013-03-22 Pedro Alves <palves@redhat.com>
7478
7479 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7480 use it to rewrite the trampoline buffers with type gdb_byte[], and
7481 undefine the macro. Remove char* cast.
7482
bd712aed
DE
74832013-03-21 Doug Evans <dje@google.com>
7484
7485 New commands "mt set per-command {space,time,symtab} {on,off}".
7486 * NEWS: Add entry.
7487 * event-top.c: #include "maint.h".
7488 * main.c: #include "maint.h".
7489 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7490 timeval-utils.h, maint.h, cli/cli-setshow.h.
7491 (per_command_time, per_command_space): New static globals.
7492 (per_command_symtab): New static global.
7493 (per_command_setlist, per_command_showlist): New static globals.
7494 (struct cmd_stats): Move here from utils.c.
7495 (set_per_command_time): Renamed from set_display_time in utils.c
7496 and moved here. All callers updated.
7497 (set_per_command_space): Renamed from set_display_space in utils.c
7498 and moved here. All callers updated.
7499 (count_symtabs_and_blocks): New function.
7500 (report_command_stats): Moved here from utils.c. Add support for
7501 printing symtab stats. Only print data if enabled before command
7502 executed.
7503 (make_command_stats_cleanup): Ditto.
7504 (sert_per_command_cmd, show_per_command_cmd): New functions.
7505 (_initialize_maint_cmds): Add new commands
7506 mt set per-command {space,time,symtab} {on,off}.
7507 * maint.h: New file.
7508 * top.c: #include "maint.h".
7509 * utils.c (reset_prompt_for_continue_wait_time): New function.
7510 (get_prompt_for_continue_wait_time): New function.
7511 * utils.h (reset_prompt_for_continue_wait_time): Declare
7512 (get_prompt_for_continue_wait_time): Declare.
7513 (make_command_stats_cleanup): Moved to maint.h.
7514 (set_display_time, set_display_space): Moved to maint.h and renamed
7515 to set_per_command_time, set_per_command_space.
7516 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7517 parse_binary_operation and made non-static. Don't call error,
7518 just return an error marker. All callers updated.
7519 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7520
d76488d8
TT
75212013-03-21 Tom Tromey <tromey@redhat.com>
7522
7523 * symfile.c (alloc_section_addr_info): Update header. Don't set
7524 'num_sections' field.
7525 (build_section_addr_info_from_section_table): Set 'num_sections'.
7526 (build_section_addr_info_from_bfd): Likewise.
7527 (build_section_addr_info_from_objfile): Remove dead loop
7528 condition.
7529 (free_section_addr_info): Unconditionally call xfree.
7530 (relative_addr_info_to_section_offsets, addrs_section_sort)
7531 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7532 condition.
7533 (syms_from_objfile_1): Remove dead 'if' condition. Check
7534 'num_sections'.
7535 (add_symbol_file_command): Set 'num_sections'.
7536 * symfile-mem.c (symbol_file_add_from_memory): Set
7537 'num_sections'.
7538 * somread.c (som_symfile_offsets): Remove dead loop condition.
7539 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7540 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7541
a72e5169 75422013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7543
7544 * tracepoint.h (decode_agent_options): Add 'trace_string'
7545 argument.
7546 * tracepoint.c (decode_agent_options): Add 'trace_string'
7547 argument.
7548 (validate_actionline): Update.
7549 (collect_symbol): Add 'trace_string' argument.
7550 (struct add_local_symbols_data) <trace_string>: New field.
7551 (do_collect_symbol): Update.
7552 (add_local_symbols): Add 'trace_string' argument.
7553 (encode_actions_1): Update.
7554 (trace_dump_actions): Update.
7555 * dwarf2loc.c (access_memory): Update.
7556 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7557 * ax-general.c (new_agent_expr): Update.
7558 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7559 (gen_trace_for_return_address): Add argument.
7560 (trace_kludge, trace_string_kludge): Remove.
7561 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7562 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7563 (gen_trace_for_var): Add 'trace_string' argument.
7564 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7565 (gen_printf, agent_eval_command_one): Update.
7566
b2f83c08
TT
75672013-03-21 Tom Tromey <tromey@redhat.com>
7568
7569 PR exp/15109:
7570 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7571 Handle FILENAME token.
7572
9507860e
TT
75732013-03-21 Tom Tromey <tromey@redhat.com>
7574
7575 * c-exp.y (YYPRINT): Define.
7576 (c_print_token): New function.
7577
e403aa4b
TT
75782013-03-21 Tom Tromey <tromey@redhat.com>
7579
7580 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7581
af307d6a
YQ
75822013-03-21 Yao Qi <yao@codesourcery.com>
7583
7584 * ctf.c: Include "gdb_stat.h".
7585 [USE_WIN32API]: New macro 'mkdir'.
7586 (ctf_start): Use permission bits macros if they are defined.
7587
fb81d016
KS
75882013-03-20 Keith Seitz <keiths@redhat.com>
7589
7590 * breakpoint.h (struct breakpoint): Add comment to
7591 extra_string indicating that this member is mallod'd.
7592 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7593
ef0026f0
PA
75942013-03-20 Pedro Alves <palves@redhat.com>
7595
7596 PR gdb/15289
7597
7598 * cli/cli-setshow.c (do_set_command)
7599 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7600 the result of parsing the command argument. Throw error if the
7601 value is greater than UINT_MAX. Print the invalid value with
7602 plongest.
7603 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7604 result of parsing the command argument. Throw error if the value
7605 is greater than INT_MAX, not greater or equal. Also throw error
7606 if the value is less than INT_MIN. Print the invalid value with
7607 plongest.
7608 <var_zuinteger_unlimited>: Throw error if the value is greater
7609 than INT_MAX, not greater or equal.
7610 (do_show_command) <var_integer, var_zinteger,
7611 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7612
24d6c2a0
TT
76132013-03-20 Tom Tromey <tromey@redhat.com>
7614
7615 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7616 if possible.
7617 * dwarf2read.c (read_func_scope): Remove old FIXME.
7618 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7619 not LOC_COMPUTED.
7620 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7621 Unconditionally call via computed ops, if possible.
7622 * printcmd.c (address_info): Unconditionally call via computed ops,
7623 if possible.
7624 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7625 if possible.
7626 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7627 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7628 if possible.
7629
f1e6e072
TT
76302013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7631 Tom Tromey <tromey@redhat.com>
7632
7633 PR symtab/8421:
7634 * coffread.c (coff_register_index): New global.
7635 (process_coff_symbol, coff_read_enum_type): Set
7636 SYMBOL_ACLASS_INDEX.
7637 (_initialize_coffread): Initialize new global.
7638 * dwarf2loc.c (locexpr_find_frame_base_location)
7639 (dwarf2_block_frame_base_locexpr_funcs)
7640 (loclist_find_frame_base_location)
7641 (dwarf2_block_frame_base_loclist_funcs): New.
7642 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7643 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7644 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7645 (dwarf2_block_frame_base_loclist_funcs): New.
7646 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7647 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7648 globals.
7649 (read_func_scope): Update.
7650 (fixup_go_packaging, mark_common_block_symbol_computed)
7651 (var_decode_location, new_symbol_full, dwarf2_const_value):
7652 Set SYMBOL_ACLASS_INDEX.
7653 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7654 (_initialize_dwarf2_read): Initialize new globals.
7655 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7656 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7657 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7658 globals.
7659 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7660 (_initialize_mdebugread): Initialize new globals.
7661 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7662 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7663 (stab_register_index, stab_regparm_index): New globals.
7664 (define_symbol, read_enum_type, common_block_end): Set
7665 SYMBOL_ACLASS_INDEX.
7666 (_initialize_stabsread): Initialize new globals.
7667 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7668 globals.
7669 (MAX_SYMBOL_IMPLS): New define.
7670 (register_symbol_computed_impl, register_symbol_block_impl)
7671 (register_symbol_register_impl)
7672 (initialize_ordinary_address_classes): New functions.
7673 (_initialize_symtab): Call initialize_ordinary_address_classes.
7674 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7675 (struct symbol_impl): New.
7676 (SYMBOL_ACLASS_BITS): New define.
7677 (struct symbol) <aclass, ops>: Remove fields.
7678 <aclass_index>: New field.
7679 (symbol_impls): Declare.
7680 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7681 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7682 (register_symbol_computed_impl, register_symbol_block_impl)
7683 (register_symbol_register_impl): Declare.
7684 (struct symbol_computed_ops): Add location_has_loclist.
7685 (struct symbol_block_ops): New.
7686 (SYMBOL_BLOCK_OPS): New.
7687 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7688
dbccfd4c
TT
76892013-03-20 Tom Tromey <tromey@redhat.com>
7690
7691 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7692 (print_partial_symbols, recursively_search_psymtabs): Use
7693 PSYMBOL_CLASS.
7694
e3f1ad4f
PM
76952013-03-20 Pierre Muller <muller@sourceware.org>
7696
7697 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7698 addtion, subtraction, multiplication and division binary operator.
7699
460014f5
JK
77002013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7701
7702 Code cleanup.
7703 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7704 * bsd-kvm.c (bsd_kvm_close): Likewise.
7705 * bsd-uthread.c (bsd_uthread_close): Likewise.
7706 * corelow.c (core_close): Likewise.
7707 (core_close_cleanup): Remove parameter quitting from a caller.
7708 * event-top.c (async_disconnect): Likewise.
7709 * exec.c (exec_close_1): Remove parameter quitting.
7710 * go32-nat.c (go32_close): Likewise.
7711 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7712 parameter quitting from a caller.
7713 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7714 variable.
7715 (mips_linux_close): Remove parameter quitting. Remove parameter
7716 quitting from a caller.
7717 * monitor.c (monitor_close): Remove parameter quitting.
7718 * monitor.h (monitor_close): Likewise.
7719 * record-btrace.c (record_btrace_close): Likewise.
7720 * record-full.c (record_full_close): Likewise.
7721 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7722 it also from fprintf_unfiltered.
7723 * remote-mips.c (mips_close): Remove parameter quitting.
7724 (mips_detach): Remove parameter quitting from a caller.
7725 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7726 (gdbsim_close): Remove duplicate function comment. Remove parameter
7727 quitting and remove it also from printf_filtered.
7728 * remote.c (remote_close): Remove parameter quitting.
7729 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7730 * target.c (update_current_target): Remove parameter int from to_close
7731 de_fault.
7732 (push_target, unpush_target, pop_target): Remove parameter quitting from
7733 a caller.
7734 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7735 Remove parameter quitting from a caller.
7736 (target_preopen): Remove parameter quitting from a caller.
7737 (target_close): Remove parameter quitting. Remove parameter quitting
7738 from a caller two times. Remove parameter quitting also from
7739 fprintf_unfiltered.
7740 * target.h (struct target_ops): Remove parameter quitting and as int
7741 from fields to_xclose and to_close.
7742 (extern struct target_ops current_target):
7743 (target_close, pop_all_targets): Remove parameter quitting. Update the
7744 comment.
7745 (pop_all_targets_above): Remove parameter quitting.
7746 * top.c (quit_target): Remove parameter quitting from a caller.
7747 * tracepoint.c (tfile_close): Remove parameter quitting.
7748 * windows-nat.c (windows_close): Remove parameter quitting.
7749
35a7120b
CV
77502013-03-20 Corinna Vinschen <vinschen@redhat.com>
7751
7752 * windows-nat.c (handle_output_debug_string): Replace call
7753 to string_to_core_addr with call to strtoull.
7754
8249a5a9
YQ
77552013-03-20 Yao Qi <yao@codesourcery.com>
7756
7757 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7758 and write it to CTF metadata.
7759
2c15ef43
CV
77602013-03-19 Corinna Vinschen <vinschen@redhat.com>
7761
7762 * windows-nat.c (handle_output_debug_string): Change type of n to
7763 SIZE_T to avoid crash on 64 bit systems.
7764
1cdd3232
EZ
77652013-03-17 Eli Zaretskii <eliz@gnu.org>
7766
7767 * python/python-internal.h (HAVE_SNPRINTF)
7768 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7769 about redefinition of snprintf by pyerrors.h.
7770
3cb2ab1a
SE
77712013-03-15 Steve Ellcey <sellcey@mips.com>
7772
7773 * remote-sim.c (sim_command_completer): Make char arguments const.
7774
9ce98649
TT
77752013-03-15 Tom Tromey <tromey@redhat.com>
7776
7777 PR c++/15116:
7778 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7779
dccee2de
TT
77802013-03-14 Tom Tromey <tromey@redhat.com>
7781
7782 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7783 New fields.
7784 (get_file_crc): Move from symfile.c.
7785 (gdb_bfd_crc): New function.
7786 * gdb_bfd.h (gdb_bfd_crc): Declare.
7787 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7788 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7789 (separate_debug_file_exists): Use gdb_bfd_crc.
7790
cc0ea93c
TT
77912013-03-14 Tom Tromey <tromey@redhat.com>
7792
7793 * symfile.c (get_debug_link_info): Remove.
7794 (find_separate_debug_file_by_debuglink): Use
7795 bfd_get_debug_link_info.
7796
08c23b0d
TT
77972013-03-14 Tom Tromey <tromey@redhat.com>
7798
7799 * symtab.c (error_in_psymtab_expansion): New function.
7800 (lookup_symbol_aux_quick)
7801 (basic_lookup_transparent_type_quick): Remove "last resort"
7802 code. Use error_in_psymtab_expansion.
7803
288e77a7
JK
78042013-03-14 Doug Evans <dje@google.com>
7805 Jan Kratochvil <jan.kratochvil@redhat.com>
7806
7807 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7808 any successful compare_filenames_for_search or FILENAME_CMP.
7809 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7810 * symtab.c (iterate_over_some_symtabs): Likewise.
7811
8f1b8b82
JK
78122013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7813
7814 * source.c (print_source_lines_base): Make a local copy of
7815 symtab_to_fullname.
7816
23eb71e4
JK
78172013-03-14 Hui Zhu <hui_zhu@mentor.com>
7818 Jan Kratochvil <jan.kratochvil@redhat.com>
7819
7820 * source.c (print_source_lines_base): Suppress "file" for TUI.
7821
bb869963
SDJ
78222013-03-14 Keith Seitz <keiths@redhat.com>
7823 Alan Matsuoka <alanm@redhat.com>
7824
7825 PR c++/15203
7826 PR c++/15210
7827 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7828 TYPE_CODE_METHOD.
7829 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7830 symbols.
7831
d6682f9e
YQ
78322013-03-14 Yao Qi <yao@codesourcery.com>
7833
7834 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7835 status to tfile if trace is stopped by command 'tstop'.
7836
a22fa6e4
YQ
78372013-03-14 Yao Qi <yao@codesourcery.com>
7838
7839 * tracepoint.c (tfile_write_status): Write trace notes and user
7840 name into tfile if they are not NULL.
7841
d0353e76
YQ
78422013-03-14 Hui Zhu <hui@codesourcery.com>
7843 Yao Qi <yao@codesourcery.com>
7844
7845 * Makefile.in (REMOTE_OBS): Add ctf.o.
7846 (SFILES): Add ctf.c.
7847 (HFILES_NO_SRCDIR): Add ctf.h.
7848 * ctf.c, ctf.h: New files.
7849 * tracepoint.c: Include 'ctf.h'.
7850 (collect_pseudocommand): Remove static.
7851 (trace_save_command): Parse option "-ctf".
7852 Produce different trace file writers per option.
7853 Adjust output message.
7854 (trace_save_tfile, trace_save_ctf): New.
7855 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7856 * mi/mi-main.c: Include 'ctf.h'.
7857 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7858 trace_save_tfile or trace_save_ctf.
7859 * NEWS: Mention these changes.
7860
3f43bc09
YQ
78612013-03-14 Yao Qi <yao@codesourcery.com>
7862
7863 * tracepoint.c (trace_file_writer_xfree): New.
7864 (struct tfile_writer_data): New.
7865 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7866 (tfile_write_header, tfile_write_regblock_type): New.
7867 (tfile_write_status, tfile_write_uploaded_tsv): New.
7868 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7869 (tfile_write_raw_data, (tfile_end): New.
7870 (tfile_write_ops): New global variable.
7871 (TRACE_WRITE_R_BLOCK): New macro.
7872 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7873 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7874 (TRACE_WRITE_V_BLOCK): New macro.
7875 (trace_save): Add extra one parameter WRITER. Make it static.
7876 Use WRITER to writer trace.
7877 (tfile_trace_file_writer_new): New.
7878 (trace_save_command): Caller update.
7879 (trace_save_tfile): Write trace data in TFILE format.
7880 * tracepoint.h (struct trace_frame_write_ops): New.
7881 (struct trace_file_write_ops): New.
7882 (struct trace_file_writer): New.
7883 (trace_save): Remove its declaration.
7884 (trace_save_tfile): Declare it.
7885 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7886 instead of trace_save.
7887
58665b40
PA
78882013-03-13 Pedro Alves <palves@redhat.com>
7889
7890 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7891
10217050
PA
78922013-03-13 Pedro Alves <palves@redhat.com>
7893
7894 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7895 commented out code.
7896 * demangle.c (current_demangling_style_string): Make it const.
7897 (set_demangling_command): Assert the demangling style is known.
7898 Remove all handling of unknown styles. Set
7899 'current_demangling_style_string' to an element of the
7900 demangling_style_names array.
7901 (set_demangling_style): Delete.
7902 (_initialize_demangler): Set current_demangling_style_string to the
7903 element of the demangling_style_names array that corresponds to
7904 the default demangling style. Remove FIXME note. Don't call
7905 set_demangling_style.
7906 * gdb-demangle.h (set_demangling_style): Remove declaration.
7907
6f937416
PA
79082013-03-13 Pedro Alves <palves@redhat.com>
7909
7910 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7911 fields const.
7912 (ada_make_symbol_completion_list): Make "text0" parameter const.
7913 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7914 * breakpoint.c (condition_completer): Make "text" and "word"
7915 parameters const. Adjust.
7916 (check_tracepoint_command): Adjust to validate_actionline
7917 prototype change.
7918 (catch_syscall_completer): Make "text" and "word" parameters
7919 const.
7920 * cli/cli-cmds.c (show_user): Make "comname" local const.
7921 (valid_command_p): Make "command" parameter const.
7922 (alias_command): Make "alias_prefix" and "command_prefix" locals
7923 const.
7924 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7925 (add_alias_cmd): Make "name" and "oldname" parameters const.
7926 Adjust. No longer make copy of OLDNAME.
7927 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7928 (add_setshow_cmd_full, add_setshow_enum_cmd)
7929 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7930 (add_setshow_filename_cmd, add_setshow_string_cmd)
7931 (add_setshow_string_noescape_cmd)
7932 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7933 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7934 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7935 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7936 Make "name" parameter const.
7937 (help_cmd): Rename "command" parameter to "arg". New const local
7938 "command".
7939 (find_cmd): Make "command" parameter const.
7940 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7941 deprecated_cmd_warning prototype change.
7942 (undef_cmd_error): Make "cmdtype" parameter const.
7943 (lookup_cmd): Make "line" parameter const.
7944 (deprecated_cmd_warning): Change type of "text" parameter to
7945 pointer to const char, from pointer to pointer to char. Adjust.
7946 (lookup_cmd_composition): Make "text" parameter const.
7947 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7948 parameters const.
7949 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7950 const.
7951 * cli/cli-script.c (validate_comname): Make "tem" local const.
7952 (define_command): New const local "tem_c". Use it in calls to
7953 lookup_cmd.
7954 (document_command): Make "tem" and "comfull" locals const.
7955 (show_user_1): Make "prefix" and "name" parameters const.
7956 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7957 const.
7958 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7959 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7960 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7961 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7962 (complete_on_enum, add_setshow_enum_cmd)
7963 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7964 (add_setshow_filename_cmd, add_setshow_string_cmd)
7965 (add_setshow_string_noescape_cmd)
7966 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7967 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7968 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7969 Change prototypes, constifying strings.
7970 * completer.c (noop_completer, filename_completer): Make "text"
7971 and "prefix" parameters const.
7972 (location_completer, expression_completer)
7973 (complete_line_internal): Make "text" and "prefix" parameters
7974 const and adjust.
7975 (command_completer, signal_completer): Make "text" and "prefix"
7976 parameters const.
7977 * completer.h (noop_completer, filename_completer)
7978 (expression_completer, location_completer, command_completer)
7979 (signal_completer): Change prototypes.
7980 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7981 parameters const.
7982 * cp-abi.c (cp_abi_completer): Likewise.
7983 * expression.h (parse_expression_for_completion): Change
7984 prototype.
7985 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7986 parameters const.
7987 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7988 * infrun.c (handle_completer): Make "text" and "word" parameters
7989 const.
7990 * interps.c (interpreter_completer): Make "text" and "word"
7991 parameters const.
7992 * language.h (struct language_defn)
7993 <la_make_symbol_completion_list>: Make "text" and "word"
7994 parameters const.
7995 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7996 (parse_exp_in_context): Rename to ...
7997 (parse_exp_in_context_1): ... this.
7998 (parse_exp_in_context): Reimplement, with const hack from
7999 parse_exp_1.
8000 (parse_expression_for_completion): Make "string" parameter const.
8001 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8002 to pointer to const char. Adjust.
8003 (print_command_1): Make "exp" parameter const.
8004 (output_command): Rename to ...
8005 (output_command_const): ... this. Make "exp" parameter const.
8006 (output_command): Reimplement.
8007 (x_command): Adjust.
8008 (display_command): Rename "exp" parameter to "arg". New "exp"
8009 local, const version of "arg".
8010 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8011 "cmd_name" local const.
8012 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8013 call.
8014 (cmdpy_completer): Make "text" and "word" parameters const.
8015 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8016 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8017 const.
8018 * remote.c (_initialize_remote): Make "cmd_name" local const.
8019 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8020 parameters const. Adjust.
8021 (completion_list_add_fields): Make "sym_text", "text" and "word"
8022 parameters const.
8023 (struct add_name_data) <sym_text, text, word>: Make fields const.
8024 (default_make_symbol_completion_list_break_on): Make "text" and
8025 "word" parameters const. Adjust locals.
8026 (default_make_symbol_completion_list)
8027 (make_symbol_completion_list, make_symbol_completion_type)
8028 (make_symbol_completion_list_fn): Make "text" and "word"
8029 parameters const.
8030 (make_file_symbol_completion_list): Make "text", "word" and
8031 "srcfile" parameters const. Adjust locals.
8032 (add_filename_to_list): Make "text" and "word" parameters const.
8033 (struct add_partial_filename_data) <text, word>: Make fields
8034 const.
8035 (make_source_files_completion_list): Make "text" and "word"
8036 parameters const.
8037 * symtab.h (default_make_symbol_completion_list_break_on)
8038 (default_make_symbol_completion_list, make_symbol_completion_list)
8039 (make_symbol_completion_type enum type_code)
8040 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8041 (make_source_files_completion_list): Change prototype.
8042 * top.c (execute_command): Adjust to pass pointer to pointer to
8043 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8044 change.
8045 (set_verbose): Make "cmdname" local const.
8046 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8047 and adjust.
8048 (validate_actionline): Make "line" parameter a pointer to const
8049 char, and adjust.
8050 (encode_actions_1): Make "action_exp" local const, and adjust.
8051 (encode_actions): Adjust.
8052 (replace_comma): Delete.
8053 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8054 const, and adjust. Don't frob the action string while splitting
8055 it at commas. Instead, make a copy of each split substring in
8056 turn.
8057 (trace_dump_command): Adjust to validate_actionline prototype
8058 change.
8059 * tracepoint.h (decode_agent_options, decode_agent_options)
8060 (encode_actions, validate_actionline): Change prototypes.
8061 * valprint.h (output_command): Delete declaration.
8062 (output_command_const): Declare.
8063 * value.c (function_destroyer): Cast const away in xfree call.
8064
a0bcdaa7
PA
80652013-03-13 Pedro Alves <palves@redhat.com>
8066
8067 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8068 rather than casting 'const char * const *' to 'const char **'.
8069 * ada-lex.l (processInt): Make "trailer" local const. Remove
8070 'const char **' cast.
8071 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8072 locals, and use those as strtol output pointer, instead than doing
8073 invalid casts to from 'const char **' to 'char **'.
8074 (_initialize_demangle): Remove cast.
8075 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8076 locals, and use those as strtol output pointer, instead than doing
8077 invalid casts to from 'const char **' to 'char **'.
8078 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8079 casts.
8080 * stap-probe.c (stap_parse_register_operand)
8081 (stap_parse_single_operand): Likewise.
8082
8ddb1965
YQ
80832013-03-13 Yao Qi <yao@codesourcery.com>
8084
8085 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8086 the last matched 'V' blcok in trace frame.
8087
2d450646
JB
80882013-03-12 Joel Brobecker <brobecker@adacore.com>
8089
8090 * NEWS: Create a new section for the next release branch.
8091 Rename the section of the current branch, now that it has
8092 been cut.
8093
b4b79973 80942013-03-12 Joel Brobecker <brobecker@adacore.com>
8095
8096 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8097 * version.in: Bump version to 7.6.50.20130312-cvs.
8098
ee047554
KS
80992013-03-12 Keith Seitz <keiths@redhat.com>
8100
8101 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8102 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8103 Remove temporary copy of input string.
8104 (mi_execute_command_wrapper): Make "cmd" const.
8105 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8106 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8107 Use const strings.
8108 (mi_parse): Make "cmd" const.
8109 Use const strings.
8110 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8111
bbc13ae3
KS
81122013-03-12 Keith Seitz <keiths@redhat.com>
8113
8114 * ada-lang.c (ada_read_renaming_var_value): Pass const
8115 pointer to expression string to parse_exp_1.
8116 (create_excep_cond_exprs): Likewise.
8117 * ax-gdb.c (agent_eval_command_one): Likewise.
8118 (maint_agent_printf_command): Likewise.
8119 Constify much of the string handling/parsing.
8120 * breakpoint.c (set_breakpoint_condition): Pass const
8121 pointer to expression string to parse_exp_1.
8122 (update_watchpoint): Likewise.
8123 (parse_cmd_to_aexpr): Constify string handling.
8124 Pass const pointer to parse_exp_1.
8125 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8126 (find_condition_and_thread): Likewise.
8127 Make TOK const.
8128 (watch_command_1): Make "arg" const.
8129 Constify string handling.
8130 Copy the expression string instead of changing the input
8131 string.
8132 (update_breakpoint_location): Pass const pointer to
8133 parse_exp_1.
8134 * eval.c (parse_and_eval_address): Make "exp" const.
8135 (parse_to_comma_and_eval): Make "expp" const.
8136 (parse_and_eval): Make "exp" const.
8137 * expression.h (parse_expression): Make argument const.
8138 (parse_exp_1): Make first argument const.
8139 * findcmd.c (parse_find_args): Treat "args" as const.
8140 * linespec.c (parse_linespec): Pass const pointer to
8141 linespec_expression_to_pc.
8142 (linespec_expression_to_pc): Make "exp_ptr" const.
8143 * parse.c (parse_exp_1): Make "stringptr" const.
8144 Make a copy of the expression to pass to parse_exp_in_context until
8145 this whole interface can be constified.
8146 (parse_expression): Make "string" const.
8147 * printcmd.c (ui_printf): Treat "arg" as const.
8148 Handle const strings.
8149 * tracepoint.c (validate_actionline): Pass const pointer to
8150 all calls to parse_exp_1.
8151 (encode_actions_1): Likewise.
8152 * value.h (parse_to_comma_and_eval): Make argument const.
8153 (parse_and_eval_address): Likewise.
8154 (parse_and_eval): Likewise.
8155 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8156 (varobj_set_value): Likewise.
8157 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8158 constify string handling.
8159 Pass const pointers to parse_and_eval_address and
8160 parse_to_comman_and_eval.
8161 * cli/cli-utils.c (skip_to_space): Rename to ...
8162 (skip_to_space_const): ... this. Handle const strings.
8163 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8164 skip_to_space_const.
8165 (skip_to_space_const): Declare.
8166 * common/format.c (parse_format_string): Make "arg" const.
8167 Handle const strings.
8168 * common/format.h (parse_format_string): Make "arg" const.
8169 * gdbserver/ax.c (ax_printf): Make "format" const.
8170 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8171 of the expression string.
8172
f3cec7e6
HZ
81732013-03-12 Hui Zhu <hui@codesourcery.com>
8174
8175 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8176
9df7235c
HZ
81772013-03-12 Yao Qi <yao@codesourcery.com>
8178 Hui Zhu <hui@codesourcery.com>
8179
8180 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8181 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8182 DW_OP_deref_size.
8183
82d049ab
PH
81842013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8185
5f8e0b8f
MF
8186 * ada-lex.l (rules): Only recognize 'thread' as a
8187 delimiter when followed by numerals, as for c-exp.y.
8188 Use new rewind_to_char function to rewind the input for
8189 expression-delimiting tokens.
8190 (rewind_to_char): New function.
82d049ab 8191
8c1fb155
JK
81922013-03-11 Pedro Alves <palves@redhat.com>
8193 Jan Kratochvil <jan.kratochvil@redhat.com>
8194
8195 * configure: Regenerate.
8196 * configure.ac (check dynamic export flag): Link python test with
8197 $PYTHON_LIBS.
8198
cc81e1c6
DE
81992013-03-11 Doug Evans <dje@google.com>
8200 Keith Seitz <keiths@redhat.com>
8201
8202 * linespec.c (find_linespec_symbols): Call find_function_symbols
8203 first, and then call lookup_prefix_sym/find_method.
8204
39086a0e
PA
82052013-03-11 Pedro Alves <palves@redhat.com>
8206
8207 * charset.c (convert_between_encodings): Don't cast between
8208 different pointer to pointer types. Instead, make the 'inp' local
8209 be of the type iconv expects.
8210 (wchar_iterate): Don't cast between different pointer to pointer
8211 types. Instead, use new pointer local of the type iconv expects.
8212 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8213 Add new local of type char pointer, and use it to get a
8214 char/string view of the byte buffer, instead of casting between
8215 pointer to pointer types.
8216
90585175
HAQ
82172013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8218
8219 * remote.c (remote_set_trace_buffer_size): Move != operator
8220 to the start of next line to fix an ARI warning.
8221
59ea5688
MM
82222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8223
8224 * NEWS: Add record changes.
8225
946287b7
MM
82262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8227
8228 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8229 the instruction history disassembly.
8230 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8231 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8232
afedecd3
MM
82332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8234
8235 * Makefile.in (SFILES): Add record-btrace.c
8236 (COMMON_OBS): Add record-btrace.o
8237 * record-btrace.c: New.
8238 * objfiles.c: Include btrace.h.
8239 (free_objfile): call btrace_free_objfile.
8240
15984c13
MM
82412013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8242
8243 * target.c (target_call_history, target_call_history_from,
8244 target_call_history_range): New.
8245 * target.h (target_ops) <to_call_history, to_call_history_from,
8246 to_call_history_range>: New fields.
8247 (target_call_history, target_call_history_from,
8248 target_call_history_range): New declaration.
8249 * record.c (get_call_history_modifiers, cmd_record_call_history,
8250 record_call_history_size): New.
8251 (_initialize_record): Add the "record function-call-history" command.
8252 Add "set/show record function-call-history-size" commands.
8253 * record.h (record_print_flag): New.
8254
67c86d06
MM
82552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8256
8257 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8258 to_insn_history_range>: New fields.
8259 (target_insn_history): New.
8260 (target_insn_history_from): New.
8261 (target_insn_history_range): New.
8262 * target.c (target_insn_history): New.
8263 (target_insn_history_from): New.
8264 (target_insn_history_range): New.
8265 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8266 (record_insn_history_size): New.
8267 (get_insn_number): New.
8268 (get_context_size): New.
8269 (no_chunk): New.
8270 (get_insn_history_modifiers): New.
8271 (cmd_record_insn_history): New.
8272 (_initialize_record): Add "set/show record instruction-history-size"
8273 command. Add "record instruction-history" command.
8274
7c1687a9
MM
82752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8276
8277 * record.h (record_disconnect): New.
8278 (record_detach): New.
8279 (record_mourn_inferior): New.
8280 (record_kill): New.
8281 * record-full.c (record_disconnect, record_detach,
8282 record_mourn_inferior, record_kill): Move to...
8283 * record.c: ...here.
8284 (DEBUG): New.
8285 (record_stop): New.
8286 (record_unpush): New.
8287 (cmd_record_stop): Call record_stop. Replace unpush_target
8288 call with record_unpush call.
8289 (record_disconnect, record_detach): Assert that the target
8290 is of record stratum. Call record_unpush, record_stop, and
8291 DEBUG.
8292 (record_mourn_inferior, record_kill): Assert that the target
8293 is of record stratum. Call record_unpush and DEBUG.
8294
25ea693b
MM
82952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8296
8297 * record-full.h, record-full.c (record_memory_query): Rename
8298 to ...
8299 (record_full_memory_query): ...this. Update all users.
8300 (record_arch_list_add_reg): Rename to ...
8301 (record_full_arch_list_add_reg): ...this. Update all users.
8302 (record_arch_list_add_mem): Rename to ...
8303 (record_full_arch_list_add_mem): ...this. Update all users.
8304 (record_arch_list_add_end): Rename to ...
8305 (record_full_arch_list_add_end): ...this. Update all users.
8306 (record_gdb_operation_disable_set): Rename to ...
8307 (record_full_gdb_operation_disable_set): ...this.
8308 Update all users.
8309
88d1aa9d
MM
83102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8311
8312 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8313 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8314 (RECORD_IS_REPLAY): Renamed to ...
8315 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8316 (RECORD_FILE_MAGIC): Renamed to ...
8317 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8318 (record_mem_entry): Renamed to ...
8319 (record_full_mem_entry): ... this. Updated all users.
8320 (record_reg_entry): Renamed to ...
8321 (record_full_reg_entry): ... this. Updated all users.
8322 (record_end_entry): Renamed to ...
8323 (record_full_end_entry): ... this. Updated all users.
8324 (record_type) <record_end, record_reg, record_mem>: Renamed
8325 to ...
8326 (record_full_type) <record_full_end, record_full_reg,
8327 record_full_mem>: ... this. Updated all users.
8328 (record_entry): Renamed to ...
8329 (record_full_entry): ... this. Updated all users.
8330 (record_core_buf_entry): Renamed to ...
8331 (record_full_core_buf_entry): ... this. Updated all users.
8332 (record_core_regbuf): Renamed to ...
8333 (record_full_core_regbuf): ... this. Updated all users.
8334 (record_core_start): Renamed to ...
8335 (record_full_core_start): ... this. Updated all users.
8336 (record_core_end): Renamed to ...
8337 (record_full_core_end): ... this. Updated all users.
8338 (record_core_buf_list): Renamed to ...
8339 (record_full_core_buf_list): ... this. Updated all users.
8340 (record_first): Renamed to ...
8341 (record_full_first): ... this. Updated all users.
8342 (record_list): Renamed to ...
8343 (record_full_list): ... this. Updated all users.
8344 (record_arch_list_head): Renamed to ...
8345 (record_full_arch_list_head): ... this. Updated all users.
8346 (record_arch_list_tail): Renamed to ...
8347 (record_full_arch_list_tail): ... this. Updated all users.
8348 (record_stop_at_limit): Renamed to ...
8349 (record_full_stop_at_limit): ... this. Updated all users.
8350 (record_insn_max_num): Renamed to ...
8351 (record_full_insn_max_num): ... this. Updated all users.
8352 (record_insn_num): Renamed to ...
8353 (record_full_insn_num): ... this. Updated all users.
8354 (record_insn_count): Renamed to ...
8355 (record_full_insn_count): ... this. Updated all users.
8356 (record_ops): Renamed to ...
8357 (record_full_ops): ... this. Updated all users.
8358 (record_core_ops): Renamed to ...
8359 (record_full_core_ops): ... this. Updated all users.
8360 (set_record_cmdlist): Renamed to ...
8361 (set_record_full_cmdlist): ... this. Updated all users.
8362 (show_record_cmdlist): Renamed to ...
8363 (show_record_full_cmdlist): ... this. Updated all users.
8364 (record_cmdlist): Renamed to ...
8365 (record_full_cmdlist): ... this. Updated all users.
8366 (record_beneath_to_resume_ops): Renamed to ...
8367 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8368 (record_beneath_to_resume): Renamed to ...
8369 (record_full_beneath_to_resume): ... this. Updated all users.
8370 (record_beneath_to_wait_ops): Renamed to ...
8371 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8372 (record_beneath_to_wait): Renamed to ...
8373 (record_full_beneath_to_wait): ... this. Updated all users.
8374 (record_beneath_to_store_registers_ops): Renamed to ...
8375 (record_full_beneath_to_store_registers_ops): ... this.
8376 Updated all users.
8377 (record_beneath_to_store_registers): Renamed to ...
8378 (record_full_beneath_to_store_registers): ... this.
8379 Updated all users.
8380 (record_beneath_to_xfer_partial_ops): Renamed to ...
8381 (record_full_beneath_to_xfer_partial_ops): ... this.
8382 Updated all users.
8383 (record_beneath_to_xfer_partial): Renamed to ...
8384 (record_full_beneath_to_xfer_partial): ... this.
8385 Updated all users.
8386 (record_beneath_to_insert_breakpoint): Renamed to ...
8387 (record_full_beneath_to_insert_breakpoint): ... this.
8388 Updated all users.
8389 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8390 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8391 Updated all users.
8392 (record_beneath_to_stopped_data_address): Renamed to ...
8393 (record_full_beneath_to_stopped_data_address): ... this.
8394 Updated all users.
8395 (record_beneath_to_async): Renamed to ...
8396 (record_full_beneath_to_async): ... this. Updated all users.
8397 (record_goto_insn): Renamed to ...
8398 (record_full_goto_insn): ... this. Updated all users.
8399 (record_save): Renamed to ...
8400 (record_full_save): ... this. Updated all users.
8401 (record_reg_alloc): Renamed to ...
8402 (record_full_reg_alloc): ... this. Updated all users.
8403 (record_reg_release): Renamed to ...
8404 (record_full_reg_release): ... this. Updated all users.
8405 (record_mem_alloc): Renamed to ...
8406 (record_full_mem_alloc): ... this. Updated all users.
8407 (record_mem_release): Renamed to ...
8408 (record_full_mem_release): ... this. Updated all users.
8409 (record_end_alloc): Renamed to ...
8410 (record_full_end_alloc): ... this. Updated all users.
8411 (record_end_release): Renamed to ...
8412 (record_full_end_release): ... this. Updated all users.
8413 (record_entry_release): Renamed to ...
8414 (record_full_entry_release): ... this. Updated all users.
8415 (record_list_release): Renamed to ...
8416 (record_full_list_release): ... this. Updated all users.
8417 (record_list_release_following): Renamed to ...
8418 (record_full_list_release_following): ... this.
8419 Updated all users.
8420 (record_list_release_first): Renamed to ...
8421 (record_full_list_release_first): ... this. Updated all users.
8422 (record_arch_list_add): Renamed to ...
8423 (record_full_arch_list_add): ... this. Updated all users.
8424 (record_get_loc): Renamed to ...
8425 (record_full_get_loc): ... this. Updated all users.
8426 (record_check_insn_num): Renamed to ...
8427 (record_full_check_insn_num): ... this. Updated all users.
8428 (record_arch_list_cleanups): Renamed to ...
8429 (record_full_arch_list_cleanups): ... this. Updated all users.
8430 (record_message): Renamed to ...
8431 (record_full_message): ... this. Updated all users.
8432 (record_message_wrapper): Renamed to ...
8433 (record_full_message_wrapper): ... this. Updated all users.
8434 (record_message_wrapper_safe): Renamed to ...
8435 (record_full_message_wrapper_safe): ... this. Updated all users.
8436 (record_gdb_operation_disable): Renamed to ...
8437 (record_full_gdb_operation_disable): ... this. Updated all users.
8438 (record_hw_watchpoint): Renamed to ...
8439 (record_full_hw_watchpoint): ... this. Updated all users.
8440 (record_exec_insn): Renamed to ...
8441 (record_full_exec_insn): ... this. Updated all users.
8442 (record_restore): Renamed to ...
8443 (record_full_restore): ... this. Updated all users.
8444 (record_async_inferior_event_token): Renamed to ...
8445 (record_full_async_inferior_event_token): ... this.
8446 Updated all users.
8447 (record_async_inferior_event_handler): Renamed to ...
8448 (record_full_async_inferior_event_handler): ... this.
8449 Updated all users.
8450 (record_core_open_1): Renamed to ...
8451 (record_full_core_open_1): ... this. Updated all users.
8452 (record_open_1): Renamed to ...
8453 (record_full_open_1): ... this. Updated all users.
8454 (record_open): Renamed to ...
8455 (record_full_open): ... this. Updated all users.
8456 (record_close): Renamed to ...
8457 (record_full_close): ... this. Updated all users.
8458 (record_resume_step): Renamed to ...
8459 (record_full_resume_step): ... this. Updated all users.
8460 (record_resumed): Renamed to ...
8461 (record_full_resumed): ... this. Updated all users.
8462 (record_execution_dir): Renamed to ...
8463 (record_full_execution_dir): ... this. Updated all users.
8464 (record_resume): Renamed to ...
8465 (record_full_resume): ... this. Updated all users.
8466 (record_get_sig): Renamed to ...
8467 (record_full_get_sig): ... this. Updated all users.
8468 (record_sig_handler): Renamed to ...
8469 (record_full_sig_handler): ... this. Updated all users.
8470 (record_wait_cleanups): Renamed to ...
8471 (record_full_wait_cleanups): ... this. Updated all users.
8472 (record_wait_1): Renamed to ...
8473 (record_full_wait_1): ... this. Updated all users.
8474 (record_wait): Renamed to ...
8475 (record_full_wait): ... this. Updated all users.
8476 (record_stopped_by_watchpoint): Renamed to ...
8477 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8478 (record_disconnect): Renamed to ...
8479 (record_full_disconnect): ... this. Updated all users.
8480 (record_detach): Renamed to ...
8481 (record_full_detach): ... this. Updated all users.
8482 (record_mourn_inferior): Renamed to ...
8483 (record_full_mourn_inferior): ... this. Updated all users.
8484 (record_kill): Renamed to ...
8485 (record_full_kill): ... this. Updated all users.
8486 (record_stopped_data_address): Renamed to ...
8487 (record_full_stopped_data_address): ... this. Updated all users.
8488 (record_registers_change): Renamed to ...
8489 (record_full_registers_change): ... this. Updated all users.
8490 (record_store_registers): Renamed to ...
8491 (record_full_store_registers): ... this. Updated all users.
8492 (record_xfer_partial): Renamed to ...
8493 (record_full_xfer_partial): ... this. Updated all users.
8494 (record_breakpoint): Renamed to ...
8495 (record_full_breakpoint): ... this. Updated all users.
8496 (record_breakpoint_p): Renamed to ...
8497 (record_full_breakpoint_p): ... this. Updated all users.
8498 (record_breakpoints): Renamed to ...
8499 (record_full_breakpoints): ... this. Updated all users.
8500 (record_sync_record_breakpoints): Renamed to ...
8501 (record_full_sync_record_breakpoints): ... this.
8502 Updated all users.
8503 (record_init_record_breakpoints): Renamed to ...
8504 (record_full_init_record_breakpoints): ... this.
8505 Updated all users.
8506 (record_insert_breakpoint): Renamed to ...
8507 (record_full_insert_breakpoint): ... this. Updated all users.
8508 (record_remove_breakpoint): Renamed to ...
8509 (record_full_remove_breakpoint): ... this. Updated all users.
8510 (record_can_execute_reverse): Renamed to ...
8511 (record_full_can_execute_reverse): ... this. Updated all users.
8512 (record_get_bookmark): Renamed to ...
8513 (record_full_get_bookmark): ... this. Updated all users.
8514 (record_goto_bookmark): Renamed to ...
8515 (record_full_goto_bookmark): ... this. Updated all users.
8516 (record_async): Renamed to ...
8517 (record_full_async): ... this. Updated all users.
8518 (record_can_async_p): Renamed to ...
8519 (record_full_can_async_p): ... this. Updated all users.
8520 (record_is_async_p): Renamed to ...
8521 (record_full_is_async_p): ... this. Updated all users.
8522 (record_execution_direction): Renamed to ...
8523 (record_full_execution_direction): ... this. Updated all users.
8524 (record_info): Renamed to ...
8525 (record_full_info): ... this. Updated all users.
8526 (record_delete): Renamed to ...
8527 (record_full_delete): ... this. Updated all users.
8528 (record_is_replaying): Renamed to ...
8529 (record_full_is_replaying): ... this. Updated all users.
8530 (record_goto_entry): Renamed to ...
8531 (record_full_goto_entry): ... this. Updated all users.
8532 (record_goto_begin): Renamed to ...
8533 (record_full_goto_begin): ... this. Updated all users.
8534 (record_goto_end): Renamed to ...
8535 (record_full_goto_end): ... this. Updated all users.
8536 (record_goto): Renamed to ...
8537 (record_full_goto): ... this. Updated all users.
8538 (init_record_ops): Renamed to ...
8539 (init_record_full_ops): ... this. Updated all users.
8540 (record_core_resume): Renamed to ...
8541 (record_full_core_resume): ... this. Updated all users.
8542 (record_core_kill): Renamed to ...
8543 (record_full_core_kill): ... this. Updated all users.
8544 (record_core_fetch_registers): Renamed to ...
8545 (record_full_core_fetch_registers): ... this. Updated all users.
8546 (record_core_prepare_to_store): Renamed to ...
8547 (record_full_core_prepare_to_store): ... this. Updated all users.
8548 (record_core_store_registers): Renamed to ...
8549 (record_full_core_store_registers): ... this. Updated all users.
8550 (record_core_xfer_partial): Renamed to ...
8551 (record_full_core_xfer_partial): ... this. Updated all users.
8552 (record_core_insert_breakpoint): Renamed to ...
8553 (record_full_core_insert_breakpoint): ... this. Updated all users.
8554 (record_core_remove_breakpoint): Renamed to ...
8555 (record_full_core_remove_breakpoint): ... this. Updated all users.
8556 (record_core_has_execution): Renamed to ...
8557 (record_full_core_has_execution): ... this. Updated all users.
8558 (init_record_core_ops): Renamed to ...
8559 (init_record_full_core_ops): ... this. Updated all users.
8560 (cmd_record_restore): Renamed to ...
8561 (cmd_record_full_restore): ... this. Updated all users.
8562 (record_save_cleanups): Renamed to ...
8563 (record_full_save_cleanups): ... this. Updated all users.
8564 (cmd_record_start): Renamed to ...
8565 (cmd_record_full_start): ... this. Updated all users.
8566 (set_record_insn_max_num): Renamed to ...
8567 (set_record_full_insn_max_num): ... this. Updated all users.
8568 (set_record_command): Renamed to ...
8569 (set_record_full_command): ... this. Updated all users.
8570 (show_record_command): Renamed to ...
8571 (show_record_full_command): ... this. Updated all users.
8572 (_initialize_record): Renamed to ...
8573 (_initialize_record_full): ... this. Updated all users.
8574
d02ed0bb
MM
85752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8576
8577 * record.h: Split into this and ...
8578 * record-full.h: ... this.
8579 * record.c: Split into this and ...
8580 * record-full.c: ... this.
8581 * target.h (target_ops): Add new fields to_info_record,
8582 to_save_record, to_delete_record, to_record_is_replaying,
8583 to_goto_record_begin, to_goto_record_end, to_goto_record.
8584 (target_info_record): New.
8585 (target_save_record): New.
8586 (target_supports_delete_record): New.
8587 (target_delete_record): New.
8588 (target_record_is_replaying): New.
8589 (target_goto_record_begin): New.
8590 (target_goto_record_end): New.
8591 (target_goto_record): New.
8592 * target.c (target_info_record): New.
8593 (target_save_record): New.
8594 (target_supports_delete_record): New.
8595 (target_delete_record): New.
8596 (target_record_is_replaying): New.
8597 (target_goto_record_begin): New.
8598 (target_goto_record_end): New.
8599 (target_goto_record): New.
8600 * record.h: Declare struct cmd_list_element.
8601 (record_cmdlist): New declaration.
8602 (set_record_cmdlist): New declaration.
8603 (show_record_cmdlist): New declaration.
8604 (info_record_cmdlist): New declaration.
8605 (cmd_record_goto): New declaration.
8606 * record.c: Remove unnecessary includes.
8607 Include inferior.h.
8608 (cmd_record_goto): Remove declaration.
8609 (record_cmdlist): Now extern. Initialize.
8610 (set_record_cmdlist): Now extern. Initialize.
8611 (show_record_cmdlist): Now extern. Initialize.
8612 (info_record_cmdlist): Now extern. Initialize.
8613 (find_record_target): New.
8614 (require_record_target): New.
8615 (cmd_record_start): Update.
8616 (cmd_record_delete): Remove target-specific code.
8617 Call target_delete_record.
8618 (cmd_record_stop): Unpush any record target.
8619 (set_record_insn_max_num): Move to record-full.c
8620 (set_record_command): Add comment.
8621 (show_record_command): Add comment.
8622 (info_record_command): Update comment.
8623 Remove target-specific code.
8624 Call the record target's to_info_record.
8625 (cmd_record_start): New.
8626 (cmd_record_goto): Now extern.
8627 Remove target-specific code.
8628 Call target_goto_begin, target_goto_end, or target_goto.
8629 (_initialize_record): Move record target ops initialization to
8630 record-full.c.
8631 Change "record" command help text.
8632 Move "record restore", "record set", and "record show" commands to
8633 record-full.c.
8634 * Makefile.in (SFILES): Add record-full.c.
8635 (HFILES_NO_SRCDIR): Add record-full.h.
8636 (COMMON_OBS): Add record-full.o.
8637 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8638 * arm-tdep.c: Include record-full.h.
8639 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8640 * i386-tdep.c: Include record-full.h.
8641 * infrun.c: Include record-full.h.
8642 * linux-record.c: Include record-full.h.
8643 * moxie-tdep.c: Include record-full.h.
8644 * record-full.c: Include record-full.h.
8645 Change module comment.
8646 (set_record_full_cmdlist): New.
8647 (show_record_full_cmdlist): New.
8648 (record_full_cmdlist): New.
8649 (record_goto_insn): New declaration.
8650 (record_save): New declaration.
8651 (record_check_insn_num): Change query string.
8652 (record_info): New.
8653 (record_delete): New.
8654 (record_is_replaying): New.
8655 (record_goto_entry): New.
8656 (record_goto_begin): New.
8657 (record_goto_end): New.
8658 (record_goto): New.
8659 (init_record_ops): Update.
8660 (init_record_core_ops): Update.
8661 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8662 (cmd_record_start): New.
8663 (set_record_insn_max_num): Moved from record.c
8664 (set_record_full_command): New.
8665 (show_record_full_command): New.
8666 (_initialize_record_full): New.
8667
b48d48eb
MM
86682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8669
8670 * target.h (add_deprecated_target_alias): New.
8671 * target.c (add_deprecated_target_alias): New.
8672
a950d57c
MM
86732013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8674
8675 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8676 and signal.h.
8677 (linux_supports_btrace): Add kernel and
8678 cpuid check.
8679 (kernel_supports_btrace): New function.
8680 (cpu_supports_btrace): New function.
8681 (intel_supports_btrace): New function.
8682
9accd112
MM
86832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8684
8685 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8686 * remote.c: Include btrace.h.
8687 (struct btrace_target_info): New struct.
8688 (remote_supports_btrace): New function.
8689 (send_Qbtrace): New function.
8690 (remote_enable_btrace): New function.
8691 (remote_disable_btrace): New function.
8692 (remote_teardown_btrace): New function.
8693 (remote_read_btrace): New function.
8694 (init_remote_ops): Add btrace ops.
8695 (enum <unnamed>): Add btrace packets.
8696 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8697 (_initialize_remote): Add packet configuration for branch tracing.
8698
c12a2917
MM
86992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8700
8701 * features/btrace.dtd: New file.
8702 * Makefile.in (XMLFILES): Add btrace.dtd.
8703 * btrace.h (parse_xml_btrace): New declaration.
8704 * btrace.c: Include xml-support.h.
8705 (parse_xml_btrace): New function.
8706 (parse_xml_btrace_block): New function.
8707 (block_attributes): New struct.
8708 (btrace_attributes): New struct.
8709 (btrace_children): New struct.
8710 (btrace_elements): New struct.
8711
3e3aea48
MM
87122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8713
8714 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8715 (amd64_linux_enable_btrace): New.
8716 (amd64_linux_disable_btrace): New.
8717 (amd64_linux_teardown_btrace): New.
8718 (_initialize_amd64_linux_nat): Initialize btrace ops.
8719 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8720 (i386_linux_enable_btrace): New.
8721 (i386_linux_disable_btrace): New.
8722 (i386_linux_teardown_btrace): New.
8723 (_initialize_i386_linux_nat): Initialize btrace ops.
8724 * config/i386/linux.mh: Add linux-btrace.o.
8725 * config/i386/linux64.mh: Add linux-btrace.o.
8726
7c97f91e
MM
87272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8728
8729 * common/linux_btrace.h: New file.
8730 * common/linux_btrace.c: New file.
8731 * Makefile.in (SFILES): Add btrace.c.
8732 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8733 (COMMON_OBS): Add btrace.o.
8734 (linux-btrace.o): New rule.
8735
1999790b 87362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8737
8738 * target.h: Include btrace.h.
8739 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8740 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8741 * target.c (target_supports_btrace): New function.
8742 (target_enable_btrace): New function.
8743 (target_disable_btrace): New function.
8744 (target_teardown_btrace): New function.
8745 (target_read_btrace): New function.
8746 * btrace.h: New file.
8747 * btrace.c: New file.
8748 * Makefile.in: Add btrace.c.
8749 * gdbthread.h: Include btrace.h.
8750 (struct thread_info): Add btrace field.
8751 * thread.c: Include btrace.h.
8752 (clear_thread_inferior_resources): Call target_teardown_btrace.
8753 * common/btrace-common.h: New file.
8754
61a31a67
JK
87552013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8756
8757 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8758 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8759 kill_status to outer block.
8760
05c56a9d
JK
87612013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8762
8763 Fix entry-values if the callee called a noreturn function.
8764 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8765 get_frame_address_in_block. Add new comment.
8766
9112db09
JK
87672013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8768
8769 Fix entry-values in C++ across CUs.
8770 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8771 lookup_minimal_symbol. Add a comment.
8772 * dwarf2read.c
8773 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8774 DW_AT_linkage_name.
8775
9b67fcec
YQ
87762013-03-08 Yao Qi <yao@codesourcery.com>
8777
8778 * tracepoint.c (_initialize_tracepoint): Indent the code.
8779
6221be90
PA
87802013-03-08 Pedro Alves <palves@redhat.com>
8781
8782 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8783 (parse_find_args, find_command): Change type of pattern buffer
8784 locals to 'gdb_byte *'.
8785
be9a119c 87862013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8787 Hafiz Abid Qadeer <abidh@codesourcery.com>
8788
8789 * NEWS: Mention set and show trace-buffer-size commands.
8790 Mention new packet.
8791 * target.h (struct target_ops): New method
8792 to_set_trace_buffer_size.
8793 (target_set_trace_buffer_size): New macro.
8794 * target.c (update_current_target): Set up new method.
8795 * tracepoint.c (trace_buffer_size): New global.
8796 (start_tracing): Send it to the target.
8797 (set_trace_buffer_size): New function.
8798 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8799 * remote.c (remote_set_trace_buffer_size): New function.
8800 (_initialize_remote): Use it.
8801 (QTBuffer:size) New remote command.
8802 (PACKET_QTBuffer_size): New enum.
8803 (remote_protocol_features): Add an entry for
8804 PACKET_QTBuffer_size.
8805
7da3ab79
TT
88062013-03-08 Tom Tromey <tromey@redhat.com>
8807
8808 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8809 variable.
8810
0c1f71e7
PA
88112013-03-07 Pedro Alves <palves@redhat.com>
8812
8813 * target.c (target_read_stralloc, target_fileio_read_alloc):
8814 *Cast pointer to 'gdb_byte *' in target call.
8815
c8af03a2
PA
88162013-03-07 Pedro Alves <palves@redhat.com>
8817
8818 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8819 call.
8820
529480d0
KS
88212013-03-07 Keith Seitz <keiths@redhat.com>
8822
8823 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8824 (trace_pass_command): Likewise.
8825 * cli/cli-cmds.c: Include cli/cli-utils.h.
8826 (source_command): Use skip-spaces.
8827 (disassemble_command): Likewise.
8828 * findcmd.c: Include cli/cli-utils.h.
8829 (parse_find_args): Use skip_spaces.
8830 * go32-nat.c: Include cli/cli-utils.h.
8831 (go32_sldt): Use skip_spaces.
8832 (go32_sgdt): Likewise.
8833 (go32_sidt): Likewise.
8834 (go32_pde): Likewise.
8835 (go32_pte): Likewise.
8836 (go32_pte_for_address): Likewise.
8837 * infcmd.c: Include cli/cli-utils.h.
8838 (registers_info): Use skip_spaces.
8839 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8840 (linux_info_proc): Likewise.
8841 * linux-thread-db.c: Include cli/cli-utils.h.
8842 (info_auto_load_libthread_db): Use skip_spaces_const.
8843 * m32r-rom.c: Include cli/cli-utils.h.
8844 (m32r_upload_command): Use skip_spaces.
8845 * maint.c: Include cli/cli-utils.h.
8846 (maintenance_translate_address): Use skip_spaces.
8847 * mi/mi-parse.c: Include cli/cli-utils.h.
8848 (mi_parse_argv): Use skip_spaces.
8849 (mi_parse): Likewise.
8850 * minsyms.c: Include cli/cli-utils.h.
8851 (msymbol_hash_iw): Use skip_spaces_const.
8852 * objc-lang.c: Include cli/cli-utils.h.
8853 (parse_selector): Use skip_spaces.
8854 (parse_method): Likewise.
8855 * python/python.c: Include cli/cli-utils.h.
8856 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8857 (python_command)[HAVE_PYTHON]: Likewise.
8858 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8859 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8860 (m32r_load): Use skip_spaces.
8861 * serial.c: Include cli/cli-utils.h.
8862 (serial_open): Use skip_spaces_const.
8863 * stack.c: Include cli/cli-utils.h.
8864 (parse_frame_specification_1): Use skip_spaces_const.
8865 * symfile.c: Include cli/cli-utils.h.
8866 (set_ext_lang_command): Use skip_spaces.
8867 * symtab.c: Include cli/cli-utils.h.
8868 (rbreak_command): Use skip_spaces.
8869 * thread.c (thread_name_command): Use skip_spaces.
8870 * tracepoint.c (validate_actionline): Use skip_spaces.
8871 (encode_actions_1): Likewise.
8872 (trace_find_range_command): Likewise.
8873 (trace_find_outside_command): Likewise.
8874 (trace_dump_actions): Likewise.
8875
ac91cd70
PA
88762013-03-07 Pedro Alves <palves@redhat.com>
8877
8878 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8879 * expprint.c (print_subexp_standard): Likewise.
8880 * utils.c (host_char_to_target): Likewise.
8881 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8882 * varobj.c (value_get_print_value): Change type of local to char*.
8883 Cast it gdb_byte * in call to language printer.
8884
2898e560
PA
88852013-03-07 Pedro Alves <palves@redhat.com>
8886
8887 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8888 gdb_byte *'.
8889 (make_wchar_iterator): Remove cast to char*.
8890 (wchar_iterate): Change type of local.
8891
a09b4448
PA
88922013-03-07 Pedro Alves <palves@redhat.com>
8893
8894 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8895 for 'regcache->register_status'.
8896
20ced3e4
PA
88972013-03-07 Pedro Alves <palves@redhat.com>
8898
c2d6a675 8899 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
8900 int.
8901
fe106009
PA
89022013-03-07 Pedro Alves <palves@redhat.com>
8903
8904 * stap-probe.c (handle_stap_probe): Add cast to char*.
8905
8ac2c12b
PA
89062013-03-07 Pedro Alves <palves@redhat.com>
8907
8908 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8909 RECORD_MSGRCV>: Pass a signed variable to
8910 regcache_raw_read_signed, instead of an unsigned one.
8911
99f0a309
PA
89122013-03-07 Pedro Alves <palves@redhat.com>
8913
8914 * remote-notif.c (notif_debug): Change type to int.
8915 * remote-notif.h (notif_debug): Likewise.
8916
964b8317
PA
89172013-03-07 Pedro Alves <palves@redhat.com>
8918
8919 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8920
f0cc8ad4
PA
89212013-03-07 Pedro Alves <palves@redhat.com>
8922
8923 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8924 * remote.h (hex2bin, bin2hex): ... here.
8925 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8926
77dec115
EZ
89272013-03-07 Eli Zaretskii <eliz@gnu.org>
8928
8929 * utils.c (initialize_utils): Improve doc strings of "set/show
8930 width", "set/show height", and "set/show pagination".
8931
741d92cf
KS
89322013-03-06 Keith Seitz <keiths@redhat.com>
8933
8934 * ax-gdb.c (gen_printf): Make FORMAT const.
8935 * ax-gdb.h (gen_printf): Likewise.
8936 * ax-general.c (ax_string): Make STR const.
8937 * ax.h (ax_string): Likewise.
8938
7b6c814e
DE
89392013-03-06 Doug Evans <dje@google.com>
8940
8941 * elfread.c (elf_symfile_read): Move debugging printf to more
8942 logical location.
8943
634334ab
PA
89442013-03-06 Pedro Alves <palves@redhat.com>
8945
8946 * python/py-utils.c (target_string_to_unicode): Delete function.
8947 * python/python-internal.h (target_string_to_unicode): Delete
8948 declaration.
8949
e482a1a7
PM
89502013-03-06 Pierre Muller <muller@sourceware.org>
8951
8952 * linespec.c (get_current_search_block): ARI fix, use (void)
8953 for empty parameter list.
8954
4eeaa230
DE
89552013-03-05 Doug Evans <dje@google.com>
8956
8957 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8958 of old ada_lookup_symbol_list. In !full_search case, don't
8959 search superblocks.
8960 (ada_lookup_symbol_list): Delete arg full_search, all callers
8961 updated. Call ada_lookup_symbol_list_worker.
8962 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8963 * ada-lang.h (ada_lookup_symbol_list): Update.
8964 * language.h (language_defn): Update comment for
8965 la_iterate_over_symbols.
8966 * linespec.c (iterate_over_file_blocks): New function.
8967 (iterate_over_all_matching_symtabs): Call it.
8968 (lookup_prefix_sym): Ditto.
8969 (get_current_search_block): New function.
8970 (get_search_block): Delete.
8971 (find_label_symbols): Call get_current_search_block.
8972 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8973 * symtab.c (iterate_over_symbols): Don't search superblocks.
8974
b69b1fb1
YQ
89752013-03-05 Yao Qi <yao@codesourcery.com>
8976
8977 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8978 parameter VAR's type from "unsigned int" to "int".
8979 * command.h (var_zuinteger_unlimited): Update its comments.
8980 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8981
3c095f49
CV
89822013-03-05 Corinna Vinschen <vinschen@redhat.de>
8983
8984 * NEWS: Mention new target x86_64-*-cygwin*.
8985
b5b0b0af
CV
89862013-03-05 Corinna Vinschen <vinschen@redhat.de>
8987
8988 * configure.host: Add x86_64-*-cygwin* as host.
8989 * configure.tgt: Add x86_64-*-cygwin* as target.
8990 * config/i386/cygwin64.mh: New file.
8991
f6f99966
JK
89922013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8993
8994 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8995
33f448b1
JK
89962013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8997
8998 * linespec.c (struct linespec_canonical_name): New.
8999 (struct linespec_state): Change canonical_names type to it.
9000 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9001 xrealloc element size. Initialize the different CANONICAL fields.
9002 (canonical_to_fullform): New.
9003 (filter_results): Use it. Add variables canonical, fullform and
9004 cleanup.
9005 (struct decode_line_2_item, decode_line_2_compare_items): New.
9006 (decode_line_2): Remove variables iter and item_names, add variables
9007 items and items_count. Modify the code for these new variables.
9008
feb14725
CV
90092013-03-04 Corinna Vinschen <vinschen@redhat.com>
9010
9011 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9012 calling do_cleanup.
9013
e83b17ba
HZ
90142013-03-04 Luis Machado <lgustavo@codesourcery.com>
9015
9016 * tracepoint.c (build_traceframe_info): Add code for byte order.
9017
a2d13a0d
KB
90182013-03-02 Kevin Buettner <kevinb@redhat.com>
9019
8dddcae8
KB
9020 * v850-tdep.c: (v850e2_register_name): Revise system register
9021 names to match current V850E2M architecture specifications.
9022 Update register number enum comments too.
f5aee5ee 9023
d79e58d8
JW
90242013-03-01 Jiong Wang <jiwang@tilera.com>
9025 Pedro Alves <palves@redhat.com>
9026
9027 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9028 to END_ADDR.
9029 (tilegx_skip_prologue): Limit prologue analysis to section end.
9030
c4be5165
JK
90312013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9032
9033 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9034 use it.
9035
e362b510
PA
90362013-03-01 Pedro Alves <palves@redhat.com>
9037
9038 Use gdb_byte for bytes from the program being debugged.
9039
9040 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9041 Change type of local 'buf' to gdb_byte.
9042 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9043 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9044 * cris-tdep.c (cris_sigcontext_addr)
9045 (cris_sigtramp_frame_unwind_cache): Likewise.
9046 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9047 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9048 Likewise.
9049 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9050 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9051 (hppa32_hpux_search_dummy_call_sequence)
9052 (hppa_hpux_supply_save_state): Likewise.
9053 * hppa-linux-tdep.c (insns_match_pattern)
9054 (hppa_linux_find_global_pointer): Likewise.
9055 * hppa-tdep.c (hppa_in_function_epilogue_p)
9056 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9057 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9058 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9059 (i386fbsd_collect_uthread): Likewise.
9060 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9061 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9062 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9063 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9064 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9065 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9066 (ia64_libunwind_frame_prev_register)
9067 (ia64_libunwind_sigtramp_frame_this_id)
9068 (ia64_find_global_pointer_from_dynamic_section)
9069 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9070 (ia64_unwind_pc): Likewise.
9071 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9072 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9073 (m68hc11_extract_return_value): Likewise.
9074 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9075 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9076 (mep_get_insn, mep_push_dummy_call): Likewise.
9077 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9078 (mips_linux_in_dynsym_stub): Likewise.
9079 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9080 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9081 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9082 to gdb_byte.
9083 * remote-mips.c (mips_set_register): Likewise.
9084 * remote-sim.c (gdbsim_fetch_register): Likewise.
9085 * score-tdep.c (score7_fetch_inst): Change type of parameter
9086 'memblock' and local 'buf' to gdb_byte.
9087 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9088 Change type of local 'buf' to gdb_byte. Adjust.
9089 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9090 to gdb_byte**.
9091 (score7_analyze_prologue): Change type of 'memblock' and
9092 'memblock_ptr' locals to gdb_byte*.
9093 * sh64-tdep.c (sh64_extract_return_value)
9094 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9095 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9096 * solib-pa64.c (pa64_solib_create_inferior_hook)
9097 (pa64_open_symbol_file_object): Remove local 'buf'.
9098 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9099 (som_open_symbol_file_object): Likewise.
9100 * solib-spu.c (spu_current_sos): Likewise.
9101 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9102 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9103 (spu_store_registers): Likewise.
9104 * target.c (debug_print_register): Likewise.
9105 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9106 * xstormy16-tdep.c (xstormy16_store_return_value)
9107 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9108 (xstormy16_find_jmp_table_entry): Likewise.
9109
75cc61ca 91102013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9111
9112 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9113 (tilegx_gdbarch_init): Install it.
9114
ddb08e9c
TT
91152013-02-28 Tom Tromey <tromey@redhat.com>
9116
9117 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9118 PyLong_Check.
9119
62d7fb51
DE
91202013-02-28 Doug Evans <dje@google.com>
9121
9122 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9123 * python/python.c (gdbpy_find_pc_line): Ditto.
9124
c4a9e8b4
TT
91252013-02-28 Tom Tromey <tromey@redhat.com>
9126
9127 * contrib/excheck.py: New file.
9128 * contrib/exsummary.py: New file.
9129 * contrib/gcc-with-excheck: New file.
9130
7f6a5dde
TT
91312013-02-28 Tom Tromey <tromey@redhat.com>
9132
9133 * python/python.c (gdbpy_print_stack): Call begin_line and
9134 fprintf_filtered inside TRY_CATCH.
9135
9e974e55
TT
91362013-02-28 Tom Tromey <tromey@redhat.com>
9137
9138 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9139 inside TRY_CATCH.
9140
dd5fa3e7
TT
91412013-02-28 Tom Tromey <tromey@redhat.com>
9142
9143 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9144 frame_object_to_frame_info inside TRY_CATCH.
9145
86a3263f
TT
91462013-02-28 Tom Tromey <tromey@redhat.com>
9147
9148 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9149 TRY_CATCH.
9150
81b52a3a
TT
91512013-02-28 Tom Tromey <tromey@redhat.com>
9152
9153 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9154
d50a0ce2
CV
91552013-02-27 Corinna Vinschen <vinschen@redhat.com>
9156
9157 * windows-nat.c: Throughout, fix format strings and casts of
9158 printf-like functions to avoid type related warnings on all
9159 platforms.
9160 (handle_output_debug_string): Fetch context information address
9161 from debug string using string_to_core_addr.
9162
e1f58301
JW
91632013-02-27 Jiong Wang <jiwang@tilera.com>
9164
9165 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9166 * regformats/reg-tilegx32.dat: New.
9167
4fcd89fc
JW
91682013-02-27 Jiong Wang <jiwang@tilera.com>
9169
9170 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9171
748d24e6
JW
91722013-02-27 Jiong Wang <jiwang@tilera.com>
9173
9174 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9175
6c8e944d
YQ
91762013-02-27 Yao Qi <yao@codesourcery.com>
9177 Pedro Alves <palves@redhat.com>
9178
9179 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9180 pc/tp/range/outside, look for the next trace frame instead of
9181 always starting from frame 0.
6c8e944d 9182
acd7db30
AG
91832013-02-26 Anthony Green <green@moxielogic.com>
9184
9185 * configure.tgt: Add support for moxie-*-rtems* target.
9186
025e6dce
PA
91872013-02-25 Pedro Alves <palves@redhat.com>
9188
9189 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9190 warning text.
9191
ca9c94ef
MR
91922013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9193
9194 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9195 if $fp is used as the virtual frame pointer.
9196
24c274a1
AM
91972013-02-23 Alan Modra <amodra@gmail.com>
9198
9199 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9200 symbol size.
9201 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9202 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9203 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9204 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9205
bfada189
JK
92062013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9207
9208 Code cleanup.
9209 * elfread.c (build_id_bfd_get): Make the return type const.
9210 (build_id_verify): Make the check parameter const.
9211 (build_id_to_debug_filename): Make the build_id parameter and variable
9212 data const.
9213 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9214
c0355132
AM
92152013-02-21 Alan Modra <amodra@gmail.com>
9216
9217 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9218
9f44fbc0
SCR
92192013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9220
9221 Add a new method 'disassemble' to gdb.Architecture class.
9222 * python/py-arch.c (archpy_disassmble): Implementation of the
9223 new method gdb.Architecture.disassemble.
9224 (arch_object_methods): Add entry for the new method.
9225
b74ea3eb
JW
92262013-02-20 Jiong Wang <jiwang@tilera.com>
9227
9228 * MAINTAINERS (Write After Approval): Add myself to the list.
9229
61a672f1
PA
92302013-02-19 Pedro Alves <palves@redhat.com>
9231
9232 Garbage collect 'struct monitor_ops'::load_routine.
9233
9234 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9235 * monitor.c (monitor_load): No longer call
9236 current_monitor->load_routine.
9237 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9238 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9239 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9240
40e397df
PA
92412013-02-19 Pedro Alves <palves@redhat.com>
9242
9243 PR gdb/15161
9244
9245 Harmonize with generic_load.
9246
9247 * monitor.c: Include "readline/readline.h".
9248 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9249 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9250 long/strtol for the 'load_offset' local. Error out if no argument
9251 is given or if too many arguments are given. Tilde expand the
9252 passed in file name.
9253
f698ca8e
KT
92542013-02-19 Kai Tietz <ktietz@redhat.com>
9255
9256 PR gdb/15161
9257 * symfile.c (load_section_data): Change type of load_offset
9258 to CORE_ADDR.
9259 (generic_load): User strtoulst instead of strtoul for conversion
9260 of load_offset.
9261
3361b059
WL
92622013-02-19 Jiong Wang <jiwang@tilera.com>
9263
9264 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9265 for return address, "lr" register, saved on stack.
9266 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9267 after we invoke tilegx_analyze_prologue.
9268
3e9d5130
WL
92692013-02-19 Jiong Wang <jiwang@tilera.com>
9270
bb1bcd86
WL
9271 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9272
3361b059 92732013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9274
b74ea3eb 9275 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9276
4aaf2503
WL
92772013-02-19 Jiong Wang <jiwang@tilera.com>
9278
b74ea3eb 9279 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9280 (tilegx_write_pc): New function.
9281 (tilegx_cannot_reference_register): Return zero if REGNO
9282 is TILEGX_FAULTNUM_REGNUM.
9283 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9284 (tilegx_register_name): Add handling of "faultnum" register.
9285 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9286 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9287 handling of TILEGX_FAULTNUM_REGNUM.
9288 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9289
bc23a956
WL
92902013-02-19 Jiong Wang <jiwang@tilera.com>
9291
9292 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9293 should be aligned to 64bit.
bc23a956 9294
42f45f1a
KT
92952013-02-19 Kai Tietz <ktietz@redhat.com>
9296
9297 * windows-nat.c (windows_xfer_memory): Fix debug-output
9298 for LLP64.
9299
6ce4c112
LL
93002013-02-19 Lei Liu <lei.liu2@windriver.com>
9301
9302 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9303 Don't check DSP register number if HAVE_DSP is not set.
9304
30e8ee25
AM
93052013-02-19 Alan Modra <amodra@gmail.com>
9306
9307 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9308 throughout file instead.
9309 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9310 Don't xmalloc return value.
9311 (build_id_verify): Similarly. Don't xfree.
9312 (build_id_to_debug_filename): Update.
9313 (find_separate_debug_file_by_buildid): Update, don't xfree.
9314
4c9ad8c2
TT
93152013-02-18 Tom Tromey <tromey@redhat.com>
9316
9317 PR gdb/15102:
9318 * dwarf2read.c (read_subrange_type): Use result of
9319 'check_typedef'.
9320
983dc440
YQ
93212013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9322
9323 * frame.c: Remove one extra white space after #include
9324 directive.
9325
7fb2b84a
JK
93262013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9327
9328 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9329
edceb2a9
JK
93302013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9331
9332 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9333 and dir commands into an if block.
9334
e81b7af8
TT
93352013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9336
9337 * python/py-breakpoint (struct pybp_code): Use int instead of
9338 enum type_code.
9339
f5911ea1
HAQ
93402013-02-15 Pedro Alves <pedro@codesourcery.com>
9341 Hafiz Abid Qadeer <abidh@codesourcery.com>
9342
9343 * NEWS: Mention new field "trace-file".
9344 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9345 (tfile_open): Record the trace file's filename in the trace
9346 status.
9347 (tfile_files_info): Mention the name of the trace file.
9348 Check the "filename" field explicitely.
9349 (trace_status_command): Explicitely check "filename" field.
9350 (trace_find_command): Ditto.
9351 (trace_find_pc_command): Ditto.
9352 (trace_find_tracepoint_command): Ditto.
9353 (trace_find_line_command): Ditto.
9354 (trace_find_range_command): Ditto.
9355 (trace_find_outside_command): Ditto.
9356 * tracepoint.h (struct trace_status) <from_file>: Rename it
9357 to "filename" and make it hold the trace file's filename
9358 instead of a boolean.
9359 * remote.c (remote_get_trace_status): Initialize "filename"
9360 field with NULL instead of 0.
9361
796cb314
YQ
93622013-02-15 Yao Qi <yao@codesourcery.com>
9363
9364 * remote.c: Fix a typo.
9365
42e79b1d
PM
93662013-02-14 Pierre Muller <muller@sourceware.org>
9367
9368 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9369
baea0dae
PA
93702013-02-14 Pedro Alves <palves@redhat.com>
9371
9372 * utils.c (savestring): Don't #undef it. Move function to
9373 common/common-utils.c.
9374 * common/common-utils.c: Include gdb_string.h.
9375 (savestring): Move here from utils.c.
9376 * common/common-utils.h (savestring): Declare.
9377
57c3b6ed
PA
93782013-02-14 Pedro Alves <palves@redhat.com>
9379
9380 * utils.c (savestring): Rename parameter 'size' to 'len'.
9381
d6c44983
YZ
93822013-02-14 Pedro Alves <palves@redhat.com>
9383 Yufeng Zhang <yufeng.zhang@arm.com>
9384
9385 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9386 (aarch64_inferior_data, struct aarch64_inferior_data):
9387 Delete.
9388 (struct aarch64_process_info): New.
9389 (aarch64_process_list): New global.
9390 (aarch64_find_process_pid, aarch64_add_process)
9391 (aarch64_process_info_get): New functions.
9392 (aarch64_inferior_data_get): Delete.
9393 (aarch64_process_info_get): New function.
9394 (aarch64_forget_process): New function.
9395 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9396 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9397 aarch64_get_debug_reg_state.
9398 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9399 instead of linux_nat_iterate_watchpoint_lwps.
9400 (aarch64_linux_new_fork): New function.
9401 (aarch64_linux_child_post_startup_inferior): Use
9402 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9403 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9404 (aarch64_linux_remove_hw_breakpoint)
9405 (aarch64_handle_aligned_watchpoint)
9406 (aarch64_handle_unaligned_watchpoint)
9407 (aarch64_linux_insert_watchpoint)
9408 (aarch64_linux_remove_watchpoint)
9409 (aarch64_linux_stopped_data_address): Adjust to pass the current
9410 process id to aarch64_debug_reg_state.
9411 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9412 linux_nat_new_fork hook, and aarch64_forget_process as
9413 linux_nat_forget_process hook; remove the call to
9414 register_inferior_data_with_cleanup.
9415
4819b3f8
PA
94162013-02-14 Pedro Alves <palves@redhat.com>
9417
9418 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9419 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9420 lval_memory.
9421
1773c82c
HAQ
94222013-02-14 Pedro Alves <pedro@codesourcery.com>
9423 Hafiz Abid Qadeer <abidh@codesourcery.com>
9424
9425 * tracepoint.h (validate_trace_state_variable_name): Declare.
9426 * tracepoint.c (validate_trace_state_variable_name): New.
9427 (trace_variable_command): Parse the trace state variable's name
9428 without using parse_expression. Do several validations.
9429 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9430 trace state variable's name with parse_expression. Validate it.
9431
53778a97
YQ
94322013-02-14 Yao Qi <yao@codesourcery.com>
9433
9434 * infcmd.c (breakpoint_proceeded): Remove it.
9435
7b3ae3a6
YQ
94362013-02-14 Yao Qi <yao@codesourcery.com>
9437
9438 * tracepoint.c (end_actions_pseudocommand): Make it static.
9439 (while_stepping_pseudocommand): Likewise.
9440 * tracepoint.h (end_actions_pseudocommand): Remove the
9441 declaration.
9442 (while_stepping_pseudocommand): Likewise.
9443
64580925
YQ
94442013-02-14 Yao Qi <yao@codesourcery.com>
9445
9446 * cli/cli-decode.c (help_cmd): Remove the declaration of
9447 "cmdlist".
9448 (help_all): Likewise.
9449
26cb8b7c
PA
94502013-02-13 Pedro Alves <palves@redhat.com>
9451
9452 * amd64-linux-nat.c (update_debug_registers_callback):
9453 Update comment.
9454 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9455 iterate_over_lwps.
9456 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9457 i386_debug_reg_state.
9458 (amd64_linux_new_fork): New function.
9459 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9460 linux_nat_new_fork hook, and i386_forget_process as
9461 linux_nat_forget_process hook.
9462 * i386-linux-nat.c (update_debug_registers_callback):
9463 Update comment.
a8256ea1 9464 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9465 iterate_over_lwps.
9466 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9467 i386_debug_reg_state.
9468 (i386_linux_new_fork): New function.
9469 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9470 linux_nat_new_fork hook, and i386_forget_process as
9471 linux_nat_forget_process hook.
9472 * i386-nat.c (i386_init_dregs): Delete.
9473 (i386_inferior_data, struct i386_inferior_data):
9474 Delete.
9475 (struct i386_process_info): New.
9476 (i386_process_list): New global.
9477 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9478 New functions.
9479 (i386_inferior_data_get): Delete.
9480 (i386_process_info_get): New function.
9481 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9482 (i386_forget_process): New function.
9483 (i386_cleanup_dregs): Rewrite.
9484 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9485 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9486 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9487 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9488 to i386_debug_reg_state.
9489 (i386_use_watchpoints): Don't register inferior data.
9490 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9491 adjust comment.
9492 (i386_forget_process): Declare.
9493 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9494 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9495 New static globals.
9496 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9497 (add_initial_lwp): New, factored out from ...
9498 (add_lwp): ... this. Don't check the number of lwps before
9499 calling linux_nat_new_thread.
9500 (linux_nat_iterate_watchpoint_lwps): Delete.
9501 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9502 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9503 forks and vforks.
9504 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9505 initial lwp.
9506 (linux_nat_kill, linux_nat_mourn_inferior): Call
9507 linux_nat_forget_process.
9508 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9509 (linux_nat_forget_process): New functions.
9510 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9511 type.
9512 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9513 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9514 types.
9515 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9516 (linux_nat_forget_process): New declarations.
9517
9518 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9519 (amd64fbsd_mourn_inferior): New function.
9520 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9521 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9522
5befea72
MS
95232013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9524
55015247
YQ
9525 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9526 Adding _().
5befea72 9527
1d3ffd6b
MS
95282013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9529
9530 * aarch64-linux-nat.c (debug_reg_change_callback)
9531 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9532 %s and phex().
9533
6eb04473
MS
95342013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9535
9536 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9537 with LONGEST.
9538
a016fc87
HAQ
95392013-02-13 Pedro Alves <palves@redhat.com>
9540 Hafiz Abid Qadeer <abidh@codesourcery.com>
9541
9542 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9543
e234dfaf
TT
95442013-02-12 Tom Tromey <tromey@redhat.com>
9545
9546 PR symtab/11464:
9547 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9548 NAME return.
9549 (classify_inner_name): Remove 'first_name' argument, add
9550 'context'. Remove unused variable.
9551 (yylex): Explicitly maintain the context type. Exit loop earlier
9552 if NAME result is seen.
9553
0b1afbb3
PA
95542013-02-12 Pedro Alves <palves@redhat.com>
9555
9556 * amd64-darwin-tdep.c: Add (C) after Copyright.
9557 * cli/cli-cmds.h: Ditto.
9558 * cli/cli-decode.c: Ditto.
9559 * cli/cli-decode.h: Ditto.
9560 * cli/cli-dump.c: Ditto.
9561 * cli/cli-dump.h: Ditto.
9562 * cli/cli-interp.c: Ditto.
9563 * cli/cli-logging.c: Ditto.
9564 * cli/cli-script.c: Ditto.
9565 * cli/cli-script.h: Ditto.
9566 * cli/cli-setshow.c: Ditto.
9567 * cli/cli-setshow.h: Ditto.
9568 * cli/cli-utils.c: Ditto.
9569 * cli/cli-utils.h: Ditto.
9570 * config/alpha/nm-osf3.h: Ditto.
9571 * config/djgpp/djconfig.sh: Ditto.
9572 * config/i386/nm-fbsd.h: Ditto.
9573 * config/i386/nm-i386gnu.h: Ditto.
9574 * config/nm-linux.h: Ditto.
9575 * config/nm-nto.h: Ditto.
9576 * config/rs6000/nm-rs6000.h: Ditto.
9577 * config/sparc/nm-sol2.h: Ditto.
9578 * darwin-nat-info.c: Ditto.
9579 * dfp.c: Ditto.
9580 * dfp.h: Ditto.
9581 * gdb-demangle.h: Ditto.
9582 * i386-darwin-nat.c: Ditto.
9583 * i386-darwin-tdep.c: Ditto.
9584 * linux-fork.h: Ditto.
9585 * m32c-tdep.c: Ditto.
9586 * microblaze-linux-tdep.c: Ditto.
9587 * microblaze-rom.c: Ditto.
9588 * microblaze-tdep.c: Ditto.
9589 * microblaze-tdep.h: Ditto.
9590 * mips-linux-tdep.h: Ditto.
9591 * ppc-ravenscar-thread.c: Ditto.
9592 * ppc-ravenscar-thread.h: Ditto.
9593 * prologue-value.c: Ditto.
9594 * prologue-value.h: Ditto.
9595 * ravenscar-thread.c: Ditto.
9596 * ravenscar-thread.h: Ditto.
9597 * sparc-ravenscar-thread.c: Ditto.
9598 * sparc-ravenscar-thread.h: Ditto.
9599 * tilegx-linux-tdep.c: Ditto.
9600 * unwind_stop_reasons.def: Ditto.
9601 * windows-nat.h: Ditto.
9602 * xtensa-linux-tdep.c: Ditto.
9603 * xtensa-xtregs.c: Ditto.
9604 * regformats/regdat.sh: Ditto.
9605 * regformats/regdef.h: Ditto.
9606
6c01dd94
PA
96072013-02-12 Pedro Alves <palves@redhat.com>
9608
9609 * break-catch-sig.c: Update copyright years.
9610
b65a2bd9
SCR
96112013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9612
9613 Add support for a destructor for ui_out data and use it to
9614 provide a ui_out destructor.
9615 * ui-out.h: Declare the new ui_out destructor.
9616 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9617 * ui-out.c (default_data_destroy): Add a default data destructor
9618 which does nothing.
9619 (default_ui_out_impl): Set the new data_destroy field to
9620 default_data_destroy
9621 (uo_data_destroy): Local function which invokes the data
9622 destructor if present.
9623 (clear_table): Local function which clears the table data of a
9624 ui_out object.
9625 (ui_out_destroy): Public function which frees a ui_out object.
9626 (ui_out_table_end): Use the new clear_table function.
9627 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9628 NULL.
9629 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9630 to NULL.
9631
c2792f5a
DE
96322013-02-11 Doug Evans <dje@google.com>
9633
9634 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9635 (printf_decfloat): New function. Broken out from ui_printf.
9636 Remove unnecessary code to shift the entire format string down.
9637 (printf_pointer): New function.
9638 (ui_printf): Code to print C strings, wide C strings, decfloats,
9639 and pointers moved to separate functions.
9640
d9e98382
SDJ
96412013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9642
9643 * valops.c (value_assign): Handling bitfield offset in
9644 `lval_internalvar_component' case.
9645
4ff3ce77
DE
96462013-02-08 Doug Evans <dje@google.com>
9647
9648 * common/format.c (parse_format_string): Fix whitespace.
9649
901900c4
MGD
96502013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9651
9652 * stack.c (return_command): Work around uninitialized variable
9653 warning.
9654
b5dbc8d4
YZ
96552013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9656
9657 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9658 number of the registers from 36 to 34.
9659
51d66578
MS
96602013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9661
9662 * NEWS: Mention new AArch64 native and target support.
9663
176b1c95
MS
96642013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9665
9666 * MAINTAINERS (Write After Approval): Add myself.
9667
9d19df75
MS
96682013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9669 Marcus Shawcroft <marcus.shawcroft@arm.com>
9670 Nigel Stephens <nigel.stephens@arm.com>
9671 Yufeng Zhang <yufeng.zhang@arm.com>
9672
9673 * aarch64-linux-nat.c: New file.
9674 * config/aarch64/linux.mh: New file.
9675 * configure.host: Add AArch64.
9676 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9677
7e1e0340
DE
96782013-02-07 Doug Evans <dje@google.com>
9679
9680 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9681 disassemble command.
9682
45e25a36
MS
96832013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9684
9685 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9686 set_gdbarch_fetch_tls_load_module_address.
9687
bbfdfe1c
DM
96882013-02-06 David S. Miller <davem@davemloft.net>
9689
9690 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9691 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9692 * value.c (struct_return_convention): New function.
9693 (using_struct_return): Implement in terms of struct_return_convention.
9694 * value.h (struct_return_convention): Declare.
9695 * stack.c (return_command): Allow successful overriding of the return
9696 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9697
bc9abe4a
TT
96982013-02-06 Tom Tromey <tromey@redhat.com>
9699
9700 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9701 outside of TRY_CATCH.
9702
134a2066
YQ
97032013-02-06 Yao Qi <yao@codesourcery.com>
9704
9705 * mi/mi-interp.c: Include "tracepoint.h".
9706 (mi_tsv_modified): Declare.
9707 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9708 (mi_interpreter_init): Call observer_attach_tsv_modified.
9709 (mi_tsv_modified): New.
9710 (mi_tsv_created, mi_tsv_deleted): Update.
9711 * tracepoint.c (trace_variable_command): Call
9712 observer_notify_tsv_modified if the initial value of tsv is
9713 changed.
9714 (delete_trace_state_variable): Call
9715 observer_notify_tsv_deleted earlier.
9716 (trace_variable_command): Caller update.
9717 (create_tsv_from_upload): Likewise.
9718 * observer.sh: Declare "struct trace_state_variable".
9719
9720 * NEWS: Mention the new MI notification "=tsv-modified".
9721
59be2b6a
DE
97222013-02-05 Doug Evans <dje@google.com>
9723
9724 * completer.c (location_completer): Fix typo in comment.
9725
d30113d4
JK
97262013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9727
9728 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9729 ADDRESS sorted.
9730
14ac654f
MS
97312013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9732
9733 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9734 Refactor if statement to avoid trailing || operator.
9735
543bf33d
AT
97362013-02-05 Andreas Tobler <andreast@fgznet.ch>
9737
9738 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9739
dc18f110
AT
97402013-02-04 Andreas Tobler <andreast@fgznet.ch>
9741
9742 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9743 * configure.host: Add powerpc*-*-freebsd* target.
9744 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9745 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9746 * config/powerpc/fbsd.mh: New file.
9747
b3ac9c77
SDJ
97482013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9749 Denys Vlasenko <dvlasenk@redhat.com>
9750 Pedro Alves <palves@redhat.com>
9751
9752 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9753 (struct elf_internal_linux_prpsinfo): Forward declare.
9754 * gdbarch.h, gdbarch.c: Regenerate.
9755 * linux-tdep.c: Include `cli/cli-utils.h'.
9756 (linux_fill_prpsinfo): New function.
9757 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9758 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9759 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9760 depending on gdbarch pointer bitness.
9761 * ppc-linux-tdep.c: Include elf-bfd.h.
9762 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9763 on 32-bit.
9764
176eb98c
MS
97652013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9766 Marcus Shawcroft <marcus.shawcroft@arm.com>
9767 Nigel Stephens <nigel.stephens@arm.com>
9768 Yufeng Zhang <yufeng.zhang@arm.com>
9769
9770 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9771
cf0dbd6f
MS
97722013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9773 Marcus Shawcroft <marcus.shawcroft@arm.com>
9774 Nigel Stephens <nigel.stephens@arm.com>
9775 Yufeng Zhang <yufeng.zhang@arm.com>
9776
9777 * aarch64-newlib-tdep.c: New file.
9778 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9779 aarch64*-*-elf.
9780 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9781 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9782 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9783 * osabi.c (gdb_osabi_names): Add "Newlib".
9784
1ae3db19
MS
97852013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9786 Marcus Shawcroft <marcus.shawcroft@arm.com>
9787 Nigel Stephens <nigel.stephens@arm.com>
9788 Yufeng Zhang <yufeng.zhang@arm.com>
9789
9790 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9791 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9792 * aarch64-linux-tdep.c: New file.
9793 * aarch64-linux-tdep.h: New file.
9794 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9795 * configure.tgt: Add aarch64-none-linux-gnu.
9796
07b287a0
MS
97972013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9798 Marcus Shawcroft <marcus.shawcroft@arm.com>
9799 Nigel Stephens <nigel.stephens@arm.com>
9800 Yufeng Zhang <yufeng.zhang@arm.com>
9801
9802 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9803 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9804 (ALLDEPFILES): Add aarch64-tdep.c.
9805 * aarch64-tdep.c: New file.
9806 * aarch64-tdep.h: New file.
9807 * configure.tgt: Add AArch64.
9808 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9809 (aarch64-expedite): New definition.
9810 * features/aarch64-core.xml: New file.
9811 * features/aarch64-fpu.xml: New file.
9812 * features/aarch64-without-fpu.c: New file (generated).
9813 * features/aarch64-without-fpu.xml: New file.
9814 * features/aarch64.c: New file (generated).
9815 * features/aarch64.xml: New file.
9816 * regformats/aarch64-without-fpu.dat: New file (generated).
9817 * regformats/aarch64.dat: New file (generated).
9818
0f1b18ab
JK
98192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9820
9821 * contrib/expect-read1.c: New file.
9822 * contrib/expect-read1.sh: New file.
9823
233d95b5
JK
98242013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9825
9826 * dwarf2read.c (file_file_name): New function with code from
9827 file_full_name.
9828 (file_full_name): Move most of the code to file_file_name.
9829 (macro_start_file): Rename variable full_name to file_name and use
9830 file_file_name for it. Add comp_dir parameter to new_macro_table.
9831 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9832 macro_source_file->filename access by macro_source_fullname call.
9833 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9834 caller.
9835 * macrotab.c (struct macro_table): New field comp_dir.
9836 (macro_include): New variables link_fullname and source_fullname.
9837 Replace any macro_source_file->filename access by macro_source_fullname
9838 call.
9839 (macro_lookup_inclusion): Remove the partial filenames checking code.
9840 (check_for_redefinition): New variables source_fullname and
9841 found_key_fullname. Replace any macro_source_file->filename access by
9842 macro_source_fullname call.
9843 (macro_undef): New variables source_fullname and key_fullname. Replace
9844 any macro_source_file->filename access by macro_source_fullname call.
9845 (macro_lookup_definition): New variables retval and source_fullname.
9846 Replace any macro_source_file->filename access by macro_source_fullname
9847 call.
9848 (foreach_macro): New variable key_fullname. Replace any
9849 macro_source_file->filename access by macro_source_fullname call.
9850 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9851 macro_source_file->filename access by macro_source_fullname call.
9852 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9853 (macro_source_fullname): New function.
9854 * macrotab.h (struct macro_source_file): Extent the filename field
9855 comment.
9856 (new_macro_table): New parameter comp_dir, add a comment for it.
9857 (macro_source_fullname): new declaration.
9858
da235a7c
JK
98592013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9860
9861 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9862 this_real_name to outer block. Use it also for
9863 compare_filenames_for_search.
9864 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9865 with dw2_get_real_path for file_matcher, considering also
9866 BASENAMES_MAY_DIFFER.
9867 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9868
fbd9ab74
JK
98692013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9870
9871 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9872 to the file_matcher parameter. Pass 0 to it.
9873 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9874 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9875 NULL psymtab_to_fullname result.
9876 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9877 an expected filename instead.
9878 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9879 file_matcher parameter. Call also psymtab_to_fullname, after newly
9880 considering BASENAMES_MAY_DIFFER.
9881 * source.c (rewrite_source_path): Remove static.
9882 * source.h (rewrite_source_path): New declaration.
9883 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9884 the expand_symtabs_matching field. Comment it.
9885 * symtab.c (file_matches): New function comment. Add parameter
9886 basenames, implement it.
9887 (search_symbols_file_matches): Add basenames parameter. Update the
9888 file_matches caller.
9889 (search_symbols): Match FILES also against symtab_to_fullname.
9890 Optimize it for BASENAMES_MAY_DIFFER.
9891
56d397a3
JK
98922013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9893
9894 * source.c (print_source_lines_base): Print for TUI also "fullname".
9895 * tui/tui-data.c (init_content_element): Change tui_locator_element
9896 field to full_name.
9897 * tui/tui-data.h (struct tui_locator_element): Likewise.
9898 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9899 tui_update_locator_filename calls to tui_update_locator_fullname.
9900 Replace symtab->filename refererence by symtab_to_fullname call.
9901 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9902 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9903 field to full_name. Replace symtab->filename refererence by
9904 symtab_to_fullname call.
9905 (tui_show_symtab_source): Rename parameter to fullname. Change
9906 tui_locator_element field to full_name.
9907 * tui/tui-stack.c: Include source.h.
9908 (tui_set_locator_filename): Rename the declaration to ...
9909 (tui_set_locator_fullname): ... here. Rename its parameter to
9910 fullname, updates its comment.
9911 (tui_set_locator_info): Rename its parameter to fullname.
9912 (tui_set_locator_filename): Rename the definition to ...
9913 (tui_set_locator_fullname): ... here. Rename its parameter to
9914 fullname, updates its comment. Change tui_locator_element field to
9915 full_name.
9916 (tui_set_locator_info): Rename its parameter to fullname.
9917 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9918 (tui_update_locator_filename): Rename to ...
9919 (tui_update_locator_fullname): ... here. Rename callee to
9920 tui_set_locator_fullname.
9921 (tui_show_frame_info): Replace symtab->filename refererence by
9922 symtab_to_fullname call.
9923 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9924 (tui_update_locator_fullname): ... here.
9925 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9926 tui_update_locator_fullname. Replace symtab->filename refererence by
9927 symtab_to_fullname call.
9928 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9929 Rename the callee to tui_update_locator_fullname.
9930 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9931
05cba821
JK
99322013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9933
9934 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9935 by symtab_to_filename_for_display calls.
9936 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9937 (clear_command): New variable sal_fullname, initialize it. Replace
9938 compare_filenames_for_search by filename_cmp with sal_fullname.
9939 (say_where, update_static_tracepoint): Replace symtab->filename
9940 refererences by symtab_to_filename_for_display calls.
9941 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9942 Likewise.
9943 * dwarf2read.c: Include source.h.
9944 (fixup_go_packaging): Replace symtab->filename refererences by
9945 symtab_to_filename_for_display calls.
9946 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9947 Replace symtab->filename refererences by symtab_to_filename_for_display
9948 calls.
9949 (create_sals_line_offset, convert_linespec_to_sals): New variable
9950 fullname, initialize it, replace symtab->filename reference by the
9951 variable.
9952 * linux-fork.c: Include source.h.
9953 (info_checkpoints_command): Replace symtab->filename refererences by
9954 symtab_to_filename_for_display calls.
9955 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9956 by symtab_to_filename_for_display calls.
9957 * mdebugread.c: Include source.h.
9958 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9959 symtab_to_filename_for_display calls.
9960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9961 (mi_cmd_file_list_exec_source_files): Likewise.
9962 * printcmd.c: Include source.h.
9963 (build_address_symbolic): Replace symtab->filename refererences by
9964 symtab_to_filename_for_display calls.
9965 * psymtab.c (partial_map_symtabs_matching_filename)
9966 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9967 with psymtab_to_fullname.
9968 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9969 by symtab_to_filename_for_display calls.
9970 (stpy_get_filename): New variable filename, initialize it, use instead
9971 of symtab->filename refererences.
9972 (salpy_str): Make variable filename const char *. Replace
9973 symtab->filename refererences by symtab_to_filename_for_display calls.
9974 * skip.c: Include source.h and filenames.h.
9975 (skip_file_command): Remove const from the symtab variable. Replace
9976 symtab->filename refererences by symtab_to_fullname call.
9977 (function_name_is_marked_for_skip): New variables searched_for_fullname
9978 and fullname. Use them to search also with symtab's fullname.
9979 * source.c (find_source_lines): Replace symtab->filename refererences
9980 by symtab_to_filename_for_display calls.
9981 (print_source_lines_base): New variable filename, use it instead of
9982 symtab->filename. Replace symtab->filename refererences by
9983 symtab_to_filename_for_display calls.
9984 (line_info, forward_search_command): Replace symtab->filename
9985 refererences by symtab_to_filename_for_display calls.
9986 (reverse_search_command): Replace symtab->filename refererences by
9987 symtab_to_filename_for_display calls. New variable filename for it.
9988 * stack.c (frame_info): Likewise.
9989 * symmisc.c: Include source.h.
9990 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9991 (maintenance_info_symtabs): Replace symtab->filename refererences by
9992 symtab_to_filename_for_display calls.
9993 * symtab.c (iterate_over_some_symtabs): Call
9994 compare_filenames_for_search also with symtab_to_fullname.
9995 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9996 symtab->filename refererences by symtab_to_filename_for_display calls.
9997 (find_line_symtab): Replace symtab->filename refererences by
9998 symtab_to_filename_for_display calls.
9999 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10000 (print_symbol_info): Make the last parameter const char *. New
10001 variable s_filename. Use it in the function.
10002 (symtab_symbol_info): Make the last_filename variable const char *.
10003 Replace symtab->filename refererences by symtab_to_filename_for_display
10004 calls.
10005 (rbreak_command): New variable fullname. Use it. Replace
10006 symtab->filename refererence by symtab_to_filename_for_display call.
10007 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10008 (print_one_static_tracepoint_marker): Replace symtab->filename
10009 refererences by symtab_to_filename_for_display calls.
10010 * tui/tui-source.c (tui_set_source_content): New variables filename and
10011 s_filename. Replace symtab->filename refererences by this variable.
10012 Replace other symtab->filename refererences by
10013 symtab_to_filename_for_display calls.
10014
1b56eb55
JK
100152013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10016 Jan Kratochvil <jan.kratochvil@redhat.com>
10017
10018 Add a new variable that controls a way in which filenames are
10019 displayed.
10020 * NEWS (set filename-display): New entry.
10021 * source.c (filename_display_basename, filename_display_relative)
10022 (filename_display_absolute, filename_display_kind_names)
10023 (filename_display_string, show_filename_display_string)
10024 (symtab_to_filename_for_display): New.
10025 (_initialize_source): Added initialization of 'filename-display'
10026 variable.
10027 * source.h (symtab_to_filename_for_display): Added declaration.
10028 * stack.c (print_frame): Added new variable and calling of a new
10029 function and condition with this variable. Changed third argument of
10030 calling of a function.
10031
aa079c93
JK
100322013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10033
10034 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10035 Rename field reference filename to fullname.
10036 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10037 fullname. New comment for it.
10038 * tui/tui-source.c (tui_set_source_content): Rename field reference
10039 filename to fullname. Initialize field by symtab_to_fullname now.
10040 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10041 reference filename to fullname. Use symtab_to_fullname during
10042 comparison.
10043
652a8996
JK
100442013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10045
10046 Code cleanup.
10047 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10048 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10049 filename to fullname. Rename variable this_name to this_fullname.
10050 Lowercase FILENAME_CMP call.
10051 (dw2_find_symbol_file): New comment for the returned string.
10052 (dwarf2_gdb_index_functions): Rename the function to
10053 dw2_expand_symtabs_with_fullname.
10054 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10055 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10056 fullname.
10057 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10058 * symfile.h (struct quick_symbol_functions): Rename field
10059 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10060 parameter filename to fullname. Document returned string meaning for
10061 find_symbol_file.
10062 * symtab.c (find_line_symtab): Rename the called function to
10063 expand_symtabs_with_fullname.
10064
af529f8f
JK
100652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10066
10067 Code cleanup.
10068 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10069 call of filename_cmp with compare_filenames_for_search.
10070 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10071 is_abs, unify the call of FILENAME_CMP with
10072 compare_filenames_for_search. New gdb_asserts for real_path and name.
10073 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10074 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10075 * symfile.h (struct quick_symbol_functions): Extend the comment for
10076 map_symtabs_matching_filename.
10077 * symtab.c (compare_filenames_for_search): Remove the function comment
10078 relative path requirement. Handle absolute filenames, with a comment.
10079 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10080 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10081 real_path and name. Unify the call of compare_filenames_for_search
10082 with FILENAME_CMP.
10083 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10084
2f202fde
JK
100852013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10086
10087 Code cleanup.
10088 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10089 source_file references by symtab field references. Remove variables
10090 sal and fullname.
10091 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10092 (clear_command, say_where): Replace bp_location field source_file
10093 references by symtab field references.
10094 (bp_location_dtor): Remove the source_file reference.
10095 (update_static_tracepoint): Replace bp_location field source_file
10096 references by symtab field references.
10097 (breakpoint_free_objfile): New function.
10098 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10099 Replace the field source_file by field symtab, extend its comment.
10100 (breakpoint_free_objfile): New declaration.
10101 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10102 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10103 field source_file references by symtab field references.
10104
f5b95b50
JK
101052013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10106
10107 Replace xfullpath calls by gdb_realpath calls.
10108 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10109 function comment.
10110 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10111 Remove it from the iterate_over_some_symtabs call.
10112 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10113 Remove it from the dw2_map_expand_apply calls, remove a block handling
10114 it.
10115 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10116 Remove it from the iterate_over_some_symtabs call.
10117 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10118 Remove it from the partial_map_expand_apply calls, remove a block
10119 handling it. Drop gdb_realpath call and cleanups from the real_path
10120 handling.
10121 * source.c (openp): Drop the comment part about xfullpath. Replace
10122 xfullpath calls by gdb_realpath calls.
10123 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10124 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10125 from method map_symtabs_matching_filename and its comment.
10126 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10127 gdb_realpath call.
10128 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10129 remove it also from the function comment, remove a block handling it.
10130 Drop gdb_realpath call and cleanups from the real_path handling.
10131 (iterate_over_symtabs): Drop variable full_path and its use.
10132 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10133 * utils.c (xfullpath): Remove.
10134 * utils.h (xfullpath): Remove.
10135
d78489bf
AT
101362013-02-01 Andreas Tobler <andreast@fgznet.ch>
10137
10138 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10139 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10140 (ALLDEPFILES): Add ppc64-tdep.c.
10141 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10142 ppc64-tdep.o to gdb_target_obs.
10143 * ppc64-tdep.h: New file.
10144 * ppc64-tdep.c: New file.
10145 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10146 ppc-linux-tdep.c to here.
10147 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10148 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10149 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10150 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10151 from ppc-linux-tdep.c to here.
10152 (ppc64_convert_from_func_ptr_addr): Rename from
10153 ppc64_linux_convert_from_func_ptr_addr to
10154 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10155 here.
10156 * rs6000-tdep.c:
10157 (read_insn): Move from ppc-linux-tdep.c to here.
10158 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10159 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10160 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10161 Removed above functions.
10162 (ppc_linux_init_abi): Adjust.
10163
8db60374
AR
101642013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10165
10166 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10167
f2e5f4ce
AR
101682013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10169
10170 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10171
c1f7d745
PA
101722013-02-01 Pedro Alves <palves@redhat.com>
10173
10174 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10175 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10176
8a92335b
JK
101772013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10178
10179 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10180 files with no separate debug info.
10181 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10182 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10183 only for files with no separate debug info.
10184
8eacb197
TT
101852013-01-31 Tom Tromey <tromey@redhat.com>
10186
10187 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10188 change type.
10189 (struct jit_program_space_data): Rename from jit_inferior_data.
10190 Update comments.
10191 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10192 Change return type. Attach data to program space.
10193 (jit_program_space_data_cleanup): Rename from
10194 jit_inferior_data_cleanup; change argument type.
10195 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10196 change type.
10197 (jit_register_code): Update.
10198 (jit_update_inferior_cache): Remove.
10199 (jit_breakpoint_deleted): Get jit data from the location's program
10200 space.
10201 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10202 'ps_data', change type.
10203 (jit_inferior_init, jit_breakpoint_re_set_internal)
10204 (jit_event_handler): Update.
10205 (free_objfile_data): Get data from objfile's program space.
10206 (_initialize_jit): Update.
10207
f25c0135
TT
102082013-01-31 Tom Tromey <tromey@redhat.com>
10209
10210 PR gdb/13987:
10211 * jit.c (struct jit_inferior_data) <cached_code_address,
10212 jit_breakpoint>: New fields.
10213 (jit_breakpoint_re_set_internal): Fix logging. Only create
10214 breakpoint if cached address has changed.
10215 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10216 functions.
10217 (_initialize_jit): Register breakpoint deleted observer.
10218
974a734b
AR
102192013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10220
10221 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10222 (save_infcall_suspend_state): Ifdef out unused inf.
10223 (restore_infcall_suspend_state): Ifdef out unused inf.
10224 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10225 (jit_frame_sniffer): Remove unused inf_data.
10226
df54f8eb
AR
102272013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10228
10229 * c-exp.y (classify_inner_name): Remove unused type.
10230 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10231 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10232 need_escape.
10233 (c_get_string): Remove unused kind.
10234 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10235
5799c0b9
AR
102362013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10237
10238 * charset.c (intermediate_encoding): Remove unused i.
10239 * completer.c (signal_completer): Remove unused i.
10240 * continuations.c (discard_my_continuations_1): Remove unused
10241 continuation_ptr.
10242 * corelow.c (core_close): Remove unuseD name.
10243 (get_core_siginfo): Remove unused pid.
10244 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10245 i, cps.
10246 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10247 (loclist_describe_location): Remove unused first.
10248 * event-top.c (command_line_handler): Remove unused got_eof.
10249 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10250 (resize_section_table): Remove unused old_value.
10251 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10252 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10253 * i386-tdep.c (i386_process_record): Remove unused rex.
10254 * infcmd.c (get_return_value): Remove unused uiout.
10255 * jv-lang.c (type_from_class): Remove unused is_array.
10256 * jv-valprint.c (java_val_print): Remove unused i.
10257 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10258 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10259 * m2-typeprint.c (m2_print_type): Remove unused code.
10260 * macroexp.c (get_character_constant): Remove unused body_start.
10261 (macro_stringify): Remove unused result.
10262 * objc-lang.c (find_methods): Remove unused gdbarch.
10263 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10264 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10265 * stack.c (print_frame_args): Remove unused summary.
10266 * thread.c (thread_apply_command): Remove unused p.
10267 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10268 * valops.c (search_struct_method): Remove unused skip.
10269 * valprint.c (generic_val_print): Remove unused byte_order.
10270 * varobj.c (varobj_update): Remove unused changed.
10271 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10272 (alias_command): Remove unused c.
10273 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10274 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10275 format.
10276 (mi_cmd_data_write_memory): Remove unused word_format.
10277 (mi_cmd_data_write_memory_bytes): Remove unused r.
10278 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10279 p_start, p_end.
10280 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10281 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10282 line_width.
10283
c656bca5
AR
102842013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10285
10286 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10287 * symtab.c (iterate_over_symtabs): Remove unused s.
10288 (find_pc_sect_symtab): Remove unused pspAce.
10289 (find_pc_sect_line): Remove unused alt_symtab.
10290 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10291 (completion_list_add_name): Remove unused newsize.
10292
7078baeb
TT
102932013-01-31 Tom Tromey <tromey@redhat.com>
10294
10295 PR c++/14998:
10296 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10297 TYPE_CODE_FUNC.
10298
c2e8b827
AR
102992013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10300
10301 * target.c (target_read_string): Remove unused origlen.
10302
0e43993a
AR
103032013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10304
10305 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10306 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10307 * ax-general.c (ax_print): Remove unused is_float.
10308 * blockframe.c (block_innermost_frame): Remove unused start, end.
10309 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10310
765a97ab
AR
103112013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10312
10313 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10314 (svr4_read_so_list): Remove unused lmo.
10315 * solib-target.c (solib_target_relocate_section_addresses): Remove
10316 unused flags.
10317
a99dad3d
TT
103182013-01-30 Tom Tromey <tromey@redhat.com>
10319
10320 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10321
3bff1ecd
TT
103222013-01-30 Tom Tromey <tromey@redhat.com>
10323
10324 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10325 * utils.c (gnu_debuglink_crc32): Remove.
10326 * utils.h (gnu_debuglink_crc32): Don't declare.
10327
7d455152
TT
103282013-01-30 Tom Tromey <tromey@redhat.com>
10329
10330 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10331 (read_structure_type, read_enumeration_type): Remove cast.
10332
abee88f2
TT
103332013-01-30 Tom Tromey <tromey@redhat.com>
10334
10335 * dwarf2read.c (read_namespace_type): Remove cast.
10336 (read_typedef): Likewise.
10337
8d9878a4
TT
103382013-01-29 Tom Tromey <tromey@redhat.com>
10339
10340 * dwarf2read.c (free_dwo_file): Remove assert.
10341
a543d2a9
TT
103422013-01-29 Tom Tromey <tromey@redhat.com>
10343
10344 * value.c (deprecated_set_value_modifiable): Remove.
10345 * value.h (deprecated_set_value_modifiable): Remove.
10346
bed911e5
DE
103472013-01-28 Doug Evans <dje@google.com>
10348
10349 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10350 to addresses from dwo files.
10351
28c64fc2
SCR
103522013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10353
10354 * valops.c (find_overload_match): Remove unused argument 'lax'.
10355 * value.h: Remove unused argument 'lax' from the declaration of
10356 find_overload_match.
10357 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10358 to find_overload_match.
10359 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10360 argument to find_overload_match.
10361
4d4ec4e5
TT
103622013-01-25 Tom Tromey <tromey@redhat.com>
10363
10364 * dwarf2read.c (processing_has_namespace_info): Remove.
10365 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10366 (process_die, read_func_scope, dwarf2_start_symtab)
10367 (new_symbol_full): Update.
10368
195a3f6c
TT
103692013-01-25 Tom Tromey <tromey@redhat.com>
10370
10371 * cp-namespace.c (cp_set_block_scope): Remove.
10372 * cp-support.h (cp_set_block_scope): Remove.
10373 * dbxread.c: Include block.h.
10374 (cp_set_block_scope): New function.
10375 (process_one_symbol): Update.
10376 * dwarf2read.c (read_func_scope): Use block_set_scope.
10377
8ba0730a
PA
103782013-01-25 Pedro Alves <palves@redhat.com>
10379
10380 * remote.c (add_current_inferior_and_thread): Tweak comment.
10381
12aaed36
TT
103822013-01-25 Tom Tromey <tromey@redhat.com>
10383
10384 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10385 (cp_add_using_directive): Add 'copy_names' argument.
10386 * cp-support.h (cp_add_using_directive): Update.
10387 (struct using_direct) <import_src, import_dest, alias,
10388 declaration>: Now const.
10389 * dwarf2read.c (read_import_statement): Use obconcat.
10390 Don't copy names passed to cp_add_using_directive.
10391
7fc75ca7
TT
103922013-01-25 Tom Tromey <tromey@redhat.com>
10393
10394 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10395
3405876a
PA
103962013-01-25 Pedro Alves <palves@redhat.com>
10397
10398 * remote.c (stop_reply_extract_thread): New.
10399 (add_current_inferior_and_thread): New parameter 'wait_status'.
10400 Handle it.
10401 (remote_start_remote): Pass wait status to
10402 add_current_inferior_and_thread.
10403 (extended_remote_run): Update comment.
10404 (extended_remote_create_inferior_1): Pass wait status to
10405 add_current_inferior_and_thread.
10406
8954db33
AB
104072013-01-25 Andrew Burgess <aburgess@broadcom.com>
10408 Ulrich Weigand <uweigand@de.ibm.com>
10409
10410 * valarith.c (value_vector_widen): New function for replicating a
10411 scalar into a vector.
10412 (value_binop): Use value_vector_widen to widen scalar to vector
10413 rather than casting, this better matches gcc C behaviour.
10414 * valops.c (value_casst): Update logic for casting between vector
10415 types, and for casting from scalar to vector, try to match gcc C
10416 behaviour.
10417 * value.h (value_vector_widen): Declare.
10418 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10419 function, handle special case for casting scalar to vector.
10420 (opencl_relop): Use opencl_value_cast.
10421 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10422 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10423 in order to use opencl_value_cast.
10424
843b20dc
YQ
104252013-01-25 Yao Qi <yao@codesourcery.com>
10426
10427 * event-loop.c: Include "queue.h".
10428 (gdb_event_p): New typedef.
10429 (DECLARE_QUEUE_P): Use.
10430 (DEFINE_QUEUE_P): Use.
10431 (async_queue_event): Remove.
10432 (gdb_event_xfree): New.
10433 (initialize_event_loop): New.
10434 (process_event): Use QUEUE macros.
10435 (event_queue): Remove.
10436 (gdb_wait_for_event): Caller update.
10437 (check_async_event_handlers): Likewise.
10438 (poll_timers): Likewise.
10439 * event-loop.h (initialize_event_loop): Declare.
10440 * event-loop.c (gdb_event_xfree): New.
10441 * top.c (gdb_init): Call initialize_event_loop.
10442
20ad8856
YQ
104432013-01-25 Yao Qi <yao@codesourcery.com>
10444
10445 * event-loop.c (async_queue_event): Remove one parameter
10446 'position'. Remove code handling 'position' == TAIL.
10447 (gdb_wait_for_event): Caller update.
10448 (check_async_event_handlers): Caller update.
10449 (poll_timers): Caller update.
10450 * event-loop.h (enum queue_position): Remove.
10451
3bbbe775
MK
104522013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10453
10454 * MAINTAINERS: Update my email.
10455
a87d9ac4
YQ
104562013-01-25 Yao Qi <yao@codesourcery.com>
10457
10458 * main.c (print_gdb_help): Remove "--epoch" from the help
10459 message.
10460
2077afdd
TD
104612013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10462
10463 * symtab.c (skip_prologue_using_sal): Consider a file
10464 change the same as an increased line number
10465
63da4037
TD
104662013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10467
30e8ee25 10468 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10469
45e6c716
TT
104702013-01-24 Tom Tromey <tromey@redhat.com>
10471
10472 * ada-lang.h (ada_decode_symbol): Make return type const.
10473 * ada-lang.c (ada_decode_symbol): Likewise.
10474
b1ae631a
DE
104752013-01-23 Doug Evans <dje@google.com>
10476
10477 * linespec.c (find_linespec_symbols): Make static.
10478
55a78401
SDJ
104792013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10480
10481 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10482 type on float conversion for complex type.
10483
bea883fd
SCR
104842013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10485
10486 Add a new class gdb.Architecture which exposes GDB's
10487 internal representation of architecture via GDB Python API.
10488 * Makefile.in: Add entries corresponding to the new file
10489 python/py-arch.c.
10490 * NEWS (Python Scripting): Add entries for the new class
10491 gdb.Architecture and the new method gdb.Frame.architecture.
10492 * python/py-arch.c: Implement gdb.Architecture class.
10493 * python/py-frame.c (frapy_arch): Implement the method
10494 gdb.Frame.architecture().
10495 (frame_object_methods): Add 'architecture' to the method table.
10496 * python/python-internal.h: Add declarations of new utility
10497 functions.
10498 * python/python.c (_initialize_python): Initialize
10499 gdb.Architecture class.
10500
796a7ff8
DE
105012013-01-23 Doug Evans <dje@google.com>
10502
10503 Work around binutils/15021.
10504 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10505 type_unit_group out of union s. All uses updated.
10506 (read_index_from_section): Watch for index version 8.
10507 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10508 an imported symtab.
10509 (write_psymtabs_to_index): Increment version number to 8.
10510
0928e93d
PA
105112013-01-22 Pedro Alves <palves@redhat.com>
10512
10513 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10514 user-visible.
10515
9c97429f
PA
105162013-01-22 Pedro Alves <palves@redhat.com>
10517
10518 * annotate.c (annotate_breakpoints_changed): Rename to ...
10519 (annotate_breakpoints_invalid): ... this. Make static.
10520 (breakpoint_changed): Adjust.
10521 (_initialize_annotate): Always install the observers. Install a
10522 "breakpoint_created" observer.
10523 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10524 * breakpoint.c (set_breakpoint_condition)
10525 (breakpoint_set_commands, do_map_commands_command)
10526 (init_raw_breakpoint, clear_command, set_ignore_count)
10527 (enable_breakpoint_disp): No longer call
10528 annotate_breakpoints_changed.
10529
bd00c694
PA
105302013-01-22 Pedro Alves <palves@redhat.com>
10531
10532 * annotate.c: Include "inferior.h".
10533 (frames_invalid_emitted)
10534 (breakpoints_invalid_emitted): New globals.
10535 (async_background_execution_p): New function.
10536 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10537 emitting the annotation if it has already been emitted.
10538 (annotate_display_prompt): New function.
10539 * annotate.h (annotate_display_prompt): New declaration.
10540 * event-top.c: Include annotate.h.
10541 (display_gdb_prompt): Call annotate_display_prompt.
10542
187d10dd
PA
105432013-01-22 Pedro Alves <palves@redhat.com>
10544
10545 * annotate.c (ignore_count_changed): Delete.
10546 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10547 (annotate_ignore_count_change): Delete.
10548 (annotate_stopped): Don't emit a delayed breakpoints-changed
10549 annotation.
10550 * annotate.h (annotate_ignore_count_change): Delete.
10551 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10552 annotate_ignore_count_change.
10553
d84cf7eb
TT
105542013-01-22 Tom Tromey <tromey@redhat.com>
10555
10556 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10557 require_rvalue for a register location.
10558
8f1d5693
MK
105592013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10560
10561 * breakpoint.c (print_one_breakpoint_location): Add MI
10562 field 'thread-groups' when printing a breakpoint.
10563 (output_thread_groups): New function.
10564
aa6199c6
SCR
105652013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10566
10567 * python/lib/gdb/commands/explore.py
10568 (CompoundExplorer.explore_expr): Correct the name of a method
10569 being invoked.
10570 (ExploreTypeCommand.invoke): Add a missing 'return'.
10571
d2afef13
TT
105722013-01-21 Tom Tromey <tromey@redhat.com>
10573
10574 * gdb_obstack.h (obconcat): Move declaration here, from...
10575 * symfile.h (obconcat): ... here.
10576 * gdb_obstack.c: New file.
10577 (obconcat): Move from...
10578 * symfile.c (obconcat): ... here.
10579 * Makefile.in (SFILES): Add gdb_obstack.c.
10580 (COMMON_OBS): Add gdb_obstack.o.
10581
10f0c4bb
TT
105822013-01-21 Tom Tromey <tromey@redhat.com>
10583
10584 * symfile.h (obsavestring): Don't declare.
10585 * symfile.c (obsavestring): Remove.
10586 * ada-exp.y: Use obstack_copy0, not obsavestring.
10587 * ada-lang.c: Use obstack_copy0, not obsavestring.
10588 * coffread.c: Use obstack_copy0, not obsavestring.
10589 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10590 * dbxread.c: Use obstack_copy0, not obsavestring.
10591 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10592 * jit.c: Use obstack_copy0, not obsavestring.
10593 * mdebugread.c: Use obstack_copy0, not obsavestring.
10594 * psymtab.c: Use obstack_copy0, not obsavestring.
10595 * stabsread.c: Use obstack_copy0, not obsavestring.
10596 * xcoffread.c: Use obstack_copy0, not obsavestring.
10597
86f62fd7
TT
105982013-01-21 Tom Tromey <tromey@redhat.com>
10599
10600 * dwarf2read.c (fixup_go_packaging): Save package name
10601 on objfile obstack.
10602 * gdbtypes.c (init_type): Don't copy name.
10603
15d034d0
TT
106042013-01-21 Tom Tromey <tromey@redhat.com>
10605
10606 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10607 const.
10608 (struct attribute) <u.str>: Now const.
10609 (struct fnfieldlist) <name>: Now const.
10610 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10611 (partial_die_parent_scope): Make return type const.
10612 (partial_die_full_name, add_partial_symbol): Update.
10613 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10614 'name' const.
10615 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10616 (read_file_scope, read_func_scope, dwarf2_add_field)
10617 (dwarf2_add_member_fn, read_structure_type)
10618 (process_enumeration_scope, read_array_type, read_module_type)
10619 (read_base_type, read_subrange_type): Update.
10620 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10621 (new_symbol_full, guess_full_die_structure_name): Update.
10622 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10623 (dwarf2_name): Return const type.
10624 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10625 const.
10626
748e18ae
TT
106272013-01-21 Tom Tromey <tromey@redhat.com>
10628
10629 * gdbtypes.c (init_type): Make 'name' const.
10630 * gdbtypes.h (init_type): Update.
10631
46212e0b
TT
106322013-01-21 Tom Tromey <tromey@redhat.com>
10633
10634 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10635 (start_symtab): Make 'name' and 'dirname' const. Use
10636 set_last_source_file.
10637 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10638 (last_source_file): Define. Now static.
10639 (set_last_source_file, get_last_source_file): New functions.
10640 * buildsym.h (last_source_file): Don't declare.
10641 (start_symtab): Update.
10642 (set_last_source_file, get_last_source_file): Declare.
10643 * coffread.c (complete_symtab): Use set_last_source_file.
10644 (coff_end_symtab): Likewise.
10645 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10646 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10647 set_last_source_file.
10648 (process_one_symbol): Use get_last_source_file.
10649 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10650 (psymtab_to_symtab_1): Use get_last_source_file.
10651 * xcoffread.c (process_linenos): Use get_last_source_file.
10652 (complete_symtab): Use set_last_source_file.
10653 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10654 (scan_xcoff_symtab): Use set_last_source_file.
10655
9d2ceabe
TT
106562013-01-21 Tom Tromey <tromey@redhat.com>
10657
10658 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10659 (symbol_set_names): Remove casts. Handle field const-ness.
10660
cfc594ee
TT
106612013-01-21 Tom Tromey <tromey@redhat.com>
10662
10663 * dwarf2read.c (new_symbol_full): Remove cast.
10664 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10665 * symtab.h (symbol_set_demangled_name): Update.
10666
5484b13a
TT
106672013-01-21 Tom Tromey <tromey@redhat.com>
10668
10669 * main.c (captured_main): Call bfd_init.
10670
1605ef26
TT
106712013-01-21 Tom Tromey <tromey@redhat.com>
10672
10673 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10674 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10675 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10676 * NEWS: Update.
10677
3b74cdc3
JK
106782013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10679
10680 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10681
5a352474
JK
106822013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10683
10684 Fix gdb.fortran/common-block.exp crash in PIE mode.
10685 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10686 LOC_COMMON_BLOCK.
10687 * f-valprint.c (info_common_command_for_block): Expect
10688 LOC_COMMON_BLOCK in gdb_assert.
10689 * symtab.h (struct general_symbol_info): Update comment for the
10690 common_block member.
10691 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10692 (enum address_class): New member LOC_COMMON_BLOCK.
10693
c60797fd
DB
106942013-01-18 David Blaikie <dblaikie@gmail.com>
10695
10696 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10697
46f35228
TT
106982013-01-18 Tom Tromey <tromey@redhat.com>
10699
10700 PR c++/14999:
10701 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10702 Call require_rvalue.
10703
257e7a09
YQ
107042013-01-18 Yao Qi <yao@codesourcery.com>
10705
10706 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10707 (dbx_read_symtab): New declaration.
10708 (dbx_psymtab_to_symtab): Delete.
10709 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10710 Rename parameter PST to SELF. Exchanged two parameters.
10711 (start_psymtab): Caller update.
10712 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10713 (dwarf2_read_symtab): New declaration.
10714 (dwarf2_psymtab_to_symtab): Delete.
10715 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10716 Rename parameter PST to SELF. Exchanged two parameters.
10717 (create_partial_symtab): Caller update.
10718 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10719 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10720 Rename parameter PST to SELF. Exchanged two parameters.
10721 (parse_partial_symbols, new_psymtab): Caller update.
10722 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10723 two parameters.
10724 * psymtab.c (psymtab_to_symtab): Caller update.
10725 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10726 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10727 Rename parameter PST to SELF. Exchanged two parameters.
10728 (xcoff_start_psymtab): Caller update.
10729
0de5618e
YQ
107302013-01-18 Yao Qi <yao@codesourcery.com>
10731
10732 * infrun.c (proceed): Rename local variable 'oneproc' to
10733 'force_step'.
10734
5c04624b
DE
107352013-01-17 Doug Evans <dje@google.com>
10736
848e3e78
DE
10737 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10738 (dw2_build_type_unit_groups): Delete. All uses updated.
10739
5c04624b
DE
10740 * symtab.h (struct symbol_search): Add comment.
10741
d84fca2c
JK
107422013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10743
10744 * symtab.c (compare_filenames_for_search): New comment for
10745 HAS_DRIVE_SPEC.
10746
6108433d
TT
107472013-01-17 Tom Tromey <tromey@redhat.com>
10748
10749 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10750
c89ffd86
JK
107512013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10752
10753 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10754 initialize it by existing make_cleanup. Call new do_cleanups.
10755
db2b2972
TT
107562013-01-17 Tom Tromey <tromey@redhat.com>
10757
10758 * cp-abi.c (cp_abi_completer): New function.
10759 (_initialize_cp_abi): Set completer for "set cp-abi".
10760
be7d37a2
TT
107612013-01-17 Tom Tromey <tromey@redhat.com>
10762
10763 * mem-break.c: Remove obsolete comment.
10764 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10765
c9fb1240
SD
107662012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10767
10768 * jit.c (jit_reader_load_command): Interpret the jit reader name
10769 as an absolute path if it begins with a forward slash.
10770
db334a01
SD
107712012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10772
10773 PR gdb/14550
10774
10775 * jit.c (finalize_symtab): Ensure that only the global block has a
10776 NULL superblock.
10777
7d928dac
PA
107782013-01-17 Pedro Alves <palves@redhat.com>
10779
10780 * acinclude.m4: Include ../config/plugins.m4,
10781 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10782 * Makefile.in (aclocal_m4_deps): Update.
10783 * aclocal.m4: Renegerate.
10784
fb8cf7c5
DE
107852013-01-16 Doug Evans <dje@google.com>
10786
10787 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10788
ab04a2af
TT
107892013-01-16 Pedro Alves <palves@redhat.com>
10790 Tom Tromey <tromey@redhat.com>
10791
10792 PR cli/7221:
10793 * NEWS: Add "catch signal".
10794 * breakpoint.c (base_breakpoint_ops): No longer static.
10795 (bpstat_explains_signal): New function.
10796 (init_catchpoint): No longer static.
10797 (base_breakpoint_explains_signal): New function.
10798 (base_breakpoint_ops): Initialize new field.
10799 * breakpoint.h (enum bpstat_signal_value): New.
10800 (struct breakpoint_ops) <explains_signal>: New field.
10801 (bpstat_explains_signal): Remove macro, declare as function.
10802 (base_breakpoint_ops, init_catchpoint): Declare.
10803 * break-catch-sig.c: New file.
10804 * inferior.h (signal_catch_update): Declare.
10805 * infrun.c (signal_catch): New global.
10806 (handle_syscall_event): Update for change to
10807 bpstat_explains_signal.
10808 (handle_inferior_event): Likewise. Always handle random signals
10809 via bpstats.
10810 (signal_cache_update): Check signal_catch.
10811 (signal_catch_update): New function.
10812 (_initialize_infrun): Initialize signal_catch.
10813 * Makefile.in (SFILES): Add break-catch-sig.c.
10814 (COMMON_OBS): Add break-catch-sig.o.
10815
8ac3646f
TT
108162013-01-16 Tom Tromey <tromey@redhat.com>
10817
10818 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10819 (print_one_catch_solib, print_one_catch_syscall)
10820 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10821 "catch-type".
10822
5a18e302
YQ
108232013-01-16 Yao Qi <yao@codesourcery.com>
10824
10825 * printcmd.c (current_display_number): Make it static.
10826
3f01d0d0
YQ
108272013-01-16 Yao Qi <yao@codesourcery.com>
10828
10829 * infcmd.c (step_once): Don't check '!single_inst' as it was
10830 checked before.
10831
1ed59174
JK
108322013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10833
10834 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10835
44478ab3
TT
108362013-01-14 Tom Tromey <tromey@redhat.com>
10837
10838 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10839 set command.
10840 * command.h (add_setshow_string_noescape_cmd): Update.
10841 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10842 (complete_set_gnutarget): New function.
10843 (_initialize_core): Set the "set gnutarget" completer.
10844
06d66ee9
TT
108452013-01-14 Tom Tromey <tromey@redhat.com>
10846
10847 PR symtab/14442:
10848 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10849 (c_type_print_modifier): Likewise.
10850 * dwarf2read.c (read_tag_restrict_type): New function.
10851 (read_type_die_1): Handle DW_TAG_restrict_type.
10852 * gdbtypes.c (make_restrict_type): New function.
10853 (recursive_dump_type): Handle TYPE_RESTRICT.
10854 * gdbtypes.h (enum type_flag_values): Renumber.
10855 (enum type_instance_flag_value): Add
10856 TYPE_INSTANCE_FLAG_RESTRICT.
10857 (TYPE_RESTRICT): New macro.
10858 (make_restrict_type): Declare.
10859
c9bf0622
TT
108602013-01-14 Tom Tromey <tromey@redhat.com>
10861
10862 PR symtab/14931:
10863 * psymtab.c (struct psymtab_state): New.
10864 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10865 functions.
10866 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10867 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10868
44d594fd
PA
108692013-01-14 Richard Sharman <richard_sharman@mitel.com>
10870 Pedro Alves <palves@redhat.com>
10871
10872 PR remote/14786
10873
10874 * remote.c (remote_threads_info): Make a copy of the reply from
10875 qfThreadInfo and use that instead of rs->buf.
10876
442e4d9c
YQ
108772013-01-14 Yao Qi <yao@codesourcery.com>
10878
10879 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10880 (dbx_psymtab_to_symtab): Likewise.
10881 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10882 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10883 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10884
5b12a61c
JK
108852013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10886
10887 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10888 make_cleanup_restore_current_language. Call set_language. Move
10889 OLD_CHAIN and INNER_CHAIN cleanups.
10890 * utils.c (do_restore_current_language)
10891 (make_cleanup_restore_current_language): New functions.
10892 * utils.h (make_cleanup_restore_current_language): New declaration.
10893
f0a4b570
JK
108942013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10895
10896 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10897 non-existing files.
10898
57b3c00c
JK
10899 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10900 non-existing files if FILENAME is already absolute.
10901
daefa854
JK
109022013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10903
10904 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10905 fputs_filtered. Append trailing newline.
10906
ca9c6ee2
YQ
109072013-01-11 Yao Qi <yao@codesourcery.com>
10908 Stan Shebs <stan@codesourcery.com>
10909
10910 * psymtab.c (init_psymbol_list): Clarify the comment.
10911
f28045c2
YQ
109122013-01-11 Yao Qi <yao@codesourcery.com>
10913
10914 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10915 (update_dprintf_command_list): Assert that 'printf_line' is
10916 non-null. Remove condition check.
10917
da5132d3
JK
109182013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10919
10920 Code cleanup.
10921 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10922 type const char *.
10923 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10924 const char *.
10925 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10926
843e694d
AG
109272013-01-09 Anthony Green <green@moxielogic.com>
10928
10929 * cp-abi.c (cplus_print_vtable): Don't return value from void
10930 function.
10931 * ada-lang.c (re_set_catch_assert): Ditto.
10932
da51c347
DE
109332013-01-09 Doug Evans <dje@google.com>
10934
10935 * symfile.h (quick_symbol_functions): Delete member
10936 pre_expand_symtabs_matching. All uses removed.
10937 * dwarf2read.c (dw2_lookup_symbol): Implement.
10938 (dw2_do_expand_symtabs_matching): Delete.
10939 (dw2_pre_expand_symtabs_matching): Delete.
10940 (struct dw2_symtab_iterator): New type.
10941 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10942 (dw2_expand_symtabs_for_function): Rewrite.
10943 (dwarf2_gdb_index_functions): Update.
10944 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10945 (psym_functions): Update.
10946
b2259038
TT
109472013-01-09 Tom Tromey <tromey@redhat.com>
10948
10949 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10950 * configure: Rebuild.
10951 * configure.ac: Add somread.o to the build if BFD has SOM
10952 support.
10953 * somread.c: Include som/aout.h, not syms.h.
10954 (som_symtab_read): Use som_external_symbol_dictionary_record.
10955 Unpack records manually.
10956 (_initialize_somread): Declare.
10957
bdad4180
MF
109582012-01-08 Mike Frysinger <vapier@gentoo.org>
10959
10960 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10961 Cast return_address to 64bits.
10962
03cdf680
HZ
109632013-01-08 Hui Zhu <hui_zhu@mentor.com>
10964
10965 * printcmd.c: Remove define of function output_command.
10966 * tracepoint.c: Remove extern of function output_command.
10967 * valprint.h: (output_command): New extern.
10968
8a808554
TT
109692013-01-07 Tom Tromey <tromey@redhat.com>
10970
10971 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10972 Remove.
10973 (objc_language_defn): Use c_printchar, c_printstr,
10974 c_emit_char.
10975
e93a8774
TT
109762013-01-07 Tom Tromey <tromey@redhat.com>
10977
10978 PR cli/7719:
10979 * NEWS: Update.
10980 * ada-valprint.c (printstr, print_field_values): Remove
10981 "inspect_it" code.
10982 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10983 code.
10984 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10985 code.
10986 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10987 * main.c (captured_main): Remove "epoch" argument.
10988 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10989 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10990 * p-valprint.c (pascal_object_print_value_fields): Remove
10991 "inspect_it" code.
10992 * printcmd.c (print_command_1): Remove 'inspect' argument.
10993 (print_command, call_command): Update.
10994 (inspect_command): Remove.
10995 (_initialize_printcmd): Make "inspect" an alias for "print".
10996 * top.c (epoch_interface): Remove.
10997 * top.h (epoch_interface): Remove.
10998 * valprint.c (user_print_options): Update.
10999 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11000 * valprint.h (struct value_print_options) <inspect_it>: Remove
11001 field.
11002
110032013-01-04 Tom Tromey <tromey@redhat.com>
11004
11005 * valprint.h (read_string): Add 'extern'.
11006
b967eb24
JB
110072013-01-07 Joel Brobecker <brobecker@adacore.com>
11008
11009 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11010 used to decide whether to define darwin_read_dyld_info or not.
11011
78a8b30e
PM
110122013-01-03 Pierre Muller <muller@sourceware.org>
11013
11014 * main.c (relocate_gdb_directory): Avoid calling stat function
11015 if DIR is empty.
11016
50da2f25
YQ
110172013-01-03 Yao Qi <yao@codesourcery.com>
11018
11019 * psymtab.c (fixup_psymbol_section): Update declaration.
11020 (fixup_psymbol_section): Remove code returning value.
11021
e7e8980f
YQ
110222013-01-03 Yao Qi <yao@codesourcery.com>
11023
11024 * symtab.h: Remove some out of date comments.
11025 (enum exception_event_kind): Move it ...
11026 * breakpoint.c: ... here.
11027
569283d4
MF
110282013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11029
9f9d9a96 11030 PR gdb/14405
569283d4
MF
11031 * darwin-nat.c (darwin_read_dyld_info): Only build if
11032 TASK_DYLD_INFO_COUNT is defined.
11033 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11034 TASK_DYLD_INFO_COUNT is defined.
11035
2e36fbea
TT
110362013-01-02 Tom Tromey <tromey@redhat.com>
11037
11038 * symfile.h (struct ecoff_debug_hack): Remove.
11039 * objfiles.c: Don't include mdebugread.h.
11040
4f05add4
TT
110412013-01-02 Tom Tromey <tromey@redhat.com>
11042
11043 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11044 * configure.ac: Check for Mach-O support in BFD. Update
11045 CONFIG_OBS.
11046 * configure: Rebuild.
11047
def63ff0
TT
110482013-01-02 Tom Tromey <tromey@redhat.com>
11049
11050 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11051 * configure.ac: Use GDB_AC_CHECK_BFD.
11052 * configure: Rebuild.
11053
60c5dd93
MK
110542013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11055
11056 * MAINTAINERS: Update my email.
11057
6e58437e
JB
110582013-01-01 Joel Brobecker <brobecker@adacore.com>
11059
11060 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11061
627fe805
JB
110622013-01-01 Joel Brobecker <brobecker@adacore.com>
11063
11064 * rs6000-nat.c (bss_data_overlap): New function.
11065 (vmap_symtab): Use it to adjust the .bss section's offset.
11066
28e7fd62
JB
110672013-01-01 Joel Brobecker <brobecker@adacore.com>
11068
11069 Update year range in copyright notice of all files.
11070
e93a8774 110712013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11072
11073 * top.c (print_gdb_version): Update copyright year.
11074
72b20e9c 11075For older changes see ChangeLog-2012.
c906108c
SS
11076\f
11077Local Variables:
11078mode: change-log
11079left-margin: 8
11080fill-column: 74
11081version-control: never
57da7796 11082coding: utf-8
c906108c 11083End:
This page took 2.172608 seconds and 4 git commands to generate.