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