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