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