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