infrun debug output: print enum gdb_signal symbol names instead of POSIX signal names.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-10-23 Pedro Alves <palves@redhat.com>
2
3 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
4 * common/signals.c: Include "gdb_assert.h".
5 (signals): New field 'symbol'.
6 (SET): Use the 'symbol' parameter.
7 (gdb_signal_to_symbol_string): New function.
8 * infrun.c (handle_inferior_event) <random signal>: In debug
9 output, print the random signal enum as string in addition to its
10 number.
11 * target/waitstatus.c (target_waitstatus_to_string): Print the
12 signal's enum value as string instead of the (POSIX) signal name.
13
14 2013-10-23 Gary Benson <gbenson@redhat.com>
15
16 PR 16013
17 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
18 from 32 to 18. Adjusted fscanf format string accordingly.
19 (Avoids leaving cmd unterminated.)
20 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
21 trun, retn or extra. (Avoids leaving extra unterminated.) Check
22 that local_address and remote_address will not overflow.
23 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
24 leaving dependencies unterminated. Parse size as "%u" to match
25 definition.
26
27 2013-10-22 Pedro Alves <palves@redhat.com>
28
29 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
30 set ecs->random signal.
31
32 2013-10-22 Pedro Alves <palves@redhat.com>
33
34 * infrun.c (keep_going): Update comments.
35
36 2013-10-22 Pedro Alves <palves@redhat.com>
37
38 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
39 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
40
41 2013-10-22 Pedro Alves <palves@redhat.com>
42
43 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
44 GDB_EXC_BAD_ACCESS.
45 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
46 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
47 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
48 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
49 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
50 (GDB_SIGNAL_LAST): Change description string.
51 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
52 Adjust to signal renaming.
53 * darwin-nat.c (darwin_decode_message): Likewise.
54
55 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
56
57 * MAINTAINERS (Write After Approval): Add myself to the list.
58
59 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
60
61 * breakpoint.c (update_watchpoint): If hardware watchpoints are
62 forced off, downgrade them to software watchpoints if possible,
63 and error out if not possible.
64 (watch_command_1): Move watchpoint type selection closer to
65 watchpoint creation, and extend the comments.
66
67 2013-10-18 Pedro Alves <palves@redhat.com>
68
69 PR gdb/16062
70 * infrun.c (handle_inferior_event): Keep going if we got a random
71 signal we should not stop for, instead of falling through to the
72 step tests.
73
74 2013-10-18 Yao Qi <yao@codesourcery.com>
75
76 * c-varobj.c (cplus_number_of_children): Fix indentation.
77
78 2013-10-17 Tom Tromey <tromey@redhat.com>
79
80 PR gdb/15995:
81 * printcmd.c (printcmd): Call gdb_flush.
82
83 2013-10-17 Tom Tromey <tromey@redhat.com>
84
85 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
86 (elf_locate_sections): Update.
87
88 2013-10-17 Yao Qi <yao@codesourcery.com>
89
90 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
91 * ada-varobj.c: Remove the include of ada-varobj.h.
92 (ada_varobj_get_number_of_children): Declare.
93 (ada_varobj_get_name_of_child): Make it static.
94 (ada_varobj_get_path_expr_of_child): Likewise.
95 (ada_varobj_get_value_of_child): Likewise.
96 (ada_varobj_get_type_of_child): Likewise.
97 (ada_varobj_get_value_of_array_variable): Likewise.
98 * ada-varobj.h: Remove.
99
100 2013-10-17 Yao Qi <yao@codesourcery.com>
101
102 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
103 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
104 * ada-varobj.c: Include "varobj.h".
105 (ada_number_of_children): New. Moved from varobj.c.
106 (ada_name_of_variable, ada_name_of_child): Likewise.
107 (ada_path_expr_of_child, ada_value_of_child): Likewise.
108 (ada_type_of_child, ada_value_of_variable): Likewise.
109 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
110 (ada_varobj_ops): New.
111 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
112 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
113 * gdbtypes.h (get_target_type): Declare.
114 * varobj.c: Remove the inclusion of "ada-varobj.h" and
115 "ada-lang.h".
116 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
117 (ANONYMOUS_UNION_NAME): Likewise.
118 (get_type, get_value_type, get_target_type): Remove declarations.
119 (value_get_print_value, varobj_value_get_print_value): Likewise.
120 (c_number_of_children, c_name_of_variable): Likewise.
121 (c_name_of_child, c_path_expr_of_child): Likewise.
122 (c_value_of_child, c_type_of_child): Likewise.
123 (c_value_of_variable, cplus_number_of_children): Likewise.
124 (cplus_class_num_children, cplus_name_of_variable): Likewise.
125 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
126 (cplus_value_of_child, cplus_type_of_child): Likewise.
127 (cplus_value_of_variable, java_number_of_children): Likewise.
128 (java_name_of_variable, java_name_of_child): Likewise.
129 (java_path_expr_of_child, java_value_of_child): Likewise.
130 (java_type_of_child, java_value_of_variable): Likewise.
131 (ada_number_of_children, ada_name_of_variable): Likewise.
132 (ada_name_of_child, ada_path_expr_of_child): Likewise.
133 (ada_value_of_child, ada_type_of_child): Likewise.
134 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
135 (ada_value_has_mutated): Likewise.
136 (struct language_specific): Move it to varobj.h.
137 (CPLUS_FAKE_CHILD): Move it to varobj.h.
138 (restrict_range): Rename it varobj_restrict_range. Make it extern.
139 Callers update.
140 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
141 Make it extern.
142 (is_anonymous_child): Move it to c-varobj.c and rename to
143 varobj_is_anonymous_child. Caller update.
144 (get_type): Move it to c-varobj.c.
145 (get_value_type): Rename it varobj_get_value_type. Make it
146 extern.
147 (get_target_type): Move it gdbtypes.c.
148 (varobj_formatted_print_options): New function.
149 (value_get_print_value): Rename it to
150 varobj_value_get_print_value and make it extern.
151 (varobj_value_is_changeable_p): Make it extern.
152 (adjust_value_for_child_access): Move it to c-varobj.c.
153 (default_value_is_changeable_p): Rename it to
154 varobj_default_value_is_changeable_p. Make it extern.
155 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
156 (c_name_of_child, c_path_expr_of_child): Likewise.
157 (c_value_of_child, c_type_of_child): Likewise.
158 (c_value_of_variable, cplus_number_of_children): Likewise.
159 (cplus_class_num_children, cplus_name_of_variable): Likewise.
160 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
161 (cplus_value_of_child, cplus_type_of_child): Likewise.
162 (cplus_value_of_variable): Likewise.
163 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
164 (java_name_of_child, java_path_expr_of_child): Likewise.
165 (java_value_of_child, java_type_of_child): Likewise.
166 (java_value_of_variable): Likewise.
167 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
168 (ada_name_of_child, ada_path_expr_of_child): Likewise.
169 (ada_value_of_child, ada_type_of_child): Likewise.
170 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
171 (ada_value_has_mutated): Likewise.
172 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
173 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
174 (c_varobj_ops, cplus_varobj_ops): Declare.
175 (java_varobj_ops, ada_varobj_ops): Declare.
176 (varobj_default_value_is_changeable_p): Declare.
177 (varobj_value_is_changeable_p): Declare.
178 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
179 (varobj_get_path_expr_parent): Declare.
180 (varobj_value_get_print_value): Declare.
181 (varobj_formatted_print_options): Declare.
182 (varobj_restrict_range): Declare.
183
184 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
185
186 * target/waitstatus.h (target_waitkind): Remove spurious
187 character from the comments.
188
189 2013-10-17 Joel Brobecker <brobecker@adacore.com>
190
191 * gdbarch.sh (get_longjmp_target): Add method documentation.
192 * gdbarch.h: Regenerate.
193
194 2013-10-16 Tom Tromey <tromey@redhat.com>
195
196 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
197 label.
198
199 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
200
201 * gcore.in: Call GDB using the full path to the gcore script.
202 Error out if the GDB binary is not found.
203
204 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
205
206 PR gdb/16014
207 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
208 sizeof.
209
210 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
211
212 PR gdb/16042
213 * target.c (target_disable_btrace): Fix invalid return value for
214 void function.
215 (target_teardown_btrace): Likewise.
216
217 2013-10-14 Yao Qi <yao@codesourcery.com>
218
219 * varobj.c (struct varobj): Move most of the fields to
220 varobj.h.
221 (struct varobj_dynamic): New struct.
222 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
223 (varobj_has_more): Likewise.
224 (dynamic_varobj_has_child_method): Likewise.
225 (update_dynamic_varobj_children): Likewise.
226 (varobj_get_num_children): Likewise.
227 (varobj_list_children, varobj_pretty_printed_p): Likewise.
228 (install_new_value_visualizer): Likewise.
229 (install_new_value_visualizer, install_new_value): Likewise.
230 (varobj_update, new_variable, free_variable): Likewise.
231 (my_value_of_variable, value_get_print_value): Likewise.
232 (install_visualizer): Change the type of parameter 'var' to
233 'struct varobjd_dynamic *'. Callers update.
234 * varobj.h (struct varobj): Moved from varobj.c.
235 (struct varobj) <dynamic>: New field.
236
237 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
238
239 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
240 as the preferred name of r30.
241 * nios2-linux-tdep.c (reg_offsets): Likewise.
242 * features/nios2-cpu.xml: Likewise.
243 * features/nios2-linux.c: Regenerated.
244 * features/nios2.c: Regenerated.
245 * regformats/nios2-linux.dat: Regenerated.
246
247 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
248
249 Canonicalize directories for EXEC_FILENAME.
250 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
251 exec_filename.
252 * utils.c (gdb_realpath_keepfile): New function.
253 * utils.h (gdb_realpath_keepfile): New declaration.
254
255 2013-10-11 Doug Evans <dje@google.com>
256
257 * Makefile.in (GDBFLAGS): New variable.
258 (run): New rule.
259
260 2013-10-11 Joel Brobecker <brobecker@adacore.com>
261
262 * NEWS: Add entry documenting the new "-catch-assert" and
263 "-catch-exception" GDB/MI commands.
264
265 2013-10-11 Joel Brobecker <brobecker@adacore.com>
266
267 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
268 "enabled".
269 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
270 "enabled". Set B->ENABLE_STATE accordingly.
271 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
272 ada-lang.c.
273 (create_ada_exception_catchpoint): Add declaration.
274 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
275 (create_ada_exception_catchpoint): Make non-static. Add new
276 parameter "disabled". Use it in call to
277 init_ada_exception_breakpoint.
278 (catch_ada_exception_command): Add parameter "enabled" in call
279 to create_ada_exception_catchpoint.
280 (catch_assert_command): Likewise.
281
282 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
283 Add declarations.
284 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
285 "catch-exception" commands.
286 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
287 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
288
289 2013-10-11 Joel Brobecker <brobecker@adacore.com>
290
291 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
292 "enum exception_catchpoint_kind". Replace the "ex_" prefix
293 of all its enumerates with "ada_". Update the rest of this
294 file throughout.
295
296 2013-10-11 Joel Brobecker <brobecker@adacore.com>
297
298 * ada-lang.c (ada_decode_exception_location): Delete.
299 (create_ada_exception_catchpoint): Remove arguments "sal",
300 "addr_string" and "ops". Add argument "ex_kind" instead.
301 Adjust implementation accordingly, calling ada_exception_sal
302 to get the entities it no longer gets passed as arguments.
303 Document the function's arguments.
304 (catch_ada_exception_command): Use catch_ada_exception_command_split
305 instead of ada_decode_exception_location, and update call to
306 create_ada_exception_catchpoint.
307 (catch_ada_assert_command_split): Renames
308 ada_decode_assert_location. Remove parameters "addr_string" and
309 "ops", and now returns void. Adjust implementation accordingly.
310 Update the function documentation.
311 (catch_assert_command): Use catch_ada_assert_command_split
312 instead of ada_decode_assert_location. Update call to
313 create_ada_exception_catchpoint.
314
315 2013-10-11 Joel Brobecker <brobecker@adacore.com>
316
317 * utils.h (perror_warning_with_name): Add declaration.
318 * utils.c (perror_warning_with_name): New function.
319 * cli/cli-cmds.c (source_script_with_search): Add call to
320 perror_warning_with_name if from_tty is nul.
321
322 2013-10-11 Joel Brobecker <brobecker@adacore.com>
323
324 * utils.c (perror_string): New function, extracted out of
325 throw_perror_with_name.
326 (throw_perror_with_name): Rework to use perror_string.
327
328 2013-10-11 Yao Qi <yao@codesourcery.com>
329
330 * remote.c (discard_pending_stop_replies_in_queue): Update
331 declaration.
332 (struct stop_reply) <rs>: New field.
333 (remove_stop_reply_of_remote_state): New function.
334 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
335 Callers update. Pass remove_stop_reply_of_remote_state to
336 QUEUE_iterate.
337 (remote_parse_stop_reply): Initialize field 'rs'.
338
339 2013-10-10 Will Newton <will.newton@linaro.org>
340
341 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
342 linux_init_abi.
343
344 2013-10-10 Joel Brobecker <brobecker@adacore.com>
345
346 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
347 serial_baud_show_cmd.
348 (_initialize_cli_cmds): Delete the code creating the
349 "set/show remotebaud" commands.
350 * serial.c (baud_rate): Move here from top.c.
351 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
352 (_initialize_serial): Create "set/show serial baud" commands.
353 Add "set/show remotebaud" command aliases.
354 * top.c (baud_rate): Moved to serial.c.
355 * NEWS: Document the new "set/show serial baud" commands,
356 replacing "set/show remotebaud".
357
358 2013-10-09 Pedro Alves <palves@redhat.com>
359
360 * breakpoint.c (insert_bp_location): Use memory_error_message to
361 build the memory error string.
362 * c-lang.c: Include "gdbcore.h".
363 (c_get_string): Use memory_error to throw error.
364 (target_xfer_memory_error): Delete.
365 (memory_error_message): New, factored out from
366 target_xfer_memory_error.
367 (memory_error): Change parameter type to target_xfer_error.
368 Rewrite.
369 (read_memory): Use memory_error instead of
370 target_xfer_memory_error.
371 * gdbcore.h: Include "target.h".
372 (memory_error): Change parameter type to target_xfer_error.
373 (memory_error_message): Declare function.
374 * target.c (target_read_memory, target_read_stack)
375 (target_write_memory, target_write_raw_memory): Return
376 TARGET_XFER_E_IO on error. Adjust comments.
377 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
378 instead of EIO.
379 * target.h (target_read, target_insert_breakpoint)
380 (target_remove_breakpoint): Adjust comments.
381 * valprint.c (partial_memory_read): Rename parameter, and adjust
382 comment.
383 (val_print_string): Use memory_error_message to build the memory
384 error string.
385
386 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
387
388 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
389 result variable. Rename variable fopen_e_ever_failed to
390 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
391
392 2013-10-09 Pedro Alves <palves@redhat.com>
393
394 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
395 (monitor_write_memory_longlongs, monitor_write_memory_block):
396 Constify 'myaddr' parameter.
397 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
398 helper.
399 (monitor_xfer_partial): New function.
400 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
401 hook. Install a to_xfer_partial hook.
402
403 2013-10-09 Tom Tromey <tromey@redhat.com>
404
405 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
406 bfd_get_alt_debug_link_info.
407
408 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
409
410 New flag OBJF_NOT_FILENAME.
411 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
412 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
413 allocate_objfile.
414 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
415 symbol_file_add_from_bfd.
416 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
417 allocate_objfile.
418 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
419 NULL.
420 * objfiles.h (OBJF_NOT_FILENAME): New.
421
422 2013-10-08 Tom Tromey <tromey@redhat.com>
423
424 * Makefile.in (SFILES): Add build-id.c.
425 (HFILES_NO_SRCDIR): Add build-id.h.
426 * build-id.c: New file, largely from elfread.c. Modified
427 most functions.
428 * build-id.h: New file.
429 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
430 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
431 Search for dwz file using build-id.
432 * elfread.c (build_id_bfd_get, build_id_verify)
433 (build_id_to_debug_filename, find_separate_debug_file): Remove.
434
435 2013-10-08 Joel Brobecker <brobecker@adacore.com>
436
437 * ada-lang.c (compare_names_with_case): Renamed from
438 compare_names, adding a new parameter "casing" and its handling.
439 New function documentation.
440 (compare_names): New function, implemented using
441 compare_names_with_case.
442
443 2013-10-08 Joel Brobecker <brobecker@adacore.com>
444
445 * ada-lang.c (ada_exception_sal): Remove advance declaration.
446
447 2013-10-07 Tom Tromey <tromey@redhat.com>
448
449 * objfiles.c (free_objfile_per_bfd_storage): Delete the
450 demangled_names_hash.
451 (free_objfile): Don't delete the demangled_names_hash.
452 * objfiles.h (struct objfile_per_bfd_storage)
453 <demangled_names_hash>: New field.
454 (struct objfile) <demangled_names_hash>: Move to
455 objfile_per_bfd_storage.
456 * symfile.c (reread_symbols): Don't delete the
457 demangled_names_hash.
458 * symtab.c (create_demangled_names_hash): Update.
459 (symbol_set_names): Update.
460
461 2013-10-07 Tom Tromey <tromey@redhat.com>
462
463 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
464 needs_relocations>: New fields.
465 (gdb_bfd_requires_relocations): New function.
466 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
467 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
468 the BFD needs relocations applied.
469
470 2013-10-07 Pedro Alves <palves@redhat.com>
471
472 PR breakpoints/11568
473 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
474 the thread list" instead of "gone".
475
476 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
477
478 * NEWS: Mention new convenience variable $_exitsignal.
479 * corelow.c (core_open): Reset exit convenience variables. Set
480 $_exitsignal to the uncaught signal which generated the corefile.
481 * infrun.c (handle_inferior_event): Reset exit convenience
482 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
483 (clear_exit_convenience_vars): New function.
484 * inferior.h (clear_exit_convenience_vars): New prototype.
485
486 2013-10-06 Yao Qi <yao@codesourcery.com>
487
488 * varobj.h: Add comments to enum varobj_languages.
489
490 2013-10-04 Doug Evans <dje@google.com>
491
492 Add support for DWP file format version 2.
493 * NEWS: Mention support for DWP file format version 2.
494 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
495 union of asection, containing_section. New fields virtual_offset
496 and is_virtual. Change type of readin filed from int to char.
497 (dwo_sections, dwo_file): Tweak comments.
498 (dwp_v2_section_ids): New enum.
499 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
500 str_offsets, types.
501 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
502 All uses updated.
503 (virtual_v2_dwo_sections): New struct.
504 (dwp_hash_table): New fields version, nr_columns. Change type of
505 section_pool field to a union.
506 (dwp_file): New field version.
507 (dwarf2_has_info): Check for virtual sections.
508 (get_containing_section): New function.
509 (get_section_bfd_owner, get_section_bfd_section): Call it.
510 (dwarf2_locate_sections): Update.
511 (dwarf2_section_empty_p): Update.
512 (dwarf2_read_section): Handle virtual sections.
513 (locate_dwz_sections): Update.
514 (create_dwp_hash_table): Document and handle V2 format.
515 (locate_v1_virtual_dwo_sections): Renamed from
516 locate_virtual_dwo_sections and update. All callers updated.
517 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
518 Delete arg htab. Rename arg section_index to unit_index.
519 All callers updated.
520 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
521 All uses updated.
522 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
523 (lookup_dwo_unit_in_dwp): Add V2 support.
524 (dwarf2_locate_dwo_sections): Update.
525 (dwarf2_locate_common_dwp_sections): Renamed from
526 dwarf2_locate_dwp_sections and update. All callers updated.
527 (dwarf2_locate_v2_dwp_sections): New function.
528 (open_and_init_dwp_file): Add V2 support.
529 (read_str_index): New locals str_section, str_offsets_section.
530
531 2013-10-04 Pedro Alves <palves@redhat.com>
532
533 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
534 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
535 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
536 describing comments with references to ptid.h.
537 * common/ptid.h: Remove intro description of constructors,
538 accessors and predicates.
539 (struct ptid): Reformat.
540 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
541 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
542 describing comments.
543
544 2013-10-04 Joel Brobecker <brobecker@adacore.com>
545
546 * aix-thread.c (sync_threadlists): Add missing ')' in call
547 to ptid_build.
548
549 2013-10-04 Joel Brobecker <brobecker@adacore.com>
550
551 * procfs.c (procfs_init_inferior): Fix typo causing the build
552 to fail.
553
554 2013-10-04 Joel Brobecker <brobecker@adacore.com>
555
556 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
557
558 2013-10-04 Joel Brobecker <brobecker@adacore.com>
559
560 * mi/mi-main.c (run_one_inferior): Add function description.
561 Make ARG a pointer to an integer whose value determines whether
562 we should "run" or "start" the program.
563 (mi_cmd_exec_run): Add handling of the "--start" option.
564 Reject all other command-line options.
565 * NEWS: Add entry for "-exec-run"'s new "--start" option.
566
567 2013-10-04 Yao Qi <yao@codesourcery.com>
568
569 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
570 (struct notif_client) <pending_event>: Moved
571 to struct remote_notif_state.
572 <id>: New field.
573 (struct remote_notif_state) <pending_event>: New field.
574 (notif_event_xfree): Declare.
575 * remote-notif.c (handle_notification): Adjust.
576 (notif_event_xfree): New function.
577 (do_notif_event_xfree): Call notif_event_xfree.
578 (remote_notif_state_xfree): Call notif_event_xfree to free
579 each element in field pending_event.
580 * remote.c (discard_pending_stop_replies): Remove declaration.
581 (discard_pending_stop_replies_in_queue): Declare.
582 (remote_close): Call discard_pending_stop_replies_in_queue
583 instead of discard_pending_stop_replies.
584 (remote_start_remote): Adjust.
585 (stop_reply_xfree): Call notif_event_xfree.
586 (notif_client_stop): Adjust initialization.
587 (remote_notif_remove_all): Rename it to ...
588 (remove_stop_reply_for_inferior): ... this. Update comments.
589 Don't check INF is NULL.
590 (discard_pending_stop_replies): Return early if notif_state is
591 NULL. Adjust. Don't check INF is NULL.
592 (remote_notif_get_pending_events): Adjust.
593 (discard_pending_stop_replies_in_queue): New function.
594 (remote_wait_ns): Likewise.
595
596 2013-10-04 Yao Qi <yao@codesourcery.com>
597
598 * remote-notif.c (DECLARE_QUEUE_P): Remove.
599 (notif_queue): Remove.
600 (remote_notif_process): Add one parameter 'notif_queue'.
601 Update comments. Callers update.
602 (remote_async_get_pending_events_token): Remove.
603 (remote_notif_register_async_event_handler): Remove.
604 (remote_notif_unregister_async_event_handler): Remove.
605 (handle_notification): Add parameter 'notif_queue'. Update
606 comments. Callers update.
607 (notif_xfree): Remove.
608 (remote_notif_state_allocate): New function.
609 (remote_notif_state_xfree): New function.
610 (_initialize_notif): Remove code to allocate queue.
611 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
612 (struct remote_notif_state): New.
613 (handle_notification): Update declaration.
614 (remote_notif_process): Likewise.
615 (remote_notif_register_async_event_handler): Remove.
616 (remote_notif_unregister_async_event_handler): Remove.
617 (remote_notif_state_allocate): Declare.
618 (remote_notif_state_xfree): Declare.
619 * remote.c (struct remote_state) <notif_state>: New field.
620 (remote_close): Don't call
621 remote_notif_unregister_async_event_handler. Call
622 remote_notif_state_xfree.
623 (remote_open_1): Don't call
624 remote_notif_register_async_event_handler. Call
625 remote_notif_state_allocate.
626
627 2013-10-04 Yao Qi <yao@codesourcery.com>
628
629 * varobj.c (create_child_with_value): Remove 'const' from the
630 type of parameter 'name'.
631 (varobj_add_child): Likewise.
632 (install_dynamic_child): Remove 'const' from the type of
633 parameter 'name'.
634 (varobj_add_child): Likewise.
635 (create_child_with_value): Likewise. Update comments. Don't
636 duplicate 'name'.
637 (update_dynamic_varobj_children): Duplicate 'name'
638 and pass it to install_dynamic_child.
639
640 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
641
642 * python/py-value.c (convert_value_from_python): Move PyInt_Check
643 conversion logic to occur after PyLong_Check. Comment on order
644 change significance.
645 * python/py-arch.c (archpy_disassemble): Comment on order of
646 conversion for integers and longs.
647
648 2013-10-03 Pedro Alves <palves@redhat.com>
649
650 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
651 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
652 functions. Always test for PTRACE_O_TRACESYSGOOD even if
653 PTRACE_O_TRACEFORK is not supported.
654 (linux_test_for_tracesysgood): New function.
655 (linux_test_for_tracefork): New function, factored out from
656 linux_check_ptrace_features, and also don't kill child_pid here.
657
658 2013-10-03 Tristan Gingold <gingold@adacore.com>
659
660 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
661 Remove verbose error reporting. Use detected state to
662 thread_set_state call.
663 (i386_darwin_dr_get): Fix return type. Remove verbose error
664 report.
665 Remove trailing spaces.
666
667 2013-10-02 Pedro Alves <palves@redhat.com>
668
669 * cp-valprint.c (cp_print_value_fields): Adjust calls to
670 val_print_optimized_out.
671 * jv-valprint.c (java_print_value_fields): Likewise.
672 * p-valprint.c (pascal_object_print_value_fields): Likewise.
673 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
674 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
675 new optimized out value.
676 * findvar.c (address_from_register): Likewise.
677 * frame.c (put_frame_register): Tweak error string to say the
678 register was not saved, rather than optimized out.
679 * infcmd.c (default_print_one_register_info): Adjust call to
680 val_print_optimized_out. Use value_of_register instead of
681 get_frame_register_value.
682 * mi/mi-main.c (output_register): Use value_of_register instead of
683 get_frame_register_value.
684 * valprint.c (valprint_check_validity): Likewise.
685 (val_print_optimized_out): New value parameter. If the value is
686 lval_register, print <not saved> instead.
687 (value_check_printable, val_print_scalar_formatted): Adjust calls
688 to val_print_optimized_out.
689 * valprint.h (val_print_optimized_out): New value parameter.
690 * value.c (struct value) <optimized_out>: Extend comment.
691 (error_value_optimized_out): New function.
692 (require_not_optimized_out): Use it. Use a different string for
693 lval_register values.
694 * value.h (error_value_optimized_out): New declaration.
695 * NEWS: Mention <not saved>.
696
697 2013-10-02 Joel Brobecker <brobecker@adacore.com>
698
699 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
700 strcmp to compare two symtab filenames.
701
702 2013-10-02 Joel Brobecker <brobecker@adacore.com>
703
704 * symtab.c (search_symbols_equal): Delete.
705 (sort_search_symbols_remove_dups): Replace call to
706 search_symbols_equal by call to compare_search_syms,
707 adjusting as necessary.
708
709 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
710
711 PR python/15579
712
713 * python/python.c: Document gdb.execute command in Python help.
714
715 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
716
717 * python/py-frame.c (frame_info_to_frame_object): Use
718 gdbpy_convert_exception. Clean up Python object on failure.
719
720 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
721
722 * python/lib/gdb/command/frame_filters.py
723 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
724 (ShowFrameFilterPriority.invoke): Ditto.
725
726 2013-10-01 Keith Seitz <keiths@redhat.com>
727
728 * linespec.c (struct ls_parser): Make 'saved_arg' const.
729 (parse_linespec): Make 'argptr' const.
730 Remove temporary cast of 'argptr' to const char **.
731 (decode_line_full): Pass const pointer to parse_linespec.
732 (decode_line_1): Likewise.
733 (decode_objc): Make local variable 'new_argptr' const.
734 (find_function_symbols): Remove temporary cast to char *
735 to find_imps.
736 * objc-lang.c (find_imps): Make argument 'method' const.
737 Return const.
738 * objc-lang.h (find_imps): Likewise.
739
740 2013-10-01 Keith Seitz <keiths@redhat.com>
741
742 * completer.c (skip_quoted_chars): Make all arguments const.
743 Return const.
744 (skip_quoted): Likewise.
745 * completer.h (skip_quoted_chars): Likewise.
746 (skip_quoted): Likewise.
747 * defs.h (skip_quoted): Remove duplicate declaration.
748 * jv-exp.y: Include completer.h.
749 (yylex): Remove unneccessary cast to char * fro skip_quoted.
750 * p-exp.y: Include completer.h.
751
752 2013-10-01 Keith Seitz <keiths@redhat.com>
753
754 * c-exp.y (parse_number): Make first argument const.
755 Make a copy of the input to manipulate.
756 (c_parse_escape): Make first argument const.
757 Make local variable 'tokptr' const.
758 (parse_string_or_char): Make first two arguments const.
759 (macro_original_text): Make const.
760 (lex_one_token): Make local variable 'tokstart' const.
761 Likewise for local variables named 'p'.
762 Cast away const for struct stoken (temporary).
763 * c-lang.h (c_parse_escpae): Make first argument const.
764 * cli/cli-cmds.c (echo_command): Make local variable 'p'
765 const.
766 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
767 var_string case.
768 * f-exp.y (parse_number): Make first argument const.
769 (match_string_literal): Make local variable 'tokstart'
770 const.
771 (yylex): Make local variable 'p' const.
772 Cast away const for struct stoken (temporary).
773 * go-exp.y (parse_number): Make first argument const.
774 (parse_string_or_char): Likewise.
775 Make local variable 'tokstart' const.
776 (lex_one_token): Likewise for numerous locals called 'p'.
777 Cast away const for struct stoken (temporary).
778 * jv-exp.y (parse_number): Make first argument const.
779 Make local variables 'tokstart' and 'tokptr' const.
780 Cast away const for call to skip_quoted (temporary).
781 (yylex): Make local variable 'p' const.
782 Cast away const for struct stoken (temporary).
783 * m2-exp.y (parse_number): Make local variable 'p' const.
784 (yylex): Likewise for 'tokstart'.
785 Cast away const for struct stoken (temporary).
786 Make local variable 'p' const.
787 * macroexp.c (get_character_constant): Pass a const string
788 to c_parse_escape.
789 (get_string_literal): Likewise.
790 (macro_expand_next): Make first argument const.
791 Cast away const for init_shared_buffer.
792 * macroexp.h (macro_expand_next): Make first argument const.
793 * p-exp.y (yylex): Make a local copy of 'lexptr'.
794 Pass a const string to c_parse_escape.
795 Make local variables 'p' and 'namestart' const.
796 * parse.c (lexptr): Make const.
797 (prev_lexptr): Likewise.
798 (find_template_name_end): Return const.
799 Make argument const, too.
800 (parse_exp_in_context): Make first argument const.
801 Remove the entire const_hack.
802 (parse_exp_in_context_1): Make first argument const.
803 * parser-defs.h (find_template_name_end): Return const.
804 Make argument const, too.
805 (lexptr): Make const.
806 (prev_lexptr): Likewise.
807 * utils.c (parse_escape): Make second argument const.
808 * utils.h (parse_escape): Likewise.
809
810 2013-10-01 Keith Seitz <keiths@redhat.com>
811
812 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
813 is now const.
814 (block_lookup): Make 'raw_name' and 'name' const.
815 * ada-lex.l (processString): Update for struct stoken.ptr.
816 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
817 (operator_stoken): Likewise.
818 (lex_one_token): Remove temporary cast to char * for
819 'yylval.sval.ptr'.
820 * f-exp.y (yylex): Likewise.
821 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
822 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
823 * go-exp.y (lex_one_token): Remove temporary cast to char * for
824 'yylval.sval.ptr'.
825 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
826 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
827 * linespec.c (struct ls_parser): Make 'stream' const.
828 (find_parameter_list_end): Make argument 'input' and local
829 variable 'p' const.
830 (linespec_lexer_lex_string): Make local variables 'start' and
831 'p' const.
832 Use skip_spaces_const instead of skip_spaces.
833 (linespec_lexer_peek_token): Make local variable 'saved_stream'
834 const.
835 (parse_linespec): Temporarily cast 'argptr' to const for
836 'parser->lexer.stream'.
837 * m2-exp.y (yylex): Remove temporary cast to char * for
838 'yylval.sval.ptr'.
839 * objc-lang.c (add_msglist): Make local variable 'p' const.
840 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
841 (exp : STRING): Make 'sp' const.
842 (parse_number): Make argument 'p' const.
843 * parser-defs.h (struct stoken): Make 'ptr' const.
844
845 2013-10-01 Doug Evans <dje@google.com>
846
847 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
848
849 2013-10-01 Yao Qi <yao@codesourcery.com>
850
851 * varobj.c (c_value_of_root): Remove declaration.
852 (cplus_value_of_root, java_value_of_root): Likewise.
853 (ada_value_of_root): Likewise.
854 (struct language_specific) <value_of_root>: Remove.
855 (languages): Update initialization.
856 (check_scope): Move earlier.
857 (c_value_of_root): Move earlier and rename to ...
858 (value_of_root_1): ... this.
859 (value_of_root): Caller update.
860 (cplus_value_of_root, java_value_of_root): Remove.
861 (ada_value_of_root): Remove.
862
863 2013-10-01 Yao Qi <yao@codesourcery.com>
864
865 * varobj.c (varobj_format_string): Remove "unknown".
866 (languages): Remove the first element.
867 * varobj.h (enum varobj_languages): Remove vlang_c.
868
869 2013-10-01 Yao Qi <yao@codesourcery.com>
870
871 * varobj.c (struct language_specific) <language>: Remove.
872 (languages): Update the initialization.
873
874 2013-10-01 Yao Qi <yao@codesourcery.com>
875
876 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
877 "solib-target.h". Include "windows-tdep.h".
878 (arm_wince_init_abi): Call windows_init_abi. Remove call to
879 set_solib_ops and set_gdbarch_has_dos_based_file_system.
880 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
881 windows-tdep.o to gdb_target_obs.
882
883 2013-10-01 Yao Qi <yao@codesourcery.com>
884
885 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
886 "solib-target.h".
887 (amd64_windows_init_abi): Don't call set_solib_ops and
888 set_gdbarch_iterate_over_objfiles_in_search_order. Call
889 windows_init_abi instead.
890 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
891 "solib-target.h".
892 (i386_cygwin_init_abi): Don't call set_solib_ops,
893 set_gdbarch_has_dos_based_file_system and
894 set_gdbarch_iterate_over_objfiles_in_search_order. Call
895 windows_init_abi instead.
896 * windows-tdep.c: Include "solib.h" and "solib-target.h".
897 (windows_init_abi): New function.
898 (windows_iterate_over_objfiles_in_search_order): Make it
899 static.
900 * windows-tdep.h (windows_init_abi): Declare.
901 (windows_iterate_over_objfiles_in_search_order): Remove
902 declaration.
903
904 2013-10-01 Jerome Guitton <guitton@adacore.com>
905
906 Checked in by Joel Brobecker <brobecker@adacore.com>
907 * system-gdbinit/elinos.py (get_elinos_environment): Return an
908 incomplete dictionnary instead of None in case of missing
909 environment variables.
910 (elinos_init): in case of an incomplete environment, best
911 effort to load system libraries instead of abort.
912
913 2013-10-01 Joel Brobecker <brobecker@adacore.com>
914
915 * ada-lang.c (ada_has_this_exception_support): Ignore
916 mst_solib_trampoline minimal symbols.
917
918 2013-09-30 Tristan Gingold <gingold@adacore.com>
919
920 * i386-darwin-nat.c (darwin_complete_target): Install methods for
921 hardware watchpoint.
922 (i386_darwin_dr_set): Support 32 and 64 bit states.
923 (i386_darwin_dr_get): Likewise.
924 (i386_darwin_dr_set_control): Make static.
925 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
926 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
927
928 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
929
930 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
931 Replace TIDGET with ptid_get_lwp.
932 Replace GET_LWP with ptid_get_lwp.
933 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
934 Replace BUILD_THREAD with ptid_build.
935 Replace BUILD_LWP with ptid_build.
936 Replace PIDGET with ptid_get_pid.
937 Replace TIDGET with ptid_get_lwp.
938 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
939 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
940 Replace TIDGET with ptid_get_lwp.
941 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
942 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
943 Replace TIDGET with ptid_get_lwp.
944 Replace GET_LWP with ptid_get_lwp.
945 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
946 * auxv.c: Likewise.
947 * breakpoint.c: Likewise.
948 * common/ptid.c (ptid_is_pid): Condense check for
949 null_ptid and minus_one_ptid.
950 (ptid_lwp_p): New function.
951 (ptid_tid_p): New function.
952 * common/ptid.h: Update comments for accessors.
953 (ptid_lwp_p): New prototype.
954 (ptid_tid_p): New prototype.
955 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
956 * gcore.c: Replace PIDGET with ptid_get_pid.
957 * gdbthread.h: Likewise.
958 * gnu-nat.c: Likewise.
959 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
960 Replace TIDGET with ptid_get_lwp.
961 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
962 * hppanbsd-nat.c: Likewise.
963 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
964 Replace TIDGET with ptid_get_lwp.
965 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
966 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
967 * infcmd.c: Likewise.
968 * inferior.h: Likewise.
969 * inflow.c: Likewise.
970 * infrun.c: Likewise.
971 * linux-fork.c: Likewise.
972 * linux-nat.c: Replace PIDGET with ptid_get_pid.
973 Replace GET_PID with ptid_get_pid.
974 Replace is_lwp with ptid_lwp_p.
975 Replace GET_LWP with ptid_get_lwp.
976 Replace BUILD_LWP with ptid_build.
977
978 2013-09-28 Mike Frysinger <vapier@gentoo.org>
979
980 * common/linux-btrace.c: Move sys/syscall.h out of the
981 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
982 Also check for SYS_perf_event_open before attempting to buid.
983
984 2013-09-27 Doug Evans <dje@google.com>
985
986 * dwarf2read.c (dwarf2_section_info): Add comment.
987 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
988 All uses updated.
989 (dwarf2_section_empty_p): Rename arg from "info" to "section".
990 (dwarf2_read_section): Delete unused local "header". Add section
991 name to error message.
992 (create_dwo_in_dwp): Tweak comment.
993 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
994
995 * dwarf2read.c (die_reader_specs): Tweak comment.
996 (get_section_bfd_owner, get_section_bfd_section): New functions.
997 (get_section_name, get_section_file_name): New functions.
998 (get_section_id, get_section_flags): New functions.
999 (*): Use new functions to access section fields.
1000
1001 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1002 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1003 arg "htab". All callers updated.
1004 (create_debug_types_hash_table): Remove redundant copy of
1005 abbrev_section.
1006 (create_dwo_in_dwp): Tweak comments.
1007 (read_str_index): Tweak comment. Record dwarf form name in static
1008 local.
1009
1010 2013-09-27 Pedro Alves <palves@redhat.com>
1011
1012 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1013 (remote_filename_p): Add comment.
1014 * remote.c (remote_filename_p): Adjust to use
1015 REMOTE_SYSROOT_PREFIX.
1016 * solib.c (solib_find): When deciding whether we need to add a
1017 directory separator, check whether the sysroot is "remote:"
1018 instead of checking whether the patch has a drive spec. Add
1019 comments.
1020
1021 2013-09-27 Pedro Alves <palves@redhat.com>
1022
1023 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1024 Delete fields.
1025 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1026 directly.
1027
1028 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1029
1030 Fix set debug frame output.
1031 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1032 SENTINEL_FRAME entry lower to match enum frame_type order.
1033
1034 2013-09-26 Pierre Muller <muller@sourceware.org>
1035
1036 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1037 AMD64_R15_REGNUM when a register index is expected.
1038 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1039 Substitute in array.
1040 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1041 (amd64_push_arguments): Substitute in integer_regnum array.
1042
1043 2013-09-25 Doug Evans <dje@google.com>
1044
1045 * objfiles.c (allocate_objfile): Move comment to better place.
1046
1047 New option "set debug symfile on".
1048 * NEWS: Mention "set debug symfile".
1049 * Makefile.in (SFILES): Add symfile-debug.c.
1050 (COMMON_OBS): Add symfile-debug.o.
1051 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1052 objfile's symbol functions.
1053 * objfiles.h (objfile_set_sym_fns): Declare.
1054 * symfile-debug.c: New file.
1055 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1056 objfile's symbol functions.
1057 (reread_symbols): Ditto.
1058
1059 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1060 All uses updated.
1061 (add_symtab_fns): Update prototype.
1062 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1063 (registered_sym_fns): ... this.
1064 (symtab_fns): Update.
1065 (add_symtab_fns): New arg "flavour". All callers updated.
1066 (find_sym_fns): Rewrite to use new sym_fns registry.
1067
1068 * symfile.h (struct sym_fns): Add "objfile" argument to
1069 sym_read_linetable. All uses updated.
1070
1071 * symtab.c (domain_name, search_domain_name): New functions.
1072 * symtab.h (domain_name, search_domain_name): Declare.
1073
1074 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1075 map_matching_symbols so objfile is first. All uses updated.
1076 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1077 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1078
1079 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1080
1081 PR shlibs/8882
1082 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1083 link map entries.
1084
1085 2013-09-24 Doug Evans <dje@google.com>
1086
1087 * objfiles.c (free_objfile): Move comment.
1088
1089 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1090
1091 * ada-exp.y (string_to_operator): Delete.
1092 (dummy_string_to_ada_operator): Delete.
1093
1094 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1095
1096 Revert:
1097 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1098 amd64-tdep.c.
1099 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1100 call_dummy_integer_regs, and classify.
1101 * amd64-tdep.h (amd64_classify): Add declaration.
1102 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1103 (amd64_reg_class): Delete, moved to i386-tdep.h.
1104 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1105 Replace call to amd64_classify by call to tdep->classify.
1106 (amd64_push_arguments): Get the list of registers to use for
1107 passing integer parameters from the gdbarch tdep structure,
1108 rather than using a hardcoded one. Replace calls to amd64_classify
1109 by calls to tdep->classify.
1110 (amd64_push_dummy_call): Get the register number used for
1111 the "hidden" argument from tdep->call_dummy_integer_regs.
1112 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1113 and tdep->call_dummy_integer_regs. Set tdep->classify.
1114
1115 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1116
1117 Revert:
1118 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1119 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1120 where tdep->memory_args_by_pointer is non-zero.
1121
1122 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1123
1124 Revert:
1125 * i386-tdep.h (struct gdbarch_tdep): Add new field
1126 integer_param_regs_saved_in_caller_frame.
1127 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1128 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1129
1130 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1131
1132 * amd64-windows-tdep.c: #include "value.h"
1133 (amd64_windows_classify): Delete.
1134 (amd64_windows_passed_by_integer_register)
1135 (amd64_windows_passed_by_xmm_register)
1136 (amd64_windows_passed_by_pointer)
1137 (amd64_windows_adjust_args_passed_by_pointer)
1138 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1139 (amd64_windows_push_dummy_call): New functions.
1140 (amd64_windows_init_abi): Remove setting of
1141 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1142 tdep->classify, tdep->memory_args_by_pointer and
1143 tdep->integer_param_regs_saved_in_caller_frame.
1144 Add call to set_gdbarch_push_dummy_call.
1145
1146 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1147
1148 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1149 objfile->original_name.
1150
1151 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1152
1153 Pass down original filename for objfile.
1154 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1155 * elfread.c (elf_symfile_read): Likewise.
1156 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1157 longer set ORIGINAL_NAME.
1158 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1159 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1160 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1161 symbol_file_add_from_bfd call.
1162 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1163 (macho_check_dsym): Add parameter filenamep. Change function comment.
1164 Set *filenamep.
1165 (macho_symfile_read): New variable dsym_filename. Update
1166 macho_check_dsym call. Use it for symbol_file_add_separate.
1167 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1168 it. Use it for objfile->original_name.
1169 (objfile_name): Return OBFD's filename, if available.
1170 * objfiles.h (allocate_objfile): Add new parameter name.
1171 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1172 * symfile-mem.c (symbol_file_add_from_memory): Update
1173 symbol_file_add_from_bfd call.
1174 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1175 comment for it.
1176 (symbol_file_add_with_addrs): New parameter name, add function comment
1177 for it. Remove variable name. Update allocate_objfile call.
1178 (symbol_file_add_separate): New parameter name, add function comment
1179 for it. Update symbol_file_add_with_addrs call.
1180 (symbol_file_add_from_bfd): New parameter name. Update
1181 symbol_file_add_with_addrs call.
1182 (symbol_file_add): Update symbol_file_add_from_bfd call.
1183 (reread_symbols): New variable original_name. Save
1184 objfile->original_name by it.
1185 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1186 second parameter.
1187
1188 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1189
1190 Code cleanup: Add objfile_name accessor function.
1191 * ada-lang.c (is_known_support_routine): Use objfile_name.
1192 * auto-load.c (source_gdb_script_for_objfile)
1193 (auto_load_objfile_script): Likewise.
1194 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1195 * dbxread.c (dbx_symfile_read): Likewise.
1196 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1197 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1198 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1199 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1200 (lookup_dwp_signatured_type, lookup_dwo_unit)
1201 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1202 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1203 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1204 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1205 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1206 (read_subrange_type, load_partial_dies, read_partial_die)
1207 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1208 (die_containing_type, build_error_marker_type, lookup_die_type)
1209 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1210 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1211 (get_DW_AT_signature_type, write_psymtabs_to_index)
1212 (save_gdb_index_command): Likewise.
1213 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1214 Likewise.
1215 * expprint.c (dump_subexp_body_standard): Likewise.
1216 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1217 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1218 original_name.
1219 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1220 obj_name, use objfile_name for it, use the variable.
1221 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1222 Use objfile_name.
1223 * machoread.c (macho_symtab_read, macho_check_dsym)
1224 (macho_symfile_relocate): Likewise.
1225 * maint.c (maintenance_translate_address): Likewise.
1226 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1227 * minsyms.c (install_minimal_symbols): Likewise.
1228 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1229 original_name.
1230 (filter_overlapping_sections): Use objfile_name.
1231 (objfile_name): New function.
1232 * objfiles.h (struct objfile): Rename field name to original_name.
1233 (objfile_name): New prototype.
1234 * printcmd.c (sym_info, address_info): Use objfile_name.
1235 * probe.c (parse_probes, collect_probes, compare_probes)
1236 (info_probes_for_ops): Likewise.
1237 * progspace.c (clone_program_space): Likewise.
1238 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1239 (maintenance_info_psymtabs): Likewise.
1240 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1241 (source_section_scripts): Likewise.
1242 * python/py-objfile.c (objfpy_get_filename): Likewise.
1243 * python/py-progspace.c (pspy_get_filename): Likewise.
1244 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1245 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1246 * solib.c (solib_read_symbols): Likewise.
1247 * stabsread.c (scan_file_globals): Likewise.
1248 * stap-probe.c (handle_stap_probe): Likewise.
1249 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1250 (find_separate_debug_file_by_debuglink): Likewise.
1251 (reread_symbols): Likewise. Use the objfile field name renamed to
1252 original_name.
1253 (allocate_symtab): Use objfile_name.
1254 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1255 (dump_objfile, dump_msymbols, dump_symtab_1)
1256 (maintenance_print_msymbols, maintenance_print_objfiles)
1257 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1258 * target.c (target_translate_tls_address, target_info): Likewise.
1259 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1260 objfile_name.
1261
1262 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1263
1264 Code cleanup.
1265 * probe.c (parse_probes): Rename variable objfile_name to
1266 objfile_namestr.
1267
1268 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1269
1270 Remove solib-sunos.c.
1271 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1272 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1273 * objfiles.c (rt_common_objfile): Remove.
1274 (free_objfile): Remove rt_common_objfile comparison.
1275 * objfiles.h (rt_common_objfile): Remove.
1276 * solib-sunos.c: Remove.
1277 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1278
1279 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1280
1281 Remove a.out NetBSD and OpenBSD hosts.
1282 * NEWS (Removed native configurations): New.
1283 * config/arm/nbsdaout.mh: Remove.
1284 * config/i386/nbsdaout.mh: Remove.
1285 * config/i386/obsdaout.mh: Remove.
1286 * config/m68k/nbsdaout.mh: Remove.
1287 * config/sparc/nbsdaout.mh: Remove.
1288 * config/vax/nbsdaout.mh: Remove.
1289 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1290 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1291 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1292 error.
1293 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1294 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1295 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1296
1297 2013-09-23 Tom Tromey <tromey@redhat.com>
1298
1299 * linespec.c (struct minsym_and_objfile): Remove.
1300 (minsym_and_objfile_d): Remove.
1301 (struct linespec, struct collect_info, linespec_parse_basic)
1302 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1303 (compare_msymbols, find_method, find_function_symbols)
1304 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1305 (add_minsym, search_minsyms_for_name): Update.
1306
1307 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1308
1309 * regcache.c: Add include of valprint.h.
1310 (dump_endian_bytes): Delete.
1311 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1312
1313 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1314
1315 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1316
1317 2013-09-19 Pedro Alves <palves@redhat.com>
1318
1319 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1320 breakpoints.
1321
1322 2013-09-19 Pedro Alves <palves@redhat.com>
1323 Thomas Schwinge <thomas@codesourcery.com>
1324 Yue Lu <hacklu.newborn@gmail.com>
1325
1326 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1327 Take a gdb_byte pointer instead of a char pointer.
1328
1329 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1330 gnu_xfer_partial helper.
1331 (gnu_xfer_partial): New function.
1332 (gnu_target): Don't install a deprecated_xfer_memory hook.
1333 Install a to_xfer_partial hook.
1334
1335 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1336
1337 Constification.
1338 * main.c (captured_main): Replace catch_command_errors by
1339 catch_command_errors_const. Twice.
1340 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1341 (symbol_file_add): Make name parameter const.
1342 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1343 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1344 variable name. Change their usage accordingly.
1345 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1346 const.
1347 (symbol_file_add_main): Make args parameter const.
1348
1349 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1350 Ulrich Weigand <uweigand@de.ibm.com>
1351
1352 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1353 of c_value member.
1354 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1355
1356 2013-09-18 Pedro Alves <palves@redhat.com>
1357 Yue Lu <hacklu.newborn@gmail.com>
1358
1359 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1360 (gnu_create_inferior)
1361 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1362 (set_sig_thread_cmd): Use the lwpid field of ptids to
1363 store/extract thread ids instead of the tid field.
1364 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1365
1366 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1367
1368 * infcmd.c (default_print_one_register_info): Add detection of
1369 optimized out values.
1370 (default_print_registers_info): Switch to using
1371 get_frame_register_value.
1372
1373 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1374
1375 * infrun.c (handle_inferior_event): Check if we know the
1376 function start address before setting a resume breakpoint.
1377
1378 2013-09-18 Pedro Alves <palves@redhat.com>
1379
1380 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1381 minus_one_ptid instead of looking at the ptid's tid field and
1382 comparing that to -1.
1383
1384 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1385
1386 * main.h (get_gdb_program_name): Remove extra whitespace.
1387
1388 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1389
1390 * main.h (get_gdb_program_name): Add declaration.
1391 * main.c (get_gdb_program_name): Add definition.
1392
1393 2013-09-17 Doug Evans <dje@google.com>
1394
1395 * dwarf2read.c: Move definitions of complaint functions to after
1396 forward declarations of local functions.
1397
1398 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1399 Pedro Alves <palves@redhat.com>
1400
1401 PR gdb/11568
1402 * breakpoint.c (remove_threaded_breakpoints): New function.
1403 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1404 as thread_exit observer.
1405
1406 2013-09-17 Pedro Alves <palves@redhat.com>
1407
1408 PR gdb/15911
1409 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1410 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1411 * corelow.c (core_open):
1412 * frame.h (print_stack_frame, print_frame_info): New
1413 'set_current_sal' parameter.
1414 * infcmd.c (finish_command, kill_command): Adjust call to
1415 print_stack_frame.
1416 * inferior.c (inferior_command): Likewise.
1417 * infrun.c (normal_stop): Likewise.
1418 * linux-fork.c (linux_fork_context): Likewise.
1419 * record-full.c (record_full_goto_entry, record_full_restore):
1420 Likewise.
1421 * remote-mips.c (common_open): Likewise.
1422 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1423 Use it.
1424 (print_frame_info): New 'set_current_sal' parameter. Set the last
1425 displayed sal depending on the new paremeter instead of looking at
1426 print_what.
1427 (backtrace_command_1, select_and_print_frame, frame_command)
1428 (current_frame_command, up_command, down_command): Adjust call to
1429 print_stack_frame.
1430 * thread.c (print_thread_info, restore_selected_frame)
1431 (do_captured_thread_select): Adjust call to print_stack_frame.
1432 * tracepoint.c (tfind_1): Likewise.
1433 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1434 (mi_cmd_stack_info_frame): Likewise.
1435 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1436 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1437
1438 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1439
1440 * value.c (isvoid_internal_fn): Replace "parameter" with
1441 "argument".
1442
1443 2013-09-16 Stan Shebs <stan@codesourcery.com>
1444
1445 * README: Update references to writing code for GDB.
1446 * configure.ac (build_warnings): Remove obsolete comment.
1447 * configure: Regenerate.
1448 * gdbarch.sh: Remove references to gdbint.texinfo.
1449 * gdbarch.h: Regenerate.
1450 * gdbtypes.c (objfile_type): Remove comments referencing internals
1451 manual and D10V.
1452
1453 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1454
1455 * NEWS: Mention new convenience function $_isvoid.
1456 * value.c (isvoid_internal_fn): New function.
1457 (_initialize_values): Add new convenience function $_isvoid.
1458
1459 2013-09-16 Pierre Muller <muller@sourceware.org>
1460
1461 * arm-linux-tdep.c: Add "elf/common.h" header.
1462 Remove AT_HWCAP macro definintion as it is provided in
1463 added include file.
1464 * s390-tdep.c: Remove system header <elf.h>
1465 Add "elf/common.h" header for AT_HWCAP definition.
1466 (s390_core_read_description): Use correct CORE_ADDR
1467 for hwcap local variable used as third parameter
1468 of function target_auxv_search.
1469
1470 2013-09-14 Pierre Muller <muller@sourceware.org>
1471 Tom Tromey <tromey@redhat.com>
1472 Pedro Alves <palves@redhat.com>
1473
1474 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1475 mode if operating system doesn't know O_CLOEXEC.
1476
1477 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1478
1479 Code cleanup.
1480 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1481 inner block.
1482
1483 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1484
1485 * NEWS: Mention TDB support.
1486 * features/s390-tdb.xml: New file.
1487 * features/s390-te-linux64.xml: New file.
1488 * features/s390x-te-linux64.xml: New file.
1489 * features/Makefile (WHICH): Add new tdescs above.
1490 (s390-te-linux64-expedite): Set.
1491 (s390x-te-linux64-expedite): Set.
1492 * features/s390-te-linux64.c: New file (generated).
1493 * features/s390x-te-linux64.c: New file (generated).
1494 * regformats/s390-te-linux64.dat: New file (generated).
1495 * regformats/s390x-te-linux64.dat: New file (generated).
1496 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1497 (HWCAP_S390_TE): Likewise.
1498 (S390_TDB_DWORD0_REGNUM): Likewise.
1499 (S390_TDB_DWORD0_REGNUM): Likewise.
1500 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1501 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1502 (S390_TDB_ATIA_REGNUM): Likewise.
1503 (S390_TDB_R0_REGNUM): Likewise.
1504 (S390_TDB_R1_REGNUM): Likewise.
1505 (S390_TDB_R2_REGNUM): Likewise.
1506 (S390_TDB_R3_REGNUM): Likewise.
1507 (S390_TDB_R4_REGNUM): Likewise.
1508 (S390_TDB_R5_REGNUM): Likewise.
1509 (S390_TDB_R6_REGNUM): Likewise.
1510 (S390_TDB_R7_REGNUM): Likewise.
1511 (S390_TDB_R8_REGNUM): Likewise.
1512 (S390_TDB_R9_REGNUM): Likewise.
1513 (S390_TDB_R10_REGNUM): Likewise.
1514 (S390_TDB_R11_REGNUM): Likewise.
1515 (S390_TDB_R12_REGNUM): Likewise.
1516 (S390_TDB_R13_REGNUM): Likewise.
1517 (S390_TDB_R14_REGNUM): Likewise.
1518 (S390_TDB_R15_REGNUM): Likewise.
1519 (S390_NUM_REGS): Increase.
1520 (S390_IS_TDBREGSET_REGNUM): New macro.
1521 (s390_regmap_tdb): Declare.
1522 (s390_sizeof_tdbregset): Define.
1523 (tdesc_s390_te_linux64): Declare.
1524 (tdesc_s390x_te_linux64): Likewise.
1525 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1526 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1527 (s390_regmap_tdb): New regmap.
1528 (s390_supply_tdb_regset): New function.
1529 (s390_tdb_regset): New regset.
1530 (s390_linux64v2_regset_sections): Add TDB regset to list.
1531 (s390x_linux64v2_regset_sections): Likewise.
1532 (s390_regset_from_core_section): Recognize TDB core note section.
1533 (s390_core_read_description): If HWCAP indicates TE support,
1534 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1535 (s390_gdbarch_init): Handle TDB regset.
1536 (_initialize_s390_tdep): Initialize new tdescs.
1537 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1538 (have_regset_tdb): New variable.
1539 (s390_native_supply): Support register invalidation.
1540 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1541 (check_regset): Treat ENODATA as "regset exists".
1542 (s390_linux_fetch_inferior_registers): Add TDB.
1543 (s390_read_description): Check for TDB existence and select
1544 appropriate tdesc.
1545 * gdbserver/Makefile.in (clean): Add removal of new makefile
1546 targets.
1547 (s390-te-linux64.c): New makefile target.
1548 (s390x-te-linux64.c): Likewise.
1549 * gdbserver/configure.srv (srv_regobj): Append new objects
1550 s390-te-linux64.o and s390x-te-linux64.o.
1551 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1552 s390x-te-linux64.xml, and s390-tdb.xml.
1553 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1554 declaration.
1555 (tdesc_s390_te_linux64): Likewise.
1556 (init_registers_s390x_te_linux64): Likewise.
1557 (tdesc_s390x_te_linux64): Likewise.
1558 (s390_check_regset): Treat ENODATA as "regset exists".
1559 (s390_arch_setup): Add TDB regset support.
1560 (initialize_low_arch): Initialize registers for new tdescs.
1561
1562 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1563
1564 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1565 (S390_IS_FPREGSET_REGNUM): New macro.
1566 * s390-tdep.c (s390_dwarf_regmap): Make const.
1567 (regnum_is_gpr_full): New function for replacing repeated code.
1568 (s390_pseudo_register_name): Use it.
1569 (s390_pseudo_register_type): Likewise.
1570 (s390_pseudo_register_read): Likewise.
1571 (s390_pseudo_register_write): Likewise.
1572 (s390_unwind_pseudo_register): Likewise.
1573 (s390_regmap_gregset): New format for regmap.
1574 (s390x_regmap_gregset): Likewise.
1575 (s390_regmap_fpregset): Likewise.
1576 (s390_regmap_upper): Likewise.
1577 (s390_regmap_last_break): Likewise.
1578 (s390_regmap_system_call): Likewise.
1579 (s390_supply_regset): Adjust to new regmap format.
1580 (s390_collect_regset): Likewise.
1581 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1582 (s390_native_collect): Likewise.
1583 (supply_gregset): Likewise.
1584 (fill_gregset): Likewise.
1585 (supply_fpregset): Likewise.
1586 (fill_fpregset): Likewise.
1587 (fetch_regset): Likewise.
1588 (store_regset): Likewise.
1589 (s390_linux_fetch_inferior_registers): Likewise.
1590 (s390_linux_fetch_inferior_registers): Likewise.
1591
1592 2013-09-12 Andrew Pinski <apinski@cavium.com>
1593
1594 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1595
1596 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1597
1598 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1599
1600 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1601
1602 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1603
1604 2013-09-06 Pedro Alves <palves@redhat.com>
1605
1606 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1607 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1608 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1609 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1610 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1611 gdb_stdlog.
1612
1613 2013-09-06 Pedro Alves <palves@redhat.com>
1614
1615 * remote-sim.c (dump_mem): Constify buf parameter.
1616 gdbsim_xfer_inferior_memory): Rename to ...
1617 (gdbsim_xfer_memory): ... this. Adjust interface as
1618 target_xfer_partial helper.
1619 (gdbsim_xfer_partial): New function.
1620 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1621 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1622
1623 2013-09-06 Pedro Alves <palves@redhat.com>
1624
1625 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1626 host_address_to_string, and send debug output to gdb_stdlog.
1627
1628 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1629
1630 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1631 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1632 gdb_target_obs for cris target.
1633 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1634 (cris_gdbarch_init): Move calls to
1635 set_gdbarch_fetch_tls_load_module_address and
1636 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1637 Add call to gdbarch_init_osabi.
1638 * cris-linux-tdep.c: New file.
1639 * cris-tdep.h: New file.
1640
1641 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1642
1643 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1644 to deprecated_init_ui_hook.
1645
1646 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1647
1648 * cli/cli-interp.c (_initialize_cli_interp): Add a
1649 command_loop_proc to interp_procs.
1650 * event-top.c (cli_command_loop): Change signature to match
1651 interp_command_loop_ftype.
1652 * event-top.h (cli_command_loop): Same.
1653 * interps.c (interp_new): Require every interpreter to have a
1654 command_loop_proc.
1655 (current_interp_command_loop): Just call the command_loop_proc on
1656 the current interpreter.
1657 * tui/tui-interp.c (_initialize_tui_interp): Add a
1658 command_loop_proc to interp_procs.
1659
1660 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1661
1662 * cris-tdep.c (cris_gdbarch_init): Add call to
1663 get_gdbarch_fetch_tls_load_module_address.
1664
1665 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1666
1667 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1668 (cris_elf_gregset_t): Rename from elf_gregset_t.
1669 (crisv32_elf_gregset_t): Adjust.
1670 (cris_supply_gregset, fetch_core_registers): Adjust.
1671
1672 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1673
1674 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1675
1676 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1677
1678 * defs.h (deprecated_command_loop_hook): Remove, including
1679 references in comments.
1680 * interps.c (current_interp_command_loop): No longer use
1681 deprecated_command_loop_hook.
1682 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1683 setup.
1684 * top.c (deprecated_command_loop_hook): Remove.
1685
1686 2013-09-05 Pedro Alves <palves@redhat.com>
1687
1688 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1689 local is now int instead of ULONGEST. Print it with %d
1690 instead of paddress.
1691
1692 2013-09-05 Tristan Gingold <gingold@adacore.com>
1693
1694 * MAINTAINERS: Remove avr maintainership.
1695
1696 2013-09-05 Pedro Alves <palves@redhat.com>
1697
1698 * findvar.c (value_of_register): Rework in terms of
1699 value_of_register_lazy.
1700
1701 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1702
1703 * symfile.c (add_symbol_file_command): Remove trailing
1704 whitespaces and blank line after comment.
1705
1706 2013-09-05 Pedro Alves <palves@redhat.com>
1707
1708 * tui/tui-regs.c (tui_register_format): Don't look at the
1709 register's name here. Return string representing register
1710 value instead of storing it in the data element.
1711 (tui_get_register): Compare register string representations
1712 instead of register value states and contents.
1713
1714 2013-09-05 Pedro Alves <palves@redhat.com>
1715
1716 PR tui/15933
1717 * tui/tui-regs.c (tui_show_registers): Show registers of the
1718 selected frame, not the current frame.
1719
1720 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1721
1722 * MAINTAINERS (Write After Approval): Add myself to the list.
1723
1724 2013-09-04 Doug Evans <dje@google.com>
1725
1726 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1727 (queue_and_load_dwo_tu): New function.
1728 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1729 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1730 Make dependent_cu optional.
1731 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1732 and an older .gdb_index is in use, queue and load all its TUs too.
1733
1734 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1735
1736 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1737 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1738 variable search_flags.
1739 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1740 (OPF_RETURN_REALPATH): ... here.
1741 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1742 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1743 call. Twice.
1744 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1745 openp call.
1746 * solib.c (solib_find): Likewise. Four times.
1747 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1748 in the function comment and for the realpath_fptr variable.
1749 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1750 (find_and_open_source): Likewise. Twice.
1751 * symfile.c (symfile_bfd_open): Likewise, also twice.
1752
1753 2013-09-04 Doug Evans <dje@google.com>
1754
1755 * progspace.c (save_current_space_and_thread): Remove unnecessary
1756 call to save_current_inferior.
1757
1758 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1759
1760 * sh64-tdep.c (sh64_do_register): Return after printing message
1761 about unavailable register contents.
1762
1763 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1764 Pedro Alves <palves@redhat.com>
1765
1766 * symfile.c (add_symbol_file_command): Error out on unknown
1767 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1768 options and collapse into single conditional branch.
1769
1770 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1771
1772 * inf-child.c (inf_child_follow_fork): New parameter
1773 detach_fork.
1774 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1775 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1776 * inferior.h (detach_fork): Remove.
1777 * infrun.c (detach_fork): Adjust comment and make it
1778 static.
1779 (follow_fork): Pass detach_fork parameter to
1780 target_follow_fork.
1781 * linux-nat.c (linux_child_follow_fork): New parameter
1782 detach_fork.
1783 * target.c (target_follow_fork): New parameter detach_fork.
1784 Pass detach_fork as parameter and print its value.
1785 * target.h (struct target_ops) <to_follow_fork>: New int
1786 parameter.
1787 (target_follow_fork): New parameter detach_fork.
1788
1789 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1790
1791 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1792 Replace sec->bfd by sec->the_bfd_section->owner.
1793
1794 2013-09-03 Yao Qi <yao@codesourcery.com>
1795
1796 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1797 from linux_has_shared_address_space.
1798 (linux_has_shared_address_space): Call linux_is_uclinux.
1799 * linux-tdep.h (linux_is_uclinux): Declare.
1800 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1801 linux_is_uclinux.
1802
1803 2013-09-03 Yao Qi <yao@codesourcery.com>
1804
1805 * config/djgpp/fnchange.lst: Remove entry of
1806 i386-interix-nat.c and i386-interix-tdep.c.
1807 * configure.ac: Remove '*-*-interix*'.
1808 * configure: Re-generated.
1809 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1810 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1811 obsolete comments.
1812 * osabi.c (gdb_osabi_names): Remove "Interix".
1813
1814 2013-09-03 Yao Qi <yao@codesourcery.com>
1815
1816 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1817
1818 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1819
1820 * record.h (record_print_flag) <record_print_src_line,
1821 record_print_insn_range>: Rename into ...
1822 (record_print_flag) <record_print_src_line,
1823 record_print_insn_range>: ... this. Update all users.
1824
1825 2013-09-02 Pierre Muller <muller@sourceware.org>
1826
1827 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1828 error code.
1829
1830 2013-09-02 Pierre Muller <muller@sourceware.org>
1831
1832 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1833 by use of plongest function.
1834
1835 2013-09-02 Tristan Gingold <gingold@adacore.com>
1836
1837 * NEWS: Add entry mentioning support for native Windows x64
1838 SEH data.
1839
1840 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1841 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1842 (struct amd64_windows_frame_cache): New struct.
1843 (amd64_windows_w2gdb_regnum): New global.
1844 (pc_in_range, amd64_windows_frame_decode_epilogue)
1845 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1846 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1847 (amd64_windows_frame_this_id): New functions.
1848 (amd64_windows_frame_unwind): New static global.
1849 (amd64_windows_skip_prologue): New function.
1850 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1851 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1852 with amd64_windows_skip_prologue.
1853
1854 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1855
1856 GDB 7.6.1 released.
1857
1858 2013-08-30 Pedro Alves <palves@redhat.com>
1859
1860 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1861 SRC_AND_LOC.
1862
1863 2013-08-30 Pedro Alves <palves@redhat.com>
1864
1865 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1866 warning text.
1867
1868 2013-08-30 Pedro Alves <palves@redhat.com>
1869
1870 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1871 Adjust arguments to print_stack_frame.
1872
1873 2013-08-30 Pedro Alves <palves@redhat.com>
1874
1875 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1876
1877 2013-08-30 Pedro Alves <palves@redhat.com>
1878
1879 * frame.h (show_and_print_stack_frame): Delete declaration.
1880
1881 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1882
1883 PR python/15461
1884
1885 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1886 (archpy_name): Check for valid architecture.
1887 (archpy_disassemble): Ditto.
1888
1889 2013-08-29 Joel Brobecker <brobecker@adacore.com>
1890
1891 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1892 instead of "long long" in call to ptrace64.
1893
1894 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
1895
1896 * mi/mi-interp.c (mi_command_loop): Change signature to match
1897 interp_command_loop_ftype.
1898 (mi1_command_loop): Remove.
1899 (mi2_command_loop): Remove.
1900 (mi3_command_loop): Remove.
1901 (mi_interpreter_resume): Remove setting of
1902 deprecated_command_loop_hook.
1903 (_initialize_mi_interp): Set mi_command_loop as the command loop
1904 callback.
1905
1906 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1907
1908 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1909 value_type.
1910
1911 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1912
1913 * value.c (allocate_value_contents): Make static.
1914 * value.h (allocate_value_contents): Remove prototype.
1915
1916 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1917
1918 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1919 of assembling value via allocate_value_lazy and attribute setter.
1920 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1921 assembling value via allocate_value_lazy and attribute setter.
1922 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1923 assembling value via allocate_value_lazy and attribute setter.
1924
1925 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1926
1927 * value.c (value_from_contents_and_address): Replace allocate_value and
1928 memcpy with value_from_contents.
1929
1930 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1931
1932 * python/py-framefilter.c (py_print_frame): Remove usage of
1933 PyString_AsString. Use python_string_to_host_string instead.
1934 Refactor function to work with a string as a new allocation
1935 instead of a pointer.
1936 (py_print_frame): Ditto.
1937 * python/lib/gdb/frames.py (return_list): Cain iterators together
1938 instead of adding them as a list.
1939 (_sort_list): Call return_list, and remove duplicate code.
1940 (execute_frame_filters): Convert iterator to a list with list().
1941 * python/lib/gdb/command/frame_filters.py
1942 (SetFrameFilterPriority._set_filter_priority): Convert priority
1943 attribute to an integer.
1944 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1945 wrapper function __next__.
1946 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1947 define as "str".
1948
1949 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1950
1951 PR python/15752
1952 * python/py-framefilter.c (apply_frame_filter): Check
1953 gdb_python_initialized. Exit if the Python frame-filter code
1954 cannot be initialized.
1955
1956 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1957
1958 PR cli/15842
1959 * top.c (print_gdb_version): Remove erroneous newline after help
1960 text.
1961
1962 2013-08-29 Yao Qi <yao@codesourcery.com>
1963
1964 * varobj.c (install_dynamic_child): Remove trailing space.
1965 Add one blank line after variable declaration.
1966
1967 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1968
1969 PR gdb/15415
1970 * corefile.c (get_exec_file): Use exec_filename.
1971 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1972 * exec.c (exec_close): Free EXEC_FILENAME.
1973 (exec_file_attach): New variable canonical_pathname. Use
1974 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1975 EXEC_FILENAME.
1976 * exec.h (exec_filename): New.
1977 * inferior.c (print_inferior, inferior_command): Use
1978 PSPACE_EXEC_FILENAME.
1979 * mi/mi-main.c (print_one_inferior): Likewise.
1980 * progspace.c (clone_program_space, print_program_space): Likewise.
1981 * progspace.h (struct program_space): New field pspace_exec_filename.
1982 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1983 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1984
1985 2013-08-28 Will Newton <will.newton@linaro.org>
1986
1987 * common/linux-ptrace.c: Include stdint.h unconditionally.
1988
1989 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1990
1991 Code cleanup.
1992 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1993
1994 2013-08-28 Yao Qi <yao@codesourcery.com>
1995 Pedro Alves <palves@redhat.com>
1996
1997 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1998 instead of stdio_fileopen.
1999 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2000 .Call stderr_fileopen instead of stdio_fileopen.
2001 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2002 [__MINGW32__] (stderr_file_fputs): New function.
2003 (stderr_fileopen): New function.
2004 * ui-file.h (stderr_fileopen): Declare.
2005
2006 2013-08-27 Doug Evans <dje@google.com>
2007
2008 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2009 (struct dwarf2_per_cu_data): Ditto.
2010 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2011 (process_imported_unit_die): Ditto.
2012 (follow_die_sig_1): Simplify assert.
2013
2014 2013-08-27 Pedro Alves <palves@redhat.com>
2015
2016 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2017 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2018 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2019 windows_xfer_memory directly.
2020 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2021
2022 2013-08-27 Pedro Alves <palves@redhat.com>
2023
2024 * darwin-nat.c (darwin_xfer_memory): Delete.
2025 (_initialize_darwin_inferior): Don't install a
2026 deprecated_xfer_memory method.
2027
2028 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2029 Yao Qi <yao@codesourcery.com>
2030
2031 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2032 (parse_no_frames_option): Remove.
2033 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2034 (mi_cmd_stack_list_args): Adjust.
2035 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2036 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2037 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2038 Caller update.
2039 (list_args_or_locals): New parameter 'skip_unavailable'.
2040 Handle it.
2041 * valprint.c (scalar_type_p): Rename to ...
2042 (val_print_scalar_type_p): ... this. Make extern.
2043 (val_print, value_check_printable): Adjust.
2044 * valprint.h (val_print_scalar_type_p): Declare.
2045 * value.c (value_entirely_unavailable): New function.
2046 * value.h (value_entirely_unavailable): Declare.
2047
2048 * NEWS: Mention the new option "--skip-unavailable" to MI
2049 commands '-stack-list-locals', '-stack-list-arguments' and
2050 '-stack-list-variables'.
2051
2052 2013-08-27 Yao Qi <yao@codesourcery.com>
2053
2054 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2055 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2056 options.
2057 * mi/mi-getopt.c (mi_getopt): Remove.
2058 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2059 'error_on_unknown'.
2060 (mi_getopt): Call mi_getopt_1.
2061 (mi_getopt_silent): New.
2062 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2063
2064 2013-08-26 Doug Evans <dje@google.com>
2065
2066 PR symtab/15885
2067 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2068 .gdb_index is in use.
2069 * symfile.c (reread_symbols): Reset objfile->sf.
2070
2071 * NEWS: Document "mt print objfiles" now takes optional regexp.
2072 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2073 regexp of objfiles to print.
2074 (_initialize_symmisc): Update doc string for "mt print objfiles".
2075
2076 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2077 missing debug info checks.
2078
2079 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2080 Ulrich Weigand <uweigand@de.ibm.com>
2081
2082 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2083 line tables generated by XLC compiled binaries.
2084
2085 2013-08-23 Doug Evans <dje@google.com>
2086
2087 * symmisc.c (dump_symtab): Delete prototype.
2088 (dump_msymbols, dump_objfile): Ditto.
2089 (maintenance_info_symtabs): Mark as dont_repeat.
2090 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2091
2092 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2093 debugging printf to better location.
2094
2095 2013-08-23 Pedro Alves <palves@redhat.com>
2096
2097 * target.c (target_read_live_memory): Change type of 'ret' local
2098 to LONGEST.
2099
2100 2013-08-23 Pedro Alves <palves@redhat.com>
2101
2102 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2103 (remote_read_bytes): Change return type to LONGEST, and adjust to
2104 return a target_xfer_error on error.
2105 (remote_xfer_memory): Delete.
2106 (remote_flash_write): Change type of 'ret' local to LONGEST.
2107 (remote_xfer_partial, remote_xfer_partial): Adjust.
2108 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2109
2110 2013-08-23 Pierre Muller <muller@sourceware.org>
2111
2112 ARI fix: Push # directives to start of line.
2113 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2114
2115 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2116
2117 PR gdb/15501
2118 * breakpoint.c (enable_command, disable_command): Iterate over
2119 all specified breakpoint locations.
2120
2121 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2122
2123 * common/linux-ptrace.c (linux_fork_to_function): Push #
2124 directives to the start of the line.
2125 (linux_check_ptrace_features): Fix warning message to use
2126 the "_" markup.
2127
2128 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2129
2130 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2131 nat/linux-waitpid.h.
2132 (linux-waitpid.o): New object file rule.
2133 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2134 (current_ptrace_options): Moved from linux-nat.c.
2135 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2136 parameters.
2137 (linux_fork_to_function): New function.
2138 (linux_grandchild_function): Likewise.
2139 (linux_child_function): Likewise.
2140 (linux_check_ptrace_features): New function, heavily
2141 based on linux-nat.c:linux_test_for_tracefork.
2142 (linux_enable_event_reporting): New function.
2143 (ptrace_supports_feature): Likewise.
2144 (linux_supports_tracefork): Likewise.
2145 (linux_supports_traceclone): Likewise.
2146 (linux_supports_tracevforkdone): Likewise.
2147 (linux_supports_tracesysgood): Likewise.
2148 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2149 gdbserver/linux-low.c.
2150 (linux_enable_event_reporting): New declaration.
2151 (linux_supports_tracefork): Likewise.
2152 (linux_supports_traceclone): Likewise.
2153 (linux_supports_tracevforkdone): Likewise.
2154 (linux_supports_tracesysgood): Likewise.
2155 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2156 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2157 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2158 * config/arm/linux.mh (NATDEPFILES): Likewise.
2159 * config/i386/linux.mh (NATDEPFILES): Likewise.
2160 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2161 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2162 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2163 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2164 * config/mips/linux.mh (NATDEPFILES): Likewise.
2165 * config/pa/linux.mh (NATDEPFILES): Likewise..
2166 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2167 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2168 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2169 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2170 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2171 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2172 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2173 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2174 ptrace's 4th argument's types.
2175 Check the type of PTRACE_TYPE_ARG4.
2176 * configure: Regenerate.
2177 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2178 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2179 (linux_supports_tracefork_flag): Remove.
2180 (linux_supports_tracesysgood_flag): Likewise.
2181 (linux_supports_tracevforkdone_flag): Likewise.
2182 (current_ptrace_options): Moved to
2183 common/linux-ptrace.c.
2184 (linux_tracefork_child): Remove.
2185 (my_waitpid): Remove.
2186 (linux_test_for_tracefork): Renamed to
2187 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2188 (linux_test_for_tracesysgood): Remove.
2189 (linux_supports_tracesysgood): Remove.
2190 (linux_supports_tracefork): Remove.
2191 (linux_supports_tracevforkdone): Remove.
2192 (linux_enable_tracesysgood): Remove.
2193 (linux_enable_event_reporting): Remove.
2194 (linux_init_ptrace): New function.
2195 (linux_child_post_attach): Call linux_init_ptrace.
2196 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2197 (linux_child_follow_fork): Call linux_supports_tracefork
2198 and linux_supports_tracevforkdone.
2199 (linux_child_insert_fork_catchpoint): Call
2200 linux_supports_tracefork.
2201 (linux_child_insert_vfork_catchpoint): Likewise.
2202 (linux_child_set_syscall_catchpoint): Call
2203 linux_supports_tracesysgood.
2204 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2205 * nat/linux-nat.h: New file.
2206 * nat/linux-waitpid.c: New file.
2207 * nat/linux-waitpid.h: New file.
2208
2209 2013-08-22 Samuel Bronson <naesten@gmail.com>
2210
2211 ARM Linux support for `catch syscall'.
2212 * syscalls/arm-linux.py: New file.
2213 * syscalls/arm-linux.xml: Likewise.
2214 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2215 (arm_linux_init_abi): Register the new function and syscall xml file.
2216 * data-directory/Makefile.in: Install the new syscall xml file.
2217 * NEWS: Brag about this.
2218
2219 2013-08-22 Pedro Alves <palves@redhat.com>
2220
2221 PR gdb/15871
2222 * corefile.c (target_xfer_memory_error): New function.
2223 (memory_error): Defer EIO to target_memory_error.
2224 (read_memory): Use target_xfer_partial, and handle finer-grained
2225 target xfer errors.
2226 * target.c (target_xfer_error_to_string): New function.
2227 (memory_xfer_partial_1): If memory is known to be
2228 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2229 (target_xfer_partial): Make extern.
2230 * target.h (enum target_xfer_error): New enum.
2231 (target_xfer_error_to_string): Declare function.
2232 (target_xfer_partial): Declare function.
2233 (struct target_ops) <xfer_partial>: Adjust describing comment.
2234
2235 2013-08-22 Alan Modra <amodra@gmail.com>
2236
2237 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2238 * configure.tgt: Likewise as targets.
2239
2240 2013-08-20 Doug Evans <dje@google.com>
2241
2242 * buildsym.c (subfile_stack): Move here from buildsym.h.
2243 (pending_macros): Ditto.
2244 (get_macro_table): New function.
2245 (buildsym_init): Initialize subfile_stack.
2246 * coffread.c (type_vector,type_vector_length): Moved here from
2247 buildsym.h.
2248 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2249 (coff_symtab_read): Use it.
2250 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2251 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2252 with call to get_macro_table.
2253 * stabsread.c (type_vector,type_vector_length): Moved here from
2254 buildsym.h.
2255 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2256 * buildsym.h (get_macro_table): Declare.
2257
2258 2013-08-20 Tom Tromey <tromey@redhat.com>
2259
2260 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2261 Update.
2262 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2263
2264 2013-08-20 Doug Evans <dje@google.com>
2265
2266 * blockframe.c: Remove #include "psymtab.h".
2267 * cp-support.c: Ditto.
2268 * source.c: Ditto.
2269 * stack.c: Ditto.
2270
2271 2013-08-20 Tom Tromey <tromey@redhat.com>
2272
2273 PR python/15816:
2274 * exceptions.h (return_mask): Now an enum.
2275 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2276 enum constants.
2277
2278 2013-08-20 Tom Tromey <tromey@redhat.com>
2279
2280 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2281 get_objfile_arch.
2282 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2283 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2284 * jit.c (jit_object_close_impl): Update.
2285 * jv-lang.c (get_dynamics_objfile): Update.
2286 * linespec.c (add_minsym): Use get_dynamics_objfile.
2287 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2288 (allocate_objfile): Don't initialize 'gdbarch' field.
2289 (get_objfile_arch): Update.
2290 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2291 moved from...
2292 (struct objfile) <gdbarch>: ... here. Remove.
2293 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2294 get_objfile_arch.
2295 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2296
2297 2013-08-20 Alan Modra <amodra@gmail.com>
2298
2299 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2300 for IBM long double nan and inf.
2301 (floatformat_is_negative, floatformat_classify,
2302 floatformat_mantissa): Similarly.
2303 (floatformat_ieee_single, floatformat_ieee_double,
2304 floatformat_ieee_quad, floatformat_arm_ext,
2305 floatformat_ia64_spill): Delete unused vars.
2306 (_initialize_doublest): Delete unused function.
2307 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2308 little-endian variants of floatformat_ibm_long_double.
2309
2310 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2311
2312 * Makefile.in (SFILES): Remove common/target-common.c and
2313 add target/waitstatus.c.
2314 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2315 target/resume.h, target/wait.h and target/waitstatus.h.
2316 (COMMON_OBS): Remove target-common.o and add
2317 waitstatus.o.
2318 (target-common.o): Remove.
2319 (waitstatus.o): New target object file.
2320 * common/target-common.c: Move contents to
2321 target/waitstatus.c and remove.
2322 * common/target-common.h: Move contents to other files and
2323 remove.
2324 (enum resume_kind: Move to target/resume.h.
2325 (TARGET_WNOHANG): Move to target/wait.h.
2326 (enum target_waitkind): Move to target/waitstatus.h.
2327 (struct target_waitstatus): Likewise.
2328 * target.h: Do not include target-common.h and
2329 include target/resume.h, target/wait.h and
2330 target/waitstatus.h.
2331 * target/resume.h: New file.
2332 * target/wait.h: New file.
2333 * target/waitstatus.h: New file.
2334 * target/waitstatus.c: New file.
2335
2336 2013-08-19 Pedro Alves <palves@redhat.com>
2337
2338 * linux-nat.c (linux_test_for_tracefork)
2339 (linux_test_for_tracesysgood, linux_child_follow_fork)
2340 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2341 (linux_nat_wait_1): Extend comment.
2342 (linux_async_pipe): Add comment.
2343
2344 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2345
2346 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2347 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2348 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2349 Update to account for fact that PC is now a pseudo-register.
2350 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2351 cases for RL78_PC_REGNUM.
2352
2353 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2354
2355 PR cli/15841
2356 * top.c (quit_force): Skip writing history file
2357 if input is not from terminal.
2358
2359 2013-08-14 Tom Tromey <tromey@redhat.com>
2360
2361 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2362 resultthreadlist>: New fields.
2363 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2364 (remote_get_threadlist, remote_threadlist_iterator): Use
2365 new fields. Remove static variables.
2366
2367 2013-08-14 Tom Tromey <tromey@redhat.com>
2368
2369 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2370 remote_watch_data_address>: New fields.
2371 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2372 (process_stop_reply, remote_wait_as)
2373 (remote_check_watch_resources, remote_stopped_data_address): Update.
2374
2375 2013-08-14 Tom Tromey <tromey@redhat.com>
2376
2377 * remote.c (struct remote_state) <async_client_callback,
2378 async_client_context>: New fields.
2379 (async_client_callback, async_client_context): Remove.
2380 (remote_async_serial_handler, remote_async): Update.
2381
2382 2013-08-14 Tom Tromey <tromey@redhat.com>
2383
2384 * remote.c (sizeof_pkt): Remove.
2385 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2386
2387 2013-08-14 Tom Tromey <tromey@redhat.com>
2388
2389 * remote.c (struct remote_state) <use_threadinfo_query,
2390 use_threadextra_query>: New fields.
2391 (remote_threads_info, remote_threads_extra_info)
2392 (remote_open_1): Update.
2393
2394 2013-08-14 Tom Tromey <tromey@redhat.com>
2395
2396 * remote.c (struct remote_state) <finished_object,
2397 finished_annex, finished_offset>: New fields.
2398 (remote_read_qxfer): Use remote_state fields; remove static
2399 variables.
2400
2401 2013-08-14 Tom Tromey <tromey@redhat.com>
2402
2403 * remote.c (struct remote_state) <last_sent_step>:
2404 New field.
2405 (last_sent_step): Remove.
2406 (remote_resume, remote_wait_as): Update.
2407
2408 2013-08-14 Tom Tromey <tromey@redhat.com>
2409
2410 * remote.c (struct remote_state) <last_sent_signal>:
2411 New field.
2412 (last_sent_signal): Remove.
2413 (new_remote_state, remote_resume, remote_wait_as): Update.
2414
2415 2013-08-14 Tom Tromey <tromey@redhat.com>
2416
2417 * remote.c (struct remote_state) <last_program_signals_packet>:
2418 New field.
2419 (last_program_signals_packet): Remove.
2420 (remote_program_signals, remote_open_1): Update.
2421
2422 2013-08-14 Tom Tromey <tromey@redhat.com>
2423
2424 * remote.c (struct remote_state) <last_pass_packet>:
2425 New field.
2426 (last_pass_packet): Remove.
2427 (remote_pass_signals, remote_open_1): Update.
2428
2429 2013-08-14 Tom Tromey <tromey@redhat.com>
2430
2431 * remote.c (struct remote_state) <remote_traceframe_number>:
2432 New field.
2433 (remote_traceframe_number): Remove.
2434 (new_remote_state, remote_open_1, set_remote_traceframe)
2435 (remote_trace_find): Update.
2436
2437 2013-08-14 Tom Tromey <tromey@redhat.com>
2438
2439 * remote.c (struct remote_state) <general_thread, continue_thread>:
2440 New fields.
2441 (general_thread, continue_thread): Remove.
2442 (record_currthread, set_thread, set_general_process)
2443 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2444 (extended_remote_mourn_1): Update.
2445
2446 2013-08-14 Tom Tromey <tromey@redhat.com>
2447
2448 * remote.c (struct remote_state) <remote_desc>: New field.
2449 (remote_desc): Remove.
2450 (remote_threads_info, remote_threads_extra_info, remote_close)
2451 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2452 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2453 (remote_hostio_send_command, remote_file_put, remote_file_get)
2454 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2455 (remote_async, remote_new_objfile, set_range_stepping): Update.
2456
2457 2013-08-14 Tom Tromey <tromey@redhat.com>
2458
2459 * remote.c (remote_state): Now a pointer.
2460 (get_remote_state_raw): Update.
2461 (new_remote_state): New function.
2462 (_initialize_remote): Use new_remote_state.
2463
2464 2013-08-14 Tom Tromey <tromey@redhat.com>
2465
2466 * remote.c (remote_protocol_features): Now const.
2467
2468 2013-08-14 Tom Tromey <tromey@redhat.com>
2469
2470 * remote.c (crc32_table, crc32): Remove.
2471 (remote_verify_memory): Use xcrc32.
2472
2473 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2474
2475 * value.h (create_internalvar_type_lazy): Adjust prototype
2476 declaration.
2477
2478 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2479
2480 * common/format.c (parse_format_string): Don't allow '#' flag for
2481 pointer arguments in format string.
2482
2483 2013-08-13 Pierre Muller <muller@sourceware.org>
2484
2485 * utils.c (init_page_info): Only call tgetnum function
2486 if rl_get_screen_size did not return useful values.
2487
2488 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2489
2490 PR breakpoints/15117
2491 * linespec.c (linespec_parse_basic): Check for convenience
2492 variable or history value while parsing.
2493
2494 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2495
2496 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2497 AVR.
2498 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2499 different signals between the generic Linux kernel implementation
2500 and AVR's.
2501 (avr_linux_gdb_signal_from_target): Delete.
2502 (avr_linux_gdb_signal_to_target): Delete.
2503 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2504
2505 2013-08-09 Doug Evans <dje@google.com>
2506
2507 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2508 entries.
2509
2510 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2511
2512 * linux-tdep.c: Define enum with generic signal numbers.
2513 (linux_gdb_signal_from_target): New function.
2514 (linux_gdb_signal_to_target): Likewise.
2515 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2516 methods to the functions above.
2517 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2518 (linux_gdb_signal_to_target): Likewise.
2519 * alpha-linux-tdep.c: Define new enum with signals different
2520 from generic Linux kernel.
2521 (alpha_linux_gdb_signal_from_target): New function.
2522 (alpha_linux_gdb_signal_to_target): Likewise.
2523 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2524 with the functions mentioned above.
2525 * avr-tdep.c: Define enum with differences between Linux kernel
2526 and AVR signals.
2527 (avr_linux_gdb_signal_from_target): New function.
2528 (avr_linux_gdb_signal_to_target): Likewise.
2529 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2530 the functions mentioned above.
2531 * sparc-linux-tdep.c: Define enum with differences between SPARC
2532 and generic Linux kernel signal numbers.
2533 (sparc32_linux_gdb_signal_from_target): New function.
2534 (sparc32_linux_gdb_signal_to_target): Likewise.
2535 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2536 to the functions defined above.
2537 * xtensa-linux-tdep.c: Define enum with differences between
2538 Xtensa and Linux kernel generic signals.
2539 (xtensa_linux_gdb_signal_from_target): New function.
2540 (xtensa_linux_gdb_signal_to_target): Likewise.
2541 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2542 to the functions defined above.
2543 * mips-linux-tdep.c: Define enum with differences between
2544 signals in MIPS and Linux kernel generic ones.
2545 (mips_gdb_signal_to_target): New function.
2546 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2547 only different signals from the Linux kernel generic.
2548 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2549 the functions defined above.
2550 * mips-linux-tdep.h (enum mips_signals): Remove.
2551
2552 2013-08-09 Pedro Alves <palves@redhat.com>
2553
2554 * avr-tdep.c (XMALLOC): Delete macro.
2555 * cli/cli-dump.c (XMALLOC): Delete macro.
2556
2557 2013-08-09 Pedro Alves <palves@redhat.com>
2558
2559 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2560 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2561 (fopen_with_cleanup, add_dump_command): Make static.
2562 * cli/cli-dump.h: Delete file.
2563 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2564 cli/cli-dump.h.
2565
2566 2013-08-09 Pedro Alves <palves@redhat.com>
2567
2568 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2569 error message.
2570
2571 2013-08-09 Pedro Alves <palves@redhat.com>
2572
2573 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2574 error message.
2575
2576 2013-08-09 Pedro Alves <palves@redhat.com>
2577
2578 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2579 (gcore_command): Use tilde_expand here, and when showing the
2580 filename to the user, show the expanded version.
2581
2582 2013-08-09 Yao Qi <yao@codesourcery.com>
2583
2584 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2585 'entryval' is set.
2586
2587 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2588
2589 * gcore.c (create_gcore_bfd): Use tilde_expand.
2590
2591 2013-08-08 Yao Qi <yao@codesourcery.com>
2592
2593 * frame.h (read_frame_local): Declare.
2594 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2595 read_frame_local.
2596 * stack.c (read_frame_local): New.
2597
2598 2013-08-08 Yao Qi <yao@codesourcery.com>
2599
2600 * mi/mi-cmd-stack.c: Update comments to function
2601 list_args_or_locals.
2602
2603 2013-08-07 Tom Tromey <tromey@redhat.com>
2604
2605 PR symtab/15028:
2606 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2607 (process_psymtab_comp_unit_reader): Use it.
2608 (process_psymtab_comp_unit): Update. Add "pretend_language"
2609 argument.
2610 (dwarf2_build_psymtabs_hard): Update.
2611 (scan_partial_symbols): Pass CU's language to
2612 process_psymtab_comp_unit.
2613
2614 2013-08-07 Tom Tromey <tromey@redhat.com>
2615
2616 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2617 (dwarf2_gdb_index_functions): Update.
2618 * psymtab.c (find_symbol_file_from_partial): Remove.
2619 (psym_functions): Update.
2620 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2621 Remove.
2622
2623 2013-08-07 Tom Tromey <tromey@redhat.com>
2624
2625 * symfile.c (set_initial_language): Look up "main" symbol
2626 and use its language.
2627 * symtab.c (find_main_filename): Remove.
2628 * symtab.h (find_main_filename): Remove.
2629
2630 2013-08-07 Tom Tromey <tromey@redhat.com>
2631
2632 * dwarf2read.c (recursively_compute_inclusions): Add
2633 "immediate_parent" argument. Set symtab's "user" field
2634 if not set.
2635 (compute_symtab_includes): Update.
2636
2637 2013-08-07 Tom Tromey <tromey@redhat.com>
2638
2639 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2640 when adding label symbols.
2641
2642 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2643 Ulrich Weigand <uweigand@de.ibm.com>
2644
2645 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2646 * configure.host (powerpc64-*-aix*): Likewise.
2647
2648 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2649 Ulrich Weigand <uweigand@de.ibm.com>
2650
2651 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2652 is defined.
2653 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2654 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2655 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2656 * configure.ac: Check for ptrace64.
2657 * configure, config.in: Regenerate.
2658
2659 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2660 Ulrich Weigand <uweigand@de.ibm.com>
2661
2662 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2663 Call ptrace64 instead of ptrace if defined.
2664 Add macro addr_ptr to take care of ptrace address argument.
2665 (pdc_read_regs): Likewise.
2666 (pdc_write_regs): Likewise.
2667 (aix_thread_resume): Likewise.
2668 (fetch_regs_kernel_thread): Likewise.
2669 (store_regs_kernel_thread): Likewise.
2670
2671 2013-08-07 Anton Blanchard <anton@samba.org>
2672
2673 * MAINTAINERS: Add myself to Write After Approval.
2674
2675 2013-08-05 Tom Tromey <tromey@redhat.com>
2676
2677 * aix-thread.c (_initialize_aix_thread): Use
2678 complete_target_initialization.
2679 * bsd-uthread.c (_initialize_bsd_uthread): Use
2680 complete_target_initialization.
2681 * dec-thread.c (_initialize_dec_thread): Use
2682 complete_target_initialization.
2683 * ravenscar-thread.c (_initialize_ravenscar): Use
2684 complete_target_initialization.
2685 * sol-thread.c (_initialize_sol_thread): Use
2686 complete_target_initialization.
2687 * spu-multiarch.c (_initialize_spu_multiarch): Use
2688 complete_target_initialization.
2689
2690 2013-08-05 Tom Tromey <tromey@redhat.com>
2691
2692 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2693 * ada-lang.c (ada_lookup_simple_minsym): Return
2694 bound_minimal_symbol.
2695 * ada-lang.h (ada_lookup_simple_minsym): Update.
2696 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2697 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2698 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2699 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2700 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2701 * minsyms.c (msymbol_objfile): Remove.
2702 (lookup_minimal_symbol_internal): New function, from
2703 lookup_minimal_symbol.
2704 (lookup_minimal_symbol): Rewrite using
2705 lookup_minimal_symbol_internal.
2706 (lookup_bound_minimal_symbol): New function.
2707 * minsyms.h (msymbol_objfile): Remove.
2708 (lookup_bound_minimal_symbol): Declare.
2709 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2710 * parse.c (write_exp_msymbol): Change parameter to a
2711 bound_minimal_symbol.
2712 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2713 * parser-defs.h (write_exp_msymbol): Update.
2714 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2715 * symfile.c (simple_read_overlay_table): Use
2716 lookup_bound_minimal_symbol.
2717 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2718 (search_symbols): Likewise.
2719 (print_msymbol_info): Take a bound_minimal_symbol argument.
2720 (symtab_symbol_info, rbreak_command): Update.
2721 * symtab.h (struct symbol_search) <msymbol>: Change type
2722 to bound_minimal_symbol.
2723 * valops.c (find_function_in_inferior): Use
2724 lookup_bound_minimal_symbol.
2725 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2726
2727 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2728
2729 Code cleanup.
2730 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2731 to ...
2732 (async_cleanup_sigint_signal_handler): ... this.
2733 (initialize_sigint_signal_handler): Remove declaration.
2734 (handle_remote_sigint): Rename the declaration to ...
2735 (async_handle_remote_sigint): ... this.
2736 (handle_remote_sigint_twice): Rename the declaration to ...
2737 (async_handle_remote_sigint_twice): ... this.
2738 (async_remote_interrupt, async_remote_interrupt_twice)
2739 (remote_interrupt): Remove the declarations.
2740 (remote_interrupt_twice): Rename the declaration ...
2741 (sync_remote_interrupt_twice): ... this.
2742 (sigint_remote_twice_token): Rename the variable to ...
2743 (async_sigint_remote_twice_token): ... this.
2744 (sigint_remote_token): Rename the variable to ...
2745 (async_sigint_remote_token): ... this.
2746 (initialize_sigint_signal_handler): Rename the function to ...
2747 (async_initialize_sigint_signal_handler): ... this. Update the name
2748 inside.
2749 (handle_remote_sigint): Rename the function to ...
2750 (async_handle_remote_sigint): ... this. Update the names inside.
2751 (handle_remote_sigint_twice): Rename the function to ...
2752 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2753 (cleanup_sigint_signal_handler): Rename the function to ...
2754 (async_cleanup_sigint_signal_handler): ... this.
2755 (remote_interrupt): Rename the function to ...
2756 (sync_remote_interrupt): this. Update the names inside.
2757 (remote_interrupt_twice): Rename the function to ...
2758 (sync_remote_interrupt_twice): this. Update the names inside.
2759 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2760 (_initialize_remote): Update the names inside.
2761
2762 2013-08-02 Tom Tromey <tromey@redhat.com>
2763
2764 PR symtab/15719:
2765 * breakpoint.c (update_watchpoint, watchpoint_check)
2766 (watch_command_1): Update.
2767 * eval.c (fetch_subexp_value): Add "preserve_errors"
2768 parameter.
2769 * ppc-linux-nat.c (check_condition): Update.
2770 * value.h (fetch_subexp_value): Update.
2771
2772 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2773
2774 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2775 add_file_handler.
2776
2777 2013-08-01 Doug Evans <dje@google.com>
2778
2779 PR symtab/15691
2780 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2781 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2782 Add assert of sig_entry->dwo_unit == NULL.
2783 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2784 had already been read.
2785 (read_signatured_type): Set per_cu.tu_read.
2786
2787 PR symtab/15695
2788 * valops.c (value_struct_elt): Add missing call to check_typedef.
2789 (value_find_oload_method_list): Ditto.
2790
2791 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2792 effectively, struct symbol_search **.
2793 (make_cleanup_free_search_symbols): Change arg to struct
2794 symbol_search **. All callers updated.
2795 (compare_search_syms): Compare symtab file name and block as well.
2796 (search_symbols_equal): New function.
2797 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2798 New args new_head, new_tail. Result is now void. Remove dups after
2799 sorting the symbols.
2800 (search_symbols): Sort all found symbols once, after all have been
2801 found, and remove duplicates. Simplify cleanup tracking of result.
2802 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2803
2804 Further workarounds for binutils/15021.
2805 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2806 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2807 Watch for duplicate symtabs coming from type units.
2808 (compute_symtab_includes): Update call to
2809 recursively_compute_inclusions. Build vector of included symtabs
2810 instead of per_cus.
2811 * symtab.h (symtab_ptr): New typedef.
2812 (DEF_VEC_P (symtab_ptr)): New VEC type.
2813 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2814 instead.
2815
2816 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2817
2818 * cli/cli-script.c (script_from_file): Remove use of
2819 error_pre_print.
2820 * main.c (captured_main): Remove use of error_pre_print and
2821 quit_pre_print.
2822 * utils.c (error_pre_print, quit_pre_print): Remove.
2823 * utils.h (error_pre_print, quit_pre_print): Likewise.
2824
2825 2013-08-01 Yao Qi <yao@codesourcery.com>
2826
2827 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2828 with mi_getopt.
2829 (mi_cmd_stack_list_variables): Likewise.
2830
2831 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2832
2833 * exceptions.c (deprecated_throw_reason): Remove.
2834 * exceptions.h (deprecated_throw_reason): Remove.
2835
2836 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2837
2838 * remote-mips.c (mips_error): Replace use of
2839 deprecated_throw_reason with throw_verror. Use the error message
2840 passed to mips_error as the error message for throw_verror.
2841
2842 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2843
2844 * monitor.c (monitor_interrupt_query): Replace use of
2845 deprecated_throw_reason with quit.
2846 * nto-procfs.c (interrupt_query): Likewise.
2847 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2848 * remote-mips.c (mips_kill): Likewise.
2849 * remote.c (interrupt_query): Likewise.
2850
2851 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2852
2853 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2854 with call to fatal.
2855
2856 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2857 Yao Qi <yao@codesourcery.com>
2858
2859 * tracepoint.c (trace_dump_command): Select the current frame.
2860
2861 2013-07-30 Doug Evans <dje@google.com>
2862
2863 * dwarf2read.c (process_queue): Add type signature to debug output.
2864
2865 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2866
2867 * value.c (value_fetch_lazy): Mark optimized out values as such
2868 rather than raising an error.
2869
2870 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2871
2872 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2873 before checking which bits of the parent, not the child, value are
2874 valid.
2875
2876 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2877
2878 PR gdb/15715
2879 * top.c: Include "filenames.h".
2880 (set_history_filename): New function.
2881 (init_main): Install it as set hook of the "set history filename"
2882 command.
2883
2884 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2885
2886 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2887 attribute parameter.
2888 (dwarf2_const_value_data): Constify struct attribute parameter.
2889 (dwarf2_const_value): Constify struct attribute parameter.
2890 (dwarf2_const_value_attr): Constify struct attribute parameter.
2891 (lookup_die_type): Constify struct attribute parameter.
2892 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2893 (follow_die_ref_or_sig): Constify struct attribute parameter.
2894 (follow_die_ref): Constify struct attribute parameter.
2895 (follow_die_sig): Constify struct attribute parameter.
2896 (get_DW_AT_signature_type): Constify struct attribute parameter.
2897 (get_type_unit_group): Constify struct attribute parameter.
2898 (fill_in_loclist_baton): Constify struct attribute parameter.
2899 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2900 (type_unit_group): Constify struct attribute parameter.
2901
2902 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2903
2904 * dwarf2read.c (attr_form_is_block): Make argument const.
2905 (attr_form_is_section_offset): Make argument const.
2906 (attr_form_is_constant): Make argument const.
2907 (attr_form_is_ref): Make argument const.
2908
2909 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2910
2911 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2912 All uses updated.
2913 (attr_form_is_ref): Moved below attr_form_is_constant.
2914
2915 2013-07-29 Doug Evans <dje@google.com>
2916
2917 * main.c (captured_command_loop): Tweak comment.
2918
2919 * target.c (target_async_permitted_1): Fix comment.
2920
2921 * symtab.c (iterate_over_some_symtabs): Add comment.
2922
2923 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2924
2925 2013-07-27 Yao Qi <yao@codesourcery.com>
2926
2927 * NEWS: Mention that GDBserver now supports hardware
2928 watchpoints on the MIPS GNU/Linux target.
2929
2930 2013-07-27 Yao Qi <yao@codesourcery.com>
2931
2932 * Makefile.in (HFILES_NO_SRCDIR): Add
2933 common/mips-linux-watch.h.
2934 (mips-linux-watch.o): New rule.
2935 * common/mips-linux-watch.c: New.
2936 * common/mips-linux-watch.h: New.
2937 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2938 * mips-linux-nat.c: Include mips-linux-watch.h.
2939 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2940 to common/mips-linux-watch.h.
2941 (MAX_DEBUG_REGISTER): Likewise.
2942 (enum pt_watch_style): Likewise.
2943 (struct mips32_watch_regs): Likewise.
2944 (struct mips64_watch_regs): Likewise.
2945 (struct pt_watch_regs): Likewise.
2946 (struct mips_watchpoint): Likewise.
2947 (mips_linux_watch_get_irw_mask): Move to
2948 common/mips-linux-watch.c.
2949 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2950 (mips_linux_watch_get_watchlo): Likewise.
2951 (mips_linux_watch_set_watchlo): Likewise.
2952 (mips_linux_watch_get_watchhi): Likewise.
2953 (mips_linux_watch_set_watchhi): Likewise.
2954 (mips_linux_read_watch_registers): Likewise.
2955 (mips_linux_watch_type_to_irw): Likewise.
2956 (mips_linux_stopped_data_address, fill_mask): Likewise.
2957 (mips_linux_watch_try_one_watch): Likewise.
2958 (mips_linux_watch_populate_regs): Likewise.
2959
2960 2013-07-27 Yao Qi <yao@codesourcery.com>
2961
2962 * mips-linux-nat.c (get_irw_mask): Rename to ...
2963 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2964 'set' to 'n'. Update function comment. All callers changed.
2965 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2966 function comment. All callers changed.
2967 (get_num_valid): Rename to ...
2968 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2969 'set' to 'n'. Update function comment. All callers changed.
2970 (get_watchlo): Rename to ...
2971 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2972 'set' to 'n'. Update function comment. All callers changed.
2973 (set_watchlo): Rename to ...
2974 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2975 'set' to 'n'. Update function comment. All callers changed.
2976 (get_watchhi): Rename to ...
2977 (mips_linux_watch_get_watchhi): ... this. Update function
2978 comment. All callers changed.
2979 (set_watchhi): Rename to ...
2980 (mips_linux_watch_set_watchhi): ... this. Update function
2981 comment. All callers changed.
2982 (mips_linux_read_watch_registers): Update function comment.
2983 Add new parameters 'lwpid', 'watch_readback', and
2984 'watch_readback_valid'. Update.
2985 (type_to_irw): Rename to ...
2986 (mips_linux_watch_type_to_irw): ... this. Update function
2987 comment. All callers changed.
2988 (fill_mask): Update function comment.
2989 (try_one_watch): Rename to ...
2990 (mips_linux_watch_try_one_watch): ... this. Change the type
2991 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2992 (populate_regs_from_watches): Rename to ...
2993 (mips_linux_watch_populate_regs): ... this. Add parameter
2994 'current_watches'. All callers changed.
2995
2996 2013-07-27 Yao Qi <yao@codesourcery.com>
2997
2998 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2999 the code.
3000 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3001 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3002 (struct pt_watch_regs): Likewise.
3003 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3004 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3005 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3006 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3007 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3008
3009 2013-07-27 Yao Qi <yao@codesourcery.com>
3010
3011 * breakpoint.h: Include break-common.h.
3012 (enum target_hw_bp_type): Move to ...
3013 * common/break-common.h: ... here. New.
3014
3015 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3016
3017 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3018 process group regardless of having tty on stdin.
3019
3020 2013-07-25 Doug Evans <dje@google.com>
3021
3022 * linux-fork.h (detach_fork): Delete.
3023
3024 2013-07-25 Tom Tromey <tromey@redhat.com>
3025
3026 PR remote/15256, PR remote/15266:
3027 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3028 * monitor.c (monitor_detach): Use unpush_target.
3029 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3030 * remote-mips.c (mips_detach): Use unpush_target. Don't
3031 call mips_close.
3032 * remote-sim.c (gdbsim_detach): Use unpush_target.
3033 * target.c (pop_target): Remove.
3034 (pop_all_targets_above): Don't call target_close.
3035 (target_close): Assert that the target is unpushed.
3036 * target.h (pop_target): Don't declare.
3037 * tracepoint.c (tfile_open): Use unpush_target.
3038
3039 2013-07-25 Tom Tromey <tromey@redhat.com>
3040
3041 * linux-thread-db.c (init_thread_db_ops): Call
3042 complete_target_initialization.
3043 (_initialize_thread_db): Don't call add_target.
3044 * target.c (complete_target_initialization): New function.
3045 (add_target_with_completer): Call it.
3046 * target.h (complete_target_initialization): Declare.
3047
3048 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3049
3050 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3051 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3052 (HPPANBSD_SIZEOF_GREGS): New define.
3053 (hppaobsd_supply_gregset): Handle additional registers.
3054 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3055 we provide more registers now.
3056 (hppabsd_supply_gregset): Supply additional registers.
3057 (hppabsd_collect_gregset): Collect additional registers.
3058
3059 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3060
3061 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3062 (hppabsd_dwarf2_frame_init_reg): New function.
3063 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3064
3065 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3066
3067 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3068 'z' format code. Remove error for optimized out values, standard
3069 code will handle these fine.
3070
3071 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3072
3073 * NEWS: Mention new 'z' formatter.
3074 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3075 (_initialize_printcmd): Mention 'z' formatter in help text of the
3076 'x' command.
3077
3078 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3079
3080 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3081 formatting.
3082
3083 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3084
3085 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3086 interface can evaluate arguments. Fallback to the old mode if it
3087 cannot.
3088 (create_exception_master_breakpoint): Likewise.
3089 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3090 (struct sym_probe_fns elf_probe_fns): Export function above to the
3091 probe interface.
3092 * probe.c (can_evaluate_probe_arguments): New function.
3093 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3094 function pointer.
3095 (can_evaluate_probe_arguments): New function prototype.
3096 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3097 probe interface can evaluate arguments. Fallback to the old mode
3098 if it cannot.
3099 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3100 interface can evaluate arguments. Warning the user if it cannot.
3101 (stap_can_evaluate_probe_arguments): New function.
3102 (struct probe_ops stap_probe_ops): Export function above to the
3103 probe interface.
3104 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3105 New function pointer.
3106
3107 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3108
3109 * Makefile.in (SFILES): Add common/target-common.c.
3110 Add common/target-common.h to headers.
3111 (COMMON_OBS): Add target-common.o.
3112 (target-common.o): New target.
3113 * linux-nat.h (resume_kind): Move to common/target-common.h.
3114 * target.c (target_waitstatus_to_string): Move to
3115 common/target-common.c.
3116 * target.h: Include target-common.h.
3117 (target_waitkind): Move to common/target-common.h.
3118 (target_waitstatus): Likewise.
3119 (TARGET_WNOHANG): Likewise.
3120 * common/target-common.c: New file.
3121 * common/target-common.h: New file.
3122
3123 2013-07-24 Doug Evans <dje@google.com>
3124
3125 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3126 a warning.
3127
3128 2013-07-23 Yao Qi <yao@codesourcery.com>
3129
3130 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3131 parameter 'gdbarch'.
3132 (i386_stack_tramp_frame_sniffer): Caller update.
3133 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3134 parameter 'gdbarch' and 'target'.
3135 (i386_linux_core_read_description): Caller update.
3136 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3137 Likewise.
3138 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3139 declaration.
3140
3141 2013-07-23 Tom Tromey <tromey@redhat.com>
3142
3143 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3144 2013-07-22.
3145
3146 2013-07-22 Doug Evans <dje@google.com>
3147
3148 * exec.h (remove_target_sections): Delete arg abfd.
3149 * exec.c (exec_close): Update call to remove_target_sections.
3150 (remove_target_sections): Delete arg abfd.
3151 * solib.c (update_solib_list): Ditto.
3152 (reload_shared_libraries_1): Ditto.
3153 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3154 * target.h (struct target_section): Rename key to owner.
3155 All uses updated.
3156
3157 2013-07-22 Tom Tromey <tromey@redhat.com>
3158
3159 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3160
3161 2013-07-22 Tom Tromey <tromey@redhat.com>
3162
3163 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3164 Simplify cleanup handling.
3165
3166 2013-07-22 Tom Tromey <tromey@redhat.com>
3167
3168 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3169 on all return paths.
3170
3171 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3172
3173 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3174 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3175 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3176
3177 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3178
3179 * top.c (print_gdb_version): Add help, apropos description and
3180 url to online documentation.
3181
3182 2013-07-19 Hui Zhu <hui@codesourcery.com>
3183
3184 PR gdb/15692
3185 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3186
3187 2013-07-19 Yao Qi <yao@codesourcery.com>
3188
3189 * target.c (update_current_target): Change the default action
3190 of 'to_traceframe_info' from tcomplain to return_zero.
3191 * target.h (struct target_ops) <to_traceframe_info>: Add more
3192 comments.
3193 * valops.c (read_value_memory): Call
3194 traceframe_available_memory unconditionally.
3195
3196 2013-07-18 Yao Qi <yao@codesourcery.com>
3197
3198 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3199 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3200 symbol without prefix. If found, set its type to
3201 'mst_solib_trampoline'.
3202
3203 2013-07-17 Doug Evans <dje@google.com>
3204
3205 * NEWS: Mention "set print raw frame-arguments".
3206 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3207 * stack.c (print_raw_frame_arguments): New static global.
3208 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3209 (_initialize_stack): New command "set/show print raw frame-arguments".
3210 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3211 (set_print_raw, show_print_raw): New functions.
3212 (_initialize_valprint): New prefix command "set/show print raw".
3213 * valprint.h (value_print_options): Improve comments.
3214
3215 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3216 of all *list variables.
3217
3218 * gdbcmd.h (togglelist): Delete.
3219 * cli/cli-cmds.c (togglelist): Delete.
3220 (init_cmd_lists): Update.
3221 * cli/cli-cmds.h (togglelist): Delete.
3222
3223 2013-07-17 Tom Tromey <tromey@redhat.com>
3224
3225 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3226 dwarf2_per_objfile.
3227
3228 2013-07-16 Doug Evans <dje@google.com>
3229
3230 * nto-tdep.c (nto_relocate_section_addresses): Update,
3231 target_section.bfd deleted.
3232 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3233 * s390-tdep.c (s390_load): Ditto.
3234 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3235
3236 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3237
3238 * common/format.c (parse_format_string): Add checks for NULL
3239 character before calling strchr.
3240
3241 2013-07-16 Doug Evans <dje@google.com>
3242
3243 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3244 temp_pathname argument.
3245 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3246 when opening the file fails.
3247
3248 * target.h (struct target_section): Delete member bfd.
3249 All users updated to use the_bfd_section->owner instead.
3250 * exec.c (add_to_section_table): Assert bfd is expected value.
3251 Remove initialization of target_section.bfd.
3252 (remove_target_sections): Update.
3253 (section_table_available_memory): Update.
3254 (section_table_xfer_memory_partial): Update.
3255 (print_section_info): Update.
3256 (exec_set_section_address): Update.
3257 * record-full.c (record_full_core_xfer_partial): Update.
3258 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3259 * solib-target.c (solib_target_relocate_section_addresses): Update.
3260 * symfile.c (build_section_addr_info_from_section_table): Update.
3261 * target.c (memory_xfer_live_readonly_partial): Update.
3262 (memory_xfer_partial_1): Update.
3263
3264 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3265
3266 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3267 now available for embedded (BookE) and server (BookS) processors,
3268 correct mentions of 'booke' and adjust comments accordingly in order to
3269 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3270 (have_ptrace_booke_interface): Rename function and variable
3271 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3272 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3273 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3274 'hwdebug_point_cmp'. Update all uses.
3275 (booke_find_thread_points_by_tid): Rename function
3276 'booke_find_thread_points_by_tid' to
3277 'hwdebug_find_thread_points_by_tid'. Update all uses.
3278 (booke_insert_point): Rename function 'booke_insert_point' to
3279 'hwdebug_insert_point'. Update all uses.
3280 (booke_remove_point): Rename function 'booke_remove_point' to
3281 'hwdebug_remove_point'. Update all uses.
3282
3283 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3284
3285 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3286 numbers with enum values.
3287
3288 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3289
3290 PR threads/13217
3291 * thread.c (thread_apply_all_command): Check for valid threads
3292 and thread count.
3293 (thread_array_cleanup): New struct.
3294 (set_thread_refcount): New function.
3295
3296 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3297
3298 * infcmd.c (default_print_one_register_info): Reuse function
3299 print_hex_chars.
3300
3301 2013-07-10 Tom Tromey <tromey@redhat.com>
3302
3303 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3304 (ada-exp.o): New target.
3305
3306 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3307
3308 * mt-tdep.c (mt_registers_info): Call
3309 get_no_prettyformat_print_options instead of
3310 get_raw_print_options (regression by last patch from Doug
3311 Evans).
3312
3313 2013-07-09 Pedro Alves <palves@redhat.com>
3314
3315 Checked in by Joel Brobecker <brobecker@adacore.com>.
3316 * ada-lang.c (coerce_unspec_val_to_type): Use
3317 value_optimized_out_const.
3318 * value.c (value_optimized_out_const): New function.
3319 * value.h (value_optimized_out_const): New declaration.
3320
3321 2013-07-09 Doug Evans <dje@google.com>
3322
3323 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3324 Enum values rename as well. All uses updated.
3325 * valprint.h (value_print_options): Rename member pretty to
3326 pretty format. Rename member prettyprint_arrays to
3327 prettyformat_arrays. Rename member prettyprint_structs to
3328 prettyformat_structs. All uses updated.
3329 (get_no_prettyformat_print_options): Renamed from
3330 get_raw_print_options.
3331 * valprint.c (get_no_prettyformat_print_options): Renamed from
3332 get_raw_print_options. All callers updated.
3333 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3334 All callers updated.
3335 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3336 All callers updated.
3337 (_initialize_valprint): Improve help text for "set print pretty" and
3338 "set print arrays".
3339
3340 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3341
3342 * value.c (value_bits_valid): Revert previous change, and change
3343 by Pedro on 2013-07-04, due to regressions in
3344 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3345
3346 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3347 Pedro Alves <palves@redhat.com>
3348
3349 * value.c (value_bits_valid): If the value is not lval_computed
3350 or has no check validity handler then the answer is the
3351 optimized_out flag, otherwise defer to the handler.
3352
3353 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3354
3355 * top.c (print_gdb_configuration): Explain in output of
3356 --configuration what does "relocatable" mean.
3357
3358 * main.c (print_gdb_help): Regroup options in the --help text.
3359 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3360 the relevant discussions.
3361
3362 2013-07-06 Yao Qi <yao@codesourcery.com>
3363
3364 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3365 Remove parameter 'lsal'.
3366 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3367 to inner block. Caller update.
3368 (base_breakpoint_create_breakpoints_sal): Update.
3369 (bkpt_create_breakpoints_sal): Likewise.
3370 (tracepoint_create_breakpoints_sal): Likewise.
3371 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3372 element 0 of vector 'canonical->sals'.
3373
3374 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3375
3376 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3377 register number instead of the pseudo register one.
3378 (rs6000_dwarf2_reg_to_regnum): Likewise.
3379
3380 2013-07-04 Pedro Alves <palves@redhat.com>
3381
3382 * findvar.c (value_of_register): Use allocate_optimized_out_value
3383 if the register has been optimized out, instead of
3384 set_value_optimized_out.
3385 * frame-unwind.c (frame_unwind_got_optimized): Use
3386 allocate_optimized_out_value.
3387
3388 2013-07-04 Pedro Alves <palves@redhat.com>
3389
3390 * value.c (value_bits_valid): If the value is not lval_computed,
3391 or doesn't have a check_validity hook, assume the value is entirely
3392 valid.
3393
3394 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3395
3396 * stack.c (read_frame_arg): No longer fetch lazy values.
3397 * value.c (value_optimized_out): If the value is not already
3398 marked optimized out, and is lazy then fetch it.
3399 (value_primitive_field): Move optimized out check to later in the
3400 function, after we have loaded any lazy values.
3401 (value_fetch_lazy): Use optimized out flag directly rather than
3402 calling optimized_out method.
3403
3404 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3405
3406 * valops.c: Don't include "user-regs.h".
3407 (value_fetch_lazy): Moved to value.c.
3408 * value.c: Include "user-regs.h".
3409 (value_fetch_lazy): Moved from valops.c.
3410
3411 2013-07-04 Yao Qi <yao@codesourcery.com>
3412
3413 Revert:
3414 2013-06-27 Yao Qi <yao@codesourcery.com>
3415
3416 * common/create-version.sh: Update comments. Handle the case
3417 that TARGET_ALIAS is empty.
3418
3419 2013-07-03 Pedro Alves <palves@redhat.com>
3420
3421 * Makefile.in (config.status): Depend on development.sh.
3422 (aclocal_m4_deps): Add libmcheck.m4.
3423 * acinclude.m4: Include libmcheck.m4.
3424 * configure.ac: Source development.sh instead of setting
3425 'development' here. --enable-libmcheck/--disable-libmcheck code
3426 factored out to GDB_AC_LIBMCHECK. Run it.
3427 * development.sh: New file.
3428 * libmcheck.m4: New file.
3429 * configure: Regenerate.
3430
3431 2013-07-02 Tom Tromey <tromey@redhat.com>
3432
3433 * contrib/ari/update-web-ari.sh: Update for version.in change.
3434
3435 2013-07-02 Tom Tromey <tromey@redhat.com>
3436
3437 * common/ptid.h: Comment fixes.
3438
3439 2013-07-01 Tom Tromey <tromey@redhat.com>
3440
3441 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3442 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3443 (dwarf2_read_index, create_all_comp_units): Update.
3444
3445 2013-07-01 Tom Tromey <tromey@redhat.com>
3446
3447 * configure.ac (build_warnings): Add -Wold-style-definition.
3448 * configure: Rebuild.
3449 * machoread.c (_initialize_machoread): Use "(void)".
3450 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3451 use "(void)".
3452
3453 2013-07-01 Tom Tromey <tromey@redhat.com>
3454
3455 * configure.ac (build_warnings): Add -Wold-style-declaration.
3456 * configure: Rebuild.
3457 * dsrec.c (make_srec): Use "static const", not "const static".
3458 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3459 not "const static".
3460 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3461 Use "static const", not "const static".
3462 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3463 not "const static".
3464 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3465 not "const static".
3466 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3467 not "const static".
3468 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3469 not "const static".
3470 (v850_dbtrap_breakpoint_from_pc): Likewise.
3471 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3472 not "const static".
3473
3474 2013-07-01 Tom Tromey <tromey@redhat.com>
3475
3476 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3477 * configure: Rebuild.
3478
3479 2013-07-01 Pedro Alves <palves@redhat.com>
3480
3481 * defs.h: Include "pathmax.h".
3482 * utils.c: Don't include sys/param.h.
3483 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3484 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3485 instead of MAXPATHLEN.
3486 * solib-sunos.c: Don't include sys/param.h.
3487 * xcoffread.c: Don't include sys/param.h.
3488 * bsd-kvm.c: Don't include sys/param.h.
3489 * darwin-nat.c: Don't include sys/param.h.
3490 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3491 * darwin-nat-info.c: Don't include sys/param.h.
3492 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3493 MAXPATHLEN.
3494 * i386obsd-nat.c: Don't include sys/param.h.
3495 * inf-child.c: Don't include sys/param.h.
3496 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3497 * linux-fork.c: Don't include sys/param.h.
3498 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3499 * linux-nat.c: Don't include sys/param.h.
3500 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3501 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3502 * m68klinux-nat.c: Don't include sys/param.h.
3503 * nbsd-nat.c: Don't include sys/param.h.
3504 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3505 * ppc-linux-nat.c: Don't include sys/param.h.
3506 * rs6000-nat.c: Don't include sys/param.h.
3507 * spu-linux-nat.c. Don't include sys/param.h.
3508 * windows-nat.c: Don't include sys/param.h.
3509 * xtensa-linux-nat.c: Don't include sys/param.h.
3510 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3511
3512 2013-07-01 Pedro Alves <palves@redhat.com>
3513
3514 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3515 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3516 * gnulib/aclocal.m4: Regenerate.
3517 * gnulib/config.in: Regenerate.
3518 * gnulib/configure: Regenerate.
3519 * gnulib/import/pathmax.h: New file.
3520 * gnulib/import/Makefile.am: Regenerate.
3521 * gnulib/import/Makefile.in: Regenerate.
3522 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3523 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3524 * gnulib/import/m4/pathmax.m4: New file.
3525
3526 2013-07-01 Pedro Alves <palves@redhat.com>
3527
3528 * configure.ac (GDBINIT): Define, depending on host.
3529 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3530 * top.c (PATH_MAX): Delete fallback definition.
3531 (GDBINIT_FILENAME): Delete.
3532 (gdbinit): Reimplement as const char array set to the GDBINIT
3533 string constant.
3534 * top.h (gdbinit): Make const.
3535 * configure, config.in: Regenerate.
3536
3537 2013-07-01 Pedro Alves <palves@redhat.com>
3538
3539 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3540 * cli/cli-cmds.h (source_script): Likewise.
3541 * exceptions.c (catch_command_errors_const): New function.
3542 * exceptions.h (catch_command_errors_const): Declare.
3543 * main.c (get_init_files): Make parameters const, and adjust.
3544 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3545 'local_gdbinit' locals const. Adjust to use
3546 catch_command_errors_const.
3547 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3548 'local_gdbinit' locals const.
3549
3550 2013-07-01 Pedro Alves <palves@redhat.com>
3551
3552 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3553 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3554 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3555 <unistd.h>.
3556
3557 2013-07-01 Pedro Alves <palves@redhat.com>
3558
3559 Import the "unistd" gnulib module.
3560 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3561 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3562 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3563 import/m4/unistd_h.m4.
3564 * gnulib/aclocal.m4: Renenerate.
3565 * gnulib/config.in: Renenerate.
3566 * gnulib/configure: Renenerate.
3567 * gnulib/import/Makefile.am: Renenerate.
3568 * gnulib/import/Makefile.in: Renenerate.
3569 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3570 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3571 * gnulib/import/m4/off_t.m4: New file.
3572 * gnulib/import/m4/ssize_t.m4: New file.
3573 * gnulib/import/m4/sys_types_h.m4: New file.
3574 * gnulib/import/m4/unistd_h.m4: New file.
3575 * gnulib/import/sys_types.in.h: New file.
3576 * gnulib/import/unistd.c: New file.
3577 * gnulib/import/unistd.in.h: New file.
3578
3579 2013-07-01 Pedro Alves <palves@redhat.com>
3580
3581 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3582 defined instead of checking HAVE_UNISTD_H.
3583
3584 2013-07-01 Pedro Alves <palves@redhat.com>
3585
3586 Reimport gnulib from scratch.
3587 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3588 import/m4/onceonly.m4.
3589 * gnulib/aclocal.m4: Renegerate.
3590 * gnulib/config.in: Renegerate.
3591 * gnulib/configure: Renegerate.
3592 * gnulib/import/Makefile.in: Renegerate.
3593 * gnulib/import/extra/update-copyright: Renegerate.
3594 * gnulib/import/m4/onceonly.m4: Delete.
3595
3596 2013-07-01 Pedro Alves <palves@redhat.com>
3597
3598 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3599
3600 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3601
3602 Code cleanup.
3603 * remote.c (async_remote_interrupt_twice): Make it static.
3604 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3605
3606 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3607
3608 * ia64-linux-tdep.c: Include <ctype.h>.
3609 (ia64_linux_stap_is_single_operand): New function.
3610 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3611
3612 2013-06-28 Tom Tromey <tromey@redhat.com>
3613
3614 * Makefile.in (version.c): Use version.in, not
3615 common/version.in.
3616 * common/create-version.sh: Likewise.
3617 * common/version.in: Move...
3618 * version.in: ...here.
3619
3620 2013-06-28 Pedro Alves <palves@redhat.com>
3621
3622 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3623 here.
3624 * utils.h (pagination_enabled): Declare.
3625
3626 2013-06-28 Pedro Alves <palves@redhat.com>
3627
3628 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3629 Move higher up in file.
3630
3631 2013-06-28 Tom Tromey <tromey@redhat.com>
3632
3633 * tracepoint.c (deprecated_readline_begin_hook)
3634 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3635 declare.
3636
3637 2013-06-28 Pedro Alves <palves@redhat.com>
3638
3639 PR tui/14880
3640 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3641 checking if they're available.
3642 * value.c (value_available_contents_eq): Change comment.
3643 * value.h (value_available_contents_eq): Expand comment.
3644
3645 2013-06-27 Tom Tromey <tromey@redhat.com>
3646
3647 * target.c (find_run_target): Remove.
3648 * target.h (find_run_target): Remove.
3649
3650 2013-06-27 Tom Tromey <tromey@redhat.com>
3651
3652 * corelow.c (core_gdbarch): Now static.
3653
3654 2013-06-27 Tom Tromey <tromey@redhat.com>
3655
3656 * target.c (target_struct_index): Remove.
3657
3658 2013-06-27 Pedro Alves <palves@redhat.com>
3659
3660 * infrun.c: Remove comment describing the 'stepping over runtime
3661 loader dynamic symbol resolution code' mechanism; moved to
3662 gdbint.texinfo.
3663
3664 2013-06-27 Pedro Alves <palves@redhat.com>
3665
3666 * exceptions.c (catch_command_errors): Remove spurious space.
3667 * exceptions.h (catch_command_errors): Second parameter is "arg",
3668 not "command".
3669
3670 2013-06-27 Yao Qi <yao@codesourcery.com>
3671
3672 * common/create-version.sh: Update comments. Handle the case
3673 that TARGET_ALIAS is empty.
3674
3675 2013-06-26 Pedro Alves <palves@redhat.com>
3676
3677 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3678 comment.
3679
3680 2013-06-26 Pedro Alves <palves@redhat.com>
3681
3682 * infrun.c: Update comments on stepping over runtime loader
3683 dynamic symbol resolution code.
3684
3685 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3686
3687 * ax-gdb.h (union exp_element): Forward declare.
3688 * parser-defs.h: Include expression.h.
3689
3690 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3691
3692 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3693
3694 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3695
3696 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3697
3698 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3699
3700 Fix trace-status to output proper start-time and stop-time.
3701 * tracepoint.c (trace_status_command): Fix type of printf arg to
3702 prevent improper type conversion.
3703 (trace_status_mi): Likewise.
3704
3705 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3706
3707 * mips-tdep.c (mips_next_pc): Fix a typo.
3708
3709 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3710
3711 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3712
3713 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3714 Yao Qi <yao@codesourcery.com>
3715
3716 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3717 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3718 * mi/mi-main.c (print_variable_or_computed): New function.
3719 (mi_cmd_trace_frame_collected): New function.
3720 * tracepoint.c (find_trace_state_variable_by_number): New.
3721 (struct traceframe_info): Move to tracepoint.h
3722 (struct collection_list): Likewise.
3723 (do_collect_symbol): Include locals and arguments in the
3724 collected variables list.
3725 (clear_collection_list): Clear wholly collected variables list
3726 and computed variables list.
3727 (append_exp): New function.
3728 (encode_actions_1): Include variables in the wholly
3729 collected variables list. Include memory ranges and
3730 full-fledged expressions in the computed expressions list.
3731 (encode_actions): Move some code to ...
3732 Return the cleanup chain.
3733 (encode_actions_rsp): ... here. New function.
3734 (get_traceframe_location, get_traceframe_info): Remove static.
3735 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3736 (struct collection_list): Moved from tracepoint.c. Add two
3737 new fields 'wholly_collected' and 'computed'.
3738 (find_trace_state_variable_by_number): Declare.
3739 (encode_actions): Adjust declaration.
3740 (encode_actions_rsp): Declare.
3741 (get_traceframe_info, get_traceframe_location): Declare.
3742
3743 * NEWS: Mention new MI command -trace-frame-collected.
3744
3745 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3746 Yao Qi <yao@codesourcery.com>
3747
3748 * ctf.c (ctf_traceframe_info): Push trace state variables
3749 present in the trace data into the traceframe info object.
3750 * breakpoint.c (DEF_VEC_I): Remove.
3751 * common/filestuff.c (DEF_VEC_I): Likewise.
3752 * dwarf2loc.c (DEF_VEC_I): Likewise.
3753 * mi/mi-main.c (DEF_VEC_I): Likewise.
3754 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3755 * features/traceframe-info.dtd: Add tvar element and its
3756 attributes.
3757 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3758 (build_traceframe_info): Push trace state variables present in
3759 the trace data into the traceframe info object.
3760 (traceframe_info_start_tvar): New function.
3761 (tvar_attributes): New.
3762 (traceframe_info_children): Add "tvar" element.
3763 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3764
3765 * NEWS: Mention the change in GDB and GDBserver.
3766
3767 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3768 Yao Qi <yao@codesourcery.com>
3769
3770 * tracepoint.c (trace_dump_command): Move code to ...
3771 (get_traceframe_location): ... here. New.
3772
3773 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3774 Yao Qi <yao@codesourcery.com>
3775
3776 * tracepoint.c (trace_dump_command): GDB emits an error
3777 instead of a warning when a traceframe is not selected.
3778
3779 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3780 Yao Qi <yao@codesourcery.com>
3781
3782 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3783 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3784 in collection_list.
3785 (do_clear_collection_list, init_collection_list): New.
3786 (encode_actions): Add local variables 'tracepoint_list' and
3787 'stepping_list'. Call init_collection_list and make cleanup
3788 which calls do_clear_collection_list. Don't call
3789 clear_collection_list.
3790 (_initialize_tracepoint): Delete references to
3791 'tracepoint_list' and 'stepping_list'.
3792
3793 2013-06-25 Tom Tromey <tromey@redhat.com>
3794
3795 * common/create-version.sh (date): Use "$", not "$$" in sed
3796 expression.
3797
3798 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3799
3800 * NEWS (New targets): Add entry for TI MSP430.
3801
3802 2013-06-25 Yao Qi <yao@codesourcery.com>
3803
3804 * remote.c (remote_start_remote): Move code to upload tsv
3805 earlier.
3806
3807 2013-06-25 Yao Qi <yao@codesourcery.com>
3808 Hui Zhu <hui@codesourcery.com>
3809 Pedro Alves <palves@redhat.com>
3810
3811 PR breakpoints/15075
3812 PR breakpoints/15434
3813 * breakpoint.c (bpstat_stop_status): Call
3814 b->ops->after_condition_true.
3815 (update_dprintf_command_list): Don't append "continue" command
3816 to the command list of dprintf breakpoint.
3817 (base_breakpoint_after_condition_true): New function.
3818 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3819 (dprintf_after_condition_true): New function.
3820 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3821 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3822
3823 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3824
3825 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3826 (ALLDEPFILES): Add msp430-tdep.c.
3827 * configure.tgt (msp430*-*-elf): New target.
3828 * msp430-tdep.c: New file.
3829
3830 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3831
3832 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3833 microMIPS synthetic symbols.
3834
3835 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3836
3837 * objfiles.h (pc_in_section): New prototype.
3838 (in_plt_section): Remove name argument, replace prototype with
3839 static inline function.
3840 * mips-tdep.h: Include "objfiles.h".
3841 (in_mips_stubs_section): New function.
3842 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3843 in_solib_call_trampoline member.
3844 (hppa_in_solib_call_trampoline): Remove name argument.
3845 * objfiles.c (pc_in_section): New function.
3846 (in_plt_section): Remove function.
3847 * mips-linux-tdep.c: Include "objfiles.h".
3848 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3849 name argument. Return 1 rather than the low 16-bit halfword of
3850 any instruction examined.
3851 (mips_linux_in_dynsym_resolve_code): Update
3852 mips_linux_in_dynsym_stub call accordingly.
3853 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3854 rather than an equivalent hand-coded sequence.
3855 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3856 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3857 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3858 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3859 in_opd_section.
3860 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3861 on call to tdep->in_solib_call_trampoline.
3862 (hppa_in_solib_call_trampoline): Remove name argument, update
3863 according to in_plt_section change.
3864 (hppa_skip_trampoline_code): Update according to in_plt_section
3865 change.
3866 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3867 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3868 Likewise.
3869 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3870 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3871 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3872 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3873 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3874 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3875 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3876 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3877 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3878 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3879 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3880 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3881 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3882
3883 2013-06-24 Joel Brobecker <brobecker@adacore.com>
3884
3885 * common/create-version.sh: Fix expansion of $host_alias
3886 and $target_alias in generation of HOST_NAME and TARGET_NAME
3887 (resp.).
3888
3889 2013-06-24 Tom Tromey <tromey@redhat.com>
3890
3891 * common/create-version.sh: New file.
3892 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3893 create-version.sh.
3894 (HFILES_NO_SRCDIR): Use common/version.h.
3895 * version.in: Move to ...
3896 * common/version.in: ... here. Replace date with "DATE".
3897 * version.h: Move to ...
3898 * common/version.h: ... here.
3899
3900 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3901
3902 * gdb/gnulib/Makefile.in: Update date in copyright header.
3903 * gdb/gnulib/configure.ac: Ditto.
3904 * gdb/gnulib/update-gnulib.sh: Ditto.
3905
3906 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3907
3908 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3909 "gdb/gnulib/import".
3910
3911 2013-06-21 Will Newton <will.newton@linaro.org>
3912
3913 * doublest.c (ldfrexp): Remove function.
3914 (convert_doublest_to_floatformat): Call frexpl instead of
3915 ldfrexp.
3916
3917 2013-06-21 Will Newton <will.newton@linaro.org>
3918
3919 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3920 * gnulib/aclocal.m4: Regenerate.
3921 * gnulib/config.in: Regenerate.
3922 * gnulib/configure: Regenerate.
3923 * gnulib/import/Makefile.am: Update.
3924 * gnulib/import/Makefile.in: Update.
3925 * gnulib/import/m4/gnulib-cache.m4: Update.
3926 * gnulib/import/m4/gnulib-comp.m4: Update.
3927 * gnulib/import/float+.h: Import.
3928 * gnulib/import/float.c: Import.
3929 * gnulib/import/float.in.h: Import.
3930 * gnulib/import/fpucw.h: Import.
3931 * gnulib/import/frexp.c: Import.
3932 * gnulib/import/frexpl.c: Import.
3933 * gnulib/import/isnan.c: Import.
3934 * gnulib/import/isnand-nolibm.h: Import.
3935 * gnulib/import/isnand.c: Import.
3936 * gnulib/import/isnanl-nolibm.h: Import.
3937 * gnulib/import/isnanl.c: Import.
3938 * gnulib/import/itold.c: Import.
3939 * gnulib/import/m4/exponentd.m4: Import.
3940 * gnulib/import/m4/exponentl.m4: Import.
3941 * gnulib/import/m4/float_h.m4: Import.
3942 * gnulib/import/m4/fpieee.m4: Import.
3943 * gnulib/import/m4/frexp.m4: Import.
3944 * gnulib/import/m4/frexpl.m4: Import.
3945 * gnulib/import/m4/isnand.m4: Import.
3946 * gnulib/import/m4/isnanl.m4: Import.
3947 * gnulib/import/m4/math_h.m4: Import.
3948 * gnulib/import/math.c: Import.
3949 * gnulib/import/math.in.h: Import.
3950
3951 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3952
3953 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3954 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3955 signature_INTEL_edx comparisons.
3956
3957 2013-06-20 Doug Evans <dje@google.com>
3958
3959 symtab/15652
3960 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3961 All callers updated.
3962 (open_dwp_file): If we can't find the dwp file, search the basename
3963 in debug-file-directory.
3964
3965 * dwarf2read.c (struct dwp_file): Fix comment.
3966 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3967
3968 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3969 better.
3970
3971 2013-06-20 Yao Qi <yao@codesourcery.com>
3972
3973 * breakpoint.c (create_breakpoint): Fix code indentation.
3974
3975 2013-06-20 Yao Qi <yao@codesourcery.com>
3976
3977 * breakpoint.c (create_breakpoints_sal_default): Remove
3978 parameter 'lsal'. Update declaration.
3979 (bkpt_create_breakpoints_sal): Caller update.
3980 (tracepoint_create_breakpoints_sal): Likewise.
3981
3982 2013-06-20 Pedro Alves <pedro@codesourcery.com>
3983 Yao Qi <yao@codesourcery.com>
3984
3985 * NEWS: Mention the new option '--skip-unavailable' of command
3986 -data-list-register-values.
3987 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3988 --skip-unavailable option. Adjust to use output_register.
3989 (output_register): Add new 'skip_unavailable' parameter.
3990 Handle it.
3991
3992 2013-06-19 Mike Frysinger <vapier@gentoo.org>
3993
3994 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3995 common/i386-gcc-cpuid.h.
3996 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3997 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3998 Copy the latest version from upstream gcc.
3999 * common/linux-btrace.c: Include i386-cpuid.h.
4000 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4001 call to i386_cpuid.
4002 (cpu_supports_btrace): Likewise.
4003 * go32-nat.c: Include i386-cpuid.h.
4004 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4005
4006 2013-06-19 Doug Evans <dje@google.com>
4007
4008 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4009 (get_section_index): Ditto.
4010
4011 2013-06-19 Tom Tromey <tromey@redhat.com>
4012
4013 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4014 "dprintf" help.
4015
4016 2013-06-18 Doug Evans <dje@google.com>
4017
4018 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4019 before using it.
4020 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4021 Move test of cu_index closer to use. Print complaint if cu_index
4022 is bad.
4023
4024 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4025
4026 * machoread.c (oso_vector): Delete this global.
4027 (macho_register_oso): Add new parameter "oso_vector_ptr".
4028 Use it instead of the "oso_vector" global.
4029 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4030 (macho_symfile_read): Use a local oso_vector, to be free'ed
4031 at the end of this function, in place of the old "oso_vector"
4032 global. Update various function calls accordingly. Use one
4033 single cleanup chain for the entire function.
4034
4035 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4036
4037 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4038 DWARF2_PER_OBJFILE by uses of DATA instead.
4039
4040 2013-06-18 Tom Tromey <tromey@redhat.com>
4041
4042 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4043 argument.
4044 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4045 Special case signals other than GDB_SIGNAL_TRAP.
4046 (explains_signal_watchpoint): New function.
4047 (base_breakpoint_explains_signal): Add 'sig' argument.
4048 (initialize_breakpoint_ops): Set 'explains_signal' method for
4049 watchpoints.
4050 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4051 signal argument.
4052 (bpstat_explains_signal): Likewise.
4053 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4054
4055 2013-06-18 Tom Tromey <tromey@redhat.com>
4056
4057 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4058
4059 2013-06-18 Tom Tromey <tromey@redhat.com>
4060
4061 * python/python.c (finish_python_initialization): Decref
4062 'pythondir' on failure path as well.
4063
4064 2013-06-18 Tom Tromey <tromey@redhat.com>
4065
4066 PR symtab/15391:
4067 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4068 after taking bits_to_skip into account. Sign extend byte_offset.
4069 * utils.h (gdb_sign_extend): Declare.
4070 * utils.c (gdb_sign_extend): New function.
4071
4072 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4073
4074 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4075
4076 2013-06-17 Pierre Muller <muller@sourceware.org>
4077
4078 * corelow.c (core_open): Print GDB signal name instead of target
4079 signal number.
4080
4081 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4082
4083 * .gitignore: Add /gcore.
4084
4085 2013-06-13 Doug Evans <dje@google.com>
4086
4087 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4088 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4089
4090 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4091
4092 * stack.c (backtrace_command_1): Fix indentation.
4093
4094 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4095
4096 * window-nat.c (thread_rec): Add missing empty line after
4097 local variable declaration.
4098
4099 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4100
4101 * windows-nat.c (thread_rec): Revert format used to print
4102 error code returned by SuspendThread from %d back to %u.
4103
4104 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4105
4106 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4107 ID in debug trace.
4108 (get_windows_debug_event): Likewise, for all debug traces.
4109
4110 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4111
4112 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4113 warning message.
4114
4115 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4116 Yao Qi <yao@codesourcery.com>
4117
4118 * mi/mi-main.c (get_register): Remove declaration.
4119 (output_register): Declare.
4120 (mi_cmd_data_list_register_values): Remove local variable
4121 'tuple_cleanup'. Move some code into output_register.
4122 (get_register): Renamed to ...
4123 (output_register): ... this. Output the register's
4124 "number" ui_out tuple here.
4125
4126 2013-06-07 Pedro Alves <palves@redhat.com>
4127
4128 * darwin-nat.c: Fix formating in copyright header.
4129 * darwin-nat.h: Likewise.
4130 * gnu-nat.c: Likewise.
4131 * machoread.c: Likewise.
4132
4133 2013-06-07 Pedro Alves <palves@redhat.com>
4134
4135 PR server/14823
4136 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4137 static. Output a global target description pointer.
4138 (init_registers_${name}): Adjust to initialize a
4139 target description structure.
4140
4141 2013-06-07 Will Newton <will.newton@linaro.org>
4142
4143 * printcmd.c (build_address_symbolic): Call
4144 gdbarch_addr_bits_remove for text minimal symbols.
4145
4146 2013-06-07 Will Newton <will.newton@linaro.org>
4147
4148 * MAINTAINERS: Add myself to Write After Approval.
4149
4150 2013-06-07 Yao Qi <yao@codesourcery.com>
4151
4152 * tracepoint.c (start_tracing): Move code to ...
4153 (trace_reset_local_state): ... here. New.
4154 (disconnect_tracing): Don't call set_current_traceframe,
4155 set_tracepoint_num, and set_traceframe_context. Call
4156 trace_reset_local_state instead.
4157 (tfile_close): Call trace_reset_local_state.
4158 * ctf.c (ctf_close): Likewise.
4159 * remote.c (remote_close): Likewise.
4160 * tracepoint.h (trace_reset_local_state): Declare.
4161
4162 2013-06-06 Doug Evans <dje@google.com>
4163
4164 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4165 and fix header docs.
4166
4167 2013-06-05 Doug Evans <dje@google.com>
4168 Keith Seitz <keiths@redhat.com>
4169
4170 PR 15519
4171 * cp-namespace.c (find_symbol_in_baseclass): Call
4172 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4173 Check result of call to lookup_symbol_static.
4174 Call lookup_static_symbol_aux unconditionally.
4175 Call check_typedef on base types before accessing them.
4176 (cp_lookup_nested_symbol): Fix comment.
4177
4178 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4179
4180 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4181 minimal symbols pointing to function descriptors.
4182
4183 2013-06-05 Tom Tromey <tromey@redhat.com>
4184
4185 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4186
4187 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4188 Pedro Alves <palves@redhat.com>
4189
4190 * remote.c (remote_wait_as): Restore signal handler before returning
4191 when GDB gets a notification.
4192
4193 2013-06-04 Gary Benson <gbenson@redhat.com>
4194
4195 PR 2328
4196 * breakpoint.h (handle_solib_event): Moved function declaration
4197 to solib.h.
4198 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4199 (bpstat_stop_status): Pass new argument to handle_solib_event.
4200 * solib.h (update_solib_breakpoints): New function declaration.
4201 (handle_solib_event): Moved function declaration from
4202 breakpoint.h.
4203 * solib.c (update_solib_breakpoints): New function.
4204 (handle_solib_event): Moved function from breakpoint.c.
4205 Updated to call solib_ops->handle_event if not NULL.
4206 * solist.h (target_so_ops): New fields "update_breakpoints" and
4207 "handle_event".
4208 * infrun.c (set_stop_on_solib_events): New function.
4209 (_initialize_infrun): Use the above for "set
4210 stop-on-solib-events".
4211 (handle_inferior_event): Pass new argument to handle_solib_event.
4212 * solib-svr4.c (probe.h): New include.
4213 (svr4_free_library_list): New forward declaration.
4214 (probe_action): New enum.
4215 (probe_info): New struct.
4216 (probe_info): New static variable.
4217 (NUM_PROBES): New definition.
4218 (svr4_info): New fields "using_xfer", "probes_table" and
4219 "solib_list".
4220 (free_probes_table): New function.
4221 (free_solib_list): New function.
4222 (svr4_pspace_data_cleanup): Free probes table and solib list.
4223 (svr4_copy_library_list): New function.
4224 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4225 (svr4_read_so_list): New parameter "prev_lm".
4226 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4227 (svr4_current_sos): New function.
4228 (probe_and_action): New struct.
4229 (hash_probe_and_action): New function.
4230 (equal_probe_and_action): Likewise.
4231 (register_solib_event_probe): Likewise.
4232 (solib_event_probe_at): Likewise.
4233 (solib_event_probe_action): Likewise.
4234 (solist_update_full): Likewise.
4235 (solist_update_incremental): Likewise.
4236 (disable_probes_interface_cleanup): Likewise.
4237 (svr4_handle_solib_event): Likewise.
4238 (svr4_update_solib_event_breakpoint): Likewise.
4239 (svr4_update_solib_event_breakpoints): Likewise.
4240 (svr4_create_solib_event_breakpoints): Likewise.
4241 (enable_break): Free probes table before creating breakpoints.
4242 Use svr4_create_solib_event_breakpoints to create breakpoints.
4243 (svr4_solib_create_inferior_hook): Free the solib list.
4244 (_initialize_svr4_solib): Initialise
4245 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4246
4247 2013-06-04 Gary Benson <gbenson@redhat.com>
4248
4249 * target.h (target_ops): New field
4250 "to_augmented_libraries_svr4_read".
4251 (target_augmented_libraries_svr4_read): New macro.
4252 * target.c (update_current_target): Handle
4253 to_augmented_libraries_svr4_read.
4254 * remote.c (remote_state): New field
4255 "augmented_libraries_svr4_read".
4256 (remote_augmented_libraries_svr4_read_feature): New function.
4257 (remote_protocol_features): Add entry for
4258 "augmented-libraries-svr4-read".
4259 (remote_augmented_libraries_svr4_read): New function.
4260 (init_remote_ops): Initialize
4261 remote_ops.to_augmented_libraries_svr4_read.
4262
4263 2013-06-04 Gary Benson <gbenson@redhat.com>
4264
4265 * NEWS: Update.
4266
4267 2013-06-04 Gary Benson <gbenson@redhat.com>
4268
4269 * objfiles.h (inhibit_section_map_updates): New function
4270 declaration.
4271 (resume_section_map_updates): Likewise.
4272 (resume_section_map_updates_cleanup): Likewise.
4273 * objfiles.c (objfile_pspace_info): Removed field
4274 "objfiles_changed_p". New fields "new_objfiles_available",
4275 "section_map_dirty" and "inhibit_updates".
4276 (allocate_objfile): Set new_objfiles_available.
4277 (free_objfile): Set section_map_dirty.
4278 (objfile_relocate1): Likewise.
4279 (in_plt_section): Likewise.
4280 (find_pc_section): Update the conditions under which the
4281 section map will be updated.
4282 (inhibit_section_map_updates): New function.
4283 (resume_section_map_updates): Likewise.
4284 (resume_section_map_updates_cleanup): Likewise.
4285
4286 2013-06-04 Gary Benson <gbenson@redhat.com>
4287
4288 * probe.h (get_probe_argument_count): New declaration.
4289 (evaluate_probe_argument): Likewise.
4290 * probe.c (get_probe_argument_count): New function.
4291 (evaluate_probe_argument): Likewise.
4292 (probe_safe_evaluate_at_pc): Use the above new functions.
4293
4294 2013-06-04 Alan Modra <amodra@gmail.com>
4295
4296 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4297 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4298 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4299 target mem reads on optional insns.
4300 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4301 ppc_insns_match_pattern calls.
4302 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4303 Add match for power7 thread safety insns, and new order of
4304 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4305 invocation in comment, and update rest of comment.
4306 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4307 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4308 (ppc64_standard_linkage2_target): Update insn offsets.
4309 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4310 stubs first. Update calls.
4311
4312 2013-06-04 Yao Qi <yao@codesourcery.com>
4313
4314 * solib.c (solib_find): Don't need dir separator if path has
4315 drive spec.
4316
4317 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4318
4319 Revert (indirectly causes a SIGSEGV):
4320 * machoread.c (macho_symfile_read): Assign first cleanup to
4321 'back_to'.
4322
4323 2013-06-03 Yao Qi <yao@codesourcery.com>
4324
4325 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4326 mi-parse.c. Make them static.
4327 (mi_all_values): Likewise.
4328 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4329 mi_parse_print_values. Make it external.
4330 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4331 Remove the declarations.
4332 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4333 * mi/mi-parse.h (mi_parse_print_values): Declare.
4334 * mi/mi-cmd-stack.c: Include mi-parse.h.
4335 (parse_print_values): Remove
4336 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4337 of parse_print_values.
4338 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4339
4340 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4341 Yao Qi <yao@codesourcery.com>
4342
4343 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4344 (encode_actions): Move code to ...
4345 (all_tracepoint_actions_and_cleanup): ... here. New.
4346 (trace_dump_command): Likewise.
4347
4348 2013-05-30 Tom Tromey <tromey@redhat.com>
4349
4350 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4351
4352 2013-05-30 Tom Tromey <tromey@redhat.com>
4353
4354 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4355 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4356 'old_chain' argument. Add 'parser_result' argument.
4357 (gdb_xml_create_parser_and_cleanup): Remove old version.
4358 (gdb_xml_parse_quick): Update.
4359 (xml_process_xincludes): Update.
4360 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4361 declare.
4362
4363 2013-05-30 Tom Tromey <tromey@redhat.com>
4364
4365 * probe.c (collect_probes): Check arguments for NULL before
4366 calling compile_rx_or_error.
4367 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4368 Remove NULL return.
4369
4370 2013-05-30 Tom Tromey <tromey@redhat.com>
4371
4372 * infrun.c (adjust_pc_after_break): Introduce an outer null
4373 cleanup.
4374
4375 2013-05-30 Tom Tromey <tromey@redhat.com>
4376
4377 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4378
4379 2013-05-30 Tom Tromey <tromey@redhat.com>
4380
4381 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4382 for 'old_chain'. Do not check 'head' before processing
4383 cleanups.
4384
4385 2013-05-30 Tom Tromey <tromey@redhat.com>
4386
4387 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4388 "cleanup_tuple".
4389
4390 2013-05-30 Tom Tromey <tromey@redhat.com>
4391
4392 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4393 inner scope. Unconditionally call do_cleanups.
4394
4395 2013-05-30 Tom Tromey <tromey@redhat.com>
4396
4397 * source.c (find_and_open_source): Call do_cleanups.
4398
4399 2013-05-30 Tom Tromey <tromey@redhat.com>
4400
4401 * linux-thread-db.c (thread_db_load_search): Unconditionally
4402 call do_cleanups.
4403
4404 2013-05-30 Tom Tromey <tromey@redhat.com>
4405
4406 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4407 for 'cleanup'; instead use a later one.
4408
4409 2013-05-30 Tom Tromey <tromey@redhat.com>
4410
4411 * python/py-breakpoint.c (bppy_get_commands): Use
4412 explicit, unconditional return.
4413 * python/py-frame.c (frapy_read_var): Likewise.
4414 * python/python.c (gdbpy_decode_line): Likewise.
4415
4416 2013-05-30 Tom Tromey <tromey@redhat.com>
4417
4418 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4419 do_cleanups on all return paths.
4420
4421 2013-05-30 Tom Tromey <tromey@redhat.com>
4422
4423 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4424
4425 2013-05-30 Tom Tromey <tromey@redhat.com>
4426
4427 * stabsread.c (read_struct_type): Call do_cleanups along
4428 all return paths.
4429
4430 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4431
4432 * mips-linux-tdep.c: Adjust formatting throughout.
4433
4434 2013-05-30 Tom Tromey <tromey@redhat.com>
4435
4436 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4437 along all return paths.
4438
4439 2013-05-30 Tom Tromey <tromey@redhat.com>
4440
4441 * symfile.c (find_separate_debug_file): Call do_cleanups
4442 along all return paths.
4443
4444 2013-05-30 Tom Tromey <tromey@redhat.com>
4445
4446 * symtab.c (search_symbols): Introduce a null cleanup for
4447 'retval_chain'.
4448
4449 2013-05-30 Tom Tromey <tromey@redhat.com>
4450
4451 * python/py-value.c (valpy_binop): Call do_cleanups before
4452 exiting loop.
4453
4454 2013-05-30 Tom Tromey <tromey@redhat.com>
4455
4456 * python/py-prettyprint.c (print_children): Remove extra
4457 do_cleanups call.
4458
4459 2013-05-30 Tom Tromey <tromey@redhat.com>
4460
4461 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4462 all return paths.
4463
4464 2013-05-30 Tom Tromey <tromey@redhat.com>
4465
4466 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4467 along all return paths.
4468
4469 2013-05-30 Tom Tromey <tromey@redhat.com>
4470
4471 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4472 call do_cleanups.
4473
4474 2013-05-30 Tom Tromey <tromey@redhat.com>
4475
4476 * varobj.c (c_value_of_root): Call do_cleanups along all
4477 return paths.
4478
4479 2013-05-30 Tom Tromey <tromey@redhat.com>
4480
4481 * tracepoint.c (trace_dump_command): Unconditionally call
4482 do_cleanups.
4483
4484 2013-05-30 Tom Tromey <tromey@redhat.com>
4485
4486 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4487 do_cleanups earlier.
4488
4489 2013-05-30 Tom Tromey <tromey@redhat.com>
4490
4491 * machoread.c (macho_symfile_read): Assign first cleanup to
4492 'back_to'.
4493
4494 2013-05-30 Tom Tromey <tromey@redhat.com>
4495
4496 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4497
4498 2013-05-30 Tom Tromey <tromey@redhat.com>
4499
4500 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4501
4502 2013-05-30 Tom Tromey <tromey@redhat.com>
4503
4504 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4505 call discard_cleanups.
4506 (inf_ptrace_attach): Likewise.
4507
4508 2013-05-30 Tom Tromey <tromey@redhat.com>
4509
4510 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4511 return paths.
4512 (mips_initialize): Likewise.
4513 (common_open): Call do_cleanups.
4514
4515 2013-05-30 Tom Tromey <tromey@redhat.com>
4516
4517 * utils.c (internal_vproblem): Call do_cleanups.
4518
4519 2013-05-30 Tom Tromey <tromey@redhat.com>
4520
4521 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4522
4523 2013-05-30 Tom Tromey <tromey@redhat.com>
4524
4525 * cli/cli-script.c (setup_user_args): Don't return after error.
4526
4527 2013-05-30 Tom Tromey <tromey@redhat.com>
4528
4529 * somread.c (som_symtab_read): Call do_cleanups.
4530
4531 2013-05-30 Tom Tromey <tromey@redhat.com>
4532
4533 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4534
4535 2013-05-30 Tom Tromey <tromey@redhat.com>
4536
4537 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4538 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4539 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4540 * source.c (show_substitute_path_command): Call do_cleanups.
4541 (unset_substitute_path_command, set_substitute_path_command):
4542 Likewise.
4543 * symfile.c (load_command): Call do_cleanups.
4544
4545 2013-05-30 Tom Tromey <tromey@redhat.com>
4546
4547 * contrib/cleanup_check.py: New file.
4548 * contrib/gcc-with-excheck: Add option parsing.
4549
4550 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4551
4552 * windows-nat.c (windows_delete_thread): Add missing space
4553 in cast expression.
4554
4555 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4556
4557 * inferior.c (top level): Include tilde.h.
4558 (add_inferior_command): Call tilde_expand on the value of 'exec'
4559 argument.
4560
4561 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4562 Yao Qi <yao@codesourcery.com>
4563
4564 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4565 Caller update.
4566 (encode_actions): Likewise.
4567 * remote.c (remote_download_tracepoint): Caller update.
4568 * tracepoint.h (encode_actions): Update declaration.
4569
4570 2013-05-30 Pedro Alves <palves@redhat.com>
4571
4572 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4573 pointer.
4574
4575 2013-05-30 Yao Qi <yao@codesourcery.com>
4576
4577 * remote.c (remote_check_symbols): Remove unused parameter
4578 'objfile'.
4579 Declaration update.
4580 (remote_start_remote, remote_new_objfile): Caller update.
4581
4582 2013-05-30 Yao Qi <yao@codesourcery.com>
4583
4584 * mi/mi-cmds.c (mi_cmds): Define MI command
4585 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4586 DEF_MI_CMD_CLI.
4587
4588 2013-05-29 Pedro Alves <palves@redhat.com>
4589
4590 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4591 (remote_insert_watchpoint, remote_remove_watchpoint)
4592 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4593 (remote_verify_memory, compare_sections_command)
4594 (remote_search_memory): Set the general process/thread on the
4595 remote side.
4596
4597 2013-05-29 Pedro Alves <palves@redhat.com>
4598
4599 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4600 (_initialize_aarch64_tdep): Don't call
4601 initialize_tdesc_aarch64_without_fpu.
4602 * features/Makefile (WHICH): Remove reference to
4603 aarch64-without-fpu.
4604 * features/aarch64-without-fpu.c: Delete file.
4605 * regformats/aarch64-without-fpu.dat: Delete file.
4606
4607 2013-05-28 Yao Qi <yao@codesourcery.com>
4608
4609 * tracepoint.c (stringify_collection_list): Remove parameter
4610 'string'.
4611 (encode_actions): Caller update. Remove local variables.
4612
4613 2013-05-24 Yao Qi <yao@codesourcery.com>
4614
4615 * tracepoint.c (TFILE_PID): Remove.
4616 (tfile_open): Don't add thread and inferior.
4617 (tfile_close): Don't set 'inferior_ptid'. Don't call
4618 exit_inferior_silent.
4619 (tfile_thread_alive): Remove.
4620 (init_tfile_ops): Don't set field 'to_thread_alive' of
4621 tfile_ops.
4622
4623 2013-05-23 Doug Evans <dje@google.com>
4624
4625 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4626
4627 2013-05-23 Pedro Alves <palves@redhat.com>
4628
4629 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4630 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4631 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4632 Only define if HAVE_SOCKETS is defined.
4633 * configure.ac: Check for sys/socket.h.
4634 * config.in, configure: Regenerate.
4635
4636 2013-05-23 Pedro Alves <palves@redhat.com>
4637
4638 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4639 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4640 printing uint32_t variables.
4641
4642 2013-05-23 Pedro Alves <palves@redhat.com>
4643
4644 * NEWS: Mention GDBserver range stepping support.
4645
4646 2013-05-23 Yao Qi <yao@codesourcery.com>
4647 Pedro Alves <palves@redhat.com>
4648
4649 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4650 field.
4651 * infcmd.c (step_once, until_next_command): Enable range stepping.
4652 * infrun.c (displaced_step_prepare): Disable range stepping.
4653 (resume): Disable range stepping if stepping over a breakpoint or
4654 we have software watchpoints. If range stepping is enabled,
4655 assert the thread is in the stepping range.
4656 (clear_proceed_status_thread): Clear may_range_step.
4657 (handle_inferior_event): Disable range stepping as soon as we know
4658 the thread that hit the event. Re-enable it whenever we're going
4659 to step with a step range.
4660 * remote.c (struct vCont_action_support) <r>: New field.
4661 (use_range_stepping): New global.
4662 (remote_vcont_probe): Handle 'r' action.
4663 (append_resumption): Append an 'r' action if the thread may range
4664 step.
4665 (show_range_stepping): New function.
4666 (set_range_stepping): New function.
4667 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4668 'set range-stepping' and 'show range-stepping' commands.
4669 * NEWS: Mention range stepping, the new vCont;r action, and the
4670 new "set/show range-stepping" commands.
4671
4672 2013-05-23 Yao Qi <yao@codesourcery.com>
4673 Pedro Alves <palves@redhat.com>
4674
4675 * remote.c (struct vCont_action_support): New struct.
4676 (struct remote_state) <support_vCont_t>: Remove field.
4677 <vCont_actions_support>: New field.
4678 (remote_vcont_probe, remote_stop_ns): Update.
4679
4680 2013-05-23 Yao Qi <yao@codesourcery.com>
4681 Pedro Alves <palves@redhat.com>
4682
4683 * gdbthread.h (pc_in_thread_step_range): New declaration.
4684 * thread.c (pc_in_thread_step_range): New function.
4685 * infrun.c (handle_inferior_event): Use it.
4686
4687 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4688
4689 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4690 of sprintf.
4691
4692 2013-05-22 Keith Seitz <keiths@redhat.com>
4693
4694 * ada-lang.c (is_known_support_routine): Add explicit free of
4695 'func_name' from find_frame_funname.
4696 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4697 for func_name from find_frame_funname.
4698 * python/py-frame.c (frapy_name): Add explicit free of
4699 'name' from find_frame_funname.
4700 * stack.c (find_frame_funname): Add comment explaining that
4701 funcp must be freed by the caller.
4702 Return copy of symbol names instead of pointers.
4703 (print_frame): Add a cleanup for 'funname' from
4704 find_frame_funname.
4705 * stack.h (find_frame_funname): Remove "const" from
4706 'funname' parameter.
4707
4708 2013-05-22 Tom Tromey <tromey@redhat.com>
4709
4710 PR c++/15401:
4711 * c-valprint.c (c_value_print): Use value_addr for
4712 references. Convert back to reference type with value_ref.
4713
4714 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4715
4716 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4717 unloaded DLL, it will be done by handle_solib_event. See
4718 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4719 details.
4720
4721 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4722
4723 * ui-out.c: Create typedef ui_out_level_p and define vector
4724 operations for that type.
4725 (struct ui_out): Use a vector instead of an array.
4726 (current_level): Return level from a vector.
4727 (push_level): Create a level in a vector.
4728 (pop_level): Delete a level in a vector.
4729 (ui_out_new): Create initial level zero level, and store in a
4730 vector.
4731 (ui_out_destroy): Add vector cleanup.
4732
4733 2013-05-22 Pedro Alves <palves@redhat.com>
4734
4735 * python/python-internal.h (gdb_Py_DECREF): Tag with
4736 "ARI: editCase function".
4737
4738 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4739
4740 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4741
4742 2013-05-21 Pedro Alves <palves@redhat.com>
4743
4744 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4745 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4746 * python/py-utils.c (py_decref): Don't check for NULL before
4747 calling Py_DECREF.
4748
4749 2013-05-21 Pedro Alves <palves@redhat.com>
4750
4751 * python/py-utils.c (py_decref): Remove extra braces.
4752 (gdb_pymodule_addobject): Remove extra braces.
4753 * python-internal.h (gdb_Py_DECREF): New static inline function.
4754 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4755
4756 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4757
4758 * breakpoints.c (detach_breakpoints): Do not
4759 detach breakpoints locations with loc_type bp_loc_other.
4760
4761 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4762
4763 Workaround Python 2.6.
4764 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4765 a block.
4766
4767 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4768
4769 Code cleanup: constification.
4770 * solib.c (solib_ops): Make return type and ops variable type const.
4771 (set_solib_ops): Make the new_ops parameter and ops variable const.
4772 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4773 (solib_add, solib_keep_data_in_core, clear_solib)
4774 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4775 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4776 const.
4777 * solib.h (set_solib_ops): Make the new_ops parameter const.
4778
4779 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4780
4781 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4782 variable.
4783 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4784 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4785 (SYSTEM_GDBINIT_FILES): New variables.
4786 (all): Add stamp-system-gdbinit.
4787 (stamp-system-gdbinit): New rule.
4788 (clean-system-gdbinit, install-system-gdbinit)
4789 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4790 (install-only): Add dependency on install-system-gdbinit.
4791 (uninstall): Add dependency on uninstall-system-gdbinit.
4792 (clean): Add dependency on clean-system-gdbinit.
4793 * system-gdbinit/elinos.py: New file.
4794 * system-gdbinit/wrs-linux.py: New file.
4795
4796 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4797
4798 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4799
4800 2013-05-21 Hui Zhu <hui@codesourcery.com>
4801
4802 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4803 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4804 * mi/mi-cmd-break.c (ctype.h): New include.
4805 (gdb_obstack.h): New include.
4806 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4807 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4808 (mi_cmd_dprintf_insert): New.
4809 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4810 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4811
4812 2013-05-20 Tom Tromey <tromey@redhat.com>
4813
4814 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4815
4816 2013-05-20 Tom Tromey <tromey@redhat.com>
4817
4818 * python/py-value.c (valpy_get_dynamic_type): Simplify
4819 dynamic_type assignment. Use Py_XINCREF.
4820
4821 2013-05-20 Tom Tromey <tromey@redhat.com>
4822
4823 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4824
4825 2013-05-20 Tom Tromey <tromey@redhat.com>
4826
4827 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4828 (gdbpy_selected_frame): Move object-construction code
4829 out of TRY_CATCH.
4830
4831 2013-05-20 Tom Tromey <tromey@redhat.com>
4832
4833 * python/py-arch.c (gdbpy_initialize_arch): Use
4834 gdb_pymodule_addobject.
4835 * python/py-block.c (gdbpy_initialize_blocks): Use
4836 gdb_pymodule_addobject.
4837 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4838 gdb_pymodule_addobject.
4839 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4840 gdb_pymodule_addobject.
4841 * python/py-event.c (gdbpy_initialize_event_generic): Use
4842 gdb_pymodule_addobject.
4843 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4844 gdb_pymodule_addobject.
4845 * python/py-evts.c (add_new_registry): Use
4846 gdb_pymodule_addobject.
4847 (gdbpy_initialize_py_events): Likewise.
4848 * python/py-finishbreakpoint.c
4849 (gdbpy_initialize_finishbreakpoints): Use
4850 gdb_pymodule_addobject.
4851 * python/py-frame.c (gdbpy_initialize_frames): Use
4852 gdb_pymodule_addobject.
4853 * python/py-function.c (gdbpy_initialize_functions): Use
4854 gdb_pymodule_addobject.
4855 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4856 gdb_pymodule_addobject.
4857 * python/py-infthread.c (gdbpy_initialize_thread): Use
4858 gdb_pymodule_addobject.
4859 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4860 gdb_pymodule_addobject.
4861 * python/py-param.c (gdbpy_initialize_parameters): Use
4862 gdb_pymodule_addobject.
4863 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4864 gdb_pymodule_addobject.
4865 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4866 gdb_pymodule_addobject.
4867 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4868 gdb_pymodule_addobject.
4869 * python/py-type.c (gdbpy_initialize_types): Use
4870 gdb_pymodule_addobject.
4871 * python/py-utils.c (gdb_pymodule_addobject): New function.
4872 * python/py-value.c (gdbpy_initialize_values): Use
4873 gdb_pymodule_addobject.
4874 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4875 * python/python.c (_initialize_python): Use
4876 gdb_pymodule_addobject.
4877
4878 2013-05-20 Tom Tromey <tromey@redhat.com>
4879
4880 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4881 * python/py-param.c (get_set_value, get_show_value): Use
4882 explicit decrefs.
4883 * python/python.c (start_type_printers, apply_type_printers):
4884 Use explicit decrefs.
4885
4886 2013-05-20 Tom Tromey <tromey@redhat.com>
4887
4888 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4889 incref the module.
4890
4891 2013-05-20 Tom Tromey <tromey@redhat.com>
4892
4893 * python/python.c (gdbpy_run_events): Decref the result
4894 of PyObject_CallObject.
4895
4896 2013-05-20 Tom Tromey <tromey@redhat.com>
4897
4898 * python/py-symtab.c (set_sal): Use
4899 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4900 (symtab_and_line_to_sal_object): Update.
4901
4902 2013-05-20 Tom Tromey <tromey@redhat.com>
4903
4904 * python/py-param.c (compute_enum_values): Decref 'item'.
4905
4906 2013-05-20 Tom Tromey <tromey@redhat.com>
4907
4908 * mi/mi-main.c: Include python-internal.h.
4909 (mi_cmd_list_features): Check gdb_python_initialized.
4910 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4911 (python_inferior_exit, python_new_objfile, add_thread_object)
4912 (delete_thread_object, py_free_inferior): Check
4913 gdb_python_initialized.
4914 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4915 gdb_python_initialized.
4916 * python/py-type.c (save_objfile_types): Check
4917 gdb_python_initialized.
4918 * python/python-internal.h (gdb_python_initialized): Declare.
4919 * python/python.c (ensure_python_env): Throw exception if
4920 Python not initialized.
4921 (before_prompt_hook, source_python_script_for_objfile)
4922 (start_type_printers, apply_type_printers,
4923 free_type_printers): Check gdb_python_initialized.
4924 * varobj.c (varobj_get_display_hint)
4925 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4926 (install_new_value_visualizer, varobj_set_visualizer)
4927 (value_get_print_value): Check gdb_python_initialized.
4928
4929 2013-05-20 Tom Tromey <tromey@redhat.com>
4930
4931 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4932 Check errors.
4933 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4934 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4935 Check errors.
4936 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4937 Check errors.
4938 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4939 Check errors.
4940 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4941 Check errors.
4942 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4943 init function to return 'int'.
4944 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4945 Return 'int'. Check errors.
4946 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4947 Check errors.
4948 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4949 Return 'int'. Check errors.
4950 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4951 Check errors.
4952 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4953 Check errors.
4954 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4955 Check errors.
4956 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4957 Check errors.
4958 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4959 Check errors.
4960 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4961 Check errors.
4962 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4963 Check errors.
4964 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4965 Check errors.
4966 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4967 Check errors.
4968 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4969 Check errors.
4970 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4971 Check errors.
4972 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4973 Check errors.
4974 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4975 Check errors.
4976 * python/python-internal.h (gdbpy_initialize_auto_load,
4977 gdbpy_initialize_values, gdbpy_initialize_frames,
4978 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4979 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4980 gdbpy_initialize_blocks, gdbpy_initialize_types,
4981 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4982 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4983 gdbpy_initialize_finishbreakpoints,
4984 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4985 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4986 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4987 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4988 gdbpy_initialize_signal_event,
4989 gdbpy_initialize_breakpoint_event,
4990 gdbpy_initialize_continue_event,
4991 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4992 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4993 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4994 * python/python.c (gdb_python_initialized): New global.
4995 (gdbpy_initialize_events): Return 'int'. Check errors.
4996 (_initialize_python): Check errors. Set
4997 gdb_python_initialized.
4998
4999 2013-05-20 Tom Tromey <tromey@redhat.com>
5000
5001 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5002 Decref the reslut of PyObject_CallMethod.
5003
5004 2013-05-20 Tom Tromey <tromey@redhat.com>
5005
5006 * python/py-event.c (gdbpy_initialize_event_generic): Return
5007 early if PyType_Ready fails.
5008
5009 2013-05-20 Tom Tromey <tromey@redhat.com>
5010
5011 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5012 as 'default' in the switch.
5013
5014 2013-05-20 Tom Tromey <tromey@redhat.com>
5015
5016 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5017 get_addr_from_python calls out of TRY_CATCH.
5018 (infpy_write_memory, infpy_search_memory): Likewise.
5019 * python/py-utils.c (get_addr_from_python): Return negative
5020 value on error. Use TRY_CATCH.
5021 * python/python-internal.h (get_addr_from_python): Use
5022 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5023
5024 2013-05-20 Tom Tromey <tromey@redhat.com>
5025
5026 * python/py-event.c (evpy_emit_event): Decref the
5027 result of PyObject_CallFunctionObjArgs.
5028
5029 2013-05-20 Tom Tromey <tromey@redhat.com>
5030
5031 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5032 Correctly decref.
5033
5034 2013-05-20 Tom Tromey <tromey@redhat.com>
5035
5036 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5037
5038 2013-05-20 Tom Tromey <tromey@redhat.com>
5039
5040 * python/py-event.h (gdbpy_initialize_event_generic): Use
5041 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5042 * python/py-evts.c (add_new_registry): Use
5043 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5044 * python/python-internal.h
5045 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5046
5047 2013-05-20 Tom Tromey <tromey@redhat.com>
5048
5049 * python/py-arch.c (archpy_disassemble): Update.
5050 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5051 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5052 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5053 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5054 macro.
5055 (GDB_PY_HANDLE_EXCEPTION): Update.
5056 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5057
5058 2013-05-20 Tom Tromey <tromey@redhat.com>
5059
5060 * python/python-internal.h (events_object_type): Remove.
5061
5062 2013-05-20 Tom Tromey <tromey@redhat.com>
5063
5064 * python/py-event.h (evpy_emit_event): Use
5065 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5066 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5067 New macro.
5068
5069 2013-05-20 Tom Tromey <tromey@redhat.com>
5070
5071 * py-evtregistry.c (create_event_object): Decref
5072 eventregistry_object if PyList_New fails.
5073
5074 2013-05-20 Tom Tromey <tromey@redhat.com>
5075
5076 * py-cmd.c (gdbpy_string_to_argv): Check result of
5077 PyList_New.
5078
5079 2013-05-20 Tom Tromey <tromey@redhat.com>
5080
5081 * python/python.c (before_prompt_hook): Add cleanup to
5082 decref 'hook'.
5083
5084 2013-05-20 Tom Tromey <tromey@redhat.com>
5085
5086 * python/py-function.c (fnpy_init): Decref result of
5087 PyObject_GetAttrString.
5088
5089 2013-05-20 Tom Tromey <tromey@redhat.com>
5090
5091 * python/py-threadevent.c (get_event_thread): Use
5092 CPYCHECKER_RETURNS_BORROWED_REF.
5093 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5094 New define.
5095 (pspace_to_pspace_object, objfile_to_objfile_object)
5096 (find_thread_object): Use it.
5097
5098 2013-05-20 Tom Tromey <tromey@redhat.com>
5099
5100 * python/py-arch.c (arch_object_type): Use
5101 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5102 * python/py-block.c (block_syms_iterator_object_type):
5103 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5104 * python/py-bpevent.c (breakpoint_event_object_type):
5105 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5106 * python/py-cmd.c (cmdpy_object_type): Use
5107 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5108 * python/py-continueevent.c (continue_event_object_type):
5109 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5110 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5111 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5112 * python/py-events.h (thread_event_object_type):
5113 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5114 * python/py-evtregistry.c (eventregistry_object_type): Use
5115 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5116 * python/py-exitedevent.c (exited_event_object_type):
5117 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5118 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5119 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5120 * python/py-function.c (fnpy_object_type): Use
5121 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5122 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5123 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5124 * python/py-infthread.c (thread_object_type): Use
5125 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5126 * python/py-lazy-string.c (lazy_string_object_type):
5127 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5128 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5129 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5130 * python/py-objfile.c (objfile_object_type): Use
5131 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5132 * python/py-param.c (parmpy_object_type):
5133 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5134 * python/py-progspace.c (pspace_object_type):
5135 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5136 * python/py-signalevent.c (signal_event_object_type):
5137 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5138 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5139 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5140 * python/py-type.c (type_object_type, field_object_type)
5141 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5142 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5143 define.
5144 (value_object_type, block_object_type, symbol_object_type)
5145 (event_object_type, stop_event_object_type, breakpoint_object_type)
5146 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5147
5148 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5149
5150 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5151 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5152
5153 2013-05-20 Doug Evans <dje@google.com>
5154
5155 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5156 For Fission.
5157 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5158 reading_dwo_directly.
5159 (struct signatured_type): New member dwo_unit.
5160 (struct die_reader_specs): New member comp_dir.
5161 (create_signatured_type_table_from_index): Use malloc for
5162 all_type_units instead of objfile's obstack.
5163 (create_all_type_units): Ditto.
5164 (fill_in_sig_entry_from_dwo_entry): New function.
5165 (add_type_unit): New function.
5166 (lookup_dwo_signatured_type): New function.
5167 (lookup_dwp_signatured_type): New function.
5168 (lookup_signatured_type): New arg cu. All callers updated.
5169 (init_cu_die_reader): Initialize comp_dir.
5170 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5171 Change assert of matching type signatures to call error on mismatch.
5172 (lookup_dwo_unit): Add assert.
5173 (init_tu_and_read_dwo_dies): New function.
5174 (init_cutu_and_read_dies): Call it.
5175 (build_type_unit_groups): Handle case of no type unit groups created.
5176 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5177 (lookup_dwo_cutu): Tweak complaint.
5178 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5179 (dwarf2_per_objfile_free): Free all_type_units.
5180
5181 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5182
5183 * windows-nat.c (handle_unload_dll): Add missing empty line.
5184
5185 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5186
5187 * dwarf2read.c (prototyped_function_p): New function.
5188 (read_subroutine_type): Use it.
5189
5190 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5191
5192 * rs6000-aix-tdep.c: De-indent some example code provided
5193 as a comment.
5194
5195 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5196
5197 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5198 region is ok for a hardware watchpoint using the new ptrace interface
5199 on Power servers.
5200
5201 2013-05-17 Doug Evans <dje@google.com>
5202
5203 * NEWS: Mention new maintenance commands check-symtabs, and
5204 expand-symtabs, and renamed check-psymtabs.
5205 * psymtab.c (maintenance_check_psymtabs): Renamed from
5206 maintenance_check_symtabs. Only process already-expanded symbol
5207 tables.
5208 (_initialize_psymtab): Update.
5209 * symmisc.c (maintenance_check_symtabs): New function.
5210 (maintenance_expand_name_matcher): New function
5211 (maintenance_expand_file_matcher): New function
5212 (maintenance_expand_symtabs): New function.
5213 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5214 commands.
5215
5216 2013-05-17 Tom Tromey <tromey@redhat.com>
5217
5218 * python/py-inferior.c (infpy_read_memory): Don't call
5219 PyErr_SetString if PyObject_New fails.
5220 * python/py-frame.c (frame_info_to_frame_object): Don't call
5221 PyErr_SetString if PyObject_New fails.
5222
5223 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5224
5225 * acinclude.m4: Add check for dlopen in libdl.
5226 * configure.ac: Ditto.
5227 * configure: Regenerate.
5228
5229 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5230
5231 * frame.c (frame_stash): Convert to htab.
5232 (frame_addr_hash): New function.
5233 (frame_addr_hash_eq): New function.
5234 (frame_stash_create): Convert function to create
5235 a hash table.
5236 (frame_stash_add): Convert function to add an entry to a hash
5237 table.
5238 (frame_stash_find): Convert function to search the hash table.
5239 (frame_stash_invalidate): Convert function to empty the hash
5240 table.
5241 (get_frame_id): Only add to stash if a frame_id is created.
5242 (_initialize_frame): Call frame_stash_create.
5243
5244 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5245
5246 * configure.ac: Ensure MIG is available when building for GNU Hurd
5247 hosts.
5248 * configure: Regenerate.
5249
5250 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5251
5252 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5253
5254 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5255
5256 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5257 all cleanups are done before returning from this function.
5258
5259 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5260
5261 * utils.h: #include "exceptions.h".
5262 (enum errors): Remove partial declaration.
5263
5264 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5265
5266 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5267 * gdbarch.h, gdbarch.c: Regenerate.
5268 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5269 handling.
5270
5271 * rs6000-aix-tdep.h: New file.
5272 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5273 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5274 "xml-utils.h".
5275 (struct field_info, struct ld_info_desc): New types.
5276 (ld_info32_desc, ld_info64_desc): New static constants.
5277 (struct ld_info): New type.
5278 (rs6000_aix_extract_ld_info): New function.
5279 (rs6000_aix_shared_library_to_xml): Likewise.
5280 (rs6000_aix_ld_info_to_xml): Likewise.
5281 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5282 (rs6000_aix_init_osabi): Add call to
5283 set_gdbarch_core_xfer_shared_libraries_aix.
5284 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5285 Remove "xml-utils.h" include.
5286 (LdInfo): Delete typedef.
5287 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5288 Delete macros.
5289 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5290 Adjust code accordingly.
5291 (rs6000_core_ldinfo): Delete, folded into
5292 rs6000_aix_core_xfer_shared_libraries_aix.
5293 (rs6000_xfer_shared_library): Delete.
5294 (rs6000_xfer_shared_libraries): Reimplement.
5295
5296 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5297
5298 * record.c (record_goto_cmdlist): New.
5299 (cmd_record_goto): Split into this ...
5300 (cmd_record_goto_begin): ... this
5301 (cmd_record_goto_end): ... and this.
5302 (_initialize_record): Change "record goto" to prefix command.
5303 Add commands for "record goto begin" and "record goto end".
5304 Add an alias for "record goto start" to "record goto begin".
5305
5306 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5307
5308 * linespec.c (convert_linespec_to_sals): New comment for
5309 SOURCE_FILENAME assignment.
5310
5311 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5312
5313 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5314 internal_warning.
5315
5316 2013-05-14 Tom Tromey <tromey@redhat.com>
5317
5318 * eval.c (parse_and_eval_long): Make 'exp' const.
5319 * value.h (parse_and_eval_long): Update.
5320
5321 2013-05-14 Tom Tromey <tromey@redhat.com>
5322
5323 * ui-file.c (gdb_fopen): Make arguments const.
5324 * ui-file.h (gdb_fopen): Make arguments const.
5325
5326 2013-05-14 Tom Tromey <tromey@redhat.com>
5327
5328 * remote.c (remote_set_trace_notes): Make arguments const.
5329 * target.c (update_current_target): Update cast.
5330 * target.h (to_set_trace_notes): Make arguments const.
5331
5332 2013-05-14 Tom Tromey <tromey@redhat.com>
5333
5334 * go32-nat.c (go32_terminal_info): Make 'args' const.
5335 * inferior.h (child_terminal_info): Update.
5336 * inflow.c (child_terminal_info): Make 'args' const.
5337 * target.c (default_terminal_info): Make 'args' const.
5338 (debug_to_terminal_save_ours): Likewise.
5339 * target.h (struct target_ops) <to_terminal_info>: Make argument
5340 const.
5341
5342 2013-05-13 Tom Tromey <tromey@redhat.com>
5343
5344 * gcore.c (create_gcore_bfd): Make 'filename' const.
5345 * gcore.h (create_gcore_bfd): Make 'filename' const.
5346 * record-full.c (record_full_save): Make 'recfilename' const.
5347 * target.c (target_save_record): Make 'filename' const.
5348 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5349 const.
5350 (target_save_record): Likewise.
5351
5352 2013-05-13 Tom Tromey <tromey@redhat.com>
5353
5354 PR gdb/15338:
5355 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5356 ranges section has been read.
5357
5358 2013-05-13 Tom Tromey <tromey@redhat.com>
5359
5360 PR exp/15364:
5361 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5362 STRUCTOP_PTR>: Return a not_lval value for
5363 EVAL_AVOID_SIDE_EFFECTS.
5364 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5365 for EVAL_AVOID_SIDE_EFFECTS.
5366
5367 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5368
5369 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5370 floating point registers to register type before storing
5371 value.
5372 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5373 Likewise.
5374
5375 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5376 Tom Tromey <tromey@redhat.com>
5377
5378 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5379 New functions.
5380 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5381 Declare.
5382 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5383 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5384 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5385 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5386
5387 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5388 Tom Tromey <tromey@redhat.com>
5389
5390 PR build/15414:
5391 * configure: Rebuild.
5392 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5393 with -Wno-format.
5394
5395 2013-05-10 Pedro Alves <palves@redhat.com>
5396
5397 * remote.c (_initialize_remote): Fix spelling of
5398 qXfer:traceframe-info:read packet in packet config command.
5399
5400 2013-05-10 David Taylor <dtaylor@emc.com>
5401
5402 PR remote/15455
5403
5404 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5405 "QTro" at start of packet.
5406
5407 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5408
5409 * solib-aix.c (solib_aix_relocate_section_addresses):
5410 For the .bss section action, apply the same offset as
5411 the .data section.
5412
5413 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5414
5415 * solib-aix.c (solib_aix_relocate_section_addresses):
5416 Remove FIXME comment.
5417
5418 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5419
5420 PR tdep/15420:
5421 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5422 New functions, directly copied from sparc-sol-thread.c.
5423 * sparc-sol-thread.c: Delete.
5424 * configure.ac: Remove code handling sparc-solaris-thread.c.
5425 * configure: Regenerate.
5426
5427 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5428
5429 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5430 filter logic.
5431 (backtrace_command): Add "no-filters" option parsing.
5432 (_initialize_stack): Alter help to reflect "no-filters" option.
5433 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5434 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5435 (py-frame.o): Add target
5436 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5437 filter files.
5438 * python/python.h: Add new frame filter constants, and flag enum.
5439 (apply_frame_filter): Add definition.
5440 * python/python.c (apply_frame_filter): New non-Python
5441 enabled function.
5442 * python/py-utils.c (py_xdecref): New function.
5443 (make_cleanup_py_xdecref): Ditto.
5444 * python/py-objfile.c: Declare frame_filters dictionary.
5445 (objfpy_dealloc): Add frame_filters dealloc.
5446 (objfpy_new): Initialize frame_filters attribute.
5447 (objfile_to_objfile_object): Ditto.
5448 (objfpy_get_frame_filters): New function.
5449 (objfpy_set_frame_filters): New function.
5450 * python/py-progspace.c: Declare frame_filters dictionary.
5451 (pspy_dealloc): Add frame_filters dealloc.
5452 (pspy_new): Initialize frame_filters attribute.
5453 (pspacee_to_pspace_object): Ditto.
5454 (pspy_get_frame_filters): New function.
5455 (pspy_set_frame_filters): New function.
5456 * python/py-framefilter.c: New file.
5457 * python/lib/gdb/command/frame_filters.py: New file.
5458 * python/lib/gdb/frames.py: New file.
5459 * python/lib/gdb/__init__.py: Initialize global frame_filters
5460 dictionary
5461 * python/lib/gdb/FrameDecorator.py: New file.
5462 * python/lib/gdb/FrameIterator.py: New file.
5463 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5464 * mi/mi-cmds.h: Declare.
5465 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5466 --no-frame-filter logic, and Python frame filter logic.
5467 (stack_enable_frame_filters): New function.
5468 (parse_no_frame_option): Ditto.
5469 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5470 filter logic.
5471 (mi_cmd_stack_list_locals): Ditto.
5472 (mi_cmd_stack_list_args): Ditto.
5473 (mi_cmd_stack_list_variables): Ditto.
5474 * NEWS: Add frame filter note.
5475
5476 2013-05-09 Doug Evans <dje@google.com>
5477
5478 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5479 All callers updated.
5480 (syms_from_objfile): Ditto. Make static.
5481 (symbol_file_add_with_addrs): Renamed from
5482 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5483 num_offsets. All callers updated.
5484 * symfile.h (syms_from_objfile): Delete.
5485
5486 * symfile.c (decrement_reading_symtab): Add assert.
5487 (increment_reading_symtab): Ditto.
5488
5489 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5490
5491 * source.c (forward_search_command): Replace call to getc
5492 by call to fgetc.
5493 (reverse_search_command): Likewise.
5494
5495 2013-05-08 Doug Evans <dje@google.com>
5496
5497 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5498 matching test.
5499
5500 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5501
5502 * sol-thread.c (info_cb): Factorize the code a little.
5503
5504 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5505
5506 * sol-thread.c (info_cb): Rework the output of the "maintenance
5507 info sol-threads" command a bit.
5508
5509 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5510
5511 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5512 Replace ti.ti_startfunc by ti.ti_pc.
5513
5514 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5515
5516 * solib-aix.c (solib_aix_free_library_list): New function
5517 for the case where HAVE_LIBEXPAT is not defined.
5518
5519 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5520
5521 PR breakpoints/15413:
5522 * breakpoint.c (condition_completer): Simplify the code to
5523 disconsider multiple locations of breakpoints when completing the
5524 "condition" command.
5525
5526 2013-05-07 Pierre Muller <muller@sourceware.org>
5527
5528 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5529 instead of <sys/wait.h>.
5530
5531 2013-05-07 Pierre Muller <muller@sourceware.org>
5532
5533 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5534 trailing new line from warning message.
5535
5536 2013-05-07 Pierre Muller <muller@sourceware.org>
5537
5538 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5539 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5540
5541 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5542
5543 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5544 error message (ARI fix).
5545
5546 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5547
5548 * features/library-list-aix.dtd: Replace library-list by
5549 library-list-aix.
5550 * rs6000-nat.c: Replace library-list by library-list-aix
5551 throughout.
5552 * solib-aix.c: Likewise.
5553
5554 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5555
5556 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5557 Renames TARGET_OBJECT_AIX_LIBRARIES.
5558 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5559 TARGET_OBJECT_LIBRARIES_AIX throughout.
5560 * solib-aix.c: Likwise.
5561
5562 2013-05-07 Yao Qi <yao@codesourcery.com>
5563
5564 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5565 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5566
5567 2013-05-07 Yao Qi <yao@codesourcery.com>
5568
5569 * solib-dsbt.c (enable_break): Declare.
5570 (dsbt_current_sos): Remove call to enable_break2.
5571 (enable_break2): Rename to enable_break. Set solib breakpoint
5572 on '_dl_debug_state'.
5573 (enable_break): Remove.
5574
5575 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5576
5577 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5578 debug state prior to replicating existing hardware watchpoints or
5579 breakpoints.
5580
5581 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5582
5583 * gcore.c (gcore_create_callback): Ignore sections with
5584 separate_debug_objfile_backlink != NULL.
5585
5586 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5587 Andrew Jenner <andrew@codesourcery.com>
5588 Chung-Lin Tang <cltang@codesourcery.com>
5589 Julian Brown <julian@codesourcery.com>
5590
5591 Based on the nios2-elf port from Altera Corporation.
5592
5593 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5594 nios2-linux-tdep.o.
5595 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5596 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5597 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5598 * nios2-tdep.h: New.
5599 * nios2-tdep.c: New.
5600 * nios2-linux-tdep.c: New.
5601 * features/Makefile (WHICH): Add nios2-linux.
5602 (nios2-linux-expedite): Set.
5603 * features/nios2-cpu.xml: New.
5604 * features/nios2.xml: New.
5605 * features/nios2-linux.xml: New.
5606 * features/nios2.c: New (autogenerated).
5607 * features/nios2-linux.c: New (autogenerated).
5608 * regformats/nios2-linux.dat: New (autogenerated).
5609 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5610 and commands.
5611
5612 2013-05-06 Doug Evans <dje@google.com>
5613
5614 * symfile.c: Whitespace cleanup.
5615
5616 * solist.h (struct target_so_ops): New member clear_so.
5617 * solib-svr4.c (svr4_clear_so): New function.
5618 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5619 * solib.c (clear_so): Renamed from free_so_symbols.
5620 All callers updated. Call target clear_so if it exists.
5621
5622 2013-05-06 Tom Tromey <tromey@redhat.com>
5623
5624 * ada-lang.c (ada_value_primitive_packed_val): Don't
5625 call value_incref.
5626 * value.c (set_value_parent): Incref the new parent and decref
5627 the old parent.
5628 (value_copy, value_primitive_field): Use set_value_parent.
5629
5630 2013-05-06 Tom Tromey <tromey@redhat.com>
5631
5632 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5633 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5634 if needed.
5635 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5636 * dwarf2read.c (write_constant_as_bytes)
5637 (dwarf2_fetch_constant_bytes): New functions.
5638
5639 2013-05-06 Tom Tromey <tromey@redhat.com>
5640
5641 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5642 parameters.
5643 (dwarf2_const_value_attr): Update.
5644
5645 2013-05-06 Tom Tromey <tromey@redhat.com>
5646
5647 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5648 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5649 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5650 Remove declaration.
5651
5652 2013-05-06 Tom Tromey <tromey@redhat.com>
5653
5654 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5655 objfile's obstack.
5656
5657 2013-05-06 Doug Evans <dje@google.com>
5658
5659 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5660 * stabsread.h (process_one_symbol): Update declaration.
5661 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5662 * elfread.c (elf_symfile_relocate_probe): Ditto.
5663 * psymtab.c (relocate_psymtabs): Ditto.
5664 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5665 (objfile_relocate): Ditto.
5666 * objfiles.h (objfile_relocate): Update declaration.
5667 * symfile.c (relative_addr_info_to_section_offsets): Constify
5668 addrs parameter.
5669 (default_symfile_offsets): Ditto.
5670 (syms_from_objfile_1): Constify offsets parameter.
5671 (syms_from_objfile): Ditto.
5672 (symbol_file_add_with_addrs_or_offsets): Ditto.
5673 (symfile_map_offsets_to_segments): Constify data parameter.
5674 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5675 delta parameters of member relocate.
5676 (struct sym_probe_fns): Constify new_offsets,
5677 delta parameters of member sym_relocate_probe.
5678 (struct sym_fns): Constify section_addr_info parameter of member
5679 sym_offsets.
5680 (relative_addr_info_to_section_offsets): Update declaration.
5681 (default_symfile_offsets): Ditto.
5682 (syms_from_objfile): Ditto.
5683 (symfile_map_offsets_to_segments): Ditto.
5684
5685 * symfile.c (syms_from_objfile_1): Use correct section count when
5686 objfile->sf == NULL.
5687
5688 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5689
5690 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5691
5692 2013-05-06 Doug Evans <dje@google.com>
5693
5694 * psympriv.h (struct partial_symtab): Augment comment for member
5695 section_offsets.
5696
5697 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5698
5699 Reimplement shared library support on ppc-aix...
5700 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5701 * features/library-list-aix.dtd: New file.
5702 * solib-aix.h, solib-aix.c: New file.
5703 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5704 (rs6000_find_toc_address_hook): Delete.
5705 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5706 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5707 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5708 "xml-utils.h".
5709 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5710 (vmap_symtab, fixup_breakpoints): Delete.
5711 (rs6000_xfer_shared_libraries): New function.
5712 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5713 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5714 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5715 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5716 (rs6000_xfer_shared_library): New function.
5717 (find_toc_address): Delete.
5718 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5719 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5720 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5721 before creating minimal symbol. Adjust function description
5722 accordingly.
5723 (scan_xcoff_symtab): Replace call to
5724 prim_record_minimal_symbol_and_info by call to
5725 record_minimal_symbol.
5726 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5727 around default_symfile_offsets.
5728 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5729 powerpc-aix targets.
5730 * config/rs6000/nm-rs6000.h: Delete.
5731 * config/powerpc/aix.mh (NAT_FILE): Delete.
5732 (NATDEPFILES): Remove xcoffsolib.o.
5733 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5734 (ALL_TARGET_OBS): Add solib-aix.o.
5735 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5736 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5737 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5738 * xcoffsolib.h, xcoffsolib.c: Delete.
5739
5740 * solib.c (reload_shared_libraries): Remove reference to
5741 SOLIB_CREATE_INFERIOR_HOOK.
5742 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5743 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5744 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5745 comment.
5746 * corelow.c (deprecated_core_resize_section_table): Delete.
5747 * exec.c: Remove include of xcoffsolib.h".
5748 (map_vmap, vmap): Delete.
5749 (exec_close_1): Remove references to vmap.
5750 (exec_file_attach): Remove vmap handling code, and reference
5751 to DEPRECATED_IBM6000_TARGET.
5752 (bfdsec_to_vmap): Delete.
5753 (exec_files_info): Remove block of code handling VMAP.
5754 * infcmd.c (post_create_inferior): Remove reference to
5755 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5756 * infrun.c (follow_exec): Remove reference to
5757 SOLIB_CREATE_INFERIOR_HOOK.
5758 * stack.c (print_frame): Remove reference to PC_SOLIB.
5759 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5760 (dsbt_relocate_main_executable): Likewise.
5761 * solib-frv.c (frv_current_sos): Likewise.
5762
5763 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5764
5765 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5766 to target_write_memory and target_read_memory.
5767
5768 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5769
5770 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5771 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5772
5773 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5774
5775 * darwin-nat.c: Replace all "%x" instances in format strings
5776 into "0x%x" throughout.
5777
5778 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5779
5780 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5781 gdb_assert by call to MACH_CHECK_ERROR.
5782 (darwin_attach_pid): Raise an error rather than a failed
5783 assertion when various system calls failed. Report a warning
5784 instead of raising a failed assertion when PREV_NOT is not NULL
5785 after call to mach_port_request_notification.
5786 (darwin_ptrace_me): Raise an error rather than a failed
5787 assertion when read returns nonzero.
5788
5789 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5790
5791 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5792
5793 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5794
5795 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5796
5797 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5798
5799 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5800 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5801 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5802 a stale cleanup. Fix double free of NAME.
5803
5804 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5805
5806 * windows-nat.c (windows_delete_thread): Accept an additional
5807 argument, the thread's exit code, and announce thread death when
5808 print_thread_events is non-zero and we are deleting a thread that
5809 is not the main thread.
5810 (get_windows_debug_event): Pass thread exit code to
5811 windows_delete_thread.
5812
5813 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5814
5815 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5816 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5817 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5818 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5819 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5820 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5821 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5822 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5823 (gdbarch_tdep): New struct.
5824 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5825 E_NUM_REGS.
5826 (v850e3v5_register_name): New function.
5827 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5828 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5829 code handling the struct return conventions for the RH850 ABI.
5830 Update all callers.
5831 (v850_eight_byte_align_p): New function.
5832 (v850_push_call_dummy): Push structs by value, not by reference
5833 for the RH850 ABI. Add support for eight byte alignment.
5834 (v850_dbtrap_breakpoint_from_pc): New function.
5835 (v850_gdbarch_init): Add ABI detection code. Register
5836 v850e3v5_register_name for the v850e3v5 architecture. Set the
5837 number of registers for v850e3v5. Register
5838 v850_dbtrap_breakpoint_from_pc as appropriate.
5839 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5840
5841 2013-05-03 Doug Evans <dje@google.com>
5842
5843 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5844 of bfd_count_sections.
5845 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5846 * symfile.c (default_symfile_offsets): Ditto.
5847 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5848 one entry, not bfd_count_sections entries.
5849
5850 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5851
5852 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5853 `save' and `restore' register groups. Don't include SPL
5854 or SPH in these groups.
5855 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5856 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5857 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5858 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5859 dwarf2_append_unwinders().
5860
5861 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5862
5863 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5864 ignore SIGINT and SIGTRAP in case these internal signals are
5865 caught explicitely.
5866
5867 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5868
5869 * darwin-nat.c (darwin_read_write_inferior): Change types
5870 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5871 of copy_count to "mach_msg_type_number_t".
5872 (darwin_read_dyld_info): Change type of parameter
5873 rdaddr to "gdb_byte *".
5874
5875 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5876
5877 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5878 of &info->load_map from "char *" to "gdb_byte *".
5879
5880 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5881
5882 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5883 from "char *" to "gdb_byte *".
5884 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5885
5886 2013-04-30 Doug Evans <dje@google.com>
5887
5888 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5889 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5890 DWO stub. If DWO isn't found, just use stub.
5891 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5892
5893 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5894 calling init_cutu_and_read_dies.
5895
5896 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5897
5898 * target-descriptions.c (maint_print_c_tdesc_cmd):
5899 Add case to parse structures as register types and
5900 bitfields.
5901
5902 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5903
5904 * MAINTAINERS (Write After Approval): Add myself to the list.
5905
5906 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5907
5908 * sol-thread.c (rw_common): Change type of parameter "buf"
5909 to "gdb_byte *".
5910 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5911 rw_common to "gdb_byte *" instead of "char *".
5912
5913 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5914
5915 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5916 of local variable msym to const struct bound_minimal_symbol.
5917 Adjust use accordingly.
5918 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5919
5920 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5921
5922 * i386gnu-nat.c (CREG_OFFSET): New macro.
5923 (creg_offset): New array.
5924 (CREG_ADDR): Use creg_offset instead of reg_offset.
5925
5926 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5927
5928 * mep-tdep.c (mep_write_pc): Delete.
5929 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5930 Add call to set_gdbarch_pc_regnum.
5931
5932 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5933
5934 * common/filestuff.c: Replace #include <dirent.h> by
5935 #include "gdb_dirent.h".
5936
5937 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5938
5939 * common/filestuff.c: Replace #include <sys/stat.h> by
5940 #include "gdb_stat.h".
5941
5942 2013-04-29 Pierre Muller <muller@sourceware.org>
5943
5944 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5945 editCase function rule.
5946 (get_DW_AT_signature_type): Likewise.
5947
5948 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5949
5950 * m32r-tdep.c (m32r_write_pc): Delete.
5951 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5952 Add call to set_gdbarch_pc_regnum.
5953
5954 2013-04-29 Pierre Muller <muller@sourceware.org>
5955
5956 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5957
5958 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5959
5960 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5961
5962 2013-04-28 Yao Qi <yao@codesourcery.com>
5963
5964 * solib-dsbt.c (fetch_loadmap): Re-indent.
5965 (displacement_from_map, enable_break2): Likewise.
5966 (dsbt_relocate_section_addresses): Likewise.
5967
5968 2013-04-26 Joel Brobecker <brobecker@adacore.com>
5969
5970 GDB 7.6 released.
5971
5972 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5973
5974 PR corefiles/14983:
5975 * dwarf2read.c (process_full_comp_unit): Always create a static
5976 block.
5977
5978 2013-04-25 Hui Zhu <hui@codesourcery.com>
5979
5980 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5981 to loc->cmd_bytecode.
5982
5983 2013-04-24 Doug Evans <dje@google.com>
5984
5985 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5986
5987 2013-04-22 Keith Seitz <keiths@redhat.com>
5988
5989 * tracepoint.c (trace_save): Call the writer's start method.
5990
5991 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5992
5993 PR gdb/10462
5994 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5995 before argument.
5996
5997 2013-04-23 Tom Tromey <tromey@redhat.com>
5998
5999 * common/filestuff.c: Check USE_WIN32API before including
6000 sys/socket.h.
6001 (HAVE_F_GETFD): New define.
6002 (mark_cloexec): Check HAVE_F_GETFD.
6003 (gdb_open_cloexec): Change 'mode' to unsigned long.
6004 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6005 (gdb_pipe_cloexec): Check HAVE_PIPE.
6006 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6007 long.
6008
6009 2013-04-23 Hui Zhu <hui@codesourcery.com>
6010
6011 PR gdb/15293
6012 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6013
6014 2013-04-23 Hui Zhu <hui@codesourcery.com>
6015
6016 PR gdb/15165
6017 * breakpoint.c (dprintf_print_recreate): New.
6018 (save_breakpoints): Let it not save dprintf commands.
6019 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6020
6021 2013-04-22 Tom Tromey <tromey@redhat.com>
6022
6023 PR gdb/7912:
6024 * Makefile.in (SFILES): Add filestuff.c
6025 (COMMON_OBS): Add filestuff.o.
6026 (filestuff.o): New target.
6027 * auto-load.c (auto_load_objfile_script_1): Use
6028 gdb_fopen_cloexec.
6029 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6030 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6031 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6032 * common/agent.c (gdb_connect_sync_socket): Use
6033 gdb_socket_cloexec.
6034 * common/filestuff.c: New file.
6035 * common/filestuff.h: New file.
6036 * common/linux-osdata.c (linux_common_core_of_thread)
6037 (command_from_pid, commandline_from_pid, print_source_lines)
6038 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6039 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6040 gdb_fopen_cloexec.
6041 * common/linux-procfs.c (linux_proc_get_int)
6042 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6043 * config.in, configure: Rebuild.
6044 * configure.ac: Don't check for sys/socket.h. Check for
6045 fdwalk, pipe2.
6046 * corelow.c (core_open): Use gdb_open_cloexec.
6047 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6048 * fork-child.c (fork_inferior): Call close_most_fds.
6049 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6050 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6051 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6052 Use gdb_fopen_cloexec.
6053 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6054 gdb_open_cloexec.
6055 (linux_async_pipe): Use gdb_pipe_cloexec.
6056 * remote-fileio.c (remote_fileio_func_open): Use
6057 gdb_open_cloexec.
6058 * remote.c (remote_file_put, remote_file_get): Use
6059 gdb_fopen_cloexec.
6060 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6061 close_most_fds.
6062 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6063 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6064 * solib.c (solib_find): Use gdb_open_cloexec.
6065 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6066 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6067 (tfile_open): Use gdb_open_cloexec.
6068 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6069 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6070 * xml-support.c (xml_fetch_content_from_file): Use
6071 gdb_fopen_cloexec.
6072 * main.c (captured_main): Call notice_open_fds.
6073
6074 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6075
6076 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6077 'char *' to 'gdb_byte *'.
6078 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6079 'gdb_byte'.
6080
6081 2013-04-22 Yao Qi <yao@codesourcery.com>
6082
6083 * infrun.c: Fix typo in comment.
6084
6085 2013-04-22 Andrew Haley <aph@redhat.com>
6086
6087 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6088 instead of "long".
6089
6090 2013-04-20 Yao Qi <yao@codesourcery.com>
6091
6092 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6093 'char *' to 'gdb_byte *'. Cast the return value of
6094 'bt_ctf_get_char_array' to 'gdb_byte *'.
6095
6096 2013-04-19 Pedro Alves <palves@redhat.com>
6097
6098 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6099 -Wpointer-sign.
6100 * configure: Regenerate.
6101
6102 2013-04-19 Pedro Alves <palves@redhat.com>
6103
6104 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6105 'void *'.
6106
6107 2013-04-19 Pedro Alves <palves@redhat.com>
6108
6109 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6110 Change type of 'myaddr' parameter to gdb_byte pointer.
6111 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6112 to 'long long' pointer instead of to 'unsigned long long'.
6113 (monitor_write_memory_block, monitor_read_memory_single)
6114 (monitor_read_memory): Change type of 'myaddr' parameter to
6115 gdb_byte pointer.
6116
6117 2013-04-19 Pedro Alves <palves@redhat.com>
6118
6119 * record.c (validate_history_size): Make parameter 'setting'
6120 unsigned.
6121
6122 2013-04-19 Pedro Alves <palves@redhat.com>
6123
6124 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6125 to 'gdb_byte *'.
6126
6127 2013-04-19 Pedro Alves <palves@redhat.com>
6128
6129 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6130 local to int.
6131
6132 2013-04-19 Pedro Alves <palves@redhat.com>
6133
6134 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6135 * ada-tasks.c (read_fat_string_value): Likewise.
6136
6137 2013-04-19 Pedro Alves <palves@redhat.com>
6138
6139 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6140 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6141 'offset', and adjust.
6142
6143 2013-04-19 Pedro Alves <palves@redhat.com>
6144
6145 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6146 (read_index_from_section): Add cast to 'char *'.
6147
6148 2013-04-19 Pedro Alves <palves@redhat.com>
6149
6150 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6151
6152 2013-04-19 Pedro Alves <palves@redhat.com>
6153
6154 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6155
6156 2013-04-19 Pedro Alves <palves@redhat.com>
6157
6158 * record-full.c (record_full_get_bookmark): Change local 'ret'
6159 type to char * and add cast to gdb_byte *.
6160 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6161 string.
6162 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6163
6164 2013-04-19 Pedro Alves <palves@redhat.com>
6165
6166 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6167 * python/py-prettyprint.c (print_string_repr): Change type of
6168 'output' local to char *. Add cast to gdb_byte * in
6169 LA_PRINT_STRING call.
6170 (print_children): Change type of 'output' local to char *.
6171 * python/py-value.c (valpy_string): Add cast to const char * in
6172 PyUnicode_Decode call.
6173
6174 2013-04-19 Pedro Alves <palves@redhat.com>
6175
6176 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6177 and change its type to 'const char *'. Adjust.
6178 (mips_send_packet): Add cast to 'char *', and remove cast to
6179 'unsigned char *'.
6180 (mips_receive_packet): Remove cast to 'unsigned char *'.
6181 (mips_load_srec): Use bfd_byte.
6182 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6183 (pmon_checkset): Make 'value' parameter unsigned.
6184
6185 2013-04-19 Pedro Alves <palves@redhat.com>
6186
6187 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6188
6189 2013-04-19 Pedro Alves <palves@redhat.com>
6190
6191 * remote.c (remote_write_bytes_aux, compare_sections_command)
6192 (remote_read_qxfer)
6193 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6194 (remote_hostio_readlink, remote_bfd_iovec_pread)
6195 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6196 binary buffer, and char when buffer is used as string.
6197 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6198 (trace_save, tfile_open, traceframe_walk_blocks)
6199 (tfile_fetch_registers): Likewise.
6200
6201 2013-04-19 Pedro Alves <palves@redhat.com>
6202
6203 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6204 buffer and size_t size. Adjust.
6205 * ser-base.h (ser_base_write): Adjust.
6206 * ser-go32.c (cnts): Change type to size_t.
6207 (dos_write): Change prototype -- take 'void *'
6208 buffer and size_t size. Adjust.
6209 (dos_info): Print elements of 'cnts' as unsigned long.
6210 * serial.c (serial_write): Likewise.
6211 * serial.h (serial_write): Adjust.
6212 (struct serial_ops) <write>: Change prototype -- take 'void *'
6213 buffer and size_t size. Adjust.
6214
6215 2013-04-19 Pedro Alves <palves@redhat.com>
6216
6217 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6218 gdb_byte *.
6219 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6220
6221 2013-04-19 Pedro Alves <palves@redhat.com>
6222
6223 * alpha-tdep.c (alpha_extract_return_value): Use
6224 regcache_cooked_read_unsigned to read 'v0'.
6225
6226 2013-04-19 Pedro Alves <palves@redhat.com>
6227
6228 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6229 parameters 'at', 'as' and 'offset' to uint32_t.
6230
6231 2013-04-19 Pedro Alves <palves@redhat.com>
6232
6233 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6234 'is64' to signed 'int'.
6235
6236 2013-04-19 Pedro Alves <palves@redhat.com>
6237
6238 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6239 parameter to int *.
6240
6241 2013-04-19 Pedro Alves <palves@redhat.com>
6242
6243 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6244 'insnbuf' buffer type to unsigned int[].
6245
6246 2013-04-19 Pedro Alves <palves@redhat.com>
6247
6248 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6249
6250 2013-04-19 Pedro Alves <palves@redhat.com>
6251
6252 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6253 unsigned long *.
6254
6255 2013-04-19 Pedro Alves <palves@redhat.com>
6256
6257 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6258 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6259 UINT_MAX.
6260 * mips-tdep.c (heuristic_fence_post): Change type to int.
6261 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6262
6263 2013-04-19 Pedro Alves <palves@redhat.com>
6264
6265 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6266 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6267 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6268
6269 2013-04-19 Pedro Alves <palves@redhat.com>
6270
6271 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6272 it to get a string view of the byte buffer.
6273 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6274 type to gdb_byte *. Adjust.
6275 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6276 Change local to char *.
6277 * solib-darwin.c (find_program_interpreter): Change return type to
6278 char *. Adjust.
6279 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6280 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6281 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6282 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6283 * solib-svr4.c (find_program_interpreter): Change return type to
6284 char *. Adjust.
6285 (enable_break): Change local 'interp_name' to char *.
6286 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6287 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6288 (spu_pseudo_register_write_spu): Use char for string buffer.
6289 Adjust.
6290 (info_spu_event_command, info_spu_signal_command): Add casts to
6291 'char *'.
6292
6293 2013-04-19 Pedro Alves <palves@redhat.com>
6294
6295 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6296 gdb_byte[].
6297 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6298 * ada-lang.c (ada_value_assign): Use gdb_byte.
6299 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6300 (alphanbsd_sigtramp_offset): Use gdb_byte.
6301 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6302 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6303 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6304 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6305 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6306 * arm-tdep.c (arm_stub_unwind_sniffer)
6307 (arm_displaced_init_closure): Use gdb_byte.
6308 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6309 (arm_default_thumb_le_breakpoint)
6310 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6311 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6312 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6313 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6314 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6315 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6316 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6317 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6318 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6319 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6320 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6321 (cris_store_return_value, cris_extract_return_value): Use
6322 gdb_byte.
6323 (constraint): Change type of parameter to char * from signed
6324 char*. Use gdb_byte.
6325 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6326 of local buffer to gdb_byte *.
6327 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6328 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6329 (add_address_entry): Change type of local buffer to gdb_byte[].
6330 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6331 (frv_push_dummy_call): Use gdb_byte.
6332 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6333 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6334 (hppa_hpux_supply_save_state): Use gdb_byte.
6335 * hppa-tdep.c (hppa32_push_dummy_call)
6336 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6337 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6338 (slotN_contents, replace_slotN_contents): Change type of parameter
6339 to gdb_byte *.
6340 (fetch_instruction, ia64_pseudo_register_write)
6341 (ia64_register_to_value, ia64_value_to_register)
6342 (ia64_extract_return_value, ia64_store_return_value)
6343 (ia64_push_dummy_call): Use gdb_byte.
6344 * m32c-tdep.c (m32c_return_value): Remove cast.
6345 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6346 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6347 gdb_byte.
6348 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6349 * mn10300-tdep.c (mn10300_store_return_value)
6350 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6351 gdb_byte.
6352 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6353 (moxie_process_record): Remove casts.
6354 * ppc-ravenscar-thread.c (supply_register_at_address)
6355 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6356 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6357 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6358 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6359 * remote.c (compare_sections_command): Use gdb_byte.
6360 * score-tdep.c (score7_free_memblock): Change type of parameter to
6361 gdb_byte *.
6362 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6363 gdb_byte *. Use gdb_byte.
6364 (sh_push_dummy_call_fpu): Use gdb_byte.
6365 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6366 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6367 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6368 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6369 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6370 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6371 (sh64_store_return_value, sh64_register_convert_to_virtual):
6372 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6373 (sh64_pseudo_register_write): Use gdb_byte.
6374 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6375 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6376 buffer.
6377 (irix_current_sos): Use gdb_byte.
6378 * solib-som.c (som_current_sos): Use gdb_byte.
6379 * sparc-ravenscar-thread.c (supply_register_at_address)
6380 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6381 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6382 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6383 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6384 'gdb_byte *'.
6385 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6386 'gdb_byte *'.
6387 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6388 * xstormy16-tdep.c (xstormy16_extract_return_value)
6389 (xstormy16_store_return_value): Change parameter type to
6390 'gdb_byte *'. Adjust.
6391 (xstormy16_push_dummy_call): Use gdb_byte.
6392 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6393 (call0_analyze_prologue, execute_code): Use gdb_byte.
6394
6395 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6396 Pedro Alves <palves@redhat.com>
6397
6398 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6399 value contents.
6400
6401 2013-04-17 Doug Evans <dje@google.com>
6402
6403 * dwarf2read.c (struct signatured_type): New member type.
6404 (struct attribute): Replace member signatured_type with signature.
6405 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6406 (read_call_site_scope): Call follow_die_ref instead of
6407 follow_die_ref_or_sig.
6408 (read_structure_type): Rewrite handling of signatured types.
6409 (read_enumeration_type): Ditto.
6410 (read_attribute_value): Update.
6411 (build_error_marker_type): New function.
6412 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6413 Don't call error for bad types, just build an error marker type.
6414 (dump_die_shallow): Update.
6415 (follow_die_sig_1): Renamed from follow_die_sig.
6416 Don't call error for bad types, instead return NULL.
6417 (follow_die_sig): New function.
6418 (get_signatured_type, get_DW_AT_signature_type): New functions.
6419
6420 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6421
6422 * aarch64-tdep.c (aarch64_write_pc): Removed.
6423 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6424 function.
6425
6426 2013-04-17 Yao Qi <yao@codesourcery.com>
6427
6428 * top.c (print_gdb_configuration): Print configure-time
6429 parameter on using libbabeltrace or not.
6430
6431 2013-04-16 Pedro Alves <palves@redhat.com>
6432
6433 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6434
6435 2013-04-16 Pedro Alves <palves@redhat.com>
6436
6437 * common/glibc_thread_db.h: Update from upstream glibc
6438 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6439
6440 2013-04-16 Pedro Alves <palves@redhat.com>
6441
6442 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6443 * common/glibc_thread_db.h: ... this new file ...
6444 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6445
6446 2013-04-16 Will Newton <will.newton@gmail.com>
6447 Pedro Alves <palves@redhat.com>
6448
6449 PR build/11881
6450
6451 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6452 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6453 HAVE_THREAD_DB_H.
6454
6455 2013-04-16 Pedro Alves <palves@redhat.com>
6456 Eli Zaretskii <eliz@gnu.org>
6457
6458 * NEWS: Mention "set foo unlimited".
6459
6460 2013-04-15 Doug Evans <dje@google.com>
6461
6462 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6463 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6464 (create_dwo_cu_reader): Renamed from
6465 create_dwo_debug_info_hash_table_reader.
6466 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6467 Remove support for multiple CUs in a DWO file.
6468 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6469
6470 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6471 instead of phex.
6472 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6473 (create_dwo_in_dwp): Ditto.
6474
6475 2013-04-15 Tom Tromey <tromey@redhat.com>
6476
6477 * NEWS: Move recent entries into "since 7.6" section.
6478
6479 2013-04-15 Tom Tromey <tromey@redhat.com>
6480
6481 PR c++/13588:
6482 * NEWS: Update.
6483 * break-catch-throw.c (struct exception_catchpoint)
6484 <exception_rx, pattern>: New fields.
6485 (fetch_probe_arguments, dtor_exception_catchpoint)
6486 (check_status_exception_catchpoint)
6487 (print_one_detail_exception_catchpoint): New functions.
6488 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6489 Compile regular expression if needed.
6490 (extract_exception_regexp): New function.
6491 (catch_exception_command_1): Use extract_exception_regexp.
6492 (compute_exception): Use fetch_probe_arguments.
6493 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6494 and check_status fields.
6495 * cp-abi.c (cplus_typename_from_type_info): New function.
6496 * cp-abi.h (cplus_typename_from_type_info): Declare.
6497 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6498 * gdb_regex.h (compile_rx_or_error): Declare.
6499 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6500 comment.
6501 (init_gnuv3_ops): Set get_type_from_type_info field.
6502 * probe.c (compile_rx_or_error): Move...
6503 * utils.c (compile_rx_or_error): ... here.
6504
6505 2013-04-15 Tom Tromey <tromey@redhat.com>
6506
6507 PR c++/15176:
6508 * NEWS: Update.
6509 * break-catch-throw.c (compute_exception): New function.
6510 (exception_funcs): New global.
6511 (_initialize_break_catch_throw): Create $_exception.
6512 * cp-abi.c (cplus_type_from_type_info): New function.
6513 * cp-abi.h (cplus_type_from_type_info): Declare.
6514 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6515 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6516 (gnuv3_get_type_from_type_info): New functions.
6517 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6518
6519 2013-04-15 Tom Tromey <tromey@redhat.com>
6520
6521 * break-catch-throw.c (struct exception_names): New.
6522 (exception_functions): Change type.
6523 (re_set_exception_catchpoint): Look for SDT probes.
6524
6525 2013-04-15 Tom Tromey <tromey@redhat.com>
6526
6527 PR c++/10119:
6528 * break-catch-throw.c (exception_functions): New global.
6529 (gnu_v3_exception_catchpoint_ops): Move earlier.
6530 (struct exception_catchpoint): New.
6531 (classify_exception_breakpoint): Rewrite.
6532 (re_set_exception_catchpoint): New function.
6533 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6534 Allocate a struct exception_catchpoint.
6535 (catch_exception_command_1): Update.
6536 (initialize_throw_catchpoint_ops): Set 're_set' method.
6537
6538 2013-04-15 Tom Tromey <tromey@redhat.com>
6539
6540 * Makefile.in (SFILES): Add break-catch-throw.c
6541 (COMMON_OBS): Add break-catch-throw.o.
6542 * break-catch-throw.c: New file.
6543 * breakpoint.c: Move exception-catching code to new file.
6544 (ep_parse_optional_if_clause): No longer static.
6545 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6546
6547 2013-04-15 Tom Tromey <tromey@redhat.com>
6548
6549 PR c++/9065:
6550 * NEWS: Update.
6551 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6552 * c-exp.y (TYPEID): New token.
6553 (exp): Add new TYPEID productions.
6554 (ident_tokens): Add "typeid".
6555 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6556 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6557 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6558 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6559 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6560 case.
6561 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6562 (build_std_type_info_type, gnuv3_get_typeid_type)
6563 (gnuv3_get_typeid): New functions.
6564 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6565 new fields on ABI object.
6566 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6567 * std-operator.def (OP_TYPEID): New.
6568
6569 2013-04-15 Tom Tromey <tromey@redhat.com>
6570
6571 * elfread.c (elf_symtab_read): Install versioned symbol under
6572 unversioned name as well.
6573
6574 2013-04-15 Tom Tromey <tromey@redhat.com>
6575
6576 PR c++/11990:
6577 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6578 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6579 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6580 (gdb_demangle): New function.
6581 * cp-support.h (gdb_demangle): Declare.
6582 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6583 (dwarf2_name): Use gdb_demangle.
6584 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6585 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6586 suffixes from name.
6587 (gnuv3_print_method_ptr): Use gdb_demangle.
6588 * jv-lang.c (java_demangle): Use gdb_demangle.
6589 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6590 * language.c (unk_lang_demangle): Use gdb_demangle.
6591 * symtab.c (symbol_find_demangled_name)
6592 (demangle_for_lookup): Use gdb_demangle.
6593
6594 2013-04-15 Tom Tromey <tromey@redhat.com>
6595
6596 PR c++/12824:
6597 * NEWS: Update.
6598 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6599 New constant.
6600 (classify_exception_breakpoint): New function.
6601 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6602 (print_mention_exception_catchpoint)
6603 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6604 (catch_exception_command_1): Handle "rethrow" catchpoint.
6605 (catch_rethrow_command): New function.
6606 (_initialize_breakpoint): Add "catch rethrow" command.
6607
6608 2013-04-15 Pierre Muller <muller@sourceware.org>
6609
6610 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6611 set_gdbarch_write_pc as deprecated anymore.
6612
6613 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6614
6615 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6616 declarations.
6617
6618 2013-04-13 Yao Qi <yao@codesourcery.com>
6619
6620 * ctf.c (_initialize_ctf): Include "completer.h".
6621 Call add_target_with_completer instead of add_target.
6622
6623 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6624
6625 Fix GDB regression related to PR binutils/14813.
6626 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6627 * minidebug.c (lzma_close): Add return value comment.
6628 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6629 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6630 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6631
6632 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6633
6634 * config.in: Regenerate.
6635
6636 2013-04-12 Tom Tromey <tromey@redhat.com>
6637
6638 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6639 const.
6640 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6641 (struct die_reader_specs) <buffer>: Likewise.
6642 (die_reader_func_ftype): Make 'info_ptr' const.
6643 (struct line_header) <include_dirs, statement_program_start,
6644 statement_program_end>: Now const.
6645 (struct file_entry) <name>: Likewise.
6646 (struct partial_die_info) <sibling>: Likewise.
6647 (struct dwarf_block) <data>: Likewise.
6648 (dwarf2_read_section): Remove cast.
6649 (dwarf2_get_section_info): Make 'bufp' const.
6650 (read_index_from_section): Constify.
6651 (dw2_get_file_names_reader): Make 'info_ptr' const.
6652 (dw2_get_primary_filename_reader): Likewise.
6653 (read_comp_unit_head): Make 'info_ptr' and return type const.
6654 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6655 Likewise.
6656 (read_abbrev_offset): Constify.
6657 (dwarf2_create_include_psymtab): Make 'name' const.
6658 (create_debug_types_hash_table): Update.
6659 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6660 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6661 Constify.
6662 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6663 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6664 (read_comp_units_from_section): Constify.
6665 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6666 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6667 const.
6668 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6669 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6670 (create_dwp_hash_table, dwarf2_ranges_read)
6671 (dwarf2_record_block_ranges): Constify.
6672 (read_die_and_children, read_die_and_siblings_1)
6673 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6674 const.
6675 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6676 (abbrev_table_read_table): Constify.
6677 (load_partial_dies): Make 'info_ptr' const.
6678 (read_partial_die, read_attribute_value, read_attribute): Make
6679 'info_ptr' and return type const.
6680 (read_address, read_initial_length)
6681 (read_checked_initial_length_and_offset, read_offset)
6682 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6683 const.
6684 (read_direct_string): Make 'buf' and return type const.
6685 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6686 (read_indirect_string): Make return type const.
6687 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6688 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6689 'info_ptr' const.
6690 (read_str_index): Make return type const.
6691 (add_include_dir): Make 'include_dir' const.
6692 (add_file_name): Make 'name' const.
6693 (dwarf_decode_line_header): Constify.
6694 (psymtab_include_file_name): Make return type const.
6695 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6696 (dwarf2_start_subfile): Make 'filename' const.
6697 (dwarf2_const_value_attr): Make 'bytes' const.
6698 (read_signatured_type_reader): Make 'info_ptr' const.
6699 (decode_locdesc): Constify.
6700 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6701 const.
6702 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6703 'mac_end', and return type const.
6704 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6705 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6706 type const.
6707 (per_cu_header_read_in): Constify.
6708 * symfile.h (dwarf2_get_section_info): Update.
6709
6710 2013-04-12 Tom Tromey <tromey@redhat.com>
6711
6712 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6713
6714 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6715
6716 * NEWS: Mention "show configuration", --configuration.
6717 * top.c (print_gdb_configuration): New function, displays the
6718 details about GDB configure-time parameters.
6719 (print_gdb_version): Mention "show configuration".
6720 * cli/cli-cmds.c (show_configuration): New function.
6721 (_initialize_cli_cmds): Add the "show configuration" command.
6722 * main.c (captured_main) <print_configuration>: New static var.
6723 <long_options>: Use it.
6724 If --configuration was given, call print_gdb_configuration.
6725
6726 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6727 Pedro Alves <palves@redhat.com>
6728
6729 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6730 (generated_files): Add gcore.
6731 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6732 HAVE_NATIVE_GCORE_HOST.
6733 (gcore): New.
6734 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6735 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6736 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6737 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6738 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6739 Add HAVE_NATIVE_GCORE_HOST.
6740 * configure: Regenerate.
6741 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6742 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6743 AC_CONFIG_FILES for gcore.
6744 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6745 gdb_have_gcore.
6746 * gdb_gcore.sh: Rename to ...
6747 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6748 and GCORE_TRANSFORM_NAME substitutions.
6749
6750 Fix parsing tabs in ${gdb_target_obs}.
6751 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6752
6753 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6754
6755 * remote.c (unpush_and_perror): Add output message final dot.
6756
6757 2013-04-11 Yao Qi <yao@codesourcery.com>
6758
6759 * tracepoint.c (tfile_interp_line): Fit parameters line and
6760 utpp in one line.
6761
6762 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6763
6764 * solib.c (solib_map_sections): Remove code overwriting
6765 SO->SO_NAME with the bfd's filename.
6766
6767 2013-04-10 Pedro Alves <palves@redhat.com>
6768
6769 * cli/cli-decode.c (integer_unlimited_completer): New function.
6770 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6771 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6772 completer.
6773 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6774 (is_unlimited_literal): New function.
6775 (do_set_command): Handle literal "unlimited" arguments.
6776 * frame.c (_initialize_frame) <set backtrace limit>: Document
6777 "unlimited".
6778 * printcmd.c (_initialize_printcmd) <set print
6779 max-symbolic-offset>: Add help text.
6780 * record-full.c (_initialize_record_full) <set record full
6781 insn-number-max>: Likewise.
6782 * record.c (_initialize_record) <set record
6783 instruction-history-size, set record function-call-history-size>:
6784 Add help text.
6785 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6786 help text.
6787 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6788 Likewise.
6789 * source.c (_initialize_source) <set listsize>: Add help text.
6790 * utils.c (initialize_utils) <set height, set width>: Likewise.
6791 <set pagination>: Mention "set height unlimited".
6792 * valprint.c (_initialize_valprint) <set print elements, set print
6793 repeats>: Document "unlimited".
6794
6795 2013-04-10 Pedro Alves <palves@redhat.com>
6796
6797 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6798 instead of disconnect_tracing.
6799 * infcmd.c (detach_command, disconnect_command): Call
6800 query_if_trace_running. Adjust.
6801 * top.c: Include "tracepoint.h".
6802 (quit_target): Delete. Contents moved ...
6803 (quit_force): ... here. Wrap each stage of teardown in
6804 TRY_CATCH. Call disconnect_tracing before detaching.
6805
6806 2013-04-10 Hui Zhu <hui@codesourcery.com>
6807 Yao Qi <yao@codesourcery.com>
6808
6809 * configure.ac: Check libbabeltrace is installed.
6810 * config.in: Regenerate.
6811 * configure: Regenerate.
6812 * Makefile.in (LIBBABELTRACE): New.
6813 (CLIBS): Add LIBBABELTRACE.
6814 * ctf.c: Include "exec.h".
6815 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6816 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6817 (ctf_save_metadata_header): Define new type aliases in
6818 metadata.
6819 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6820 in metadata. Start a new faked packet for trace status.
6821 (ctf_write_status): Write trace status to CTF.
6822 (ctf_write_uploaded_tsv): Write TSV to CTF.
6823 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6824 (ctf_write_definition_end): End the faked packet.
6825
6826 (ctx, ctf_iter, trace_dirname): New.
6827 (start_pos): New variable.
6828 (ctf_destroy, ctf_open_dir, ctf_open): New.
6829 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6830 macros.
6831 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6832 (ctf_fetch_registers, ctf_xfer_partial): New.
6833 (ctf_get_trace_state_variable_value): New.
6834 (ctf_get_tpnum_from_frame_event): New.
6835 (ctf_get_traceframe_address): New.
6836 (ctf_trace_find, ctf_has_stack): New.
6837 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6838 (ctf_get_trace_status, ctf_read_status): New.
6839 (_initialize_ctf): New.
6840 * tracepoint.c (get_tracepoint_number): New
6841 (get_uploaded_tsv): Remove 'static'.
6842 (struct traceframe_info, trace_regblock_size): Move it to ...
6843 * tracepoint.h: ... here.
6844 (get_tracepoint_number): Declare it.
6845 (get_uploaded_tsv): Declare it.
6846
6847 * NEWS: Mention new configure option.
6848
6849 2013-04-10 Pedro Alves <palves@redhat.com>
6850 Hui Zhu <hui@codesourcery.com>
6851
6852 * breakpoint.c (dprintf_re_set): New.
6853 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6854 to dprintf_re_set.
6855
6856 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6857
6858 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6859 Remove solib-svr4.o from the list.
6860
6861 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6862
6863 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6864 Use gdb_assert_not_reached instead of invalid boolean expression.
6865
6866 2013-04-09 Pedro Alves <palves@redhat.com>
6867
6868 * remote.c (unpush_and_perror): New function.
6869 (readchar, remote_serial_write): Use it.
6870
6871 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6872
6873 * NEWS: Mention new btrace RSP packets.
6874
6875 2013-04-08 Tom Tromey <tromey@redhat.com>
6876
6877 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6878 long.
6879
6880 2013-04-08 Tom Tromey <tromey@redhat.com>
6881
6882 * maint.c (print_bfd_section_info): Print the section index.
6883 * symmisc.c (dump_msymbols): Print the section index.
6884
6885 2013-04-08 Tom Tromey <tromey@redhat.com>
6886
6887 PR symtab/8424:
6888 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6889 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6890 * breakpoint.c (resolve_sal_pc): Update.
6891 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6892 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6893 (minsym_lookup_iterator_cb): Use it.
6894 (default_read_var_value): Update.
6895 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6896 Update.
6897 * infcmd.c (jump_command): Update.
6898 * linespec.c (minsym_found): Update.
6899 * maint.c (maintenance_translate_address): Update.
6900 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6901 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6902 * parse.c (write_exp_msymbol): Update.
6903 * printcmd.c (address_info): Update.
6904 * psymtab.c (find_pc_sect_psymbol): Update.
6905 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6906 SYMBOL_OBJ_SECTION.
6907 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6908 Don't initialize SYMBOL_OBJ_SECTION.
6909 * spu-tdep.c (spu_catch_start): Update.
6910 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6911 * symmisc.c (dump_msymbols, print_symbol): Update.
6912 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6913 how fallback section is computed.
6914 (fixup_symbol_section): Update.
6915 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6916 Update.
6917 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6918 Initialize SYMBOL_SECTION.
6919 * symtab.h (struct general_symbol_info) <section>: Update comment.
6920 <obj_section>: Remove.
6921 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6922 (SYMBOL_OBJFILE): New macro.
6923
6924 2013-04-08 Tom Tromey <tromey@redhat.com>
6925
6926 * coffread.c (record_minimal_symbol): Update.
6927 * dbxread.c (record_minimal_symbol): Update.
6928 * elfread.c (record_minimal_symbol): Update.
6929 * machoread.c (macho_symtab_add_minsym): Update.
6930 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6931 Update.
6932 * minsyms.c (prim_record_minimal_symbol): Update.
6933 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6934 argument.
6935 (prim_record_minimal_symbol_and_info): Likewise.
6936 * minsyms.h (prim_record_minimal_symbol_full)
6937 (prim_record_minimal_symbol_and_info): Update.
6938 * symtab.c (allocate_symbol, initialize_symbol)
6939 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6940 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6941 Update.
6942
6943 2013-04-08 Tom Tromey <tromey@redhat.com>
6944
6945 PR symtab/8423:
6946 * solib-som.c (som_solib_section_offsets): Use BFD section
6947 indices. Set offsets for all sections.
6948 * somread.c (som_symtab_read): Compute BFD section for
6949 symbol. Use prim_record_minimal_symbol_and_info.
6950 (som_symfile_read): Fix comment.
6951 (struct find_section_offset_arg): New.
6952 (find_section_offset, set_section_index): New functions.
6953 (som_symfile_offsets): Use set_section_index to compute
6954 section indices.
6955
6956 2013-04-08 Tom Tromey <tromey@redhat.com>
6957
6958 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6959 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6960 gdb_bfd_section_index.
6961 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6962 New functions.
6963 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6964 Declare.
6965 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6966 Update.
6967 * objfiles.c (add_to_objfile_sections_full): New function.
6968 (add_to_objfile_sections): Use it.
6969 (build_section_table): Rewrite.
6970 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6971 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6972 (struct objfile) <sections>: Update comment.
6973 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6974 is NULL.
6975 (ALL_OBJSECTIONS): Use it.
6976 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6977 * solib-frv.c (frv_relocate_main_executable): Update.
6978 * solib-target.c (solib_target_relocate_section_addresses):
6979 Use gdb_bfd_section_index.
6980 * symfile.c (build_section_addr_info_from_section_table):
6981 Use gdb_bfd_section_index.
6982 (build_section_addr_info_from_bfd, place_section): Likewise.
6983 * symtab.c (fixup_section): Update.
6984 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6985
6986 2013-04-08 Tom Tromey <tromey@redhat.com>
6987
6988 * minsyms.h (struct bound_minimal_symbol): New.
6989 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6990 Remove objfile argument.
6991 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6992 Return bound_minimal_symbol.
6993 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6994 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6995 Return bound_minimal_symbol.
6996 (in_gnu_ifunc_stub): Update.
6997 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6998 Remove 'objfile_p' argument.
6999 (lookup_solib_trampoline_symbol_by_pc): Update.
7000 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7001 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7002 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7003 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7004 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7005 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7006 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7007 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7008 stack.c, symtab.c, tui/tui-disasm.c: Update.
7009
7010 2013-04-08 Tom Tromey <tromey@redhat.com>
7011
7012 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7013 Use symbol's obstack, not an objfile.
7014 * coffread.c (process_coff_symbol): Update.
7015 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7016 * jv-lang.c (add_class_symbol): Update.
7017 * mdebugread.c (new_symbol): Update.
7018 * minsyms.c (prim_record_minimal_symbol_full)
7019 (terminate_minimal_symbol_table): Update.
7020 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7021 * stabsread.c (define_symbol, read_enum_type): Update.
7022 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7023 Handle Ada specially.
7024 (symbol_set_language): Add 'obstack' argument.
7025 (symbol_set_names): Update.
7026 (symbol_natural_name, symbol_demangled_name): Always use
7027 ada_decode_symbol.
7028 * symtab.h (struct general_symbol_info)
7029 <language_specific::obstack>: New field.
7030 <ada_mangled>: New field.
7031 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7032 (symbol_set_language): Update.
7033
7034 2013-04-08 Tom Tromey <tromey@redhat.com>
7035
7036 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7037 Take an obstack, not an objfile.
7038 (symbol_set_names): Update.
7039 * symtab.h (symbol_set_demangled_name): Update.
7040
7041 2013-04-08 Tom Tromey <tromey@redhat.com>
7042
7043 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7044 allocate_symbol.
7045 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7046 (read_func_scope): Call allocate_template_symbol.
7047 (new_symbol_full): Call allocate_symbol.
7048 * jit.c (finalize_symtab): Call allocate_symbol.
7049 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7050 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7051 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7052 (common_block_end): Call allocate_symbol.
7053 * symtab.c (allocate_symbol, initialize_symbol)
7054 (allocate_template_symbol): New functions.
7055 * symtab.c (allocate_symbol, initialize_symbol)
7056 (allocate_template_symbol): Declare.
7057 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7058
7059 2013-04-08 Pedro Alves <palves@redhat.com>
7060 Keith Seitz <keiths@redhat.com>
7061
7062 * breakpoint.c (create_breakpoint): Rename
7063 "parse_condition_and_thread" parameter to "parse_arg". Update
7064 describing comment. If !PARSE_ARG, then error out if ARG is not
7065 the empty string after extracting the location.
7066 * breakpoint.h (create_breakpoint): Rename
7067 "parse_condition_and_thread" parameter to "parse_arg".
7068
7069 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7070
7071 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7072
7073 2013-04-07 Yao Qi <yao@codesourcery.com>
7074
7075 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7076 and 'addr2' to CORE_ADDR.
7077 * target.c (update_current_target): Update.
7078 * target.h (struct target_ops) <to_trace_find>: Change parameter
7079 type to CORE_ADDR.
7080 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7081 'addr2' to CORE_ADDR.
7082 (tfile_trace_find): Likewise.
7083 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7084 Change local variable 'addr' to type CORE_ADDR.
7085 * tracepoint.h (tfind_1): Update declaration.
7086
7087 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7088
7089 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7090 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7091 Include main.h.
7092
7093 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7094 here...
7095 * main.h (windows_get_absolute_argv0): ...to here.
7096
7097 2013-04-05 Doug Evans <dje@google.com>
7098
7099 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7100 (read_cutu_die_from_dwo): Add comments.
7101 (read_structure_type): Update comment.
7102 (read_enumeration_type, read_namespace_type): Update comment.
7103 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7104
7105 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7106
7107 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7108 * Makefile.in (gdb.z): Remove.
7109 (install-only): Remove $(man1dir) and gdb.1 installation.
7110 * gdb.1: Remove.
7111
7112 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7113
7114 Fix compatibility with Linux kernel 3.8.3.
7115 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7116 to more inner block. Remove parsing of NUMBER from outer block.
7117 Parse NUMBER only if KEYWORD has been identified.
7118
7119 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7120
7121 Fix variable name shadowing.
7122 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7123 filename to mapsfilename and update its uses.
7124
7125 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7126
7127 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7128 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7129 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7130 details of the problem.
7131
7132 2013-04-04 Pedro Alves <palves@redhat.com>
7133 Hui Zhu <hui@codesourcery.com>
7134
7135 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7136 tracepoint, reset its STEP_COUNT and call validate_actionline.
7137
7138 2013-04-03 Doug Evans <dje@google.com>
7139
7140 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7141 read_die_and_siblings.
7142 (read_die_and_siblings): New function.
7143 (read_cutu_die_from_dwo): Dump die if requested.
7144 (read_die_and_children): Call read_full_die_1 and
7145 read_die_and_siblings_1.
7146 (read_full_die): Dump die if requested.
7147
7148 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7149
7150 * dwarf2read.c (struct dwo_file): New member comp_dir.
7151 Rename member name to dwo_name. All uses updated.
7152 (hash_dwo_file): Include comp_dir in computation.
7153 (eq_dwo_file): Ditto.
7154 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7155 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7156
7157 * psymtab.c (read_psymtabs_with_fullname): Don't call
7158 psymtab_to_fullname if the basenames are different.
7159
7160 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7161
7162 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7163 New entry about "fullname" presence.
7164
7165 2013-04-03 Pedro Alves <palves@redhat.com>
7166
7167 * NEWS: Mention x86_64/Cygwin as new native configuration.
7168
7169 2013-04-02 Doug Evans <dje@google.com>
7170
7171 * dwarf2read.c (read_structure_type): Fix typo in comment.
7172
7173 2013-04-02 Pedro Alves <palves@redhat.com>
7174
7175 * NEWS: Mention "set/show debug aarch64", "set/show debug
7176 coff-pe-read" and "set/show debug mach-o".
7177
7178 2013-04-02 Pedro Alves <palves@redhat.com>
7179
7180 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7181
7182 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7183
7184 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7185 gdb_string.h is now in common/.
7186
7187 2013-04-02 Pedro Alves <palves@redhat.com>
7188
7189 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7190 under "New options".
7191
7192 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7193
7194 Revert this patch:
7195 PR gdb/15275
7196 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7197
7198 2013-04-02 Pedro Alves <palves@redhat.com>
7199
7200 PR gdb/15275
7201
7202 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7203 (remote_serial_write): New function.
7204 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7205
7206 2013-04-01 Jiong Wang <jiwang@tilera.com>
7207
7208 * NEWS: Mention TILE-Gx in "New native configurations" and
7209 "New targets" sections.
7210
7211 2013-04-01 Doug Evans <dje@google.com>
7212
7213 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7214 (process_enumeration_scope): Simplify.
7215
7216 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7217 type_unit_group ...
7218 (struct signatured_type): ... to here.
7219 (sig_type_ptr): New typedef.
7220 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7221 out of union 't'. All uses updated.
7222 (dw2_get_file_names_reader): Assert not called for a type unit.
7223 (dw2_get_file_names): Assert not called for a type unit or type
7224 unit group.
7225 (build_type_psymtabs_reader): Assert called for a type unit.
7226 (build_type_psymtab_dependencies): Assert called for a type unit group.
7227
7228 * dwarf2read.c (free_dwo_file): Add comment.
7229 (dwarf2_per_objfile_free): Unref dwp bfd.
7230
7231 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7232
7233 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7234 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7235 (read_pe_exported_syms): Remove unused 'exportix'.
7236 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7237 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7238 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7239
7240 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7241
7242 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7243 (print_it_watchpoint): Remove unused 'bl'.
7244 (say_where): Remove unused 'uiout'.
7245 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7246 (bkpt_breakpoint_hit): Remove unused 'b'.
7247 (internal_bkpt_print_it): Remove unused 'uiout'.
7248 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7249
7250 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7251
7252 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7253 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7254
7255 2013-03-29 Doug Evans <dje@google.com>
7256
7257 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7258 Delete arg is_dwp. All callers updated.
7259 (open_dwp_file): New function.
7260 (open_and_init_dwp_file): Call it.
7261 (get_dwp_file): New function.
7262 (lookup_dwo_cutu): Call it.
7263
7264 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7265 unnecessary, cleanup.
7266
7267 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7268
7269 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7270 (lookup_dwo_unit): New function.
7271 (init_cutu_and_read_dies): Move DWO handling to new functions.
7272
7273 * dwarf2read.c (struct signatured_type): Tweak comment.
7274 (struct dwo_unit): Tweak comment.
7275 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7276 (create_dwo_debug_info_hash_table): Tweak comment.
7277 (dwarf2_per_cu_offset_and_type): Tweak comment.
7278
7279 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7280 missing .debug_types section.
7281
7282 2013-03-29 Yao Qi <yao@codesourcery.com>
7283
7284 * corelow.c: Include "completer.h".
7285 (_initialize_corelow): Call add_target_with_completer with
7286 argument 'filename_completer'.
7287 * tracepoint.c: Likewise.
7288 * exec.c (_initialize_exec): Likewise.
7289 * target.c (add_target): Rename to ...
7290 (add_target_with_completer): ... this. Call set_cmd_completer
7291 if parameter completer is not NULL.
7292 (add_target): New.
7293 * target.h: Include "command.h".
7294 (add_target_with_completer): Declare it.
7295
7296 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7297
7298 * coffread.c (is_import_fixup_symbol): New function.
7299 (record_minimal_symbol): Use is_import_fixup_symbol to
7300 detect import fixup symbols, and discard them.
7301
7302 2013-03-28 Doug Evans <dje@google.com>
7303
7304 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7305 types hash table until we know we need it.
7306
7307 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7308 index numbers.
7309
7310 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7311 All callers updated.
7312 (dw2_print_stats): Print #read CUs too.
7313 (dump_die_shallow): Print signatured types better.
7314
7315 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7316 info_or_types_section to section. All uses updated.
7317 (struct dwo_unit): Ditto.
7318
7319 2013-03-28 Pedro Alves <palves@redhat.com>
7320
7321 * NEWS (New options): New section.
7322 (New options): Mention set/show remote trace-status-packet.
7323 * remote.c (PACKET_qTStatus): New enumeration value.
7324 (remote_get_trace_status): Skip sending qTStatus if the packet is
7325 disabled. Use packet_ok.
7326 (_initialize_remote): Register a configuration command for
7327 qTStatus packet.
7328
7329 2013-03-28 Doug Evans <dje@google.com>
7330
7331 * symfile.c (find_separate_debug_file): Add comment.
7332 (terminate_after_last_dir_separator): Tweak comment.
7333
7334 * dwarf2read.c (create_partial_symtab): Add forward decl.
7335 (create_partial_symtab): Move to be closer to other psymtab functions.
7336 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7337
7338 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7339 (compute_symtab_includes): Remove unnecessary forward declaration.
7340 (die_needs_namespace): Add comment marking group of functions for
7341 dwarf2 name computation.
7342
7343 * typeprint.c (_initialize_typeprint): Improve type help text.
7344
7345 * python/python.c (finish_python_initialization): Provide suggestion
7346 for how to tell gdb to find its python files.
7347
7348 2013-03-28 Pedro Alves <palves@redhat.com>
7349
7350 PR gdb/15294
7351
7352 * source.c (_initialize_source): Change back "set listsize" to an
7353 integer command.
7354
7355 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7356
7357 PR gdb/15275
7358 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7359
7360 2013-03-27 Pedro Alves <palves@redhat.com>
7361
7362 * top.c (history_size): Rename to ...
7363 (history_size_setshow_var): ... this. Add comment.
7364 (show_commands): Use readline's 'history_length' instead of
7365 computing the history length by calling history_get in a loop.
7366 (set_history_size_command): Error out for sizes over INT_MAX.
7367 Restore previous history size on invalid size.
7368 (init_history): If HISTSIZE is negative, leave the history size as
7369 zero. Add comments.
7370 (init_main): Adjust.
7371
7372 2013-03-27 Pedro Alves <palves@redhat.com>
7373
7374 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7375 coff_pe_read" command to "set debug coff-pe-read".
7376
7377 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7378
7379 * record.c (command_size_to_target_size): Fix size comparison.
7380 Change parameter type from pointer to integer to integer.
7381 Update all users.
7382
7383 2013-03-27 Pierre Muller <muller@sourceware.org>
7384
7385 * windows-nat.c (handle_output_debug_string): Avoid typecast
7386 from integer of different size warning.
7387
7388 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7389
7390 * windows-nat.c (handle_output_debug_string): Add empty line
7391 after local block variable definition.
7392
7393 2013-03-26 Pedro Alves <palves@redhat.com>
7394
7395 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7396 (net_open): Make 'polls' local unsigned.
7397
7398 2013-03-26 Pedro Alves <palves@redhat.com>
7399
7400 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7401 a zuinteger command instead of uinteger.
7402
7403 2013-03-26 Pedro Alves <palves@redhat.com>
7404
7405 * record-full.c (record_full_insn_num): Make it unsigned.
7406 (record_full_check_insn_num, record_full_message)
7407 (record_full_registers_change, record_full_xfer_partial): Remove
7408 record_full_insn_max_num check (it's always != 0).
7409 (record_full_info, record_full_restore): Use %u as format string.
7410 (): Use %u as format string.
7411 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7412 check (it's always != 0).
7413
7414 2013-03-26 Pedro Alves <palves@redhat.com>
7415
7416 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7417 and "set dcache size" commands zuinteger instead of uinteger.
7418
7419 2013-03-26 Pedro Alves <palves@redhat.com>
7420
7421 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7422 command zuinteger instead of uinteger.
7423
7424 2013-03-26 Pedro Alves <palves@redhat.com>
7425
7426 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7427 zuinteger instead of uinteger.
7428
7429 2013-03-26 Pedro Alves <palves@redhat.com>
7430
7431 * record.c (record_insn_history_size_setshow_var)
7432 (record_call_history_size_setshow_var): New globals.
7433 (command_size_to_target_size): New function.
7434 (cmd_record_insn_history, cmd_record_call_history): Use
7435 command_size_to_target_size instead of cast.
7436 (validate_history_size, set_record_insn_history_size)
7437 (set_record_call_history_size): New functions.
7438 (_initialize_record): Install set_record_insn_history_size and
7439 set_record_call_history_size as "set" hooks of "set record
7440 instruction-history-size" and "set record
7441 function-call-history-size".
7442
7443 2013-03-26 Pedro Alves <palves@redhat.com>
7444
7445 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7446 use with history_max_entries use. Remove FIXME note.
7447
7448 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7449
7450 * record-btrace.c (record_btrace_close): Call
7451 record_btrace_auto_disable.
7452
7453 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7454
7455 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7456
7457 2013-03-25 Doug Evans <dje@google.com>
7458
7459 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7460
7461 2013-03-25 Tom Tromey <tromey@redhat.com>
7462
7463 PR symtab/11462:
7464 * c-exp.y (exp): Add new productions for destructors after '.' and
7465 '->'.
7466 (write_destructor_name): New function.
7467
7468 2013-03-25 Tom Tromey <tromey@redhat.com>
7469
7470 PR c++/9197:
7471 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7472 value_struct_elt, not lookup_struct_elt_type.
7473 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7474 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7475 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7476
7477 2013-03-25 Yao Qi <yao@codesourcery.com>
7478
7479 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7480 instead of '_mkdir'.
7481
7482 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7483
7484 * windows-nat.c (windows_get_absolute_argv0): New function.
7485 * windows-nat.h: Add its prototype.
7486
7487 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7488 Use IS_DIR_SEPARATOR instead of looking for a character inside
7489 SLASH_STRING. Include filenames.h.
7490 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7491 relocate_gdb_directory works when passed gdb_program_name.
7492 Include windows-nat.h.
7493
7494 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7495
7496 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7497 * remote.c (trace_error): Remove the special handling of '2'.
7498 (readchar) <SERIAL_EOF>
7499 (readchar) <SERIAL_ERROR>
7500 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7501 (remote_get_trace_status): Call throw_exception if EX is
7502 TARGET_CLOSE_ERROR.
7503 * utils.c (perror_with_name): Rename to ...
7504 (throw_perror_with_name): ... here. New parameter errcode, describe it
7505 in the function comment.
7506 (perror_with_name): New function wrapper.
7507 * utils.h (enum errors): New stub declaration.
7508 (throw_perror_with_name): New declaration.
7509
7510 2013-03-22 Pedro Alves <palves@redhat.com>
7511 Yao Qi <yao@codesourcery.com>
7512 Mark Kettenis <kettenis@gnu.org>
7513
7514 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7515 Don't let the user set the value to UINT_MAX directly.
7516 <var_integer>: Don't let the user set the value to INT_MAX
7517 directly.
7518
7519 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7520
7521 * remote.c (remote_unpush_target): New function.
7522 (remote_open_1): Remove two pop_target calls, update one comment, add
7523 comment to target_preopen call. Replace pop_target call by
7524 remote_unpush_target call.
7525 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7526 pop_target calls by remote_unpush_target calls.
7527
7528 2013-03-22 Pedro Alves <palves@redhat.com>
7529
7530 * linux-nat.c (linux_child_follow_fork): Don't call
7531 linux_enable_event_reporting.
7532 (linux_handle_extended_wait): Don't call
7533 linux_enable_event_reporting.
7534
7535 2013-03-22 Pedro Alves <palves@redhat.com>
7536
7537 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7538 use it to rewrite the trampoline buffers with type gdb_byte[], and
7539 undefine the macro. Remove char* cast.
7540
7541 2013-03-21 Doug Evans <dje@google.com>
7542
7543 New commands "mt set per-command {space,time,symtab} {on,off}".
7544 * NEWS: Add entry.
7545 * event-top.c: #include "maint.h".
7546 * main.c: #include "maint.h".
7547 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7548 timeval-utils.h, maint.h, cli/cli-setshow.h.
7549 (per_command_time, per_command_space): New static globals.
7550 (per_command_symtab): New static global.
7551 (per_command_setlist, per_command_showlist): New static globals.
7552 (struct cmd_stats): Move here from utils.c.
7553 (set_per_command_time): Renamed from set_display_time in utils.c
7554 and moved here. All callers updated.
7555 (set_per_command_space): Renamed from set_display_space in utils.c
7556 and moved here. All callers updated.
7557 (count_symtabs_and_blocks): New function.
7558 (report_command_stats): Moved here from utils.c. Add support for
7559 printing symtab stats. Only print data if enabled before command
7560 executed.
7561 (make_command_stats_cleanup): Ditto.
7562 (sert_per_command_cmd, show_per_command_cmd): New functions.
7563 (_initialize_maint_cmds): Add new commands
7564 mt set per-command {space,time,symtab} {on,off}.
7565 * maint.h: New file.
7566 * top.c: #include "maint.h".
7567 * utils.c (reset_prompt_for_continue_wait_time): New function.
7568 (get_prompt_for_continue_wait_time): New function.
7569 * utils.h (reset_prompt_for_continue_wait_time): Declare
7570 (get_prompt_for_continue_wait_time): Declare.
7571 (make_command_stats_cleanup): Moved to maint.h.
7572 (set_display_time, set_display_space): Moved to maint.h and renamed
7573 to set_per_command_time, set_per_command_space.
7574 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7575 parse_binary_operation and made non-static. Don't call error,
7576 just return an error marker. All callers updated.
7577 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7578
7579 2013-03-21 Tom Tromey <tromey@redhat.com>
7580
7581 * symfile.c (alloc_section_addr_info): Update header. Don't set
7582 'num_sections' field.
7583 (build_section_addr_info_from_section_table): Set 'num_sections'.
7584 (build_section_addr_info_from_bfd): Likewise.
7585 (build_section_addr_info_from_objfile): Remove dead loop
7586 condition.
7587 (free_section_addr_info): Unconditionally call xfree.
7588 (relative_addr_info_to_section_offsets, addrs_section_sort)
7589 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7590 condition.
7591 (syms_from_objfile_1): Remove dead 'if' condition. Check
7592 'num_sections'.
7593 (add_symbol_file_command): Set 'num_sections'.
7594 * symfile-mem.c (symbol_file_add_from_memory): Set
7595 'num_sections'.
7596 * somread.c (som_symfile_offsets): Remove dead loop condition.
7597 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7598 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7599
7600 2013-03-21 Tom Tromey <tromey@redhat.com>
7601
7602 * tracepoint.h (decode_agent_options): Add 'trace_string'
7603 argument.
7604 * tracepoint.c (decode_agent_options): Add 'trace_string'
7605 argument.
7606 (validate_actionline): Update.
7607 (collect_symbol): Add 'trace_string' argument.
7608 (struct add_local_symbols_data) <trace_string>: New field.
7609 (do_collect_symbol): Update.
7610 (add_local_symbols): Add 'trace_string' argument.
7611 (encode_actions_1): Update.
7612 (trace_dump_actions): Update.
7613 * dwarf2loc.c (access_memory): Update.
7614 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7615 * ax-general.c (new_agent_expr): Update.
7616 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7617 (gen_trace_for_return_address): Add argument.
7618 (trace_kludge, trace_string_kludge): Remove.
7619 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7620 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7621 (gen_trace_for_var): Add 'trace_string' argument.
7622 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7623 (gen_printf, agent_eval_command_one): Update.
7624
7625 2013-03-21 Tom Tromey <tromey@redhat.com>
7626
7627 PR exp/15109:
7628 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7629 Handle FILENAME token.
7630
7631 2013-03-21 Tom Tromey <tromey@redhat.com>
7632
7633 * c-exp.y (YYPRINT): Define.
7634 (c_print_token): New function.
7635
7636 2013-03-21 Tom Tromey <tromey@redhat.com>
7637
7638 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7639
7640 2013-03-21 Yao Qi <yao@codesourcery.com>
7641
7642 * ctf.c: Include "gdb_stat.h".
7643 [USE_WIN32API]: New macro 'mkdir'.
7644 (ctf_start): Use permission bits macros if they are defined.
7645
7646 2013-03-20 Keith Seitz <keiths@redhat.com>
7647
7648 * breakpoint.h (struct breakpoint): Add comment to
7649 extra_string indicating that this member is mallod'd.
7650 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7651
7652 2013-03-20 Pedro Alves <palves@redhat.com>
7653
7654 PR gdb/15289
7655
7656 * cli/cli-setshow.c (do_set_command)
7657 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7658 the result of parsing the command argument. Throw error if the
7659 value is greater than UINT_MAX. Print the invalid value with
7660 plongest.
7661 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7662 result of parsing the command argument. Throw error if the value
7663 is greater than INT_MAX, not greater or equal. Also throw error
7664 if the value is less than INT_MIN. Print the invalid value with
7665 plongest.
7666 <var_zuinteger_unlimited>: Throw error if the value is greater
7667 than INT_MAX, not greater or equal.
7668 (do_show_command) <var_integer, var_zinteger,
7669 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7670
7671 2013-03-20 Tom Tromey <tromey@redhat.com>
7672
7673 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7674 if possible.
7675 * dwarf2read.c (read_func_scope): Remove old FIXME.
7676 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7677 not LOC_COMPUTED.
7678 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7679 Unconditionally call via computed ops, if possible.
7680 * printcmd.c (address_info): Unconditionally call via computed ops,
7681 if possible.
7682 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7683 if possible.
7684 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7685 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7686 if possible.
7687
7688 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7689 Tom Tromey <tromey@redhat.com>
7690
7691 PR symtab/8421:
7692 * coffread.c (coff_register_index): New global.
7693 (process_coff_symbol, coff_read_enum_type): Set
7694 SYMBOL_ACLASS_INDEX.
7695 (_initialize_coffread): Initialize new global.
7696 * dwarf2loc.c (locexpr_find_frame_base_location)
7697 (dwarf2_block_frame_base_locexpr_funcs)
7698 (loclist_find_frame_base_location)
7699 (dwarf2_block_frame_base_loclist_funcs): New.
7700 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7701 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7702 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7703 (dwarf2_block_frame_base_loclist_funcs): New.
7704 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7705 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7706 globals.
7707 (read_func_scope): Update.
7708 (fixup_go_packaging, mark_common_block_symbol_computed)
7709 (var_decode_location, new_symbol_full, dwarf2_const_value):
7710 Set SYMBOL_ACLASS_INDEX.
7711 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7712 (_initialize_dwarf2_read): Initialize new globals.
7713 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7714 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7715 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7716 globals.
7717 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7718 (_initialize_mdebugread): Initialize new globals.
7719 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7720 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7721 (stab_register_index, stab_regparm_index): New globals.
7722 (define_symbol, read_enum_type, common_block_end): Set
7723 SYMBOL_ACLASS_INDEX.
7724 (_initialize_stabsread): Initialize new globals.
7725 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7726 globals.
7727 (MAX_SYMBOL_IMPLS): New define.
7728 (register_symbol_computed_impl, register_symbol_block_impl)
7729 (register_symbol_register_impl)
7730 (initialize_ordinary_address_classes): New functions.
7731 (_initialize_symtab): Call initialize_ordinary_address_classes.
7732 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7733 (struct symbol_impl): New.
7734 (SYMBOL_ACLASS_BITS): New define.
7735 (struct symbol) <aclass, ops>: Remove fields.
7736 <aclass_index>: New field.
7737 (symbol_impls): Declare.
7738 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7739 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7740 (register_symbol_computed_impl, register_symbol_block_impl)
7741 (register_symbol_register_impl): Declare.
7742 (struct symbol_computed_ops): Add location_has_loclist.
7743 (struct symbol_block_ops): New.
7744 (SYMBOL_BLOCK_OPS): New.
7745 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7746
7747 2013-03-20 Tom Tromey <tromey@redhat.com>
7748
7749 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7750 (print_partial_symbols, recursively_search_psymtabs): Use
7751 PSYMBOL_CLASS.
7752
7753 2013-03-20 Pierre Muller <muller@sourceware.org>
7754
7755 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7756 addtion, subtraction, multiplication and division binary operator.
7757
7758 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7759
7760 Code cleanup.
7761 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7762 * bsd-kvm.c (bsd_kvm_close): Likewise.
7763 * bsd-uthread.c (bsd_uthread_close): Likewise.
7764 * corelow.c (core_close): Likewise.
7765 (core_close_cleanup): Remove parameter quitting from a caller.
7766 * event-top.c (async_disconnect): Likewise.
7767 * exec.c (exec_close_1): Remove parameter quitting.
7768 * go32-nat.c (go32_close): Likewise.
7769 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7770 parameter quitting from a caller.
7771 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7772 variable.
7773 (mips_linux_close): Remove parameter quitting. Remove parameter
7774 quitting from a caller.
7775 * monitor.c (monitor_close): Remove parameter quitting.
7776 * monitor.h (monitor_close): Likewise.
7777 * record-btrace.c (record_btrace_close): Likewise.
7778 * record-full.c (record_full_close): Likewise.
7779 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7780 it also from fprintf_unfiltered.
7781 * remote-mips.c (mips_close): Remove parameter quitting.
7782 (mips_detach): Remove parameter quitting from a caller.
7783 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7784 (gdbsim_close): Remove duplicate function comment. Remove parameter
7785 quitting and remove it also from printf_filtered.
7786 * remote.c (remote_close): Remove parameter quitting.
7787 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7788 * target.c (update_current_target): Remove parameter int from to_close
7789 de_fault.
7790 (push_target, unpush_target, pop_target): Remove parameter quitting from
7791 a caller.
7792 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7793 Remove parameter quitting from a caller.
7794 (target_preopen): Remove parameter quitting from a caller.
7795 (target_close): Remove parameter quitting. Remove parameter quitting
7796 from a caller two times. Remove parameter quitting also from
7797 fprintf_unfiltered.
7798 * target.h (struct target_ops): Remove parameter quitting and as int
7799 from fields to_xclose and to_close.
7800 (extern struct target_ops current_target):
7801 (target_close, pop_all_targets): Remove parameter quitting. Update the
7802 comment.
7803 (pop_all_targets_above): Remove parameter quitting.
7804 * top.c (quit_target): Remove parameter quitting from a caller.
7805 * tracepoint.c (tfile_close): Remove parameter quitting.
7806 * windows-nat.c (windows_close): Remove parameter quitting.
7807
7808 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7809
7810 * windows-nat.c (handle_output_debug_string): Replace call
7811 to string_to_core_addr with call to strtoull.
7812
7813 2013-03-20 Yao Qi <yao@codesourcery.com>
7814
7815 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7816 and write it to CTF metadata.
7817
7818 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7819
7820 * windows-nat.c (handle_output_debug_string): Change type of n to
7821 SIZE_T to avoid crash on 64 bit systems.
7822
7823 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7824
7825 * python/python-internal.h (HAVE_SNPRINTF)
7826 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7827 about redefinition of snprintf by pyerrors.h.
7828
7829 2013-03-15 Steve Ellcey <sellcey@mips.com>
7830
7831 * remote-sim.c (sim_command_completer): Make char arguments const.
7832
7833 2013-03-15 Tom Tromey <tromey@redhat.com>
7834
7835 PR c++/15116:
7836 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7837
7838 2013-03-14 Tom Tromey <tromey@redhat.com>
7839
7840 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7841 New fields.
7842 (get_file_crc): Move from symfile.c.
7843 (gdb_bfd_crc): New function.
7844 * gdb_bfd.h (gdb_bfd_crc): Declare.
7845 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7846 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7847 (separate_debug_file_exists): Use gdb_bfd_crc.
7848
7849 2013-03-14 Tom Tromey <tromey@redhat.com>
7850
7851 * symfile.c (get_debug_link_info): Remove.
7852 (find_separate_debug_file_by_debuglink): Use
7853 bfd_get_debug_link_info.
7854
7855 2013-03-14 Tom Tromey <tromey@redhat.com>
7856
7857 * symtab.c (error_in_psymtab_expansion): New function.
7858 (lookup_symbol_aux_quick)
7859 (basic_lookup_transparent_type_quick): Remove "last resort"
7860 code. Use error_in_psymtab_expansion.
7861
7862 2013-03-14 Doug Evans <dje@google.com>
7863 Jan Kratochvil <jan.kratochvil@redhat.com>
7864
7865 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7866 any successful compare_filenames_for_search or FILENAME_CMP.
7867 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7868 * symtab.c (iterate_over_some_symtabs): Likewise.
7869
7870 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7871
7872 * source.c (print_source_lines_base): Make a local copy of
7873 symtab_to_fullname.
7874
7875 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
7876 Jan Kratochvil <jan.kratochvil@redhat.com>
7877
7878 * source.c (print_source_lines_base): Suppress "file" for TUI.
7879
7880 2013-03-14 Keith Seitz <keiths@redhat.com>
7881 Alan Matsuoka <alanm@redhat.com>
7882
7883 PR c++/15203
7884 PR c++/15210
7885 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7886 TYPE_CODE_METHOD.
7887 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7888 symbols.
7889
7890 2013-03-14 Yao Qi <yao@codesourcery.com>
7891
7892 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7893 status to tfile if trace is stopped by command 'tstop'.
7894
7895 2013-03-14 Yao Qi <yao@codesourcery.com>
7896
7897 * tracepoint.c (tfile_write_status): Write trace notes and user
7898 name into tfile if they are not NULL.
7899
7900 2013-03-14 Hui Zhu <hui@codesourcery.com>
7901 Yao Qi <yao@codesourcery.com>
7902
7903 * Makefile.in (REMOTE_OBS): Add ctf.o.
7904 (SFILES): Add ctf.c.
7905 (HFILES_NO_SRCDIR): Add ctf.h.
7906 * ctf.c, ctf.h: New files.
7907 * tracepoint.c: Include 'ctf.h'.
7908 (collect_pseudocommand): Remove static.
7909 (trace_save_command): Parse option "-ctf".
7910 Produce different trace file writers per option.
7911 Adjust output message.
7912 (trace_save_tfile, trace_save_ctf): New.
7913 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7914 * mi/mi-main.c: Include 'ctf.h'.
7915 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7916 trace_save_tfile or trace_save_ctf.
7917 * NEWS: Mention these changes.
7918
7919 2013-03-14 Yao Qi <yao@codesourcery.com>
7920
7921 * tracepoint.c (trace_file_writer_xfree): New.
7922 (struct tfile_writer_data): New.
7923 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7924 (tfile_write_header, tfile_write_regblock_type): New.
7925 (tfile_write_status, tfile_write_uploaded_tsv): New.
7926 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7927 (tfile_write_raw_data, (tfile_end): New.
7928 (tfile_write_ops): New global variable.
7929 (TRACE_WRITE_R_BLOCK): New macro.
7930 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7931 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7932 (TRACE_WRITE_V_BLOCK): New macro.
7933 (trace_save): Add extra one parameter WRITER. Make it static.
7934 Use WRITER to writer trace.
7935 (tfile_trace_file_writer_new): New.
7936 (trace_save_command): Caller update.
7937 (trace_save_tfile): Write trace data in TFILE format.
7938 * tracepoint.h (struct trace_frame_write_ops): New.
7939 (struct trace_file_write_ops): New.
7940 (struct trace_file_writer): New.
7941 (trace_save): Remove its declaration.
7942 (trace_save_tfile): Declare it.
7943 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7944 instead of trace_save.
7945
7946 2013-03-13 Pedro Alves <palves@redhat.com>
7947
7948 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7949
7950 2013-03-13 Pedro Alves <palves@redhat.com>
7951
7952 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7953 commented out code.
7954 * demangle.c (current_demangling_style_string): Make it const.
7955 (set_demangling_command): Assert the demangling style is known.
7956 Remove all handling of unknown styles. Set
7957 'current_demangling_style_string' to an element of the
7958 demangling_style_names array.
7959 (set_demangling_style): Delete.
7960 (_initialize_demangler): Set current_demangling_style_string to the
7961 element of the demangling_style_names array that corresponds to
7962 the default demangling style. Remove FIXME note. Don't call
7963 set_demangling_style.
7964 * gdb-demangle.h (set_demangling_style): Remove declaration.
7965
7966 2013-03-13 Pedro Alves <palves@redhat.com>
7967
7968 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7969 fields const.
7970 (ada_make_symbol_completion_list): Make "text0" parameter const.
7971 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7972 * breakpoint.c (condition_completer): Make "text" and "word"
7973 parameters const. Adjust.
7974 (check_tracepoint_command): Adjust to validate_actionline
7975 prototype change.
7976 (catch_syscall_completer): Make "text" and "word" parameters
7977 const.
7978 * cli/cli-cmds.c (show_user): Make "comname" local const.
7979 (valid_command_p): Make "command" parameter const.
7980 (alias_command): Make "alias_prefix" and "command_prefix" locals
7981 const.
7982 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7983 (add_alias_cmd): Make "name" and "oldname" parameters const.
7984 Adjust. No longer make copy of OLDNAME.
7985 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7986 (add_setshow_cmd_full, add_setshow_enum_cmd)
7987 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7988 (add_setshow_filename_cmd, add_setshow_string_cmd)
7989 (add_setshow_string_noescape_cmd)
7990 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7991 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7992 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7993 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7994 Make "name" parameter const.
7995 (help_cmd): Rename "command" parameter to "arg". New const local
7996 "command".
7997 (find_cmd): Make "command" parameter const.
7998 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7999 deprecated_cmd_warning prototype change.
8000 (undef_cmd_error): Make "cmdtype" parameter const.
8001 (lookup_cmd): Make "line" parameter const.
8002 (deprecated_cmd_warning): Change type of "text" parameter to
8003 pointer to const char, from pointer to pointer to char. Adjust.
8004 (lookup_cmd_composition): Make "text" parameter const.
8005 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8006 parameters const.
8007 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8008 const.
8009 * cli/cli-script.c (validate_comname): Make "tem" local const.
8010 (define_command): New const local "tem_c". Use it in calls to
8011 lookup_cmd.
8012 (document_command): Make "tem" and "comfull" locals const.
8013 (show_user_1): Make "prefix" and "name" parameters const.
8014 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8015 const.
8016 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8017 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8018 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8019 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8020 (complete_on_enum, add_setshow_enum_cmd)
8021 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8022 (add_setshow_filename_cmd, add_setshow_string_cmd)
8023 (add_setshow_string_noescape_cmd)
8024 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8025 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8026 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8027 Change prototypes, constifying strings.
8028 * completer.c (noop_completer, filename_completer): Make "text"
8029 and "prefix" parameters const.
8030 (location_completer, expression_completer)
8031 (complete_line_internal): Make "text" and "prefix" parameters
8032 const and adjust.
8033 (command_completer, signal_completer): Make "text" and "prefix"
8034 parameters const.
8035 * completer.h (noop_completer, filename_completer)
8036 (expression_completer, location_completer, command_completer)
8037 (signal_completer): Change prototypes.
8038 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8039 parameters const.
8040 * cp-abi.c (cp_abi_completer): Likewise.
8041 * expression.h (parse_expression_for_completion): Change
8042 prototype.
8043 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8044 parameters const.
8045 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8046 * infrun.c (handle_completer): Make "text" and "word" parameters
8047 const.
8048 * interps.c (interpreter_completer): Make "text" and "word"
8049 parameters const.
8050 * language.h (struct language_defn)
8051 <la_make_symbol_completion_list>: Make "text" and "word"
8052 parameters const.
8053 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8054 (parse_exp_in_context): Rename to ...
8055 (parse_exp_in_context_1): ... this.
8056 (parse_exp_in_context): Reimplement, with const hack from
8057 parse_exp_1.
8058 (parse_expression_for_completion): Make "string" parameter const.
8059 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8060 to pointer to const char. Adjust.
8061 (print_command_1): Make "exp" parameter const.
8062 (output_command): Rename to ...
8063 (output_command_const): ... this. Make "exp" parameter const.
8064 (output_command): Reimplement.
8065 (x_command): Adjust.
8066 (display_command): Rename "exp" parameter to "arg". New "exp"
8067 local, const version of "arg".
8068 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8069 "cmd_name" local const.
8070 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8071 call.
8072 (cmdpy_completer): Make "text" and "word" parameters const.
8073 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8074 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8075 const.
8076 * remote.c (_initialize_remote): Make "cmd_name" local const.
8077 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8078 parameters const. Adjust.
8079 (completion_list_add_fields): Make "sym_text", "text" and "word"
8080 parameters const.
8081 (struct add_name_data) <sym_text, text, word>: Make fields const.
8082 (default_make_symbol_completion_list_break_on): Make "text" and
8083 "word" parameters const. Adjust locals.
8084 (default_make_symbol_completion_list)
8085 (make_symbol_completion_list, make_symbol_completion_type)
8086 (make_symbol_completion_list_fn): Make "text" and "word"
8087 parameters const.
8088 (make_file_symbol_completion_list): Make "text", "word" and
8089 "srcfile" parameters const. Adjust locals.
8090 (add_filename_to_list): Make "text" and "word" parameters const.
8091 (struct add_partial_filename_data) <text, word>: Make fields
8092 const.
8093 (make_source_files_completion_list): Make "text" and "word"
8094 parameters const.
8095 * symtab.h (default_make_symbol_completion_list_break_on)
8096 (default_make_symbol_completion_list, make_symbol_completion_list)
8097 (make_symbol_completion_type enum type_code)
8098 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8099 (make_source_files_completion_list): Change prototype.
8100 * top.c (execute_command): Adjust to pass pointer to pointer to
8101 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8102 change.
8103 (set_verbose): Make "cmdname" local const.
8104 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8105 and adjust.
8106 (validate_actionline): Make "line" parameter a pointer to const
8107 char, and adjust.
8108 (encode_actions_1): Make "action_exp" local const, and adjust.
8109 (encode_actions): Adjust.
8110 (replace_comma): Delete.
8111 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8112 const, and adjust. Don't frob the action string while splitting
8113 it at commas. Instead, make a copy of each split substring in
8114 turn.
8115 (trace_dump_command): Adjust to validate_actionline prototype
8116 change.
8117 * tracepoint.h (decode_agent_options, decode_agent_options)
8118 (encode_actions, validate_actionline): Change prototypes.
8119 * valprint.h (output_command): Delete declaration.
8120 (output_command_const): Declare.
8121 * value.c (function_destroyer): Cast const away in xfree call.
8122
8123 2013-03-13 Pedro Alves <palves@redhat.com>
8124
8125 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8126 rather than casting 'const char * const *' to 'const char **'.
8127 * ada-lex.l (processInt): Make "trailer" local const. Remove
8128 'const char **' cast.
8129 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8130 locals, and use those as strtol output pointer, instead than doing
8131 invalid casts to from 'const char **' to 'char **'.
8132 (_initialize_demangle): Remove cast.
8133 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8134 locals, and use those as strtol output pointer, instead than doing
8135 invalid casts to from 'const char **' to 'char **'.
8136 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8137 casts.
8138 * stap-probe.c (stap_parse_register_operand)
8139 (stap_parse_single_operand): Likewise.
8140
8141 2013-03-13 Yao Qi <yao@codesourcery.com>
8142
8143 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8144 the last matched 'V' blcok in trace frame.
8145
8146 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8147
8148 * NEWS: Create a new section for the next release branch.
8149 Rename the section of the current branch, now that it has
8150 been cut.
8151
8152 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8153
8154 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8155 * version.in: Bump version to 7.6.50.20130312-cvs.
8156
8157 2013-03-12 Keith Seitz <keiths@redhat.com>
8158
8159 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8160 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8161 Remove temporary copy of input string.
8162 (mi_execute_command_wrapper): Make "cmd" const.
8163 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8164 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8165 Use const strings.
8166 (mi_parse): Make "cmd" const.
8167 Use const strings.
8168 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8169
8170 2013-03-12 Keith Seitz <keiths@redhat.com>
8171
8172 * ada-lang.c (ada_read_renaming_var_value): Pass const
8173 pointer to expression string to parse_exp_1.
8174 (create_excep_cond_exprs): Likewise.
8175 * ax-gdb.c (agent_eval_command_one): Likewise.
8176 (maint_agent_printf_command): Likewise.
8177 Constify much of the string handling/parsing.
8178 * breakpoint.c (set_breakpoint_condition): Pass const
8179 pointer to expression string to parse_exp_1.
8180 (update_watchpoint): Likewise.
8181 (parse_cmd_to_aexpr): Constify string handling.
8182 Pass const pointer to parse_exp_1.
8183 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8184 (find_condition_and_thread): Likewise.
8185 Make TOK const.
8186 (watch_command_1): Make "arg" const.
8187 Constify string handling.
8188 Copy the expression string instead of changing the input
8189 string.
8190 (update_breakpoint_location): Pass const pointer to
8191 parse_exp_1.
8192 * eval.c (parse_and_eval_address): Make "exp" const.
8193 (parse_to_comma_and_eval): Make "expp" const.
8194 (parse_and_eval): Make "exp" const.
8195 * expression.h (parse_expression): Make argument const.
8196 (parse_exp_1): Make first argument const.
8197 * findcmd.c (parse_find_args): Treat "args" as const.
8198 * linespec.c (parse_linespec): Pass const pointer to
8199 linespec_expression_to_pc.
8200 (linespec_expression_to_pc): Make "exp_ptr" const.
8201 * parse.c (parse_exp_1): Make "stringptr" const.
8202 Make a copy of the expression to pass to parse_exp_in_context until
8203 this whole interface can be constified.
8204 (parse_expression): Make "string" const.
8205 * printcmd.c (ui_printf): Treat "arg" as const.
8206 Handle const strings.
8207 * tracepoint.c (validate_actionline): Pass const pointer to
8208 all calls to parse_exp_1.
8209 (encode_actions_1): Likewise.
8210 * value.h (parse_to_comma_and_eval): Make argument const.
8211 (parse_and_eval_address): Likewise.
8212 (parse_and_eval): Likewise.
8213 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8214 (varobj_set_value): Likewise.
8215 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8216 constify string handling.
8217 Pass const pointers to parse_and_eval_address and
8218 parse_to_comman_and_eval.
8219 * cli/cli-utils.c (skip_to_space): Rename to ...
8220 (skip_to_space_const): ... this. Handle const strings.
8221 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8222 skip_to_space_const.
8223 (skip_to_space_const): Declare.
8224 * common/format.c (parse_format_string): Make "arg" const.
8225 Handle const strings.
8226 * common/format.h (parse_format_string): Make "arg" const.
8227 * gdbserver/ax.c (ax_printf): Make "format" const.
8228 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8229 of the expression string.
8230
8231 2013-03-12 Hui Zhu <hui@codesourcery.com>
8232
8233 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8234
8235 2013-03-12 Yao Qi <yao@codesourcery.com>
8236 Hui Zhu <hui@codesourcery.com>
8237
8238 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8239 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8240 DW_OP_deref_size.
8241
8242 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8243
8244 * ada-lex.l (rules): Only recognize 'thread' as a
8245 delimiter when followed by numerals, as for c-exp.y.
8246 Use new rewind_to_char function to rewind the input for
8247 expression-delimiting tokens.
8248 (rewind_to_char): New function.
8249
8250 2013-03-11 Pedro Alves <palves@redhat.com>
8251 Jan Kratochvil <jan.kratochvil@redhat.com>
8252
8253 * configure: Regenerate.
8254 * configure.ac (check dynamic export flag): Link python test with
8255 $PYTHON_LIBS.
8256
8257 2013-03-11 Doug Evans <dje@google.com>
8258 Keith Seitz <keiths@redhat.com>
8259
8260 * linespec.c (find_linespec_symbols): Call find_function_symbols
8261 first, and then call lookup_prefix_sym/find_method.
8262
8263 2013-03-11 Pedro Alves <palves@redhat.com>
8264
8265 * charset.c (convert_between_encodings): Don't cast between
8266 different pointer to pointer types. Instead, make the 'inp' local
8267 be of the type iconv expects.
8268 (wchar_iterate): Don't cast between different pointer to pointer
8269 types. Instead, use new pointer local of the type iconv expects.
8270 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8271 Add new local of type char pointer, and use it to get a
8272 char/string view of the byte buffer, instead of casting between
8273 pointer to pointer types.
8274
8275 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8276
8277 * remote.c (remote_set_trace_buffer_size): Move != operator
8278 to the start of next line to fix an ARI warning.
8279
8280 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8281
8282 * NEWS: Add record changes.
8283
8284 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8285
8286 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8287 the instruction history disassembly.
8288 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8289 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8290
8291 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8292
8293 * Makefile.in (SFILES): Add record-btrace.c
8294 (COMMON_OBS): Add record-btrace.o
8295 * record-btrace.c: New.
8296 * objfiles.c: Include btrace.h.
8297 (free_objfile): call btrace_free_objfile.
8298
8299 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8300
8301 * target.c (target_call_history, target_call_history_from,
8302 target_call_history_range): New.
8303 * target.h (target_ops) <to_call_history, to_call_history_from,
8304 to_call_history_range>: New fields.
8305 (target_call_history, target_call_history_from,
8306 target_call_history_range): New declaration.
8307 * record.c (get_call_history_modifiers, cmd_record_call_history,
8308 record_call_history_size): New.
8309 (_initialize_record): Add the "record function-call-history" command.
8310 Add "set/show record function-call-history-size" commands.
8311 * record.h (record_print_flag): New.
8312
8313 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8314
8315 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8316 to_insn_history_range>: New fields.
8317 (target_insn_history): New.
8318 (target_insn_history_from): New.
8319 (target_insn_history_range): New.
8320 * target.c (target_insn_history): New.
8321 (target_insn_history_from): New.
8322 (target_insn_history_range): New.
8323 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8324 (record_insn_history_size): New.
8325 (get_insn_number): New.
8326 (get_context_size): New.
8327 (no_chunk): New.
8328 (get_insn_history_modifiers): New.
8329 (cmd_record_insn_history): New.
8330 (_initialize_record): Add "set/show record instruction-history-size"
8331 command. Add "record instruction-history" command.
8332
8333 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8334
8335 * record.h (record_disconnect): New.
8336 (record_detach): New.
8337 (record_mourn_inferior): New.
8338 (record_kill): New.
8339 * record-full.c (record_disconnect, record_detach,
8340 record_mourn_inferior, record_kill): Move to...
8341 * record.c: ...here.
8342 (DEBUG): New.
8343 (record_stop): New.
8344 (record_unpush): New.
8345 (cmd_record_stop): Call record_stop. Replace unpush_target
8346 call with record_unpush call.
8347 (record_disconnect, record_detach): Assert that the target
8348 is of record stratum. Call record_unpush, record_stop, and
8349 DEBUG.
8350 (record_mourn_inferior, record_kill): Assert that the target
8351 is of record stratum. Call record_unpush and DEBUG.
8352
8353 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8354
8355 * record-full.h, record-full.c (record_memory_query): Rename
8356 to ...
8357 (record_full_memory_query): ...this. Update all users.
8358 (record_arch_list_add_reg): Rename to ...
8359 (record_full_arch_list_add_reg): ...this. Update all users.
8360 (record_arch_list_add_mem): Rename to ...
8361 (record_full_arch_list_add_mem): ...this. Update all users.
8362 (record_arch_list_add_end): Rename to ...
8363 (record_full_arch_list_add_end): ...this. Update all users.
8364 (record_gdb_operation_disable_set): Rename to ...
8365 (record_full_gdb_operation_disable_set): ...this.
8366 Update all users.
8367
8368 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8369
8370 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8371 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8372 (RECORD_IS_REPLAY): Renamed to ...
8373 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8374 (RECORD_FILE_MAGIC): Renamed to ...
8375 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8376 (record_mem_entry): Renamed to ...
8377 (record_full_mem_entry): ... this. Updated all users.
8378 (record_reg_entry): Renamed to ...
8379 (record_full_reg_entry): ... this. Updated all users.
8380 (record_end_entry): Renamed to ...
8381 (record_full_end_entry): ... this. Updated all users.
8382 (record_type) <record_end, record_reg, record_mem>: Renamed
8383 to ...
8384 (record_full_type) <record_full_end, record_full_reg,
8385 record_full_mem>: ... this. Updated all users.
8386 (record_entry): Renamed to ...
8387 (record_full_entry): ... this. Updated all users.
8388 (record_core_buf_entry): Renamed to ...
8389 (record_full_core_buf_entry): ... this. Updated all users.
8390 (record_core_regbuf): Renamed to ...
8391 (record_full_core_regbuf): ... this. Updated all users.
8392 (record_core_start): Renamed to ...
8393 (record_full_core_start): ... this. Updated all users.
8394 (record_core_end): Renamed to ...
8395 (record_full_core_end): ... this. Updated all users.
8396 (record_core_buf_list): Renamed to ...
8397 (record_full_core_buf_list): ... this. Updated all users.
8398 (record_first): Renamed to ...
8399 (record_full_first): ... this. Updated all users.
8400 (record_list): Renamed to ...
8401 (record_full_list): ... this. Updated all users.
8402 (record_arch_list_head): Renamed to ...
8403 (record_full_arch_list_head): ... this. Updated all users.
8404 (record_arch_list_tail): Renamed to ...
8405 (record_full_arch_list_tail): ... this. Updated all users.
8406 (record_stop_at_limit): Renamed to ...
8407 (record_full_stop_at_limit): ... this. Updated all users.
8408 (record_insn_max_num): Renamed to ...
8409 (record_full_insn_max_num): ... this. Updated all users.
8410 (record_insn_num): Renamed to ...
8411 (record_full_insn_num): ... this. Updated all users.
8412 (record_insn_count): Renamed to ...
8413 (record_full_insn_count): ... this. Updated all users.
8414 (record_ops): Renamed to ...
8415 (record_full_ops): ... this. Updated all users.
8416 (record_core_ops): Renamed to ...
8417 (record_full_core_ops): ... this. Updated all users.
8418 (set_record_cmdlist): Renamed to ...
8419 (set_record_full_cmdlist): ... this. Updated all users.
8420 (show_record_cmdlist): Renamed to ...
8421 (show_record_full_cmdlist): ... this. Updated all users.
8422 (record_cmdlist): Renamed to ...
8423 (record_full_cmdlist): ... this. Updated all users.
8424 (record_beneath_to_resume_ops): Renamed to ...
8425 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8426 (record_beneath_to_resume): Renamed to ...
8427 (record_full_beneath_to_resume): ... this. Updated all users.
8428 (record_beneath_to_wait_ops): Renamed to ...
8429 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8430 (record_beneath_to_wait): Renamed to ...
8431 (record_full_beneath_to_wait): ... this. Updated all users.
8432 (record_beneath_to_store_registers_ops): Renamed to ...
8433 (record_full_beneath_to_store_registers_ops): ... this.
8434 Updated all users.
8435 (record_beneath_to_store_registers): Renamed to ...
8436 (record_full_beneath_to_store_registers): ... this.
8437 Updated all users.
8438 (record_beneath_to_xfer_partial_ops): Renamed to ...
8439 (record_full_beneath_to_xfer_partial_ops): ... this.
8440 Updated all users.
8441 (record_beneath_to_xfer_partial): Renamed to ...
8442 (record_full_beneath_to_xfer_partial): ... this.
8443 Updated all users.
8444 (record_beneath_to_insert_breakpoint): Renamed to ...
8445 (record_full_beneath_to_insert_breakpoint): ... this.
8446 Updated all users.
8447 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8448 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8449 Updated all users.
8450 (record_beneath_to_stopped_data_address): Renamed to ...
8451 (record_full_beneath_to_stopped_data_address): ... this.
8452 Updated all users.
8453 (record_beneath_to_async): Renamed to ...
8454 (record_full_beneath_to_async): ... this. Updated all users.
8455 (record_goto_insn): Renamed to ...
8456 (record_full_goto_insn): ... this. Updated all users.
8457 (record_save): Renamed to ...
8458 (record_full_save): ... this. Updated all users.
8459 (record_reg_alloc): Renamed to ...
8460 (record_full_reg_alloc): ... this. Updated all users.
8461 (record_reg_release): Renamed to ...
8462 (record_full_reg_release): ... this. Updated all users.
8463 (record_mem_alloc): Renamed to ...
8464 (record_full_mem_alloc): ... this. Updated all users.
8465 (record_mem_release): Renamed to ...
8466 (record_full_mem_release): ... this. Updated all users.
8467 (record_end_alloc): Renamed to ...
8468 (record_full_end_alloc): ... this. Updated all users.
8469 (record_end_release): Renamed to ...
8470 (record_full_end_release): ... this. Updated all users.
8471 (record_entry_release): Renamed to ...
8472 (record_full_entry_release): ... this. Updated all users.
8473 (record_list_release): Renamed to ...
8474 (record_full_list_release): ... this. Updated all users.
8475 (record_list_release_following): Renamed to ...
8476 (record_full_list_release_following): ... this.
8477 Updated all users.
8478 (record_list_release_first): Renamed to ...
8479 (record_full_list_release_first): ... this. Updated all users.
8480 (record_arch_list_add): Renamed to ...
8481 (record_full_arch_list_add): ... this. Updated all users.
8482 (record_get_loc): Renamed to ...
8483 (record_full_get_loc): ... this. Updated all users.
8484 (record_check_insn_num): Renamed to ...
8485 (record_full_check_insn_num): ... this. Updated all users.
8486 (record_arch_list_cleanups): Renamed to ...
8487 (record_full_arch_list_cleanups): ... this. Updated all users.
8488 (record_message): Renamed to ...
8489 (record_full_message): ... this. Updated all users.
8490 (record_message_wrapper): Renamed to ...
8491 (record_full_message_wrapper): ... this. Updated all users.
8492 (record_message_wrapper_safe): Renamed to ...
8493 (record_full_message_wrapper_safe): ... this. Updated all users.
8494 (record_gdb_operation_disable): Renamed to ...
8495 (record_full_gdb_operation_disable): ... this. Updated all users.
8496 (record_hw_watchpoint): Renamed to ...
8497 (record_full_hw_watchpoint): ... this. Updated all users.
8498 (record_exec_insn): Renamed to ...
8499 (record_full_exec_insn): ... this. Updated all users.
8500 (record_restore): Renamed to ...
8501 (record_full_restore): ... this. Updated all users.
8502 (record_async_inferior_event_token): Renamed to ...
8503 (record_full_async_inferior_event_token): ... this.
8504 Updated all users.
8505 (record_async_inferior_event_handler): Renamed to ...
8506 (record_full_async_inferior_event_handler): ... this.
8507 Updated all users.
8508 (record_core_open_1): Renamed to ...
8509 (record_full_core_open_1): ... this. Updated all users.
8510 (record_open_1): Renamed to ...
8511 (record_full_open_1): ... this. Updated all users.
8512 (record_open): Renamed to ...
8513 (record_full_open): ... this. Updated all users.
8514 (record_close): Renamed to ...
8515 (record_full_close): ... this. Updated all users.
8516 (record_resume_step): Renamed to ...
8517 (record_full_resume_step): ... this. Updated all users.
8518 (record_resumed): Renamed to ...
8519 (record_full_resumed): ... this. Updated all users.
8520 (record_execution_dir): Renamed to ...
8521 (record_full_execution_dir): ... this. Updated all users.
8522 (record_resume): Renamed to ...
8523 (record_full_resume): ... this. Updated all users.
8524 (record_get_sig): Renamed to ...
8525 (record_full_get_sig): ... this. Updated all users.
8526 (record_sig_handler): Renamed to ...
8527 (record_full_sig_handler): ... this. Updated all users.
8528 (record_wait_cleanups): Renamed to ...
8529 (record_full_wait_cleanups): ... this. Updated all users.
8530 (record_wait_1): Renamed to ...
8531 (record_full_wait_1): ... this. Updated all users.
8532 (record_wait): Renamed to ...
8533 (record_full_wait): ... this. Updated all users.
8534 (record_stopped_by_watchpoint): Renamed to ...
8535 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8536 (record_disconnect): Renamed to ...
8537 (record_full_disconnect): ... this. Updated all users.
8538 (record_detach): Renamed to ...
8539 (record_full_detach): ... this. Updated all users.
8540 (record_mourn_inferior): Renamed to ...
8541 (record_full_mourn_inferior): ... this. Updated all users.
8542 (record_kill): Renamed to ...
8543 (record_full_kill): ... this. Updated all users.
8544 (record_stopped_data_address): Renamed to ...
8545 (record_full_stopped_data_address): ... this. Updated all users.
8546 (record_registers_change): Renamed to ...
8547 (record_full_registers_change): ... this. Updated all users.
8548 (record_store_registers): Renamed to ...
8549 (record_full_store_registers): ... this. Updated all users.
8550 (record_xfer_partial): Renamed to ...
8551 (record_full_xfer_partial): ... this. Updated all users.
8552 (record_breakpoint): Renamed to ...
8553 (record_full_breakpoint): ... this. Updated all users.
8554 (record_breakpoint_p): Renamed to ...
8555 (record_full_breakpoint_p): ... this. Updated all users.
8556 (record_breakpoints): Renamed to ...
8557 (record_full_breakpoints): ... this. Updated all users.
8558 (record_sync_record_breakpoints): Renamed to ...
8559 (record_full_sync_record_breakpoints): ... this.
8560 Updated all users.
8561 (record_init_record_breakpoints): Renamed to ...
8562 (record_full_init_record_breakpoints): ... this.
8563 Updated all users.
8564 (record_insert_breakpoint): Renamed to ...
8565 (record_full_insert_breakpoint): ... this. Updated all users.
8566 (record_remove_breakpoint): Renamed to ...
8567 (record_full_remove_breakpoint): ... this. Updated all users.
8568 (record_can_execute_reverse): Renamed to ...
8569 (record_full_can_execute_reverse): ... this. Updated all users.
8570 (record_get_bookmark): Renamed to ...
8571 (record_full_get_bookmark): ... this. Updated all users.
8572 (record_goto_bookmark): Renamed to ...
8573 (record_full_goto_bookmark): ... this. Updated all users.
8574 (record_async): Renamed to ...
8575 (record_full_async): ... this. Updated all users.
8576 (record_can_async_p): Renamed to ...
8577 (record_full_can_async_p): ... this. Updated all users.
8578 (record_is_async_p): Renamed to ...
8579 (record_full_is_async_p): ... this. Updated all users.
8580 (record_execution_direction): Renamed to ...
8581 (record_full_execution_direction): ... this. Updated all users.
8582 (record_info): Renamed to ...
8583 (record_full_info): ... this. Updated all users.
8584 (record_delete): Renamed to ...
8585 (record_full_delete): ... this. Updated all users.
8586 (record_is_replaying): Renamed to ...
8587 (record_full_is_replaying): ... this. Updated all users.
8588 (record_goto_entry): Renamed to ...
8589 (record_full_goto_entry): ... this. Updated all users.
8590 (record_goto_begin): Renamed to ...
8591 (record_full_goto_begin): ... this. Updated all users.
8592 (record_goto_end): Renamed to ...
8593 (record_full_goto_end): ... this. Updated all users.
8594 (record_goto): Renamed to ...
8595 (record_full_goto): ... this. Updated all users.
8596 (init_record_ops): Renamed to ...
8597 (init_record_full_ops): ... this. Updated all users.
8598 (record_core_resume): Renamed to ...
8599 (record_full_core_resume): ... this. Updated all users.
8600 (record_core_kill): Renamed to ...
8601 (record_full_core_kill): ... this. Updated all users.
8602 (record_core_fetch_registers): Renamed to ...
8603 (record_full_core_fetch_registers): ... this. Updated all users.
8604 (record_core_prepare_to_store): Renamed to ...
8605 (record_full_core_prepare_to_store): ... this. Updated all users.
8606 (record_core_store_registers): Renamed to ...
8607 (record_full_core_store_registers): ... this. Updated all users.
8608 (record_core_xfer_partial): Renamed to ...
8609 (record_full_core_xfer_partial): ... this. Updated all users.
8610 (record_core_insert_breakpoint): Renamed to ...
8611 (record_full_core_insert_breakpoint): ... this. Updated all users.
8612 (record_core_remove_breakpoint): Renamed to ...
8613 (record_full_core_remove_breakpoint): ... this. Updated all users.
8614 (record_core_has_execution): Renamed to ...
8615 (record_full_core_has_execution): ... this. Updated all users.
8616 (init_record_core_ops): Renamed to ...
8617 (init_record_full_core_ops): ... this. Updated all users.
8618 (cmd_record_restore): Renamed to ...
8619 (cmd_record_full_restore): ... this. Updated all users.
8620 (record_save_cleanups): Renamed to ...
8621 (record_full_save_cleanups): ... this. Updated all users.
8622 (cmd_record_start): Renamed to ...
8623 (cmd_record_full_start): ... this. Updated all users.
8624 (set_record_insn_max_num): Renamed to ...
8625 (set_record_full_insn_max_num): ... this. Updated all users.
8626 (set_record_command): Renamed to ...
8627 (set_record_full_command): ... this. Updated all users.
8628 (show_record_command): Renamed to ...
8629 (show_record_full_command): ... this. Updated all users.
8630 (_initialize_record): Renamed to ...
8631 (_initialize_record_full): ... this. Updated all users.
8632
8633 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8634
8635 * record.h: Split into this and ...
8636 * record-full.h: ... this.
8637 * record.c: Split into this and ...
8638 * record-full.c: ... this.
8639 * target.h (target_ops): Add new fields to_info_record,
8640 to_save_record, to_delete_record, to_record_is_replaying,
8641 to_goto_record_begin, to_goto_record_end, to_goto_record.
8642 (target_info_record): New.
8643 (target_save_record): New.
8644 (target_supports_delete_record): New.
8645 (target_delete_record): New.
8646 (target_record_is_replaying): New.
8647 (target_goto_record_begin): New.
8648 (target_goto_record_end): New.
8649 (target_goto_record): New.
8650 * target.c (target_info_record): New.
8651 (target_save_record): New.
8652 (target_supports_delete_record): New.
8653 (target_delete_record): New.
8654 (target_record_is_replaying): New.
8655 (target_goto_record_begin): New.
8656 (target_goto_record_end): New.
8657 (target_goto_record): New.
8658 * record.h: Declare struct cmd_list_element.
8659 (record_cmdlist): New declaration.
8660 (set_record_cmdlist): New declaration.
8661 (show_record_cmdlist): New declaration.
8662 (info_record_cmdlist): New declaration.
8663 (cmd_record_goto): New declaration.
8664 * record.c: Remove unnecessary includes.
8665 Include inferior.h.
8666 (cmd_record_goto): Remove declaration.
8667 (record_cmdlist): Now extern. Initialize.
8668 (set_record_cmdlist): Now extern. Initialize.
8669 (show_record_cmdlist): Now extern. Initialize.
8670 (info_record_cmdlist): Now extern. Initialize.
8671 (find_record_target): New.
8672 (require_record_target): New.
8673 (cmd_record_start): Update.
8674 (cmd_record_delete): Remove target-specific code.
8675 Call target_delete_record.
8676 (cmd_record_stop): Unpush any record target.
8677 (set_record_insn_max_num): Move to record-full.c
8678 (set_record_command): Add comment.
8679 (show_record_command): Add comment.
8680 (info_record_command): Update comment.
8681 Remove target-specific code.
8682 Call the record target's to_info_record.
8683 (cmd_record_start): New.
8684 (cmd_record_goto): Now extern.
8685 Remove target-specific code.
8686 Call target_goto_begin, target_goto_end, or target_goto.
8687 (_initialize_record): Move record target ops initialization to
8688 record-full.c.
8689 Change "record" command help text.
8690 Move "record restore", "record set", and "record show" commands to
8691 record-full.c.
8692 * Makefile.in (SFILES): Add record-full.c.
8693 (HFILES_NO_SRCDIR): Add record-full.h.
8694 (COMMON_OBS): Add record-full.o.
8695 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8696 * arm-tdep.c: Include record-full.h.
8697 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8698 * i386-tdep.c: Include record-full.h.
8699 * infrun.c: Include record-full.h.
8700 * linux-record.c: Include record-full.h.
8701 * moxie-tdep.c: Include record-full.h.
8702 * record-full.c: Include record-full.h.
8703 Change module comment.
8704 (set_record_full_cmdlist): New.
8705 (show_record_full_cmdlist): New.
8706 (record_full_cmdlist): New.
8707 (record_goto_insn): New declaration.
8708 (record_save): New declaration.
8709 (record_check_insn_num): Change query string.
8710 (record_info): New.
8711 (record_delete): New.
8712 (record_is_replaying): New.
8713 (record_goto_entry): New.
8714 (record_goto_begin): New.
8715 (record_goto_end): New.
8716 (record_goto): New.
8717 (init_record_ops): Update.
8718 (init_record_core_ops): Update.
8719 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8720 (cmd_record_start): New.
8721 (set_record_insn_max_num): Moved from record.c
8722 (set_record_full_command): New.
8723 (show_record_full_command): New.
8724 (_initialize_record_full): New.
8725
8726 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8727
8728 * target.h (add_deprecated_target_alias): New.
8729 * target.c (add_deprecated_target_alias): New.
8730
8731 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8732
8733 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8734 and signal.h.
8735 (linux_supports_btrace): Add kernel and
8736 cpuid check.
8737 (kernel_supports_btrace): New function.
8738 (cpu_supports_btrace): New function.
8739 (intel_supports_btrace): New function.
8740
8741 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8742
8743 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8744 * remote.c: Include btrace.h.
8745 (struct btrace_target_info): New struct.
8746 (remote_supports_btrace): New function.
8747 (send_Qbtrace): New function.
8748 (remote_enable_btrace): New function.
8749 (remote_disable_btrace): New function.
8750 (remote_teardown_btrace): New function.
8751 (remote_read_btrace): New function.
8752 (init_remote_ops): Add btrace ops.
8753 (enum <unnamed>): Add btrace packets.
8754 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8755 (_initialize_remote): Add packet configuration for branch tracing.
8756
8757 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8758
8759 * features/btrace.dtd: New file.
8760 * Makefile.in (XMLFILES): Add btrace.dtd.
8761 * btrace.h (parse_xml_btrace): New declaration.
8762 * btrace.c: Include xml-support.h.
8763 (parse_xml_btrace): New function.
8764 (parse_xml_btrace_block): New function.
8765 (block_attributes): New struct.
8766 (btrace_attributes): New struct.
8767 (btrace_children): New struct.
8768 (btrace_elements): New struct.
8769
8770 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8771
8772 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8773 (amd64_linux_enable_btrace): New.
8774 (amd64_linux_disable_btrace): New.
8775 (amd64_linux_teardown_btrace): New.
8776 (_initialize_amd64_linux_nat): Initialize btrace ops.
8777 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8778 (i386_linux_enable_btrace): New.
8779 (i386_linux_disable_btrace): New.
8780 (i386_linux_teardown_btrace): New.
8781 (_initialize_i386_linux_nat): Initialize btrace ops.
8782 * config/i386/linux.mh: Add linux-btrace.o.
8783 * config/i386/linux64.mh: Add linux-btrace.o.
8784
8785 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8786
8787 * common/linux_btrace.h: New file.
8788 * common/linux_btrace.c: New file.
8789 * Makefile.in (SFILES): Add btrace.c.
8790 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8791 (COMMON_OBS): Add btrace.o.
8792 (linux-btrace.o): New rule.
8793
8794 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8795
8796 * target.h: Include btrace.h.
8797 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8798 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8799 * target.c (target_supports_btrace): New function.
8800 (target_enable_btrace): New function.
8801 (target_disable_btrace): New function.
8802 (target_teardown_btrace): New function.
8803 (target_read_btrace): New function.
8804 * btrace.h: New file.
8805 * btrace.c: New file.
8806 * Makefile.in: Add btrace.c.
8807 * gdbthread.h: Include btrace.h.
8808 (struct thread_info): Add btrace field.
8809 * thread.c: Include btrace.h.
8810 (clear_thread_inferior_resources): Call target_teardown_btrace.
8811 * common/btrace-common.h: New file.
8812
8813 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8814
8815 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8816 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8817 kill_status to outer block.
8818
8819 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8820
8821 Fix entry-values if the callee called a noreturn function.
8822 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8823 get_frame_address_in_block. Add new comment.
8824
8825 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8826
8827 Fix entry-values in C++ across CUs.
8828 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8829 lookup_minimal_symbol. Add a comment.
8830 * dwarf2read.c
8831 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8832 DW_AT_linkage_name.
8833
8834 2013-03-08 Yao Qi <yao@codesourcery.com>
8835
8836 * tracepoint.c (_initialize_tracepoint): Indent the code.
8837
8838 2013-03-08 Pedro Alves <palves@redhat.com>
8839
8840 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8841 (parse_find_args, find_command): Change type of pattern buffer
8842 locals to 'gdb_byte *'.
8843
8844 2013-03-08 Stan Shebs <stan@codesourcery.com>
8845 Hafiz Abid Qadeer <abidh@codesourcery.com>
8846
8847 * NEWS: Mention set and show trace-buffer-size commands.
8848 Mention new packet.
8849 * target.h (struct target_ops): New method
8850 to_set_trace_buffer_size.
8851 (target_set_trace_buffer_size): New macro.
8852 * target.c (update_current_target): Set up new method.
8853 * tracepoint.c (trace_buffer_size): New global.
8854 (start_tracing): Send it to the target.
8855 (set_trace_buffer_size): New function.
8856 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8857 * remote.c (remote_set_trace_buffer_size): New function.
8858 (_initialize_remote): Use it.
8859 (QTBuffer:size) New remote command.
8860 (PACKET_QTBuffer_size): New enum.
8861 (remote_protocol_features): Add an entry for
8862 PACKET_QTBuffer_size.
8863
8864 2013-03-08 Tom Tromey <tromey@redhat.com>
8865
8866 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8867 variable.
8868
8869 2013-03-07 Pedro Alves <palves@redhat.com>
8870
8871 * target.c (target_read_stralloc, target_fileio_read_alloc):
8872 *Cast pointer to 'gdb_byte *' in target call.
8873
8874 2013-03-07 Pedro Alves <palves@redhat.com>
8875
8876 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8877 call.
8878
8879 2013-03-07 Keith Seitz <keiths@redhat.com>
8880
8881 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8882 (trace_pass_command): Likewise.
8883 * cli/cli-cmds.c: Include cli/cli-utils.h.
8884 (source_command): Use skip-spaces.
8885 (disassemble_command): Likewise.
8886 * findcmd.c: Include cli/cli-utils.h.
8887 (parse_find_args): Use skip_spaces.
8888 * go32-nat.c: Include cli/cli-utils.h.
8889 (go32_sldt): Use skip_spaces.
8890 (go32_sgdt): Likewise.
8891 (go32_sidt): Likewise.
8892 (go32_pde): Likewise.
8893 (go32_pte): Likewise.
8894 (go32_pte_for_address): Likewise.
8895 * infcmd.c: Include cli/cli-utils.h.
8896 (registers_info): Use skip_spaces.
8897 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8898 (linux_info_proc): Likewise.
8899 * linux-thread-db.c: Include cli/cli-utils.h.
8900 (info_auto_load_libthread_db): Use skip_spaces_const.
8901 * m32r-rom.c: Include cli/cli-utils.h.
8902 (m32r_upload_command): Use skip_spaces.
8903 * maint.c: Include cli/cli-utils.h.
8904 (maintenance_translate_address): Use skip_spaces.
8905 * mi/mi-parse.c: Include cli/cli-utils.h.
8906 (mi_parse_argv): Use skip_spaces.
8907 (mi_parse): Likewise.
8908 * minsyms.c: Include cli/cli-utils.h.
8909 (msymbol_hash_iw): Use skip_spaces_const.
8910 * objc-lang.c: Include cli/cli-utils.h.
8911 (parse_selector): Use skip_spaces.
8912 (parse_method): Likewise.
8913 * python/python.c: Include cli/cli-utils.h.
8914 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8915 (python_command)[HAVE_PYTHON]: Likewise.
8916 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8917 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8918 (m32r_load): Use skip_spaces.
8919 * serial.c: Include cli/cli-utils.h.
8920 (serial_open): Use skip_spaces_const.
8921 * stack.c: Include cli/cli-utils.h.
8922 (parse_frame_specification_1): Use skip_spaces_const.
8923 * symfile.c: Include cli/cli-utils.h.
8924 (set_ext_lang_command): Use skip_spaces.
8925 * symtab.c: Include cli/cli-utils.h.
8926 (rbreak_command): Use skip_spaces.
8927 * thread.c (thread_name_command): Use skip_spaces.
8928 * tracepoint.c (validate_actionline): Use skip_spaces.
8929 (encode_actions_1): Likewise.
8930 (trace_find_range_command): Likewise.
8931 (trace_find_outside_command): Likewise.
8932 (trace_dump_actions): Likewise.
8933
8934 2013-03-07 Pedro Alves <palves@redhat.com>
8935
8936 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8937 * expprint.c (print_subexp_standard): Likewise.
8938 * utils.c (host_char_to_target): Likewise.
8939 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8940 * varobj.c (value_get_print_value): Change type of local to char*.
8941 Cast it gdb_byte * in call to language printer.
8942
8943 2013-03-07 Pedro Alves <palves@redhat.com>
8944
8945 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8946 gdb_byte *'.
8947 (make_wchar_iterator): Remove cast to char*.
8948 (wchar_iterate): Change type of local.
8949
8950 2013-03-07 Pedro Alves <palves@redhat.com>
8951
8952 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8953 for 'regcache->register_status'.
8954
8955 2013-03-07 Pedro Alves <palves@redhat.com>
8956
8957 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8958 int.
8959
8960 2013-03-07 Pedro Alves <palves@redhat.com>
8961
8962 * stap-probe.c (handle_stap_probe): Add cast to char*.
8963
8964 2013-03-07 Pedro Alves <palves@redhat.com>
8965
8966 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8967 RECORD_MSGRCV>: Pass a signed variable to
8968 regcache_raw_read_signed, instead of an unsigned one.
8969
8970 2013-03-07 Pedro Alves <palves@redhat.com>
8971
8972 * remote-notif.c (notif_debug): Change type to int.
8973 * remote-notif.h (notif_debug): Likewise.
8974
8975 2013-03-07 Pedro Alves <palves@redhat.com>
8976
8977 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8978
8979 2013-03-07 Pedro Alves <palves@redhat.com>
8980
8981 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8982 * remote.h (hex2bin, bin2hex): ... here.
8983 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8984
8985 2013-03-07 Eli Zaretskii <eliz@gnu.org>
8986
8987 * utils.c (initialize_utils): Improve doc strings of "set/show
8988 width", "set/show height", and "set/show pagination".
8989
8990 2013-03-06 Keith Seitz <keiths@redhat.com>
8991
8992 * ax-gdb.c (gen_printf): Make FORMAT const.
8993 * ax-gdb.h (gen_printf): Likewise.
8994 * ax-general.c (ax_string): Make STR const.
8995 * ax.h (ax_string): Likewise.
8996
8997 2013-03-06 Doug Evans <dje@google.com>
8998
8999 * elfread.c (elf_symfile_read): Move debugging printf to more
9000 logical location.
9001
9002 2013-03-06 Pedro Alves <palves@redhat.com>
9003
9004 * python/py-utils.c (target_string_to_unicode): Delete function.
9005 * python/python-internal.h (target_string_to_unicode): Delete
9006 declaration.
9007
9008 2013-03-06 Pierre Muller <muller@sourceware.org>
9009
9010 * linespec.c (get_current_search_block): ARI fix, use (void)
9011 for empty parameter list.
9012
9013 2013-03-05 Doug Evans <dje@google.com>
9014
9015 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9016 of old ada_lookup_symbol_list. In !full_search case, don't
9017 search superblocks.
9018 (ada_lookup_symbol_list): Delete arg full_search, all callers
9019 updated. Call ada_lookup_symbol_list_worker.
9020 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9021 * ada-lang.h (ada_lookup_symbol_list): Update.
9022 * language.h (language_defn): Update comment for
9023 la_iterate_over_symbols.
9024 * linespec.c (iterate_over_file_blocks): New function.
9025 (iterate_over_all_matching_symtabs): Call it.
9026 (lookup_prefix_sym): Ditto.
9027 (get_current_search_block): New function.
9028 (get_search_block): Delete.
9029 (find_label_symbols): Call get_current_search_block.
9030 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9031 * symtab.c (iterate_over_symbols): Don't search superblocks.
9032
9033 2013-03-05 Yao Qi <yao@codesourcery.com>
9034
9035 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9036 parameter VAR's type from "unsigned int" to "int".
9037 * command.h (var_zuinteger_unlimited): Update its comments.
9038 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9039
9040 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9041
9042 * NEWS: Mention new target x86_64-*-cygwin*.
9043
9044 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9045
9046 * configure.host: Add x86_64-*-cygwin* as host.
9047 * configure.tgt: Add x86_64-*-cygwin* as target.
9048 * config/i386/cygwin64.mh: New file.
9049
9050 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9051
9052 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9053
9054 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9055
9056 * linespec.c (struct linespec_canonical_name): New.
9057 (struct linespec_state): Change canonical_names type to it.
9058 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9059 xrealloc element size. Initialize the different CANONICAL fields.
9060 (canonical_to_fullform): New.
9061 (filter_results): Use it. Add variables canonical, fullform and
9062 cleanup.
9063 (struct decode_line_2_item, decode_line_2_compare_items): New.
9064 (decode_line_2): Remove variables iter and item_names, add variables
9065 items and items_count. Modify the code for these new variables.
9066
9067 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9068
9069 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9070 calling do_cleanup.
9071
9072 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9073
9074 * tracepoint.c (build_traceframe_info): Add code for byte order.
9075
9076 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9077
9078 * v850-tdep.c: (v850e2_register_name): Revise system register
9079 names to match current V850E2M architecture specifications.
9080 Update register number enum comments too.
9081
9082 2013-03-01 Jiong Wang <jiwang@tilera.com>
9083 Pedro Alves <palves@redhat.com>
9084
9085 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9086 to END_ADDR.
9087 (tilegx_skip_prologue): Limit prologue analysis to section end.
9088
9089 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9090
9091 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9092 use it.
9093
9094 2013-03-01 Pedro Alves <palves@redhat.com>
9095
9096 Use gdb_byte for bytes from the program being debugged.
9097
9098 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9099 Change type of local 'buf' to gdb_byte.
9100 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9101 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9102 * cris-tdep.c (cris_sigcontext_addr)
9103 (cris_sigtramp_frame_unwind_cache): Likewise.
9104 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9105 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9106 Likewise.
9107 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9108 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9109 (hppa32_hpux_search_dummy_call_sequence)
9110 (hppa_hpux_supply_save_state): Likewise.
9111 * hppa-linux-tdep.c (insns_match_pattern)
9112 (hppa_linux_find_global_pointer): Likewise.
9113 * hppa-tdep.c (hppa_in_function_epilogue_p)
9114 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9115 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9116 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9117 (i386fbsd_collect_uthread): Likewise.
9118 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9119 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9120 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9121 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9122 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9123 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9124 (ia64_libunwind_frame_prev_register)
9125 (ia64_libunwind_sigtramp_frame_this_id)
9126 (ia64_find_global_pointer_from_dynamic_section)
9127 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9128 (ia64_unwind_pc): Likewise.
9129 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9130 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9131 (m68hc11_extract_return_value): Likewise.
9132 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9133 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9134 (mep_get_insn, mep_push_dummy_call): Likewise.
9135 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9136 (mips_linux_in_dynsym_stub): Likewise.
9137 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9138 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9139 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9140 to gdb_byte.
9141 * remote-mips.c (mips_set_register): Likewise.
9142 * remote-sim.c (gdbsim_fetch_register): Likewise.
9143 * score-tdep.c (score7_fetch_inst): Change type of parameter
9144 'memblock' and local 'buf' to gdb_byte.
9145 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9146 Change type of local 'buf' to gdb_byte. Adjust.
9147 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9148 to gdb_byte**.
9149 (score7_analyze_prologue): Change type of 'memblock' and
9150 'memblock_ptr' locals to gdb_byte*.
9151 * sh64-tdep.c (sh64_extract_return_value)
9152 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9153 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9154 * solib-pa64.c (pa64_solib_create_inferior_hook)
9155 (pa64_open_symbol_file_object): Remove local 'buf'.
9156 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9157 (som_open_symbol_file_object): Likewise.
9158 * solib-spu.c (spu_current_sos): Likewise.
9159 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9160 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9161 (spu_store_registers): Likewise.
9162 * target.c (debug_print_register): Likewise.
9163 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9164 * xstormy16-tdep.c (xstormy16_store_return_value)
9165 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9166 (xstormy16_find_jmp_table_entry): Likewise.
9167
9168 2013-03-01 Jiong Wang <jiwang@tilera.com>
9169
9170 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9171 (tilegx_gdbarch_init): Install it.
9172
9173 2013-02-28 Tom Tromey <tromey@redhat.com>
9174
9175 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9176 PyLong_Check.
9177
9178 2013-02-28 Doug Evans <dje@google.com>
9179
9180 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9181 * python/python.c (gdbpy_find_pc_line): Ditto.
9182
9183 2013-02-28 Tom Tromey <tromey@redhat.com>
9184
9185 * contrib/excheck.py: New file.
9186 * contrib/exsummary.py: New file.
9187 * contrib/gcc-with-excheck: New file.
9188
9189 2013-02-28 Tom Tromey <tromey@redhat.com>
9190
9191 * python/python.c (gdbpy_print_stack): Call begin_line and
9192 fprintf_filtered inside TRY_CATCH.
9193
9194 2013-02-28 Tom Tromey <tromey@redhat.com>
9195
9196 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9197 inside TRY_CATCH.
9198
9199 2013-02-28 Tom Tromey <tromey@redhat.com>
9200
9201 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9202 frame_object_to_frame_info inside TRY_CATCH.
9203
9204 2013-02-28 Tom Tromey <tromey@redhat.com>
9205
9206 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9207 TRY_CATCH.
9208
9209 2013-02-28 Tom Tromey <tromey@redhat.com>
9210
9211 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9212
9213 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9214
9215 * windows-nat.c: Throughout, fix format strings and casts of
9216 printf-like functions to avoid type related warnings on all
9217 platforms.
9218 (handle_output_debug_string): Fetch context information address
9219 from debug string using string_to_core_addr.
9220
9221 2013-02-27 Jiong Wang <jiwang@tilera.com>
9222
9223 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9224 * regformats/reg-tilegx32.dat: New.
9225
9226 2013-02-27 Jiong Wang <jiwang@tilera.com>
9227
9228 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9229
9230 2013-02-27 Jiong Wang <jiwang@tilera.com>
9231
9232 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9233
9234 2013-02-27 Yao Qi <yao@codesourcery.com>
9235 Pedro Alves <palves@redhat.com>
9236
9237 * tracepoint.c (tfile_trace_find): For tfind
9238 pc/tp/range/outside, look for the next trace frame instead of
9239 always starting from frame 0.
9240
9241 2013-02-26 Anthony Green <green@moxielogic.com>
9242
9243 * configure.tgt: Add support for moxie-*-rtems* target.
9244
9245 2013-02-25 Pedro Alves <palves@redhat.com>
9246
9247 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9248 warning text.
9249
9250 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9251
9252 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9253 if $fp is used as the virtual frame pointer.
9254
9255 2013-02-23 Alan Modra <amodra@gmail.com>
9256
9257 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9258 symbol size.
9259 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9260 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9261 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9262 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9263
9264 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9265
9266 Code cleanup.
9267 * elfread.c (build_id_bfd_get): Make the return type const.
9268 (build_id_verify): Make the check parameter const.
9269 (build_id_to_debug_filename): Make the build_id parameter and variable
9270 data const.
9271 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9272
9273 2013-02-21 Alan Modra <amodra@gmail.com>
9274
9275 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9276
9277 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9278
9279 Add a new method 'disassemble' to gdb.Architecture class.
9280 * python/py-arch.c (archpy_disassmble): Implementation of the
9281 new method gdb.Architecture.disassemble.
9282 (arch_object_methods): Add entry for the new method.
9283
9284 2013-02-20 Jiong Wang <jiwang@tilera.com>
9285
9286 * MAINTAINERS (Write After Approval): Add myself to the list.
9287
9288 2013-02-19 Pedro Alves <palves@redhat.com>
9289
9290 Garbage collect 'struct monitor_ops'::load_routine.
9291
9292 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9293 * monitor.c (monitor_load): No longer call
9294 current_monitor->load_routine.
9295 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9296 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9297 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9298
9299 2013-02-19 Pedro Alves <palves@redhat.com>
9300
9301 PR gdb/15161
9302
9303 Harmonize with generic_load.
9304
9305 * monitor.c: Include "readline/readline.h".
9306 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9307 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9308 long/strtol for the 'load_offset' local. Error out if no argument
9309 is given or if too many arguments are given. Tilde expand the
9310 passed in file name.
9311
9312 2013-02-19 Kai Tietz <ktietz@redhat.com>
9313
9314 PR gdb/15161
9315 * symfile.c (load_section_data): Change type of load_offset
9316 to CORE_ADDR.
9317 (generic_load): User strtoulst instead of strtoul for conversion
9318 of load_offset.
9319
9320 2013-02-19 Jiong Wang <jiwang@tilera.com>
9321
9322 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9323 for return address, "lr" register, saved on stack.
9324 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9325 after we invoke tilegx_analyze_prologue.
9326
9327 2013-02-19 Jiong Wang <jiwang@tilera.com>
9328
9329 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9330
9331 2013-02-19 Jiong Wang <jiwang@tilera.com>
9332
9333 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9334
9335 2013-02-19 Jiong Wang <jiwang@tilera.com>
9336
9337 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9338 (tilegx_write_pc): New function.
9339 (tilegx_cannot_reference_register): Return zero if REGNO
9340 is TILEGX_FAULTNUM_REGNUM.
9341 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9342 (tilegx_register_name): Add handling of "faultnum" register.
9343 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9344 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9345 handling of TILEGX_FAULTNUM_REGNUM.
9346 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9347
9348 2013-02-19 Jiong Wang <jiwang@tilera.com>
9349
9350 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9351 should be aligned to 64bit.
9352
9353 2013-02-19 Kai Tietz <ktietz@redhat.com>
9354
9355 * windows-nat.c (windows_xfer_memory): Fix debug-output
9356 for LLP64.
9357
9358 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9359
9360 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9361 Don't check DSP register number if HAVE_DSP is not set.
9362
9363 2013-02-19 Alan Modra <amodra@gmail.com>
9364
9365 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9366 throughout file instead.
9367 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9368 Don't xmalloc return value.
9369 (build_id_verify): Similarly. Don't xfree.
9370 (build_id_to_debug_filename): Update.
9371 (find_separate_debug_file_by_buildid): Update, don't xfree.
9372
9373 2013-02-18 Tom Tromey <tromey@redhat.com>
9374
9375 PR gdb/15102:
9376 * dwarf2read.c (read_subrange_type): Use result of
9377 'check_typedef'.
9378
9379 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9380
9381 * frame.c: Remove one extra white space after #include
9382 directive.
9383
9384 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9385
9386 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9387
9388 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9389
9390 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9391 and dir commands into an if block.
9392
9393 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9394
9395 * python/py-breakpoint (struct pybp_code): Use int instead of
9396 enum type_code.
9397
9398 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9399 Hafiz Abid Qadeer <abidh@codesourcery.com>
9400
9401 * NEWS: Mention new field "trace-file".
9402 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9403 (tfile_open): Record the trace file's filename in the trace
9404 status.
9405 (tfile_files_info): Mention the name of the trace file.
9406 Check the "filename" field explicitely.
9407 (trace_status_command): Explicitely check "filename" field.
9408 (trace_find_command): Ditto.
9409 (trace_find_pc_command): Ditto.
9410 (trace_find_tracepoint_command): Ditto.
9411 (trace_find_line_command): Ditto.
9412 (trace_find_range_command): Ditto.
9413 (trace_find_outside_command): Ditto.
9414 * tracepoint.h (struct trace_status) <from_file>: Rename it
9415 to "filename" and make it hold the trace file's filename
9416 instead of a boolean.
9417 * remote.c (remote_get_trace_status): Initialize "filename"
9418 field with NULL instead of 0.
9419
9420 2013-02-15 Yao Qi <yao@codesourcery.com>
9421
9422 * remote.c: Fix a typo.
9423
9424 2013-02-14 Pierre Muller <muller@sourceware.org>
9425
9426 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9427
9428 2013-02-14 Pedro Alves <palves@redhat.com>
9429
9430 * utils.c (savestring): Don't #undef it. Move function to
9431 common/common-utils.c.
9432 * common/common-utils.c: Include gdb_string.h.
9433 (savestring): Move here from utils.c.
9434 * common/common-utils.h (savestring): Declare.
9435
9436 2013-02-14 Pedro Alves <palves@redhat.com>
9437
9438 * utils.c (savestring): Rename parameter 'size' to 'len'.
9439
9440 2013-02-14 Pedro Alves <palves@redhat.com>
9441 Yufeng Zhang <yufeng.zhang@arm.com>
9442
9443 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9444 (aarch64_inferior_data, struct aarch64_inferior_data):
9445 Delete.
9446 (struct aarch64_process_info): New.
9447 (aarch64_process_list): New global.
9448 (aarch64_find_process_pid, aarch64_add_process)
9449 (aarch64_process_info_get): New functions.
9450 (aarch64_inferior_data_get): Delete.
9451 (aarch64_process_info_get): New function.
9452 (aarch64_forget_process): New function.
9453 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9454 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9455 aarch64_get_debug_reg_state.
9456 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9457 instead of linux_nat_iterate_watchpoint_lwps.
9458 (aarch64_linux_new_fork): New function.
9459 (aarch64_linux_child_post_startup_inferior): Use
9460 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9461 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9462 (aarch64_linux_remove_hw_breakpoint)
9463 (aarch64_handle_aligned_watchpoint)
9464 (aarch64_handle_unaligned_watchpoint)
9465 (aarch64_linux_insert_watchpoint)
9466 (aarch64_linux_remove_watchpoint)
9467 (aarch64_linux_stopped_data_address): Adjust to pass the current
9468 process id to aarch64_debug_reg_state.
9469 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9470 linux_nat_new_fork hook, and aarch64_forget_process as
9471 linux_nat_forget_process hook; remove the call to
9472 register_inferior_data_with_cleanup.
9473
9474 2013-02-14 Pedro Alves <palves@redhat.com>
9475
9476 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9477 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9478 lval_memory.
9479
9480 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9481 Hafiz Abid Qadeer <abidh@codesourcery.com>
9482
9483 * tracepoint.h (validate_trace_state_variable_name): Declare.
9484 * tracepoint.c (validate_trace_state_variable_name): New.
9485 (trace_variable_command): Parse the trace state variable's name
9486 without using parse_expression. Do several validations.
9487 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9488 trace state variable's name with parse_expression. Validate it.
9489
9490 2013-02-14 Yao Qi <yao@codesourcery.com>
9491
9492 * infcmd.c (breakpoint_proceeded): Remove it.
9493
9494 2013-02-14 Yao Qi <yao@codesourcery.com>
9495
9496 * tracepoint.c (end_actions_pseudocommand): Make it static.
9497 (while_stepping_pseudocommand): Likewise.
9498 * tracepoint.h (end_actions_pseudocommand): Remove the
9499 declaration.
9500 (while_stepping_pseudocommand): Likewise.
9501
9502 2013-02-14 Yao Qi <yao@codesourcery.com>
9503
9504 * cli/cli-decode.c (help_cmd): Remove the declaration of
9505 "cmdlist".
9506 (help_all): Likewise.
9507
9508 2013-02-13 Pedro Alves <palves@redhat.com>
9509
9510 * amd64-linux-nat.c (update_debug_registers_callback):
9511 Update comment.
9512 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9513 iterate_over_lwps.
9514 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9515 i386_debug_reg_state.
9516 (amd64_linux_new_fork): New function.
9517 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9518 linux_nat_new_fork hook, and i386_forget_process as
9519 linux_nat_forget_process hook.
9520 * i386-linux-nat.c (update_debug_registers_callback):
9521 Update comment.
9522 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9523 iterate_over_lwps.
9524 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9525 i386_debug_reg_state.
9526 (i386_linux_new_fork): New function.
9527 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9528 linux_nat_new_fork hook, and i386_forget_process as
9529 linux_nat_forget_process hook.
9530 * i386-nat.c (i386_init_dregs): Delete.
9531 (i386_inferior_data, struct i386_inferior_data):
9532 Delete.
9533 (struct i386_process_info): New.
9534 (i386_process_list): New global.
9535 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9536 New functions.
9537 (i386_inferior_data_get): Delete.
9538 (i386_process_info_get): New function.
9539 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9540 (i386_forget_process): New function.
9541 (i386_cleanup_dregs): Rewrite.
9542 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9543 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9544 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9545 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9546 to i386_debug_reg_state.
9547 (i386_use_watchpoints): Don't register inferior data.
9548 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9549 adjust comment.
9550 (i386_forget_process): Declare.
9551 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9552 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9553 New static globals.
9554 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9555 (add_initial_lwp): New, factored out from ...
9556 (add_lwp): ... this. Don't check the number of lwps before
9557 calling linux_nat_new_thread.
9558 (linux_nat_iterate_watchpoint_lwps): Delete.
9559 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9560 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9561 forks and vforks.
9562 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9563 initial lwp.
9564 (linux_nat_kill, linux_nat_mourn_inferior): Call
9565 linux_nat_forget_process.
9566 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9567 (linux_nat_forget_process): New functions.
9568 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9569 type.
9570 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9571 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9572 types.
9573 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9574 (linux_nat_forget_process): New declarations.
9575
9576 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9577 (amd64fbsd_mourn_inferior): New function.
9578 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9579 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9580
9581 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9582
9583 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9584 Adding _().
9585
9586 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9587
9588 * aarch64-linux-nat.c (debug_reg_change_callback)
9589 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9590 %s and phex().
9591
9592 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9593
9594 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9595 with LONGEST.
9596
9597 2013-02-13 Pedro Alves <palves@redhat.com>
9598 Hafiz Abid Qadeer <abidh@codesourcery.com>
9599
9600 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9601
9602 2013-02-12 Tom Tromey <tromey@redhat.com>
9603
9604 PR symtab/11464:
9605 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9606 NAME return.
9607 (classify_inner_name): Remove 'first_name' argument, add
9608 'context'. Remove unused variable.
9609 (yylex): Explicitly maintain the context type. Exit loop earlier
9610 if NAME result is seen.
9611
9612 2013-02-12 Pedro Alves <palves@redhat.com>
9613
9614 * amd64-darwin-tdep.c: Add (C) after Copyright.
9615 * cli/cli-cmds.h: Ditto.
9616 * cli/cli-decode.c: Ditto.
9617 * cli/cli-decode.h: Ditto.
9618 * cli/cli-dump.c: Ditto.
9619 * cli/cli-dump.h: Ditto.
9620 * cli/cli-interp.c: Ditto.
9621 * cli/cli-logging.c: Ditto.
9622 * cli/cli-script.c: Ditto.
9623 * cli/cli-script.h: Ditto.
9624 * cli/cli-setshow.c: Ditto.
9625 * cli/cli-setshow.h: Ditto.
9626 * cli/cli-utils.c: Ditto.
9627 * cli/cli-utils.h: Ditto.
9628 * config/alpha/nm-osf3.h: Ditto.
9629 * config/djgpp/djconfig.sh: Ditto.
9630 * config/i386/nm-fbsd.h: Ditto.
9631 * config/i386/nm-i386gnu.h: Ditto.
9632 * config/nm-linux.h: Ditto.
9633 * config/nm-nto.h: Ditto.
9634 * config/rs6000/nm-rs6000.h: Ditto.
9635 * config/sparc/nm-sol2.h: Ditto.
9636 * darwin-nat-info.c: Ditto.
9637 * dfp.c: Ditto.
9638 * dfp.h: Ditto.
9639 * gdb-demangle.h: Ditto.
9640 * i386-darwin-nat.c: Ditto.
9641 * i386-darwin-tdep.c: Ditto.
9642 * linux-fork.h: Ditto.
9643 * m32c-tdep.c: Ditto.
9644 * microblaze-linux-tdep.c: Ditto.
9645 * microblaze-rom.c: Ditto.
9646 * microblaze-tdep.c: Ditto.
9647 * microblaze-tdep.h: Ditto.
9648 * mips-linux-tdep.h: Ditto.
9649 * ppc-ravenscar-thread.c: Ditto.
9650 * ppc-ravenscar-thread.h: Ditto.
9651 * prologue-value.c: Ditto.
9652 * prologue-value.h: Ditto.
9653 * ravenscar-thread.c: Ditto.
9654 * ravenscar-thread.h: Ditto.
9655 * sparc-ravenscar-thread.c: Ditto.
9656 * sparc-ravenscar-thread.h: Ditto.
9657 * tilegx-linux-tdep.c: Ditto.
9658 * unwind_stop_reasons.def: Ditto.
9659 * windows-nat.h: Ditto.
9660 * xtensa-linux-tdep.c: Ditto.
9661 * xtensa-xtregs.c: Ditto.
9662 * regformats/regdat.sh: Ditto.
9663 * regformats/regdef.h: Ditto.
9664
9665 2013-02-12 Pedro Alves <palves@redhat.com>
9666
9667 * break-catch-sig.c: Update copyright years.
9668
9669 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9670
9671 Add support for a destructor for ui_out data and use it to
9672 provide a ui_out destructor.
9673 * ui-out.h: Declare the new ui_out destructor.
9674 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9675 * ui-out.c (default_data_destroy): Add a default data destructor
9676 which does nothing.
9677 (default_ui_out_impl): Set the new data_destroy field to
9678 default_data_destroy
9679 (uo_data_destroy): Local function which invokes the data
9680 destructor if present.
9681 (clear_table): Local function which clears the table data of a
9682 ui_out object.
9683 (ui_out_destroy): Public function which frees a ui_out object.
9684 (ui_out_table_end): Use the new clear_table function.
9685 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9686 NULL.
9687 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9688 to NULL.
9689
9690 2013-02-11 Doug Evans <dje@google.com>
9691
9692 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9693 (printf_decfloat): New function. Broken out from ui_printf.
9694 Remove unnecessary code to shift the entire format string down.
9695 (printf_pointer): New function.
9696 (ui_printf): Code to print C strings, wide C strings, decfloats,
9697 and pointers moved to separate functions.
9698
9699 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9700
9701 * valops.c (value_assign): Handling bitfield offset in
9702 `lval_internalvar_component' case.
9703
9704 2013-02-08 Doug Evans <dje@google.com>
9705
9706 * common/format.c (parse_format_string): Fix whitespace.
9707
9708 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9709
9710 * stack.c (return_command): Work around uninitialized variable
9711 warning.
9712
9713 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9714
9715 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9716 number of the registers from 36 to 34.
9717
9718 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9719
9720 * NEWS: Mention new AArch64 native and target support.
9721
9722 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9723
9724 * MAINTAINERS (Write After Approval): Add myself.
9725
9726 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9727 Marcus Shawcroft <marcus.shawcroft@arm.com>
9728 Nigel Stephens <nigel.stephens@arm.com>
9729 Yufeng Zhang <yufeng.zhang@arm.com>
9730
9731 * aarch64-linux-nat.c: New file.
9732 * config/aarch64/linux.mh: New file.
9733 * configure.host: Add AArch64.
9734 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9735
9736 2013-02-07 Doug Evans <dje@google.com>
9737
9738 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9739 disassemble command.
9740
9741 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9742
9743 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9744 set_gdbarch_fetch_tls_load_module_address.
9745
9746 2013-02-06 David S. Miller <davem@davemloft.net>
9747
9748 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9749 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9750 * value.c (struct_return_convention): New function.
9751 (using_struct_return): Implement in terms of struct_return_convention.
9752 * value.h (struct_return_convention): Declare.
9753 * stack.c (return_command): Allow successful overriding of the return
9754 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9755
9756 2013-02-06 Tom Tromey <tromey@redhat.com>
9757
9758 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9759 outside of TRY_CATCH.
9760
9761 2013-02-06 Yao Qi <yao@codesourcery.com>
9762
9763 * mi/mi-interp.c: Include "tracepoint.h".
9764 (mi_tsv_modified): Declare.
9765 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9766 (mi_interpreter_init): Call observer_attach_tsv_modified.
9767 (mi_tsv_modified): New.
9768 (mi_tsv_created, mi_tsv_deleted): Update.
9769 * tracepoint.c (trace_variable_command): Call
9770 observer_notify_tsv_modified if the initial value of tsv is
9771 changed.
9772 (delete_trace_state_variable): Call
9773 observer_notify_tsv_deleted earlier.
9774 (trace_variable_command): Caller update.
9775 (create_tsv_from_upload): Likewise.
9776 * observer.sh: Declare "struct trace_state_variable".
9777
9778 * NEWS: Mention the new MI notification "=tsv-modified".
9779
9780 2013-02-05 Doug Evans <dje@google.com>
9781
9782 * completer.c (location_completer): Fix typo in comment.
9783
9784 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9785
9786 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9787 ADDRESS sorted.
9788
9789 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9790
9791 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9792 Refactor if statement to avoid trailing || operator.
9793
9794 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9795
9796 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9797
9798 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9799
9800 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9801 * configure.host: Add powerpc*-*-freebsd* target.
9802 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9803 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9804 * config/powerpc/fbsd.mh: New file.
9805
9806 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9807 Denys Vlasenko <dvlasenk@redhat.com>
9808 Pedro Alves <palves@redhat.com>
9809
9810 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9811 (struct elf_internal_linux_prpsinfo): Forward declare.
9812 * gdbarch.h, gdbarch.c: Regenerate.
9813 * linux-tdep.c: Include `cli/cli-utils.h'.
9814 (linux_fill_prpsinfo): New function.
9815 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9816 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9817 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9818 depending on gdbarch pointer bitness.
9819 * ppc-linux-tdep.c: Include elf-bfd.h.
9820 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9821 on 32-bit.
9822
9823 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9824 Marcus Shawcroft <marcus.shawcroft@arm.com>
9825 Nigel Stephens <nigel.stephens@arm.com>
9826 Yufeng Zhang <yufeng.zhang@arm.com>
9827
9828 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9829
9830 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9831 Marcus Shawcroft <marcus.shawcroft@arm.com>
9832 Nigel Stephens <nigel.stephens@arm.com>
9833 Yufeng Zhang <yufeng.zhang@arm.com>
9834
9835 * aarch64-newlib-tdep.c: New file.
9836 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9837 aarch64*-*-elf.
9838 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9839 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9840 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9841 * osabi.c (gdb_osabi_names): Add "Newlib".
9842
9843 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9844 Marcus Shawcroft <marcus.shawcroft@arm.com>
9845 Nigel Stephens <nigel.stephens@arm.com>
9846 Yufeng Zhang <yufeng.zhang@arm.com>
9847
9848 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9849 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9850 * aarch64-linux-tdep.c: New file.
9851 * aarch64-linux-tdep.h: New file.
9852 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9853 * configure.tgt: Add aarch64-none-linux-gnu.
9854
9855 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9856 Marcus Shawcroft <marcus.shawcroft@arm.com>
9857 Nigel Stephens <nigel.stephens@arm.com>
9858 Yufeng Zhang <yufeng.zhang@arm.com>
9859
9860 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9861 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9862 (ALLDEPFILES): Add aarch64-tdep.c.
9863 * aarch64-tdep.c: New file.
9864 * aarch64-tdep.h: New file.
9865 * configure.tgt: Add AArch64.
9866 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9867 (aarch64-expedite): New definition.
9868 * features/aarch64-core.xml: New file.
9869 * features/aarch64-fpu.xml: New file.
9870 * features/aarch64-without-fpu.c: New file (generated).
9871 * features/aarch64-without-fpu.xml: New file.
9872 * features/aarch64.c: New file (generated).
9873 * features/aarch64.xml: New file.
9874 * regformats/aarch64-without-fpu.dat: New file (generated).
9875 * regformats/aarch64.dat: New file (generated).
9876
9877 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9878
9879 * contrib/expect-read1.c: New file.
9880 * contrib/expect-read1.sh: New file.
9881
9882 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9883
9884 * dwarf2read.c (file_file_name): New function with code from
9885 file_full_name.
9886 (file_full_name): Move most of the code to file_file_name.
9887 (macro_start_file): Rename variable full_name to file_name and use
9888 file_file_name for it. Add comp_dir parameter to new_macro_table.
9889 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9890 macro_source_file->filename access by macro_source_fullname call.
9891 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9892 caller.
9893 * macrotab.c (struct macro_table): New field comp_dir.
9894 (macro_include): New variables link_fullname and source_fullname.
9895 Replace any macro_source_file->filename access by macro_source_fullname
9896 call.
9897 (macro_lookup_inclusion): Remove the partial filenames checking code.
9898 (check_for_redefinition): New variables source_fullname and
9899 found_key_fullname. Replace any macro_source_file->filename access by
9900 macro_source_fullname call.
9901 (macro_undef): New variables source_fullname and key_fullname. Replace
9902 any macro_source_file->filename access by macro_source_fullname call.
9903 (macro_lookup_definition): New variables retval and source_fullname.
9904 Replace any macro_source_file->filename access by macro_source_fullname
9905 call.
9906 (foreach_macro): New variable key_fullname. Replace any
9907 macro_source_file->filename access by macro_source_fullname call.
9908 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9909 macro_source_file->filename access by macro_source_fullname call.
9910 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9911 (macro_source_fullname): New function.
9912 * macrotab.h (struct macro_source_file): Extent the filename field
9913 comment.
9914 (new_macro_table): New parameter comp_dir, add a comment for it.
9915 (macro_source_fullname): new declaration.
9916
9917 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9918
9919 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9920 this_real_name to outer block. Use it also for
9921 compare_filenames_for_search.
9922 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9923 with dw2_get_real_path for file_matcher, considering also
9924 BASENAMES_MAY_DIFFER.
9925 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9926
9927 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9928
9929 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9930 to the file_matcher parameter. Pass 0 to it.
9931 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9932 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9933 NULL psymtab_to_fullname result.
9934 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9935 an expected filename instead.
9936 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9937 file_matcher parameter. Call also psymtab_to_fullname, after newly
9938 considering BASENAMES_MAY_DIFFER.
9939 * source.c (rewrite_source_path): Remove static.
9940 * source.h (rewrite_source_path): New declaration.
9941 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9942 the expand_symtabs_matching field. Comment it.
9943 * symtab.c (file_matches): New function comment. Add parameter
9944 basenames, implement it.
9945 (search_symbols_file_matches): Add basenames parameter. Update the
9946 file_matches caller.
9947 (search_symbols): Match FILES also against symtab_to_fullname.
9948 Optimize it for BASENAMES_MAY_DIFFER.
9949
9950 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9951
9952 * source.c (print_source_lines_base): Print for TUI also "fullname".
9953 * tui/tui-data.c (init_content_element): Change tui_locator_element
9954 field to full_name.
9955 * tui/tui-data.h (struct tui_locator_element): Likewise.
9956 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9957 tui_update_locator_filename calls to tui_update_locator_fullname.
9958 Replace symtab->filename refererence by symtab_to_fullname call.
9959 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9960 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9961 field to full_name. Replace symtab->filename refererence by
9962 symtab_to_fullname call.
9963 (tui_show_symtab_source): Rename parameter to fullname. Change
9964 tui_locator_element field to full_name.
9965 * tui/tui-stack.c: Include source.h.
9966 (tui_set_locator_filename): Rename the declaration to ...
9967 (tui_set_locator_fullname): ... here. Rename its parameter to
9968 fullname, updates its comment.
9969 (tui_set_locator_info): Rename its parameter to fullname.
9970 (tui_set_locator_filename): Rename the definition to ...
9971 (tui_set_locator_fullname): ... here. Rename its parameter to
9972 fullname, updates its comment. Change tui_locator_element field to
9973 full_name.
9974 (tui_set_locator_info): Rename its parameter to fullname.
9975 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9976 (tui_update_locator_filename): Rename to ...
9977 (tui_update_locator_fullname): ... here. Rename callee to
9978 tui_set_locator_fullname.
9979 (tui_show_frame_info): Replace symtab->filename refererence by
9980 symtab_to_fullname call.
9981 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9982 (tui_update_locator_fullname): ... here.
9983 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9984 tui_update_locator_fullname. Replace symtab->filename refererence by
9985 symtab_to_fullname call.
9986 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9987 Rename the callee to tui_update_locator_fullname.
9988 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9989
9990 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9991
9992 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9993 by symtab_to_filename_for_display calls.
9994 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9995 (clear_command): New variable sal_fullname, initialize it. Replace
9996 compare_filenames_for_search by filename_cmp with sal_fullname.
9997 (say_where, update_static_tracepoint): Replace symtab->filename
9998 refererences by symtab_to_filename_for_display calls.
9999 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10000 Likewise.
10001 * dwarf2read.c: Include source.h.
10002 (fixup_go_packaging): Replace symtab->filename refererences by
10003 symtab_to_filename_for_display calls.
10004 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10005 Replace symtab->filename refererences by symtab_to_filename_for_display
10006 calls.
10007 (create_sals_line_offset, convert_linespec_to_sals): New variable
10008 fullname, initialize it, replace symtab->filename reference by the
10009 variable.
10010 * linux-fork.c: Include source.h.
10011 (info_checkpoints_command): Replace symtab->filename refererences by
10012 symtab_to_filename_for_display calls.
10013 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10014 by symtab_to_filename_for_display calls.
10015 * mdebugread.c: Include source.h.
10016 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10017 symtab_to_filename_for_display calls.
10018 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10019 (mi_cmd_file_list_exec_source_files): Likewise.
10020 * printcmd.c: Include source.h.
10021 (build_address_symbolic): Replace symtab->filename refererences by
10022 symtab_to_filename_for_display calls.
10023 * psymtab.c (partial_map_symtabs_matching_filename)
10024 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10025 with psymtab_to_fullname.
10026 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10027 by symtab_to_filename_for_display calls.
10028 (stpy_get_filename): New variable filename, initialize it, use instead
10029 of symtab->filename refererences.
10030 (salpy_str): Make variable filename const char *. Replace
10031 symtab->filename refererences by symtab_to_filename_for_display calls.
10032 * skip.c: Include source.h and filenames.h.
10033 (skip_file_command): Remove const from the symtab variable. Replace
10034 symtab->filename refererences by symtab_to_fullname call.
10035 (function_name_is_marked_for_skip): New variables searched_for_fullname
10036 and fullname. Use them to search also with symtab's fullname.
10037 * source.c (find_source_lines): Replace symtab->filename refererences
10038 by symtab_to_filename_for_display calls.
10039 (print_source_lines_base): New variable filename, use it instead of
10040 symtab->filename. Replace symtab->filename refererences by
10041 symtab_to_filename_for_display calls.
10042 (line_info, forward_search_command): Replace symtab->filename
10043 refererences by symtab_to_filename_for_display calls.
10044 (reverse_search_command): Replace symtab->filename refererences by
10045 symtab_to_filename_for_display calls. New variable filename for it.
10046 * stack.c (frame_info): Likewise.
10047 * symmisc.c: Include source.h.
10048 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10049 (maintenance_info_symtabs): Replace symtab->filename refererences by
10050 symtab_to_filename_for_display calls.
10051 * symtab.c (iterate_over_some_symtabs): Call
10052 compare_filenames_for_search also with symtab_to_fullname.
10053 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10054 symtab->filename refererences by symtab_to_filename_for_display calls.
10055 (find_line_symtab): Replace symtab->filename refererences by
10056 symtab_to_filename_for_display calls.
10057 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10058 (print_symbol_info): Make the last parameter const char *. New
10059 variable s_filename. Use it in the function.
10060 (symtab_symbol_info): Make the last_filename variable const char *.
10061 Replace symtab->filename refererences by symtab_to_filename_for_display
10062 calls.
10063 (rbreak_command): New variable fullname. Use it. Replace
10064 symtab->filename refererence by symtab_to_filename_for_display call.
10065 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10066 (print_one_static_tracepoint_marker): Replace symtab->filename
10067 refererences by symtab_to_filename_for_display calls.
10068 * tui/tui-source.c (tui_set_source_content): New variables filename and
10069 s_filename. Replace symtab->filename refererences by this variable.
10070 Replace other symtab->filename refererences by
10071 symtab_to_filename_for_display calls.
10072
10073 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10074 Jan Kratochvil <jan.kratochvil@redhat.com>
10075
10076 Add a new variable that controls a way in which filenames are
10077 displayed.
10078 * NEWS (set filename-display): New entry.
10079 * source.c (filename_display_basename, filename_display_relative)
10080 (filename_display_absolute, filename_display_kind_names)
10081 (filename_display_string, show_filename_display_string)
10082 (symtab_to_filename_for_display): New.
10083 (_initialize_source): Added initialization of 'filename-display'
10084 variable.
10085 * source.h (symtab_to_filename_for_display): Added declaration.
10086 * stack.c (print_frame): Added new variable and calling of a new
10087 function and condition with this variable. Changed third argument of
10088 calling of a function.
10089
10090 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10091
10092 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10093 Rename field reference filename to fullname.
10094 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10095 fullname. New comment for it.
10096 * tui/tui-source.c (tui_set_source_content): Rename field reference
10097 filename to fullname. Initialize field by symtab_to_fullname now.
10098 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10099 reference filename to fullname. Use symtab_to_fullname during
10100 comparison.
10101
10102 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10103
10104 Code cleanup.
10105 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10106 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10107 filename to fullname. Rename variable this_name to this_fullname.
10108 Lowercase FILENAME_CMP call.
10109 (dw2_find_symbol_file): New comment for the returned string.
10110 (dwarf2_gdb_index_functions): Rename the function to
10111 dw2_expand_symtabs_with_fullname.
10112 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10113 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10114 fullname.
10115 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10116 * symfile.h (struct quick_symbol_functions): Rename field
10117 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10118 parameter filename to fullname. Document returned string meaning for
10119 find_symbol_file.
10120 * symtab.c (find_line_symtab): Rename the called function to
10121 expand_symtabs_with_fullname.
10122
10123 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10124
10125 Code cleanup.
10126 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10127 call of filename_cmp with compare_filenames_for_search.
10128 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10129 is_abs, unify the call of FILENAME_CMP with
10130 compare_filenames_for_search. New gdb_asserts for real_path and name.
10131 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10132 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10133 * symfile.h (struct quick_symbol_functions): Extend the comment for
10134 map_symtabs_matching_filename.
10135 * symtab.c (compare_filenames_for_search): Remove the function comment
10136 relative path requirement. Handle absolute filenames, with a comment.
10137 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10138 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10139 real_path and name. Unify the call of compare_filenames_for_search
10140 with FILENAME_CMP.
10141 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10142
10143 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10144
10145 Code cleanup.
10146 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10147 source_file references by symtab field references. Remove variables
10148 sal and fullname.
10149 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10150 (clear_command, say_where): Replace bp_location field source_file
10151 references by symtab field references.
10152 (bp_location_dtor): Remove the source_file reference.
10153 (update_static_tracepoint): Replace bp_location field source_file
10154 references by symtab field references.
10155 (breakpoint_free_objfile): New function.
10156 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10157 Replace the field source_file by field symtab, extend its comment.
10158 (breakpoint_free_objfile): New declaration.
10159 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10160 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10161 field source_file references by symtab field references.
10162
10163 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10164
10165 Replace xfullpath calls by gdb_realpath calls.
10166 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10167 function comment.
10168 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10169 Remove it from the iterate_over_some_symtabs call.
10170 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10171 Remove it from the dw2_map_expand_apply calls, remove a block handling
10172 it.
10173 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10174 Remove it from the iterate_over_some_symtabs call.
10175 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10176 Remove it from the partial_map_expand_apply calls, remove a block
10177 handling it. Drop gdb_realpath call and cleanups from the real_path
10178 handling.
10179 * source.c (openp): Drop the comment part about xfullpath. Replace
10180 xfullpath calls by gdb_realpath calls.
10181 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10182 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10183 from method map_symtabs_matching_filename and its comment.
10184 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10185 gdb_realpath call.
10186 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10187 remove it also from the function comment, remove a block handling it.
10188 Drop gdb_realpath call and cleanups from the real_path handling.
10189 (iterate_over_symtabs): Drop variable full_path and its use.
10190 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10191 * utils.c (xfullpath): Remove.
10192 * utils.h (xfullpath): Remove.
10193
10194 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10195
10196 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10197 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10198 (ALLDEPFILES): Add ppc64-tdep.c.
10199 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10200 ppc64-tdep.o to gdb_target_obs.
10201 * ppc64-tdep.h: New file.
10202 * ppc64-tdep.c: New file.
10203 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10204 ppc-linux-tdep.c to here.
10205 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10206 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10207 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10208 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10209 from ppc-linux-tdep.c to here.
10210 (ppc64_convert_from_func_ptr_addr): Rename from
10211 ppc64_linux_convert_from_func_ptr_addr to
10212 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10213 here.
10214 * rs6000-tdep.c:
10215 (read_insn): Move from ppc-linux-tdep.c to here.
10216 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10217 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10218 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10219 Removed above functions.
10220 (ppc_linux_init_abi): Adjust.
10221
10222 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10223
10224 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10225
10226 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10227
10228 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10229
10230 2013-02-01 Pedro Alves <palves@redhat.com>
10231
10232 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10233 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10234
10235 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10236
10237 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10238 files with no separate debug info.
10239 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10240 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10241 only for files with no separate debug info.
10242
10243 2013-01-31 Tom Tromey <tromey@redhat.com>
10244
10245 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10246 change type.
10247 (struct jit_program_space_data): Rename from jit_inferior_data.
10248 Update comments.
10249 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10250 Change return type. Attach data to program space.
10251 (jit_program_space_data_cleanup): Rename from
10252 jit_inferior_data_cleanup; change argument type.
10253 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10254 change type.
10255 (jit_register_code): Update.
10256 (jit_update_inferior_cache): Remove.
10257 (jit_breakpoint_deleted): Get jit data from the location's program
10258 space.
10259 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10260 'ps_data', change type.
10261 (jit_inferior_init, jit_breakpoint_re_set_internal)
10262 (jit_event_handler): Update.
10263 (free_objfile_data): Get data from objfile's program space.
10264 (_initialize_jit): Update.
10265
10266 2013-01-31 Tom Tromey <tromey@redhat.com>
10267
10268 PR gdb/13987:
10269 * jit.c (struct jit_inferior_data) <cached_code_address,
10270 jit_breakpoint>: New fields.
10271 (jit_breakpoint_re_set_internal): Fix logging. Only create
10272 breakpoint if cached address has changed.
10273 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10274 functions.
10275 (_initialize_jit): Register breakpoint deleted observer.
10276
10277 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10278
10279 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10280 (save_infcall_suspend_state): Ifdef out unused inf.
10281 (restore_infcall_suspend_state): Ifdef out unused inf.
10282 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10283 (jit_frame_sniffer): Remove unused inf_data.
10284
10285 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10286
10287 * c-exp.y (classify_inner_name): Remove unused type.
10288 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10289 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10290 need_escape.
10291 (c_get_string): Remove unused kind.
10292 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10293
10294 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10295
10296 * charset.c (intermediate_encoding): Remove unused i.
10297 * completer.c (signal_completer): Remove unused i.
10298 * continuations.c (discard_my_continuations_1): Remove unused
10299 continuation_ptr.
10300 * corelow.c (core_close): Remove unuseD name.
10301 (get_core_siginfo): Remove unused pid.
10302 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10303 i, cps.
10304 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10305 (loclist_describe_location): Remove unused first.
10306 * event-top.c (command_line_handler): Remove unused got_eof.
10307 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10308 (resize_section_table): Remove unused old_value.
10309 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10310 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10311 * i386-tdep.c (i386_process_record): Remove unused rex.
10312 * infcmd.c (get_return_value): Remove unused uiout.
10313 * jv-lang.c (type_from_class): Remove unused is_array.
10314 * jv-valprint.c (java_val_print): Remove unused i.
10315 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10316 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10317 * m2-typeprint.c (m2_print_type): Remove unused code.
10318 * macroexp.c (get_character_constant): Remove unused body_start.
10319 (macro_stringify): Remove unused result.
10320 * objc-lang.c (find_methods): Remove unused gdbarch.
10321 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10322 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10323 * stack.c (print_frame_args): Remove unused summary.
10324 * thread.c (thread_apply_command): Remove unused p.
10325 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10326 * valops.c (search_struct_method): Remove unused skip.
10327 * valprint.c (generic_val_print): Remove unused byte_order.
10328 * varobj.c (varobj_update): Remove unused changed.
10329 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10330 (alias_command): Remove unused c.
10331 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10332 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10333 format.
10334 (mi_cmd_data_write_memory): Remove unused word_format.
10335 (mi_cmd_data_write_memory_bytes): Remove unused r.
10336 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10337 p_start, p_end.
10338 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10339 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10340 line_width.
10341
10342 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10343
10344 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10345 * symtab.c (iterate_over_symtabs): Remove unused s.
10346 (find_pc_sect_symtab): Remove unused pspAce.
10347 (find_pc_sect_line): Remove unused alt_symtab.
10348 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10349 (completion_list_add_name): Remove unused newsize.
10350
10351 2013-01-31 Tom Tromey <tromey@redhat.com>
10352
10353 PR c++/14998:
10354 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10355 TYPE_CODE_FUNC.
10356
10357 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10358
10359 * target.c (target_read_string): Remove unused origlen.
10360
10361 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10362
10363 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10364 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10365 * ax-general.c (ax_print): Remove unused is_float.
10366 * blockframe.c (block_innermost_frame): Remove unused start, end.
10367 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10368
10369 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10370
10371 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10372 (svr4_read_so_list): Remove unused lmo.
10373 * solib-target.c (solib_target_relocate_section_addresses): Remove
10374 unused flags.
10375
10376 2013-01-30 Tom Tromey <tromey@redhat.com>
10377
10378 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10379
10380 2013-01-30 Tom Tromey <tromey@redhat.com>
10381
10382 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10383 * utils.c (gnu_debuglink_crc32): Remove.
10384 * utils.h (gnu_debuglink_crc32): Don't declare.
10385
10386 2013-01-30 Tom Tromey <tromey@redhat.com>
10387
10388 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10389 (read_structure_type, read_enumeration_type): Remove cast.
10390
10391 2013-01-30 Tom Tromey <tromey@redhat.com>
10392
10393 * dwarf2read.c (read_namespace_type): Remove cast.
10394 (read_typedef): Likewise.
10395
10396 2013-01-29 Tom Tromey <tromey@redhat.com>
10397
10398 * dwarf2read.c (free_dwo_file): Remove assert.
10399
10400 2013-01-29 Tom Tromey <tromey@redhat.com>
10401
10402 * value.c (deprecated_set_value_modifiable): Remove.
10403 * value.h (deprecated_set_value_modifiable): Remove.
10404
10405 2013-01-28 Doug Evans <dje@google.com>
10406
10407 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10408 to addresses from dwo files.
10409
10410 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10411
10412 * valops.c (find_overload_match): Remove unused argument 'lax'.
10413 * value.h: Remove unused argument 'lax' from the declaration of
10414 find_overload_match.
10415 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10416 to find_overload_match.
10417 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10418 argument to find_overload_match.
10419
10420 2013-01-25 Tom Tromey <tromey@redhat.com>
10421
10422 * dwarf2read.c (processing_has_namespace_info): Remove.
10423 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10424 (process_die, read_func_scope, dwarf2_start_symtab)
10425 (new_symbol_full): Update.
10426
10427 2013-01-25 Tom Tromey <tromey@redhat.com>
10428
10429 * cp-namespace.c (cp_set_block_scope): Remove.
10430 * cp-support.h (cp_set_block_scope): Remove.
10431 * dbxread.c: Include block.h.
10432 (cp_set_block_scope): New function.
10433 (process_one_symbol): Update.
10434 * dwarf2read.c (read_func_scope): Use block_set_scope.
10435
10436 2013-01-25 Pedro Alves <palves@redhat.com>
10437
10438 * remote.c (add_current_inferior_and_thread): Tweak comment.
10439
10440 2013-01-25 Tom Tromey <tromey@redhat.com>
10441
10442 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10443 (cp_add_using_directive): Add 'copy_names' argument.
10444 * cp-support.h (cp_add_using_directive): Update.
10445 (struct using_direct) <import_src, import_dest, alias,
10446 declaration>: Now const.
10447 * dwarf2read.c (read_import_statement): Use obconcat.
10448 Don't copy names passed to cp_add_using_directive.
10449
10450 2013-01-25 Tom Tromey <tromey@redhat.com>
10451
10452 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10453
10454 2013-01-25 Pedro Alves <palves@redhat.com>
10455
10456 * remote.c (stop_reply_extract_thread): New.
10457 (add_current_inferior_and_thread): New parameter 'wait_status'.
10458 Handle it.
10459 (remote_start_remote): Pass wait status to
10460 add_current_inferior_and_thread.
10461 (extended_remote_run): Update comment.
10462 (extended_remote_create_inferior_1): Pass wait status to
10463 add_current_inferior_and_thread.
10464
10465 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10466 Ulrich Weigand <uweigand@de.ibm.com>
10467
10468 * valarith.c (value_vector_widen): New function for replicating a
10469 scalar into a vector.
10470 (value_binop): Use value_vector_widen to widen scalar to vector
10471 rather than casting, this better matches gcc C behaviour.
10472 * valops.c (value_casst): Update logic for casting between vector
10473 types, and for casting from scalar to vector, try to match gcc C
10474 behaviour.
10475 * value.h (value_vector_widen): Declare.
10476 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10477 function, handle special case for casting scalar to vector.
10478 (opencl_relop): Use opencl_value_cast.
10479 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10480 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10481 in order to use opencl_value_cast.
10482
10483 2013-01-25 Yao Qi <yao@codesourcery.com>
10484
10485 * event-loop.c: Include "queue.h".
10486 (gdb_event_p): New typedef.
10487 (DECLARE_QUEUE_P): Use.
10488 (DEFINE_QUEUE_P): Use.
10489 (async_queue_event): Remove.
10490 (gdb_event_xfree): New.
10491 (initialize_event_loop): New.
10492 (process_event): Use QUEUE macros.
10493 (event_queue): Remove.
10494 (gdb_wait_for_event): Caller update.
10495 (check_async_event_handlers): Likewise.
10496 (poll_timers): Likewise.
10497 * event-loop.h (initialize_event_loop): Declare.
10498 * event-loop.c (gdb_event_xfree): New.
10499 * top.c (gdb_init): Call initialize_event_loop.
10500
10501 2013-01-25 Yao Qi <yao@codesourcery.com>
10502
10503 * event-loop.c (async_queue_event): Remove one parameter
10504 'position'. Remove code handling 'position' == TAIL.
10505 (gdb_wait_for_event): Caller update.
10506 (check_async_event_handlers): Caller update.
10507 (poll_timers): Caller update.
10508 * event-loop.h (enum queue_position): Remove.
10509
10510 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10511
10512 * MAINTAINERS: Update my email.
10513
10514 2013-01-25 Yao Qi <yao@codesourcery.com>
10515
10516 * main.c (print_gdb_help): Remove "--epoch" from the help
10517 message.
10518
10519 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10520
10521 * symtab.c (skip_prologue_using_sal): Consider a file
10522 change the same as an increased line number
10523
10524 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10525
10526 * MAINTAINERS (Write After Approval): Add myself to the list.
10527
10528 2013-01-24 Tom Tromey <tromey@redhat.com>
10529
10530 * ada-lang.h (ada_decode_symbol): Make return type const.
10531 * ada-lang.c (ada_decode_symbol): Likewise.
10532
10533 2013-01-23 Doug Evans <dje@google.com>
10534
10535 * linespec.c (find_linespec_symbols): Make static.
10536
10537 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10538
10539 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10540 type on float conversion for complex type.
10541
10542 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10543
10544 Add a new class gdb.Architecture which exposes GDB's
10545 internal representation of architecture via GDB Python API.
10546 * Makefile.in: Add entries corresponding to the new file
10547 python/py-arch.c.
10548 * NEWS (Python Scripting): Add entries for the new class
10549 gdb.Architecture and the new method gdb.Frame.architecture.
10550 * python/py-arch.c: Implement gdb.Architecture class.
10551 * python/py-frame.c (frapy_arch): Implement the method
10552 gdb.Frame.architecture().
10553 (frame_object_methods): Add 'architecture' to the method table.
10554 * python/python-internal.h: Add declarations of new utility
10555 functions.
10556 * python/python.c (_initialize_python): Initialize
10557 gdb.Architecture class.
10558
10559 2013-01-23 Doug Evans <dje@google.com>
10560
10561 Work around binutils/15021.
10562 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10563 type_unit_group out of union s. All uses updated.
10564 (read_index_from_section): Watch for index version 8.
10565 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10566 an imported symtab.
10567 (write_psymtabs_to_index): Increment version number to 8.
10568
10569 2013-01-22 Pedro Alves <palves@redhat.com>
10570
10571 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10572 user-visible.
10573
10574 2013-01-22 Pedro Alves <palves@redhat.com>
10575
10576 * annotate.c (annotate_breakpoints_changed): Rename to ...
10577 (annotate_breakpoints_invalid): ... this. Make static.
10578 (breakpoint_changed): Adjust.
10579 (_initialize_annotate): Always install the observers. Install a
10580 "breakpoint_created" observer.
10581 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10582 * breakpoint.c (set_breakpoint_condition)
10583 (breakpoint_set_commands, do_map_commands_command)
10584 (init_raw_breakpoint, clear_command, set_ignore_count)
10585 (enable_breakpoint_disp): No longer call
10586 annotate_breakpoints_changed.
10587
10588 2013-01-22 Pedro Alves <palves@redhat.com>
10589
10590 * annotate.c: Include "inferior.h".
10591 (frames_invalid_emitted)
10592 (breakpoints_invalid_emitted): New globals.
10593 (async_background_execution_p): New function.
10594 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10595 emitting the annotation if it has already been emitted.
10596 (annotate_display_prompt): New function.
10597 * annotate.h (annotate_display_prompt): New declaration.
10598 * event-top.c: Include annotate.h.
10599 (display_gdb_prompt): Call annotate_display_prompt.
10600
10601 2013-01-22 Pedro Alves <palves@redhat.com>
10602
10603 * annotate.c (ignore_count_changed): Delete.
10604 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10605 (annotate_ignore_count_change): Delete.
10606 (annotate_stopped): Don't emit a delayed breakpoints-changed
10607 annotation.
10608 * annotate.h (annotate_ignore_count_change): Delete.
10609 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10610 annotate_ignore_count_change.
10611
10612 2013-01-22 Tom Tromey <tromey@redhat.com>
10613
10614 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10615 require_rvalue for a register location.
10616
10617 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10618
10619 * breakpoint.c (print_one_breakpoint_location): Add MI
10620 field 'thread-groups' when printing a breakpoint.
10621 (output_thread_groups): New function.
10622
10623 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10624
10625 * python/lib/gdb/commands/explore.py
10626 (CompoundExplorer.explore_expr): Correct the name of a method
10627 being invoked.
10628 (ExploreTypeCommand.invoke): Add a missing 'return'.
10629
10630 2013-01-21 Tom Tromey <tromey@redhat.com>
10631
10632 * gdb_obstack.h (obconcat): Move declaration here, from...
10633 * symfile.h (obconcat): ... here.
10634 * gdb_obstack.c: New file.
10635 (obconcat): Move from...
10636 * symfile.c (obconcat): ... here.
10637 * Makefile.in (SFILES): Add gdb_obstack.c.
10638 (COMMON_OBS): Add gdb_obstack.o.
10639
10640 2013-01-21 Tom Tromey <tromey@redhat.com>
10641
10642 * symfile.h (obsavestring): Don't declare.
10643 * symfile.c (obsavestring): Remove.
10644 * ada-exp.y: Use obstack_copy0, not obsavestring.
10645 * ada-lang.c: Use obstack_copy0, not obsavestring.
10646 * coffread.c: Use obstack_copy0, not obsavestring.
10647 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10648 * dbxread.c: Use obstack_copy0, not obsavestring.
10649 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10650 * jit.c: Use obstack_copy0, not obsavestring.
10651 * mdebugread.c: Use obstack_copy0, not obsavestring.
10652 * psymtab.c: Use obstack_copy0, not obsavestring.
10653 * stabsread.c: Use obstack_copy0, not obsavestring.
10654 * xcoffread.c: Use obstack_copy0, not obsavestring.
10655
10656 2013-01-21 Tom Tromey <tromey@redhat.com>
10657
10658 * dwarf2read.c (fixup_go_packaging): Save package name
10659 on objfile obstack.
10660 * gdbtypes.c (init_type): Don't copy name.
10661
10662 2013-01-21 Tom Tromey <tromey@redhat.com>
10663
10664 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10665 const.
10666 (struct attribute) <u.str>: Now const.
10667 (struct fnfieldlist) <name>: Now const.
10668 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10669 (partial_die_parent_scope): Make return type const.
10670 (partial_die_full_name, add_partial_symbol): Update.
10671 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10672 'name' const.
10673 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10674 (read_file_scope, read_func_scope, dwarf2_add_field)
10675 (dwarf2_add_member_fn, read_structure_type)
10676 (process_enumeration_scope, read_array_type, read_module_type)
10677 (read_base_type, read_subrange_type): Update.
10678 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10679 (new_symbol_full, guess_full_die_structure_name): Update.
10680 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10681 (dwarf2_name): Return const type.
10682 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10683 const.
10684
10685 2013-01-21 Tom Tromey <tromey@redhat.com>
10686
10687 * gdbtypes.c (init_type): Make 'name' const.
10688 * gdbtypes.h (init_type): Update.
10689
10690 2013-01-21 Tom Tromey <tromey@redhat.com>
10691
10692 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10693 (start_symtab): Make 'name' and 'dirname' const. Use
10694 set_last_source_file.
10695 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10696 (last_source_file): Define. Now static.
10697 (set_last_source_file, get_last_source_file): New functions.
10698 * buildsym.h (last_source_file): Don't declare.
10699 (start_symtab): Update.
10700 (set_last_source_file, get_last_source_file): Declare.
10701 * coffread.c (complete_symtab): Use set_last_source_file.
10702 (coff_end_symtab): Likewise.
10703 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10704 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10705 set_last_source_file.
10706 (process_one_symbol): Use get_last_source_file.
10707 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10708 (psymtab_to_symtab_1): Use get_last_source_file.
10709 * xcoffread.c (process_linenos): Use get_last_source_file.
10710 (complete_symtab): Use set_last_source_file.
10711 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10712 (scan_xcoff_symtab): Use set_last_source_file.
10713
10714 2013-01-21 Tom Tromey <tromey@redhat.com>
10715
10716 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10717 (symbol_set_names): Remove casts. Handle field const-ness.
10718
10719 2013-01-21 Tom Tromey <tromey@redhat.com>
10720
10721 * dwarf2read.c (new_symbol_full): Remove cast.
10722 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10723 * symtab.h (symbol_set_demangled_name): Update.
10724
10725 2013-01-21 Tom Tromey <tromey@redhat.com>
10726
10727 * main.c (captured_main): Call bfd_init.
10728
10729 2013-01-21 Tom Tromey <tromey@redhat.com>
10730
10731 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10732 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10733 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10734 * NEWS: Update.
10735
10736 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10737
10738 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10739
10740 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10741
10742 Fix gdb.fortran/common-block.exp crash in PIE mode.
10743 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10744 LOC_COMMON_BLOCK.
10745 * f-valprint.c (info_common_command_for_block): Expect
10746 LOC_COMMON_BLOCK in gdb_assert.
10747 * symtab.h (struct general_symbol_info): Update comment for the
10748 common_block member.
10749 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10750 (enum address_class): New member LOC_COMMON_BLOCK.
10751
10752 2013-01-18 David Blaikie <dblaikie@gmail.com>
10753
10754 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10755
10756 2013-01-18 Tom Tromey <tromey@redhat.com>
10757
10758 PR c++/14999:
10759 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10760 Call require_rvalue.
10761
10762 2013-01-18 Yao Qi <yao@codesourcery.com>
10763
10764 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10765 (dbx_read_symtab): New declaration.
10766 (dbx_psymtab_to_symtab): Delete.
10767 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10768 Rename parameter PST to SELF. Exchanged two parameters.
10769 (start_psymtab): Caller update.
10770 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10771 (dwarf2_read_symtab): New declaration.
10772 (dwarf2_psymtab_to_symtab): Delete.
10773 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10774 Rename parameter PST to SELF. Exchanged two parameters.
10775 (create_partial_symtab): Caller update.
10776 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10777 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10778 Rename parameter PST to SELF. Exchanged two parameters.
10779 (parse_partial_symbols, new_psymtab): Caller update.
10780 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10781 two parameters.
10782 * psymtab.c (psymtab_to_symtab): Caller update.
10783 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10784 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10785 Rename parameter PST to SELF. Exchanged two parameters.
10786 (xcoff_start_psymtab): Caller update.
10787
10788 2013-01-18 Yao Qi <yao@codesourcery.com>
10789
10790 * infrun.c (proceed): Rename local variable 'oneproc' to
10791 'force_step'.
10792
10793 2013-01-17 Doug Evans <dje@google.com>
10794
10795 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10796 (dw2_build_type_unit_groups): Delete. All uses updated.
10797
10798 * symtab.h (struct symbol_search): Add comment.
10799
10800 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10801
10802 * symtab.c (compare_filenames_for_search): New comment for
10803 HAS_DRIVE_SPEC.
10804
10805 2013-01-17 Tom Tromey <tromey@redhat.com>
10806
10807 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10808
10809 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10810
10811 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10812 initialize it by existing make_cleanup. Call new do_cleanups.
10813
10814 2013-01-17 Tom Tromey <tromey@redhat.com>
10815
10816 * cp-abi.c (cp_abi_completer): New function.
10817 (_initialize_cp_abi): Set completer for "set cp-abi".
10818
10819 2013-01-17 Tom Tromey <tromey@redhat.com>
10820
10821 * mem-break.c: Remove obsolete comment.
10822 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10823
10824 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10825
10826 * jit.c (jit_reader_load_command): Interpret the jit reader name
10827 as an absolute path if it begins with a forward slash.
10828
10829 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10830
10831 PR gdb/14550
10832
10833 * jit.c (finalize_symtab): Ensure that only the global block has a
10834 NULL superblock.
10835
10836 2013-01-17 Pedro Alves <palves@redhat.com>
10837
10838 * acinclude.m4: Include ../config/plugins.m4,
10839 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10840 * Makefile.in (aclocal_m4_deps): Update.
10841 * aclocal.m4: Renegerate.
10842
10843 2013-01-16 Doug Evans <dje@google.com>
10844
10845 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10846
10847 2013-01-16 Pedro Alves <palves@redhat.com>
10848 Tom Tromey <tromey@redhat.com>
10849
10850 PR cli/7221:
10851 * NEWS: Add "catch signal".
10852 * breakpoint.c (base_breakpoint_ops): No longer static.
10853 (bpstat_explains_signal): New function.
10854 (init_catchpoint): No longer static.
10855 (base_breakpoint_explains_signal): New function.
10856 (base_breakpoint_ops): Initialize new field.
10857 * breakpoint.h (enum bpstat_signal_value): New.
10858 (struct breakpoint_ops) <explains_signal>: New field.
10859 (bpstat_explains_signal): Remove macro, declare as function.
10860 (base_breakpoint_ops, init_catchpoint): Declare.
10861 * break-catch-sig.c: New file.
10862 * inferior.h (signal_catch_update): Declare.
10863 * infrun.c (signal_catch): New global.
10864 (handle_syscall_event): Update for change to
10865 bpstat_explains_signal.
10866 (handle_inferior_event): Likewise. Always handle random signals
10867 via bpstats.
10868 (signal_cache_update): Check signal_catch.
10869 (signal_catch_update): New function.
10870 (_initialize_infrun): Initialize signal_catch.
10871 * Makefile.in (SFILES): Add break-catch-sig.c.
10872 (COMMON_OBS): Add break-catch-sig.o.
10873
10874 2013-01-16 Tom Tromey <tromey@redhat.com>
10875
10876 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10877 (print_one_catch_solib, print_one_catch_syscall)
10878 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10879 "catch-type".
10880
10881 2013-01-16 Yao Qi <yao@codesourcery.com>
10882
10883 * printcmd.c (current_display_number): Make it static.
10884
10885 2013-01-16 Yao Qi <yao@codesourcery.com>
10886
10887 * infcmd.c (step_once): Don't check '!single_inst' as it was
10888 checked before.
10889
10890 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10891
10892 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10893
10894 2013-01-14 Tom Tromey <tromey@redhat.com>
10895
10896 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10897 set command.
10898 * command.h (add_setshow_string_noescape_cmd): Update.
10899 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10900 (complete_set_gnutarget): New function.
10901 (_initialize_core): Set the "set gnutarget" completer.
10902
10903 2013-01-14 Tom Tromey <tromey@redhat.com>
10904
10905 PR symtab/14442:
10906 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10907 (c_type_print_modifier): Likewise.
10908 * dwarf2read.c (read_tag_restrict_type): New function.
10909 (read_type_die_1): Handle DW_TAG_restrict_type.
10910 * gdbtypes.c (make_restrict_type): New function.
10911 (recursive_dump_type): Handle TYPE_RESTRICT.
10912 * gdbtypes.h (enum type_flag_values): Renumber.
10913 (enum type_instance_flag_value): Add
10914 TYPE_INSTANCE_FLAG_RESTRICT.
10915 (TYPE_RESTRICT): New macro.
10916 (make_restrict_type): Declare.
10917
10918 2013-01-14 Tom Tromey <tromey@redhat.com>
10919
10920 PR symtab/14931:
10921 * psymtab.c (struct psymtab_state): New.
10922 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10923 functions.
10924 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10925 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10926
10927 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
10928 Pedro Alves <palves@redhat.com>
10929
10930 PR remote/14786
10931
10932 * remote.c (remote_threads_info): Make a copy of the reply from
10933 qfThreadInfo and use that instead of rs->buf.
10934
10935 2013-01-14 Yao Qi <yao@codesourcery.com>
10936
10937 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10938 (dbx_psymtab_to_symtab): Likewise.
10939 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10940 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10941 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10942
10943 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10944
10945 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10946 make_cleanup_restore_current_language. Call set_language. Move
10947 OLD_CHAIN and INNER_CHAIN cleanups.
10948 * utils.c (do_restore_current_language)
10949 (make_cleanup_restore_current_language): New functions.
10950 * utils.h (make_cleanup_restore_current_language): New declaration.
10951
10952 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10953
10954 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10955 non-existing files.
10956
10957 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10958 non-existing files if FILENAME is already absolute.
10959
10960 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10961
10962 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10963 fputs_filtered. Append trailing newline.
10964
10965 2013-01-11 Yao Qi <yao@codesourcery.com>
10966 Stan Shebs <stan@codesourcery.com>
10967
10968 * psymtab.c (init_psymbol_list): Clarify the comment.
10969
10970 2013-01-11 Yao Qi <yao@codesourcery.com>
10971
10972 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10973 (update_dprintf_command_list): Assert that 'printf_line' is
10974 non-null. Remove condition check.
10975
10976 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10977
10978 Code cleanup.
10979 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10980 type const char *.
10981 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10982 const char *.
10983 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10984
10985 2013-01-09 Anthony Green <green@moxielogic.com>
10986
10987 * cp-abi.c (cplus_print_vtable): Don't return value from void
10988 function.
10989 * ada-lang.c (re_set_catch_assert): Ditto.
10990
10991 2013-01-09 Doug Evans <dje@google.com>
10992
10993 * symfile.h (quick_symbol_functions): Delete member
10994 pre_expand_symtabs_matching. All uses removed.
10995 * dwarf2read.c (dw2_lookup_symbol): Implement.
10996 (dw2_do_expand_symtabs_matching): Delete.
10997 (dw2_pre_expand_symtabs_matching): Delete.
10998 (struct dw2_symtab_iterator): New type.
10999 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11000 (dw2_expand_symtabs_for_function): Rewrite.
11001 (dwarf2_gdb_index_functions): Update.
11002 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11003 (psym_functions): Update.
11004
11005 2013-01-09 Tom Tromey <tromey@redhat.com>
11006
11007 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11008 * configure: Rebuild.
11009 * configure.ac: Add somread.o to the build if BFD has SOM
11010 support.
11011 * somread.c: Include som/aout.h, not syms.h.
11012 (som_symtab_read): Use som_external_symbol_dictionary_record.
11013 Unpack records manually.
11014 (_initialize_somread): Declare.
11015
11016 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11017
11018 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11019 Cast return_address to 64bits.
11020
11021 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11022
11023 * printcmd.c: Remove define of function output_command.
11024 * tracepoint.c: Remove extern of function output_command.
11025 * valprint.h: (output_command): New extern.
11026
11027 2013-01-07 Tom Tromey <tromey@redhat.com>
11028
11029 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11030 Remove.
11031 (objc_language_defn): Use c_printchar, c_printstr,
11032 c_emit_char.
11033
11034 2013-01-07 Tom Tromey <tromey@redhat.com>
11035
11036 PR cli/7719:
11037 * NEWS: Update.
11038 * ada-valprint.c (printstr, print_field_values): Remove
11039 "inspect_it" code.
11040 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11041 code.
11042 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11043 code.
11044 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11045 * main.c (captured_main): Remove "epoch" argument.
11046 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11047 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11048 * p-valprint.c (pascal_object_print_value_fields): Remove
11049 "inspect_it" code.
11050 * printcmd.c (print_command_1): Remove 'inspect' argument.
11051 (print_command, call_command): Update.
11052 (inspect_command): Remove.
11053 (_initialize_printcmd): Make "inspect" an alias for "print".
11054 * top.c (epoch_interface): Remove.
11055 * top.h (epoch_interface): Remove.
11056 * valprint.c (user_print_options): Update.
11057 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11058 * valprint.h (struct value_print_options) <inspect_it>: Remove
11059 field.
11060
11061 2013-01-04 Tom Tromey <tromey@redhat.com>
11062
11063 * valprint.h (read_string): Add 'extern'.
11064
11065 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11066
11067 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11068 used to decide whether to define darwin_read_dyld_info or not.
11069
11070 2013-01-03 Pierre Muller <muller@sourceware.org>
11071
11072 * main.c (relocate_gdb_directory): Avoid calling stat function
11073 if DIR is empty.
11074
11075 2013-01-03 Yao Qi <yao@codesourcery.com>
11076
11077 * psymtab.c (fixup_psymbol_section): Update declaration.
11078 (fixup_psymbol_section): Remove code returning value.
11079
11080 2013-01-03 Yao Qi <yao@codesourcery.com>
11081
11082 * symtab.h: Remove some out of date comments.
11083 (enum exception_event_kind): Move it ...
11084 * breakpoint.c: ... here.
11085
11086 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11087
11088 PR gdb/14405
11089 * darwin-nat.c (darwin_read_dyld_info): Only build if
11090 TASK_DYLD_INFO_COUNT is defined.
11091 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11092 TASK_DYLD_INFO_COUNT is defined.
11093
11094 2013-01-02 Tom Tromey <tromey@redhat.com>
11095
11096 * symfile.h (struct ecoff_debug_hack): Remove.
11097 * objfiles.c: Don't include mdebugread.h.
11098
11099 2013-01-02 Tom Tromey <tromey@redhat.com>
11100
11101 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11102 * configure.ac: Check for Mach-O support in BFD. Update
11103 CONFIG_OBS.
11104 * configure: Rebuild.
11105
11106 2013-01-02 Tom Tromey <tromey@redhat.com>
11107
11108 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11109 * configure.ac: Use GDB_AC_CHECK_BFD.
11110 * configure: Rebuild.
11111
11112 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11113
11114 * MAINTAINERS: Update my email.
11115
11116 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11117
11118 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11119
11120 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11121
11122 * rs6000-nat.c (bss_data_overlap): New function.
11123 (vmap_symtab): Use it to adjust the .bss section's offset.
11124
11125 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11126
11127 Update year range in copyright notice of all files.
11128
11129 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11130
11131 * top.c (print_gdb_version): Update copyright year.
11132
11133 For older changes see ChangeLog-2012.
11134 \f
11135 Local Variables:
11136 mode: change-log
11137 left-margin: 8
11138 fill-column: 74
11139 version-control: never
11140 coding: utf-8
11141 End:
This page took 0.273328 seconds and 4 git commands to generate.