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