binutils/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ce13fade
JB
12013-10-11 Joel Brobecker <brobecker@adacore.com>
2
3 * NEWS: Add entry documenting the new "-catch-assert" and
4 "-catch-exception" GDB/MI commands.
5
349774ef
JB
62013-10-11 Joel Brobecker <brobecker@adacore.com>
7
8 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
9 "enabled".
10 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
11 "enabled". Set B->ENABLE_STATE accordingly.
12 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
13 ada-lang.c.
14 (create_ada_exception_catchpoint): Add declaration.
15 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
16 (create_ada_exception_catchpoint): Make non-static. Add new
17 parameter "disabled". Use it in call to
18 init_ada_exception_breakpoint.
19 (catch_ada_exception_command): Add parameter "enabled" in call
20 to create_ada_exception_catchpoint.
21 (catch_assert_command): Likewise.
22
23 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
24 Add declarations.
25 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
26 "catch-exception" commands.
27 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
28 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
29
761269c8
JB
302013-10-11 Joel Brobecker <brobecker@adacore.com>
31
32 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
33 "enum exception_catchpoint_kind". Replace the "ex_" prefix
34 of all its enumerates with "ada_". Update the rest of this
35 file throughout.
36
b4a5b78b
JB
372013-10-11 Joel Brobecker <brobecker@adacore.com>
38
39 * ada-lang.c (ada_decode_exception_location): Delete.
40 (create_ada_exception_catchpoint): Remove arguments "sal",
41 "addr_string" and "ops". Add argument "ex_kind" instead.
42 Adjust implementation accordingly, calling ada_exception_sal
43 to get the entities it no longer gets passed as arguments.
44 Document the function's arguments.
45 (catch_ada_exception_command): Use catch_ada_exception_command_split
46 instead of ada_decode_exception_location, and update call to
47 create_ada_exception_catchpoint.
48 (catch_ada_assert_command_split): Renames
49 ada_decode_assert_location. Remove parameters "addr_string" and
50 "ops", and now returns void. Adjust implementation accordingly.
51 Update the function documentation.
52 (catch_assert_command): Use catch_ada_assert_command_split
53 instead of ada_decode_assert_location. Update call to
54 create_ada_exception_catchpoint.
55
7ad1d32c 562013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
57
58 * utils.h (perror_warning_with_name): Add declaration.
59 * utils.c (perror_warning_with_name): New function.
60 * cli/cli-cmds.c (source_script_with_search): Add call to
61 perror_warning_with_name if from_tty is nul.
62
7ad1d32c 632013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
64
65 * utils.c (perror_string): New function, extracted out of
66 throw_perror_with_name.
67 (throw_perror_with_name): Rework to use perror_string.
68
bcc75809
YQ
692013-10-11 Yao Qi <yao@codesourcery.com>
70
71 * remote.c (discard_pending_stop_replies_in_queue): Update
72 declaration.
73 (struct stop_reply) <rs>: New field.
74 (remove_stop_reply_of_remote_state): New function.
75 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
76 Callers update. Pass remove_stop_reply_of_remote_state to
77 QUEUE_iterate.
78 (remote_parse_stop_reply): Initialize field 'rs'.
79
05feb193
WN
802013-10-10 Will Newton <will.newton@linaro.org>
81
82 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
83 linux_init_abi.
84
0d12017b
JB
852013-10-10 Joel Brobecker <brobecker@adacore.com>
86
87 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
88 serial_baud_show_cmd.
89 (_initialize_cli_cmds): Delete the code creating the
90 "set/show remotebaud" commands.
91 * serial.c (baud_rate): Move here from top.c.
92 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
93 (_initialize_serial): Create "set/show serial baud" commands.
94 Add "set/show remotebaud" command aliases.
95 * top.c (baud_rate): Moved to serial.c.
96 * NEWS: Document the new "set/show serial baud" commands,
97 replacing "set/show remotebaud".
98
578d3588
PA
992013-10-09 Pedro Alves <palves@redhat.com>
100
101 * breakpoint.c (insert_bp_location): Use memory_error_message to
102 build the memory error string.
103 * c-lang.c: Include "gdbcore.h".
104 (c_get_string): Use memory_error to throw error.
105 (target_xfer_memory_error): Delete.
106 (memory_error_message): New, factored out from
107 target_xfer_memory_error.
108 (memory_error): Change parameter type to target_xfer_error.
109 Rewrite.
110 (read_memory): Use memory_error instead of
111 target_xfer_memory_error.
112 * gdbcore.h: Include "target.h".
113 (memory_error): Change parameter type to target_xfer_error.
114 (memory_error_message): Declare function.
115 * target.c (target_read_memory, target_read_stack)
116 (target_write_memory, target_write_raw_memory): Return
117 TARGET_XFER_E_IO on error. Adjust comments.
118 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
119 instead of EIO.
120 * target.h (target_read, target_insert_breakpoint)
121 (target_remove_breakpoint): Adjust comments.
122 * valprint.c (partial_memory_read): Rename parameter, and adjust
123 comment.
124 (val_print_string): Use memory_error_message to build the memory
125 error string.
126
c74e1ccf
JK
1272013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
128
129 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
130 result variable. Rename variable fopen_e_ever_failed to
131 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
132
915215be
PA
1332013-10-09 Pedro Alves <palves@redhat.com>
134
135 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
136 (monitor_write_memory_longlongs, monitor_write_memory_block):
137 Constify 'myaddr' parameter.
138 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
139 helper.
140 (monitor_xfer_partial): New function.
141 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
142 hook. Install a to_xfer_partial hook.
143
acd13123
TT
1442013-10-09 Tom Tromey <tromey@redhat.com>
145
146 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
147 bfd_get_alt_debug_link_info.
148
40135bb1
JK
1492013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
150
151 New flag OBJF_NOT_FILENAME.
152 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
153 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
154 allocate_objfile.
155 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
156 symbol_file_add_from_bfd.
157 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
158 allocate_objfile.
159 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
160 NULL.
161 * objfiles.h (OBJF_NOT_FILENAME): New.
162
dc294be5
TT
1632013-10-08 Tom Tromey <tromey@redhat.com>
164
165 * Makefile.in (SFILES): Add build-id.c.
166 (HFILES_NO_SRCDIR): Add build-id.h.
167 * build-id.c: New file, largely from elfread.c. Modified
168 most functions.
169 * build-id.h: New file.
170 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
171 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
172 Search for dwz file using build-id.
173 * elfread.c (build_id_bfd_get, build_id_verify)
174 (build_id_to_debug_filename, find_separate_debug_file): Remove.
175
db230ce3
JB
1762013-10-08 Joel Brobecker <brobecker@adacore.com>
177
178 * ada-lang.c (compare_names_with_case): Renamed from
179 compare_names, adding a new parameter "casing" and its handling.
180 New function documentation.
181 (compare_names): New function, implemented using
182 compare_names_with_case.
183
6501c98a
JB
1842013-10-08 Joel Brobecker <brobecker@adacore.com>
185
186 * ada-lang.c (ada_exception_sal): Remove advance declaration.
187
84a1243b
TT
1882013-10-07 Tom Tromey <tromey@redhat.com>
189
190 * objfiles.c (free_objfile_per_bfd_storage): Delete the
191 demangled_names_hash.
192 (free_objfile): Don't delete the demangled_names_hash.
193 * objfiles.h (struct objfile_per_bfd_storage)
194 <demangled_names_hash>: New field.
195 (struct objfile) <demangled_names_hash>: Move to
196 objfile_per_bfd_storage.
197 * symfile.c (reread_symbols): Don't delete the
198 demangled_names_hash.
199 * symtab.c (create_demangled_names_hash): Update.
200 (symbol_set_names): Update.
201
1da77581
TT
2022013-10-07 Tom Tromey <tromey@redhat.com>
203
204 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
205 needs_relocations>: New fields.
206 (gdb_bfd_requires_relocations): New function.
207 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
208 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
209 the BFD needs relocations applied.
210
46ecd527
PA
2112013-10-07 Pedro Alves <palves@redhat.com>
212
213 PR breakpoints/11568
214 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
215 the thread list" instead of "gone".
216
0c557179
SDJ
2172013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
218
219 * NEWS: Mention new convenience variable $_exitsignal.
220 * corelow.c (core_open): Reset exit convenience variables. Set
221 $_exitsignal to the uncaught signal which generated the corefile.
222 * infrun.c (handle_inferior_event): Reset exit convenience
223 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
224 (clear_exit_convenience_vars): New function.
225 * inferior.h (clear_exit_convenience_vars): New prototype.
226
1cc47d81
YQ
2272013-10-06 Yao Qi <yao@codesourcery.com>
228
229 * varobj.h: Add comments to enum varobj_languages.
230
73869dc2
DE
2312013-10-04 Doug Evans <dje@google.com>
232
233 Add support for DWP file format version 2.
234 * NEWS: Mention support for DWP file format version 2.
235 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
236 union of asection, containing_section. New fields virtual_offset
237 and is_virtual. Change type of readin filed from int to char.
238 (dwo_sections, dwo_file): Tweak comments.
239 (dwp_v2_section_ids): New enum.
240 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
241 str_offsets, types.
242 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
243 All uses updated.
244 (virtual_v2_dwo_sections): New struct.
245 (dwp_hash_table): New fields version, nr_columns. Change type of
246 section_pool field to a union.
247 (dwp_file): New field version.
248 (dwarf2_has_info): Check for virtual sections.
249 (get_containing_section): New function.
250 (get_section_bfd_owner, get_section_bfd_section): Call it.
251 (dwarf2_locate_sections): Update.
252 (dwarf2_section_empty_p): Update.
253 (dwarf2_read_section): Handle virtual sections.
254 (locate_dwz_sections): Update.
255 (create_dwp_hash_table): Document and handle V2 format.
256 (locate_v1_virtual_dwo_sections): Renamed from
257 locate_virtual_dwo_sections and update. All callers updated.
258 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
259 Delete arg htab. Rename arg section_index to unit_index.
260 All callers updated.
261 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
262 All uses updated.
263 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
264 (lookup_dwo_unit_in_dwp): Add V2 support.
265 (dwarf2_locate_dwo_sections): Update.
266 (dwarf2_locate_common_dwp_sections): Renamed from
267 dwarf2_locate_dwp_sections and update. All callers updated.
268 (dwarf2_locate_v2_dwp_sections): New function.
269 (open_and_init_dwp_file): Add V2 support.
270 (read_str_index): New locals str_section, str_offsets_section.
271
9a2c3737
PA
2722013-10-04 Pedro Alves <palves@redhat.com>
273
274 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
275 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
276 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
277 describing comments with references to ptid.h.
278 * common/ptid.h: Remove intro description of constructors,
279 accessors and predicates.
280 (struct ptid): Reformat.
281 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
282 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
283 describing comments.
284
f5371440
JB
2852013-10-04 Joel Brobecker <brobecker@adacore.com>
286
287 * aix-thread.c (sync_threadlists): Add missing ')' in call
288 to ptid_build.
289
793e1c06
JB
2902013-10-04 Joel Brobecker <brobecker@adacore.com>
291
292 * procfs.c (procfs_init_inferior): Fix typo causing the build
293 to fail.
294
26f0edc1
JB
2952013-10-04 Joel Brobecker <brobecker@adacore.com>
296
297 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
298
5713b9b5
JB
2992013-10-04 Joel Brobecker <brobecker@adacore.com>
300
301 * mi/mi-main.c (run_one_inferior): Add function description.
302 Make ARG a pointer to an integer whose value determines whether
303 we should "run" or "start" the program.
304 (mi_cmd_exec_run): Add handling of the "--start" option.
305 Reject all other command-line options.
306 * NEWS: Add entry for "-exec-run"'s new "--start" option.
307
f48ff2a7
YQ
3082013-10-04 Yao Qi <yao@codesourcery.com>
309
310 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
311 (struct notif_client) <pending_event>: Moved
312 to struct remote_notif_state.
313 <id>: New field.
314 (struct remote_notif_state) <pending_event>: New field.
315 (notif_event_xfree): Declare.
316 * remote-notif.c (handle_notification): Adjust.
317 (notif_event_xfree): New function.
318 (do_notif_event_xfree): Call notif_event_xfree.
319 (remote_notif_state_xfree): Call notif_event_xfree to free
320 each element in field pending_event.
321 * remote.c (discard_pending_stop_replies): Remove declaration.
322 (discard_pending_stop_replies_in_queue): Declare.
323 (remote_close): Call discard_pending_stop_replies_in_queue
324 instead of discard_pending_stop_replies.
325 (remote_start_remote): Adjust.
326 (stop_reply_xfree): Call notif_event_xfree.
327 (notif_client_stop): Adjust initialization.
328 (remote_notif_remove_all): Rename it to ...
329 (remove_stop_reply_for_inferior): ... this. Update comments.
330 Don't check INF is NULL.
331 (discard_pending_stop_replies): Return early if notif_state is
332 NULL. Adjust. Don't check INF is NULL.
333 (remote_notif_get_pending_events): Adjust.
334 (discard_pending_stop_replies_in_queue): New function.
335 (remote_wait_ns): Likewise.
336
5965e028
YQ
3372013-10-04 Yao Qi <yao@codesourcery.com>
338
339 * remote-notif.c (DECLARE_QUEUE_P): Remove.
340 (notif_queue): Remove.
341 (remote_notif_process): Add one parameter 'notif_queue'.
342 Update comments. Callers update.
343 (remote_async_get_pending_events_token): Remove.
344 (remote_notif_register_async_event_handler): Remove.
345 (remote_notif_unregister_async_event_handler): Remove.
346 (handle_notification): Add parameter 'notif_queue'. Update
347 comments. Callers update.
348 (notif_xfree): Remove.
349 (remote_notif_state_allocate): New function.
350 (remote_notif_state_xfree): New function.
351 (_initialize_notif): Remove code to allocate queue.
352 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
353 (struct remote_notif_state): New.
354 (handle_notification): Update declaration.
355 (remote_notif_process): Likewise.
356 (remote_notif_register_async_event_handler): Remove.
357 (remote_notif_unregister_async_event_handler): Remove.
358 (remote_notif_state_allocate): Declare.
359 (remote_notif_state_xfree): Declare.
360 * remote.c (struct remote_state) <notif_state>: New field.
361 (remote_close): Don't call
362 remote_notif_unregister_async_event_handler. Call
363 remote_notif_state_xfree.
364 (remote_open_1): Don't call
365 remote_notif_register_async_event_handler. Call
366 remote_notif_state_allocate.
367
5e5ac9a5
YQ
3682013-10-04 Yao Qi <yao@codesourcery.com>
369
370 * varobj.c (create_child_with_value): Remove 'const' from the
371 type of parameter 'name'.
372 (varobj_add_child): Likewise.
373 (install_dynamic_child): Remove 'const' from the type of
374 parameter 'name'.
375 (varobj_add_child): Likewise.
376 (create_child_with_value): Likewise. Update comments. Don't
377 duplicate 'name'.
378 (update_dynamic_varobj_children): Duplicate 'name'
379 and pass it to install_dynamic_child.
380
06ab7b19
PM
3812013-10-03 Phil Muldoon <pmuldoon@redhat.com>
382
383 * python/py-value.c (convert_value_from_python): Move PyInt_Check
384 conversion logic to occur after PyLong_Check. Comment on order
385 change significance.
386 * python/py-arch.c (archpy_disassemble): Comment on order of
387 conversion for integers and longs.
388
8ae377e8
PA
3892013-10-03 Pedro Alves <palves@redhat.com>
390
391 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
392 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
393 functions. Always test for PTRACE_O_TRACESYSGOOD even if
394 PTRACE_O_TRACEFORK is not supported.
395 (linux_test_for_tracesysgood): New function.
396 (linux_test_for_tracefork): New function, factored out from
397 linux_check_ptrace_features, and also don't kill child_pid here.
398
b1328b1b
TG
3992013-10-03 Tristan Gingold <gingold@adacore.com>
400
401 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
402 Remove verbose error reporting. Use detected state to
403 thread_set_state call.
404 (i386_darwin_dr_get): Fix return type. Remove verbose error
405 report.
406 Remove trailing spaces.
407
901461f8
PA
4082013-10-02 Pedro Alves <palves@redhat.com>
409
410 * cp-valprint.c (cp_print_value_fields): Adjust calls to
411 val_print_optimized_out.
412 * jv-valprint.c (java_print_value_fields): Likewise.
413 * p-valprint.c (pascal_object_print_value_fields): Likewise.
414 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
415 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
416 new optimized out value.
417 * findvar.c (address_from_register): Likewise.
418 * frame.c (put_frame_register): Tweak error string to say the
419 register was not saved, rather than optimized out.
420 * infcmd.c (default_print_one_register_info): Adjust call to
421 val_print_optimized_out. Use value_of_register instead of
422 get_frame_register_value.
423 * mi/mi-main.c (output_register): Use value_of_register instead of
424 get_frame_register_value.
425 * valprint.c (valprint_check_validity): Likewise.
426 (val_print_optimized_out): New value parameter. If the value is
427 lval_register, print <not saved> instead.
428 (value_check_printable, val_print_scalar_formatted): Adjust calls
429 to val_print_optimized_out.
430 * valprint.h (val_print_optimized_out): New value parameter.
431 * value.c (struct value) <optimized_out>: Extend comment.
432 (error_value_optimized_out): New function.
433 (require_not_optimized_out): Use it. Use a different string for
434 lval_register values.
435 * value.h (error_value_optimized_out): New declaration.
436 * NEWS: Mention <not saved>.
437
042a84d9
JB
4382013-10-02 Joel Brobecker <brobecker@adacore.com>
439
440 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
441 strcmp to compare two symtab filenames.
442
6b9780fb
JB
4432013-10-02 Joel Brobecker <brobecker@adacore.com>
444
445 * symtab.c (search_symbols_equal): Delete.
446 (sort_search_symbols_remove_dups): Replace call to
447 search_symbols_equal by call to compare_search_syms,
448 adjusting as necessary.
449
751e7549
PM
4502013-10-02 Phil Muldoon <pmuldoon@redhat.com>
451
452 PR python/15579
453
454 * python/python.c: Document gdb.execute command in Python help.
455
1efd7661
PM
4562013-10-02 Phil Muldoon <pmuldoon@redhat.com>
457
458 * python/py-frame.c (frame_info_to_frame_object): Use
459 gdbpy_convert_exception. Clean up Python object on failure.
460
562fc849
PM
4612013-10-02 Phil Muldoon <pmuldoon@redhat.com>
462
463 * python/lib/gdb/command/frame_filters.py
464 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
465 (ShowFrameFilterPriority.invoke): Ditto.
466
d7561cbb
KS
4672013-10-01 Keith Seitz <keiths@redhat.com>
468
469 * linespec.c (struct ls_parser): Make 'saved_arg' const.
470 (parse_linespec): Make 'argptr' const.
471 Remove temporary cast of 'argptr' to const char **.
472 (decode_line_full): Pass const pointer to parse_linespec.
473 (decode_line_1): Likewise.
474 (decode_objc): Make local variable 'new_argptr' const.
475 (find_function_symbols): Remove temporary cast to char *
476 to find_imps.
477 * objc-lang.c (find_imps): Make argument 'method' const.
478 Return const.
479 * objc-lang.h (find_imps): Likewise.
480
4812013-10-01 Keith Seitz <keiths@redhat.com>
482
483 * completer.c (skip_quoted_chars): Make all arguments const.
484 Return const.
485 (skip_quoted): Likewise.
486 * completer.h (skip_quoted_chars): Likewise.
487 (skip_quoted): Likewise.
488 * defs.h (skip_quoted): Remove duplicate declaration.
489 * jv-exp.y: Include completer.h.
490 (yylex): Remove unneccessary cast to char * fro skip_quoted.
491 * p-exp.y: Include completer.h.
492
4932013-10-01 Keith Seitz <keiths@redhat.com>
494
495 * c-exp.y (parse_number): Make first argument const.
496 Make a copy of the input to manipulate.
497 (c_parse_escape): Make first argument const.
498 Make local variable 'tokptr' const.
499 (parse_string_or_char): Make first two arguments const.
500 (macro_original_text): Make const.
501 (lex_one_token): Make local variable 'tokstart' const.
502 Likewise for local variables named 'p'.
503 Cast away const for struct stoken (temporary).
504 * c-lang.h (c_parse_escpae): Make first argument const.
505 * cli/cli-cmds.c (echo_command): Make local variable 'p'
506 const.
507 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
508 var_string case.
509 * f-exp.y (parse_number): Make first argument const.
510 (match_string_literal): Make local variable 'tokstart'
511 const.
512 (yylex): Make local variable 'p' const.
513 Cast away const for struct stoken (temporary).
514 * go-exp.y (parse_number): Make first argument const.
515 (parse_string_or_char): Likewise.
516 Make local variable 'tokstart' const.
517 (lex_one_token): Likewise for numerous locals called 'p'.
518 Cast away const for struct stoken (temporary).
519 * jv-exp.y (parse_number): Make first argument const.
520 Make local variables 'tokstart' and 'tokptr' const.
521 Cast away const for call to skip_quoted (temporary).
522 (yylex): Make local variable 'p' const.
523 Cast away const for struct stoken (temporary).
524 * m2-exp.y (parse_number): Make local variable 'p' const.
525 (yylex): Likewise for 'tokstart'.
526 Cast away const for struct stoken (temporary).
527 Make local variable 'p' const.
528 * macroexp.c (get_character_constant): Pass a const string
529 to c_parse_escape.
530 (get_string_literal): Likewise.
531 (macro_expand_next): Make first argument const.
532 Cast away const for init_shared_buffer.
533 * macroexp.h (macro_expand_next): Make first argument const.
534 * p-exp.y (yylex): Make a local copy of 'lexptr'.
535 Pass a const string to c_parse_escape.
536 Make local variables 'p' and 'namestart' const.
537 * parse.c (lexptr): Make const.
538 (prev_lexptr): Likewise.
539 (find_template_name_end): Return const.
540 Make argument const, too.
541 (parse_exp_in_context): Make first argument const.
542 Remove the entire const_hack.
543 (parse_exp_in_context_1): Make first argument const.
544 * parser-defs.h (find_template_name_end): Return const.
545 Make argument const, too.
546 (lexptr): Make const.
547 (prev_lexptr): Likewise.
548 * utils.c (parse_escape): Make second argument const.
549 * utils.h (parse_escape): Likewise.
550
5512013-10-01 Keith Seitz <keiths@redhat.com>
552
553 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
554 is now const.
555 (block_lookup): Make 'raw_name' and 'name' const.
556 * ada-lex.l (processString): Update for struct stoken.ptr.
557 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
558 (operator_stoken): Likewise.
559 (lex_one_token): Remove temporary cast to char * for
560 'yylval.sval.ptr'.
561 * f-exp.y (yylex): Likewise.
562 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
563 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
564 * go-exp.y (lex_one_token): Remove temporary cast to char * for
565 'yylval.sval.ptr'.
566 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
567 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
568 * linespec.c (struct ls_parser): Make 'stream' const.
569 (find_parameter_list_end): Make argument 'input' and local
570 variable 'p' const.
571 (linespec_lexer_lex_string): Make local variables 'start' and
572 'p' const.
573 Use skip_spaces_const instead of skip_spaces.
574 (linespec_lexer_peek_token): Make local variable 'saved_stream'
575 const.
576 (parse_linespec): Temporarily cast 'argptr' to const for
577 'parser->lexer.stream'.
578 * m2-exp.y (yylex): Remove temporary cast to char * for
579 'yylval.sval.ptr'.
580 * objc-lang.c (add_msglist): Make local variable 'p' const.
581 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
582 (exp : STRING): Make 'sp' const.
583 (parse_number): Make argument 'p' const.
584 * parser-defs.h (struct stoken): Make 'ptr' const.
585
193a8eac
DE
5862013-10-01 Doug Evans <dje@google.com>
587
588 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
589
2213e2be
YQ
5902013-10-01 Yao Qi <yao@codesourcery.com>
591
592 * varobj.c (c_value_of_root): Remove declaration.
593 (cplus_value_of_root, java_value_of_root): Likewise.
594 (ada_value_of_root): Likewise.
595 (struct language_specific) <value_of_root>: Remove.
596 (languages): Update initialization.
597 (check_scope): Move earlier.
598 (c_value_of_root): Move earlier and rename to ...
599 (value_of_root_1): ... this.
600 (value_of_root): Caller update.
601 (cplus_value_of_root, java_value_of_root): Remove.
602 (ada_value_of_root): Remove.
603
c573f273
YQ
6042013-10-01 Yao Qi <yao@codesourcery.com>
605
606 * varobj.c (varobj_format_string): Remove "unknown".
607 (languages): Remove the first element.
608 * varobj.h (enum varobj_languages): Remove vlang_c.
609
56250258
YQ
6102013-10-01 Yao Qi <yao@codesourcery.com>
611
612 * varobj.c (struct language_specific) <language>: Remove.
613 (languages): Update the initialization.
614
29f9ebfa
YQ
6152013-10-01 Yao Qi <yao@codesourcery.com>
616
617 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
618 "solib-target.h". Include "windows-tdep.h".
619 (arm_wince_init_abi): Call windows_init_abi. Remove call to
620 set_solib_ops and set_gdbarch_has_dos_based_file_system.
621 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
622 windows-tdep.o to gdb_target_obs.
623
64870a42
YQ
6242013-10-01 Yao Qi <yao@codesourcery.com>
625
626 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
627 "solib-target.h".
628 (amd64_windows_init_abi): Don't call set_solib_ops and
629 set_gdbarch_iterate_over_objfiles_in_search_order. Call
630 windows_init_abi instead.
631 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
632 "solib-target.h".
633 (i386_cygwin_init_abi): Don't call set_solib_ops,
634 set_gdbarch_has_dos_based_file_system and
635 set_gdbarch_iterate_over_objfiles_in_search_order. Call
636 windows_init_abi instead.
637 * windows-tdep.c: Include "solib.h" and "solib-target.h".
638 (windows_init_abi): New function.
639 (windows_iterate_over_objfiles_in_search_order): Make it
640 static.
641 * windows-tdep.h (windows_init_abi): Declare.
642 (windows_iterate_over_objfiles_in_search_order): Remove
643 declaration.
644
0aebdefa
JB
6452013-10-01 Jerome Guitton <guitton@adacore.com>
646
647 Checked in by Joel Brobecker <brobecker@adacore.com>
648 * system-gdbinit/elinos.py (get_elinos_environment): Return an
649 incomplete dictionnary instead of None in case of missing
650 environment variables.
651 (elinos_init): in case of an incomplete environment, best
652 effort to load system libraries instead of abort.
653
1c8e84b0
JB
6542013-10-01 Joel Brobecker <brobecker@adacore.com>
655
656 * ada-lang.c (ada_has_this_exception_support): Ignore
657 mst_solib_trampoline minimal symbols.
658
61d82a0d
TG
6592013-09-30 Tristan Gingold <gingold@adacore.com>
660
661 * i386-darwin-nat.c (darwin_complete_target): Install methods for
662 hardware watchpoint.
663 (i386_darwin_dr_set): Support 32 and 64 bit states.
664 (i386_darwin_dr_get): Likewise.
665 (i386_darwin_dr_set_control): Make static.
666 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
667 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
668
dfd4cc63
LM
6692013-09-30 Luis Machado <lgustavo@codesourcery.com>
670
671 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
672 Replace TIDGET with ptid_get_lwp.
673 Replace GET_LWP with ptid_get_lwp.
674 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
675 Replace BUILD_THREAD with ptid_build.
676 Replace BUILD_LWP with ptid_build.
677 Replace PIDGET with ptid_get_pid.
678 Replace TIDGET with ptid_get_lwp.
679 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
680 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
681 Replace TIDGET with ptid_get_lwp.
682 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
683 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
684 Replace TIDGET with ptid_get_lwp.
685 Replace GET_LWP with ptid_get_lwp.
686 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
687 * auxv.c: Likewise.
688 * breakpoint.c: Likewise.
689 * common/ptid.c (ptid_is_pid): Condense check for
690 null_ptid and minus_one_ptid.
691 (ptid_lwp_p): New function.
692 (ptid_tid_p): New function.
693 * common/ptid.h: Update comments for accessors.
694 (ptid_lwp_p): New prototype.
695 (ptid_tid_p): New prototype.
696 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
697 * gcore.c: Replace PIDGET with ptid_get_pid.
698 * gdbthread.h: Likewise.
699 * gnu-nat.c: Likewise.
700 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
701 Replace TIDGET with ptid_get_lwp.
702 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
703 * hppanbsd-nat.c: Likewise.
704 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
705 Replace TIDGET with ptid_get_lwp.
706 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
707 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
708 * infcmd.c: Likewise.
709 * inferior.h: Likewise.
710 * inflow.c: Likewise.
711 * infrun.c: Likewise.
712 * linux-fork.c: Likewise.
713 * linux-nat.c: Replace PIDGET with ptid_get_pid.
714 Replace GET_PID with ptid_get_pid.
715 Replace is_lwp with ptid_lwp_p.
716 Replace GET_LWP with ptid_get_lwp.
717 Replace BUILD_LWP with ptid_build.
718
5b4e221c
MF
7192013-09-28 Mike Frysinger <vapier@gentoo.org>
720
721 * common/linux-btrace.c: Move sys/syscall.h out of the
722 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
723 Also check for SYS_perf_event_open before attempting to buid.
724
57d63ce2
DE
7252013-09-27 Doug Evans <dje@google.com>
726
19ac8c2e
DE
727 * dwarf2read.c (dwarf2_section_info): Add comment.
728 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
729 All uses updated.
730 (dwarf2_section_empty_p): Rename arg from "info" to "section".
731 (dwarf2_read_section): Delete unused local "header". Add section
732 name to error message.
733 (create_dwo_in_dwp): Tweak comment.
734 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
735
a32a8923
DE
736 * dwarf2read.c (die_reader_specs): Tweak comment.
737 (get_section_bfd_owner, get_section_bfd_section): New functions.
738 (get_section_name, get_section_file_name): New functions.
739 (get_section_id, get_section_flags): New functions.
740 (*): Use new functions to access section fields.
741
57d63ce2
DE
742 * dwarf2read.c (struct dwo_file): Add/tweak comments.
743 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
744 arg "htab". All callers updated.
745 (create_debug_types_hash_table): Remove redundant copy of
746 abbrev_section.
747 (create_dwo_in_dwp): Tweak comments.
748 (read_str_index): Tweak comment. Record dwarf form name in static
749 local.
750
3736004f
PA
7512013-09-27 Pedro Alves <palves@redhat.com>
752
753 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
754 (remote_filename_p): Add comment.
755 * remote.c (remote_filename_p): Adjust to use
756 REMOTE_SYSROOT_PREFIX.
757 * solib.c (solib_find): When deciding whether we need to add a
758 directory separator, check whether the sysroot is "remote:"
759 instead of checking whether the patch has a drive spec. Add
760 comments.
761
5b5596ff
PA
7622013-09-27 Pedro Alves <palves@redhat.com>
763
764 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
765 Delete fields.
766 (remote_parse_stop_reply): Adjust, setting event->ws.kind
767 directly.
768
b5eef7aa
JK
7692013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
770
771 Fix set debug frame output.
772 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
773 SENTINEL_FRAME entry lower to match enum frame_type order.
774
5b856f36
PM
7752013-09-26 Pierre Muller <muller@sourceware.org>
776
777 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
778 AMD64_R15_REGNUM when a register index is expected.
779 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
780 Substitute in array.
781 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
782 (amd64_push_arguments): Substitute in integer_regnum array.
783
ade7ed9e
DE
7842013-09-25 Doug Evans <dje@google.com>
785
d3e81981
DE
786 * objfiles.c (allocate_objfile): Move comment to better place.
787
8fb8eb5c
DE
788 New option "set debug symfile on".
789 * NEWS: Mention "set debug symfile".
790 * Makefile.in (SFILES): Add symfile-debug.c.
791 (COMMON_OBS): Add symfile-debug.o.
792 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
793 objfile's symbol functions.
794 * objfiles.h (objfile_set_sym_fns): Declare.
795 * symfile-debug.c: New file.
796 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
797 objfile's symbol functions.
798 (reread_symbols): Ditto.
799
c256e171
DE
800 * symfile.h (struct sym_fns): Delete member "sym_flavour".
801 All uses updated.
802 (add_symtab_fns): Update prototype.
803 * symfile.c (sym_fns_ptr): Delete. Replace with ...
804 (registered_sym_fns): ... this.
805 (symtab_fns): Update.
806 (add_symtab_fns): New arg "flavour". All callers updated.
807 (find_sym_fns): Rewrite to use new sym_fns registry.
808
f56ce883
DE
809 * symfile.h (struct sym_fns): Add "objfile" argument to
810 sym_read_linetable. All uses updated.
811
20c681d1
DE
812 * symtab.c (domain_name, search_domain_name): New functions.
813 * symtab.h (domain_name, search_domain_name): Declare.
814
ade7ed9e
DE
815 * symfile.h (struct quick_symbol_functions): Reorg arg list of
816 map_matching_symbols so objfile is first. All uses updated.
817 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
818 * psymtab.c (map_matching_symbols_psymtab): Update signature.
819
7d760051
UW
8202013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
821
822 PR shlibs/8882
823 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
824 link map entries.
825
020f7036
DE
8262013-09-24 Doug Evans <dje@google.com>
827
828 * objfiles.c (free_objfile): Move comment.
829
598402f0
JB
8302013-09-24 Joel Brobecker <brobecker@adacore.com>
831
832 * ada-exp.y (string_to_operator): Delete.
833 (dummy_string_to_ada_operator): Delete.
834
bf4d6c1c
JB
8352013-09-24 Joel Brobecker <brobecker@adacore.com>
836
837 Revert:
838 * i386-tdep.h (enum amd64_reg_class): New, moved here from
839 amd64-tdep.c.
840 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
841 call_dummy_integer_regs, and classify.
842 * amd64-tdep.h (amd64_classify): Add declaration.
843 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
844 (amd64_reg_class): Delete, moved to i386-tdep.h.
845 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
846 Replace call to amd64_classify by call to tdep->classify.
847 (amd64_push_arguments): Get the list of registers to use for
848 passing integer parameters from the gdbarch tdep structure,
849 rather than using a hardcoded one. Replace calls to amd64_classify
850 by calls to tdep->classify.
851 (amd64_push_dummy_call): Get the register number used for
852 the "hidden" argument from tdep->call_dummy_integer_regs.
853 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
854 and tdep->call_dummy_integer_regs. Set tdep->classify.
855
849e9755
JB
8562013-09-24 Joel Brobecker <brobecker@adacore.com>
857
858 Revert:
859 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
860 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
861 where tdep->memory_args_by_pointer is non-zero.
862
c1459fd6
JB
8632013-09-24 Joel Brobecker <brobecker@adacore.com>
864
865 Revert:
866 * i386-tdep.h (struct gdbarch_tdep): Add new field
867 integer_param_regs_saved_in_caller_frame.
868 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
869 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
870
20c2e3e0
JB
8712013-09-24 Joel Brobecker <brobecker@adacore.com>
872
874440b8 873 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
874 (amd64_windows_classify): Delete.
875 (amd64_windows_passed_by_integer_register)
876 (amd64_windows_passed_by_xmm_register)
877 (amd64_windows_passed_by_pointer)
878 (amd64_windows_adjust_args_passed_by_pointer)
879 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
880 (amd64_windows_push_dummy_call): New functions.
881 (amd64_windows_init_abi): Remove setting of
882 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
883 tdep->classify, tdep->memory_args_by_pointer and
884 tdep->integer_param_regs_saved_in_caller_frame.
885 Add call to set_gdbarch_push_dummy_call.
886
82bf32bc
JK
8872013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
888
889 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
890 objfile->original_name.
891
24ba069a
JK
8922013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
893
894 Pass down original filename for objfile.
895 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
896 * elfread.c (elf_symfile_read): Likewise.
897 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
898 longer set ORIGINAL_NAME.
899 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
900 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
901 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
902 symbol_file_add_from_bfd call.
903 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
904 (macho_check_dsym): Add parameter filenamep. Change function comment.
905 Set *filenamep.
906 (macho_symfile_read): New variable dsym_filename. Update
907 macho_check_dsym call. Use it for symbol_file_add_separate.
908 * objfiles.c (allocate_objfile): Add parameter name. New comment for
909 it. Use it for objfile->original_name.
910 (objfile_name): Return OBFD's filename, if available.
911 * objfiles.h (allocate_objfile): Add new parameter name.
912 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
913 * symfile-mem.c (symbol_file_add_from_memory): Update
914 symbol_file_add_from_bfd call.
915 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
916 comment for it.
917 (symbol_file_add_with_addrs): New parameter name, add function comment
918 for it. Remove variable name. Update allocate_objfile call.
919 (symbol_file_add_separate): New parameter name, add function comment
920 for it. Update symbol_file_add_with_addrs call.
921 (symbol_file_add_from_bfd): New parameter name. Update
922 symbol_file_add_with_addrs call.
923 (symbol_file_add): Update symbol_file_add_from_bfd call.
924 (reread_symbols): New variable original_name. Save
925 objfile->original_name by it.
926 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
927 second parameter.
928
4262abfb
JK
9292013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
930
931 Code cleanup: Add objfile_name accessor function.
932 * ada-lang.c (is_known_support_routine): Use objfile_name.
933 * auto-load.c (source_gdb_script_for_objfile)
934 (auto_load_objfile_script): Likewise.
935 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
936 * dbxread.c (dbx_symfile_read): Likewise.
937 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
938 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
939 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
940 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
941 (lookup_dwp_signatured_type, lookup_dwo_unit)
942 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
943 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
944 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
945 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
946 (dwarf2_record_block_ranges, read_common_block, read_typedef)
947 (read_subrange_type, load_partial_dies, read_partial_die)
948 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
949 (die_containing_type, build_error_marker_type, lookup_die_type)
950 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
951 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
952 (get_DW_AT_signature_type, write_psymtabs_to_index)
953 (save_gdb_index_command): Likewise.
954 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
955 Likewise.
956 * expprint.c (dump_subexp_body_standard): Likewise.
957 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
958 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
959 original_name.
960 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
961 obj_name, use objfile_name for it, use the variable.
962 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
963 Use objfile_name.
964 * machoread.c (macho_symtab_read, macho_check_dsym)
965 (macho_symfile_relocate): Likewise.
966 * maint.c (maintenance_translate_address): Likewise.
967 * minidebug.c (find_separate_debug_file_in_section): Likewise.
968 * minsyms.c (install_minimal_symbols): Likewise.
969 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
970 original_name.
971 (filter_overlapping_sections): Use objfile_name.
972 (objfile_name): New function.
973 * objfiles.h (struct objfile): Rename field name to original_name.
974 (objfile_name): New prototype.
975 * printcmd.c (sym_info, address_info): Use objfile_name.
976 * probe.c (parse_probes, collect_probes, compare_probes)
977 (info_probes_for_ops): Likewise.
978 * progspace.c (clone_program_space): Likewise.
979 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
980 (maintenance_info_psymtabs): Likewise.
981 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
982 (source_section_scripts): Likewise.
983 * python/py-objfile.c (objfpy_get_filename): Likewise.
984 * python/py-progspace.c (pspy_get_filename): Likewise.
985 * solib-aix.c (solib_aix_get_toc_value): Likewise.
986 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
987 * solib.c (solib_read_symbols): Likewise.
988 * stabsread.c (scan_file_globals): Likewise.
989 * stap-probe.c (handle_stap_probe): Likewise.
990 * symfile.c (symbol_file_clear, separate_debug_file_exists)
991 (find_separate_debug_file_by_debuglink): Likewise.
992 (reread_symbols): Likewise. Use the objfile field name renamed to
993 original_name.
994 (allocate_symtab): Use objfile_name.
995 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
996 (dump_objfile, dump_msymbols, dump_symtab_1)
997 (maintenance_print_msymbols, maintenance_print_objfiles)
998 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
999 * target.c (target_translate_tls_address, target_info): Likewise.
1000 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1001 objfile_name.
1002
4721dc18
JK
10032013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1004
1005 Code cleanup.
1006 * probe.c (parse_probes): Rename variable objfile_name to
1007 objfile_namestr.
1008
a61d6db8
JK
10092013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1010
1011 Remove solib-sunos.c.
1012 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1013 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1014 * objfiles.c (rt_common_objfile): Remove.
1015 (free_objfile): Remove rt_common_objfile comparison.
1016 * objfiles.h (rt_common_objfile): Remove.
1017 * solib-sunos.c: Remove.
1018 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1019
2659903b
JK
10202013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1021
1022 Remove a.out NetBSD and OpenBSD hosts.
1023 * NEWS (Removed native configurations): New.
1024 * config/arm/nbsdaout.mh: Remove.
1025 * config/i386/nbsdaout.mh: Remove.
1026 * config/i386/obsdaout.mh: Remove.
1027 * config/m68k/nbsdaout.mh: Remove.
1028 * config/sparc/nbsdaout.mh: Remove.
1029 * config/vax/nbsdaout.mh: Remove.
1030 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1031 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1032 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1033 error.
1034 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1035 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1036 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1037
f60e2d5c
TT
10382013-09-23 Tom Tromey <tromey@redhat.com>
1039
1040 * linespec.c (struct minsym_and_objfile): Remove.
1041 (minsym_and_objfile_d): Remove.
1042 (struct linespec, struct collect_info, linespec_parse_basic)
1043 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1044 (compare_msymbols, find_method, find_function_symbols)
1045 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1046 (add_minsym, search_minsyms_for_name): Update.
1047
d3eaaf66
AB
10482013-09-23 Andrew Burgess <aburgess@broadcom.com>
1049
1050 * regcache.c: Add include of valprint.h.
1051 (dump_endian_bytes): Delete.
1052 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1053
2cc762b5
AB
10542013-09-23 Andrew Burgess <aburgess@broadcom.com>
1055
1056 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1057
96181529
PA
10582013-09-19 Pedro Alves <palves@redhat.com>
1059
1060 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1061 breakpoints.
1062
9b3f3ee6
TS
10632013-09-19 Pedro Alves <palves@redhat.com>
1064 Thomas Schwinge <thomas@codesourcery.com>
1065 Yue Lu <hacklu.newborn@gmail.com>
1066
1067 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1068 Take a gdb_byte pointer instead of a char pointer.
1069
1070 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1071 gnu_xfer_partial helper.
1072 (gnu_xfer_partial): New function.
1073 (gnu_target): Don't install a deprecated_xfer_memory hook.
1074 Install a to_xfer_partial hook.
1075
69150c3d
JK
10762013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1077
1078 Constification.
1079 * main.c (captured_main): Replace catch_command_errors by
1080 catch_command_errors_const. Twice.
1081 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1082 (symbol_file_add): Make name parameter const.
1083 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1084 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1085 variable name. Change their usage accordingly.
1086 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1087 const.
1088 (symbol_file_add_main): Make args parameter const.
1089
086850b2
UW
10902013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1091 Ulrich Weigand <uweigand@de.ibm.com>
1092
1093 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1094 of c_value member.
1095 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1096
ca08a94c 10972013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1098 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1099
1100 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1101 (gnu_create_inferior)
1102 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1103 (set_sig_thread_cmd): Use the lwpid field of ptids to
1104 store/extract thread ids instead of the tid field.
1105 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1106
e4c6a2c4
AB
11072013-09-18 Andrew Burgess <aburgess@broadcom.com>
1108
1109 * infcmd.c (default_print_one_register_info): Add detection of
1110 optimized out values.
1111 (default_print_registers_info): Switch to using
1112 get_frame_register_value.
1113
58c48e72
MM
11142013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1115
1116 * infrun.c (handle_inferior_event): Check if we know the
1117 function start address before setting a resume breakpoint.
1118
c8d37639
PA
11192013-09-18 Pedro Alves <palves@redhat.com>
1120
1121 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1122 minus_one_ptid instead of looking at the ptid's tid field and
1123 comparing that to -1.
1124
71926e28
AB
11252013-09-18 Andrew Burgess <aburgess@broadcom.com>
1126
1127 * main.h (get_gdb_program_name): Remove extra whitespace.
1128
c88a1531
AB
11292013-09-18 Andrew Burgess <aburgess@broadcom.com>
1130
1131 * main.h (get_gdb_program_name): Add declaration.
1132 * main.c (get_gdb_program_name): Add definition.
1133
4390d890
DE
11342013-09-17 Doug Evans <dje@google.com>
1135
1136 * dwarf2read.c: Move definitions of complaint functions to after
1137 forward declarations of local functions.
1138
49fa26b0
PA
11392013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1140 Pedro Alves <palves@redhat.com>
1141
1142 PR gdb/11568
1143 * breakpoint.c (remove_threaded_breakpoints): New function.
1144 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1145 as thread_exit observer.
1146
08d72866
PA
11472013-09-17 Pedro Alves <palves@redhat.com>
1148
1149 PR gdb/15911
1150 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1151 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1152 * corelow.c (core_open):
1153 * frame.h (print_stack_frame, print_frame_info): New
1154 'set_current_sal' parameter.
1155 * infcmd.c (finish_command, kill_command): Adjust call to
1156 print_stack_frame.
1157 * inferior.c (inferior_command): Likewise.
1158 * infrun.c (normal_stop): Likewise.
1159 * linux-fork.c (linux_fork_context): Likewise.
1160 * record-full.c (record_full_goto_entry, record_full_restore):
1161 Likewise.
1162 * remote-mips.c (common_open): Likewise.
1163 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1164 Use it.
1165 (print_frame_info): New 'set_current_sal' parameter. Set the last
1166 displayed sal depending on the new paremeter instead of looking at
1167 print_what.
1168 (backtrace_command_1, select_and_print_frame, frame_command)
1169 (current_frame_command, up_command, down_command): Adjust call to
1170 print_stack_frame.
1171 * thread.c (print_thread_info, restore_selected_frame)
1172 (do_captured_thread_select): Adjust call to print_stack_frame.
1173 * tracepoint.c (tfind_1): Likewise.
1174 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1175 (mi_cmd_stack_info_frame): Likewise.
1176 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1177 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1178
6bc305f5
SDJ
11792013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1180
1181 * value.c (isvoid_internal_fn): Replace "parameter" with
1182 "argument".
1183
0a7cfe2c
SS
11842013-09-16 Stan Shebs <stan@codesourcery.com>
1185
1186 * README: Update references to writing code for GDB.
1187 * configure.ac (build_warnings): Remove obsolete comment.
1188 * configure: Regenerate.
1189 * gdbarch.sh: Remove references to gdbint.texinfo.
1190 * gdbarch.h: Regenerate.
1191 * gdbtypes.c (objfile_type): Remove comments referencing internals
1192 manual and D10V.
1193
a280dbd1
SDJ
11942013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1195
1196 * NEWS: Mention new convenience function $_isvoid.
1197 * value.c (isvoid_internal_fn): New function.
1198 (_initialize_values): Add new convenience function $_isvoid.
1199
04a83fee
PM
12002013-09-16 Pierre Muller <muller@sourceware.org>
1201
1202 * arm-linux-tdep.c: Add "elf/common.h" header.
1203 Remove AT_HWCAP macro definintion as it is provided in
1204 added include file.
1205 * s390-tdep.c: Remove system header <elf.h>
1206 Add "elf/common.h" header for AT_HWCAP definition.
1207 (s390_core_read_description): Use correct CORE_ADDR
1208 for hwcap local variable used as third parameter
1209 of function target_auxv_search.
1210
88505fac
PM
12112013-09-14 Pierre Muller <muller@sourceware.org>
1212 Tom Tromey <tromey@redhat.com>
1213 Pedro Alves <palves@redhat.com>
1214
1215 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1216 mode if operating system doesn't know O_CLOEXEC.
1217
d3846e71
JK
12182013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1219
1220 Code cleanup.
1221 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1222 inner block.
1223
4ac33720
UW
12242013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1225
1226 * NEWS: Mention TDB support.
1227 * features/s390-tdb.xml: New file.
1228 * features/s390-te-linux64.xml: New file.
1229 * features/s390x-te-linux64.xml: New file.
1230 * features/Makefile (WHICH): Add new tdescs above.
1231 (s390-te-linux64-expedite): Set.
1232 (s390x-te-linux64-expedite): Set.
1233 * features/s390-te-linux64.c: New file (generated).
1234 * features/s390x-te-linux64.c: New file (generated).
1235 * regformats/s390-te-linux64.dat: New file (generated).
1236 * regformats/s390x-te-linux64.dat: New file (generated).
1237 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1238 (HWCAP_S390_TE): Likewise.
1239 (S390_TDB_DWORD0_REGNUM): Likewise.
1240 (S390_TDB_DWORD0_REGNUM): Likewise.
1241 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1242 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1243 (S390_TDB_ATIA_REGNUM): Likewise.
1244 (S390_TDB_R0_REGNUM): Likewise.
1245 (S390_TDB_R1_REGNUM): Likewise.
1246 (S390_TDB_R2_REGNUM): Likewise.
1247 (S390_TDB_R3_REGNUM): Likewise.
1248 (S390_TDB_R4_REGNUM): Likewise.
1249 (S390_TDB_R5_REGNUM): Likewise.
1250 (S390_TDB_R6_REGNUM): Likewise.
1251 (S390_TDB_R7_REGNUM): Likewise.
1252 (S390_TDB_R8_REGNUM): Likewise.
1253 (S390_TDB_R9_REGNUM): Likewise.
1254 (S390_TDB_R10_REGNUM): Likewise.
1255 (S390_TDB_R11_REGNUM): Likewise.
1256 (S390_TDB_R12_REGNUM): Likewise.
1257 (S390_TDB_R13_REGNUM): Likewise.
1258 (S390_TDB_R14_REGNUM): Likewise.
1259 (S390_TDB_R15_REGNUM): Likewise.
1260 (S390_NUM_REGS): Increase.
1261 (S390_IS_TDBREGSET_REGNUM): New macro.
1262 (s390_regmap_tdb): Declare.
1263 (s390_sizeof_tdbregset): Define.
1264 (tdesc_s390_te_linux64): Declare.
1265 (tdesc_s390x_te_linux64): Likewise.
1266 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1267 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1268 (s390_regmap_tdb): New regmap.
1269 (s390_supply_tdb_regset): New function.
1270 (s390_tdb_regset): New regset.
1271 (s390_linux64v2_regset_sections): Add TDB regset to list.
1272 (s390x_linux64v2_regset_sections): Likewise.
1273 (s390_regset_from_core_section): Recognize TDB core note section.
1274 (s390_core_read_description): If HWCAP indicates TE support,
1275 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1276 (s390_gdbarch_init): Handle TDB regset.
1277 (_initialize_s390_tdep): Initialize new tdescs.
1278 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1279 (have_regset_tdb): New variable.
1280 (s390_native_supply): Support register invalidation.
1281 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1282 (check_regset): Treat ENODATA as "regset exists".
1283 (s390_linux_fetch_inferior_registers): Add TDB.
1284 (s390_read_description): Check for TDB existence and select
1285 appropriate tdesc.
1286 * gdbserver/Makefile.in (clean): Add removal of new makefile
1287 targets.
1288 (s390-te-linux64.c): New makefile target.
1289 (s390x-te-linux64.c): Likewise.
1290 * gdbserver/configure.srv (srv_regobj): Append new objects
1291 s390-te-linux64.o and s390x-te-linux64.o.
1292 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1293 s390x-te-linux64.xml, and s390-tdb.xml.
1294 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1295 declaration.
1296 (tdesc_s390_te_linux64): Likewise.
1297 (init_registers_s390x_te_linux64): Likewise.
1298 (tdesc_s390x_te_linux64): Likewise.
1299 (s390_check_regset): Treat ENODATA as "regset exists".
1300 (s390_arch_setup): Add TDB regset support.
1301 (initialize_low_arch): Initialize registers for new tdescs.
1302
2ccd1468
UW
13032013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1304
1305 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1306 (S390_IS_FPREGSET_REGNUM): New macro.
1307 * s390-tdep.c (s390_dwarf_regmap): Make const.
1308 (regnum_is_gpr_full): New function for replacing repeated code.
1309 (s390_pseudo_register_name): Use it.
1310 (s390_pseudo_register_type): Likewise.
1311 (s390_pseudo_register_read): Likewise.
1312 (s390_pseudo_register_write): Likewise.
1313 (s390_unwind_pseudo_register): Likewise.
1314 (s390_regmap_gregset): New format for regmap.
1315 (s390x_regmap_gregset): Likewise.
1316 (s390_regmap_fpregset): Likewise.
1317 (s390_regmap_upper): Likewise.
1318 (s390_regmap_last_break): Likewise.
1319 (s390_regmap_system_call): Likewise.
1320 (s390_supply_regset): Adjust to new regmap format.
1321 (s390_collect_regset): Likewise.
1322 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1323 (s390_native_collect): Likewise.
1324 (supply_gregset): Likewise.
1325 (fill_gregset): Likewise.
1326 (supply_fpregset): Likewise.
1327 (fill_fpregset): Likewise.
1328 (fetch_regset): Likewise.
1329 (store_regset): Likewise.
1330 (s390_linux_fetch_inferior_registers): Likewise.
1331 (s390_linux_fetch_inferior_registers): Likewise.
1332
1aa4cd77
AP
13332013-09-12 Andrew Pinski <apinski@cavium.com>
1334
1335 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1336
d91fab15
UW
13372013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1338
1339 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1340
5a5d8ead
AB
13412013-09-09 Andrew Burgess <aburgess@broadcom.com>
1342
1343 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1344
1385f66c
PA
13452013-09-06 Pedro Alves <palves@redhat.com>
1346
1347 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1348 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1349 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1350 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1351 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1352 gdb_stdlog.
1353
146ec4db
PA
13542013-09-06 Pedro Alves <palves@redhat.com>
1355
1356 * remote-sim.c (dump_mem): Constify buf parameter.
1357 gdbsim_xfer_inferior_memory): Rename to ...
1358 (gdbsim_xfer_memory): ... this. Adjust interface as
1359 target_xfer_partial helper.
1360 (gdbsim_xfer_partial): New function.
1361 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1362 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1363
fcde0081
PA
13642013-09-06 Pedro Alves <palves@redhat.com>
1365
1366 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1367 host_address_to_string, and send debug output to gdb_stdlog.
1368
749c8b38
RW
13692013-09-06 Ricard Wanderlof <ricardw@axis.com>
1370
1371 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1372 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1373 gdb_target_obs for cris target.
1374 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1375 (cris_gdbarch_init): Move calls to
1376 set_gdbarch_fetch_tls_load_module_address and
1377 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1378 Add call to gdbarch_init_osabi.
1379 * cris-linux-tdep.c: New file.
1380 * cris-tdep.h: New file.
1381
43df09d9
AB
13822013-09-06 Andrew Burgess <aburgess@broadcom.com>
1383
1384 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1385 to deprecated_init_ui_hook.
1386
4d09c5b4
AB
13872013-09-06 Andrew Burgess <aburgess@broadcom.com>
1388
1389 * cli/cli-interp.c (_initialize_cli_interp): Add a
1390 command_loop_proc to interp_procs.
1391 * event-top.c (cli_command_loop): Change signature to match
1392 interp_command_loop_ftype.
1393 * event-top.h (cli_command_loop): Same.
1394 * interps.c (interp_new): Require every interpreter to have a
1395 command_loop_proc.
1396 (current_interp_command_loop): Just call the command_loop_proc on
1397 the current interpreter.
1398 * tui/tui-interp.c (_initialize_tui_interp): Add a
1399 command_loop_proc to interp_procs.
1400
8eb3d7b6
RW
14012013-09-06 Ricard Wanderlof <ricardw@axis.com>
1402
1403 * cris-tdep.c (cris_gdbarch_init): Add call to
1404 get_gdbarch_fetch_tls_load_module_address.
1405
18b3c2f5
RW
14062013-09-06 Ricard Wanderlof <ricardw@axis.com>
1407
1408 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1409 (cris_elf_gregset_t): Rename from elf_gregset_t.
1410 (crisv32_elf_gregset_t): Adjust.
1411 (cris_supply_gregset, fetch_core_registers): Adjust.
1412
dc8636ef
RW
14132013-09-06 Ricard Wanderlof <ricardw@axis.com>
1414
1415 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1416
257e6d53
AB
14172013-09-05 Andrew Burgess <aburgess@broadcom.com>
1418
1581d8a7 1419 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1420 references in comments.
1581d8a7 1421 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1422 deprecated_command_loop_hook.
1423 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1424 setup.
1581d8a7 1425 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1426
7c33b57c
PA
14272013-09-05 Pedro Alves <palves@redhat.com>
1428
1429 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1430 local is now int instead of ULONGEST. Print it with %d
1431 instead of paddress.
1432
9f8edbd5
TG
14332013-09-05 Tristan Gingold <gingold@adacore.com>
1434
1435 * MAINTAINERS: Remove avr maintainership.
1436
d5b495b4
PA
14372013-09-05 Pedro Alves <palves@redhat.com>
1438
1439 * findvar.c (value_of_register): Rework in terms of
1440 value_of_register_lazy.
1441
40b91786
MB
14422013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1443
1444 * symfile.c (add_symbol_file_command): Remove trailing
1445 whitespaces and blank line after comment.
1446
6eed1678
PA
14472013-09-05 Pedro Alves <palves@redhat.com>
1448
1449 * tui/tui-regs.c (tui_register_format): Don't look at the
1450 register's name here. Return string representing register
1451 value instead of storing it in the data element.
1452 (tui_get_register): Compare register string representations
1453 instead of register value states and contents.
1454
8eb6bda2
PA
14552013-09-05 Pedro Alves <palves@redhat.com>
1456
1457 PR tui/15933
1458 * tui/tui-regs.c (tui_show_registers): Show registers of the
1459 selected frame, not the current frame.
1460
48b1f08c
RW
14612013-09-05 Ricard Wanderlof <ricardw@axis.com>
1462
1463 * MAINTAINERS (Write After Approval): Add myself to the list.
1464
89e63ee4
DE
14652013-09-04 Doug Evans <dje@google.com>
1466
1467 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1468 (queue_and_load_dwo_tu): New function.
1469 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1470 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1471 Make dependent_cu optional.
1472 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1473 and an older .gdb_index is in use, queue and load all its TUs too.
1474
492c0ab7
JK
14752013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1476
1477 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1478 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1479 variable search_flags.
1480 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1481 (OPF_RETURN_REALPATH): ... here.
1482 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1483 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1484 call. Twice.
1485 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1486 openp call.
1487 * solib.c (solib_find): Likewise. Four times.
1488 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1489 in the function comment and for the realpath_fptr variable.
1490 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1491 (find_and_open_source): Likewise. Twice.
1492 * symfile.c (symfile_bfd_open): Likewise, also twice.
1493
23a44de8
DE
14942013-09-04 Doug Evans <dje@google.com>
1495
1496 * progspace.c (save_current_space_and_thread): Remove unnecessary
1497 call to save_current_inferior.
1498
47061676
AB
14992013-09-04 Andrew Burgess <aburgess@broadcom.com>
1500
1501 * sh64-tdep.c (sh64_do_register): Return after printing message
1502 about unavailable register contents.
1503
41dc8db8
MB
15042013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1505 Pedro Alves <palves@redhat.com>
1506
1507 * symfile.c (add_symbol_file_command): Error out on unknown
1508 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1509 options and collapse into single conditional branch.
1510
07107ca6
LM
15112013-09-03 Luis Machado <lgustavo@codesourcery.com>
1512
a7ea61cf 1513 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1514 detach_fork.
1515 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1516 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1517 * inferior.h (detach_fork): Remove.
1518 * infrun.c (detach_fork): Adjust comment and make it
1519 static.
1520 (follow_fork): Pass detach_fork parameter to
1521 target_follow_fork.
1522 * linux-nat.c (linux_child_follow_fork): New parameter
1523 detach_fork.
1524 * target.c (target_follow_fork): New parameter detach_fork.
1525 Pass detach_fork as parameter and print its value.
1526 * target.h (struct target_ops) <to_follow_fork>: New int
1527 parameter.
1528 (target_follow_fork): New parameter detach_fork.
1529
3bec2768
JB
15302013-09-03 Joel Brobecker <brobecker@adacore.com>
1531
1532 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1533 Replace sec->bfd by sec->the_bfd_section->owner.
1534
c01cbb3d
YQ
15352013-09-03 Yao Qi <yao@codesourcery.com>
1536
1537 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1538 from linux_has_shared_address_space.
1539 (linux_has_shared_address_space): Call linux_is_uclinux.
1540 * linux-tdep.h (linux_is_uclinux): Declare.
1541 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1542 linux_is_uclinux.
1543
7b00db47
YQ
15442013-09-03 Yao Qi <yao@codesourcery.com>
1545
1546 * config/djgpp/fnchange.lst: Remove entry of
1547 i386-interix-nat.c and i386-interix-tdep.c.
1548 * configure.ac: Remove '*-*-interix*'.
1549 * configure: Re-generated.
1550 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1551 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1552 obsolete comments.
1553 * osabi.c (gdb_osabi_names): Remove "Interix".
1554
0f9741f2
YQ
15552013-09-03 Yao Qi <yao@codesourcery.com>
1556
1557 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1558
1e038f67
MM
15592013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1560
1561 * record.h (record_print_flag) <record_print_src_line,
1562 record_print_insn_range>: Rename into ...
1563 (record_print_flag) <record_print_src_line,
1564 record_print_insn_range>: ... this. Update all users.
1565
9e52adf9
PM
15662013-09-02 Pierre Muller <muller@sourceware.org>
1567
1568 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1569 error code.
1570
a2388568
PM
15712013-09-02 Pierre Muller <muller@sourceware.org>
1572
1573 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1574 by use of plongest function.
1575
9058cc3a
TG
15762013-09-02 Tristan Gingold <gingold@adacore.com>
1577
1578 * NEWS: Add entry mentioning support for native Windows x64
1579 SEH data.
1580
1581 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1582 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1583 (struct amd64_windows_frame_cache): New struct.
1584 (amd64_windows_w2gdb_regnum): New global.
1585 (pc_in_range, amd64_windows_frame_decode_epilogue)
1586 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1587 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1588 (amd64_windows_frame_this_id): New functions.
1589 (amd64_windows_frame_unwind): New static global.
1590 (amd64_windows_skip_prologue): New function.
1591 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1592 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1593 with amd64_windows_skip_prologue.
1594
3161820b 15952013-08-30 Joel Brobecker <brobecker@adacore.com>
1596
1597 GDB 7.6.1 released.
1598
02457c76
PA
15992013-08-30 Pedro Alves <palves@redhat.com>
1600
1601 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1602 SRC_AND_LOC.
1603
e0162910
PA
16042013-08-30 Pedro Alves <palves@redhat.com>
1605
1606 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1607 warning text.
1608
6391ce51
PA
16092013-08-30 Pedro Alves <palves@redhat.com>
1610
1611 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1612 Adjust arguments to print_stack_frame.
1613
d1da0587
PA
16142013-08-30 Pedro Alves <palves@redhat.com>
1615
1616 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1617
adfd8245
PA
16182013-08-30 Pedro Alves <palves@redhat.com>
1619
1620 * frame.h (show_and_print_stack_frame): Delete declaration.
1621
96d9056e
PM
16222013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1623
1624 PR python/15461
1625
1626 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1627 (archpy_name): Check for valid architecture.
1628 (archpy_disassemble): Ditto.
1629
11cb8762
JB
16302013-08-29 Joel Brobecker <brobecker@adacore.com>
1631
1632 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1633 instead of "long long" in call to ptrace64.
1634
1af12a7d
AB
16352013-08-29 Andrew Burgess <aburgess@broadcom.com>
1636
1637 * mi/mi-interp.c (mi_command_loop): Change signature to match
1638 interp_command_loop_ftype.
1639 (mi1_command_loop): Remove.
1640 (mi2_command_loop): Remove.
1641 (mi3_command_loop): Remove.
1642 (mi_interpreter_resume): Remove setting of
1643 deprecated_command_loop_hook.
1644 (_initialize_mi_interp): Set mi_command_loop as the command loop
1645 callback.
1646
acc900c2
SA
16472013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1648
1649 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1650 value_type.
1651
548b762d
SA
16522013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1653
1654 * value.c (allocate_value_contents): Make static.
1655 * value.h (allocate_value_contents): Remove prototype.
1656
08039c9e
SA
16572013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1658
1659 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1660 of assembling value via allocate_value_lazy and attribute setter.
1661 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1662 assembling value via allocate_value_lazy and attribute setter.
1663 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1664 assembling value via allocate_value_lazy and attribute setter.
1665
314c7de9
SA
16662013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1667
1668 * value.c (value_from_contents_and_address): Replace allocate_value and
1669 memcpy with value_from_contents.
1670
8f28f522
PM
16712013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1672
1673 * python/py-framefilter.c (py_print_frame): Remove usage of
1674 PyString_AsString. Use python_string_to_host_string instead.
1675 Refactor function to work with a string as a new allocation
1676 instead of a pointer.
1677 (py_print_frame): Ditto.
1678 * python/lib/gdb/frames.py (return_list): Cain iterators together
1679 instead of adding them as a list.
1680 (_sort_list): Call return_list, and remove duplicate code.
1681 (execute_frame_filters): Convert iterator to a list with list().
1682 * python/lib/gdb/command/frame_filters.py
1683 (SetFrameFilterPriority._set_filter_priority): Convert priority
1684 attribute to an integer.
1685 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1686 wrapper function __next__.
1687 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1688 define as "str".
1689
8ee002df
PM
16902013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1691
1692 PR python/15752
8ee002df
PM
1693 * python/py-framefilter.c (apply_frame_filter): Check
1694 gdb_python_initialized. Exit if the Python frame-filter code
1695 cannot be initialized.
1696
af4c453a
PM
16972013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1698
1699 PR cli/15842
af4c453a
PM
1700 * top.c (print_gdb_version): Remove erroneous newline after help
1701 text.
1702
bf8793bb
YQ
17032013-08-29 Yao Qi <yao@codesourcery.com>
1704
1705 * varobj.c (install_dynamic_child): Remove trailing space.
1706 Add one blank line after variable declaration.
1707
1f0c4988
JK
17082013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1709
1710 PR gdb/15415
1711 * corefile.c (get_exec_file): Use exec_filename.
1712 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1713 * exec.c (exec_close): Free EXEC_FILENAME.
1714 (exec_file_attach): New variable canonical_pathname. Use
1715 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1716 EXEC_FILENAME.
1717 * exec.h (exec_filename): New.
1718 * inferior.c (print_inferior, inferior_command): Use
1719 PSPACE_EXEC_FILENAME.
1720 * mi/mi-main.c (print_one_inferior): Likewise.
1721 * progspace.c (clone_program_space, print_program_space): Likewise.
1722 * progspace.h (struct program_space): New field pspace_exec_filename.
1723 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1724 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1725
59ee9f94
WN
17262013-08-28 Will Newton <will.newton@linaro.org>
1727
1728 * common/linux-ptrace.c: Include stdint.h unconditionally.
1729
c8a2a419
JK
17302013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 Code cleanup.
1733 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1734
ffa4ac95
YQ
17352013-08-28 Yao Qi <yao@codesourcery.com>
1736 Pedro Alves <palves@redhat.com>
1737
1738 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1739 instead of stdio_fileopen.
1740 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1741 .Call stderr_fileopen instead of stdio_fileopen.
1742 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1743 [__MINGW32__] (stderr_file_fputs): New function.
1744 (stderr_fileopen): New function.
1745 * ui-file.h (stderr_fileopen): Declare.
1746
69d751e3
DE
17472013-08-27 Doug Evans <dje@google.com>
1748
1749 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1750 (struct dwarf2_per_cu_data): Ditto.
1751 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1752 (process_imported_unit_die): Ditto.
1753 (follow_die_sig_1): Simplify assert.
1754
44f38867
PA
17552013-08-27 Pedro Alves <palves@redhat.com>
1756
1757 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1758 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1759 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1760 windows_xfer_memory directly.
1761 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1762
d28d46b5
PA
17632013-08-27 Pedro Alves <palves@redhat.com>
1764
1765 * darwin-nat.c (darwin_xfer_memory): Delete.
1766 (_initialize_darwin_inferior): Don't install a
1767 deprecated_xfer_memory method.
1768
6211c335
YQ
17692013-08-27 Pedro Alves <pedro@codesourcery.com>
1770 Yao Qi <yao@codesourcery.com>
1771
1772 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1773 (parse_no_frames_option): Remove.
1774 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1775 (mi_cmd_stack_list_args): Adjust.
1776 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1777 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1778 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1779 Caller update.
1780 (list_args_or_locals): New parameter 'skip_unavailable'.
1781 Handle it.
1782 * valprint.c (scalar_type_p): Rename to ...
1783 (val_print_scalar_type_p): ... this. Make extern.
1784 (val_print, value_check_printable): Adjust.
1785 * valprint.h (val_print_scalar_type_p): Declare.
1786 * value.c (value_entirely_unavailable): New function.
1787 * value.h (value_entirely_unavailable): Declare.
1788
1789 * NEWS: Mention the new option "--skip-unavailable" to MI
1790 commands '-stack-list-locals', '-stack-list-arguments' and
1791 '-stack-list-variables'.
1792
242f1fd7
YQ
17932013-08-27 Yao Qi <yao@codesourcery.com>
1794
1795 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1796 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1797 options.
1798 * mi/mi-getopt.c (mi_getopt): Remove.
1799 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1800 'error_on_unknown'.
1801 (mi_getopt): Call mi_getopt_1.
1802 (mi_getopt_silent): New.
1803 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1804
260b681b
DE
18052013-08-26 Doug Evans <dje@google.com>
1806
779bd270
DE
1807 PR symtab/15885
1808 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1809 .gdb_index is in use.
1810 * symfile.c (reread_symbols): Reset objfile->sf.
1811
52e260a3
DE
1812 * NEWS: Document "mt print objfiles" now takes optional regexp.
1813 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1814 regexp of objfiles to print.
1815 (_initialize_symmisc): Update doc string for "mt print objfiles".
1816
260b681b
DE
1817 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1818 missing debug info checks.
1819
a85c52f2
UW
18202013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1821 Ulrich Weigand <uweigand@de.ibm.com>
1822
1823 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1824 line tables generated by XLC compiled binaries.
1825
4f00dda3
DE
18262013-08-23 Doug Evans <dje@google.com>
1827
db68bbae
DE
1828 * symmisc.c (dump_symtab): Delete prototype.
1829 (dump_msymbols, dump_objfile): Ditto.
1830 (maintenance_info_symtabs): Mark as dont_repeat.
1831 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1832
4f00dda3
DE
1833 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1834 debugging printf to better location.
1835
23d577b0
PA
18362013-08-23 Pedro Alves <palves@redhat.com>
1837
1838 * target.c (target_read_live_memory): Change type of 'ret' local
1839 to LONGEST.
1840
00d84524
PA
18412013-08-23 Pedro Alves <palves@redhat.com>
1842
1843 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1844 (remote_read_bytes): Change return type to LONGEST, and adjust to
1845 return a target_xfer_error on error.
1846 (remote_xfer_memory): Delete.
1847 (remote_flash_write): Change type of 'ret' local to LONGEST.
1848 (remote_xfer_partial, remote_xfer_partial): Adjust.
1849 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1850
1ed3ee94
PM
18512013-08-23 Pierre Muller <muller@sourceware.org>
1852
1853 ARI fix: Push # directives to start of line.
1854 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1855
9eaabc75
MW
18562013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1857
1858 PR gdb/15501
1859 * breakpoint.c (enable_command, disable_command): Iterate over
1860 all specified breakpoint locations.
1861
101158d9
LM
18622013-08-22 Luis Machado <lgustavo@codesourcery.com>
1863
1864 * common/linux-ptrace.c (linux_fork_to_function): Push #
1865 directives to the start of the line.
1866 (linux_check_ptrace_features): Fix warning message to use
1867 the "_" markup.
1868
96d7229d
LM
18692013-08-22 Luis Machado <lgustavo@codesourcery.com>
1870
1871 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1872 nat/linux-waitpid.h.
1873 (linux-waitpid.o): New object file rule.
1874 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1875 (current_ptrace_options): Moved from linux-nat.c.
1876 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1877 parameters.
1878 (linux_fork_to_function): New function.
1879 (linux_grandchild_function): Likewise.
1880 (linux_child_function): Likewise.
1881 (linux_check_ptrace_features): New function, heavily
1882 based on linux-nat.c:linux_test_for_tracefork.
1883 (linux_enable_event_reporting): New function.
1884 (ptrace_supports_feature): Likewise.
1885 (linux_supports_tracefork): Likewise.
1886 (linux_supports_traceclone): Likewise.
1887 (linux_supports_tracevforkdone): Likewise.
1888 (linux_supports_tracesysgood): Likewise.
1889 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1890 gdbserver/linux-low.c.
1891 (linux_enable_event_reporting): New declaration.
1892 (linux_supports_tracefork): Likewise.
1893 (linux_supports_traceclone): Likewise.
1894 (linux_supports_tracevforkdone): Likewise.
1895 (linux_supports_tracesysgood): Likewise.
1896 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1897 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1898 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1899 * config/arm/linux.mh (NATDEPFILES): Likewise.
1900 * config/i386/linux.mh (NATDEPFILES): Likewise.
1901 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1902 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1903 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1904 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1905 * config/mips/linux.mh (NATDEPFILES): Likewise.
1906 * config/pa/linux.mh (NATDEPFILES): Likewise..
1907 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1908 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1909 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1910 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1911 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1912 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1913 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1914 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1915 ptrace's 4th argument's types.
1916 Check the type of PTRACE_TYPE_ARG4.
1917 * configure: Regenerate.
1918 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1919 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1920 (linux_supports_tracefork_flag): Remove.
1921 (linux_supports_tracesysgood_flag): Likewise.
1922 (linux_supports_tracevforkdone_flag): Likewise.
1923 (current_ptrace_options): Moved to
1924 common/linux-ptrace.c.
1925 (linux_tracefork_child): Remove.
1926 (my_waitpid): Remove.
1927 (linux_test_for_tracefork): Renamed to
1928 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1929 (linux_test_for_tracesysgood): Remove.
1930 (linux_supports_tracesysgood): Remove.
1931 (linux_supports_tracefork): Remove.
1932 (linux_supports_tracevforkdone): Remove.
1933 (linux_enable_tracesysgood): Remove.
1934 (linux_enable_event_reporting): Remove.
1935 (linux_init_ptrace): New function.
1936 (linux_child_post_attach): Call linux_init_ptrace.
1937 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1938 (linux_child_follow_fork): Call linux_supports_tracefork
1939 and linux_supports_tracevforkdone.
1940 (linux_child_insert_fork_catchpoint): Call
1941 linux_supports_tracefork.
1942 (linux_child_insert_vfork_catchpoint): Likewise.
1943 (linux_child_set_syscall_catchpoint): Call
1944 linux_supports_tracesysgood.
1945 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1946 * nat/linux-nat.h: New file.
1947 * nat/linux-waitpid.c: New file.
1948 * nat/linux-waitpid.h: New file.
1949
9f948660
SDJ
19502013-08-22 Samuel Bronson <naesten@gmail.com>
1951
1952 ARM Linux support for `catch syscall'.
1953 * syscalls/arm-linux.py: New file.
1954 * syscalls/arm-linux.xml: Likewise.
1955 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1956 (arm_linux_init_abi): Register the new function and syscall xml file.
1957 * data-directory/Makefile.in: Install the new syscall xml file.
1958 * NEWS: Brag about this.
1959
6be7b56e
PA
19602013-08-22 Pedro Alves <palves@redhat.com>
1961
1962 PR gdb/15871
1963 * corefile.c (target_xfer_memory_error): New function.
1964 (memory_error): Defer EIO to target_memory_error.
1965 (read_memory): Use target_xfer_partial, and handle finer-grained
1966 target xfer errors.
1967 * target.c (target_xfer_error_to_string): New function.
1968 (memory_xfer_partial_1): If memory is known to be
1969 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1970 (target_xfer_partial): Make extern.
1971 * target.h (enum target_xfer_error): New enum.
1972 (target_xfer_error_to_string): Declare function.
1973 (target_xfer_partial): Declare function.
1974 (struct target_ops) <xfer_partial>: Adjust describing comment.
1975
bcbec14e
AM
19762013-08-22 Alan Modra <amodra@gmail.com>
1977
1978 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1979 * configure.tgt: Likewise as targets.
1980
fc474241
DE
19812013-08-20 Doug Evans <dje@google.com>
1982
1983 * buildsym.c (subfile_stack): Move here from buildsym.h.
1984 (pending_macros): Ditto.
1985 (get_macro_table): New function.
1986 (buildsym_init): Initialize subfile_stack.
1987 * coffread.c (type_vector,type_vector_length): Moved here from
1988 buildsym.h.
1989 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1990 (coff_symtab_read): Use it.
1991 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1992 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1993 with call to get_macro_table.
1994 * stabsread.c (type_vector,type_vector_length): Moved here from
1995 buildsym.h.
1996 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1997 * buildsym.h (get_macro_table): Declare.
1998
bec71544
TT
19992013-08-20 Tom Tromey <tromey@redhat.com>
2000
2001 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2002 Update.
2003 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2004
0002ad5f
DE
20052013-08-20 Doug Evans <dje@google.com>
2006
2007 * blockframe.c: Remove #include "psymtab.h".
2008 * cp-support.c: Ditto.
2009 * source.c: Ditto.
2010 * stack.c: Ditto.
2011
df302446
TT
20122013-08-20 Tom Tromey <tromey@redhat.com>
2013
2014 PR python/15816:
2015 * exceptions.h (return_mask): Now an enum.
2016 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2017 enum constants.
2018
df6d5441
TT
20192013-08-20 Tom Tromey <tromey@redhat.com>
2020
2021 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2022 get_objfile_arch.
2023 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2024 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2025 * jit.c (jit_object_close_impl): Update.
2026 * jv-lang.c (get_dynamics_objfile): Update.
2027 * linespec.c (add_minsym): Use get_dynamics_objfile.
2028 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2029 (allocate_objfile): Don't initialize 'gdbarch' field.
2030 (get_objfile_arch): Update.
2031 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2032 moved from...
2033 (struct objfile) <gdbarch>: ... here. Remove.
2034 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2035 get_objfile_arch.
2036 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2037
f5aee5ee
AM
20382013-08-20 Alan Modra <amodra@gmail.com>
2039
2040 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2041 for IBM long double nan and inf.
2042 (floatformat_is_negative, floatformat_classify,
2043 floatformat_mantissa): Similarly.
2044 (floatformat_ieee_single, floatformat_ieee_double,
2045 floatformat_ieee_quad, floatformat_arm_ext,
2046 floatformat_ia64_spill): Delete unused vars.
2047 (_initialize_doublest): Delete unused function.
2048 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2049 little-endian variants of floatformat_ibm_long_double.
2050
33b60d58 20512013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2052
33b60d58
LM
2053 * Makefile.in (SFILES): Remove common/target-common.c and
2054 add target/waitstatus.c.
2055 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2056 target/resume.h, target/wait.h and target/waitstatus.h.
2057 (COMMON_OBS): Remove target-common.o and add
2058 waitstatus.o.
2059 (target-common.o): Remove.
2060 (waitstatus.o): New target object file.
2061 * common/target-common.c: Move contents to
2062 target/waitstatus.c and remove.
2063 * common/target-common.h: Move contents to other files and
2064 remove.
2065 (enum resume_kind: Move to target/resume.h.
2066 (TARGET_WNOHANG): Move to target/wait.h.
2067 (enum target_waitkind): Move to target/waitstatus.h.
2068 (struct target_waitstatus): Likewise.
2069 * target.h: Do not include target-common.h and
2070 include target/resume.h, target/wait.h and
2071 target/waitstatus.h.
2072 * target/resume.h: New file.
2073 * target/wait.h: New file.
2074 * target/waitstatus.h: New file.
2075 * target/waitstatus.c: New file.
2076
12696c10
PA
20772013-08-19 Pedro Alves <palves@redhat.com>
2078
2079 * linux-nat.c (linux_test_for_tracefork)
2080 (linux_test_for_tracesysgood, linux_child_follow_fork)
2081 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2082 (linux_nat_wait_1): Extend comment.
2083 (linux_async_pipe): Add comment.
2084
ba89f962
KB
20852013-08-15 Kevin Buettner <kevinb@redhat.com>
2086
2087 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2088 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2089 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2090 Update to account for fact that PC is now a pseudo-register.
2091 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2092 cases for RL78_PC_REGNUM.
2093
35ab155d
MB
20942013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2095
2096 PR cli/15841
2097 * top.c (quit_force): Skip writing history file
2098 if input is not from terminal.
2099
0d031856
TT
21002013-08-14 Tom Tromey <tromey@redhat.com>
2101
2102 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2103 resultthreadlist>: New fields.
2104 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2105 (remote_get_threadlist, remote_threadlist_iterator): Use
2106 new fields. Remove static variables.
2107
ee154bee
TT
21082013-08-14 Tom Tromey <tromey@redhat.com>
2109
2110 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2111 remote_watch_data_address>: New fields.
2112 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2113 (process_stop_reply, remote_wait_as)
2114 (remote_check_watch_resources, remote_stopped_data_address): Update.
2115
88b496c3
TT
21162013-08-14 Tom Tromey <tromey@redhat.com>
2117
2118 * remote.c (struct remote_state) <async_client_callback,
2119 async_client_context>: New fields.
2120 (async_client_callback, async_client_context): Remove.
2121 (remote_async_serial_handler, remote_async): Update.
2122
2f65bcb7
TT
21232013-08-14 Tom Tromey <tromey@redhat.com>
2124
2125 * remote.c (sizeof_pkt): Remove.
2126 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2127
b80fafe3
TT
21282013-08-14 Tom Tromey <tromey@redhat.com>
2129
2130 * remote.c (struct remote_state) <use_threadinfo_query,
2131 use_threadextra_query>: New fields.
2132 (remote_threads_info, remote_threads_extra_info)
2133 (remote_open_1): Update.
2134
8e88304f
TT
21352013-08-14 Tom Tromey <tromey@redhat.com>
2136
2137 * remote.c (struct remote_state) <finished_object,
2138 finished_annex, finished_offset>: New fields.
2139 (remote_read_qxfer): Use remote_state fields; remove static
2140 variables.
2141
280ceea3
TT
21422013-08-14 Tom Tromey <tromey@redhat.com>
2143
2144 * remote.c (struct remote_state) <last_sent_step>:
2145 New field.
2146 (last_sent_step): Remove.
2147 (remote_resume, remote_wait_as): Update.
2148
b73be471
TT
21492013-08-14 Tom Tromey <tromey@redhat.com>
2150
2151 * remote.c (struct remote_state) <last_sent_signal>:
2152 New field.
2153 (last_sent_signal): Remove.
2154 (new_remote_state, remote_resume, remote_wait_as): Update.
2155
5e4a05c4
TT
21562013-08-14 Tom Tromey <tromey@redhat.com>
2157
2158 * remote.c (struct remote_state) <last_program_signals_packet>:
2159 New field.
2160 (last_program_signals_packet): Remove.
2161 (remote_program_signals, remote_open_1): Update.
2162
747dc59d
TT
21632013-08-14 Tom Tromey <tromey@redhat.com>
2164
2165 * remote.c (struct remote_state) <last_pass_packet>:
2166 New field.
2167 (last_pass_packet): Remove.
2168 (remote_pass_signals, remote_open_1): Update.
2169
262e1174
TT
21702013-08-14 Tom Tromey <tromey@redhat.com>
2171
2172 * remote.c (struct remote_state) <remote_traceframe_number>:
2173 New field.
2174 (remote_traceframe_number): Remove.
2175 (new_remote_state, remote_open_1, set_remote_traceframe)
2176 (remote_trace_find): Update.
2177
47f8a51d
TT
21782013-08-14 Tom Tromey <tromey@redhat.com>
2179
2180 * remote.c (struct remote_state) <general_thread, continue_thread>:
2181 New fields.
2182 (general_thread, continue_thread): Remove.
2183 (record_currthread, set_thread, set_general_process)
2184 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2185 (extended_remote_mourn_1): Update.
2186
5d93a237
TT
21872013-08-14 Tom Tromey <tromey@redhat.com>
2188
2189 * remote.c (struct remote_state) <remote_desc>: New field.
2190 (remote_desc): Remove.
2191 (remote_threads_info, remote_threads_extra_info, remote_close)
2192 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2193 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2194 (remote_hostio_send_command, remote_file_put, remote_file_get)
2195 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2196 (remote_async, remote_new_objfile, set_range_stepping): Update.
2197
cf792862
TT
21982013-08-14 Tom Tromey <tromey@redhat.com>
2199
2200 * remote.c (remote_state): Now a pointer.
2201 (get_remote_state_raw): Update.
2202 (new_remote_state): New function.
2203 (_initialize_remote): Use new_remote_state.
2204
dc473cfb
TT
22052013-08-14 Tom Tromey <tromey@redhat.com>
2206
2207 * remote.c (remote_protocol_features): Now const.
2208
85ec6ce7
TT
22092013-08-14 Tom Tromey <tromey@redhat.com>
2210
2211 * remote.c (crc32_table, crc32): Remove.
2212 (remote_verify_memory): Use xcrc32.
2213
73033f12
SDJ
22142013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2215
2216 * value.h (create_internalvar_type_lazy): Adjust prototype
2217 declaration.
2218
5c30d39a
AB
22192013-08-13 Andrew Burgess <aburgess@broadcom.com>
2220
2221 * common/format.c (parse_format_string): Don't allow '#' flag for
2222 pointer arguments in format string.
2223
1a66331e
PM
22242013-08-13 Pierre Muller <muller@sourceware.org>
2225
fde605f3 2226 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2227 if rl_get_screen_size did not return useful values.
2228
b4013987
AA
22292013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2230
2231 PR breakpoints/15117
2232 * linespec.c (linespec_parse_basic): Check for convenience
2233 variable or history value while parsing.
2234
959b6a66
SDJ
22352013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2236
2237 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2238 AVR.
2239 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2240 different signals between the generic Linux kernel implementation
2241 and AVR's.
2242 (avr_linux_gdb_signal_from_target): Delete.
2243 (avr_linux_gdb_signal_to_target): Delete.
2244 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2245
24a55014
DE
22462013-08-09 Doug Evans <dje@google.com>
2247
2248 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2249 entries.
2250
eb14d406
SDJ
22512013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2252
2253 * linux-tdep.c: Define enum with generic signal numbers.
2254 (linux_gdb_signal_from_target): New function.
2255 (linux_gdb_signal_to_target): Likewise.
2256 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2257 methods to the functions above.
2258 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2259 (linux_gdb_signal_to_target): Likewise.
2260 * alpha-linux-tdep.c: Define new enum with signals different
2261 from generic Linux kernel.
2262 (alpha_linux_gdb_signal_from_target): New function.
2263 (alpha_linux_gdb_signal_to_target): Likewise.
2264 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2265 with the functions mentioned above.
2266 * avr-tdep.c: Define enum with differences between Linux kernel
2267 and AVR signals.
2268 (avr_linux_gdb_signal_from_target): New function.
2269 (avr_linux_gdb_signal_to_target): Likewise.
2270 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2271 the functions mentioned above.
2272 * sparc-linux-tdep.c: Define enum with differences between SPARC
2273 and generic Linux kernel signal numbers.
2274 (sparc32_linux_gdb_signal_from_target): New function.
2275 (sparc32_linux_gdb_signal_to_target): Likewise.
2276 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2277 to the functions defined above.
2278 * xtensa-linux-tdep.c: Define enum with differences between
2279 Xtensa and Linux kernel generic signals.
2280 (xtensa_linux_gdb_signal_from_target): New function.
2281 (xtensa_linux_gdb_signal_to_target): Likewise.
2282 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2283 to the functions defined above.
2284 * mips-linux-tdep.c: Define enum with differences between
2285 signals in MIPS and Linux kernel generic ones.
2286 (mips_gdb_signal_to_target): New function.
2287 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2288 only different signals from the Linux kernel generic.
2289 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2290 the functions defined above.
2291 * mips-linux-tdep.h (enum mips_signals): Remove.
2292
156d08c8
PA
22932013-08-09 Pedro Alves <palves@redhat.com>
2294
2295 * avr-tdep.c (XMALLOC): Delete macro.
2296 * cli/cli-dump.c (XMALLOC): Delete macro.
2297
db229724
PA
22982013-08-09 Pedro Alves <palves@redhat.com>
2299
2300 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2301 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2302 (fopen_with_cleanup, add_dump_command): Make static.
2303 * cli/cli-dump.h: Delete file.
2304 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2305 cli/cli-dump.h.
2306
3f12a589
PA
23072013-08-09 Pedro Alves <palves@redhat.com>
2308
2309 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2310 error message.
2311
c718be47
PA
23122013-08-09 Pedro Alves <palves@redhat.com>
2313
156d08c8 2314 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2315 error message.
2316
1e351ed1
PA
23172013-08-09 Pedro Alves <palves@redhat.com>
2318
2319 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2320 (gcore_command): Use tilde_expand here, and when showing the
2321 filename to the user, show the expanded version.
2322
1ed8d800
YQ
23232013-08-09 Yao Qi <yao@codesourcery.com>
2324
2325 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2326 'entryval' is set.
2327
47ecca85
PA
23282013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2329
2330 * gcore.c (create_gcore_bfd): Use tilde_expand.
2331
82a0a75f
YQ
23322013-08-08 Yao Qi <yao@codesourcery.com>
2333
2334 * frame.h (read_frame_local): Declare.
2335 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2336 read_frame_local.
2337 * stack.c (read_frame_local): New.
2338
5c4aa40b
YQ
23392013-08-08 Yao Qi <yao@codesourcery.com>
2340
2341 * mi/mi-cmd-stack.c: Update comments to function
2342 list_args_or_locals.
2343
b93601f3
TT
23442013-08-07 Tom Tromey <tromey@redhat.com>
2345
2346 PR symtab/15028:
2347 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2348 (process_psymtab_comp_unit_reader): Use it.
2349 (process_psymtab_comp_unit): Update. Add "pretend_language"
2350 argument.
2351 (dwarf2_build_psymtabs_hard): Update.
2352 (scan_partial_symbols): Pass CU's language to
2353 process_psymtab_comp_unit.
2354
fa760f46
TT
23552013-08-07 Tom Tromey <tromey@redhat.com>
2356
2357 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2358 (dwarf2_gdb_index_functions): Update.
2359 * psymtab.c (find_symbol_file_from_partial): Remove.
2360 (psym_functions): Update.
2361 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2362 Remove.
2363
bf6d8a91
TT
23642013-08-07 Tom Tromey <tromey@redhat.com>
2365
2366 * symfile.c (set_initial_language): Look up "main" symbol
2367 and use its language.
2368 * symtab.c (find_main_filename): Remove.
2369 * symtab.h (find_main_filename): Remove.
2370
f9125b6c
TT
23712013-08-07 Tom Tromey <tromey@redhat.com>
2372
2373 * dwarf2read.c (recursively_compute_inclusions): Add
2374 "immediate_parent" argument. Set symtab's "user" field
2375 if not set.
2376 (compute_symtab_includes): Update.
2377
fdbb204b
TT
23782013-08-07 Tom Tromey <tromey@redhat.com>
2379
2380 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2381 when adding label symbols.
2382
49de1690
UW
23832013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2384 Ulrich Weigand <uweigand@de.ibm.com>
2385
2386 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2387 * configure.host (powerpc64-*-aix*): Likewise.
2388
b08ee99f
UW
23892013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2390 Ulrich Weigand <uweigand@de.ibm.com>
2391
2392 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2393 is defined.
2394 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2395 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2396 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2397 * configure.ac: Check for ptrace64.
2398 * configure, config.in: Regenerate.
2399
fecf803e
UW
24002013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2401 Ulrich Weigand <uweigand@de.ibm.com>
2402
2403 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2404 Call ptrace64 instead of ptrace if defined.
2405 Add macro addr_ptr to take care of ptrace address argument.
2406 (pdc_read_regs): Likewise.
2407 (pdc_write_regs): Likewise.
2408 (aix_thread_resume): Likewise.
2409 (fetch_regs_kernel_thread): Likewise.
2410 (store_regs_kernel_thread): Likewise.
2411
3bb5e4a8
AB
24122013-08-07 Anton Blanchard <anton@samba.org>
2413
2414 * MAINTAINERS: Add myself to Write After Approval.
2415
12070676
TT
24162013-08-05 Tom Tromey <tromey@redhat.com>
2417
2418 * aix-thread.c (_initialize_aix_thread): Use
2419 complete_target_initialization.
2420 * bsd-uthread.c (_initialize_bsd_uthread): Use
2421 complete_target_initialization.
2422 * dec-thread.c (_initialize_dec_thread): Use
2423 complete_target_initialization.
2424 * ravenscar-thread.c (_initialize_ravenscar): Use
2425 complete_target_initialization.
2426 * sol-thread.c (_initialize_sol_thread): Use
2427 complete_target_initialization.
2428 * spu-multiarch.c (_initialize_spu_multiarch): Use
2429 complete_target_initialization.
2430
7c7b6655
TT
24312013-08-05 Tom Tromey <tromey@redhat.com>
2432
2433 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2434 * ada-lang.c (ada_lookup_simple_minsym): Return
2435 bound_minimal_symbol.
2436 * ada-lang.h (ada_lookup_simple_minsym): Update.
2437 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2438 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2439 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2440 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2441 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2442 * minsyms.c (msymbol_objfile): Remove.
2443 (lookup_minimal_symbol_internal): New function, from
2444 lookup_minimal_symbol.
2445 (lookup_minimal_symbol): Rewrite using
2446 lookup_minimal_symbol_internal.
2447 (lookup_bound_minimal_symbol): New function.
2448 * minsyms.h (msymbol_objfile): Remove.
2449 (lookup_bound_minimal_symbol): Declare.
2450 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2451 * parse.c (write_exp_msymbol): Change parameter to a
2452 bound_minimal_symbol.
2453 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2454 * parser-defs.h (write_exp_msymbol): Update.
2455 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2456 * symfile.c (simple_read_overlay_table): Use
2457 lookup_bound_minimal_symbol.
2458 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2459 (search_symbols): Likewise.
2460 (print_msymbol_info): Take a bound_minimal_symbol argument.
2461 (symtab_symbol_info, rbreak_command): Update.
2462 * symtab.h (struct symbol_search) <msymbol>: Change type
2463 to bound_minimal_symbol.
2464 * valops.c (find_function_in_inferior): Use
2465 lookup_bound_minimal_symbol.
2466 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2467
934b9bac
JK
24682013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2469
2470 Code cleanup.
2471 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2472 to ...
2473 (async_cleanup_sigint_signal_handler): ... this.
2474 (initialize_sigint_signal_handler): Remove declaration.
2475 (handle_remote_sigint): Rename the declaration to ...
2476 (async_handle_remote_sigint): ... this.
2477 (handle_remote_sigint_twice): Rename the declaration to ...
2478 (async_handle_remote_sigint_twice): ... this.
2479 (async_remote_interrupt, async_remote_interrupt_twice)
2480 (remote_interrupt): Remove the declarations.
2481 (remote_interrupt_twice): Rename the declaration ...
2482 (sync_remote_interrupt_twice): ... this.
2483 (sigint_remote_twice_token): Rename the variable to ...
2484 (async_sigint_remote_twice_token): ... this.
2485 (sigint_remote_token): Rename the variable to ...
2486 (async_sigint_remote_token): ... this.
2487 (initialize_sigint_signal_handler): Rename the function to ...
2488 (async_initialize_sigint_signal_handler): ... this. Update the name
2489 inside.
2490 (handle_remote_sigint): Rename the function to ...
2491 (async_handle_remote_sigint): ... this. Update the names inside.
2492 (handle_remote_sigint_twice): Rename the function to ...
2493 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2494 (cleanup_sigint_signal_handler): Rename the function to ...
2495 (async_cleanup_sigint_signal_handler): ... this.
2496 (remote_interrupt): Rename the function to ...
2497 (sync_remote_interrupt): this. Update the names inside.
2498 (remote_interrupt_twice): Rename the function to ...
2499 (sync_remote_interrupt_twice): this. Update the names inside.
2500 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2501 (_initialize_remote): Update the names inside.
2502
3a1115a0
TT
25032013-08-02 Tom Tromey <tromey@redhat.com>
2504
2505 PR symtab/15719:
2506 * breakpoint.c (update_watchpoint, watchpoint_check)
2507 (watch_command_1): Update.
2508 * eval.c (fetch_subexp_value): Add "preserve_errors"
2509 parameter.
2510 * ppc-linux-nat.c (check_condition): Update.
2511 * value.h (fetch_subexp_value): Update.
2512
58b19776
AB
25132013-08-02 Andrew Burgess <aburgess@broadcom.com>
2514
2515 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2516 add_file_handler.
2517
ec94af83
DE
25182013-08-01 Doug Evans <dje@google.com>
2519
7ee85ab1
DE
2520 PR symtab/15691
2521 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2522 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2523 Add assert of sig_entry->dwo_unit == NULL.
2524 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2525 had already been read.
2526 (read_signatured_type): Set per_cu.tu_read.
2527
b846d303
DE
2528 PR symtab/15695
2529 * valops.c (value_struct_elt): Add missing call to check_typedef.
2530 (value_find_oload_method_list): Ditto.
2531
b52109bc
DE
2532 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2533 effectively, struct symbol_search **.
2534 (make_cleanup_free_search_symbols): Change arg to struct
2535 symbol_search **. All callers updated.
2536 (compare_search_syms): Compare symtab file name and block as well.
2537 (search_symbols_equal): New function.
2538 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2539 New args new_head, new_tail. Result is now void. Remove dups after
2540 sorting the symbols.
2541 (search_symbols): Sort all found symbols once, after all have been
2542 found, and remove duplicates. Simplify cleanup tracking of result.
2543 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2544
ec94af83
DE
2545 Further workarounds for binutils/15021.
2546 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2547 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2548 Watch for duplicate symtabs coming from type units.
2549 (compute_symtab_includes): Update call to
2550 recursively_compute_inclusions. Build vector of included symtabs
2551 instead of per_cus.
2552 * symtab.h (symtab_ptr): New typedef.
2553 (DEF_VEC_P (symtab_ptr)): New VEC type.
2554 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2555 instead.
2556
b2ae85cf
AB
25572013-08-01 Andrew Burgess <aburgess@broadcom.com>
2558
2559 * cli/cli-script.c (script_from_file): Remove use of
2560 error_pre_print.
2561 * main.c (captured_main): Remove use of error_pre_print and
2562 quit_pre_print.
2563 * utils.c (error_pre_print, quit_pre_print): Remove.
2564 * utils.h (error_pre_print, quit_pre_print): Likewise.
2565
645eab03
YQ
25662013-08-01 Yao Qi <yao@codesourcery.com>
2567
2568 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2569 with mi_getopt.
2570 (mi_cmd_stack_list_variables): Likewise.
2571
16f92dd4
AB
25722013-07-31 Andrew Burgess <aburgess@broadcom.com>
2573
2574 * exceptions.c (deprecated_throw_reason): Remove.
2575 * exceptions.h (deprecated_throw_reason): Remove.
2576
13f78033
AB
25772013-07-31 Andrew Burgess <aburgess@broadcom.com>
2578
2579 * remote-mips.c (mips_error): Replace use of
2580 deprecated_throw_reason with throw_verror. Use the error message
2581 passed to mips_error as the error message for throw_verror.
2582
039e3c22
AB
25832013-07-31 Andrew Burgess <aburgess@broadcom.com>
2584
2585 * monitor.c (monitor_interrupt_query): Replace use of
2586 deprecated_throw_reason with quit.
2587 * nto-procfs.c (interrupt_query): Likewise.
2588 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2589 * remote-mips.c (mips_kill): Likewise.
2590 * remote.c (interrupt_query): Likewise.
2591
8150913b
AB
25922013-07-31 Andrew Burgess <aburgess@broadcom.com>
2593
2594 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2595 with call to fatal.
2596
de74e63a
YQ
25972013-07-31 Pedro Alves <pedro@codesourcery.com>
2598 Yao Qi <yao@codesourcery.com>
2599
2600 * tracepoint.c (trace_dump_command): Select the current frame.
2601
247f5c4f
DE
26022013-07-30 Doug Evans <dje@google.com>
2603
2604 * dwarf2read.c (process_queue): Add type signature to debug output.
2605
11b4b7cc
AB
26062013-07-30 Andrew Burgess <aburgess@broadcom.com>
2607
2608 * value.c (value_fetch_lazy): Mark optimized out values as such
2609 rather than raising an error.
2610
b0c54aa5
AB
26112013-07-30 Andrew Burgess <aburgess@broadcom.com>
2612
2613 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2614 before checking which bits of the parent, not the child, value are
2615 valid.
2616
97c85fc6
MB
26172013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2618
2619 PR gdb/15715
2620 * top.c: Include "filenames.h".
2621 (set_history_filename): New function.
2622 (init_main): Install it as set hook of the "set history filename"
2623 command.
2624
ff39bb5e
SA
26252013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2626
2627 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2628 attribute parameter.
2629 (dwarf2_const_value_data): Constify struct attribute parameter.
2630 (dwarf2_const_value): Constify struct attribute parameter.
2631 (dwarf2_const_value_attr): Constify struct attribute parameter.
2632 (lookup_die_type): Constify struct attribute parameter.
2633 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2634 (follow_die_ref_or_sig): Constify struct attribute parameter.
2635 (follow_die_ref): Constify struct attribute parameter.
2636 (follow_die_sig): Constify struct attribute parameter.
2637 (get_DW_AT_signature_type): Constify struct attribute parameter.
2638 (get_type_unit_group): Constify struct attribute parameter.
2639 (fill_in_loclist_baton): Constify struct attribute parameter.
2640 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2641 (type_unit_group): Constify struct attribute parameter.
2642
6e5a29e1
SA
26432013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2644
2645 * dwarf2read.c (attr_form_is_block): Make argument const.
2646 (attr_form_is_section_offset): Make argument const.
2647 (attr_form_is_constant): Make argument const.
2648 (attr_form_is_ref): Make argument const.
2649
7771576e
SA
26502013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2651
2652 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2653 All uses updated.
2654 (attr_form_is_ref): Moved below attr_form_is_constant.
2655
a94e8645
DE
26562013-07-29 Doug Evans <dje@google.com>
2657
bb5291d0
DE
2658 * main.c (captured_command_loop): Tweak comment.
2659
b5419e49
DE
2660 * target.c (target_async_permitted_1): Fix comment.
2661
b2d23133
DE
2662 * symtab.c (iterate_over_some_symtabs): Add comment.
2663
a94e8645
DE
2664 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2665
7a60ad40
YQ
26662013-07-27 Yao Qi <yao@codesourcery.com>
2667
2668 * NEWS: Mention that GDBserver now supports hardware
2669 watchpoints on the MIPS GNU/Linux target.
2670
aaee2056
YQ
26712013-07-27 Yao Qi <yao@codesourcery.com>
2672
2673 * Makefile.in (HFILES_NO_SRCDIR): Add
2674 common/mips-linux-watch.h.
2675 (mips-linux-watch.o): New rule.
2676 * common/mips-linux-watch.c: New.
2677 * common/mips-linux-watch.h: New.
2678 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2679 * mips-linux-nat.c: Include mips-linux-watch.h.
2680 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2681 to common/mips-linux-watch.h.
2682 (MAX_DEBUG_REGISTER): Likewise.
2683 (enum pt_watch_style): Likewise.
2684 (struct mips32_watch_regs): Likewise.
2685 (struct mips64_watch_regs): Likewise.
2686 (struct pt_watch_regs): Likewise.
2687 (struct mips_watchpoint): Likewise.
2688 (mips_linux_watch_get_irw_mask): Move to
2689 common/mips-linux-watch.c.
2690 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2691 (mips_linux_watch_get_watchlo): Likewise.
2692 (mips_linux_watch_set_watchlo): Likewise.
2693 (mips_linux_watch_get_watchhi): Likewise.
2694 (mips_linux_watch_set_watchhi): Likewise.
2695 (mips_linux_read_watch_registers): Likewise.
2696 (mips_linux_watch_type_to_irw): Likewise.
2697 (mips_linux_stopped_data_address, fill_mask): Likewise.
2698 (mips_linux_watch_try_one_watch): Likewise.
2699 (mips_linux_watch_populate_regs): Likewise.
2700
b3436450
YQ
27012013-07-27 Yao Qi <yao@codesourcery.com>
2702
2703 * mips-linux-nat.c (get_irw_mask): Rename to ...
2704 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2705 'set' to 'n'. Update function comment. All callers changed.
2706 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2707 function comment. All callers changed.
2708 (get_num_valid): Rename to ...
2709 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2710 'set' to 'n'. Update function comment. All callers changed.
2711 (get_watchlo): Rename to ...
2712 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2713 'set' to 'n'. Update function comment. All callers changed.
2714 (set_watchlo): Rename to ...
2715 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2716 'set' to 'n'. Update function comment. All callers changed.
2717 (get_watchhi): Rename to ...
2718 (mips_linux_watch_get_watchhi): ... this. Update function
2719 comment. All callers changed.
2720 (set_watchhi): Rename to ...
2721 (mips_linux_watch_set_watchhi): ... this. Update function
2722 comment. All callers changed.
2723 (mips_linux_read_watch_registers): Update function comment.
2724 Add new parameters 'lwpid', 'watch_readback', and
2725 'watch_readback_valid'. Update.
2726 (type_to_irw): Rename to ...
2727 (mips_linux_watch_type_to_irw): ... this. Update function
2728 comment. All callers changed.
2729 (fill_mask): Update function comment.
2730 (try_one_watch): Rename to ...
2731 (mips_linux_watch_try_one_watch): ... this. Change the type
2732 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2733 (populate_regs_from_watches): Rename to ...
2734 (mips_linux_watch_populate_regs): ... this. Add parameter
2735 'current_watches'. All callers changed.
2736
9be14b81
YQ
27372013-07-27 Yao Qi <yao@codesourcery.com>
2738
2739 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2740 the code.
2741 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2742 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2743 (struct pt_watch_regs): Likewise.
2744 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2745 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2746 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2747 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2748 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2749
de6f69ad
YQ
27502013-07-27 Yao Qi <yao@codesourcery.com>
2751
2752 * breakpoint.h: Include break-common.h.
2753 (enum target_hw_bp_type): Move to ...
2754 * common/break-common.h: ... here. New.
2755
6f64ef53
PA
27562013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2757
2758 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2759 process group regardless of having tty on stdin.
2760
6107e809
DE
27612013-07-25 Doug Evans <dje@google.com>
2762
2763 * linux-fork.h (detach_fork): Delete.
2764
7fdc1521
TT
27652013-07-25 Tom Tromey <tromey@redhat.com>
2766
2767 PR remote/15256, PR remote/15266:
2768 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2769 * monitor.c (monitor_detach): Use unpush_target.
2770 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2771 * remote-mips.c (mips_detach): Use unpush_target. Don't
2772 call mips_close.
2773 * remote-sim.c (gdbsim_detach): Use unpush_target.
2774 * target.c (pop_target): Remove.
2775 (pop_all_targets_above): Don't call target_close.
2776 (target_close): Assert that the target is unpushed.
2777 * target.h (pop_target): Don't declare.
2778 * tracepoint.c (tfile_open): Use unpush_target.
2779
c22a2b88
TT
27802013-07-25 Tom Tromey <tromey@redhat.com>
2781
2782 * linux-thread-db.c (init_thread_db_ops): Call
2783 complete_target_initialization.
2784 (_initialize_thread_db): Don't call add_target.
2785 * target.c (complete_target_initialization): New function.
2786 (add_target_with_completer): Call it.
2787 * target.h (complete_target_initialization): Declare.
2788
cbb6aada
MK
27892013-07-25 Mark Kettenis <kettenis@gnu.org>
2790
2791 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2792 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2793 (HPPANBSD_SIZEOF_GREGS): New define.
2794 (hppaobsd_supply_gregset): Handle additional registers.
2795 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2796 we provide more registers now.
2797 (hppabsd_supply_gregset): Supply additional registers.
2798 (hppabsd_collect_gregset): Collect additional registers.
2799
17767988
MK
28002013-07-25 Mark Kettenis <kettenis@gnu.org>
2801
2802 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2803 (hppabsd_dwarf2_frame_init_reg): New function.
2804 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2805
fdc8aae8
AB
28062013-07-25 Andrew Burgess <aburgess@broadcom.com>
2807
2808 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2809 'z' format code. Remove error for optimized out values, standard
2810 code will handle these fine.
2811
6fbe845e
AB
28122013-07-25 Andrew Burgess <aburgess@broadcom.com>
2813
2814 * NEWS: Mention new 'z' formatter.
2815 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2816 (_initialize_printcmd): Mention 'z' formatter in help text of the
2817 'x' command.
2818
3373342d
MR
28192013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2820
2821 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2822 formatting.
2823
25f9533e
SDJ
28242013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2825
2826 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2827 interface can evaluate arguments. Fallback to the old mode if it
2828 cannot.
2829 (create_exception_master_breakpoint): Likewise.
2830 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2831 (struct sym_probe_fns elf_probe_fns): Export function above to the
2832 probe interface.
2833 * probe.c (can_evaluate_probe_arguments): New function.
2834 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2835 function pointer.
2836 (can_evaluate_probe_arguments): New function prototype.
2837 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2838 probe interface can evaluate arguments. Fallback to the old mode
2839 if it cannot.
2840 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2841 interface can evaluate arguments. Warning the user if it cannot.
2842 (stap_can_evaluate_probe_arguments): New function.
2843 (struct probe_ops stap_probe_ops): Export function above to the
2844 probe interface.
2845 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2846 New function pointer.
2847
3360c0bf
LM
28482013-07-24 Luis Machado <lgustavo@codesourcery.com>
2849
2850 * Makefile.in (SFILES): Add common/target-common.c.
2851 Add common/target-common.h to headers.
2852 (COMMON_OBS): Add target-common.o.
2853 (target-common.o): New target.
2854 * linux-nat.h (resume_kind): Move to common/target-common.h.
2855 * target.c (target_waitstatus_to_string): Move to
2856 common/target-common.c.
2857 * target.h: Include target-common.h.
2858 (target_waitkind): Move to common/target-common.h.
2859 (target_waitstatus): Likewise.
2860 (TARGET_WNOHANG): Likewise.
2861 * common/target-common.c: New file.
2862 * common/target-common.h: New file.
2863
6656a72d
DE
28642013-07-24 Doug Evans <dje@google.com>
2865
2866 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2867 a warning.
2868
6df81a63
YQ
28692013-07-23 Yao Qi <yao@codesourcery.com>
2870
2871 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2872 parameter 'gdbarch'.
2873 (i386_stack_tramp_frame_sniffer): Caller update.
2874 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2875 parameter 'gdbarch' and 'target'.
2876 (i386_linux_core_read_description): Caller update.
2877 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2878 Likewise.
2879 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2880 declaration.
2881
365156ad
TT
28822013-07-23 Tom Tromey <tromey@redhat.com>
2883
2884 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2885 2013-07-22.
2886
046ac79f
JK
28872013-07-22 Doug Evans <dje@google.com>
2888
2889 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
2890 * exec.c (exec_close): Update call to remove_target_sections.
2891 (remove_target_sections): Delete arg abfd.
046ac79f
JK
2892 * solib.c (update_solib_list): Ditto.
2893 (reload_shared_libraries_1): Ditto.
2894 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
2895 * target.h (struct target_section): Rename key to owner.
2896 All uses updated.
046ac79f 2897
29b2cc46
TT
28982013-07-22 Tom Tromey <tromey@redhat.com>
2899
2900 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2901
d1160018
TT
29022013-07-22 Tom Tromey <tromey@redhat.com>
2903
2904 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2905 Simplify cleanup handling.
2906
2f324bf6
TT
29072013-07-22 Tom Tromey <tromey@redhat.com>
2908
2909 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2910 on all return paths.
2911
e23b9d6e
UW
29122013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2913
2914 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2915 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2916 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2917
1cf55f60
PM
29182013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2919
2920 * top.c (print_gdb_version): Add help, apropos description and
2921 url to online documentation.
2922
fa876972
HZ
29232013-07-19 Hui Zhu <hui@codesourcery.com>
2924
2925 PR gdb/15692
2926 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2927
1527aea8
YQ
29282013-07-19 Yao Qi <yao@codesourcery.com>
2929
2930 * target.c (update_current_target): Change the default action
2931 of 'to_traceframe_info' from tcomplain to return_zero.
2932 * target.h (struct target_ops) <to_traceframe_info>: Add more
2933 comments.
2934 * valops.c (read_value_memory): Call
2935 traceframe_available_memory unconditionally.
2936
886f230e
YQ
29372013-07-18 Yao Qi <yao@codesourcery.com>
2938
2939 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2940 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2941 symbol without prefix. If found, set its type to
2942 'mst_solib_trampoline'.
2943
16419bae
DE
29442013-07-17 Doug Evans <dje@google.com>
2945
e7045703
DE
2946 * NEWS: Mention "set print raw frame-arguments".
2947 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2948 * stack.c (print_raw_frame_arguments): New static global.
2949 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2950 (_initialize_stack): New command "set/show print raw frame-arguments".
2951 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2952 (set_print_raw, show_print_raw): New functions.
2953 (_initialize_valprint): New prefix command "set/show print raw".
2954 * valprint.h (value_print_options): Improve comments.
2955
453e48a5
DE
2956 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2957 of all *list variables.
2958
16419bae
DE
2959 * gdbcmd.h (togglelist): Delete.
2960 * cli/cli-cmds.c (togglelist): Delete.
2961 (init_cmd_lists): Update.
2962 * cli/cli-cmds.h (togglelist): Delete.
2963
626f2d1c
TT
29642013-07-17 Tom Tromey <tromey@redhat.com>
2965
2966 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2967 dwarf2_per_objfile.
2968
57e6060e
DE
29692013-07-16 Doug Evans <dje@google.com>
2970
2971 * nto-tdep.c (nto_relocate_section_addresses): Update,
2972 target_section.bfd deleted.
2973 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2974 * s390-tdep.c (s390_load): Ditto.
2975 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2976
5ea5559b
AB
29772013-07-16 Andrew Burgess <aburgess@broadcom.com>
2978
2979 * common/format.c (parse_format_string): Add checks for NULL
2980 character before calling strchr.
2981
2b2848e2
DE
29822013-07-16 Doug Evans <dje@google.com>
2983
2c571006
DE
2984 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2985 temp_pathname argument.
2986 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2987 when opening the file fails.
2988
2b2848e2
DE
2989 * target.h (struct target_section): Delete member bfd.
2990 All users updated to use the_bfd_section->owner instead.
2991 * exec.c (add_to_section_table): Assert bfd is expected value.
2992 Remove initialization of target_section.bfd.
2993 (remove_target_sections): Update.
2994 (section_table_available_memory): Update.
2995 (section_table_xfer_memory_partial): Update.
2996 (print_section_info): Update.
2997 (exec_set_section_address): Update.
2998 * record-full.c (record_full_core_xfer_partial): Update.
2999 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3000 * solib-target.c (solib_target_relocate_section_addresses): Update.
3001 * symfile.c (build_section_addr_info_from_section_table): Update.
3002 * target.c (memory_xfer_live_readonly_partial): Update.
3003 (memory_xfer_partial_1): Update.
3004
926bf92d
UW
30052013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3006
3007 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3008 now available for embedded (BookE) and server (BookS) processors,
3009 correct mentions of 'booke' and adjust comments accordingly in order to
3010 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3011 (have_ptrace_booke_interface): Rename function and variable
3012 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3013 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3014 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3015 'hwdebug_point_cmp'. Update all uses.
3016 (booke_find_thread_points_by_tid): Rename function
3017 'booke_find_thread_points_by_tid' to
3018 'hwdebug_find_thread_points_by_tid'. Update all uses.
3019 (booke_insert_point): Rename function 'booke_insert_point' to
3020 'hwdebug_insert_point'. Update all uses.
3021 (booke_remove_point): Rename function 'booke_remove_point' to
3022 'hwdebug_remove_point'. Update all uses.
3023
d929bc19
MR
30242013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3025
3026 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3027 numbers with enum values.
3028
054e8d9e
AA
30292013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3030
3031 PR threads/13217
3032 * thread.c (thread_apply_all_command): Check for valid threads
3033 and thread count.
3034 (thread_array_cleanup): New struct.
3035 (set_thread_refcount): New function.
3036
cf006359
AB
30372013-07-11 Andrew Burgess <aburgess@broadcom.com>
3038
3039 * infcmd.c (default_print_one_register_info): Reuse function
3040 print_hex_chars.
3041
94e36acc
TT
30422013-07-10 Tom Tromey <tromey@redhat.com>
3043
3044 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3045 (ada-exp.o): New target.
3046
915dd369
SDJ
30472013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3048
3049 * mt-tdep.c (mt_registers_info): Call
3050 get_no_prettyformat_print_options instead of
3051 get_raw_print_options (regression by last patch from Doug
3052 Evans).
3053
eca07816
JB
30542013-07-09 Pedro Alves <palves@redhat.com>
3055
3056 Checked in by Joel Brobecker <brobecker@adacore.com>.
3057 * ada-lang.c (coerce_unspec_val_to_type): Use
3058 value_optimized_out_const.
3059 * value.c (value_optimized_out_const): New function.
3060 * value.h (value_optimized_out_const): New declaration.
3061
2a998fc0
DE
30622013-07-09 Doug Evans <dje@google.com>
3063
3064 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3065 Enum values rename as well. All uses updated.
3066 * valprint.h (value_print_options): Rename member pretty to
3067 pretty format. Rename member prettyprint_arrays to
3068 prettyformat_arrays. Rename member prettyprint_structs to
3069 prettyformat_structs. All uses updated.
3070 (get_no_prettyformat_print_options): Renamed from
3071 get_raw_print_options.
3072 * valprint.c (get_no_prettyformat_print_options): Renamed from
3073 get_raw_print_options. All callers updated.
3074 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3075 All callers updated.
3076 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3077 All callers updated.
3078 (_initialize_valprint): Improve help text for "set print pretty" and
3079 "set print arrays".
3080
466c1fca
AB
30812013-07-09 Andrew Burgess <aburgess@broadcom.com>
3082
3083 * value.c (value_bits_valid): Revert previous change, and change
3084 by Pedro on 2013-07-04, due to regressions in
3085 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3086
ad0f0303
AB
30872013-07-08 Andrew Burgess <aburgess@broadcom.com>
3088 Pedro Alves <palves@redhat.com>
3089
3090 * value.c (value_bits_valid): If the value is not lval_computed
3091 or has no check validity handler then the answer is the
3092 optimized_out flag, otherwise defer to the handler.
3093
b187bec1
EZ
30942013-07-06 Eli Zaretskii <eliz@gnu.org>
3095
48d1d6f5
EZ
3096 * top.c (print_gdb_configuration): Explain in output of
3097 --configuration what does "relocatable" mean.
3098
b187bec1
EZ
3099 * main.c (print_gdb_help): Regroup options in the --help text.
3100 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3101 the relevant discussions.
3102
52d361e1
YQ
31032013-07-06 Yao Qi <yao@codesourcery.com>
3104
3105 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3106 Remove parameter 'lsal'.
3107 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3108 to inner block. Caller update.
3109 (base_breakpoint_create_breakpoints_sal): Update.
3110 (bkpt_create_breakpoints_sal): Likewise.
3111 (tracepoint_create_breakpoints_sal): Likewise.
3112 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3113 element 0 of vector 'canonical->sals'.
3114
e1ec1b42
LM
31152013-07-05 Luis Machado <lgustavo@codesourcery.com>
3116
3117 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3118 register number instead of the pseudo register one.
3119 (rs6000_dwarf2_reg_to_regnum): Likewise.
3120
7195e6f0
PA
31212013-07-04 Pedro Alves <palves@redhat.com>
3122
3123 * findvar.c (value_of_register): Use allocate_optimized_out_value
3124 if the register has been optimized out, instead of
3125 set_value_optimized_out.
3126 * frame-unwind.c (frame_unwind_got_optimized): Use
3127 allocate_optimized_out_value.
3128
58722cac
PA
31292013-07-04 Pedro Alves <palves@redhat.com>
3130
3131 * value.c (value_bits_valid): If the value is not lval_computed,
3132 or doesn't have a check_validity hook, assume the value is entirely
3133 valid.
3134
691a26f5
AB
31352013-07-04 Andrew Burgess <aburgess@broadcom.com>
3136
3137 * stack.c (read_frame_arg): No longer fetch lazy values.
3138 * value.c (value_optimized_out): If the value is not already
3139 marked optimized out, and is lazy then fetch it.
3140 (value_primitive_field): Move optimized out check to later in the
3141 function, after we have loaded any lazy values.
3142 (value_fetch_lazy): Use optimized out flag directly rather than
3143 calling optimized_out method.
3144
a58e2656
AB
31452013-07-04 Andrew Burgess <aburgess@broadcom.com>
3146
3147 * valops.c: Don't include "user-regs.h".
3148 (value_fetch_lazy): Moved to value.c.
3149 * value.c: Include "user-regs.h".
3150 (value_fetch_lazy): Moved from valops.c.
3151
bd885420
YQ
31522013-07-04 Yao Qi <yao@codesourcery.com>
3153
3154 Revert:
3155 2013-06-27 Yao Qi <yao@codesourcery.com>
3156
3157 * common/create-version.sh: Update comments. Handle the case
3158 that TARGET_ALIAS is empty.
3159
17ef446e
PA
31602013-07-03 Pedro Alves <palves@redhat.com>
3161
3162 * Makefile.in (config.status): Depend on development.sh.
3163 (aclocal_m4_deps): Add libmcheck.m4.
3164 * acinclude.m4: Include libmcheck.m4.
3165 * configure.ac: Source development.sh instead of setting
3166 'development' here. --enable-libmcheck/--disable-libmcheck code
3167 factored out to GDB_AC_LIBMCHECK. Run it.
3168 * development.sh: New file.
3169 * libmcheck.m4: New file.
3170 * configure: Regenerate.
3171
ac6dd50f
TT
31722013-07-02 Tom Tromey <tromey@redhat.com>
3173
3174 * contrib/ari/update-web-ari.sh: Update for version.in change.
3175
bd1df410
TT
31762013-07-02 Tom Tromey <tromey@redhat.com>
3177
3178 * common/ptid.h: Comment fixes.
3179
4db1a1dc
TT
31802013-07-01 Tom Tromey <tromey@redhat.com>
3181
3182 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3183 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3184 (dwarf2_read_index, create_all_comp_units): Update.
3185
dd9aa048
TT
31862013-07-01 Tom Tromey <tromey@redhat.com>
3187
3188 * configure.ac (build_warnings): Add -Wold-style-definition.
3189 * configure: Rebuild.
3190 * machoread.c (_initialize_machoread): Use "(void)".
3191 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3192 use "(void)".
3193
44d100c3
TT
31942013-07-01 Tom Tromey <tromey@redhat.com>
3195
3196 * configure.ac (build_warnings): Add -Wold-style-declaration.
3197 * configure: Rebuild.
3198 * dsrec.c (make_srec): Use "static const", not "const static".
3199 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3200 not "const static".
3201 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3202 Use "static const", not "const static".
3203 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3204 not "const static".
3205 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3206 not "const static".
3207 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3208 not "const static".
3209 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3210 not "const static".
3211 (v850_dbtrap_breakpoint_from_pc): Likewise.
3212 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3213 not "const static".
3214
2945b807
TT
32152013-07-01 Tom Tromey <tromey@redhat.com>
3216
3217 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3218 * configure: Rebuild.
3219
d8d2a3ee
PA
32202013-07-01 Pedro Alves <palves@redhat.com>
3221
3222 * defs.h: Include "pathmax.h".
3223 * utils.c: Don't include sys/param.h.
3224 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3225 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3226 instead of MAXPATHLEN.
3227 * solib-sunos.c: Don't include sys/param.h.
3228 * xcoffread.c: Don't include sys/param.h.
3229 * bsd-kvm.c: Don't include sys/param.h.
3230 * darwin-nat.c: Don't include sys/param.h.
3231 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3232 * darwin-nat-info.c: Don't include sys/param.h.
3233 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3234 MAXPATHLEN.
3235 * i386obsd-nat.c: Don't include sys/param.h.
3236 * inf-child.c: Don't include sys/param.h.
3237 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3238 * linux-fork.c: Don't include sys/param.h.
3239 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3240 * linux-nat.c: Don't include sys/param.h.
3241 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3242 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3243 * m68klinux-nat.c: Don't include sys/param.h.
3244 * nbsd-nat.c: Don't include sys/param.h.
3245 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3246 * ppc-linux-nat.c: Don't include sys/param.h.
3247 * rs6000-nat.c: Don't include sys/param.h.
3248 * spu-linux-nat.c. Don't include sys/param.h.
3249 * windows-nat.c: Don't include sys/param.h.
3250 * xtensa-linux-nat.c: Don't include sys/param.h.
3251 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3252
38ec2207
PA
32532013-07-01 Pedro Alves <palves@redhat.com>
3254
3255 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3256 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3257 * gnulib/aclocal.m4: Regenerate.
3258 * gnulib/config.in: Regenerate.
3259 * gnulib/configure: Regenerate.
3260 * gnulib/import/pathmax.h: New file.
3261 * gnulib/import/Makefile.am: Regenerate.
3262 * gnulib/import/Makefile.in: Regenerate.
3263 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3264 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3265 * gnulib/import/m4/pathmax.m4: New file.
3266
e655c1a2
PA
32672013-07-01 Pedro Alves <palves@redhat.com>
3268
3269 * configure.ac (GDBINIT): Define, depending on host.
3270 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3271 * top.c (PATH_MAX): Delete fallback definition.
3272 (GDBINIT_FILENAME): Delete.
3273 (gdbinit): Reimplement as const char array set to the GDBINIT
3274 string constant.
3275 * top.h (gdbinit): Make const.
3276 * configure, config.in: Regenerate.
3277
50dd9793
PA
32782013-07-01 Pedro Alves <palves@redhat.com>
3279
3280 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3281 * cli/cli-cmds.h (source_script): Likewise.
3282 * exceptions.c (catch_command_errors_const): New function.
3283 * exceptions.h (catch_command_errors_const): Declare.
3284 * main.c (get_init_files): Make parameters const, and adjust.
3285 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3286 'local_gdbinit' locals const. Adjust to use
3287 catch_command_errors_const.
3288 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3289 'local_gdbinit' locals const.
3290
bc7dea8d
PA
32912013-07-01 Pedro Alves <palves@redhat.com>
3292
3293 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3294 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3295 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3296 <unistd.h>.
3297
8839a007
PA
32982013-07-01 Pedro Alves <palves@redhat.com>
3299
3300 Import the "unistd" gnulib module.
3301 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3302 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3303 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3304 import/m4/unistd_h.m4.
3305 * gnulib/aclocal.m4: Renenerate.
3306 * gnulib/config.in: Renenerate.
3307 * gnulib/configure: Renenerate.
3308 * gnulib/import/Makefile.am: Renenerate.
3309 * gnulib/import/Makefile.in: Renenerate.
3310 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3311 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3312 * gnulib/import/m4/off_t.m4: New file.
3313 * gnulib/import/m4/ssize_t.m4: New file.
3314 * gnulib/import/m4/sys_types_h.m4: New file.
3315 * gnulib/import/m4/unistd_h.m4: New file.
3316 * gnulib/import/sys_types.in.h: New file.
3317 * gnulib/import/unistd.c: New file.
3318 * gnulib/import/unistd.in.h: New file.
3319
8c0da261
PA
33202013-07-01 Pedro Alves <palves@redhat.com>
3321
3322 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3323 defined instead of checking HAVE_UNISTD_H.
3324
3574124b
PA
33252013-07-01 Pedro Alves <palves@redhat.com>
3326
3327 Reimport gnulib from scratch.
3328 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3329 import/m4/onceonly.m4.
3330 * gnulib/aclocal.m4: Renegerate.
3331 * gnulib/config.in: Renegerate.
3332 * gnulib/configure: Renegerate.
3333 * gnulib/import/Makefile.in: Renegerate.
3334 * gnulib/import/extra/update-copyright: Renegerate.
3335 * gnulib/import/m4/onceonly.m4: Delete.
3336
702dc4fd
PA
33372013-07-01 Pedro Alves <palves@redhat.com>
3338
3339 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3340
47e1ce27
JK
33412013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3342
3343 Code cleanup.
3344 * remote.c (async_remote_interrupt_twice): Make it static.
3345 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3346
e82839d4
SDJ
33472013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3348
3349 * ia64-linux-tdep.c: Include <ctype.h>.
3350 (ia64_linux_stap_is_single_operand): New function.
3351 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3352
d6c2da54
TT
33532013-06-28 Tom Tromey <tromey@redhat.com>
3354
3355 * Makefile.in (version.c): Use version.in, not
3356 common/version.in.
3357 * common/create-version.sh: Likewise.
3358 * common/version.in: Move...
3359 * version.in: ...here.
3360
74da6f00
PA
33612013-06-28 Pedro Alves <palves@redhat.com>
3362
3363 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3364 here.
3365 * utils.h (pagination_enabled): Declare.
3366
d32dc48e
PA
33672013-06-28 Pedro Alves <palves@redhat.com>
3368
3369 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3370 Move higher up in file.
3371
0edd9e3b
TT
33722013-06-28 Tom Tromey <tromey@redhat.com>
3373
3374 * tracepoint.c (deprecated_readline_begin_hook)
3375 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3376 declare.
3377
4eb59108
PA
33782013-06-28 Pedro Alves <palves@redhat.com>
3379
3380 PR tui/14880
3381 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3382 checking if they're available.
3383 * value.c (value_available_contents_eq): Change comment.
3384 * value.h (value_available_contents_eq): Expand comment.
3385
97b17156
TT
33862013-06-27 Tom Tromey <tromey@redhat.com>
3387
3388 * target.c (find_run_target): Remove.
3389 * target.h (find_run_target): Remove.
3390
6a3bfc5c
TT
33912013-06-27 Tom Tromey <tromey@redhat.com>
3392
3393 * corelow.c (core_gdbarch): Now static.
3394
c9ef825d
TT
33952013-06-27 Tom Tromey <tromey@redhat.com>
3396
3397 * target.c (target_struct_index): Remove.
3398
e5823f1c
PA
33992013-06-27 Pedro Alves <palves@redhat.com>
3400
3401 * infrun.c: Remove comment describing the 'stepping over runtime
3402 loader dynamic symbol resolution code' mechanism; moved to
3403 gdbint.texinfo.
3404
97f8dd09
PA
34052013-06-27 Pedro Alves <palves@redhat.com>
3406
3407 * exceptions.c (catch_command_errors): Remove spurious space.
3408 * exceptions.h (catch_command_errors): Second parameter is "arg",
3409 not "command".
3410
02b1871e
YQ
34112013-06-27 Yao Qi <yao@codesourcery.com>
3412
3413 * common/create-version.sh: Update comments. Handle the case
3414 that TARGET_ALIAS is empty.
3415
bb1b1cf1
PA
34162013-06-26 Pedro Alves <palves@redhat.com>
3417
3418 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3419 comment.
3420
7b624e71
PA
34212013-06-26 Pedro Alves <palves@redhat.com>
3422
3423 * infrun.c: Update comments on stepping over runtime loader
3424 dynamic symbol resolution code.
3425
74e5a346
SDJ
34262013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3427
3428 * ax-gdb.h (union exp_element): Forward declare.
3429 * parser-defs.h: Include expression.h.
3430
a2fb2cee
MR
34312013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3432
3433 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3434
cdba14e0
DK
34352013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3436
3437 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3438
f30aa5af
DK
34392013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3440
3441 Fix trace-status to output proper start-time and stop-time.
3442 * tracepoint.c (trace_status_command): Fix type of printf arg to
3443 prevent improper type conversion.
3444 (trace_status_mi): Likewise.
3445
1aee363c
MR
34462013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3447
3448 * mips-tdep.c (mips_next_pc): Fix a typo.
3449
3356937a
MR
34502013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3451
3452 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3453
dc673c81
YQ
34542013-06-26 Pedro Alves <pedro@codesourcery.com>
3455 Yao Qi <yao@codesourcery.com>
3456
3457 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3458 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3459 * mi/mi-main.c (print_variable_or_computed): New function.
3460 (mi_cmd_trace_frame_collected): New function.
3461 * tracepoint.c (find_trace_state_variable_by_number): New.
3462 (struct traceframe_info): Move to tracepoint.h
3463 (struct collection_list): Likewise.
3464 (do_collect_symbol): Include locals and arguments in the
3465 collected variables list.
3466 (clear_collection_list): Clear wholly collected variables list
3467 and computed variables list.
3468 (append_exp): New function.
3469 (encode_actions_1): Include variables in the wholly
3470 collected variables list. Include memory ranges and
3471 full-fledged expressions in the computed expressions list.
3472 (encode_actions): Move some code to ...
3473 Return the cleanup chain.
3474 (encode_actions_rsp): ... here. New function.
3475 (get_traceframe_location, get_traceframe_info): Remove static.
3476 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3477 (struct collection_list): Moved from tracepoint.c. Add two
3478 new fields 'wholly_collected' and 'computed'.
3479 (find_trace_state_variable_by_number): Declare.
3480 (encode_actions): Adjust declaration.
3481 (encode_actions_rsp): Declare.
3482 (get_traceframe_info, get_traceframe_location): Declare.
3483
3484 * NEWS: Mention new MI command -trace-frame-collected.
3485
28a93511
YQ
34862013-06-26 Pedro Alves <pedro@codesourcery.com>
3487 Yao Qi <yao@codesourcery.com>
3488
3489 * ctf.c (ctf_traceframe_info): Push trace state variables
3490 present in the trace data into the traceframe info object.
3491 * breakpoint.c (DEF_VEC_I): Remove.
3492 * common/filestuff.c (DEF_VEC_I): Likewise.
3493 * dwarf2loc.c (DEF_VEC_I): Likewise.
3494 * mi/mi-main.c (DEF_VEC_I): Likewise.
3495 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3496 * features/traceframe-info.dtd: Add tvar element and its
3497 attributes.
3498 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3499 (build_traceframe_info): Push trace state variables present in
3500 the trace data into the traceframe info object.
3501 (traceframe_info_start_tvar): New function.
3502 (tvar_attributes): New.
3503 (traceframe_info_children): Add "tvar" element.
3504 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3505
3506 * NEWS: Mention the change in GDB and GDBserver.
3507
ddacd3c8
YQ
35082013-06-26 Pedro Alves <pedro@codesourcery.com>
3509 Yao Qi <yao@codesourcery.com>
3510
3511 * tracepoint.c (trace_dump_command): Move code to ...
3512 (get_traceframe_location): ... here. New.
3513
05796b35
YQ
35142013-06-26 Pedro Alves <pedro@codesourcery.com>
3515 Yao Qi <yao@codesourcery.com>
3516
3517 * tracepoint.c (trace_dump_command): GDB emits an error
3518 instead of a warning when a traceframe is not selected.
3519
cbfa3b61
YQ
35202013-06-26 Pedro Alves <pedro@codesourcery.com>
3521 Yao Qi <yao@codesourcery.com>
3522
3523 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3524 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3525 in collection_list.
3526 (do_clear_collection_list, init_collection_list): New.
3527 (encode_actions): Add local variables 'tracepoint_list' and
3528 'stepping_list'. Call init_collection_list and make cleanup
3529 which calls do_clear_collection_list. Don't call
3530 clear_collection_list.
3531 (_initialize_tracepoint): Delete references to
3532 'tracepoint_list' and 'stepping_list'.
3533
6e2048d3
TT
35342013-06-25 Tom Tromey <tromey@redhat.com>
3535
3536 * common/create-version.sh (date): Use "$", not "$$" in sed
3537 expression.
3538
42059f0e
KB
35392013-06-25 Kevin Buettner <kevinb@redhat.com>
3540
3541 * NEWS (New targets): Add entry for TI MSP430.
3542
a0743c90
YQ
35432013-06-25 Yao Qi <yao@codesourcery.com>
3544
3545 * remote.c (remote_start_remote): Move code to upload tsv
3546 earlier.
3547
9d6e6e84
HZ
35482013-06-25 Yao Qi <yao@codesourcery.com>
3549 Hui Zhu <hui@codesourcery.com>
3550 Pedro Alves <palves@redhat.com>
3551
3552 PR breakpoints/15075
3553 PR breakpoints/15434
3554 * breakpoint.c (bpstat_stop_status): Call
3555 b->ops->after_condition_true.
3556 (update_dprintf_command_list): Don't append "continue" command
3557 to the command list of dprintf breakpoint.
3558 (base_breakpoint_after_condition_true): New function.
3559 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3560 (dprintf_after_condition_true): New function.
3561 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3562 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3563
586cf749
KB
35642013-06-24 Kevin Buettner <kevinb@redhat.com>
3565
3566 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3567 (ALLDEPFILES): Add msp430-tdep.c.
3568 * configure.tgt (msp430*-*-elf): New target.
3569 * msp430-tdep.c: New file.
3570
1bbce132
MR
35712013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3572
3573 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3574 microMIPS synthetic symbols.
3575
3e5d3a5a
MR
35762013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3577
3578 * objfiles.h (pc_in_section): New prototype.
3579 (in_plt_section): Remove name argument, replace prototype with
3580 static inline function.
3581 * mips-tdep.h: Include "objfiles.h".
3582 (in_mips_stubs_section): New function.
3583 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3584 in_solib_call_trampoline member.
3585 (hppa_in_solib_call_trampoline): Remove name argument.
3586 * objfiles.c (pc_in_section): New function.
3587 (in_plt_section): Remove function.
3588 * mips-linux-tdep.c: Include "objfiles.h".
3589 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3590 name argument. Return 1 rather than the low 16-bit halfword of
3591 any instruction examined.
3592 (mips_linux_in_dynsym_resolve_code): Update
3593 mips_linux_in_dynsym_stub call accordingly.
3594 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3595 rather than an equivalent hand-coded sequence.
3596 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3597 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3598 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3599 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3600 in_opd_section.
3601 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3602 on call to tdep->in_solib_call_trampoline.
3603 (hppa_in_solib_call_trampoline): Remove name argument, update
3604 according to in_plt_section change.
3605 (hppa_skip_trampoline_code): Update according to in_plt_section
3606 change.
3607 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3608 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3609 Likewise.
3610 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3611 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3612 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3613 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3614 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3615 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3616 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3617 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3618 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3619 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3620 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3621 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3622 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3623
b9b26a16
JB
36242013-06-24 Joel Brobecker <brobecker@adacore.com>
3625
3626 * common/create-version.sh: Fix expansion of $host_alias
3627 and $target_alias in generation of HOST_NAME and TARGET_NAME
3628 (resp.).
3629
01208463
TT
36302013-06-24 Tom Tromey <tromey@redhat.com>
3631
3632 * common/create-version.sh: New file.
3633 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3634 create-version.sh.
3635 (HFILES_NO_SRCDIR): Use common/version.h.
3636 * version.in: Move to ...
3637 * common/version.in: ... here. Replace date with "DATE".
3638 * version.h: Move to ...
3639 * common/version.h: ... here.
3640
bb6b9a5e
JB
36412013-06-21 Joel Brobecker <brobecker@adacore.com>
3642
3643 * gdb/gnulib/Makefile.in: Update date in copyright header.
3644 * gdb/gnulib/configure.ac: Ditto.
3645 * gdb/gnulib/update-gnulib.sh: Ditto.
3646
c3b18ee7
JB
36472013-06-21 Joel Brobecker <brobecker@adacore.com>
3648
3649 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3650 "gdb/gnulib/import".
3651
85d3b769
WN
36522013-06-21 Will Newton <will.newton@linaro.org>
3653
3654 * doublest.c (ldfrexp): Remove function.
3655 (convert_doublest_to_floatformat): Call frexpl instead of
3656 ldfrexp.
3657
88b48903
WN
36582013-06-21 Will Newton <will.newton@linaro.org>
3659
3660 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3661 * gnulib/aclocal.m4: Regenerate.
3662 * gnulib/config.in: Regenerate.
3663 * gnulib/configure: Regenerate.
3664 * gnulib/import/Makefile.am: Update.
3665 * gnulib/import/Makefile.in: Update.
3666 * gnulib/import/m4/gnulib-cache.m4: Update.
3667 * gnulib/import/m4/gnulib-comp.m4: Update.
3668 * gnulib/import/float+.h: Import.
3669 * gnulib/import/float.c: Import.
3670 * gnulib/import/float.in.h: Import.
3671 * gnulib/import/fpucw.h: Import.
3672 * gnulib/import/frexp.c: Import.
3673 * gnulib/import/frexpl.c: Import.
3674 * gnulib/import/isnan.c: Import.
3675 * gnulib/import/isnand-nolibm.h: Import.
3676 * gnulib/import/isnand.c: Import.
3677 * gnulib/import/isnanl-nolibm.h: Import.
3678 * gnulib/import/isnanl.c: Import.
3679 * gnulib/import/itold.c: Import.
3680 * gnulib/import/m4/exponentd.m4: Import.
3681 * gnulib/import/m4/exponentl.m4: Import.
3682 * gnulib/import/m4/float_h.m4: Import.
3683 * gnulib/import/m4/fpieee.m4: Import.
3684 * gnulib/import/m4/frexp.m4: Import.
3685 * gnulib/import/m4/frexpl.m4: Import.
3686 * gnulib/import/m4/isnand.m4: Import.
3687 * gnulib/import/m4/isnanl.m4: Import.
3688 * gnulib/import/m4/math_h.m4: Import.
3689 * gnulib/import/math.c: Import.
3690 * gnulib/import/math.in.h: Import.
3691
4353c9e6
JK
36922013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3693
3694 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3695 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3696 signature_INTEL_edx comparisons.
3697
e3e06db3
DE
36982013-06-20 Doug Evans <dje@google.com>
3699
6ac97d4c
DE
3700 symtab/15652
3701 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3702 All callers updated.
3703 (open_dwp_file): If we can't find the dwp file, search the basename
3704 in debug-file-directory.
3705
93417882
DE
3706 * dwarf2read.c (struct dwp_file): Fix comment.
3707 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3708
e3e06db3
DE
3709 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3710 better.
3711
0878d0fa
YQ
37122013-06-20 Yao Qi <yao@codesourcery.com>
3713
3714 * breakpoint.c (create_breakpoint): Fix code indentation.
3715
023fa29b
YQ
37162013-06-20 Yao Qi <yao@codesourcery.com>
3717
3718 * breakpoint.c (create_breakpoints_sal_default): Remove
3719 parameter 'lsal'. Update declaration.
3720 (bkpt_create_breakpoints_sal): Caller update.
3721 (tracepoint_create_breakpoints_sal): Likewise.
3722
c898adb7
YQ
37232013-06-20 Pedro Alves <pedro@codesourcery.com>
3724 Yao Qi <yao@codesourcery.com>
3725
3726 * NEWS: Mention the new option '--skip-unavailable' of command
3727 -data-list-register-values.
3728 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3729 --skip-unavailable option. Adjust to use output_register.
3730 (output_register): Add new 'skip_unavailable' parameter.
3731 Handle it.
3732
4d157a3d
MF
37332013-06-19 Mike Frysinger <vapier@gentoo.org>
3734
3735 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3736 common/i386-gcc-cpuid.h.
3737 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3738 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3739 Copy the latest version from upstream gcc.
3740 * common/linux-btrace.c: Include i386-cpuid.h.
3741 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3742 call to i386_cpuid.
3743 (cpu_supports_btrace): Likewise.
3744 * go32-nat.c: Include i386-cpuid.h.
3745 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3746
1ce4db08
DE
37472013-06-19 Doug Evans <dje@google.com>
3748
3749 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3750 (get_section_index): Ditto.
3751
0e4777df
TT
37522013-06-19 Tom Tromey <tromey@redhat.com>
3753
3754 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3755 "dprintf" help.
3756
3190f0c6
DE
37572013-06-18 Doug Evans <dje@google.com>
3758
3759 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3760 before using it.
3761 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3762 Move test of cu_index closer to use. Print complaint if cu_index
3763 is bad.
3764
8b89a20a
JB
37652013-06-18 Joel Brobecker <brobecker@adacore.com>
3766
3767 * machoread.c (oso_vector): Delete this global.
3768 (macho_register_oso): Add new parameter "oso_vector_ptr".
3769 Use it instead of the "oso_vector" global.
3770 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3771 (macho_symfile_read): Use a local oso_vector, to be free'ed
3772 at the end of this function, in place of the old "oso_vector"
3773 global. Update various function calls accordingly. Use one
3774 single cleanup chain for the entire function.
3775
59b0c7c1
JB
37762013-06-18 Joel Brobecker <brobecker@adacore.com>
3777
937c708c 3778 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
3779 DWARF2_PER_OBJFILE by uses of DATA instead.
3780
427cd150
TT
37812013-06-18 Tom Tromey <tromey@redhat.com>
3782
3783 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3784 argument.
3785 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3786 Special case signals other than GDB_SIGNAL_TRAP.
3787 (explains_signal_watchpoint): New function.
3788 (base_breakpoint_explains_signal): Add 'sig' argument.
3789 (initialize_breakpoint_ops): Set 'explains_signal' method for
3790 watchpoints.
3791 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3792 signal argument.
3793 (bpstat_explains_signal): Likewise.
3794 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3795
2d57700b
TT
37962013-06-18 Tom Tromey <tromey@redhat.com>
3797
3798 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3799
ac475191
TT
38002013-06-18 Tom Tromey <tromey@redhat.com>
3801
3802 * python/python.c (finish_python_initialization): Decref
3803 'pythondir' on failure path as well.
3804
5bd1ef56
TT
38052013-06-18 Tom Tromey <tromey@redhat.com>
3806
3807 PR symtab/15391:
3808 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3809 after taking bits_to_skip into account. Sign extend byte_offset.
3810 * utils.h (gdb_sign_extend): Declare.
3811 * utils.c (gdb_sign_extend): New function.
3812
92fac807
JK
38132013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3814
3815 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3816
2d503272
PM
38172013-06-17 Pierre Muller <muller@sourceware.org>
3818
3819 * corelow.c (core_open): Print GDB signal name instead of target
3820 signal number.
3821
6916fd98
MF
38222013-06-17 Mike Frysinger <vapier@gentoo.org>
3823
3824 * .gitignore: Add /gcore.
3825
9c02c129
DE
38262013-06-13 Doug Evans <dje@google.com>
3827
3828 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3829 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3830
d0548fa2
PM
38312013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3832
3833 * stack.c (backtrace_command_1): Fix indentation.
3834
22128028
JB
38352013-06-11 Joel Brobecker <brobecker@adacore.com>
3836
3837 * window-nat.c (thread_rec): Add missing empty line after
3838 local variable declaration.
3839
2ed3e009
JB
38402013-06-11 Joel Brobecker <brobecker@adacore.com>
3841
3842 * windows-nat.c (thread_rec): Revert format used to print
3843 error code returned by SuspendThread from %d back to %u.
3844
0c3d84be
JB
38452013-06-11 Joel Brobecker <brobecker@adacore.com>
3846
3847 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3848 ID in debug trace.
3849 (get_windows_debug_event): Likewise, for all debug traces.
3850
80e88e1a
JB
38512013-06-11 Joel Brobecker <brobecker@adacore.com>
3852
3853 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3854 warning message.
3855
1edebdbf
YQ
38562013-06-08 Pedro Alves <pedro@codesourcery.com>
3857 Yao Qi <yao@codesourcery.com>
3858
3859 * mi/mi-main.c (get_register): Remove declaration.
3860 (output_register): Declare.
3861 (mi_cmd_data_list_register_values): Remove local variable
3862 'tuple_cleanup'. Move some code into output_register.
3863 (get_register): Renamed to ...
3864 (output_register): ... this. Output the register's
3865 "number" ui_out tuple here.
3866
47d48711
PA
38672013-06-07 Pedro Alves <palves@redhat.com>
3868
3869 * darwin-nat.c: Fix formating in copyright header.
3870 * darwin-nat.h: Likewise.
3871 * gnu-nat.c: Likewise.
3872 * machoread.c: Likewise.
3873
3aee8918
PA
38742013-06-07 Pedro Alves <palves@redhat.com>
3875
5f2b57b5 3876 PR server/14823
3aee8918
PA
3877 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3878 static. Output a global target description pointer.
3879 (init_registers_${name}): Adjust to initialize a
3880 target description structure.
3881
fe8400b4
WN
38822013-06-07 Will Newton <will.newton@linaro.org>
3883
3884 * printcmd.c (build_address_symbolic): Call
3885 gdbarch_addr_bits_remove for text minimal symbols.
3886
20df6206
WN
38872013-06-07 Will Newton <will.newton@linaro.org>
3888
3889 * MAINTAINERS: Add myself to Write After Approval.
3890
aef525cb
YQ
38912013-06-07 Yao Qi <yao@codesourcery.com>
3892
3893 * tracepoint.c (start_tracing): Move code to ...
3894 (trace_reset_local_state): ... here. New.
3895 (disconnect_tracing): Don't call set_current_traceframe,
3896 set_tracepoint_num, and set_traceframe_context. Call
3897 trace_reset_local_state instead.
3898 (tfile_close): Call trace_reset_local_state.
3899 * ctf.c (ctf_close): Likewise.
3900 * remote.c (remote_close): Likewise.
3901 * tracepoint.h (trace_reset_local_state): Declare.
3902
d2415c6c
DE
39032013-06-06 Doug Evans <dje@google.com>
3904
3905 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3906 and fix header docs.
3907
69fc87c2
DE
39082013-06-05 Doug Evans <dje@google.com>
3909 Keith Seitz <keiths@redhat.com>
3910
3911 PR 15519
3912 * cp-namespace.c (find_symbol_in_baseclass): Call
3913 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3914 Check result of call to lookup_symbol_static.
3915 Call lookup_static_symbol_aux unconditionally.
3916 Call check_typedef on base types before accessing them.
3917 (cp_lookup_nested_symbol): Fix comment.
3918
a513d1e8
LM
39192013-06-05 Luis Machado <lgustavo@codesourcery.com>
3920
3921 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3922 minimal symbols pointing to function descriptors.
3923
351a6f02
TT
39242013-06-05 Tom Tromey <tromey@redhat.com>
3925
3926 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3927
5e1b953b 39282013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 3929 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
3930
3931 * remote.c (remote_wait_as): Restore signal handler before returning
3932 when GDB gets a notification.
3933
f9e14852
GB
39342013-06-04 Gary Benson <gbenson@redhat.com>
3935
8445cbf1 3936 PR 2328
f9e14852
GB
3937 * breakpoint.h (handle_solib_event): Moved function declaration
3938 to solib.h.
3939 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3940 (bpstat_stop_status): Pass new argument to handle_solib_event.
3941 * solib.h (update_solib_breakpoints): New function declaration.
3942 (handle_solib_event): Moved function declaration from
3943 breakpoint.h.
3944 * solib.c (update_solib_breakpoints): New function.
3945 (handle_solib_event): Moved function from breakpoint.c.
3946 Updated to call solib_ops->handle_event if not NULL.
3947 * solist.h (target_so_ops): New fields "update_breakpoints" and
3948 "handle_event".
3949 * infrun.c (set_stop_on_solib_events): New function.
3950 (_initialize_infrun): Use the above for "set
3951 stop-on-solib-events".
3952 (handle_inferior_event): Pass new argument to handle_solib_event.
3953 * solib-svr4.c (probe.h): New include.
3954 (svr4_free_library_list): New forward declaration.
3955 (probe_action): New enum.
3956 (probe_info): New struct.
3957 (probe_info): New static variable.
3958 (NUM_PROBES): New definition.
3959 (svr4_info): New fields "using_xfer", "probes_table" and
3960 "solib_list".
3961 (free_probes_table): New function.
3962 (free_solib_list): New function.
3963 (svr4_pspace_data_cleanup): Free probes table and solib list.
3964 (svr4_copy_library_list): New function.
3965 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3966 (svr4_read_so_list): New parameter "prev_lm".
3967 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3968 (svr4_current_sos): New function.
3969 (probe_and_action): New struct.
3970 (hash_probe_and_action): New function.
3971 (equal_probe_and_action): Likewise.
3972 (register_solib_event_probe): Likewise.
3973 (solib_event_probe_at): Likewise.
3974 (solib_event_probe_action): Likewise.
3975 (solist_update_full): Likewise.
3976 (solist_update_incremental): Likewise.
3977 (disable_probes_interface_cleanup): Likewise.
3978 (svr4_handle_solib_event): Likewise.
3979 (svr4_update_solib_event_breakpoint): Likewise.
3980 (svr4_update_solib_event_breakpoints): Likewise.
3981 (svr4_create_solib_event_breakpoints): Likewise.
3982 (enable_break): Free probes table before creating breakpoints.
3983 Use svr4_create_solib_event_breakpoints to create breakpoints.
3984 (svr4_solib_create_inferior_hook): Free the solib list.
3985 (_initialize_svr4_solib): Initialise
3986 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3987
ced63ec0
GB
39882013-06-04 Gary Benson <gbenson@redhat.com>
3989
3990 * target.h (target_ops): New field
3991 "to_augmented_libraries_svr4_read".
3992 (target_augmented_libraries_svr4_read): New macro.
3993 * target.c (update_current_target): Handle
3994 to_augmented_libraries_svr4_read.
3995 * remote.c (remote_state): New field
3996 "augmented_libraries_svr4_read".
3997 (remote_augmented_libraries_svr4_read_feature): New function.
3998 (remote_protocol_features): Add entry for
3999 "augmented-libraries-svr4-read".
4000 (remote_augmented_libraries_svr4_read): New function.
4001 (init_remote_ops): Initialize
4002 remote_ops.to_augmented_libraries_svr4_read.
4003
7f91dbec
GB
40042013-06-04 Gary Benson <gbenson@redhat.com>
4005
4006 * NEWS: Update.
4007
607ece04
GB
40082013-06-04 Gary Benson <gbenson@redhat.com>
4009
4010 * objfiles.h (inhibit_section_map_updates): New function
4011 declaration.
4012 (resume_section_map_updates): Likewise.
4013 (resume_section_map_updates_cleanup): Likewise.
4014 * objfiles.c (objfile_pspace_info): Removed field
4015 "objfiles_changed_p". New fields "new_objfiles_available",
4016 "section_map_dirty" and "inhibit_updates".
4017 (allocate_objfile): Set new_objfiles_available.
4018 (free_objfile): Set section_map_dirty.
4019 (objfile_relocate1): Likewise.
4020 (in_plt_section): Likewise.
4021 (find_pc_section): Update the conditions under which the
4022 section map will be updated.
4023 (inhibit_section_map_updates): New function.
4024 (resume_section_map_updates): Likewise.
4025 (resume_section_map_updates_cleanup): Likewise.
4026
9ee6a5ac
GB
40272013-06-04 Gary Benson <gbenson@redhat.com>
4028
4029 * probe.h (get_probe_argument_count): New declaration.
4030 (evaluate_probe_argument): Likewise.
4031 * probe.c (get_probe_argument_count): New function.
4032 (evaluate_probe_argument): Likewise.
4033 (probe_safe_evaluate_at_pc): Use the above new functions.
4034
845d4708
AM
40352013-06-04 Alan Modra <amodra@gmail.com>
4036
4037 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4038 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4039 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4040 target mem reads on optional insns.
4041 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4042 ppc_insns_match_pattern calls.
4043 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4044 Add match for power7 thread safety insns, and new order of
4045 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4046 invocation in comment, and update rest of comment.
4047 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4048 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4049 (ppc64_standard_linkage2_target): Update insn offsets.
4050 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4051 stubs first. Update calls.
4052
404e278f
YQ
40532013-06-04 Yao Qi <yao@codesourcery.com>
4054
4055 * solib.c (solib_find): Don't need dir separator if path has
4056 drive spec.
4057
f6aea118
JB
40582013-06-03 Joel Brobecker <brobecker@adacore.com>
4059
4060 Revert (indirectly causes a SIGSEGV):
4061 * machoread.c (macho_symfile_read): Assign first cleanup to
4062 'back_to'.
4063
87967e27
YQ
40642013-06-03 Yao Qi <yao@codesourcery.com>
4065
4066 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4067 mi-parse.c. Make them static.
4068 (mi_all_values): Likewise.
4069 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4070 mi_parse_print_values. Make it external.
4071 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4072 Remove the declarations.
4073 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4074 * mi/mi-parse.h (mi_parse_print_values): Declare.
4075 * mi/mi-cmd-stack.c: Include mi-parse.h.
4076 (parse_print_values): Remove
4077 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4078 of parse_print_values.
4079 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4080
3ca73e0c
YQ
40812013-05-31 Pedro Alves <pedro@codesourcery.com>
4082 Yao Qi <yao@codesourcery.com>
4083
4084 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4085 (encode_actions): Move code to ...
4086 (all_tracepoint_actions_and_cleanup): ... here. New.
4087 (trace_dump_command): Likewise.
4088
4e993a19
TT
40892013-05-30 Tom Tromey <tromey@redhat.com>
4090
4091 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4092
e3b76b4f
TT
40932013-05-30 Tom Tromey <tromey@redhat.com>
4094
4095 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4096 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4097 'old_chain' argument. Add 'parser_result' argument.
4098 (gdb_xml_create_parser_and_cleanup): Remove old version.
4099 (gdb_xml_parse_quick): Update.
4100 (xml_process_xincludes): Update.
4101 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4102 declare.
4103
db26349c
TT
41042013-05-30 Tom Tromey <tromey@redhat.com>
4105
4106 * probe.c (collect_probes): Check arguments for NULL before
4107 calling compile_rx_or_error.
4108 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4109 Remove NULL return.
4110
77f9e713
TT
41112013-05-30 Tom Tromey <tromey@redhat.com>
4112
4113 * infrun.c (adjust_pc_after_break): Introduce an outer null
4114 cleanup.
4115
45475de7
TT
41162013-05-30 Tom Tromey <tromey@redhat.com>
4117
4118 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4119
ac5007fd
TT
41202013-05-30 Tom Tromey <tromey@redhat.com>
4121
4122 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4123 for 'old_chain'. Do not check 'head' before processing
4124 cleanups.
4125
cd82eddc
TT
41262013-05-30 Tom Tromey <tromey@redhat.com>
4127
4128 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4129 "cleanup_tuple".
4130
57cee33a
TT
41312013-05-30 Tom Tromey <tromey@redhat.com>
4132
4133 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4134 inner scope. Unconditionally call do_cleanups.
4135
795d915c
TT
41362013-05-30 Tom Tromey <tromey@redhat.com>
4137
4138 * source.c (find_and_open_source): Call do_cleanups.
4139
1fc3cf4a
TT
41402013-05-30 Tom Tromey <tromey@redhat.com>
4141
4142 * linux-thread-db.c (thread_db_load_search): Unconditionally
4143 call do_cleanups.
4144
e35ac9bf
TT
41452013-05-30 Tom Tromey <tromey@redhat.com>
4146
4147 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4148 for 'cleanup'; instead use a later one.
4149
f3300387
TT
41502013-05-30 Tom Tromey <tromey@redhat.com>
4151
4152 * python/py-breakpoint.c (bppy_get_commands): Use
4153 explicit, unconditional return.
4154 * python/py-frame.c (frapy_read_var): Likewise.
4155 * python/python.c (gdbpy_decode_line): Likewise.
4156
c27e16e3
TT
41572013-05-30 Tom Tromey <tromey@redhat.com>
4158
4159 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4160 do_cleanups on all return paths.
4161
5ae85e44
TT
41622013-05-30 Tom Tromey <tromey@redhat.com>
4163
4164 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4165
73b8d9da
TT
41662013-05-30 Tom Tromey <tromey@redhat.com>
4167
4168 * stabsread.c (read_struct_type): Call do_cleanups along
4169 all return paths.
4170
7d266584
MR
41712013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4172
4173 * mips-linux-tdep.c: Adjust formatting throughout.
4174
0f900f54
TT
41752013-05-30 Tom Tromey <tromey@redhat.com>
4176
4177 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4178 along all return paths.
4179
a991ac28
TT
41802013-05-30 Tom Tromey <tromey@redhat.com>
4181
4182 * symfile.c (find_separate_debug_file): Call do_cleanups
4183 along all return paths.
4184
1abaf042
TT
41852013-05-30 Tom Tromey <tromey@redhat.com>
4186
4187 * symtab.c (search_symbols): Introduce a null cleanup for
4188 'retval_chain'.
4189
edefe1da
TT
41902013-05-30 Tom Tromey <tromey@redhat.com>
4191
4192 * python/py-value.c (valpy_binop): Call do_cleanups before
4193 exiting loop.
4194
54f72dcc
TT
41952013-05-30 Tom Tromey <tromey@redhat.com>
4196
4197 * python/py-prettyprint.c (print_children): Remove extra
4198 do_cleanups call.
4199
af1c6971
TT
42002013-05-30 Tom Tromey <tromey@redhat.com>
4201
4202 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4203 all return paths.
4204
b862ce75
TT
42052013-05-30 Tom Tromey <tromey@redhat.com>
4206
4207 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4208 along all return paths.
4209
e12fefc8
TT
42102013-05-30 Tom Tromey <tromey@redhat.com>
4211
4212 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4213 call do_cleanups.
4214
4867f990
TT
42152013-05-30 Tom Tromey <tromey@redhat.com>
4216
4217 * varobj.c (c_value_of_root): Call do_cleanups along all
4218 return paths.
4219
4fd2d6af
TT
42202013-05-30 Tom Tromey <tromey@redhat.com>
4221
4222 * tracepoint.c (trace_dump_command): Unconditionally call
4223 do_cleanups.
4224
752eb8b4
TT
42252013-05-30 Tom Tromey <tromey@redhat.com>
4226
4227 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4228 do_cleanups earlier.
4229
e42d0aa5
TT
42302013-05-30 Tom Tromey <tromey@redhat.com>
4231
4232 * machoread.c (macho_symfile_read): Assign first cleanup to
4233 'back_to'.
4234
4bbc010a
TT
42352013-05-30 Tom Tromey <tromey@redhat.com>
4236
4237 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4238
b9635925
TT
42392013-05-30 Tom Tromey <tromey@redhat.com>
4240
4241 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4242
25f43500
TT
42432013-05-30 Tom Tromey <tromey@redhat.com>
4244
4245 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4246 call discard_cleanups.
4247 (inf_ptrace_attach): Likewise.
4248
d6a2e54a
TT
42492013-05-30 Tom Tromey <tromey@redhat.com>
4250
4251 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4252 return paths.
4253 (mips_initialize): Likewise.
4254 (common_open): Call do_cleanups.
4255
48be7c1b
TT
42562013-05-30 Tom Tromey <tromey@redhat.com>
4257
4258 * utils.c (internal_vproblem): Call do_cleanups.
4259
e61727ab
TT
42602013-05-30 Tom Tromey <tromey@redhat.com>
4261
4262 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4263
b81b921f
TT
42642013-05-30 Tom Tromey <tromey@redhat.com>
4265
4266 * cli/cli-script.c (setup_user_args): Don't return after error.
4267
fe48dfb1
TT
42682013-05-30 Tom Tromey <tromey@redhat.com>
4269
4270 * somread.c (som_symtab_read): Call do_cleanups.
4271
27833de7
TT
42722013-05-30 Tom Tromey <tromey@redhat.com>
4273
4274 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4275
5b3fca71
TT
42762013-05-30 Tom Tromey <tromey@redhat.com>
4277
4278 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4279 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4280 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4281 * source.c (show_substitute_path_command): Call do_cleanups.
4282 (unset_substitute_path_command, set_substitute_path_command):
4283 Likewise.
4284 * symfile.c (load_command): Call do_cleanups.
4285
af83e3f8
TT
42862013-05-30 Tom Tromey <tromey@redhat.com>
4287
4288 * contrib/cleanup_check.py: New file.
4289 * contrib/gcc-with-excheck: Add option parsing.
4290
564eac42
JB
42912013-05-30 Joel Brobecker <brobecker@adacore.com>
4292
4293 * windows-nat.c (windows_delete_thread): Add missing space
4294 in cast expression.
4295
47902076
HAQ
42962013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4297
4298 * inferior.c (top level): Include tilde.h.
4299 (add_inferior_command): Call tilde_expand on the value of 'exec'
4300 argument.
4301
23da373a
YQ
43022013-05-30 Pedro Alves <pedro@codesourcery.com>
4303 Yao Qi <yao@codesourcery.com>
4304
4305 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4306 Caller update.
4307 (encode_actions): Likewise.
4308 * remote.c (remote_download_tracepoint): Caller update.
4309 * tracepoint.h (encode_actions): Update declaration.
4310
a6e6f791
PA
43112013-05-30 Pedro Alves <palves@redhat.com>
4312
4313 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4314 pointer.
4315
36d25514
YQ
43162013-05-30 Yao Qi <yao@codesourcery.com>
4317
4318 * remote.c (remote_check_symbols): Remove unused parameter
4319 'objfile'.
4320 Declaration update.
4321 (remote_start_remote, remote_new_objfile): Caller update.
4322
62a813cc
YQ
43232013-05-30 Yao Qi <yao@codesourcery.com>
4324
4325 * mi/mi-cmds.c (mi_cmds): Define MI command
4326 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4327 DEF_MI_CMD_CLI.
4328
28439a30
PA
43292013-05-29 Pedro Alves <palves@redhat.com>
4330
4331 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4332 (remote_insert_watchpoint, remote_remove_watchpoint)
4333 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4334 (remote_verify_memory, compare_sections_command)
4335 (remote_search_memory): Set the general process/thread on the
4336 remote side.
4337
6ac1c082
PA
43382013-05-29 Pedro Alves <palves@redhat.com>
4339
4340 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4341 (_initialize_aarch64_tdep): Don't call
4342 initialize_tdesc_aarch64_without_fpu.
4343 * features/Makefile (WHICH): Remove reference to
4344 aarch64-without-fpu.
4345 * features/aarch64-without-fpu.c: Delete file.
4346 * regformats/aarch64-without-fpu.dat: Delete file.
4347
a73e3634
YQ
43482013-05-28 Yao Qi <yao@codesourcery.com>
4349
4350 * tracepoint.c (stringify_collection_list): Remove parameter
4351 'string'.
4352 (encode_actions): Caller update. Remove local variables.
4353
c0ea94eb
YQ
43542013-05-24 Yao Qi <yao@codesourcery.com>
4355
4356 * tracepoint.c (TFILE_PID): Remove.
4357 (tfile_open): Don't add thread and inferior.
4358 (tfile_close): Don't set 'inferior_ptid'. Don't call
4359 exit_inferior_silent.
4360 (tfile_thread_alive): Remove.
4361 (init_tfile_ops): Don't set field 'to_thread_alive' of
4362 tfile_ops.
4363
20d7f211
DE
43642013-05-23 Doug Evans <dje@google.com>
4365
4366 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4367
8658d16d
PA
43682013-05-23 Pedro Alves <palves@redhat.com>
4369
4370 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4371 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4372 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4373 Only define if HAVE_SOCKETS is defined.
4374 * configure.ac: Check for sys/socket.h.
4375 * config.in, configure: Regenerate.
4376
21aa081e
PA
43772013-05-23 Pedro Alves <palves@redhat.com>
4378
4379 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4380 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4381 printing uint32_t variables.
4382
c2d6af84
PA
43832013-05-23 Pedro Alves <palves@redhat.com>
4384
4385 * NEWS: Mention GDBserver range stepping support.
4386
c1e36e3e
PA
43872013-05-23 Yao Qi <yao@codesourcery.com>
4388 Pedro Alves <palves@redhat.com>
4389
4390 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4391 field.
4392 * infcmd.c (step_once, until_next_command): Enable range stepping.
4393 * infrun.c (displaced_step_prepare): Disable range stepping.
4394 (resume): Disable range stepping if stepping over a breakpoint or
4395 we have software watchpoints. If range stepping is enabled,
4396 assert the thread is in the stepping range.
4397 (clear_proceed_status_thread): Clear may_range_step.
4398 (handle_inferior_event): Disable range stepping as soon as we know
4399 the thread that hit the event. Re-enable it whenever we're going
4400 to step with a step range.
4401 * remote.c (struct vCont_action_support) <r>: New field.
4402 (use_range_stepping): New global.
4403 (remote_vcont_probe): Handle 'r' action.
4404 (append_resumption): Append an 'r' action if the thread may range
4405 step.
4406 (show_range_stepping): New function.
4407 (set_range_stepping): New function.
4408 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4409 'set range-stepping' and 'show range-stepping' commands.
4410 * NEWS: Mention range stepping, the new vCont;r action, and the
4411 new "set/show range-stepping" commands.
4412
d458bd84
PA
44132013-05-23 Yao Qi <yao@codesourcery.com>
4414 Pedro Alves <palves@redhat.com>
4415
4416 * remote.c (struct vCont_action_support): New struct.
4417 (struct remote_state) <support_vCont_t>: Remove field.
4418 <vCont_actions_support>: New field.
4419 (remote_vcont_probe, remote_stop_ns): Update.
4420
ce4c476a
PA
44212013-05-23 Yao Qi <yao@codesourcery.com>
4422 Pedro Alves <palves@redhat.com>
4423
4424 * gdbthread.h (pc_in_thread_step_range): New declaration.
4425 * thread.c (pc_in_thread_step_range): New function.
4426 * infrun.c (handle_inferior_event): Use it.
4427
ce70887a
JB
44282013-05-23 Joel Brobecker <brobecker@adacore.com>
4429
4430 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4431 of sprintf.
4432
55b87a52
KS
44332013-05-22 Keith Seitz <keiths@redhat.com>
4434
4435 * ada-lang.c (is_known_support_routine): Add explicit free of
4436 'func_name' from find_frame_funname.
4437 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4438 for func_name from find_frame_funname.
4439 * python/py-frame.c (frapy_name): Add explicit free of
4440 'name' from find_frame_funname.
4441 * stack.c (find_frame_funname): Add comment explaining that
4442 funcp must be freed by the caller.
4443 Return copy of symbol names instead of pointers.
4444 (print_frame): Add a cleanup for 'funname' from
4445 find_frame_funname.
4446 * stack.h (find_frame_funname): Remove "const" from
4447 'funname' parameter.
4448
5f2e6b00
TT
44492013-05-22 Tom Tromey <tromey@redhat.com>
4450
4451 PR c++/15401:
4452 * c-valprint.c (c_value_print): Use value_addr for
4453 references. Convert back to reference type with value_ref.
4454
d85c4847
EZ
44552013-05-22 Eli Zaretskii <eliz@gnu.org>
4456
4457 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4458 unloaded DLL, it will be done by handle_solib_event. See
4459 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4460 details.
4461
54eb231c
PM
44622013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4463
4464 * ui-out.c: Create typedef ui_out_level_p and define vector
4465 operations for that type.
4466 (struct ui_out): Use a vector instead of an array.
4467 (current_level): Return level from a vector.
4468 (push_level): Create a level in a vector.
4469 (pop_level): Delete a level in a vector.
4470 (ui_out_new): Create initial level zero level, and store in a
4471 vector.
4472 (ui_out_destroy): Add vector cleanup.
4473
ac90359c
PA
44742013-05-22 Pedro Alves <palves@redhat.com>
4475
4476 * python/python-internal.h (gdb_Py_DECREF): Tag with
4477 "ARI: editCase function".
4478
6dcc1893
PP
44792013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4480
4481 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4482
c8c735b9
PA
44832013-05-21 Pedro Alves <palves@redhat.com>
4484
4485 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4486 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4487 * python/py-utils.c (py_decref): Don't check for NULL before
4488 calling Py_DECREF.
4489
1915daeb
PA
44902013-05-21 Pedro Alves <palves@redhat.com>
4491
4492 * python/py-utils.c (py_decref): Remove extra braces.
4493 (gdb_pymodule_addobject): Remove extra braces.
4494 * python-internal.h (gdb_Py_DECREF): New static inline function.
4495 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4496
bd9673a4
PW
44972013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4498
4499 * breakpoints.c (detach_breakpoints): Do not
4500 detach breakpoints locations with loc_type bp_loc_other.
4501
ff6009d0
JK
45022013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4503
4504 Workaround Python 2.6.
4505 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4506 a block.
4507
3641da11
JK
45082013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4509
4510 Code cleanup: constification.
4511 * solib.c (solib_ops): Make return type and ops variable type const.
4512 (set_solib_ops): Make the new_ops parameter and ops variable const.
4513 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4514 (solib_add, solib_keep_data_in_core, clear_solib)
4515 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4516 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4517 const.
4518 * solib.h (set_solib_ops): Make the new_ops parameter const.
4519
776af39e
JB
45202013-05-21 Joel Brobecker <brobecker@adacore.com>
4521
4522 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4523 variable.
4524 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4525 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4526 (SYSTEM_GDBINIT_FILES): New variables.
4527 (all): Add stamp-system-gdbinit.
4528 (stamp-system-gdbinit): New rule.
4529 (clean-system-gdbinit, install-system-gdbinit)
4530 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4531 (install-only): Add dependency on install-system-gdbinit.
4532 (uninstall): Add dependency on uninstall-system-gdbinit.
4533 (clean): Add dependency on clean-system-gdbinit.
4534 * system-gdbinit/elinos.py: New file.
4535 * system-gdbinit/wrs-linux.py: New file.
4536
1509e573
JB
45372013-05-21 Joel Brobecker <brobecker@adacore.com>
4538
4539 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4540
c5867ab6
HZ
45412013-05-21 Hui Zhu <hui@codesourcery.com>
4542
4543 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4544 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4545 * mi/mi-cmd-break.c (ctype.h): New include.
4546 (gdb_obstack.h): New include.
4547 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4548 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4549 (mi_cmd_dprintf_insert): New.
4550 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4551 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4552
7d38e38f
TT
45532013-05-20 Tom Tromey <tromey@redhat.com>
4554
4555 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4556
97b77b39
TT
45572013-05-20 Tom Tromey <tromey@redhat.com>
4558
4559 * python/py-value.c (valpy_get_dynamic_type): Simplify
4560 dynamic_type assignment. Use Py_XINCREF.
4561
53e66479
TT
45622013-05-20 Tom Tromey <tromey@redhat.com>
4563
4564 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4565
dcf87832
TT
45662013-05-20 Tom Tromey <tromey@redhat.com>
4567
4568 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4569 (gdbpy_selected_frame): Move object-construction code
4570 out of TRY_CATCH.
4571
aa36459a
TT
45722013-05-20 Tom Tromey <tromey@redhat.com>
4573
4574 * python/py-arch.c (gdbpy_initialize_arch): Use
4575 gdb_pymodule_addobject.
4576 * python/py-block.c (gdbpy_initialize_blocks): Use
4577 gdb_pymodule_addobject.
4578 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4579 gdb_pymodule_addobject.
4580 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4581 gdb_pymodule_addobject.
4582 * python/py-event.c (gdbpy_initialize_event_generic): Use
4583 gdb_pymodule_addobject.
4584 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4585 gdb_pymodule_addobject.
4586 * python/py-evts.c (add_new_registry): Use
4587 gdb_pymodule_addobject.
4588 (gdbpy_initialize_py_events): Likewise.
4589 * python/py-finishbreakpoint.c
4590 (gdbpy_initialize_finishbreakpoints): Use
4591 gdb_pymodule_addobject.
4592 * python/py-frame.c (gdbpy_initialize_frames): Use
4593 gdb_pymodule_addobject.
4594 * python/py-function.c (gdbpy_initialize_functions): Use
4595 gdb_pymodule_addobject.
4596 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4597 gdb_pymodule_addobject.
4598 * python/py-infthread.c (gdbpy_initialize_thread): Use
4599 gdb_pymodule_addobject.
4600 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4601 gdb_pymodule_addobject.
4602 * python/py-param.c (gdbpy_initialize_parameters): Use
4603 gdb_pymodule_addobject.
4604 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4605 gdb_pymodule_addobject.
4606 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4607 gdb_pymodule_addobject.
4608 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4609 gdb_pymodule_addobject.
4610 * python/py-type.c (gdbpy_initialize_types): Use
4611 gdb_pymodule_addobject.
4612 * python/py-utils.c (gdb_pymodule_addobject): New function.
4613 * python/py-value.c (gdbpy_initialize_values): Use
4614 gdb_pymodule_addobject.
4615 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4616 * python/python.c (_initialize_python): Use
4617 gdb_pymodule_addobject.
4618
3d4a3c3e
TT
46192013-05-20 Tom Tromey <tromey@redhat.com>
4620
4621 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4622 * python/py-param.c (get_set_value, get_show_value): Use
4623 explicit decrefs.
4624 * python/python.c (start_type_printers, apply_type_printers):
4625 Use explicit decrefs.
4626
72ff8829
TT
46272013-05-20 Tom Tromey <tromey@redhat.com>
4628
4629 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4630 incref the module.
4631
02146ba5
TT
46322013-05-20 Tom Tromey <tromey@redhat.com>
4633
4634 * python/python.c (gdbpy_run_events): Decref the result
4635 of PyObject_CallObject.
4636
33ee792f
TT
46372013-05-20 Tom Tromey <tromey@redhat.com>
4638
4639 * python/py-symtab.c (set_sal): Use
4640 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4641 (symtab_and_line_to_sal_object): Update.
4642
fcb49fc8
TT
46432013-05-20 Tom Tromey <tromey@redhat.com>
4644
4645 * python/py-param.c (compute_enum_values): Decref 'item'.
4646
0646da15
TT
46472013-05-20 Tom Tromey <tromey@redhat.com>
4648
4649 * mi/mi-main.c: Include python-internal.h.
4650 (mi_cmd_list_features): Check gdb_python_initialized.
4651 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4652 (python_inferior_exit, python_new_objfile, add_thread_object)
4653 (delete_thread_object, py_free_inferior): Check
4654 gdb_python_initialized.
4655 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4656 gdb_python_initialized.
4657 * python/py-type.c (save_objfile_types): Check
4658 gdb_python_initialized.
4659 * python/python-internal.h (gdb_python_initialized): Declare.
4660 * python/python.c (ensure_python_env): Throw exception if
4661 Python not initialized.
4662 (before_prompt_hook, source_python_script_for_objfile)
4663 (start_type_printers, apply_type_printers,
4664 free_type_printers): Check gdb_python_initialized.
4665 * varobj.c (varobj_get_display_hint)
4666 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4667 (install_new_value_visualizer, varobj_set_visualizer)
4668 (value_get_print_value): Check gdb_python_initialized.
4669
999633ed
TT
46702013-05-20 Tom Tromey <tromey@redhat.com>
4671
4672 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4673 Check errors.
4674 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4675 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4676 Check errors.
4677 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4678 Check errors.
4679 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4680 Check errors.
4681 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4682 Check errors.
4683 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4684 init function to return 'int'.
4685 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4686 Return 'int'. Check errors.
4687 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4688 Check errors.
4689 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4690 Return 'int'. Check errors.
4691 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4692 Check errors.
4693 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4694 Check errors.
4695 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4696 Check errors.
4697 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4698 Check errors.
4699 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4700 Check errors.
4701 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4702 Check errors.
4703 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4704 Check errors.
4705 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4706 Check errors.
4707 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4708 Check errors.
4709 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4710 Check errors.
4711 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4712 Check errors.
4713 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4714 Check errors.
4715 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4716 Check errors.
4717 * python/python-internal.h (gdbpy_initialize_auto_load,
4718 gdbpy_initialize_values, gdbpy_initialize_frames,
4719 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4720 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4721 gdbpy_initialize_blocks, gdbpy_initialize_types,
4722 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4723 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4724 gdbpy_initialize_finishbreakpoints,
4725 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4726 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4727 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4728 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4729 gdbpy_initialize_signal_event,
4730 gdbpy_initialize_breakpoint_event,
4731 gdbpy_initialize_continue_event,
4732 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4733 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4734 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4735 * python/python.c (gdb_python_initialized): New global.
4736 (gdbpy_initialize_events): Return 'int'. Check errors.
4737 (_initialize_python): Check errors. Set
4738 gdb_python_initialized.
4739
18868860
TT
47402013-05-20 Tom Tromey <tromey@redhat.com>
4741
4742 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4743 Decref the reslut of PyObject_CallMethod.
4744
9f4ff0c2
TT
47452013-05-20 Tom Tromey <tromey@redhat.com>
4746
4747 * python/py-event.c (gdbpy_initialize_event_generic): Return
4748 early if PyType_Ready fails.
4749
0d3a2e8a
TT
47502013-05-20 Tom Tromey <tromey@redhat.com>
4751
4752 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4753 as 'default' in the switch.
4754
b86af38a
TT
47552013-05-20 Tom Tromey <tromey@redhat.com>
4756
4757 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4758 get_addr_from_python calls out of TRY_CATCH.
4759 (infpy_write_memory, infpy_search_memory): Likewise.
4760 * python/py-utils.c (get_addr_from_python): Return negative
4761 value on error. Use TRY_CATCH.
4762 * python/python-internal.h (get_addr_from_python): Use
4763 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4764
c127ec58
TT
47652013-05-20 Tom Tromey <tromey@redhat.com>
4766
4767 * python/py-event.c (evpy_emit_event): Decref the
4768 result of PyObject_CallFunctionObjArgs.
4769
ba327838
TT
47702013-05-20 Tom Tromey <tromey@redhat.com>
4771
4772 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4773 Correctly decref.
4774
d8191432
TT
47752013-05-20 Tom Tromey <tromey@redhat.com>
4776
4777 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4778
5d153bd1
TT
47792013-05-20 Tom Tromey <tromey@redhat.com>
4780
4781 * python/py-event.h (gdbpy_initialize_event_generic): Use
4782 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4783 * python/py-evts.c (add_new_registry): Use
4784 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4785 * python/python-internal.h
4786 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4787
56cc411c
TT
47882013-05-20 Tom Tromey <tromey@redhat.com>
4789
4790 * python/py-arch.c (archpy_disassemble): Update.
4791 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4792 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4793 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4794 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4795 macro.
4796 (GDB_PY_HANDLE_EXCEPTION): Update.
4797 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4798
8919e174
TT
47992013-05-20 Tom Tromey <tromey@redhat.com>
4800
4801 * python/python-internal.h (events_object_type): Remove.
4802
9b08f225
TT
48032013-05-20 Tom Tromey <tromey@redhat.com>
4804
f5aee5ee
AM
4805 * python/py-event.h (evpy_emit_event): Use
4806 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4807 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4808 New macro.
9b08f225 4809
f04010ff
TT
48102013-05-20 Tom Tromey <tromey@redhat.com>
4811
4812 * py-evtregistry.c (create_event_object): Decref
4813 eventregistry_object if PyList_New fails.
4814
3919fd96
TT
48152013-05-20 Tom Tromey <tromey@redhat.com>
4816
4817 * py-cmd.c (gdbpy_string_to_argv): Check result of
4818 PyList_New.
4819
0430e8cb
TT
48202013-05-20 Tom Tromey <tromey@redhat.com>
4821
4822 * python/python.c (before_prompt_hook): Add cleanup to
4823 decref 'hook'.
4824
764123e4
TT
48252013-05-20 Tom Tromey <tromey@redhat.com>
4826
4827 * python/py-function.c (fnpy_init): Decref result of
4828 PyObject_GetAttrString.
4829
634c58be
TT
48302013-05-20 Tom Tromey <tromey@redhat.com>
4831
4832 * python/py-threadevent.c (get_event_thread): Use
4833 CPYCHECKER_RETURNS_BORROWED_REF.
4834 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4835 New define.
4836 (pspace_to_pspace_object, objfile_to_objfile_object)
4837 (find_thread_object): Use it.
4838
62eec1a5
TT
48392013-05-20 Tom Tromey <tromey@redhat.com>
4840
4841 * python/py-arch.c (arch_object_type): Use
4842 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4843 * python/py-block.c (block_syms_iterator_object_type):
4844 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4845 * python/py-bpevent.c (breakpoint_event_object_type):
4846 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4847 * python/py-cmd.c (cmdpy_object_type): Use
4848 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4849 * python/py-continueevent.c (continue_event_object_type):
4850 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4851 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4852 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4853 * python/py-events.h (thread_event_object_type):
4854 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4855 * python/py-evtregistry.c (eventregistry_object_type): Use
4856 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4857 * python/py-exitedevent.c (exited_event_object_type):
4858 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4859 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4860 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4861 * python/py-function.c (fnpy_object_type): Use
4862 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4863 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4864 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4865 * python/py-infthread.c (thread_object_type): Use
4866 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4867 * python/py-lazy-string.c (lazy_string_object_type):
4868 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4869 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4870 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4871 * python/py-objfile.c (objfile_object_type): Use
4872 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4873 * python/py-param.c (parmpy_object_type):
4874 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4875 * python/py-progspace.c (pspace_object_type):
4876 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4877 * python/py-signalevent.c (signal_event_object_type):
4878 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4879 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4880 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4881 * python/py-type.c (type_object_type, field_object_type)
4882 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4883 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4884 define.
4885 (value_object_type, block_object_type, symbol_object_type)
4886 (event_object_type, stop_event_object_type, breakpoint_object_type)
4887 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4888
81ea8796
AT
48892013-05-20 Andreas Tobler <andreas@fgznet.ch>
4890
4891 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4892 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4893
a2ce51a0
DE
48942013-05-20 Doug Evans <dje@google.com>
4895
4896 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4897 For Fission.
4898 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4899 reading_dwo_directly.
4900 (struct signatured_type): New member dwo_unit.
4901 (struct die_reader_specs): New member comp_dir.
4902 (create_signatured_type_table_from_index): Use malloc for
4903 all_type_units instead of objfile's obstack.
4904 (create_all_type_units): Ditto.
4905 (fill_in_sig_entry_from_dwo_entry): New function.
4906 (add_type_unit): New function.
4907 (lookup_dwo_signatured_type): New function.
4908 (lookup_dwp_signatured_type): New function.
4909 (lookup_signatured_type): New arg cu. All callers updated.
4910 (init_cu_die_reader): Initialize comp_dir.
4911 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4912 Change assert of matching type signatures to call error on mismatch.
4913 (lookup_dwo_unit): Add assert.
4914 (init_tu_and_read_dwo_dies): New function.
4915 (init_cutu_and_read_dies): Call it.
4916 (build_type_unit_groups): Handle case of no type unit groups created.
4917 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4918 (lookup_dwo_cutu): Tweak complaint.
4919 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4920 (dwarf2_per_objfile_free): Free all_type_units.
4921
a25cd31f
JB
49222013-05-20 Joel Brobecker <brobecker@adacore.com>
4923
4924 * windows-nat.c (handle_unload_dll): Add missing empty line.
4925
4d804846
JB
49262013-05-20 Joel Brobecker <brobecker@adacore.com>
4927
4928 * dwarf2read.c (prototyped_function_p): New function.
4929 (read_subroutine_type): Use it.
4930
1c432e72
JB
49312013-05-20 Joel Brobecker <brobecker@adacore.com>
4932
4933 * rs6000-aix-tdep.c: De-indent some example code provided
4934 as a comment.
4935
4feebbdd
EBM
49362013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4937
4938 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4939 region is ok for a hardware watchpoint using the new ptrace interface
4940 on Power servers.
4941
7d0c9981
DE
49422013-05-17 Doug Evans <dje@google.com>
4943
4944 * NEWS: Mention new maintenance commands check-symtabs, and
4945 expand-symtabs, and renamed check-psymtabs.
4946 * psymtab.c (maintenance_check_psymtabs): Renamed from
4947 maintenance_check_symtabs. Only process already-expanded symbol
4948 tables.
4949 (_initialize_psymtab): Update.
4950 * symmisc.c (maintenance_check_symtabs): New function.
4951 (maintenance_expand_name_matcher): New function
4952 (maintenance_expand_file_matcher): New function
4953 (maintenance_expand_symtabs): New function.
4954 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4955 commands.
4956
6cbc7c3d
TT
49572013-05-17 Tom Tromey <tromey@redhat.com>
4958
4959 * python/py-inferior.c (infpy_read_memory): Don't call
4960 PyErr_SetString if PyObject_New fails.
4961 * python/py-frame.c (frame_info_to_frame_object): Don't call
4962 PyErr_SetString if PyObject_New fails.
4963
a48b32c0
L
49642013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
4965
4966 * acinclude.m4: Add check for dlopen in libdl.
4967 * configure.ac: Ditto.
4968 * configure: Regenerate.
4969
3de661e6
PM
49702013-05-17 Phil Muldoon <pmuldoon@redhat.com>
4971
4972 * frame.c (frame_stash): Convert to htab.
4973 (frame_addr_hash): New function.
4974 (frame_addr_hash_eq): New function.
4975 (frame_stash_create): Convert function to create
4976 a hash table.
4977 (frame_stash_add): Convert function to add an entry to a hash
4978 table.
4979 (frame_stash_find): Convert function to search the hash table.
4980 (frame_stash_invalidate): Convert function to empty the hash
4981 table.
4982 (get_frame_id): Only add to stash if a frame_id is created.
4983 (_initialize_frame): Call frame_stash_create.
4984
bb4168a9 49852013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
4986
4987 * configure.ac: Ensure MIG is available when building for GNU Hurd
4988 hosts.
4989 * configure: Regenerate.
4990
d1be3247
JB
49912013-05-16 Joel Brobecker <brobecker@adacore.com>
4992
4993 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4994
b8fea896
JB
49952013-05-16 Joel Brobecker <brobecker@adacore.com>
4996
4997 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4998 all cleanups are done before returning from this function.
4999
af880d85
JB
50002013-05-15 Joel Brobecker <brobecker@adacore.com>
5001
5002 * utils.h: #include "exceptions.h".
5003 (enum errors): Remove partial declaration.
5004
356a5233
JB
50052013-05-15 Joel Brobecker <brobecker@adacore.com>
5006
5007 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5008 * gdbarch.h, gdbarch.c: Regenerate.
5009 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5010 handling.
5011
5012 * rs6000-aix-tdep.h: New file.
5013 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5014 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5015 "xml-utils.h".
5016 (struct field_info, struct ld_info_desc): New types.
5017 (ld_info32_desc, ld_info64_desc): New static constants.
5018 (struct ld_info): New type.
5019 (rs6000_aix_extract_ld_info): New function.
5020 (rs6000_aix_shared_library_to_xml): Likewise.
5021 (rs6000_aix_ld_info_to_xml): Likewise.
5022 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5023 (rs6000_aix_init_osabi): Add call to
5024 set_gdbarch_core_xfer_shared_libraries_aix.
5025 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5026 Remove "xml-utils.h" include.
5027 (LdInfo): Delete typedef.
5028 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5029 Delete macros.
5030 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5031 Adjust code accordingly.
5032 (rs6000_core_ldinfo): Delete, folded into
5033 rs6000_aix_core_xfer_shared_libraries_aix.
5034 (rs6000_xfer_shared_library): Delete.
5035 (rs6000_xfer_shared_libraries): Reimplement.
5036
742ce053
MM
50372013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5038
5039 * record.c (record_goto_cmdlist): New.
5040 (cmd_record_goto): Split into this ...
5041 (cmd_record_goto_begin): ... this
5042 (cmd_record_goto_end): ... and this.
5043 (_initialize_record): Change "record goto" to prefix command.
5044 Add commands for "record goto begin" and "record goto end".
5045 Add an alias for "record goto start" to "record goto begin".
5046
e93ba630
JK
50472013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 * linespec.c (convert_linespec_to_sals): New comment for
5050 SOURCE_FILENAME assignment.
5051
5821aace
JK
50522013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5053
5054 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5055 internal_warning.
5056
a1b8c4cc
TT
50572013-05-14 Tom Tromey <tromey@redhat.com>
5058
5059 * eval.c (parse_and_eval_long): Make 'exp' const.
5060 * value.h (parse_and_eval_long): Update.
5061
23b3a2c3
TT
50622013-05-14 Tom Tromey <tromey@redhat.com>
5063
5064 * ui-file.c (gdb_fopen): Make arguments const.
5065 * ui-file.h (gdb_fopen): Make arguments const.
5066
ca623f82
TT
50672013-05-14 Tom Tromey <tromey@redhat.com>
5068
5069 * remote.c (remote_set_trace_notes): Make arguments const.
5070 * target.c (update_current_target): Update cast.
5071 * target.h (to_set_trace_notes): Make arguments const.
5072
503ebb2c
TT
50732013-05-14 Tom Tromey <tromey@redhat.com>
5074
5075 * go32-nat.c (go32_terminal_info): Make 'args' const.
5076 * inferior.h (child_terminal_info): Update.
5077 * inflow.c (child_terminal_info): Make 'args' const.
5078 * target.c (default_terminal_info): Make 'args' const.
5079 (debug_to_terminal_save_ours): Likewise.
5080 * target.h (struct target_ops) <to_terminal_info>: Make argument
5081 const.
5082
85e1311a
TT
50832013-05-13 Tom Tromey <tromey@redhat.com>
5084
5085 * gcore.c (create_gcore_bfd): Make 'filename' const.
5086 * gcore.h (create_gcore_bfd): Make 'filename' const.
5087 * record-full.c (record_full_save): Make 'recfilename' const.
5088 * target.c (target_save_record): Make 'filename' const.
5089 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5090 const.
5091 (target_save_record): Likewise.
5092
d62bfeaf
TT
50932013-05-13 Tom Tromey <tromey@redhat.com>
5094
f5aee5ee 5095 PR gdb/15338:
d62bfeaf
TT
5096 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5097 ranges section has been read.
5098
ac1ca910
TT
50992013-05-13 Tom Tromey <tromey@redhat.com>
5100
5101 PR exp/15364:
5102 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5103 STRUCTOP_PTR>: Return a not_lval value for
5104 EVAL_AVOID_SIDE_EFFECTS.
5105 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5106 for EVAL_AVOID_SIDE_EFFECTS.
5107
36d1c68c
JB
51082013-05-13 Joel Brobecker <brobecker@adacore.com>
5109
5110 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5111 floating point registers to register type before storing
5112 value.
5113 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5114 Likewise.
5115
21ff4686
TT
51162013-05-10 Joel Brobecker <brobecker@adacore.com>
5117 Tom Tromey <tromey@redhat.com>
5118
5119 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5120 New functions.
5121 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5122 Declare.
5123 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5124 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5125 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5126 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5127
d3685d60
TT
51282013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5129 Tom Tromey <tromey@redhat.com>
5130
5131 PR build/15414:
5132 * configure: Rebuild.
5133 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5134 with -Wno-format.
5135
eb9fe518
PA
51362013-05-10 Pedro Alves <palves@redhat.com>
5137
5138 * remote.c (_initialize_remote): Fix spelling of
5139 qXfer:traceframe-info:read packet in packet config command.
5140
9779ab84
PA
51412013-05-10 David Taylor <dtaylor@emc.com>
5142
5143 PR remote/15455
5144
5145 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5146 "QTro" at start of packet.
5147
060cfbef
JB
51482013-05-10 Joel Brobecker <brobecker@adacore.com>
5149
5150 * solib-aix.c (solib_aix_relocate_section_addresses):
5151 For the .bss section action, apply the same offset as
5152 the .data section.
5153
ab1c4e88
JB
51542013-05-10 Joel Brobecker <brobecker@adacore.com>
5155
5156 * solib-aix.c (solib_aix_relocate_section_addresses):
5157 Remove FIXME comment.
5158
c1357578
JB
51592013-05-10 Joel Brobecker <brobecker@adacore.com>
5160
5161 PR tdep/15420:
5162 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5163 New functions, directly copied from sparc-sol-thread.c.
5164 * sparc-sol-thread.c: Delete.
5165 * configure.ac: Remove code handling sparc-solaris-thread.c.
5166 * configure: Regenerate.
5167
1e611234
PM
51682013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5169
5170 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5171 filter logic.
5172 (backtrace_command): Add "no-filters" option parsing.
5173 (_initialize_stack): Alter help to reflect "no-filters" option.
5174 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5175 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5176 (py-frame.o): Add target
5177 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5178 filter files.
5179 * python/python.h: Add new frame filter constants, and flag enum.
5180 (apply_frame_filter): Add definition.
5181 * python/python.c (apply_frame_filter): New non-Python
5182 enabled function.
5183 * python/py-utils.c (py_xdecref): New function.
5184 (make_cleanup_py_xdecref): Ditto.
5185 * python/py-objfile.c: Declare frame_filters dictionary.
5186 (objfpy_dealloc): Add frame_filters dealloc.
5187 (objfpy_new): Initialize frame_filters attribute.
5188 (objfile_to_objfile_object): Ditto.
5189 (objfpy_get_frame_filters): New function.
5190 (objfpy_set_frame_filters): New function.
5191 * python/py-progspace.c: Declare frame_filters dictionary.
5192 (pspy_dealloc): Add frame_filters dealloc.
5193 (pspy_new): Initialize frame_filters attribute.
5194 (pspacee_to_pspace_object): Ditto.
5195 (pspy_get_frame_filters): New function.
5196 (pspy_set_frame_filters): New function.
5197 * python/py-framefilter.c: New file.
5198 * python/lib/gdb/command/frame_filters.py: New file.
5199 * python/lib/gdb/frames.py: New file.
5200 * python/lib/gdb/__init__.py: Initialize global frame_filters
5201 dictionary
5202 * python/lib/gdb/FrameDecorator.py: New file.
5203 * python/lib/gdb/FrameIterator.py: New file.
5204 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5205 * mi/mi-cmds.h: Declare.
5206 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5207 --no-frame-filter logic, and Python frame filter logic.
5208 (stack_enable_frame_filters): New function.
5209 (parse_no_frame_option): Ditto.
5210 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5211 filter logic.
5212 (mi_cmd_stack_list_locals): Ditto.
5213 (mi_cmd_stack_list_args): Ditto.
5214 (mi_cmd_stack_list_variables): Ditto.
5215 * NEWS: Add frame filter note.
5216
2cb9c859
DE
52172013-05-09 Doug Evans <dje@google.com>
5218
6bf667bb
DE
5219 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5220 All callers updated.
5221 (syms_from_objfile): Ditto. Make static.
5222 (symbol_file_add_with_addrs): Renamed from
5223 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5224 num_offsets. All callers updated.
5225 * symfile.h (syms_from_objfile): Delete.
5226
2cb9c859
DE
5227 * symfile.c (decrement_reading_symtab): Add assert.
5228 (increment_reading_symtab): Ditto.
5229
40aea477
JB
52302013-05-09 Joel Brobecker <brobecker@adacore.com>
5231
5232 * source.c (forward_search_command): Replace call to getc
5233 by call to fgetc.
5234 (reverse_search_command): Likewise.
5235
680d1742
DE
52362013-05-08 Doug Evans <dje@google.com>
5237
5238 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5239 matching test.
5240
17e760ae
JB
52412013-05-08 Joel Brobecker <brobecker@adacore.com>
5242
5243 * sol-thread.c (info_cb): Factorize the code a little.
5244
c0f5f490
JB
52452013-05-08 Joel Brobecker <brobecker@adacore.com>
5246
5247 * sol-thread.c (info_cb): Rework the output of the "maintenance
5248 info sol-threads" command a bit.
5249
5d74e061
JB
52502013-05-08 Joel Brobecker <brobecker@adacore.com>
5251
5252 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5253 Replace ti.ti_startfunc by ti.ti_pc.
5254
814a3ff7
JB
52552013-05-08 Joel Brobecker <brobecker@adacore.com>
5256
5257 * solib-aix.c (solib_aix_free_library_list): New function
5258 for the case where HAVE_LIBEXPAT is not defined.
5259
58ce7251
SDJ
52602013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5261
5262 PR breakpoints/15413:
5263 * breakpoint.c (condition_completer): Simplify the code to
5264 disconsider multiple locations of breakpoints when completing the
5265 "condition" command.
5266
be8b1ea6
PM
52672013-05-07 Pierre Muller <muller@sourceware.org>
5268
5269 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5270 instead of <sys/wait.h>.
5271
1e52bda6
PM
52722013-05-07 Pierre Muller <muller@sourceware.org>
5273
5274 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5275 trailing new line from warning message.
5276
27fd0c6b
PM
52772013-05-07 Pierre Muller <muller@sourceware.org>
5278
5279 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5280 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5281
e228ac87
JB
52822013-05-07 Joel Brobecker <brobecker@adacore.com>
5283
5284 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5285 error message (ARI fix).
5286
52872013-05-07 Joel Brobecker <brobecker@adacore.com>
5288
5289 * features/library-list-aix.dtd: Replace library-list by
5290 library-list-aix.
5291 * rs6000-nat.c: Replace library-list by library-list-aix
5292 throughout.
5293 * solib-aix.c: Likewise.
5294
52952013-05-07 Joel Brobecker <brobecker@adacore.com>
5296
5297 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5298 Renames TARGET_OBJECT_AIX_LIBRARIES.
5299 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5300 TARGET_OBJECT_LIBRARIES_AIX throughout.
5301 * solib-aix.c: Likwise.
5302
26a4dda9
YQ
53032013-05-07 Yao Qi <yao@codesourcery.com>
5304
5305 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5306 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5307
3582629f
YQ
53082013-05-07 Yao Qi <yao@codesourcery.com>
5309
5310 * solib-dsbt.c (enable_break): Declare.
5311 (dsbt_current_sos): Remove call to enable_break2.
5312 (enable_break2): Rename to enable_break. Set solib breakpoint
5313 on '_dl_debug_state'.
5314 (enable_break): Remove.
5315
aacbb8a5
LM
53162013-05-07 Luis Machado <lgustavo@codesourcery.com>
5317
5318 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5319 debug state prior to replicating existing hardware watchpoints or
5320 breakpoints.
5321
0c013353
JK
53222013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5323
5324 * gcore.c (gcore_create_callback): Ignore sections with
5325 separate_debug_objfile_backlink != NULL.
5326
a1217d97
SL
53272013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5328 Andrew Jenner <andrew@codesourcery.com>
5329 Chung-Lin Tang <cltang@codesourcery.com>
5330 Julian Brown <julian@codesourcery.com>
5331
5332 Based on the nios2-elf port from Altera Corporation.
5333
5334 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5335 nios2-linux-tdep.o.
5336 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5337 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5338 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5339 * nios2-tdep.h: New.
5340 * nios2-tdep.c: New.
5341 * nios2-linux-tdep.c: New.
5342 * features/Makefile (WHICH): Add nios2-linux.
5343 (nios2-linux-expedite): Set.
5344 * features/nios2-cpu.xml: New.
5345 * features/nios2.xml: New.
5346 * features/nios2-linux.xml: New.
5347 * features/nios2.c: New (autogenerated).
5348 * features/nios2-linux.c: New (autogenerated).
5349 * regformats/nios2-linux.dat: New (autogenerated).
5350 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5351 and commands.
5352
0892cb63
DE
53532013-05-06 Doug Evans <dje@google.com>
5354
3b7bacac
DE
5355 * symfile.c: Whitespace cleanup.
5356
0892cb63
DE
5357 * solist.h (struct target_so_ops): New member clear_so.
5358 * solib-svr4.c (svr4_clear_so): New function.
5359 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5360 * solib.c (clear_so): Renamed from free_so_symbols.
5361 All callers updated. Call target clear_so if it exists.
5362
40501e00
TT
53632013-05-06 Tom Tromey <tromey@redhat.com>
5364
5365 * ada-lang.c (ada_value_primitive_packed_val): Don't
5366 call value_incref.
5367 * value.c (set_value_parent): Incref the new parent and decref
5368 the old parent.
5369 (value_copy, value_primitive_field): Use set_value_parent.
5370
b6807d98
TT
53712013-05-06 Tom Tromey <tromey@redhat.com>
5372
5373 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5374 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5375 if needed.
5376 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5377 * dwarf2read.c (write_constant_as_bytes)
5378 (dwarf2_fetch_constant_bytes): New functions.
5379
3aef2284
TT
53802013-05-06 Tom Tromey <tromey@redhat.com>
5381
5382 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5383 parameters.
5384 (dwarf2_const_value_attr): Update.
5385
66f65e2b
TT
53862013-05-06 Tom Tromey <tromey@redhat.com>
5387
5388 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5389 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5390 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5391 Remove declaration.
5392
7919a973
TT
53932013-05-06 Tom Tromey <tromey@redhat.com>
5394
5395 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5396 objfile's obstack.
5397
a7bfba49
DE
53982013-05-06 Doug Evans <dje@google.com>
5399
3189cb12
DE
5400 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5401 * stabsread.h (process_one_symbol): Update declaration.
5402 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5403 * elfread.c (elf_symfile_relocate_probe): Ditto.
5404 * psymtab.c (relocate_psymtabs): Ditto.
5405 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5406 (objfile_relocate): Ditto.
5407 * objfiles.h (objfile_relocate): Update declaration.
5408 * symfile.c (relative_addr_info_to_section_offsets): Constify
5409 addrs parameter.
5410 (default_symfile_offsets): Ditto.
5411 (syms_from_objfile_1): Constify offsets parameter.
5412 (syms_from_objfile): Ditto.
5413 (symbol_file_add_with_addrs_or_offsets): Ditto.
5414 (symfile_map_offsets_to_segments): Constify data parameter.
5415 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5416 delta parameters of member relocate.
5417 (struct sym_probe_fns): Constify new_offsets,
5418 delta parameters of member sym_relocate_probe.
5419 (struct sym_fns): Constify section_addr_info parameter of member
5420 sym_offsets.
5421 (relative_addr_info_to_section_offsets): Update declaration.
5422 (default_symfile_offsets): Ditto.
5423 (syms_from_objfile): Ditto.
5424 (symfile_map_offsets_to_segments): Ditto.
5425
a7bfba49
DE
5426 * symfile.c (syms_from_objfile_1): Use correct section count when
5427 objfile->sf == NULL.
5428
5f8e0b8f
MF
54292013-05-06 Mike Frysinger <vapier@gentoo.org>
5430
5431 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5432
ea52d893
DE
54332013-05-06 Doug Evans <dje@google.com>
5434
5435 * psympriv.h (struct partial_symtab): Augment comment for member
5436 section_offsets.
5437
4d1eb6b4
JB
54382013-05-06 Joel Brobecker <brobecker@adacore.com>
5439
5440 Reimplement shared library support on ppc-aix...
5441 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5442 * features/library-list-aix.dtd: New file.
5443 * solib-aix.h, solib-aix.c: New file.
5444 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5445 (rs6000_find_toc_address_hook): Delete.
5446 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5447 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5448 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5449 "xml-utils.h".
5450 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5451 (vmap_symtab, fixup_breakpoints): Delete.
5452 (rs6000_xfer_shared_libraries): New function.
5453 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5454 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5455 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5456 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5457 (rs6000_xfer_shared_library): New function.
5458 (find_toc_address): Delete.
5459 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5460 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5461 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5462 before creating minimal symbol. Adjust function description
5463 accordingly.
5464 (scan_xcoff_symtab): Replace call to
5465 prim_record_minimal_symbol_and_info by call to
5466 record_minimal_symbol.
5467 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5468 around default_symfile_offsets.
5469 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5470 powerpc-aix targets.
5471 * config/rs6000/nm-rs6000.h: Delete.
5472 * config/powerpc/aix.mh (NAT_FILE): Delete.
5473 (NATDEPFILES): Remove xcoffsolib.o.
5474 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5475 (ALL_TARGET_OBS): Add solib-aix.o.
5476 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5477 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5478 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5479 * xcoffsolib.h, xcoffsolib.c: Delete.
5480
5481 * solib.c (reload_shared_libraries): Remove reference to
5482 SOLIB_CREATE_INFERIOR_HOOK.
5483 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5484 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5485 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5486 comment.
5487 * corelow.c (deprecated_core_resize_section_table): Delete.
5488 * exec.c: Remove include of xcoffsolib.h".
5489 (map_vmap, vmap): Delete.
5490 (exec_close_1): Remove references to vmap.
5491 (exec_file_attach): Remove vmap handling code, and reference
5492 to DEPRECATED_IBM6000_TARGET.
5493 (bfdsec_to_vmap): Delete.
5494 (exec_files_info): Remove block of code handling VMAP.
5495 * infcmd.c (post_create_inferior): Remove reference to
5496 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5497 * infrun.c (follow_exec): Remove reference to
5498 SOLIB_CREATE_INFERIOR_HOOK.
5499 * stack.c (print_frame): Remove reference to PC_SOLIB.
5500 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5501 (dsbt_relocate_main_executable): Likewise.
5502 * solib-frv.c (frv_current_sos): Likewise.
5503
0c4f667c
JB
55042013-05-06 Joel Brobecker <brobecker@adacore.com>
5505
5506 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5507 to target_write_memory and target_read_memory.
5508
726ce67c
JB
55092013-05-06 Joel Brobecker <brobecker@adacore.com>
5510
5511 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5512 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5513
c8c9911f
JB
55142013-05-06 Joel Brobecker <brobecker@adacore.com>
5515
5516 * darwin-nat.c: Replace all "%x" instances in format strings
5517 into "0x%x" throughout.
5518
fda184b6
JB
55192013-05-06 Joel Brobecker <brobecker@adacore.com>
5520
5521 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5522 gdb_assert by call to MACH_CHECK_ERROR.
5523 (darwin_attach_pid): Raise an error rather than a failed
5524 assertion when various system calls failed. Report a warning
5525 instead of raising a failed assertion when PREV_NOT is not NULL
5526 after call to mach_port_request_notification.
5527 (darwin_ptrace_me): Raise an error rather than a failed
5528 assertion when read returns nonzero.
5529
d1d69afb
JB
55302013-05-06 Joel Brobecker <brobecker@adacore.com>
5531
5532 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5533
dc90b24d
JK
55342013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5535
5536 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5537
faab9922
JK
55382013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5539
5540 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5541 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5542 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5543 a stale cleanup. Fix double free of NAME.
5544
e0ea48a0
EZ
55452013-05-04 Eli Zaretskii <eliz@gnu.org>
5546
5547 * windows-nat.c (windows_delete_thread): Accept an additional
5548 argument, the thread's exit code, and announce thread death when
5549 print_thread_events is non-zero and we are deleting a thread that
5550 is not the main thread.
5551 (get_windows_debug_event): Pass thread exit code to
5552 windows_delete_thread.
5553
83b2706a
KB
55542013-05-03 Kevin Buettner <kevinb@redhat.com>
5555
5556 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5557 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5558 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5559 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5560 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5561 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5562 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5563 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5564 (gdbarch_tdep): New struct.
5565 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5566 E_NUM_REGS.
5567 (v850e3v5_register_name): New function.
5568 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5569 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5570 code handling the struct return conventions for the RH850 ABI.
5571 Update all callers.
5572 (v850_eight_byte_align_p): New function.
5573 (v850_push_call_dummy): Push structs by value, not by reference
5574 for the RH850 ABI. Add support for eight byte alignment.
5575 (v850_dbtrap_breakpoint_from_pc): New function.
5576 (v850_gdbarch_init): Add ABI detection code. Register
5577 v850e3v5_register_name for the v850e3v5 architecture. Set the
5578 number of registers for v850e3v5. Register
5579 v850_dbtrap_breakpoint_from_pc as appropriate.
5580 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5581
d445b2f6
DE
55822013-05-03 Doug Evans <dje@google.com>
5583
5584 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5585 of bfd_count_sections.
5586 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5587 * symfile.c (default_symfile_offsets): Ditto.
5588 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5589 one entry, not bfd_count_sections entries.
5590
b3ce41ea
KB
55912013-05-03 Kevin Buettner <kevinb@redhat.com>
5592
5593 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5594 `save' and `restore' register groups. Don't include SPL
5595 or SPH in these groups.
5596 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5597 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5598 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5599 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5600 dwarf2_append_unwinders().
5601
96f7d3f1
PW
56022013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5603
5604 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5605 ignore SIGINT and SIGTRAP in case these internal signals are
5606 caught explicitely.
5607
b9dd1947
JB
56082013-05-01 Joel Brobecker <brobecker@adacore.com>
5609
5610 * darwin-nat.c (darwin_read_write_inferior): Change types
5611 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5612 of copy_count to "mach_msg_type_number_t".
5613 (darwin_read_dyld_info): Change type of parameter
5614 rdaddr to "gdb_byte *".
5615
4ca18a63
JB
56162013-05-01 Joel Brobecker <brobecker@adacore.com>
5617
5618 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5619 of &info->load_map from "char *" to "gdb_byte *".
5620
2b692d32
JB
56212013-05-01 Joel Brobecker <brobecker@adacore.com>
5622
5623 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5624 from "char *" to "gdb_byte *".
5625 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5626
a98c29a0
DE
56272013-04-30 Doug Evans <dje@google.com>
5628
6a506a2d
DE
5629 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5630 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5631 DWO stub. If DWO isn't found, just use stub.
5632 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5633
a98c29a0
DE
5634 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5635 calling init_cutu_and_read_dies.
5636
f92b06da
WT
56372013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5638
5639 * target-descriptions.c (maint_print_c_tdesc_cmd):
5640 Add case to parse structures as register types and
5641 bitfields.
5642
95eebdcc
WT
56432013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5644
5645 * MAINTAINERS (Write After Approval): Add myself to the list.
5646
019c1128
JB
56472013-04-30 Joel Brobecker <brobecker@adacore.com>
5648
5649 * sol-thread.c (rw_common): Change type of parameter "buf"
5650 to "gdb_byte *".
5651 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5652 rw_common to "gdb_byte *" instead of "char *".
5653
5812197c
JB
56542013-04-30 Joel Brobecker <brobecker@adacore.com>
5655
5656 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5657 of local variable msym to const struct bound_minimal_symbol.
5658 Adjust use accordingly.
5659 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5660
ecccb813
TS
56612013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5662
5663 * i386gnu-nat.c (CREG_OFFSET): New macro.
5664 (creg_offset): New array.
5665 (CREG_ADDR): Use creg_offset instead of reg_offset.
5666
f1d02dd4 56672013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
5668
5669 * mep-tdep.c (mep_write_pc): Delete.
5670 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5671 Add call to set_gdbarch_pc_regnum.
5672
f1d02dd4 56732013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
5674
5675 * common/filestuff.c: Replace #include <dirent.h> by
5676 #include "gdb_dirent.h".
5677
f1d02dd4 56782013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
5679
5680 * common/filestuff.c: Replace #include <sys/stat.h> by
5681 #include "gdb_stat.h".
5682
b385a60d
PM
56832013-04-29 Pierre Muller <muller@sourceware.org>
5684
5685 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5686 editCase function rule.
5687 (get_DW_AT_signature_type): Likewise.
5688
d27b54ad
JB
56892013-04-29 Joel Brobecker <brobecker@adacore.com>
5690
5691 * m32r-tdep.c (m32r_write_pc): Delete.
5692 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5693 Add call to set_gdbarch_pc_regnum.
5694
47d21dc5
PM
56952013-04-29 Pierre Muller <muller@sourceware.org>
5696
5697 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5698
9056882e
JB
56992013-04-29 Joel Brobecker <brobecker@adacore.com>
5700
5701 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5702
7ee4732a
YQ
57032013-04-28 Yao Qi <yao@codesourcery.com>
5704
5705 * solib-dsbt.c (fetch_loadmap): Re-indent.
5706 (displacement_from_map, enable_break2): Likewise.
5707 (dsbt_relocate_section_addresses): Likewise.
5708
2260af53 57092013-04-26 Joel Brobecker <brobecker@adacore.com>
5710
5711 GDB 7.6 released.
5712
ff546935
TT
57132013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5714
5715 PR corefiles/14983:
5716 * dwarf2read.c (process_full_comp_unit): Always create a static
5717 block.
5718
40fb6c5e
HZ
57192013-04-25 Hui Zhu <hui@codesourcery.com>
5720
5721 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5722 to loc->cmd_bytecode.
5723
74e04d1c
DE
57242013-04-24 Doug Evans <dje@google.com>
5725
5726 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5727
3cf62c1d
KS
57282013-04-22 Keith Seitz <keiths@redhat.com>
5729
5730 * tracepoint.c (trace_save): Call the writer's start method.
5731
bf9e4d0c
MB
57322013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5733
5734 PR gdb/10462
5735 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5736 before argument.
5737
5d71132c
TT
57382013-04-23 Tom Tromey <tromey@redhat.com>
5739
5740 * common/filestuff.c: Check USE_WIN32API before including
5741 sys/socket.h.
5742 (HAVE_F_GETFD): New define.
5743 (mark_cloexec): Check HAVE_F_GETFD.
5744 (gdb_open_cloexec): Change 'mode' to unsigned long.
5745 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5746 (gdb_pipe_cloexec): Check HAVE_PIPE.
5747 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5748 long.
5749
a11cfd87
HZ
57502013-04-23 Hui Zhu <hui@codesourcery.com>
5751
5752 PR gdb/15293
a11cfd87
HZ
5753 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5754
2d9442cc
HZ
57552013-04-23 Hui Zhu <hui@codesourcery.com>
5756
5757 PR gdb/15165
2d9442cc
HZ
5758 * breakpoint.c (dprintf_print_recreate): New.
5759 (save_breakpoints): Let it not save dprintf commands.
5760 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5761
614c279d
TT
57622013-04-22 Tom Tromey <tromey@redhat.com>
5763
5764 PR gdb/7912:
5765 * Makefile.in (SFILES): Add filestuff.c
5766 (COMMON_OBS): Add filestuff.o.
5767 (filestuff.o): New target.
5768 * auto-load.c (auto_load_objfile_script_1): Use
5769 gdb_fopen_cloexec.
5770 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5771 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5772 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5773 * common/agent.c (gdb_connect_sync_socket): Use
5774 gdb_socket_cloexec.
5775 * common/filestuff.c: New file.
5776 * common/filestuff.h: New file.
5777 * common/linux-osdata.c (linux_common_core_of_thread)
5778 (command_from_pid, commandline_from_pid, print_source_lines)
5779 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5780 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5781 gdb_fopen_cloexec.
5782 * common/linux-procfs.c (linux_proc_get_int)
5783 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5784 * config.in, configure: Rebuild.
5785 * configure.ac: Don't check for sys/socket.h. Check for
5786 fdwalk, pipe2.
5787 * corelow.c (core_open): Use gdb_open_cloexec.
5788 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5789 * fork-child.c (fork_inferior): Call close_most_fds.
5790 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5791 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5792 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5793 Use gdb_fopen_cloexec.
5794 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5795 gdb_open_cloexec.
5796 (linux_async_pipe): Use gdb_pipe_cloexec.
5797 * remote-fileio.c (remote_fileio_func_open): Use
5798 gdb_open_cloexec.
5799 * remote.c (remote_file_put, remote_file_get): Use
5800 gdb_fopen_cloexec.
5801 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5802 close_most_fds.
5803 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5804 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5805 * solib.c (solib_find): Use gdb_open_cloexec.
5806 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5807 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5808 (tfile_open): Use gdb_open_cloexec.
5809 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5810 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5811 * xml-support.c (xml_fetch_content_from_file): Use
5812 gdb_fopen_cloexec.
5813 * main.c (captured_main): Call notice_open_fds.
5814
5fda2332
EBM
58152013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5816
5817 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5818 'char *' to 'gdb_byte *'.
5819 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5820 'gdb_byte'.
5821
eb6c553b
YQ
58222013-04-22 Yao Qi <yao@codesourcery.com>
5823
5824 * infrun.c: Fix typo in comment.
5825
9991b207
SDJ
58262013-04-22 Andrew Haley <aph@redhat.com>
5827
5828 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5829 instead of "long".
5830
8b4833e3
YQ
58312013-04-20 Yao Qi <yao@codesourcery.com>
5832
5833 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5834 'char *' to 'gdb_byte *'. Cast the return value of
5835 'bt_ctf_get_char_array' to 'gdb_byte *'.
5836
bd3f3b55
PA
58372013-04-19 Pedro Alves <palves@redhat.com>
5838
5839 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5840 -Wpointer-sign.
5841 * configure: Regenerate.
5842
c49e7f76
PA
58432013-04-19 Pedro Alves <palves@redhat.com>
5844
5845 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5846 'void *'.
5847
12ff8552
PA
58482013-04-19 Pedro Alves <palves@redhat.com>
5849
5850 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5851 Change type of 'myaddr' parameter to gdb_byte pointer.
5852 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5853 to 'long long' pointer instead of to 'unsigned long long'.
5854 (monitor_write_memory_block, monitor_read_memory_single)
5855 (monitor_read_memory): Change type of 'myaddr' parameter to
5856 gdb_byte pointer.
5857
9c37696b
PA
58582013-04-19 Pedro Alves <palves@redhat.com>
5859
5860 * record.c (validate_history_size): Make parameter 'setting'
5861 unsigned.
5862
a398505b
PA
58632013-04-19 Pedro Alves <palves@redhat.com>
5864
5865 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5866 to 'gdb_byte *'.
5867
9f8afa72
PA
58682013-04-19 Pedro Alves <palves@redhat.com>
5869
5870 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5871 local to int.
5872
c714b426
PA
58732013-04-19 Pedro Alves <palves@redhat.com>
5874
5875 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5876 * ada-tasks.c (read_fat_string_value): Likewise.
5877
507a579c
PA
58782013-04-19 Pedro Alves <palves@redhat.com>
5879
5880 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5881 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5882 'offset', and adjust.
5883
f9d83a0b
PA
58842013-04-19 Pedro Alves <palves@redhat.com>
5885
5886 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5887 (read_index_from_section): Add cast to 'char *'.
5888
745eb4fd
PA
58892013-04-19 Pedro Alves <palves@redhat.com>
5890
5891 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5892
db5be46f
PA
58932013-04-19 Pedro Alves <palves@redhat.com>
5894
5895 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5896
0f928d68
PA
58972013-04-19 Pedro Alves <palves@redhat.com>
5898
5899 * record-full.c (record_full_get_bookmark): Change local 'ret'
5900 type to char * and add cast to gdb_byte *.
5901 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5902 string.
5903 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5904
89f6d837
PA
59052013-04-19 Pedro Alves <palves@redhat.com>
5906
5907 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5908 * python/py-prettyprint.c (print_string_repr): Change type of
5909 'output' local to char *. Add cast to gdb_byte * in
5910 LA_PRINT_STRING call.
5911 (print_children): Change type of 'output' local to char *.
5912 * python/py-value.c (valpy_string): Add cast to const char * in
5913 PyUnicode_Decode call.
5914
ce6ec7d8
PA
59152013-04-19 Pedro Alves <palves@redhat.com>
5916
5917 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5918 and change its type to 'const char *'. Adjust.
5919 (mips_send_packet): Add cast to 'char *', and remove cast to
5920 'unsigned char *'.
5921 (mips_receive_packet): Remove cast to 'unsigned char *'.
5922 (mips_load_srec): Use bfd_byte.
5923 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5924 (pmon_checkset): Make 'value' parameter unsigned.
5925
fda0389f
PA
59262013-04-19 Pedro Alves <palves@redhat.com>
5927
5928 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5929
bc20a4af
PA
59302013-04-19 Pedro Alves <palves@redhat.com>
5931
5932 * remote.c (remote_write_bytes_aux, compare_sections_command)
5933 (remote_read_qxfer)
5934 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5935 (remote_hostio_readlink, remote_bfd_iovec_pread)
5936 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5937 binary buffer, and char when buffer is used as string.
5938 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5939 (trace_save, tfile_open, traceframe_walk_blocks)
5940 (tfile_fetch_registers): Likewise.
5941
c628b528
PA
59422013-04-19 Pedro Alves <palves@redhat.com>
5943
5944 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5945 buffer and size_t size. Adjust.
5946 * ser-base.h (ser_base_write): Adjust.
5947 * ser-go32.c (cnts): Change type to size_t.
5948 (dos_write): Change prototype -- take 'void *'
5949 buffer and size_t size. Adjust.
5950 (dos_info): Print elements of 'cnts' as unsigned long.
5951 * serial.c (serial_write): Likewise.
5952 * serial.h (serial_write): Adjust.
5953 (struct serial_ops) <write>: Change prototype -- take 'void *'
5954 buffer and size_t size. Adjust.
5955
51a5cd90
PA
59562013-04-19 Pedro Alves <palves@redhat.com>
5957
5958 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5959 gdb_byte *.
5960 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5961
a9933661
PA
59622013-04-19 Pedro Alves <palves@redhat.com>
5963
5964 * alpha-tdep.c (alpha_extract_return_value): Use
5965 regcache_cooked_read_unsigned to read 'v0'.
5966
19afdd07
PA
59672013-04-19 Pedro Alves <palves@redhat.com>
5968
5969 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5970 parameters 'at', 'as' and 'offset' to uint32_t.
5971
96b32e50
PA
59722013-04-19 Pedro Alves <palves@redhat.com>
5973
5974 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5975 'is64' to signed 'int'.
5976
eb1bd1fb
PA
59772013-04-19 Pedro Alves <palves@redhat.com>
5978
5979 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5980 parameter to int *.
5981
463920bf
PA
59822013-04-19 Pedro Alves <palves@redhat.com>
5983
5984 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5985 'insnbuf' buffer type to unsigned int[].
5986
70242eb1
PA
59872013-04-19 Pedro Alves <palves@redhat.com>
5988
5989 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5990
9d1dd0e2
PA
59912013-04-19 Pedro Alves <palves@redhat.com>
5992
5993 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5994 unsigned long *.
5995
44096aee
PA
59962013-04-19 Pedro Alves <palves@redhat.com>
5997
5998 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5999 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6000 UINT_MAX.
6001 * mips-tdep.c (heuristic_fence_post): Change type to int.
6002 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6003
e4286e57
PA
60042013-04-19 Pedro Alves <palves@redhat.com>
6005
6006 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6007 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6008 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6009
001f13d8
PA
60102013-04-19 Pedro Alves <palves@redhat.com>
6011
6012 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6013 it to get a string view of the byte buffer.
6014 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6015 type to gdb_byte *. Adjust.
6016 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6017 Change local to char *.
6018 * solib-darwin.c (find_program_interpreter): Change return type to
6019 char *. Adjust.
6020 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6021 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6022 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6023 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6024 * solib-svr4.c (find_program_interpreter): Change return type to
6025 char *. Adjust.
6026 (enable_break): Change local 'interp_name' to char *.
6027 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6028 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6029 (spu_pseudo_register_write_spu): Use char for string buffer.
6030 Adjust.
6031 (info_spu_event_command, info_spu_signal_command): Add casts to
6032 'char *'.
6033
948f8e3d
PA
60342013-04-19 Pedro Alves <palves@redhat.com>
6035
6036 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6037 gdb_byte[].
6038 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6039 * ada-lang.c (ada_value_assign): Use gdb_byte.
6040 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6041 (alphanbsd_sigtramp_offset): Use gdb_byte.
6042 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6043 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6044 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6045 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6046 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6047 * arm-tdep.c (arm_stub_unwind_sniffer)
6048 (arm_displaced_init_closure): Use gdb_byte.
6049 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6050 (arm_default_thumb_le_breakpoint)
6051 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6052 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6053 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6054 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6055 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6056 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6057 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6058 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6059 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6060 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6061 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6062 (cris_store_return_value, cris_extract_return_value): Use
6063 gdb_byte.
6064 (constraint): Change type of parameter to char * from signed
6065 char*. Use gdb_byte.
6066 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6067 of local buffer to gdb_byte *.
6068 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6069 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6070 (add_address_entry): Change type of local buffer to gdb_byte[].
6071 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6072 (frv_push_dummy_call): Use gdb_byte.
6073 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6074 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6075 (hppa_hpux_supply_save_state): Use gdb_byte.
6076 * hppa-tdep.c (hppa32_push_dummy_call)
6077 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6078 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6079 (slotN_contents, replace_slotN_contents): Change type of parameter
6080 to gdb_byte *.
6081 (fetch_instruction, ia64_pseudo_register_write)
6082 (ia64_register_to_value, ia64_value_to_register)
6083 (ia64_extract_return_value, ia64_store_return_value)
6084 (ia64_push_dummy_call): Use gdb_byte.
6085 * m32c-tdep.c (m32c_return_value): Remove cast.
6086 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6087 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6088 gdb_byte.
6089 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6090 * mn10300-tdep.c (mn10300_store_return_value)
6091 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6092 gdb_byte.
6093 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6094 (moxie_process_record): Remove casts.
6095 * ppc-ravenscar-thread.c (supply_register_at_address)
6096 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6097 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6098 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6099 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6100 * remote.c (compare_sections_command): Use gdb_byte.
6101 * score-tdep.c (score7_free_memblock): Change type of parameter to
6102 gdb_byte *.
6103 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6104 gdb_byte *. Use gdb_byte.
6105 (sh_push_dummy_call_fpu): Use gdb_byte.
6106 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6107 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6108 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6109 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6110 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6111 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6112 (sh64_store_return_value, sh64_register_convert_to_virtual):
6113 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6114 (sh64_pseudo_register_write): Use gdb_byte.
6115 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6116 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6117 buffer.
6118 (irix_current_sos): Use gdb_byte.
6119 * solib-som.c (som_current_sos): Use gdb_byte.
6120 * sparc-ravenscar-thread.c (supply_register_at_address)
6121 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6122 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6123 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6124 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6125 'gdb_byte *'.
6126 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6127 'gdb_byte *'.
6128 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6129 * xstormy16-tdep.c (xstormy16_extract_return_value)
6130 (xstormy16_store_return_value): Change parameter type to
6131 'gdb_byte *'. Adjust.
6132 (xstormy16_push_dummy_call): Use gdb_byte.
6133 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6134 (call0_analyze_prologue, execute_code): Use gdb_byte.
6135
433730c9
PA
61362013-04-19 Vladimir Kargov <kargov@gmail.com>
6137 Pedro Alves <palves@redhat.com>
6138
6139 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6140 value contents.
6141
ac9ec31b
DE
61422013-04-17 Doug Evans <dje@google.com>
6143
6144 * dwarf2read.c (struct signatured_type): New member type.
6145 (struct attribute): Replace member signatured_type with signature.
6146 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6147 (read_call_site_scope): Call follow_die_ref instead of
6148 follow_die_ref_or_sig.
6149 (read_structure_type): Rewrite handling of signatured types.
6150 (read_enumeration_type): Ditto.
6151 (read_attribute_value): Update.
6152 (build_error_marker_type): New function.
6153 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6154 Don't call error for bad types, just build an error marker type.
6155 (dump_die_shallow): Update.
6156 (follow_die_sig_1): Renamed from follow_die_sig.
6157 Don't call error for bad types, instead return NULL.
6158 (follow_die_sig): New function.
6159 (get_signatured_type, get_DW_AT_signature_type): New functions.
6160
e546e8bb
YZ
61612013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6162
6163 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6164 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6165 function.
e546e8bb 6166
ab116149
YQ
61672013-04-17 Yao Qi <yao@codesourcery.com>
6168
6169 * top.c (print_gdb_configuration): Print configure-time
6170 parameter on using libbabeltrace or not.
6171
488a42b8
PA
61722013-04-16 Pedro Alves <palves@redhat.com>
6173
6174 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6175
f5fb825b
PA
61762013-04-16 Pedro Alves <palves@redhat.com>
6177
85d494ea 6178 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6179 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6180
e1154999
PA
61812013-04-16 Pedro Alves <palves@redhat.com>
6182
6183 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6184 * common/glibc_thread_db.h: ... this new file ...
6185 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6186
e3b50a7f
PA
61872013-04-16 Will Newton <will.newton@gmail.com>
6188 Pedro Alves <palves@redhat.com>
6189
6190 PR build/11881
6191
6192 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6193 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6194 HAVE_THREAD_DB_H.
6195
1c2e4450
PA
61962013-04-16 Pedro Alves <palves@redhat.com>
6197 Eli Zaretskii <eliz@gnu.org>
6198
6199 * NEWS: Mention "set foo unlimited".
6200
4031ecc5
DE
62012013-04-15 Doug Evans <dje@google.com>
6202
19c3d4c9
DE
6203 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6204 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6205 (create_dwo_cu_reader): Renamed from
6206 create_dwo_debug_info_hash_table_reader.
6207 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6208 Remove support for multiple CUs in a DWO file.
6209 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6210
4031ecc5
DE
6211 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6212 instead of phex.
6213 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6214 (create_dwo_in_dwp): Ditto.
6215
b340913d
TT
62162013-04-15 Tom Tromey <tromey@redhat.com>
6217
6218 * NEWS: Move recent entries into "since 7.6" section.
6219
cc16e6c9
TT
62202013-04-15 Tom Tromey <tromey@redhat.com>
6221
6222 PR c++/13588:
6223 * NEWS: Update.
6224 * break-catch-throw.c (struct exception_catchpoint)
6225 <exception_rx, pattern>: New fields.
6226 (fetch_probe_arguments, dtor_exception_catchpoint)
6227 (check_status_exception_catchpoint)
6228 (print_one_detail_exception_catchpoint): New functions.
6229 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6230 Compile regular expression if needed.
6231 (extract_exception_regexp): New function.
6232 (catch_exception_command_1): Use extract_exception_regexp.
6233 (compute_exception): Use fetch_probe_arguments.
6234 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6235 and check_status fields.
6236 * cp-abi.c (cplus_typename_from_type_info): New function.
6237 * cp-abi.h (cplus_typename_from_type_info): Declare.
6238 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6239 * gdb_regex.h (compile_rx_or_error): Declare.
6240 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6241 comment.
6242 (init_gnuv3_ops): Set get_type_from_type_info field.
6243 * probe.c (compile_rx_or_error): Move...
6244 * utils.c (compile_rx_or_error): ... here.
6245
72f1fe8a
TT
62462013-04-15 Tom Tromey <tromey@redhat.com>
6247
6248 PR c++/15176:
6249 * NEWS: Update.
6250 * break-catch-throw.c (compute_exception): New function.
6251 (exception_funcs): New global.
6252 (_initialize_break_catch_throw): Create $_exception.
6253 * cp-abi.c (cplus_type_from_type_info): New function.
6254 * cp-abi.h (cplus_type_from_type_info): Declare.
6255 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6256 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6257 (gnuv3_get_type_from_type_info): New functions.
6258 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6259
fc4746a2
TT
62602013-04-15 Tom Tromey <tromey@redhat.com>
6261
6262 * break-catch-throw.c (struct exception_names): New.
6263 (exception_functions): Change type.
6264 (re_set_exception_catchpoint): Look for SDT probes.
6265
15a73f56
TT
62662013-04-15 Tom Tromey <tromey@redhat.com>
6267
6268 PR c++/10119:
6269 * break-catch-throw.c (exception_functions): New global.
6270 (gnu_v3_exception_catchpoint_ops): Move earlier.
6271 (struct exception_catchpoint): New.
6272 (classify_exception_breakpoint): Rewrite.
6273 (re_set_exception_catchpoint): New function.
6274 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6275 Allocate a struct exception_catchpoint.
6276 (catch_exception_command_1): Update.
6277 (initialize_throw_catchpoint_ops): Set 're_set' method.
6278
916703c0
TT
62792013-04-15 Tom Tromey <tromey@redhat.com>
6280
6281 * Makefile.in (SFILES): Add break-catch-throw.c
6282 (COMMON_OBS): Add break-catch-throw.o.
6283 * break-catch-throw.c: New file.
6284 * breakpoint.c: Move exception-catching code to new file.
6285 (ep_parse_optional_if_clause): No longer static.
6286 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6287
6e72ca20
TT
62882013-04-15 Tom Tromey <tromey@redhat.com>
6289
6290 PR c++/9065:
6291 * NEWS: Update.
6292 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6293 * c-exp.y (TYPEID): New token.
6294 (exp): Add new TYPEID productions.
6295 (ident_tokens): Add "typeid".
6296 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6297 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6298 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6299 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6300 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6301 case.
6302 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6303 (build_std_type_info_type, gnuv3_get_typeid_type)
6304 (gnuv3_get_typeid): New functions.
6305 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6306 new fields on ABI object.
6307 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6308 * std-operator.def (OP_TYPEID): New.
6309
715c6909
TT
63102013-04-15 Tom Tromey <tromey@redhat.com>
6311
6312 * elfread.c (elf_symtab_read): Install versioned symbol under
6313 unversioned name as well.
6314
8de20a37
TT
63152013-04-15 Tom Tromey <tromey@redhat.com>
6316
6317 PR c++/11990:
6318 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6319 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6320 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6321 (gdb_demangle): New function.
6322 * cp-support.h (gdb_demangle): Declare.
6323 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6324 (dwarf2_name): Use gdb_demangle.
6325 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6326 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6327 suffixes from name.
6328 (gnuv3_print_method_ptr): Use gdb_demangle.
6329 * jv-lang.c (java_demangle): Use gdb_demangle.
6330 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6331 * language.c (unk_lang_demangle): Use gdb_demangle.
6332 * symtab.c (symbol_find_demangled_name)
6333 (demangle_for_lookup): Use gdb_demangle.
6334
591f19e8
TT
63352013-04-15 Tom Tromey <tromey@redhat.com>
6336
6337 PR c++/12824:
6338 * NEWS: Update.
6339 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6340 New constant.
6341 (classify_exception_breakpoint): New function.
6342 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6343 (print_mention_exception_catchpoint)
6344 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6345 (catch_exception_command_1): Handle "rethrow" catchpoint.
6346 (catch_rethrow_command): New function.
6347 (_initialize_breakpoint): Add "catch rethrow" command.
6348
4d40cad2
PM
63492013-04-15 Pierre Muller <muller@sourceware.org>
6350
6351 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6352 set_gdbarch_write_pc as deprecated anymore.
6353
30bcb456
JB
63542013-04-15 Joel Brobecker <brobecker@adacore.com>
6355
6356 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6357 declarations.
6358
da9160e4
YQ
63592013-04-13 Yao Qi <yao@codesourcery.com>
6360
6361 * ctf.c (_initialize_ctf): Include "completer.h".
6362 Call add_target_with_completer instead of add_target.
6363
39ed5604
JK
63642013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6365
6366 Fix GDB regression related to PR binutils/14813.
6367 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6368 * minidebug.c (lzma_close): Add return value comment.
6369 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6370 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6371 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6372
63732013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6374
6375 * config.in: Regenerate.
6376
d521ce57
TT
63772013-04-12 Tom Tromey <tromey@redhat.com>
6378
6379 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6380 const.
6381 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6382 (struct die_reader_specs) <buffer>: Likewise.
6383 (die_reader_func_ftype): Make 'info_ptr' const.
6384 (struct line_header) <include_dirs, statement_program_start,
6385 statement_program_end>: Now const.
6386 (struct file_entry) <name>: Likewise.
6387 (struct partial_die_info) <sibling>: Likewise.
6388 (struct dwarf_block) <data>: Likewise.
6389 (dwarf2_read_section): Remove cast.
6390 (dwarf2_get_section_info): Make 'bufp' const.
6391 (read_index_from_section): Constify.
6392 (dw2_get_file_names_reader): Make 'info_ptr' const.
6393 (dw2_get_primary_filename_reader): Likewise.
6394 (read_comp_unit_head): Make 'info_ptr' and return type const.
6395 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6396 Likewise.
6397 (read_abbrev_offset): Constify.
6398 (dwarf2_create_include_psymtab): Make 'name' const.
6399 (create_debug_types_hash_table): Update.
6400 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6401 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6402 Constify.
6403 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6404 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6405 (read_comp_units_from_section): Constify.
6406 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6407 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6408 const.
6409 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6410 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6411 (create_dwp_hash_table, dwarf2_ranges_read)
6412 (dwarf2_record_block_ranges): Constify.
6413 (read_die_and_children, read_die_and_siblings_1)
6414 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6415 const.
6416 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6417 (abbrev_table_read_table): Constify.
6418 (load_partial_dies): Make 'info_ptr' const.
6419 (read_partial_die, read_attribute_value, read_attribute): Make
6420 'info_ptr' and return type const.
6421 (read_address, read_initial_length)
6422 (read_checked_initial_length_and_offset, read_offset)
6423 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6424 const.
6425 (read_direct_string): Make 'buf' and return type const.
6426 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6427 (read_indirect_string): Make return type const.
6428 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6429 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6430 'info_ptr' const.
6431 (read_str_index): Make return type const.
6432 (add_include_dir): Make 'include_dir' const.
6433 (add_file_name): Make 'name' const.
6434 (dwarf_decode_line_header): Constify.
6435 (psymtab_include_file_name): Make return type const.
6436 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6437 (dwarf2_start_subfile): Make 'filename' const.
6438 (dwarf2_const_value_attr): Make 'bytes' const.
6439 (read_signatured_type_reader): Make 'info_ptr' const.
6440 (decode_locdesc): Constify.
6441 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6442 const.
6443 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6444 'mac_end', and return type const.
6445 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6446 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6447 type const.
6448 (per_cu_header_read_in): Constify.
6449 * symfile.h (dwarf2_get_section_info): Update.
6450
d47a1bc1
TT
64512013-04-12 Tom Tromey <tromey@redhat.com>
6452
6453 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6454
6eaaf48b
EZ
64552013-04-12 Eli Zaretskii <eliz@gnu.org>
6456
fc4c25bf 6457 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6458 * top.c (print_gdb_configuration): New function, displays the
6459 details about GDB configure-time parameters.
6460 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6461 * cli/cli-cmds.c (show_configuration): New function.
6462 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6463 * main.c (captured_main) <print_configuration>: New static var.
6464 <long_options>: Use it.
6465 If --configuration was given, call print_gdb_configuration.
6466
b292c783
JK
64672013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6468 Pedro Alves <palves@redhat.com>
6469
6470 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6471 (generated_files): Add gcore.
6472 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6473 HAVE_NATIVE_GCORE_HOST.
6474 (gcore): New.
6475 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6476 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6477 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6478 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6479 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6480 Add HAVE_NATIVE_GCORE_HOST.
6481 * configure: Regenerate.
6482 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6483 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6484 AC_CONFIG_FILES for gcore.
6485 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6486 gdb_have_gcore.
6487 * gdb_gcore.sh: Rename to ...
6488 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6489 and GCORE_TRANSFORM_NAME substitutions.
6490
c96b3c4f
JK
6491 Fix parsing tabs in ${gdb_target_obs}.
6492 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6493
d6cb50a2
JK
64942013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6495
6496 * remote.c (unpush_and_perror): Add output message final dot.
6497
cf2cb5ec
YQ
64982013-04-11 Yao Qi <yao@codesourcery.com>
6499
6500 * tracepoint.c (tfile_interp_line): Fit parameters line and
6501 utpp in one line.
6502
07293be4
JB
65032013-04-10 Joel Brobecker <brobecker@adacore.com>
6504
6505 * solib.c (solib_map_sections): Remove code overwriting
6506 SO->SO_NAME with the bfd's filename.
6507
f81d1120
PA
65082013-04-10 Pedro Alves <palves@redhat.com>
6509
6510 * cli/cli-decode.c (integer_unlimited_completer): New function.
6511 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6512 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6513 completer.
6514 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6515 (is_unlimited_literal): New function.
6516 (do_set_command): Handle literal "unlimited" arguments.
6517 * frame.c (_initialize_frame) <set backtrace limit>: Document
6518 "unlimited".
6519 * printcmd.c (_initialize_printcmd) <set print
6520 max-symbolic-offset>: Add help text.
6521 * record-full.c (_initialize_record_full) <set record full
6522 insn-number-max>: Likewise.
6523 * record.c (_initialize_record) <set record
6524 instruction-history-size, set record function-call-history-size>:
6525 Add help text.
6526 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6527 help text.
6528 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6529 Likewise.
6530 * source.c (_initialize_source) <set listsize>: Add help text.
6531 * utils.c (initialize_utils) <set height, set width>: Likewise.
6532 <set pagination>: Mention "set height unlimited".
6533 * valprint.c (_initialize_valprint) <set print elements, set print
6534 repeats>: Document "unlimited".
6535
2f9d54cf
PA
65362013-04-10 Pedro Alves <palves@redhat.com>
6537
6538 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6539 instead of disconnect_tracing.
6540 * infcmd.c (detach_command, disconnect_command): Call
6541 query_if_trace_running. Adjust.
6542 * top.c: Include "tracepoint.h".
6543 (quit_target): Delete. Contents moved ...
6544 (quit_force): ... here. Wrap each stage of teardown in
6545 TRY_CATCH. Call disconnect_tracing before detaching.
6546
393fd4c3
YQ
65472013-04-10 Hui Zhu <hui@codesourcery.com>
6548 Yao Qi <yao@codesourcery.com>
6549
6550 * configure.ac: Check libbabeltrace is installed.
6551 * config.in: Regenerate.
6552 * configure: Regenerate.
6553 * Makefile.in (LIBBABELTRACE): New.
6554 (CLIBS): Add LIBBABELTRACE.
6555 * ctf.c: Include "exec.h".
6556 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6557 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6558 (ctf_save_metadata_header): Define new type aliases in
6559 metadata.
6560 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6561 in metadata. Start a new faked packet for trace status.
6562 (ctf_write_status): Write trace status to CTF.
6563 (ctf_write_uploaded_tsv): Write TSV to CTF.
6564 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6565 (ctf_write_definition_end): End the faked packet.
6566
6567 (ctx, ctf_iter, trace_dirname): New.
6568 (start_pos): New variable.
6569 (ctf_destroy, ctf_open_dir, ctf_open): New.
6570 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6571 macros.
6572 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6573 (ctf_fetch_registers, ctf_xfer_partial): New.
6574 (ctf_get_trace_state_variable_value): New.
6575 (ctf_get_tpnum_from_frame_event): New.
6576 (ctf_get_traceframe_address): New.
6577 (ctf_trace_find, ctf_has_stack): New.
6578 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6579 (ctf_get_trace_status, ctf_read_status): New.
6580 (_initialize_ctf): New.
6581 * tracepoint.c (get_tracepoint_number): New
6582 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6583 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6584 * tracepoint.h: ... here.
6585 (get_tracepoint_number): Declare it.
6586 (get_uploaded_tsv): Declare it.
6587
6588 * NEWS: Mention new configure option.
6589
5c2b4418
HZ
65902013-04-10 Pedro Alves <palves@redhat.com>
6591 Hui Zhu <hui@codesourcery.com>
6592
6593 * breakpoint.c (dprintf_re_set): New.
6594 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6595 to dprintf_re_set.
6596
a5c66735
JB
65972013-04-09 Joel Brobecker <brobecker@adacore.com>
6598
6599 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6600 Remove solib-svr4.o from the list.
6601
9e77999c
JB
66022013-04-09 Joel Brobecker <brobecker@adacore.com>
6603
6604 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6605 Use gdb_assert_not_reached instead of invalid boolean expression.
6606
1927e618
PA
66072013-04-09 Pedro Alves <palves@redhat.com>
6608
6609 * remote.c (unpush_and_perror): New function.
6610 (readchar, remote_serial_write): Use it.
6611
10782d74
MM
66122013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6613
6614 * NEWS: Mention new btrace RSP packets.
6615
4c8429ef
TT
66162013-04-08 Tom Tromey <tromey@redhat.com>
6617
6618 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6619 long.
6620
8625fc1b
TT
66212013-04-08 Tom Tromey <tromey@redhat.com>
6622
6623 * maint.c (print_bfd_section_info): Print the section index.
6624 * symmisc.c (dump_msymbols): Print the section index.
6625
e27d198c
TT
66262013-04-08 Tom Tromey <tromey@redhat.com>
6627
6628 PR symtab/8424:
6629 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6630 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6631 * breakpoint.c (resolve_sal_pc): Update.
6632 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6633 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6634 (minsym_lookup_iterator_cb): Use it.
6635 (default_read_var_value): Update.
6636 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6637 Update.
6638 * infcmd.c (jump_command): Update.
6639 * linespec.c (minsym_found): Update.
6640 * maint.c (maintenance_translate_address): Update.
6641 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6642 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6643 * parse.c (write_exp_msymbol): Update.
6644 * printcmd.c (address_info): Update.
6645 * psymtab.c (find_pc_sect_psymbol): Update.
6646 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6647 SYMBOL_OBJ_SECTION.
6648 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6649 Don't initialize SYMBOL_OBJ_SECTION.
6650 * spu-tdep.c (spu_catch_start): Update.
6651 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6652 * symmisc.c (dump_msymbols, print_symbol): Update.
6653 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6654 how fallback section is computed.
6655 (fixup_symbol_section): Update.
6656 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6657 Update.
6658 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6659 Initialize SYMBOL_SECTION.
6660 * symtab.h (struct general_symbol_info) <section>: Update comment.
6661 <obj_section>: Remove.
6662 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6663 (SYMBOL_OBJFILE): New macro.
6664
e6dc44a8
TT
66652013-04-08 Tom Tromey <tromey@redhat.com>
6666
6667 * coffread.c (record_minimal_symbol): Update.
6668 * dbxread.c (record_minimal_symbol): Update.
6669 * elfread.c (record_minimal_symbol): Update.
6670 * machoread.c (macho_symtab_add_minsym): Update.
6671 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6672 Update.
6673 * minsyms.c (prim_record_minimal_symbol): Update.
6674 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6675 argument.
6676 (prim_record_minimal_symbol_and_info): Likewise.
6677 * minsyms.h (prim_record_minimal_symbol_full)
6678 (prim_record_minimal_symbol_and_info): Update.
6679 * symtab.c (allocate_symbol, initialize_symbol)
6680 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6681 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6682 Update.
6683
36192a8d
TT
66842013-04-08 Tom Tromey <tromey@redhat.com>
6685
6686 PR symtab/8423:
6687 * solib-som.c (som_solib_section_offsets): Use BFD section
6688 indices. Set offsets for all sections.
6689 * somread.c (som_symtab_read): Compute BFD section for
6690 symbol. Use prim_record_minimal_symbol_and_info.
6691 (som_symfile_read): Fix comment.
6692 (struct find_section_offset_arg): New.
6693 (find_section_offset, set_section_index): New functions.
6694 (som_symfile_offsets): Use set_section_index to compute
6695 section indices.
6696
65cf3563
TT
66972013-04-08 Tom Tromey <tromey@redhat.com>
6698
6699 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6700 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6701 gdb_bfd_section_index.
6702 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6703 New functions.
6704 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6705 Declare.
6706 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6707 Update.
6708 * objfiles.c (add_to_objfile_sections_full): New function.
6709 (add_to_objfile_sections): Use it.
6710 (build_section_table): Rewrite.
6711 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6712 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6713 (struct objfile) <sections>: Update comment.
6714 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6715 is NULL.
6716 (ALL_OBJSECTIONS): Use it.
6717 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6718 * solib-frv.c (frv_relocate_main_executable): Update.
6719 * solib-target.c (solib_target_relocate_section_addresses):
6720 Use gdb_bfd_section_index.
6721 * symfile.c (build_section_addr_info_from_section_table):
6722 Use gdb_bfd_section_index.
6723 (build_section_addr_info_from_bfd, place_section): Likewise.
6724 * symtab.c (fixup_section): Update.
6725 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6726
7cbd4a93
TT
67272013-04-08 Tom Tromey <tromey@redhat.com>
6728
6729 * minsyms.h (struct bound_minimal_symbol): New.
6730 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6731 Remove objfile argument.
6732 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6733 Return bound_minimal_symbol.
6734 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6735 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6736 Return bound_minimal_symbol.
6737 (in_gnu_ifunc_stub): Update.
6738 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6739 Remove 'objfile_p' argument.
6740 (lookup_solib_trampoline_symbol_by_pc): Update.
6741 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6742 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6743 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6744 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6745 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6746 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6747 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6748 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6749 stack.c, symtab.c, tui/tui-disasm.c: Update.
6750
f85f34ed
TT
67512013-04-08 Tom Tromey <tromey@redhat.com>
6752
6753 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6754 Use symbol's obstack, not an objfile.
6755 * coffread.c (process_coff_symbol): Update.
6756 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6757 * jv-lang.c (add_class_symbol): Update.
6758 * mdebugread.c (new_symbol): Update.
6759 * minsyms.c (prim_record_minimal_symbol_full)
6760 (terminate_minimal_symbol_table): Update.
6761 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6762 * stabsread.c (define_symbol, read_enum_type): Update.
6763 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6764 Handle Ada specially.
6765 (symbol_set_language): Add 'obstack' argument.
6766 (symbol_set_names): Update.
6767 (symbol_natural_name, symbol_demangled_name): Always use
6768 ada_decode_symbol.
6769 * symtab.h (struct general_symbol_info)
6770 <language_specific::obstack>: New field.
6771 <ada_mangled>: New field.
6772 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6773 (symbol_set_language): Update.
6774
ccde22c0
TT
67752013-04-08 Tom Tromey <tromey@redhat.com>
6776
6777 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6778 Take an obstack, not an objfile.
6779 (symbol_set_names): Update.
6780 * symtab.h (symbol_set_demangled_name): Update.
6781
e623cf5d
TT
67822013-04-08 Tom Tromey <tromey@redhat.com>
6783
6784 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6785 allocate_symbol.
6786 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6787 (read_func_scope): Call allocate_template_symbol.
6788 (new_symbol_full): Call allocate_symbol.
6789 * jit.c (finalize_symtab): Call allocate_symbol.
6790 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6791 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6792 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6793 (common_block_end): Call allocate_symbol.
6794 * symtab.c (allocate_symbol, initialize_symbol)
6795 (allocate_template_symbol): New functions.
6796 * symtab.c (allocate_symbol, initialize_symbol)
6797 (allocate_template_symbol): Declare.
6798 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6799
f6de8ec2
PA
68002013-04-08 Pedro Alves <palves@redhat.com>
6801 Keith Seitz <keiths@redhat.com>
6802
6803 * breakpoint.c (create_breakpoint): Rename
6804 "parse_condition_and_thread" parameter to "parse_arg". Update
6805 describing comment. If !PARSE_ARG, then error out if ARG is not
6806 the empty string after extracting the location.
6807 * breakpoint.h (create_breakpoint): Rename
6808 "parse_condition_and_thread" parameter to "parse_arg".
6809
f65ce5fb
AR
68102013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6811
6812 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6813
cc5925ad
YQ
68142013-04-07 Yao Qi <yao@codesourcery.com>
6815
6816 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6817 and 'addr2' to CORE_ADDR.
6818 * target.c (update_current_target): Update.
6819 * target.h (struct target_ops) <to_trace_find>: Change parameter
6820 type to CORE_ADDR.
6821 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6822 'addr2' to CORE_ADDR.
6823 (tfile_trace_find): Likewise.
6824 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6825 Change local variable 'addr' to type CORE_ADDR.
6826 * tracepoint.h (tfind_1): Update declaration.
6827
d9ac0664
EZ
68282013-04-06 Eli Zaretskii <eliz@gnu.org>
6829
6830 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6831 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6832 Include main.h.
6833
6834 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6835 here...
6836 * main.h (windows_get_absolute_argv0): ...to here.
6837
02142a6c
DE
68382013-04-05 Doug Evans <dje@google.com>
6839
6840 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6841 (read_cutu_die_from_dwo): Add comments.
6842 (read_structure_type): Update comment.
6843 (read_enumeration_type, read_namespace_type): Update comment.
6844 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6845
43662968
JK
68462013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6847
6848 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6849 * Makefile.in (gdb.z): Remove.
6850 (install-only): Remove $(man1dir) and gdb.1 installation.
6851 * gdb.1: Remove.
6852
9ead1b84
JK
68532013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6854
6855 Fix compatibility with Linux kernel 3.8.3.
6856 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6857 to more inner block. Remove parsing of NUMBER from outer block.
6858 Parse NUMBER only if KEYWORD has been identified.
6859
d1794952
JK
68602013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6861
6862 Fix variable name shadowing.
6863 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6864 filename to mapsfilename and update its uses.
6865
9025569e
EZ
68662013-04-05 Eli Zaretskii <eliz@gnu.org>
6867
6868 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6869 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6870 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6871 details of the problem.
6872
c9a6ce02
PA
68732013-04-04 Pedro Alves <palves@redhat.com>
6874 Hui Zhu <hui@codesourcery.com>
6875
6876 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6877 tracepoint, reset its STEP_COUNT and call validate_actionline.
6878
5ff888ce
DE
68792013-04-03 Doug Evans <dje@google.com>
6880
bf6af496
DE
6881 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6882 read_die_and_siblings.
6883 (read_die_and_siblings): New function.
6884 (read_cutu_die_from_dwo): Dump die if requested.
6885 (read_die_and_children): Call read_full_die_1 and
6886 read_die_and_siblings_1.
6887 (read_full_die): Dump die if requested.
6888
6889 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6890
0ac5b59e
DE
6891 * dwarf2read.c (struct dwo_file): New member comp_dir.
6892 Rename member name to dwo_name. All uses updated.
6893 (hash_dwo_file): Include comp_dir in computation.
6894 (eq_dwo_file): Ditto.
6895 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6896 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6897
5ff888ce
DE
6898 * psymtab.c (read_psymtabs_with_fullname): Don't call
6899 psymtab_to_fullname if the basenames are different.
6900
ec83d211
JK
69012013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6902
6903 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6904 New entry about "fullname" presence.
6905
4f4352f7
PA
69062013-04-03 Pedro Alves <palves@redhat.com>
6907
6908 * NEWS: Mention x86_64/Cygwin as new native configuration.
6909
3d1d5ea3
DE
69102013-04-02 Doug Evans <dje@google.com>
6911
6912 * dwarf2read.c (read_structure_type): Fix typo in comment.
6913
be9a8770
PA
69142013-04-02 Pedro Alves <palves@redhat.com>
6915
6916 * NEWS: Mention "set/show debug aarch64", "set/show debug
6917 coff-pe-read" and "set/show debug mach-o".
6918
a46c1e42
PA
69192013-04-02 Pedro Alves <palves@redhat.com>
6920
6921 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6922
3ad18b19
EZ
69232013-04-02 Eli Zaretskii <eliz@gnu.org>
6924
6925 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6926 gdb_string.h is now in common/.
6927
e9f1758d
PA
69282013-04-02 Pedro Alves <palves@redhat.com>
6929
6930 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6931 under "New options".
6932
049dc89b
JK
69332013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6934
6935 Revert this patch:
6936 PR gdb/15275
6937 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6938
c33e31fd
PA
69392013-04-02 Pedro Alves <palves@redhat.com>
6940
6941 PR gdb/15275
6942
6943 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6944 (remote_serial_write): New function.
6945 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6946
ea5f3910
JW
69472013-04-01 Jiong Wang <jiwang@tilera.com>
6948
6949 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 6950 "New targets" sections.
ea5f3910 6951
5c6fa7ab
DE
69522013-04-01 Doug Evans <dje@google.com>
6953
c0f78cd4
DE
6954 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6955 (process_enumeration_scope): Simplify.
6956
0186c6a7
DE
6957 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6958 type_unit_group ...
6959 (struct signatured_type): ... to here.
6960 (sig_type_ptr): New typedef.
6961 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6962 out of union 't'. All uses updated.
6963 (dw2_get_file_names_reader): Assert not called for a type unit.
6964 (dw2_get_file_names): Assert not called for a type unit or type
6965 unit group.
6966 (build_type_psymtabs_reader): Assert called for a type unit.
6967 (build_type_psymtab_dependencies): Assert called for a type unit group.
6968
5c6fa7ab
DE
6969 * dwarf2read.c (free_dwo_file): Add comment.
6970 (dwarf2_per_objfile_free): Unref dwp bfd.
6971
b3c0ad67 69722013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
6973
6974 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6975 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6976 (read_pe_exported_syms): Remove unused 'exportix'.
6977 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6978 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6979 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6980
e2df1547
AR
69812013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6982
6983 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6984 (print_it_watchpoint): Remove unused 'bl'.
6985 (say_where): Remove unused 'uiout'.
6986 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6987 (bkpt_breakpoint_hit): Remove unused 'b'.
6988 (internal_bkpt_print_it): Remove unused 'uiout'.
6989 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6990
d81e75c0
TD
69912013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6992
6993 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6994 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6995
5a8b3f62
DE
69962013-03-29 Doug Evans <dje@google.com>
6997
ab5088bf
DE
6998 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6999 Delete arg is_dwp. All callers updated.
7000 (open_dwp_file): New function.
7001 (open_and_init_dwp_file): Call it.
7002 (get_dwp_file): New function.
7003 (lookup_dwo_cutu): Call it.
7004
a8ad1e57
DE
7005 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7006 unnecessary, cleanup.
7007
6296d8c1
DE
7008 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7009
b0c7bfa9
DE
7010 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7011 (lookup_dwo_unit): New function.
7012 (init_cutu_and_read_dies): Move DWO handling to new functions.
7013
c88ee1f0
DE
7014 * dwarf2read.c (struct signatured_type): Tweak comment.
7015 (struct dwo_unit): Tweak comment.
7016 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7017 (create_dwo_debug_info_hash_table): Tweak comment.
7018 (dwarf2_per_cu_offset_and_type): Tweak comment.
7019
5a8b3f62
DE
7020 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7021 missing .debug_types section.
7022
9852c492
YQ
70232013-03-29 Yao Qi <yao@codesourcery.com>
7024
7025 * corelow.c: Include "completer.h".
7026 (_initialize_corelow): Call add_target_with_completer with
7027 argument 'filename_completer'.
7028 * tracepoint.c: Likewise.
7029 * exec.c (_initialize_exec): Likewise.
7030 * target.c (add_target): Rename to ...
7031 (add_target_with_completer): ... this. Call set_cmd_completer
7032 if parameter completer is not NULL.
7033 (add_target): New.
7034 * target.h: Include "command.h".
7035 (add_target_with_completer): Declare it.
7036
af312be7
JB
70372013-03-28 Joel Brobecker <brobecker@adacore.com>
7038
7039 * coffread.c (is_import_fixup_symbol): New function.
7040 (record_minimal_symbol): Use is_import_fixup_symbol to
7041 detect import fixup symbols, and discard them.
7042
8a0459fd
DE
70432013-03-28 Doug Evans <dje@google.com>
7044
0349ea22
DE
7045 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7046 types hash table until we know we need it.
7047
f652bce2
DE
7048 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7049 index numbers.
7050
e4a48d9d
DE
7051 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7052 All callers updated.
7053 (dw2_print_stats): Print #read CUs too.
7054 (dump_die_shallow): Print signatured types better.
7055
8a0459fd
DE
7056 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7057 info_or_types_section to section. All uses updated.
7058 (struct dwo_unit): Ditto.
7059
bd3eecc3
PA
70602013-03-28 Pedro Alves <palves@redhat.com>
7061
7062 * NEWS (New options): New section.
7063 (New options): Mention set/show remote trace-status-packet.
7064 * remote.c (PACKET_qTStatus): New enumeration value.
7065 (remote_get_trace_status): Skip sending qTStatus if the packet is
7066 disabled. Use packet_ok.
7067 (_initialize_remote): Register a configuration command for
7068 qTStatus packet.
7069
41245087
DE
70702013-03-28 Doug Evans <dje@google.com>
7071
7edbb660
DE
7072 * symfile.c (find_separate_debug_file): Add comment.
7073 (terminate_after_last_dir_separator): Tweak comment.
7074
0018ea6f
DE
7075 * dwarf2read.c (create_partial_symtab): Add forward decl.
7076 (create_partial_symtab): Move to be closer to other psymtab functions.
7077 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7078
ca69b9e6
DE
7079 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7080 (compute_symtab_includes): Remove unnecessary forward declaration.
7081 (die_needs_namespace): Add comment marking group of functions for
7082 dwarf2 name computation.
7083
a9375afe
DE
7084 * typeprint.c (_initialize_typeprint): Improve type help text.
7085
41245087
DE
7086 * python/python.c (finish_python_initialization): Provide suggestion
7087 for how to tell gdb to find its python files.
7088
7f7cc265
PA
70892013-03-28 Pedro Alves <palves@redhat.com>
7090
7091 PR gdb/15294
7092
7093 * source.c (_initialize_source): Change back "set listsize" to an
7094 integer command.
7095
ec21308c
JK
70962013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7097
7098 PR gdb/15275
7099 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7100
840a9a1f
PA
71012013-03-27 Pedro Alves <palves@redhat.com>
7102
7103 * top.c (history_size): Rename to ...
7104 (history_size_setshow_var): ... this. Add comment.
7105 (show_commands): Use readline's 'history_length' instead of
7106 computing the history length by calling history_get in a loop.
7107 (set_history_size_command): Error out for sizes over INT_MAX.
7108 Restore previous history size on invalid size.
7109 (init_history): If HISTSIZE is negative, leave the history size as
7110 zero. Add comments.
7111 (init_main): Adjust.
7112
826ecc4d
PA
71132013-03-27 Pedro Alves <palves@redhat.com>
7114
7115 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7116 coff_pe_read" command to "set debug coff-pe-read".
7117
0ccfeeae
MM
71182013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7119
7120 * record.c (command_size_to_target_size): Fix size comparison.
7121 Change parameter type from pointer to integer to integer.
7122 Update all users.
7123
40653b35
PM
71242013-03-27 Pierre Muller <muller@sourceware.org>
7125
7126 * windows-nat.c (handle_output_debug_string): Avoid typecast
7127 from integer of different size warning.
7128
c62fa0e2
JB
71292013-03-26 Joel Brobecker <brobecker@adacore.com>
7130
7131 * windows-nat.c (handle_output_debug_string): Add empty line
7132 after local block variable definition.
7133
2c619be2
PA
71342013-03-26 Pedro Alves <palves@redhat.com>
7135
7136 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7137 (net_open): Make 'polls' local unsigned.
7138
1b493192
PA
71392013-03-26 Pedro Alves <palves@redhat.com>
7140
7141 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7142 a zuinteger command instead of uinteger.
7143
7ee70bf5
PA
71442013-03-26 Pedro Alves <palves@redhat.com>
7145
7146 * record-full.c (record_full_insn_num): Make it unsigned.
7147 (record_full_check_insn_num, record_full_message)
7148 (record_full_registers_change, record_full_xfer_partial): Remove
7149 record_full_insn_max_num check (it's always != 0).
7150 (record_full_info, record_full_restore): Use %u as format string.
7151 (): Use %u as format string.
7152 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7153 check (it's always != 0).
7154
dfd1f9bb
PA
71552013-03-26 Pedro Alves <palves@redhat.com>
7156
7157 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7158 and "set dcache size" commands zuinteger instead of uinteger.
7159
addb4faf
PA
71602013-03-26 Pedro Alves <palves@redhat.com>
7161
7162 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7163 command zuinteger instead of uinteger.
7164
b75bf488
PA
71652013-03-26 Pedro Alves <palves@redhat.com>
7166
7167 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7168 zuinteger instead of uinteger.
7169
42c634cb
PA
71702013-03-26 Pedro Alves <palves@redhat.com>
7171
7172 * record.c (record_insn_history_size_setshow_var)
7173 (record_call_history_size_setshow_var): New globals.
7174 (command_size_to_target_size): New function.
7175 (cmd_record_insn_history, cmd_record_call_history): Use
7176 command_size_to_target_size instead of cast.
7177 (validate_history_size, set_record_insn_history_size)
7178 (set_record_call_history_size): New functions.
7179 (_initialize_record): Install set_record_insn_history_size and
7180 set_record_call_history_size as "set" hooks of "set record
7181 instruction-history-size" and "set record
7182 function-call-history-size".
7183
1fb2e2b5
PA
71842013-03-26 Pedro Alves <palves@redhat.com>
7185
7186 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7187 use with history_max_entries use. Remove FIXME note.
7188
99c819ee
MM
71892013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7190
7191 * record-btrace.c (record_btrace_close): Call
7192 record_btrace_auto_disable.
7193
9f9e404c
JB
71942013-03-25 Joel Brobecker <brobecker@adacore.com>
7195
7196 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7197
ebcdfe33
DE
71982013-03-25 Doug Evans <dje@google.com>
7199
7200 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7201
24955f63
TT
72022013-03-25 Tom Tromey <tromey@redhat.com>
7203
7204 PR symtab/11462:
7205 * c-exp.y (exp): Add new productions for destructors after '.' and
7206 '->'.
7207 (write_destructor_name): New function.
7208
fce632b6
TT
72092013-03-25 Tom Tromey <tromey@redhat.com>
7210
7211 PR c++/9197:
7212 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7213 value_struct_elt, not lookup_struct_elt_type.
7214 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7215 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7216 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7217
a4341769
YQ
72182013-03-25 Yao Qi <yao@codesourcery.com>
7219
7220 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7221 instead of '_mkdir'.
7222
b5981e5a
EZ
72232013-03-23 Eli Zaretskii <eliz@gnu.org>
7224
7225 * windows-nat.c (windows_get_absolute_argv0): New function.
7226 * windows-nat.h: Add its prototype.
7227
7228 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7229 Use IS_DIR_SEPARATOR instead of looking for a character inside
7230 SLASH_STRING. Include filenames.h.
7231 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7232 relocate_gdb_directory works when passed gdb_program_name.
7233 Include windows-nat.h.
7234
598d3636
JK
72352013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7236
7237 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7238 * remote.c (trace_error): Remove the special handling of '2'.
7239 (readchar) <SERIAL_EOF>
7240 (readchar) <SERIAL_ERROR>
7241 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7242 (remote_get_trace_status): Call throw_exception if EX is
7243 TARGET_CLOSE_ERROR.
7244 * utils.c (perror_with_name): Rename to ...
7245 (throw_perror_with_name): ... here. New parameter errcode, describe it
7246 in the function comment.
7247 (perror_with_name): New function wrapper.
7248 * utils.h (enum errors): New stub declaration.
7249 (throw_perror_with_name): New declaration.
7250
82b821e9
PA
72512013-03-22 Pedro Alves <palves@redhat.com>
7252 Yao Qi <yao@codesourcery.com>
7253 Mark Kettenis <kettenis@gnu.org>
7254
7255 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7256 Don't let the user set the value to UINT_MAX directly.
7257 <var_integer>: Don't let the user set the value to INT_MAX
7258 directly.
7259
78a095c3
JK
72602013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7261
7262 * remote.c (remote_unpush_target): New function.
7263 (remote_open_1): Remove two pop_target calls, update one comment, add
7264 comment to target_preopen call. Replace pop_target call by
7265 remote_unpush_target call.
7266 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7267 pop_target calls by remote_unpush_target calls.
7268
3e74e146
PA
72692013-03-22 Pedro Alves <palves@redhat.com>
7270
7271 * linux-nat.c (linux_child_follow_fork): Don't call
7272 linux_enable_event_reporting.
7273 (linux_handle_extended_wait): Don't call
7274 linux_enable_event_reporting.
7275
a2213dca
PA
72762013-03-22 Pedro Alves <palves@redhat.com>
7277
7278 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7279 use it to rewrite the trampoline buffers with type gdb_byte[], and
7280 undefine the macro. Remove char* cast.
7281
bd712aed
DE
72822013-03-21 Doug Evans <dje@google.com>
7283
7284 New commands "mt set per-command {space,time,symtab} {on,off}".
7285 * NEWS: Add entry.
7286 * event-top.c: #include "maint.h".
7287 * main.c: #include "maint.h".
7288 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7289 timeval-utils.h, maint.h, cli/cli-setshow.h.
7290 (per_command_time, per_command_space): New static globals.
7291 (per_command_symtab): New static global.
7292 (per_command_setlist, per_command_showlist): New static globals.
7293 (struct cmd_stats): Move here from utils.c.
7294 (set_per_command_time): Renamed from set_display_time in utils.c
7295 and moved here. All callers updated.
7296 (set_per_command_space): Renamed from set_display_space in utils.c
7297 and moved here. All callers updated.
7298 (count_symtabs_and_blocks): New function.
7299 (report_command_stats): Moved here from utils.c. Add support for
7300 printing symtab stats. Only print data if enabled before command
7301 executed.
7302 (make_command_stats_cleanup): Ditto.
7303 (sert_per_command_cmd, show_per_command_cmd): New functions.
7304 (_initialize_maint_cmds): Add new commands
7305 mt set per-command {space,time,symtab} {on,off}.
7306 * maint.h: New file.
7307 * top.c: #include "maint.h".
7308 * utils.c (reset_prompt_for_continue_wait_time): New function.
7309 (get_prompt_for_continue_wait_time): New function.
7310 * utils.h (reset_prompt_for_continue_wait_time): Declare
7311 (get_prompt_for_continue_wait_time): Declare.
7312 (make_command_stats_cleanup): Moved to maint.h.
7313 (set_display_time, set_display_space): Moved to maint.h and renamed
7314 to set_per_command_time, set_per_command_space.
7315 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7316 parse_binary_operation and made non-static. Don't call error,
7317 just return an error marker. All callers updated.
7318 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7319
d76488d8
TT
73202013-03-21 Tom Tromey <tromey@redhat.com>
7321
7322 * symfile.c (alloc_section_addr_info): Update header. Don't set
7323 'num_sections' field.
7324 (build_section_addr_info_from_section_table): Set 'num_sections'.
7325 (build_section_addr_info_from_bfd): Likewise.
7326 (build_section_addr_info_from_objfile): Remove dead loop
7327 condition.
7328 (free_section_addr_info): Unconditionally call xfree.
7329 (relative_addr_info_to_section_offsets, addrs_section_sort)
7330 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7331 condition.
7332 (syms_from_objfile_1): Remove dead 'if' condition. Check
7333 'num_sections'.
7334 (add_symbol_file_command): Set 'num_sections'.
7335 * symfile-mem.c (symbol_file_add_from_memory): Set
7336 'num_sections'.
7337 * somread.c (som_symfile_offsets): Remove dead loop condition.
7338 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7339 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7340
a72e5169 73412013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7342
7343 * tracepoint.h (decode_agent_options): Add 'trace_string'
7344 argument.
7345 * tracepoint.c (decode_agent_options): Add 'trace_string'
7346 argument.
7347 (validate_actionline): Update.
7348 (collect_symbol): Add 'trace_string' argument.
7349 (struct add_local_symbols_data) <trace_string>: New field.
7350 (do_collect_symbol): Update.
7351 (add_local_symbols): Add 'trace_string' argument.
7352 (encode_actions_1): Update.
7353 (trace_dump_actions): Update.
7354 * dwarf2loc.c (access_memory): Update.
7355 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7356 * ax-general.c (new_agent_expr): Update.
7357 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7358 (gen_trace_for_return_address): Add argument.
7359 (trace_kludge, trace_string_kludge): Remove.
7360 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7361 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7362 (gen_trace_for_var): Add 'trace_string' argument.
7363 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7364 (gen_printf, agent_eval_command_one): Update.
7365
b2f83c08
TT
73662013-03-21 Tom Tromey <tromey@redhat.com>
7367
7368 PR exp/15109:
7369 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7370 Handle FILENAME token.
7371
9507860e
TT
73722013-03-21 Tom Tromey <tromey@redhat.com>
7373
7374 * c-exp.y (YYPRINT): Define.
7375 (c_print_token): New function.
7376
e403aa4b
TT
73772013-03-21 Tom Tromey <tromey@redhat.com>
7378
7379 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7380
af307d6a
YQ
73812013-03-21 Yao Qi <yao@codesourcery.com>
7382
7383 * ctf.c: Include "gdb_stat.h".
7384 [USE_WIN32API]: New macro 'mkdir'.
7385 (ctf_start): Use permission bits macros if they are defined.
7386
fb81d016
KS
73872013-03-20 Keith Seitz <keiths@redhat.com>
7388
7389 * breakpoint.h (struct breakpoint): Add comment to
7390 extra_string indicating that this member is mallod'd.
7391 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7392
ef0026f0
PA
73932013-03-20 Pedro Alves <palves@redhat.com>
7394
7395 PR gdb/15289
7396
7397 * cli/cli-setshow.c (do_set_command)
7398 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7399 the result of parsing the command argument. Throw error if the
7400 value is greater than UINT_MAX. Print the invalid value with
7401 plongest.
7402 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7403 result of parsing the command argument. Throw error if the value
7404 is greater than INT_MAX, not greater or equal. Also throw error
7405 if the value is less than INT_MIN. Print the invalid value with
7406 plongest.
7407 <var_zuinteger_unlimited>: Throw error if the value is greater
7408 than INT_MAX, not greater or equal.
7409 (do_show_command) <var_integer, var_zinteger,
7410 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7411
24d6c2a0
TT
74122013-03-20 Tom Tromey <tromey@redhat.com>
7413
7414 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7415 if possible.
7416 * dwarf2read.c (read_func_scope): Remove old FIXME.
7417 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7418 not LOC_COMPUTED.
7419 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7420 Unconditionally call via computed ops, if possible.
7421 * printcmd.c (address_info): Unconditionally call via computed ops,
7422 if possible.
7423 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7424 if possible.
7425 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7426 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7427 if possible.
7428
f1e6e072
TT
74292013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7430 Tom Tromey <tromey@redhat.com>
7431
7432 PR symtab/8421:
7433 * coffread.c (coff_register_index): New global.
7434 (process_coff_symbol, coff_read_enum_type): Set
7435 SYMBOL_ACLASS_INDEX.
7436 (_initialize_coffread): Initialize new global.
7437 * dwarf2loc.c (locexpr_find_frame_base_location)
7438 (dwarf2_block_frame_base_locexpr_funcs)
7439 (loclist_find_frame_base_location)
7440 (dwarf2_block_frame_base_loclist_funcs): New.
7441 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7442 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7443 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7444 (dwarf2_block_frame_base_loclist_funcs): New.
7445 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7446 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7447 globals.
7448 (read_func_scope): Update.
7449 (fixup_go_packaging, mark_common_block_symbol_computed)
7450 (var_decode_location, new_symbol_full, dwarf2_const_value):
7451 Set SYMBOL_ACLASS_INDEX.
7452 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7453 (_initialize_dwarf2_read): Initialize new globals.
7454 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7455 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7456 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7457 globals.
7458 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7459 (_initialize_mdebugread): Initialize new globals.
7460 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7461 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7462 (stab_register_index, stab_regparm_index): New globals.
7463 (define_symbol, read_enum_type, common_block_end): Set
7464 SYMBOL_ACLASS_INDEX.
7465 (_initialize_stabsread): Initialize new globals.
7466 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7467 globals.
7468 (MAX_SYMBOL_IMPLS): New define.
7469 (register_symbol_computed_impl, register_symbol_block_impl)
7470 (register_symbol_register_impl)
7471 (initialize_ordinary_address_classes): New functions.
7472 (_initialize_symtab): Call initialize_ordinary_address_classes.
7473 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7474 (struct symbol_impl): New.
7475 (SYMBOL_ACLASS_BITS): New define.
7476 (struct symbol) <aclass, ops>: Remove fields.
7477 <aclass_index>: New field.
7478 (symbol_impls): Declare.
7479 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7480 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7481 (register_symbol_computed_impl, register_symbol_block_impl)
7482 (register_symbol_register_impl): Declare.
7483 (struct symbol_computed_ops): Add location_has_loclist.
7484 (struct symbol_block_ops): New.
7485 (SYMBOL_BLOCK_OPS): New.
7486 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7487
dbccfd4c
TT
74882013-03-20 Tom Tromey <tromey@redhat.com>
7489
7490 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7491 (print_partial_symbols, recursively_search_psymtabs): Use
7492 PSYMBOL_CLASS.
7493
e3f1ad4f
PM
74942013-03-20 Pierre Muller <muller@sourceware.org>
7495
7496 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7497 addtion, subtraction, multiplication and division binary operator.
7498
460014f5
JK
74992013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7500
7501 Code cleanup.
7502 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7503 * bsd-kvm.c (bsd_kvm_close): Likewise.
7504 * bsd-uthread.c (bsd_uthread_close): Likewise.
7505 * corelow.c (core_close): Likewise.
7506 (core_close_cleanup): Remove parameter quitting from a caller.
7507 * event-top.c (async_disconnect): Likewise.
7508 * exec.c (exec_close_1): Remove parameter quitting.
7509 * go32-nat.c (go32_close): Likewise.
7510 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7511 parameter quitting from a caller.
7512 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7513 variable.
7514 (mips_linux_close): Remove parameter quitting. Remove parameter
7515 quitting from a caller.
7516 * monitor.c (monitor_close): Remove parameter quitting.
7517 * monitor.h (monitor_close): Likewise.
7518 * record-btrace.c (record_btrace_close): Likewise.
7519 * record-full.c (record_full_close): Likewise.
7520 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7521 it also from fprintf_unfiltered.
7522 * remote-mips.c (mips_close): Remove parameter quitting.
7523 (mips_detach): Remove parameter quitting from a caller.
7524 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7525 (gdbsim_close): Remove duplicate function comment. Remove parameter
7526 quitting and remove it also from printf_filtered.
7527 * remote.c (remote_close): Remove parameter quitting.
7528 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7529 * target.c (update_current_target): Remove parameter int from to_close
7530 de_fault.
7531 (push_target, unpush_target, pop_target): Remove parameter quitting from
7532 a caller.
7533 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7534 Remove parameter quitting from a caller.
7535 (target_preopen): Remove parameter quitting from a caller.
7536 (target_close): Remove parameter quitting. Remove parameter quitting
7537 from a caller two times. Remove parameter quitting also from
7538 fprintf_unfiltered.
7539 * target.h (struct target_ops): Remove parameter quitting and as int
7540 from fields to_xclose and to_close.
7541 (extern struct target_ops current_target):
7542 (target_close, pop_all_targets): Remove parameter quitting. Update the
7543 comment.
7544 (pop_all_targets_above): Remove parameter quitting.
7545 * top.c (quit_target): Remove parameter quitting from a caller.
7546 * tracepoint.c (tfile_close): Remove parameter quitting.
7547 * windows-nat.c (windows_close): Remove parameter quitting.
7548
35a7120b
CV
75492013-03-20 Corinna Vinschen <vinschen@redhat.com>
7550
7551 * windows-nat.c (handle_output_debug_string): Replace call
7552 to string_to_core_addr with call to strtoull.
7553
8249a5a9
YQ
75542013-03-20 Yao Qi <yao@codesourcery.com>
7555
7556 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7557 and write it to CTF metadata.
7558
2c15ef43
CV
75592013-03-19 Corinna Vinschen <vinschen@redhat.com>
7560
7561 * windows-nat.c (handle_output_debug_string): Change type of n to
7562 SIZE_T to avoid crash on 64 bit systems.
7563
1cdd3232
EZ
75642013-03-17 Eli Zaretskii <eliz@gnu.org>
7565
7566 * python/python-internal.h (HAVE_SNPRINTF)
7567 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7568 about redefinition of snprintf by pyerrors.h.
7569
3cb2ab1a
SE
75702013-03-15 Steve Ellcey <sellcey@mips.com>
7571
7572 * remote-sim.c (sim_command_completer): Make char arguments const.
7573
9ce98649
TT
75742013-03-15 Tom Tromey <tromey@redhat.com>
7575
7576 PR c++/15116:
7577 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7578
dccee2de
TT
75792013-03-14 Tom Tromey <tromey@redhat.com>
7580
7581 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7582 New fields.
7583 (get_file_crc): Move from symfile.c.
7584 (gdb_bfd_crc): New function.
7585 * gdb_bfd.h (gdb_bfd_crc): Declare.
7586 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7587 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7588 (separate_debug_file_exists): Use gdb_bfd_crc.
7589
cc0ea93c
TT
75902013-03-14 Tom Tromey <tromey@redhat.com>
7591
7592 * symfile.c (get_debug_link_info): Remove.
7593 (find_separate_debug_file_by_debuglink): Use
7594 bfd_get_debug_link_info.
7595
08c23b0d
TT
75962013-03-14 Tom Tromey <tromey@redhat.com>
7597
7598 * symtab.c (error_in_psymtab_expansion): New function.
7599 (lookup_symbol_aux_quick)
7600 (basic_lookup_transparent_type_quick): Remove "last resort"
7601 code. Use error_in_psymtab_expansion.
7602
288e77a7
JK
76032013-03-14 Doug Evans <dje@google.com>
7604 Jan Kratochvil <jan.kratochvil@redhat.com>
7605
7606 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7607 any successful compare_filenames_for_search or FILENAME_CMP.
7608 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7609 * symtab.c (iterate_over_some_symtabs): Likewise.
7610
8f1b8b82
JK
76112013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7612
7613 * source.c (print_source_lines_base): Make a local copy of
7614 symtab_to_fullname.
7615
23eb71e4
JK
76162013-03-14 Hui Zhu <hui_zhu@mentor.com>
7617 Jan Kratochvil <jan.kratochvil@redhat.com>
7618
7619 * source.c (print_source_lines_base): Suppress "file" for TUI.
7620
bb869963
SDJ
76212013-03-14 Keith Seitz <keiths@redhat.com>
7622 Alan Matsuoka <alanm@redhat.com>
7623
7624 PR c++/15203
7625 PR c++/15210
7626 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7627 TYPE_CODE_METHOD.
7628 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7629 symbols.
7630
d6682f9e
YQ
76312013-03-14 Yao Qi <yao@codesourcery.com>
7632
7633 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7634 status to tfile if trace is stopped by command 'tstop'.
7635
a22fa6e4
YQ
76362013-03-14 Yao Qi <yao@codesourcery.com>
7637
7638 * tracepoint.c (tfile_write_status): Write trace notes and user
7639 name into tfile if they are not NULL.
7640
d0353e76
YQ
76412013-03-14 Hui Zhu <hui@codesourcery.com>
7642 Yao Qi <yao@codesourcery.com>
7643
7644 * Makefile.in (REMOTE_OBS): Add ctf.o.
7645 (SFILES): Add ctf.c.
7646 (HFILES_NO_SRCDIR): Add ctf.h.
7647 * ctf.c, ctf.h: New files.
7648 * tracepoint.c: Include 'ctf.h'.
7649 (collect_pseudocommand): Remove static.
7650 (trace_save_command): Parse option "-ctf".
7651 Produce different trace file writers per option.
7652 Adjust output message.
7653 (trace_save_tfile, trace_save_ctf): New.
7654 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7655 * mi/mi-main.c: Include 'ctf.h'.
7656 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7657 trace_save_tfile or trace_save_ctf.
7658 * NEWS: Mention these changes.
7659
3f43bc09
YQ
76602013-03-14 Yao Qi <yao@codesourcery.com>
7661
7662 * tracepoint.c (trace_file_writer_xfree): New.
7663 (struct tfile_writer_data): New.
7664 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7665 (tfile_write_header, tfile_write_regblock_type): New.
7666 (tfile_write_status, tfile_write_uploaded_tsv): New.
7667 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7668 (tfile_write_raw_data, (tfile_end): New.
7669 (tfile_write_ops): New global variable.
7670 (TRACE_WRITE_R_BLOCK): New macro.
7671 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7672 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7673 (TRACE_WRITE_V_BLOCK): New macro.
7674 (trace_save): Add extra one parameter WRITER. Make it static.
7675 Use WRITER to writer trace.
7676 (tfile_trace_file_writer_new): New.
7677 (trace_save_command): Caller update.
7678 (trace_save_tfile): Write trace data in TFILE format.
7679 * tracepoint.h (struct trace_frame_write_ops): New.
7680 (struct trace_file_write_ops): New.
7681 (struct trace_file_writer): New.
7682 (trace_save): Remove its declaration.
7683 (trace_save_tfile): Declare it.
7684 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7685 instead of trace_save.
7686
58665b40
PA
76872013-03-13 Pedro Alves <palves@redhat.com>
7688
7689 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7690
10217050
PA
76912013-03-13 Pedro Alves <palves@redhat.com>
7692
7693 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7694 commented out code.
7695 * demangle.c (current_demangling_style_string): Make it const.
7696 (set_demangling_command): Assert the demangling style is known.
7697 Remove all handling of unknown styles. Set
7698 'current_demangling_style_string' to an element of the
7699 demangling_style_names array.
7700 (set_demangling_style): Delete.
7701 (_initialize_demangler): Set current_demangling_style_string to the
7702 element of the demangling_style_names array that corresponds to
7703 the default demangling style. Remove FIXME note. Don't call
7704 set_demangling_style.
7705 * gdb-demangle.h (set_demangling_style): Remove declaration.
7706
6f937416
PA
77072013-03-13 Pedro Alves <palves@redhat.com>
7708
7709 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7710 fields const.
7711 (ada_make_symbol_completion_list): Make "text0" parameter const.
7712 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7713 * breakpoint.c (condition_completer): Make "text" and "word"
7714 parameters const. Adjust.
7715 (check_tracepoint_command): Adjust to validate_actionline
7716 prototype change.
7717 (catch_syscall_completer): Make "text" and "word" parameters
7718 const.
7719 * cli/cli-cmds.c (show_user): Make "comname" local const.
7720 (valid_command_p): Make "command" parameter const.
7721 (alias_command): Make "alias_prefix" and "command_prefix" locals
7722 const.
7723 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7724 (add_alias_cmd): Make "name" and "oldname" parameters const.
7725 Adjust. No longer make copy of OLDNAME.
7726 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7727 (add_setshow_cmd_full, add_setshow_enum_cmd)
7728 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7729 (add_setshow_filename_cmd, add_setshow_string_cmd)
7730 (add_setshow_string_noescape_cmd)
7731 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7732 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7733 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7734 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7735 Make "name" parameter const.
7736 (help_cmd): Rename "command" parameter to "arg". New const local
7737 "command".
7738 (find_cmd): Make "command" parameter const.
7739 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7740 deprecated_cmd_warning prototype change.
7741 (undef_cmd_error): Make "cmdtype" parameter const.
7742 (lookup_cmd): Make "line" parameter const.
7743 (deprecated_cmd_warning): Change type of "text" parameter to
7744 pointer to const char, from pointer to pointer to char. Adjust.
7745 (lookup_cmd_composition): Make "text" parameter const.
7746 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7747 parameters const.
7748 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7749 const.
7750 * cli/cli-script.c (validate_comname): Make "tem" local const.
7751 (define_command): New const local "tem_c". Use it in calls to
7752 lookup_cmd.
7753 (document_command): Make "tem" and "comfull" locals const.
7754 (show_user_1): Make "prefix" and "name" parameters const.
7755 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7756 const.
7757 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7758 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7759 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7760 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7761 (complete_on_enum, add_setshow_enum_cmd)
7762 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7763 (add_setshow_filename_cmd, add_setshow_string_cmd)
7764 (add_setshow_string_noescape_cmd)
7765 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7766 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7767 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7768 Change prototypes, constifying strings.
7769 * completer.c (noop_completer, filename_completer): Make "text"
7770 and "prefix" parameters const.
7771 (location_completer, expression_completer)
7772 (complete_line_internal): Make "text" and "prefix" parameters
7773 const and adjust.
7774 (command_completer, signal_completer): Make "text" and "prefix"
7775 parameters const.
7776 * completer.h (noop_completer, filename_completer)
7777 (expression_completer, location_completer, command_completer)
7778 (signal_completer): Change prototypes.
7779 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7780 parameters const.
7781 * cp-abi.c (cp_abi_completer): Likewise.
7782 * expression.h (parse_expression_for_completion): Change
7783 prototype.
7784 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7785 parameters const.
7786 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7787 * infrun.c (handle_completer): Make "text" and "word" parameters
7788 const.
7789 * interps.c (interpreter_completer): Make "text" and "word"
7790 parameters const.
7791 * language.h (struct language_defn)
7792 <la_make_symbol_completion_list>: Make "text" and "word"
7793 parameters const.
7794 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7795 (parse_exp_in_context): Rename to ...
7796 (parse_exp_in_context_1): ... this.
7797 (parse_exp_in_context): Reimplement, with const hack from
7798 parse_exp_1.
7799 (parse_expression_for_completion): Make "string" parameter const.
7800 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7801 to pointer to const char. Adjust.
7802 (print_command_1): Make "exp" parameter const.
7803 (output_command): Rename to ...
7804 (output_command_const): ... this. Make "exp" parameter const.
7805 (output_command): Reimplement.
7806 (x_command): Adjust.
7807 (display_command): Rename "exp" parameter to "arg". New "exp"
7808 local, const version of "arg".
7809 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7810 "cmd_name" local const.
7811 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7812 call.
7813 (cmdpy_completer): Make "text" and "word" parameters const.
7814 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7815 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7816 const.
7817 * remote.c (_initialize_remote): Make "cmd_name" local const.
7818 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7819 parameters const. Adjust.
7820 (completion_list_add_fields): Make "sym_text", "text" and "word"
7821 parameters const.
7822 (struct add_name_data) <sym_text, text, word>: Make fields const.
7823 (default_make_symbol_completion_list_break_on): Make "text" and
7824 "word" parameters const. Adjust locals.
7825 (default_make_symbol_completion_list)
7826 (make_symbol_completion_list, make_symbol_completion_type)
7827 (make_symbol_completion_list_fn): Make "text" and "word"
7828 parameters const.
7829 (make_file_symbol_completion_list): Make "text", "word" and
7830 "srcfile" parameters const. Adjust locals.
7831 (add_filename_to_list): Make "text" and "word" parameters const.
7832 (struct add_partial_filename_data) <text, word>: Make fields
7833 const.
7834 (make_source_files_completion_list): Make "text" and "word"
7835 parameters const.
7836 * symtab.h (default_make_symbol_completion_list_break_on)
7837 (default_make_symbol_completion_list, make_symbol_completion_list)
7838 (make_symbol_completion_type enum type_code)
7839 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7840 (make_source_files_completion_list): Change prototype.
7841 * top.c (execute_command): Adjust to pass pointer to pointer to
7842 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7843 change.
7844 (set_verbose): Make "cmdname" local const.
7845 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7846 and adjust.
7847 (validate_actionline): Make "line" parameter a pointer to const
7848 char, and adjust.
7849 (encode_actions_1): Make "action_exp" local const, and adjust.
7850 (encode_actions): Adjust.
7851 (replace_comma): Delete.
7852 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7853 const, and adjust. Don't frob the action string while splitting
7854 it at commas. Instead, make a copy of each split substring in
7855 turn.
7856 (trace_dump_command): Adjust to validate_actionline prototype
7857 change.
7858 * tracepoint.h (decode_agent_options, decode_agent_options)
7859 (encode_actions, validate_actionline): Change prototypes.
7860 * valprint.h (output_command): Delete declaration.
7861 (output_command_const): Declare.
7862 * value.c (function_destroyer): Cast const away in xfree call.
7863
a0bcdaa7
PA
78642013-03-13 Pedro Alves <palves@redhat.com>
7865
7866 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7867 rather than casting 'const char * const *' to 'const char **'.
7868 * ada-lex.l (processInt): Make "trailer" local const. Remove
7869 'const char **' cast.
7870 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7871 locals, and use those as strtol output pointer, instead than doing
7872 invalid casts to from 'const char **' to 'char **'.
7873 (_initialize_demangle): Remove cast.
7874 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7875 locals, and use those as strtol output pointer, instead than doing
7876 invalid casts to from 'const char **' to 'char **'.
7877 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7878 casts.
7879 * stap-probe.c (stap_parse_register_operand)
7880 (stap_parse_single_operand): Likewise.
7881
8ddb1965
YQ
78822013-03-13 Yao Qi <yao@codesourcery.com>
7883
7884 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7885 the last matched 'V' blcok in trace frame.
7886
2d450646
JB
78872013-03-12 Joel Brobecker <brobecker@adacore.com>
7888
7889 * NEWS: Create a new section for the next release branch.
7890 Rename the section of the current branch, now that it has
7891 been cut.
7892
b4b79973 78932013-03-12 Joel Brobecker <brobecker@adacore.com>
7894
7895 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7896 * version.in: Bump version to 7.6.50.20130312-cvs.
7897
ee047554
KS
78982013-03-12 Keith Seitz <keiths@redhat.com>
7899
7900 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7901 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7902 Remove temporary copy of input string.
7903 (mi_execute_command_wrapper): Make "cmd" const.
7904 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7905 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7906 Use const strings.
7907 (mi_parse): Make "cmd" const.
7908 Use const strings.
7909 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7910
bbc13ae3
KS
79112013-03-12 Keith Seitz <keiths@redhat.com>
7912
7913 * ada-lang.c (ada_read_renaming_var_value): Pass const
7914 pointer to expression string to parse_exp_1.
7915 (create_excep_cond_exprs): Likewise.
7916 * ax-gdb.c (agent_eval_command_one): Likewise.
7917 (maint_agent_printf_command): Likewise.
7918 Constify much of the string handling/parsing.
7919 * breakpoint.c (set_breakpoint_condition): Pass const
7920 pointer to expression string to parse_exp_1.
7921 (update_watchpoint): Likewise.
7922 (parse_cmd_to_aexpr): Constify string handling.
7923 Pass const pointer to parse_exp_1.
7924 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7925 (find_condition_and_thread): Likewise.
7926 Make TOK const.
7927 (watch_command_1): Make "arg" const.
7928 Constify string handling.
7929 Copy the expression string instead of changing the input
7930 string.
7931 (update_breakpoint_location): Pass const pointer to
7932 parse_exp_1.
7933 * eval.c (parse_and_eval_address): Make "exp" const.
7934 (parse_to_comma_and_eval): Make "expp" const.
7935 (parse_and_eval): Make "exp" const.
7936 * expression.h (parse_expression): Make argument const.
7937 (parse_exp_1): Make first argument const.
7938 * findcmd.c (parse_find_args): Treat "args" as const.
7939 * linespec.c (parse_linespec): Pass const pointer to
7940 linespec_expression_to_pc.
7941 (linespec_expression_to_pc): Make "exp_ptr" const.
7942 * parse.c (parse_exp_1): Make "stringptr" const.
7943 Make a copy of the expression to pass to parse_exp_in_context until
7944 this whole interface can be constified.
7945 (parse_expression): Make "string" const.
7946 * printcmd.c (ui_printf): Treat "arg" as const.
7947 Handle const strings.
7948 * tracepoint.c (validate_actionline): Pass const pointer to
7949 all calls to parse_exp_1.
7950 (encode_actions_1): Likewise.
7951 * value.h (parse_to_comma_and_eval): Make argument const.
7952 (parse_and_eval_address): Likewise.
7953 (parse_and_eval): Likewise.
7954 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7955 (varobj_set_value): Likewise.
7956 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7957 constify string handling.
7958 Pass const pointers to parse_and_eval_address and
7959 parse_to_comman_and_eval.
7960 * cli/cli-utils.c (skip_to_space): Rename to ...
7961 (skip_to_space_const): ... this. Handle const strings.
7962 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7963 skip_to_space_const.
7964 (skip_to_space_const): Declare.
7965 * common/format.c (parse_format_string): Make "arg" const.
7966 Handle const strings.
7967 * common/format.h (parse_format_string): Make "arg" const.
7968 * gdbserver/ax.c (ax_printf): Make "format" const.
7969 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7970 of the expression string.
7971
f3cec7e6
HZ
79722013-03-12 Hui Zhu <hui@codesourcery.com>
7973
7974 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7975
9df7235c
HZ
79762013-03-12 Yao Qi <yao@codesourcery.com>
7977 Hui Zhu <hui@codesourcery.com>
7978
7979 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7980 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7981 DW_OP_deref_size.
7982
82d049ab
PH
79832013-03-12 Paul Hilfinger <hilfingr@adacore.com>
7984
5f8e0b8f
MF
7985 * ada-lex.l (rules): Only recognize 'thread' as a
7986 delimiter when followed by numerals, as for c-exp.y.
7987 Use new rewind_to_char function to rewind the input for
7988 expression-delimiting tokens.
7989 (rewind_to_char): New function.
82d049ab 7990
8c1fb155
JK
79912013-03-11 Pedro Alves <palves@redhat.com>
7992 Jan Kratochvil <jan.kratochvil@redhat.com>
7993
7994 * configure: Regenerate.
7995 * configure.ac (check dynamic export flag): Link python test with
7996 $PYTHON_LIBS.
7997
cc81e1c6
DE
79982013-03-11 Doug Evans <dje@google.com>
7999 Keith Seitz <keiths@redhat.com>
8000
8001 * linespec.c (find_linespec_symbols): Call find_function_symbols
8002 first, and then call lookup_prefix_sym/find_method.
8003
39086a0e
PA
80042013-03-11 Pedro Alves <palves@redhat.com>
8005
8006 * charset.c (convert_between_encodings): Don't cast between
8007 different pointer to pointer types. Instead, make the 'inp' local
8008 be of the type iconv expects.
8009 (wchar_iterate): Don't cast between different pointer to pointer
8010 types. Instead, use new pointer local of the type iconv expects.
8011 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8012 Add new local of type char pointer, and use it to get a
8013 char/string view of the byte buffer, instead of casting between
8014 pointer to pointer types.
8015
90585175
HAQ
80162013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8017
8018 * remote.c (remote_set_trace_buffer_size): Move != operator
8019 to the start of next line to fix an ARI warning.
8020
59ea5688
MM
80212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8022
8023 * NEWS: Add record changes.
8024
946287b7
MM
80252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8026
8027 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8028 the instruction history disassembly.
8029 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8030 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8031
afedecd3
MM
80322013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8033
8034 * Makefile.in (SFILES): Add record-btrace.c
8035 (COMMON_OBS): Add record-btrace.o
8036 * record-btrace.c: New.
8037 * objfiles.c: Include btrace.h.
8038 (free_objfile): call btrace_free_objfile.
8039
15984c13
MM
80402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8041
8042 * target.c (target_call_history, target_call_history_from,
8043 target_call_history_range): New.
8044 * target.h (target_ops) <to_call_history, to_call_history_from,
8045 to_call_history_range>: New fields.
8046 (target_call_history, target_call_history_from,
8047 target_call_history_range): New declaration.
8048 * record.c (get_call_history_modifiers, cmd_record_call_history,
8049 record_call_history_size): New.
8050 (_initialize_record): Add the "record function-call-history" command.
8051 Add "set/show record function-call-history-size" commands.
8052 * record.h (record_print_flag): New.
8053
67c86d06
MM
80542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8055
8056 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8057 to_insn_history_range>: New fields.
8058 (target_insn_history): New.
8059 (target_insn_history_from): New.
8060 (target_insn_history_range): New.
8061 * target.c (target_insn_history): New.
8062 (target_insn_history_from): New.
8063 (target_insn_history_range): New.
8064 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8065 (record_insn_history_size): New.
8066 (get_insn_number): New.
8067 (get_context_size): New.
8068 (no_chunk): New.
8069 (get_insn_history_modifiers): New.
8070 (cmd_record_insn_history): New.
8071 (_initialize_record): Add "set/show record instruction-history-size"
8072 command. Add "record instruction-history" command.
8073
7c1687a9
MM
80742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8075
8076 * record.h (record_disconnect): New.
8077 (record_detach): New.
8078 (record_mourn_inferior): New.
8079 (record_kill): New.
8080 * record-full.c (record_disconnect, record_detach,
8081 record_mourn_inferior, record_kill): Move to...
8082 * record.c: ...here.
8083 (DEBUG): New.
8084 (record_stop): New.
8085 (record_unpush): New.
8086 (cmd_record_stop): Call record_stop. Replace unpush_target
8087 call with record_unpush call.
8088 (record_disconnect, record_detach): Assert that the target
8089 is of record stratum. Call record_unpush, record_stop, and
8090 DEBUG.
8091 (record_mourn_inferior, record_kill): Assert that the target
8092 is of record stratum. Call record_unpush and DEBUG.
8093
25ea693b
MM
80942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8095
8096 * record-full.h, record-full.c (record_memory_query): Rename
8097 to ...
8098 (record_full_memory_query): ...this. Update all users.
8099 (record_arch_list_add_reg): Rename to ...
8100 (record_full_arch_list_add_reg): ...this. Update all users.
8101 (record_arch_list_add_mem): Rename to ...
8102 (record_full_arch_list_add_mem): ...this. Update all users.
8103 (record_arch_list_add_end): Rename to ...
8104 (record_full_arch_list_add_end): ...this. Update all users.
8105 (record_gdb_operation_disable_set): Rename to ...
8106 (record_full_gdb_operation_disable_set): ...this.
8107 Update all users.
8108
88d1aa9d
MM
81092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8110
8111 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8112 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8113 (RECORD_IS_REPLAY): Renamed to ...
8114 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8115 (RECORD_FILE_MAGIC): Renamed to ...
8116 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8117 (record_mem_entry): Renamed to ...
8118 (record_full_mem_entry): ... this. Updated all users.
8119 (record_reg_entry): Renamed to ...
8120 (record_full_reg_entry): ... this. Updated all users.
8121 (record_end_entry): Renamed to ...
8122 (record_full_end_entry): ... this. Updated all users.
8123 (record_type) <record_end, record_reg, record_mem>: Renamed
8124 to ...
8125 (record_full_type) <record_full_end, record_full_reg,
8126 record_full_mem>: ... this. Updated all users.
8127 (record_entry): Renamed to ...
8128 (record_full_entry): ... this. Updated all users.
8129 (record_core_buf_entry): Renamed to ...
8130 (record_full_core_buf_entry): ... this. Updated all users.
8131 (record_core_regbuf): Renamed to ...
8132 (record_full_core_regbuf): ... this. Updated all users.
8133 (record_core_start): Renamed to ...
8134 (record_full_core_start): ... this. Updated all users.
8135 (record_core_end): Renamed to ...
8136 (record_full_core_end): ... this. Updated all users.
8137 (record_core_buf_list): Renamed to ...
8138 (record_full_core_buf_list): ... this. Updated all users.
8139 (record_first): Renamed to ...
8140 (record_full_first): ... this. Updated all users.
8141 (record_list): Renamed to ...
8142 (record_full_list): ... this. Updated all users.
8143 (record_arch_list_head): Renamed to ...
8144 (record_full_arch_list_head): ... this. Updated all users.
8145 (record_arch_list_tail): Renamed to ...
8146 (record_full_arch_list_tail): ... this. Updated all users.
8147 (record_stop_at_limit): Renamed to ...
8148 (record_full_stop_at_limit): ... this. Updated all users.
8149 (record_insn_max_num): Renamed to ...
8150 (record_full_insn_max_num): ... this. Updated all users.
8151 (record_insn_num): Renamed to ...
8152 (record_full_insn_num): ... this. Updated all users.
8153 (record_insn_count): Renamed to ...
8154 (record_full_insn_count): ... this. Updated all users.
8155 (record_ops): Renamed to ...
8156 (record_full_ops): ... this. Updated all users.
8157 (record_core_ops): Renamed to ...
8158 (record_full_core_ops): ... this. Updated all users.
8159 (set_record_cmdlist): Renamed to ...
8160 (set_record_full_cmdlist): ... this. Updated all users.
8161 (show_record_cmdlist): Renamed to ...
8162 (show_record_full_cmdlist): ... this. Updated all users.
8163 (record_cmdlist): Renamed to ...
8164 (record_full_cmdlist): ... this. Updated all users.
8165 (record_beneath_to_resume_ops): Renamed to ...
8166 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8167 (record_beneath_to_resume): Renamed to ...
8168 (record_full_beneath_to_resume): ... this. Updated all users.
8169 (record_beneath_to_wait_ops): Renamed to ...
8170 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8171 (record_beneath_to_wait): Renamed to ...
8172 (record_full_beneath_to_wait): ... this. Updated all users.
8173 (record_beneath_to_store_registers_ops): Renamed to ...
8174 (record_full_beneath_to_store_registers_ops): ... this.
8175 Updated all users.
8176 (record_beneath_to_store_registers): Renamed to ...
8177 (record_full_beneath_to_store_registers): ... this.
8178 Updated all users.
8179 (record_beneath_to_xfer_partial_ops): Renamed to ...
8180 (record_full_beneath_to_xfer_partial_ops): ... this.
8181 Updated all users.
8182 (record_beneath_to_xfer_partial): Renamed to ...
8183 (record_full_beneath_to_xfer_partial): ... this.
8184 Updated all users.
8185 (record_beneath_to_insert_breakpoint): Renamed to ...
8186 (record_full_beneath_to_insert_breakpoint): ... this.
8187 Updated all users.
8188 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8189 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8190 Updated all users.
8191 (record_beneath_to_stopped_data_address): Renamed to ...
8192 (record_full_beneath_to_stopped_data_address): ... this.
8193 Updated all users.
8194 (record_beneath_to_async): Renamed to ...
8195 (record_full_beneath_to_async): ... this. Updated all users.
8196 (record_goto_insn): Renamed to ...
8197 (record_full_goto_insn): ... this. Updated all users.
8198 (record_save): Renamed to ...
8199 (record_full_save): ... this. Updated all users.
8200 (record_reg_alloc): Renamed to ...
8201 (record_full_reg_alloc): ... this. Updated all users.
8202 (record_reg_release): Renamed to ...
8203 (record_full_reg_release): ... this. Updated all users.
8204 (record_mem_alloc): Renamed to ...
8205 (record_full_mem_alloc): ... this. Updated all users.
8206 (record_mem_release): Renamed to ...
8207 (record_full_mem_release): ... this. Updated all users.
8208 (record_end_alloc): Renamed to ...
8209 (record_full_end_alloc): ... this. Updated all users.
8210 (record_end_release): Renamed to ...
8211 (record_full_end_release): ... this. Updated all users.
8212 (record_entry_release): Renamed to ...
8213 (record_full_entry_release): ... this. Updated all users.
8214 (record_list_release): Renamed to ...
8215 (record_full_list_release): ... this. Updated all users.
8216 (record_list_release_following): Renamed to ...
8217 (record_full_list_release_following): ... this.
8218 Updated all users.
8219 (record_list_release_first): Renamed to ...
8220 (record_full_list_release_first): ... this. Updated all users.
8221 (record_arch_list_add): Renamed to ...
8222 (record_full_arch_list_add): ... this. Updated all users.
8223 (record_get_loc): Renamed to ...
8224 (record_full_get_loc): ... this. Updated all users.
8225 (record_check_insn_num): Renamed to ...
8226 (record_full_check_insn_num): ... this. Updated all users.
8227 (record_arch_list_cleanups): Renamed to ...
8228 (record_full_arch_list_cleanups): ... this. Updated all users.
8229 (record_message): Renamed to ...
8230 (record_full_message): ... this. Updated all users.
8231 (record_message_wrapper): Renamed to ...
8232 (record_full_message_wrapper): ... this. Updated all users.
8233 (record_message_wrapper_safe): Renamed to ...
8234 (record_full_message_wrapper_safe): ... this. Updated all users.
8235 (record_gdb_operation_disable): Renamed to ...
8236 (record_full_gdb_operation_disable): ... this. Updated all users.
8237 (record_hw_watchpoint): Renamed to ...
8238 (record_full_hw_watchpoint): ... this. Updated all users.
8239 (record_exec_insn): Renamed to ...
8240 (record_full_exec_insn): ... this. Updated all users.
8241 (record_restore): Renamed to ...
8242 (record_full_restore): ... this. Updated all users.
8243 (record_async_inferior_event_token): Renamed to ...
8244 (record_full_async_inferior_event_token): ... this.
8245 Updated all users.
8246 (record_async_inferior_event_handler): Renamed to ...
8247 (record_full_async_inferior_event_handler): ... this.
8248 Updated all users.
8249 (record_core_open_1): Renamed to ...
8250 (record_full_core_open_1): ... this. Updated all users.
8251 (record_open_1): Renamed to ...
8252 (record_full_open_1): ... this. Updated all users.
8253 (record_open): Renamed to ...
8254 (record_full_open): ... this. Updated all users.
8255 (record_close): Renamed to ...
8256 (record_full_close): ... this. Updated all users.
8257 (record_resume_step): Renamed to ...
8258 (record_full_resume_step): ... this. Updated all users.
8259 (record_resumed): Renamed to ...
8260 (record_full_resumed): ... this. Updated all users.
8261 (record_execution_dir): Renamed to ...
8262 (record_full_execution_dir): ... this. Updated all users.
8263 (record_resume): Renamed to ...
8264 (record_full_resume): ... this. Updated all users.
8265 (record_get_sig): Renamed to ...
8266 (record_full_get_sig): ... this. Updated all users.
8267 (record_sig_handler): Renamed to ...
8268 (record_full_sig_handler): ... this. Updated all users.
8269 (record_wait_cleanups): Renamed to ...
8270 (record_full_wait_cleanups): ... this. Updated all users.
8271 (record_wait_1): Renamed to ...
8272 (record_full_wait_1): ... this. Updated all users.
8273 (record_wait): Renamed to ...
8274 (record_full_wait): ... this. Updated all users.
8275 (record_stopped_by_watchpoint): Renamed to ...
8276 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8277 (record_disconnect): Renamed to ...
8278 (record_full_disconnect): ... this. Updated all users.
8279 (record_detach): Renamed to ...
8280 (record_full_detach): ... this. Updated all users.
8281 (record_mourn_inferior): Renamed to ...
8282 (record_full_mourn_inferior): ... this. Updated all users.
8283 (record_kill): Renamed to ...
8284 (record_full_kill): ... this. Updated all users.
8285 (record_stopped_data_address): Renamed to ...
8286 (record_full_stopped_data_address): ... this. Updated all users.
8287 (record_registers_change): Renamed to ...
8288 (record_full_registers_change): ... this. Updated all users.
8289 (record_store_registers): Renamed to ...
8290 (record_full_store_registers): ... this. Updated all users.
8291 (record_xfer_partial): Renamed to ...
8292 (record_full_xfer_partial): ... this. Updated all users.
8293 (record_breakpoint): Renamed to ...
8294 (record_full_breakpoint): ... this. Updated all users.
8295 (record_breakpoint_p): Renamed to ...
8296 (record_full_breakpoint_p): ... this. Updated all users.
8297 (record_breakpoints): Renamed to ...
8298 (record_full_breakpoints): ... this. Updated all users.
8299 (record_sync_record_breakpoints): Renamed to ...
8300 (record_full_sync_record_breakpoints): ... this.
8301 Updated all users.
8302 (record_init_record_breakpoints): Renamed to ...
8303 (record_full_init_record_breakpoints): ... this.
8304 Updated all users.
8305 (record_insert_breakpoint): Renamed to ...
8306 (record_full_insert_breakpoint): ... this. Updated all users.
8307 (record_remove_breakpoint): Renamed to ...
8308 (record_full_remove_breakpoint): ... this. Updated all users.
8309 (record_can_execute_reverse): Renamed to ...
8310 (record_full_can_execute_reverse): ... this. Updated all users.
8311 (record_get_bookmark): Renamed to ...
8312 (record_full_get_bookmark): ... this. Updated all users.
8313 (record_goto_bookmark): Renamed to ...
8314 (record_full_goto_bookmark): ... this. Updated all users.
8315 (record_async): Renamed to ...
8316 (record_full_async): ... this. Updated all users.
8317 (record_can_async_p): Renamed to ...
8318 (record_full_can_async_p): ... this. Updated all users.
8319 (record_is_async_p): Renamed to ...
8320 (record_full_is_async_p): ... this. Updated all users.
8321 (record_execution_direction): Renamed to ...
8322 (record_full_execution_direction): ... this. Updated all users.
8323 (record_info): Renamed to ...
8324 (record_full_info): ... this. Updated all users.
8325 (record_delete): Renamed to ...
8326 (record_full_delete): ... this. Updated all users.
8327 (record_is_replaying): Renamed to ...
8328 (record_full_is_replaying): ... this. Updated all users.
8329 (record_goto_entry): Renamed to ...
8330 (record_full_goto_entry): ... this. Updated all users.
8331 (record_goto_begin): Renamed to ...
8332 (record_full_goto_begin): ... this. Updated all users.
8333 (record_goto_end): Renamed to ...
8334 (record_full_goto_end): ... this. Updated all users.
8335 (record_goto): Renamed to ...
8336 (record_full_goto): ... this. Updated all users.
8337 (init_record_ops): Renamed to ...
8338 (init_record_full_ops): ... this. Updated all users.
8339 (record_core_resume): Renamed to ...
8340 (record_full_core_resume): ... this. Updated all users.
8341 (record_core_kill): Renamed to ...
8342 (record_full_core_kill): ... this. Updated all users.
8343 (record_core_fetch_registers): Renamed to ...
8344 (record_full_core_fetch_registers): ... this. Updated all users.
8345 (record_core_prepare_to_store): Renamed to ...
8346 (record_full_core_prepare_to_store): ... this. Updated all users.
8347 (record_core_store_registers): Renamed to ...
8348 (record_full_core_store_registers): ... this. Updated all users.
8349 (record_core_xfer_partial): Renamed to ...
8350 (record_full_core_xfer_partial): ... this. Updated all users.
8351 (record_core_insert_breakpoint): Renamed to ...
8352 (record_full_core_insert_breakpoint): ... this. Updated all users.
8353 (record_core_remove_breakpoint): Renamed to ...
8354 (record_full_core_remove_breakpoint): ... this. Updated all users.
8355 (record_core_has_execution): Renamed to ...
8356 (record_full_core_has_execution): ... this. Updated all users.
8357 (init_record_core_ops): Renamed to ...
8358 (init_record_full_core_ops): ... this. Updated all users.
8359 (cmd_record_restore): Renamed to ...
8360 (cmd_record_full_restore): ... this. Updated all users.
8361 (record_save_cleanups): Renamed to ...
8362 (record_full_save_cleanups): ... this. Updated all users.
8363 (cmd_record_start): Renamed to ...
8364 (cmd_record_full_start): ... this. Updated all users.
8365 (set_record_insn_max_num): Renamed to ...
8366 (set_record_full_insn_max_num): ... this. Updated all users.
8367 (set_record_command): Renamed to ...
8368 (set_record_full_command): ... this. Updated all users.
8369 (show_record_command): Renamed to ...
8370 (show_record_full_command): ... this. Updated all users.
8371 (_initialize_record): Renamed to ...
8372 (_initialize_record_full): ... this. Updated all users.
8373
d02ed0bb
MM
83742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8375
8376 * record.h: Split into this and ...
8377 * record-full.h: ... this.
8378 * record.c: Split into this and ...
8379 * record-full.c: ... this.
8380 * target.h (target_ops): Add new fields to_info_record,
8381 to_save_record, to_delete_record, to_record_is_replaying,
8382 to_goto_record_begin, to_goto_record_end, to_goto_record.
8383 (target_info_record): New.
8384 (target_save_record): New.
8385 (target_supports_delete_record): New.
8386 (target_delete_record): New.
8387 (target_record_is_replaying): New.
8388 (target_goto_record_begin): New.
8389 (target_goto_record_end): New.
8390 (target_goto_record): New.
8391 * target.c (target_info_record): New.
8392 (target_save_record): New.
8393 (target_supports_delete_record): New.
8394 (target_delete_record): New.
8395 (target_record_is_replaying): New.
8396 (target_goto_record_begin): New.
8397 (target_goto_record_end): New.
8398 (target_goto_record): New.
8399 * record.h: Declare struct cmd_list_element.
8400 (record_cmdlist): New declaration.
8401 (set_record_cmdlist): New declaration.
8402 (show_record_cmdlist): New declaration.
8403 (info_record_cmdlist): New declaration.
8404 (cmd_record_goto): New declaration.
8405 * record.c: Remove unnecessary includes.
8406 Include inferior.h.
8407 (cmd_record_goto): Remove declaration.
8408 (record_cmdlist): Now extern. Initialize.
8409 (set_record_cmdlist): Now extern. Initialize.
8410 (show_record_cmdlist): Now extern. Initialize.
8411 (info_record_cmdlist): Now extern. Initialize.
8412 (find_record_target): New.
8413 (require_record_target): New.
8414 (cmd_record_start): Update.
8415 (cmd_record_delete): Remove target-specific code.
8416 Call target_delete_record.
8417 (cmd_record_stop): Unpush any record target.
8418 (set_record_insn_max_num): Move to record-full.c
8419 (set_record_command): Add comment.
8420 (show_record_command): Add comment.
8421 (info_record_command): Update comment.
8422 Remove target-specific code.
8423 Call the record target's to_info_record.
8424 (cmd_record_start): New.
8425 (cmd_record_goto): Now extern.
8426 Remove target-specific code.
8427 Call target_goto_begin, target_goto_end, or target_goto.
8428 (_initialize_record): Move record target ops initialization to
8429 record-full.c.
8430 Change "record" command help text.
8431 Move "record restore", "record set", and "record show" commands to
8432 record-full.c.
8433 * Makefile.in (SFILES): Add record-full.c.
8434 (HFILES_NO_SRCDIR): Add record-full.h.
8435 (COMMON_OBS): Add record-full.o.
8436 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8437 * arm-tdep.c: Include record-full.h.
8438 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8439 * i386-tdep.c: Include record-full.h.
8440 * infrun.c: Include record-full.h.
8441 * linux-record.c: Include record-full.h.
8442 * moxie-tdep.c: Include record-full.h.
8443 * record-full.c: Include record-full.h.
8444 Change module comment.
8445 (set_record_full_cmdlist): New.
8446 (show_record_full_cmdlist): New.
8447 (record_full_cmdlist): New.
8448 (record_goto_insn): New declaration.
8449 (record_save): New declaration.
8450 (record_check_insn_num): Change query string.
8451 (record_info): New.
8452 (record_delete): New.
8453 (record_is_replaying): New.
8454 (record_goto_entry): New.
8455 (record_goto_begin): New.
8456 (record_goto_end): New.
8457 (record_goto): New.
8458 (init_record_ops): Update.
8459 (init_record_core_ops): Update.
8460 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8461 (cmd_record_start): New.
8462 (set_record_insn_max_num): Moved from record.c
8463 (set_record_full_command): New.
8464 (show_record_full_command): New.
8465 (_initialize_record_full): New.
8466
b48d48eb
MM
84672013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8468
8469 * target.h (add_deprecated_target_alias): New.
8470 * target.c (add_deprecated_target_alias): New.
8471
a950d57c
MM
84722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8473
8474 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8475 and signal.h.
8476 (linux_supports_btrace): Add kernel and
8477 cpuid check.
8478 (kernel_supports_btrace): New function.
8479 (cpu_supports_btrace): New function.
8480 (intel_supports_btrace): New function.
8481
9accd112
MM
84822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8483
8484 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8485 * remote.c: Include btrace.h.
8486 (struct btrace_target_info): New struct.
8487 (remote_supports_btrace): New function.
8488 (send_Qbtrace): New function.
8489 (remote_enable_btrace): New function.
8490 (remote_disable_btrace): New function.
8491 (remote_teardown_btrace): New function.
8492 (remote_read_btrace): New function.
8493 (init_remote_ops): Add btrace ops.
8494 (enum <unnamed>): Add btrace packets.
8495 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8496 (_initialize_remote): Add packet configuration for branch tracing.
8497
c12a2917
MM
84982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8499
8500 * features/btrace.dtd: New file.
8501 * Makefile.in (XMLFILES): Add btrace.dtd.
8502 * btrace.h (parse_xml_btrace): New declaration.
8503 * btrace.c: Include xml-support.h.
8504 (parse_xml_btrace): New function.
8505 (parse_xml_btrace_block): New function.
8506 (block_attributes): New struct.
8507 (btrace_attributes): New struct.
8508 (btrace_children): New struct.
8509 (btrace_elements): New struct.
8510
3e3aea48
MM
85112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8512
8513 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8514 (amd64_linux_enable_btrace): New.
8515 (amd64_linux_disable_btrace): New.
8516 (amd64_linux_teardown_btrace): New.
8517 (_initialize_amd64_linux_nat): Initialize btrace ops.
8518 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8519 (i386_linux_enable_btrace): New.
8520 (i386_linux_disable_btrace): New.
8521 (i386_linux_teardown_btrace): New.
8522 (_initialize_i386_linux_nat): Initialize btrace ops.
8523 * config/i386/linux.mh: Add linux-btrace.o.
8524 * config/i386/linux64.mh: Add linux-btrace.o.
8525
7c97f91e
MM
85262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8527
8528 * common/linux_btrace.h: New file.
8529 * common/linux_btrace.c: New file.
8530 * Makefile.in (SFILES): Add btrace.c.
8531 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8532 (COMMON_OBS): Add btrace.o.
8533 (linux-btrace.o): New rule.
8534
1999790b 85352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8536
8537 * target.h: Include btrace.h.
8538 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8539 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8540 * target.c (target_supports_btrace): New function.
8541 (target_enable_btrace): New function.
8542 (target_disable_btrace): New function.
8543 (target_teardown_btrace): New function.
8544 (target_read_btrace): New function.
8545 * btrace.h: New file.
8546 * btrace.c: New file.
8547 * Makefile.in: Add btrace.c.
8548 * gdbthread.h: Include btrace.h.
8549 (struct thread_info): Add btrace field.
8550 * thread.c: Include btrace.h.
8551 (clear_thread_inferior_resources): Call target_teardown_btrace.
8552 * common/btrace-common.h: New file.
8553
61a31a67
JK
85542013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8555
8556 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8557 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8558 kill_status to outer block.
8559
05c56a9d
JK
85602013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8561
8562 Fix entry-values if the callee called a noreturn function.
8563 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8564 get_frame_address_in_block. Add new comment.
8565
9112db09
JK
85662013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8567
8568 Fix entry-values in C++ across CUs.
8569 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8570 lookup_minimal_symbol. Add a comment.
8571 * dwarf2read.c
8572 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8573 DW_AT_linkage_name.
8574
9b67fcec
YQ
85752013-03-08 Yao Qi <yao@codesourcery.com>
8576
8577 * tracepoint.c (_initialize_tracepoint): Indent the code.
8578
6221be90
PA
85792013-03-08 Pedro Alves <palves@redhat.com>
8580
8581 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8582 (parse_find_args, find_command): Change type of pattern buffer
8583 locals to 'gdb_byte *'.
8584
be9a119c 85852013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8586 Hafiz Abid Qadeer <abidh@codesourcery.com>
8587
8588 * NEWS: Mention set and show trace-buffer-size commands.
8589 Mention new packet.
8590 * target.h (struct target_ops): New method
8591 to_set_trace_buffer_size.
8592 (target_set_trace_buffer_size): New macro.
8593 * target.c (update_current_target): Set up new method.
8594 * tracepoint.c (trace_buffer_size): New global.
8595 (start_tracing): Send it to the target.
8596 (set_trace_buffer_size): New function.
8597 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8598 * remote.c (remote_set_trace_buffer_size): New function.
8599 (_initialize_remote): Use it.
8600 (QTBuffer:size) New remote command.
8601 (PACKET_QTBuffer_size): New enum.
8602 (remote_protocol_features): Add an entry for
8603 PACKET_QTBuffer_size.
8604
7da3ab79
TT
86052013-03-08 Tom Tromey <tromey@redhat.com>
8606
8607 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8608 variable.
8609
0c1f71e7
PA
86102013-03-07 Pedro Alves <palves@redhat.com>
8611
8612 * target.c (target_read_stralloc, target_fileio_read_alloc):
8613 *Cast pointer to 'gdb_byte *' in target call.
8614
c8af03a2
PA
86152013-03-07 Pedro Alves <palves@redhat.com>
8616
8617 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8618 call.
8619
529480d0
KS
86202013-03-07 Keith Seitz <keiths@redhat.com>
8621
8622 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8623 (trace_pass_command): Likewise.
8624 * cli/cli-cmds.c: Include cli/cli-utils.h.
8625 (source_command): Use skip-spaces.
8626 (disassemble_command): Likewise.
8627 * findcmd.c: Include cli/cli-utils.h.
8628 (parse_find_args): Use skip_spaces.
8629 * go32-nat.c: Include cli/cli-utils.h.
8630 (go32_sldt): Use skip_spaces.
8631 (go32_sgdt): Likewise.
8632 (go32_sidt): Likewise.
8633 (go32_pde): Likewise.
8634 (go32_pte): Likewise.
8635 (go32_pte_for_address): Likewise.
8636 * infcmd.c: Include cli/cli-utils.h.
8637 (registers_info): Use skip_spaces.
8638 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8639 (linux_info_proc): Likewise.
8640 * linux-thread-db.c: Include cli/cli-utils.h.
8641 (info_auto_load_libthread_db): Use skip_spaces_const.
8642 * m32r-rom.c: Include cli/cli-utils.h.
8643 (m32r_upload_command): Use skip_spaces.
8644 * maint.c: Include cli/cli-utils.h.
8645 (maintenance_translate_address): Use skip_spaces.
8646 * mi/mi-parse.c: Include cli/cli-utils.h.
8647 (mi_parse_argv): Use skip_spaces.
8648 (mi_parse): Likewise.
8649 * minsyms.c: Include cli/cli-utils.h.
8650 (msymbol_hash_iw): Use skip_spaces_const.
8651 * objc-lang.c: Include cli/cli-utils.h.
8652 (parse_selector): Use skip_spaces.
8653 (parse_method): Likewise.
8654 * python/python.c: Include cli/cli-utils.h.
8655 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8656 (python_command)[HAVE_PYTHON]: Likewise.
8657 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8658 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8659 (m32r_load): Use skip_spaces.
8660 * serial.c: Include cli/cli-utils.h.
8661 (serial_open): Use skip_spaces_const.
8662 * stack.c: Include cli/cli-utils.h.
8663 (parse_frame_specification_1): Use skip_spaces_const.
8664 * symfile.c: Include cli/cli-utils.h.
8665 (set_ext_lang_command): Use skip_spaces.
8666 * symtab.c: Include cli/cli-utils.h.
8667 (rbreak_command): Use skip_spaces.
8668 * thread.c (thread_name_command): Use skip_spaces.
8669 * tracepoint.c (validate_actionline): Use skip_spaces.
8670 (encode_actions_1): Likewise.
8671 (trace_find_range_command): Likewise.
8672 (trace_find_outside_command): Likewise.
8673 (trace_dump_actions): Likewise.
8674
ac91cd70
PA
86752013-03-07 Pedro Alves <palves@redhat.com>
8676
8677 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8678 * expprint.c (print_subexp_standard): Likewise.
8679 * utils.c (host_char_to_target): Likewise.
8680 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8681 * varobj.c (value_get_print_value): Change type of local to char*.
8682 Cast it gdb_byte * in call to language printer.
8683
2898e560
PA
86842013-03-07 Pedro Alves <palves@redhat.com>
8685
8686 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8687 gdb_byte *'.
8688 (make_wchar_iterator): Remove cast to char*.
8689 (wchar_iterate): Change type of local.
8690
a09b4448
PA
86912013-03-07 Pedro Alves <palves@redhat.com>
8692
8693 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8694 for 'regcache->register_status'.
8695
20ced3e4
PA
86962013-03-07 Pedro Alves <palves@redhat.com>
8697
c2d6a675 8698 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
8699 int.
8700
fe106009
PA
87012013-03-07 Pedro Alves <palves@redhat.com>
8702
8703 * stap-probe.c (handle_stap_probe): Add cast to char*.
8704
8ac2c12b
PA
87052013-03-07 Pedro Alves <palves@redhat.com>
8706
8707 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8708 RECORD_MSGRCV>: Pass a signed variable to
8709 regcache_raw_read_signed, instead of an unsigned one.
8710
99f0a309
PA
87112013-03-07 Pedro Alves <palves@redhat.com>
8712
8713 * remote-notif.c (notif_debug): Change type to int.
8714 * remote-notif.h (notif_debug): Likewise.
8715
964b8317
PA
87162013-03-07 Pedro Alves <palves@redhat.com>
8717
8718 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8719
f0cc8ad4
PA
87202013-03-07 Pedro Alves <palves@redhat.com>
8721
8722 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8723 * remote.h (hex2bin, bin2hex): ... here.
8724 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8725
77dec115
EZ
87262013-03-07 Eli Zaretskii <eliz@gnu.org>
8727
8728 * utils.c (initialize_utils): Improve doc strings of "set/show
8729 width", "set/show height", and "set/show pagination".
8730
741d92cf
KS
87312013-03-06 Keith Seitz <keiths@redhat.com>
8732
8733 * ax-gdb.c (gen_printf): Make FORMAT const.
8734 * ax-gdb.h (gen_printf): Likewise.
8735 * ax-general.c (ax_string): Make STR const.
8736 * ax.h (ax_string): Likewise.
8737
7b6c814e
DE
87382013-03-06 Doug Evans <dje@google.com>
8739
8740 * elfread.c (elf_symfile_read): Move debugging printf to more
8741 logical location.
8742
634334ab
PA
87432013-03-06 Pedro Alves <palves@redhat.com>
8744
8745 * python/py-utils.c (target_string_to_unicode): Delete function.
8746 * python/python-internal.h (target_string_to_unicode): Delete
8747 declaration.
8748
e482a1a7
PM
87492013-03-06 Pierre Muller <muller@sourceware.org>
8750
8751 * linespec.c (get_current_search_block): ARI fix, use (void)
8752 for empty parameter list.
8753
4eeaa230
DE
87542013-03-05 Doug Evans <dje@google.com>
8755
8756 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8757 of old ada_lookup_symbol_list. In !full_search case, don't
8758 search superblocks.
8759 (ada_lookup_symbol_list): Delete arg full_search, all callers
8760 updated. Call ada_lookup_symbol_list_worker.
8761 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8762 * ada-lang.h (ada_lookup_symbol_list): Update.
8763 * language.h (language_defn): Update comment for
8764 la_iterate_over_symbols.
8765 * linespec.c (iterate_over_file_blocks): New function.
8766 (iterate_over_all_matching_symtabs): Call it.
8767 (lookup_prefix_sym): Ditto.
8768 (get_current_search_block): New function.
8769 (get_search_block): Delete.
8770 (find_label_symbols): Call get_current_search_block.
8771 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8772 * symtab.c (iterate_over_symbols): Don't search superblocks.
8773
b69b1fb1
YQ
87742013-03-05 Yao Qi <yao@codesourcery.com>
8775
8776 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8777 parameter VAR's type from "unsigned int" to "int".
8778 * command.h (var_zuinteger_unlimited): Update its comments.
8779 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8780
3c095f49
CV
87812013-03-05 Corinna Vinschen <vinschen@redhat.de>
8782
8783 * NEWS: Mention new target x86_64-*-cygwin*.
8784
b5b0b0af
CV
87852013-03-05 Corinna Vinschen <vinschen@redhat.de>
8786
8787 * configure.host: Add x86_64-*-cygwin* as host.
8788 * configure.tgt: Add x86_64-*-cygwin* as target.
8789 * config/i386/cygwin64.mh: New file.
8790
f6f99966
JK
87912013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8792
8793 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8794
33f448b1
JK
87952013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8796
8797 * linespec.c (struct linespec_canonical_name): New.
8798 (struct linespec_state): Change canonical_names type to it.
8799 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8800 xrealloc element size. Initialize the different CANONICAL fields.
8801 (canonical_to_fullform): New.
8802 (filter_results): Use it. Add variables canonical, fullform and
8803 cleanup.
8804 (struct decode_line_2_item, decode_line_2_compare_items): New.
8805 (decode_line_2): Remove variables iter and item_names, add variables
8806 items and items_count. Modify the code for these new variables.
8807
feb14725
CV
88082013-03-04 Corinna Vinschen <vinschen@redhat.com>
8809
8810 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8811 calling do_cleanup.
8812
e83b17ba
HZ
88132013-03-04 Luis Machado <lgustavo@codesourcery.com>
8814
8815 * tracepoint.c (build_traceframe_info): Add code for byte order.
8816
a2d13a0d
KB
88172013-03-02 Kevin Buettner <kevinb@redhat.com>
8818
8dddcae8
KB
8819 * v850-tdep.c: (v850e2_register_name): Revise system register
8820 names to match current V850E2M architecture specifications.
8821 Update register number enum comments too.
f5aee5ee 8822
d79e58d8
JW
88232013-03-01 Jiong Wang <jiwang@tilera.com>
8824 Pedro Alves <palves@redhat.com>
8825
8826 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8827 to END_ADDR.
8828 (tilegx_skip_prologue): Limit prologue analysis to section end.
8829
c4be5165
JK
88302013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8831
8832 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8833 use it.
8834
e362b510
PA
88352013-03-01 Pedro Alves <palves@redhat.com>
8836
8837 Use gdb_byte for bytes from the program being debugged.
8838
8839 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8840 Change type of local 'buf' to gdb_byte.
8841 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8842 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8843 * cris-tdep.c (cris_sigcontext_addr)
8844 (cris_sigtramp_frame_unwind_cache): Likewise.
8845 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8846 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8847 Likewise.
8848 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8849 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8850 (hppa32_hpux_search_dummy_call_sequence)
8851 (hppa_hpux_supply_save_state): Likewise.
8852 * hppa-linux-tdep.c (insns_match_pattern)
8853 (hppa_linux_find_global_pointer): Likewise.
8854 * hppa-tdep.c (hppa_in_function_epilogue_p)
8855 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8856 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8857 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8858 (i386fbsd_collect_uthread): Likewise.
8859 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8860 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8861 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8862 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8863 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8864 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8865 (ia64_libunwind_frame_prev_register)
8866 (ia64_libunwind_sigtramp_frame_this_id)
8867 (ia64_find_global_pointer_from_dynamic_section)
8868 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8869 (ia64_unwind_pc): Likewise.
8870 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8871 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8872 (m68hc11_extract_return_value): Likewise.
8873 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8874 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8875 (mep_get_insn, mep_push_dummy_call): Likewise.
8876 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8877 (mips_linux_in_dynsym_stub): Likewise.
8878 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8879 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8880 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8881 to gdb_byte.
8882 * remote-mips.c (mips_set_register): Likewise.
8883 * remote-sim.c (gdbsim_fetch_register): Likewise.
8884 * score-tdep.c (score7_fetch_inst): Change type of parameter
8885 'memblock' and local 'buf' to gdb_byte.
8886 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8887 Change type of local 'buf' to gdb_byte. Adjust.
8888 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8889 to gdb_byte**.
8890 (score7_analyze_prologue): Change type of 'memblock' and
8891 'memblock_ptr' locals to gdb_byte*.
8892 * sh64-tdep.c (sh64_extract_return_value)
8893 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8894 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8895 * solib-pa64.c (pa64_solib_create_inferior_hook)
8896 (pa64_open_symbol_file_object): Remove local 'buf'.
8897 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8898 (som_open_symbol_file_object): Likewise.
8899 * solib-spu.c (spu_current_sos): Likewise.
8900 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8901 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8902 (spu_store_registers): Likewise.
8903 * target.c (debug_print_register): Likewise.
8904 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8905 * xstormy16-tdep.c (xstormy16_store_return_value)
8906 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8907 (xstormy16_find_jmp_table_entry): Likewise.
8908
75cc61ca 89092013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
8910
8911 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8912 (tilegx_gdbarch_init): Install it.
8913
ddb08e9c
TT
89142013-02-28 Tom Tromey <tromey@redhat.com>
8915
8916 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8917 PyLong_Check.
8918
62d7fb51
DE
89192013-02-28 Doug Evans <dje@google.com>
8920
8921 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8922 * python/python.c (gdbpy_find_pc_line): Ditto.
8923
c4a9e8b4
TT
89242013-02-28 Tom Tromey <tromey@redhat.com>
8925
8926 * contrib/excheck.py: New file.
8927 * contrib/exsummary.py: New file.
8928 * contrib/gcc-with-excheck: New file.
8929
7f6a5dde
TT
89302013-02-28 Tom Tromey <tromey@redhat.com>
8931
8932 * python/python.c (gdbpy_print_stack): Call begin_line and
8933 fprintf_filtered inside TRY_CATCH.
8934
9e974e55
TT
89352013-02-28 Tom Tromey <tromey@redhat.com>
8936
8937 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8938 inside TRY_CATCH.
8939
dd5fa3e7
TT
89402013-02-28 Tom Tromey <tromey@redhat.com>
8941
8942 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8943 frame_object_to_frame_info inside TRY_CATCH.
8944
86a3263f
TT
89452013-02-28 Tom Tromey <tromey@redhat.com>
8946
8947 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8948 TRY_CATCH.
8949
81b52a3a
TT
89502013-02-28 Tom Tromey <tromey@redhat.com>
8951
8952 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8953
d50a0ce2
CV
89542013-02-27 Corinna Vinschen <vinschen@redhat.com>
8955
8956 * windows-nat.c: Throughout, fix format strings and casts of
8957 printf-like functions to avoid type related warnings on all
8958 platforms.
8959 (handle_output_debug_string): Fetch context information address
8960 from debug string using string_to_core_addr.
8961
e1f58301
JW
89622013-02-27 Jiong Wang <jiwang@tilera.com>
8963
8964 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8965 * regformats/reg-tilegx32.dat: New.
8966
4fcd89fc
JW
89672013-02-27 Jiong Wang <jiwang@tilera.com>
8968
8969 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8970
748d24e6
JW
89712013-02-27 Jiong Wang <jiwang@tilera.com>
8972
8973 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8974
6c8e944d
YQ
89752013-02-27 Yao Qi <yao@codesourcery.com>
8976 Pedro Alves <palves@redhat.com>
8977
8978 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
8979 pc/tp/range/outside, look for the next trace frame instead of
8980 always starting from frame 0.
6c8e944d 8981
acd7db30
AG
89822013-02-26 Anthony Green <green@moxielogic.com>
8983
8984 * configure.tgt: Add support for moxie-*-rtems* target.
8985
025e6dce
PA
89862013-02-25 Pedro Alves <palves@redhat.com>
8987
8988 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8989 warning text.
8990
ca9c94ef
MR
89912013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8992
8993 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8994 if $fp is used as the virtual frame pointer.
8995
24c274a1
AM
89962013-02-23 Alan Modra <amodra@gmail.com>
8997
8998 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8999 symbol size.
9000 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9001 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9002 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9003 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9004
bfada189
JK
90052013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9006
9007 Code cleanup.
9008 * elfread.c (build_id_bfd_get): Make the return type const.
9009 (build_id_verify): Make the check parameter const.
9010 (build_id_to_debug_filename): Make the build_id parameter and variable
9011 data const.
9012 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9013
c0355132
AM
90142013-02-21 Alan Modra <amodra@gmail.com>
9015
9016 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9017
9f44fbc0
SCR
90182013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9019
9020 Add a new method 'disassemble' to gdb.Architecture class.
9021 * python/py-arch.c (archpy_disassmble): Implementation of the
9022 new method gdb.Architecture.disassemble.
9023 (arch_object_methods): Add entry for the new method.
9024
b74ea3eb
JW
90252013-02-20 Jiong Wang <jiwang@tilera.com>
9026
9027 * MAINTAINERS (Write After Approval): Add myself to the list.
9028
61a672f1
PA
90292013-02-19 Pedro Alves <palves@redhat.com>
9030
9031 Garbage collect 'struct monitor_ops'::load_routine.
9032
9033 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9034 * monitor.c (monitor_load): No longer call
9035 current_monitor->load_routine.
9036 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9037 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9038 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9039
40e397df
PA
90402013-02-19 Pedro Alves <palves@redhat.com>
9041
9042 PR gdb/15161
9043
9044 Harmonize with generic_load.
9045
9046 * monitor.c: Include "readline/readline.h".
9047 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9048 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9049 long/strtol for the 'load_offset' local. Error out if no argument
9050 is given or if too many arguments are given. Tilde expand the
9051 passed in file name.
9052
f698ca8e
KT
90532013-02-19 Kai Tietz <ktietz@redhat.com>
9054
9055 PR gdb/15161
9056 * symfile.c (load_section_data): Change type of load_offset
9057 to CORE_ADDR.
9058 (generic_load): User strtoulst instead of strtoul for conversion
9059 of load_offset.
9060
3361b059
WL
90612013-02-19 Jiong Wang <jiwang@tilera.com>
9062
9063 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9064 for return address, "lr" register, saved on stack.
9065 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9066 after we invoke tilegx_analyze_prologue.
9067
3e9d5130
WL
90682013-02-19 Jiong Wang <jiwang@tilera.com>
9069
bb1bcd86
WL
9070 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9071
3361b059 90722013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9073
b74ea3eb 9074 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9075
4aaf2503
WL
90762013-02-19 Jiong Wang <jiwang@tilera.com>
9077
b74ea3eb 9078 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9079 (tilegx_write_pc): New function.
9080 (tilegx_cannot_reference_register): Return zero if REGNO
9081 is TILEGX_FAULTNUM_REGNUM.
9082 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9083 (tilegx_register_name): Add handling of "faultnum" register.
9084 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9085 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9086 handling of TILEGX_FAULTNUM_REGNUM.
9087 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9088
bc23a956
WL
90892013-02-19 Jiong Wang <jiwang@tilera.com>
9090
9091 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9092 should be aligned to 64bit.
bc23a956 9093
42f45f1a
KT
90942013-02-19 Kai Tietz <ktietz@redhat.com>
9095
9096 * windows-nat.c (windows_xfer_memory): Fix debug-output
9097 for LLP64.
9098
6ce4c112
LL
90992013-02-19 Lei Liu <lei.liu2@windriver.com>
9100
9101 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9102 Don't check DSP register number if HAVE_DSP is not set.
9103
30e8ee25
AM
91042013-02-19 Alan Modra <amodra@gmail.com>
9105
9106 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9107 throughout file instead.
9108 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9109 Don't xmalloc return value.
9110 (build_id_verify): Similarly. Don't xfree.
9111 (build_id_to_debug_filename): Update.
9112 (find_separate_debug_file_by_buildid): Update, don't xfree.
9113
4c9ad8c2
TT
91142013-02-18 Tom Tromey <tromey@redhat.com>
9115
9116 PR gdb/15102:
9117 * dwarf2read.c (read_subrange_type): Use result of
9118 'check_typedef'.
9119
983dc440
YQ
91202013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9121
9122 * frame.c: Remove one extra white space after #include
9123 directive.
9124
7fb2b84a
JK
91252013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9126
9127 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9128
edceb2a9
JK
91292013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9130
9131 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9132 and dir commands into an if block.
9133
e81b7af8
TT
91342013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9135
9136 * python/py-breakpoint (struct pybp_code): Use int instead of
9137 enum type_code.
9138
f5911ea1
HAQ
91392013-02-15 Pedro Alves <pedro@codesourcery.com>
9140 Hafiz Abid Qadeer <abidh@codesourcery.com>
9141
9142 * NEWS: Mention new field "trace-file".
9143 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9144 (tfile_open): Record the trace file's filename in the trace
9145 status.
9146 (tfile_files_info): Mention the name of the trace file.
9147 Check the "filename" field explicitely.
9148 (trace_status_command): Explicitely check "filename" field.
9149 (trace_find_command): Ditto.
9150 (trace_find_pc_command): Ditto.
9151 (trace_find_tracepoint_command): Ditto.
9152 (trace_find_line_command): Ditto.
9153 (trace_find_range_command): Ditto.
9154 (trace_find_outside_command): Ditto.
9155 * tracepoint.h (struct trace_status) <from_file>: Rename it
9156 to "filename" and make it hold the trace file's filename
9157 instead of a boolean.
9158 * remote.c (remote_get_trace_status): Initialize "filename"
9159 field with NULL instead of 0.
9160
796cb314
YQ
91612013-02-15 Yao Qi <yao@codesourcery.com>
9162
9163 * remote.c: Fix a typo.
9164
42e79b1d
PM
91652013-02-14 Pierre Muller <muller@sourceware.org>
9166
9167 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9168
baea0dae
PA
91692013-02-14 Pedro Alves <palves@redhat.com>
9170
9171 * utils.c (savestring): Don't #undef it. Move function to
9172 common/common-utils.c.
9173 * common/common-utils.c: Include gdb_string.h.
9174 (savestring): Move here from utils.c.
9175 * common/common-utils.h (savestring): Declare.
9176
57c3b6ed
PA
91772013-02-14 Pedro Alves <palves@redhat.com>
9178
9179 * utils.c (savestring): Rename parameter 'size' to 'len'.
9180
d6c44983
YZ
91812013-02-14 Pedro Alves <palves@redhat.com>
9182 Yufeng Zhang <yufeng.zhang@arm.com>
9183
9184 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9185 (aarch64_inferior_data, struct aarch64_inferior_data):
9186 Delete.
9187 (struct aarch64_process_info): New.
9188 (aarch64_process_list): New global.
9189 (aarch64_find_process_pid, aarch64_add_process)
9190 (aarch64_process_info_get): New functions.
9191 (aarch64_inferior_data_get): Delete.
9192 (aarch64_process_info_get): New function.
9193 (aarch64_forget_process): New function.
9194 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9195 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9196 aarch64_get_debug_reg_state.
9197 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9198 instead of linux_nat_iterate_watchpoint_lwps.
9199 (aarch64_linux_new_fork): New function.
9200 (aarch64_linux_child_post_startup_inferior): Use
9201 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9202 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9203 (aarch64_linux_remove_hw_breakpoint)
9204 (aarch64_handle_aligned_watchpoint)
9205 (aarch64_handle_unaligned_watchpoint)
9206 (aarch64_linux_insert_watchpoint)
9207 (aarch64_linux_remove_watchpoint)
9208 (aarch64_linux_stopped_data_address): Adjust to pass the current
9209 process id to aarch64_debug_reg_state.
9210 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9211 linux_nat_new_fork hook, and aarch64_forget_process as
9212 linux_nat_forget_process hook; remove the call to
9213 register_inferior_data_with_cleanup.
9214
4819b3f8
PA
92152013-02-14 Pedro Alves <palves@redhat.com>
9216
9217 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9218 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9219 lval_memory.
9220
1773c82c
HAQ
92212013-02-14 Pedro Alves <pedro@codesourcery.com>
9222 Hafiz Abid Qadeer <abidh@codesourcery.com>
9223
9224 * tracepoint.h (validate_trace_state_variable_name): Declare.
9225 * tracepoint.c (validate_trace_state_variable_name): New.
9226 (trace_variable_command): Parse the trace state variable's name
9227 without using parse_expression. Do several validations.
9228 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9229 trace state variable's name with parse_expression. Validate it.
9230
53778a97
YQ
92312013-02-14 Yao Qi <yao@codesourcery.com>
9232
9233 * infcmd.c (breakpoint_proceeded): Remove it.
9234
7b3ae3a6
YQ
92352013-02-14 Yao Qi <yao@codesourcery.com>
9236
9237 * tracepoint.c (end_actions_pseudocommand): Make it static.
9238 (while_stepping_pseudocommand): Likewise.
9239 * tracepoint.h (end_actions_pseudocommand): Remove the
9240 declaration.
9241 (while_stepping_pseudocommand): Likewise.
9242
64580925
YQ
92432013-02-14 Yao Qi <yao@codesourcery.com>
9244
9245 * cli/cli-decode.c (help_cmd): Remove the declaration of
9246 "cmdlist".
9247 (help_all): Likewise.
9248
26cb8b7c
PA
92492013-02-13 Pedro Alves <palves@redhat.com>
9250
9251 * amd64-linux-nat.c (update_debug_registers_callback):
9252 Update comment.
9253 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9254 iterate_over_lwps.
9255 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9256 i386_debug_reg_state.
9257 (amd64_linux_new_fork): New function.
9258 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9259 linux_nat_new_fork hook, and i386_forget_process as
9260 linux_nat_forget_process hook.
9261 * i386-linux-nat.c (update_debug_registers_callback):
9262 Update comment.
a8256ea1 9263 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9264 iterate_over_lwps.
9265 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9266 i386_debug_reg_state.
9267 (i386_linux_new_fork): New function.
9268 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9269 linux_nat_new_fork hook, and i386_forget_process as
9270 linux_nat_forget_process hook.
9271 * i386-nat.c (i386_init_dregs): Delete.
9272 (i386_inferior_data, struct i386_inferior_data):
9273 Delete.
9274 (struct i386_process_info): New.
9275 (i386_process_list): New global.
9276 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9277 New functions.
9278 (i386_inferior_data_get): Delete.
9279 (i386_process_info_get): New function.
9280 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9281 (i386_forget_process): New function.
9282 (i386_cleanup_dregs): Rewrite.
9283 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9284 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9285 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9286 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9287 to i386_debug_reg_state.
9288 (i386_use_watchpoints): Don't register inferior data.
9289 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9290 adjust comment.
9291 (i386_forget_process): Declare.
9292 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9293 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9294 New static globals.
9295 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9296 (add_initial_lwp): New, factored out from ...
9297 (add_lwp): ... this. Don't check the number of lwps before
9298 calling linux_nat_new_thread.
9299 (linux_nat_iterate_watchpoint_lwps): Delete.
9300 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9301 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9302 forks and vforks.
9303 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9304 initial lwp.
9305 (linux_nat_kill, linux_nat_mourn_inferior): Call
9306 linux_nat_forget_process.
9307 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9308 (linux_nat_forget_process): New functions.
9309 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9310 type.
9311 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9312 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9313 types.
9314 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9315 (linux_nat_forget_process): New declarations.
9316
9317 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9318 (amd64fbsd_mourn_inferior): New function.
9319 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9320 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9321
5befea72
MS
93222013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9323
55015247
YQ
9324 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9325 Adding _().
5befea72 9326
1d3ffd6b
MS
93272013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9328
9329 * aarch64-linux-nat.c (debug_reg_change_callback)
9330 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9331 %s and phex().
9332
6eb04473
MS
93332013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9334
9335 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9336 with LONGEST.
9337
a016fc87
HAQ
93382013-02-13 Pedro Alves <palves@redhat.com>
9339 Hafiz Abid Qadeer <abidh@codesourcery.com>
9340
9341 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9342
e234dfaf
TT
93432013-02-12 Tom Tromey <tromey@redhat.com>
9344
9345 PR symtab/11464:
9346 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9347 NAME return.
9348 (classify_inner_name): Remove 'first_name' argument, add
9349 'context'. Remove unused variable.
9350 (yylex): Explicitly maintain the context type. Exit loop earlier
9351 if NAME result is seen.
9352
0b1afbb3
PA
93532013-02-12 Pedro Alves <palves@redhat.com>
9354
9355 * amd64-darwin-tdep.c: Add (C) after Copyright.
9356 * cli/cli-cmds.h: Ditto.
9357 * cli/cli-decode.c: Ditto.
9358 * cli/cli-decode.h: Ditto.
9359 * cli/cli-dump.c: Ditto.
9360 * cli/cli-dump.h: Ditto.
9361 * cli/cli-interp.c: Ditto.
9362 * cli/cli-logging.c: Ditto.
9363 * cli/cli-script.c: Ditto.
9364 * cli/cli-script.h: Ditto.
9365 * cli/cli-setshow.c: Ditto.
9366 * cli/cli-setshow.h: Ditto.
9367 * cli/cli-utils.c: Ditto.
9368 * cli/cli-utils.h: Ditto.
9369 * config/alpha/nm-osf3.h: Ditto.
9370 * config/djgpp/djconfig.sh: Ditto.
9371 * config/i386/nm-fbsd.h: Ditto.
9372 * config/i386/nm-i386gnu.h: Ditto.
9373 * config/nm-linux.h: Ditto.
9374 * config/nm-nto.h: Ditto.
9375 * config/rs6000/nm-rs6000.h: Ditto.
9376 * config/sparc/nm-sol2.h: Ditto.
9377 * darwin-nat-info.c: Ditto.
9378 * dfp.c: Ditto.
9379 * dfp.h: Ditto.
9380 * gdb-demangle.h: Ditto.
9381 * i386-darwin-nat.c: Ditto.
9382 * i386-darwin-tdep.c: Ditto.
9383 * linux-fork.h: Ditto.
9384 * m32c-tdep.c: Ditto.
9385 * microblaze-linux-tdep.c: Ditto.
9386 * microblaze-rom.c: Ditto.
9387 * microblaze-tdep.c: Ditto.
9388 * microblaze-tdep.h: Ditto.
9389 * mips-linux-tdep.h: Ditto.
9390 * ppc-ravenscar-thread.c: Ditto.
9391 * ppc-ravenscar-thread.h: Ditto.
9392 * prologue-value.c: Ditto.
9393 * prologue-value.h: Ditto.
9394 * ravenscar-thread.c: Ditto.
9395 * ravenscar-thread.h: Ditto.
9396 * sparc-ravenscar-thread.c: Ditto.
9397 * sparc-ravenscar-thread.h: Ditto.
9398 * tilegx-linux-tdep.c: Ditto.
9399 * unwind_stop_reasons.def: Ditto.
9400 * windows-nat.h: Ditto.
9401 * xtensa-linux-tdep.c: Ditto.
9402 * xtensa-xtregs.c: Ditto.
9403 * regformats/regdat.sh: Ditto.
9404 * regformats/regdef.h: Ditto.
9405
6c01dd94
PA
94062013-02-12 Pedro Alves <palves@redhat.com>
9407
9408 * break-catch-sig.c: Update copyright years.
9409
b65a2bd9
SCR
94102013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9411
9412 Add support for a destructor for ui_out data and use it to
9413 provide a ui_out destructor.
9414 * ui-out.h: Declare the new ui_out destructor.
9415 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9416 * ui-out.c (default_data_destroy): Add a default data destructor
9417 which does nothing.
9418 (default_ui_out_impl): Set the new data_destroy field to
9419 default_data_destroy
9420 (uo_data_destroy): Local function which invokes the data
9421 destructor if present.
9422 (clear_table): Local function which clears the table data of a
9423 ui_out object.
9424 (ui_out_destroy): Public function which frees a ui_out object.
9425 (ui_out_table_end): Use the new clear_table function.
9426 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9427 NULL.
9428 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9429 to NULL.
9430
c2792f5a
DE
94312013-02-11 Doug Evans <dje@google.com>
9432
9433 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9434 (printf_decfloat): New function. Broken out from ui_printf.
9435 Remove unnecessary code to shift the entire format string down.
9436 (printf_pointer): New function.
9437 (ui_printf): Code to print C strings, wide C strings, decfloats,
9438 and pointers moved to separate functions.
9439
d9e98382
SDJ
94402013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9441
9442 * valops.c (value_assign): Handling bitfield offset in
9443 `lval_internalvar_component' case.
9444
4ff3ce77
DE
94452013-02-08 Doug Evans <dje@google.com>
9446
9447 * common/format.c (parse_format_string): Fix whitespace.
9448
901900c4
MGD
94492013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9450
9451 * stack.c (return_command): Work around uninitialized variable
9452 warning.
9453
b5dbc8d4
YZ
94542013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9455
9456 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9457 number of the registers from 36 to 34.
9458
51d66578
MS
94592013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9460
9461 * NEWS: Mention new AArch64 native and target support.
9462
176b1c95
MS
94632013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9464
9465 * MAINTAINERS (Write After Approval): Add myself.
9466
9d19df75
MS
94672013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9468 Marcus Shawcroft <marcus.shawcroft@arm.com>
9469 Nigel Stephens <nigel.stephens@arm.com>
9470 Yufeng Zhang <yufeng.zhang@arm.com>
9471
9472 * aarch64-linux-nat.c: New file.
9473 * config/aarch64/linux.mh: New file.
9474 * configure.host: Add AArch64.
9475 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9476
7e1e0340
DE
94772013-02-07 Doug Evans <dje@google.com>
9478
9479 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9480 disassemble command.
9481
45e25a36
MS
94822013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9483
9484 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9485 set_gdbarch_fetch_tls_load_module_address.
9486
bbfdfe1c
DM
94872013-02-06 David S. Miller <davem@davemloft.net>
9488
9489 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9490 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9491 * value.c (struct_return_convention): New function.
9492 (using_struct_return): Implement in terms of struct_return_convention.
9493 * value.h (struct_return_convention): Declare.
9494 * stack.c (return_command): Allow successful overriding of the return
9495 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9496
bc9abe4a
TT
94972013-02-06 Tom Tromey <tromey@redhat.com>
9498
9499 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9500 outside of TRY_CATCH.
9501
134a2066
YQ
95022013-02-06 Yao Qi <yao@codesourcery.com>
9503
9504 * mi/mi-interp.c: Include "tracepoint.h".
9505 (mi_tsv_modified): Declare.
9506 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9507 (mi_interpreter_init): Call observer_attach_tsv_modified.
9508 (mi_tsv_modified): New.
9509 (mi_tsv_created, mi_tsv_deleted): Update.
9510 * tracepoint.c (trace_variable_command): Call
9511 observer_notify_tsv_modified if the initial value of tsv is
9512 changed.
9513 (delete_trace_state_variable): Call
9514 observer_notify_tsv_deleted earlier.
9515 (trace_variable_command): Caller update.
9516 (create_tsv_from_upload): Likewise.
9517 * observer.sh: Declare "struct trace_state_variable".
9518
9519 * NEWS: Mention the new MI notification "=tsv-modified".
9520
59be2b6a
DE
95212013-02-05 Doug Evans <dje@google.com>
9522
9523 * completer.c (location_completer): Fix typo in comment.
9524
d30113d4
JK
95252013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9526
9527 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9528 ADDRESS sorted.
9529
14ac654f
MS
95302013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9531
9532 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9533 Refactor if statement to avoid trailing || operator.
9534
543bf33d
AT
95352013-02-05 Andreas Tobler <andreast@fgznet.ch>
9536
9537 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9538
dc18f110
AT
95392013-02-04 Andreas Tobler <andreast@fgznet.ch>
9540
9541 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9542 * configure.host: Add powerpc*-*-freebsd* target.
9543 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9544 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9545 * config/powerpc/fbsd.mh: New file.
9546
b3ac9c77
SDJ
95472013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9548 Denys Vlasenko <dvlasenk@redhat.com>
9549 Pedro Alves <palves@redhat.com>
9550
9551 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9552 (struct elf_internal_linux_prpsinfo): Forward declare.
9553 * gdbarch.h, gdbarch.c: Regenerate.
9554 * linux-tdep.c: Include `cli/cli-utils.h'.
9555 (linux_fill_prpsinfo): New function.
9556 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9557 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9558 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9559 depending on gdbarch pointer bitness.
9560 * ppc-linux-tdep.c: Include elf-bfd.h.
9561 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9562 on 32-bit.
9563
176eb98c
MS
95642013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9565 Marcus Shawcroft <marcus.shawcroft@arm.com>
9566 Nigel Stephens <nigel.stephens@arm.com>
9567 Yufeng Zhang <yufeng.zhang@arm.com>
9568
9569 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9570
cf0dbd6f
MS
95712013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9572 Marcus Shawcroft <marcus.shawcroft@arm.com>
9573 Nigel Stephens <nigel.stephens@arm.com>
9574 Yufeng Zhang <yufeng.zhang@arm.com>
9575
9576 * aarch64-newlib-tdep.c: New file.
9577 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9578 aarch64*-*-elf.
9579 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9580 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9581 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9582 * osabi.c (gdb_osabi_names): Add "Newlib".
9583
1ae3db19
MS
95842013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9585 Marcus Shawcroft <marcus.shawcroft@arm.com>
9586 Nigel Stephens <nigel.stephens@arm.com>
9587 Yufeng Zhang <yufeng.zhang@arm.com>
9588
9589 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9590 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9591 * aarch64-linux-tdep.c: New file.
9592 * aarch64-linux-tdep.h: New file.
9593 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9594 * configure.tgt: Add aarch64-none-linux-gnu.
9595
07b287a0
MS
95962013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9597 Marcus Shawcroft <marcus.shawcroft@arm.com>
9598 Nigel Stephens <nigel.stephens@arm.com>
9599 Yufeng Zhang <yufeng.zhang@arm.com>
9600
9601 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9602 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9603 (ALLDEPFILES): Add aarch64-tdep.c.
9604 * aarch64-tdep.c: New file.
9605 * aarch64-tdep.h: New file.
9606 * configure.tgt: Add AArch64.
9607 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9608 (aarch64-expedite): New definition.
9609 * features/aarch64-core.xml: New file.
9610 * features/aarch64-fpu.xml: New file.
9611 * features/aarch64-without-fpu.c: New file (generated).
9612 * features/aarch64-without-fpu.xml: New file.
9613 * features/aarch64.c: New file (generated).
9614 * features/aarch64.xml: New file.
9615 * regformats/aarch64-without-fpu.dat: New file (generated).
9616 * regformats/aarch64.dat: New file (generated).
9617
0f1b18ab
JK
96182013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9619
9620 * contrib/expect-read1.c: New file.
9621 * contrib/expect-read1.sh: New file.
9622
233d95b5
JK
96232013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9624
9625 * dwarf2read.c (file_file_name): New function with code from
9626 file_full_name.
9627 (file_full_name): Move most of the code to file_file_name.
9628 (macro_start_file): Rename variable full_name to file_name and use
9629 file_file_name for it. Add comp_dir parameter to new_macro_table.
9630 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9631 macro_source_file->filename access by macro_source_fullname call.
9632 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9633 caller.
9634 * macrotab.c (struct macro_table): New field comp_dir.
9635 (macro_include): New variables link_fullname and source_fullname.
9636 Replace any macro_source_file->filename access by macro_source_fullname
9637 call.
9638 (macro_lookup_inclusion): Remove the partial filenames checking code.
9639 (check_for_redefinition): New variables source_fullname and
9640 found_key_fullname. Replace any macro_source_file->filename access by
9641 macro_source_fullname call.
9642 (macro_undef): New variables source_fullname and key_fullname. Replace
9643 any macro_source_file->filename access by macro_source_fullname call.
9644 (macro_lookup_definition): New variables retval and source_fullname.
9645 Replace any macro_source_file->filename access by macro_source_fullname
9646 call.
9647 (foreach_macro): New variable key_fullname. Replace any
9648 macro_source_file->filename access by macro_source_fullname call.
9649 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9650 macro_source_file->filename access by macro_source_fullname call.
9651 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9652 (macro_source_fullname): New function.
9653 * macrotab.h (struct macro_source_file): Extent the filename field
9654 comment.
9655 (new_macro_table): New parameter comp_dir, add a comment for it.
9656 (macro_source_fullname): new declaration.
9657
da235a7c
JK
96582013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9659
9660 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9661 this_real_name to outer block. Use it also for
9662 compare_filenames_for_search.
9663 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9664 with dw2_get_real_path for file_matcher, considering also
9665 BASENAMES_MAY_DIFFER.
9666 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9667
fbd9ab74
JK
96682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9669
9670 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9671 to the file_matcher parameter. Pass 0 to it.
9672 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9673 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9674 NULL psymtab_to_fullname result.
9675 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9676 an expected filename instead.
9677 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9678 file_matcher parameter. Call also psymtab_to_fullname, after newly
9679 considering BASENAMES_MAY_DIFFER.
9680 * source.c (rewrite_source_path): Remove static.
9681 * source.h (rewrite_source_path): New declaration.
9682 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9683 the expand_symtabs_matching field. Comment it.
9684 * symtab.c (file_matches): New function comment. Add parameter
9685 basenames, implement it.
9686 (search_symbols_file_matches): Add basenames parameter. Update the
9687 file_matches caller.
9688 (search_symbols): Match FILES also against symtab_to_fullname.
9689 Optimize it for BASENAMES_MAY_DIFFER.
9690
56d397a3
JK
96912013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9692
9693 * source.c (print_source_lines_base): Print for TUI also "fullname".
9694 * tui/tui-data.c (init_content_element): Change tui_locator_element
9695 field to full_name.
9696 * tui/tui-data.h (struct tui_locator_element): Likewise.
9697 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9698 tui_update_locator_filename calls to tui_update_locator_fullname.
9699 Replace symtab->filename refererence by symtab_to_fullname call.
9700 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9701 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9702 field to full_name. Replace symtab->filename refererence by
9703 symtab_to_fullname call.
9704 (tui_show_symtab_source): Rename parameter to fullname. Change
9705 tui_locator_element field to full_name.
9706 * tui/tui-stack.c: Include source.h.
9707 (tui_set_locator_filename): Rename the declaration to ...
9708 (tui_set_locator_fullname): ... here. Rename its parameter to
9709 fullname, updates its comment.
9710 (tui_set_locator_info): Rename its parameter to fullname.
9711 (tui_set_locator_filename): Rename the definition to ...
9712 (tui_set_locator_fullname): ... here. Rename its parameter to
9713 fullname, updates its comment. Change tui_locator_element field to
9714 full_name.
9715 (tui_set_locator_info): Rename its parameter to fullname.
9716 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9717 (tui_update_locator_filename): Rename to ...
9718 (tui_update_locator_fullname): ... here. Rename callee to
9719 tui_set_locator_fullname.
9720 (tui_show_frame_info): Replace symtab->filename refererence by
9721 symtab_to_fullname call.
9722 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9723 (tui_update_locator_fullname): ... here.
9724 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9725 tui_update_locator_fullname. Replace symtab->filename refererence by
9726 symtab_to_fullname call.
9727 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9728 Rename the callee to tui_update_locator_fullname.
9729 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9730
05cba821
JK
97312013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9732
9733 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9734 by symtab_to_filename_for_display calls.
9735 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9736 (clear_command): New variable sal_fullname, initialize it. Replace
9737 compare_filenames_for_search by filename_cmp with sal_fullname.
9738 (say_where, update_static_tracepoint): Replace symtab->filename
9739 refererences by symtab_to_filename_for_display calls.
9740 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9741 Likewise.
9742 * dwarf2read.c: Include source.h.
9743 (fixup_go_packaging): Replace symtab->filename refererences by
9744 symtab_to_filename_for_display calls.
9745 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9746 Replace symtab->filename refererences by symtab_to_filename_for_display
9747 calls.
9748 (create_sals_line_offset, convert_linespec_to_sals): New variable
9749 fullname, initialize it, replace symtab->filename reference by the
9750 variable.
9751 * linux-fork.c: Include source.h.
9752 (info_checkpoints_command): Replace symtab->filename refererences by
9753 symtab_to_filename_for_display calls.
9754 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9755 by symtab_to_filename_for_display calls.
9756 * mdebugread.c: Include source.h.
9757 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9758 symtab_to_filename_for_display calls.
9759 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9760 (mi_cmd_file_list_exec_source_files): Likewise.
9761 * printcmd.c: Include source.h.
9762 (build_address_symbolic): Replace symtab->filename refererences by
9763 symtab_to_filename_for_display calls.
9764 * psymtab.c (partial_map_symtabs_matching_filename)
9765 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9766 with psymtab_to_fullname.
9767 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9768 by symtab_to_filename_for_display calls.
9769 (stpy_get_filename): New variable filename, initialize it, use instead
9770 of symtab->filename refererences.
9771 (salpy_str): Make variable filename const char *. Replace
9772 symtab->filename refererences by symtab_to_filename_for_display calls.
9773 * skip.c: Include source.h and filenames.h.
9774 (skip_file_command): Remove const from the symtab variable. Replace
9775 symtab->filename refererences by symtab_to_fullname call.
9776 (function_name_is_marked_for_skip): New variables searched_for_fullname
9777 and fullname. Use them to search also with symtab's fullname.
9778 * source.c (find_source_lines): Replace symtab->filename refererences
9779 by symtab_to_filename_for_display calls.
9780 (print_source_lines_base): New variable filename, use it instead of
9781 symtab->filename. Replace symtab->filename refererences by
9782 symtab_to_filename_for_display calls.
9783 (line_info, forward_search_command): Replace symtab->filename
9784 refererences by symtab_to_filename_for_display calls.
9785 (reverse_search_command): Replace symtab->filename refererences by
9786 symtab_to_filename_for_display calls. New variable filename for it.
9787 * stack.c (frame_info): Likewise.
9788 * symmisc.c: Include source.h.
9789 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9790 (maintenance_info_symtabs): Replace symtab->filename refererences by
9791 symtab_to_filename_for_display calls.
9792 * symtab.c (iterate_over_some_symtabs): Call
9793 compare_filenames_for_search also with symtab_to_fullname.
9794 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9795 symtab->filename refererences by symtab_to_filename_for_display calls.
9796 (find_line_symtab): Replace symtab->filename refererences by
9797 symtab_to_filename_for_display calls.
9798 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9799 (print_symbol_info): Make the last parameter const char *. New
9800 variable s_filename. Use it in the function.
9801 (symtab_symbol_info): Make the last_filename variable const char *.
9802 Replace symtab->filename refererences by symtab_to_filename_for_display
9803 calls.
9804 (rbreak_command): New variable fullname. Use it. Replace
9805 symtab->filename refererence by symtab_to_filename_for_display call.
9806 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9807 (print_one_static_tracepoint_marker): Replace symtab->filename
9808 refererences by symtab_to_filename_for_display calls.
9809 * tui/tui-source.c (tui_set_source_content): New variables filename and
9810 s_filename. Replace symtab->filename refererences by this variable.
9811 Replace other symtab->filename refererences by
9812 symtab_to_filename_for_display calls.
9813
1b56eb55
JK
98142013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9815 Jan Kratochvil <jan.kratochvil@redhat.com>
9816
9817 Add a new variable that controls a way in which filenames are
9818 displayed.
9819 * NEWS (set filename-display): New entry.
9820 * source.c (filename_display_basename, filename_display_relative)
9821 (filename_display_absolute, filename_display_kind_names)
9822 (filename_display_string, show_filename_display_string)
9823 (symtab_to_filename_for_display): New.
9824 (_initialize_source): Added initialization of 'filename-display'
9825 variable.
9826 * source.h (symtab_to_filename_for_display): Added declaration.
9827 * stack.c (print_frame): Added new variable and calling of a new
9828 function and condition with this variable. Changed third argument of
9829 calling of a function.
9830
aa079c93
JK
98312013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9832
9833 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9834 Rename field reference filename to fullname.
9835 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9836 fullname. New comment for it.
9837 * tui/tui-source.c (tui_set_source_content): Rename field reference
9838 filename to fullname. Initialize field by symtab_to_fullname now.
9839 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9840 reference filename to fullname. Use symtab_to_fullname during
9841 comparison.
9842
652a8996
JK
98432013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9844
9845 Code cleanup.
9846 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9847 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9848 filename to fullname. Rename variable this_name to this_fullname.
9849 Lowercase FILENAME_CMP call.
9850 (dw2_find_symbol_file): New comment for the returned string.
9851 (dwarf2_gdb_index_functions): Rename the function to
9852 dw2_expand_symtabs_with_fullname.
9853 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9854 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9855 fullname.
9856 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9857 * symfile.h (struct quick_symbol_functions): Rename field
9858 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9859 parameter filename to fullname. Document returned string meaning for
9860 find_symbol_file.
9861 * symtab.c (find_line_symtab): Rename the called function to
9862 expand_symtabs_with_fullname.
9863
af529f8f
JK
98642013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9865
9866 Code cleanup.
9867 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9868 call of filename_cmp with compare_filenames_for_search.
9869 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9870 is_abs, unify the call of FILENAME_CMP with
9871 compare_filenames_for_search. New gdb_asserts for real_path and name.
9872 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9873 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9874 * symfile.h (struct quick_symbol_functions): Extend the comment for
9875 map_symtabs_matching_filename.
9876 * symtab.c (compare_filenames_for_search): Remove the function comment
9877 relative path requirement. Handle absolute filenames, with a comment.
9878 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9879 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9880 real_path and name. Unify the call of compare_filenames_for_search
9881 with FILENAME_CMP.
9882 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9883
2f202fde
JK
98842013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9885
9886 Code cleanup.
9887 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9888 source_file references by symtab field references. Remove variables
9889 sal and fullname.
9890 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9891 (clear_command, say_where): Replace bp_location field source_file
9892 references by symtab field references.
9893 (bp_location_dtor): Remove the source_file reference.
9894 (update_static_tracepoint): Replace bp_location field source_file
9895 references by symtab field references.
9896 (breakpoint_free_objfile): New function.
9897 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9898 Replace the field source_file by field symtab, extend its comment.
9899 (breakpoint_free_objfile): New declaration.
9900 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9901 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9902 field source_file references by symtab field references.
9903
f5b95b50
JK
99042013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9905
9906 Replace xfullpath calls by gdb_realpath calls.
9907 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9908 function comment.
9909 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9910 Remove it from the iterate_over_some_symtabs call.
9911 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9912 Remove it from the dw2_map_expand_apply calls, remove a block handling
9913 it.
9914 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9915 Remove it from the iterate_over_some_symtabs call.
9916 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9917 Remove it from the partial_map_expand_apply calls, remove a block
9918 handling it. Drop gdb_realpath call and cleanups from the real_path
9919 handling.
9920 * source.c (openp): Drop the comment part about xfullpath. Replace
9921 xfullpath calls by gdb_realpath calls.
9922 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9923 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9924 from method map_symtabs_matching_filename and its comment.
9925 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9926 gdb_realpath call.
9927 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9928 remove it also from the function comment, remove a block handling it.
9929 Drop gdb_realpath call and cleanups from the real_path handling.
9930 (iterate_over_symtabs): Drop variable full_path and its use.
9931 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9932 * utils.c (xfullpath): Remove.
9933 * utils.h (xfullpath): Remove.
9934
d78489bf
AT
99352013-02-01 Andreas Tobler <andreast@fgznet.ch>
9936
9937 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9938 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9939 (ALLDEPFILES): Add ppc64-tdep.c.
9940 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9941 ppc64-tdep.o to gdb_target_obs.
9942 * ppc64-tdep.h: New file.
9943 * ppc64-tdep.c: New file.
9944 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9945 ppc-linux-tdep.c to here.
9946 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9947 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9948 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9949 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9950 from ppc-linux-tdep.c to here.
9951 (ppc64_convert_from_func_ptr_addr): Rename from
9952 ppc64_linux_convert_from_func_ptr_addr to
9953 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9954 here.
9955 * rs6000-tdep.c:
9956 (read_insn): Move from ppc-linux-tdep.c to here.
9957 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9958 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9959 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9960 Removed above functions.
9961 (ppc_linux_init_abi): Adjust.
9962
8db60374
AR
99632013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9964
9965 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9966
f2e5f4ce
AR
99672013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9968
9969 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9970
c1f7d745
PA
99712013-02-01 Pedro Alves <palves@redhat.com>
9972
9973 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9974 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9975
8a92335b
JK
99762013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9977
9978 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9979 files with no separate debug info.
9980 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9981 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9982 only for files with no separate debug info.
9983
8eacb197
TT
99842013-01-31 Tom Tromey <tromey@redhat.com>
9985
9986 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9987 change type.
9988 (struct jit_program_space_data): Rename from jit_inferior_data.
9989 Update comments.
9990 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9991 Change return type. Attach data to program space.
9992 (jit_program_space_data_cleanup): Rename from
9993 jit_inferior_data_cleanup; change argument type.
9994 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9995 change type.
9996 (jit_register_code): Update.
9997 (jit_update_inferior_cache): Remove.
9998 (jit_breakpoint_deleted): Get jit data from the location's program
9999 space.
10000 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10001 'ps_data', change type.
10002 (jit_inferior_init, jit_breakpoint_re_set_internal)
10003 (jit_event_handler): Update.
10004 (free_objfile_data): Get data from objfile's program space.
10005 (_initialize_jit): Update.
10006
f25c0135
TT
100072013-01-31 Tom Tromey <tromey@redhat.com>
10008
10009 PR gdb/13987:
10010 * jit.c (struct jit_inferior_data) <cached_code_address,
10011 jit_breakpoint>: New fields.
10012 (jit_breakpoint_re_set_internal): Fix logging. Only create
10013 breakpoint if cached address has changed.
10014 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10015 functions.
10016 (_initialize_jit): Register breakpoint deleted observer.
10017
974a734b
AR
100182013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10019
10020 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10021 (save_infcall_suspend_state): Ifdef out unused inf.
10022 (restore_infcall_suspend_state): Ifdef out unused inf.
10023 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10024 (jit_frame_sniffer): Remove unused inf_data.
10025
df54f8eb
AR
100262013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10027
10028 * c-exp.y (classify_inner_name): Remove unused type.
10029 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10030 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10031 need_escape.
10032 (c_get_string): Remove unused kind.
10033 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10034
5799c0b9
AR
100352013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10036
10037 * charset.c (intermediate_encoding): Remove unused i.
10038 * completer.c (signal_completer): Remove unused i.
10039 * continuations.c (discard_my_continuations_1): Remove unused
10040 continuation_ptr.
10041 * corelow.c (core_close): Remove unuseD name.
10042 (get_core_siginfo): Remove unused pid.
10043 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10044 i, cps.
10045 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10046 (loclist_describe_location): Remove unused first.
10047 * event-top.c (command_line_handler): Remove unused got_eof.
10048 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10049 (resize_section_table): Remove unused old_value.
10050 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10051 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10052 * i386-tdep.c (i386_process_record): Remove unused rex.
10053 * infcmd.c (get_return_value): Remove unused uiout.
10054 * jv-lang.c (type_from_class): Remove unused is_array.
10055 * jv-valprint.c (java_val_print): Remove unused i.
10056 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10057 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10058 * m2-typeprint.c (m2_print_type): Remove unused code.
10059 * macroexp.c (get_character_constant): Remove unused body_start.
10060 (macro_stringify): Remove unused result.
10061 * objc-lang.c (find_methods): Remove unused gdbarch.
10062 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10063 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10064 * stack.c (print_frame_args): Remove unused summary.
10065 * thread.c (thread_apply_command): Remove unused p.
10066 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10067 * valops.c (search_struct_method): Remove unused skip.
10068 * valprint.c (generic_val_print): Remove unused byte_order.
10069 * varobj.c (varobj_update): Remove unused changed.
10070 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10071 (alias_command): Remove unused c.
10072 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10073 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10074 format.
10075 (mi_cmd_data_write_memory): Remove unused word_format.
10076 (mi_cmd_data_write_memory_bytes): Remove unused r.
10077 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10078 p_start, p_end.
10079 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10080 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10081 line_width.
10082
c656bca5
AR
100832013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10084
10085 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10086 * symtab.c (iterate_over_symtabs): Remove unused s.
10087 (find_pc_sect_symtab): Remove unused pspAce.
10088 (find_pc_sect_line): Remove unused alt_symtab.
10089 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10090 (completion_list_add_name): Remove unused newsize.
10091
7078baeb
TT
100922013-01-31 Tom Tromey <tromey@redhat.com>
10093
10094 PR c++/14998:
10095 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10096 TYPE_CODE_FUNC.
10097
c2e8b827
AR
100982013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10099
10100 * target.c (target_read_string): Remove unused origlen.
10101
0e43993a
AR
101022013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10103
10104 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10105 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10106 * ax-general.c (ax_print): Remove unused is_float.
10107 * blockframe.c (block_innermost_frame): Remove unused start, end.
10108 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10109
765a97ab
AR
101102013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10111
10112 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10113 (svr4_read_so_list): Remove unused lmo.
10114 * solib-target.c (solib_target_relocate_section_addresses): Remove
10115 unused flags.
10116
a99dad3d
TT
101172013-01-30 Tom Tromey <tromey@redhat.com>
10118
10119 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10120
3bff1ecd
TT
101212013-01-30 Tom Tromey <tromey@redhat.com>
10122
10123 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10124 * utils.c (gnu_debuglink_crc32): Remove.
10125 * utils.h (gnu_debuglink_crc32): Don't declare.
10126
7d455152
TT
101272013-01-30 Tom Tromey <tromey@redhat.com>
10128
10129 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10130 (read_structure_type, read_enumeration_type): Remove cast.
10131
abee88f2
TT
101322013-01-30 Tom Tromey <tromey@redhat.com>
10133
10134 * dwarf2read.c (read_namespace_type): Remove cast.
10135 (read_typedef): Likewise.
10136
8d9878a4
TT
101372013-01-29 Tom Tromey <tromey@redhat.com>
10138
10139 * dwarf2read.c (free_dwo_file): Remove assert.
10140
a543d2a9
TT
101412013-01-29 Tom Tromey <tromey@redhat.com>
10142
10143 * value.c (deprecated_set_value_modifiable): Remove.
10144 * value.h (deprecated_set_value_modifiable): Remove.
10145
bed911e5
DE
101462013-01-28 Doug Evans <dje@google.com>
10147
10148 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10149 to addresses from dwo files.
10150
28c64fc2
SCR
101512013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10152
10153 * valops.c (find_overload_match): Remove unused argument 'lax'.
10154 * value.h: Remove unused argument 'lax' from the declaration of
10155 find_overload_match.
10156 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10157 to find_overload_match.
10158 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10159 argument to find_overload_match.
10160
4d4ec4e5
TT
101612013-01-25 Tom Tromey <tromey@redhat.com>
10162
10163 * dwarf2read.c (processing_has_namespace_info): Remove.
10164 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10165 (process_die, read_func_scope, dwarf2_start_symtab)
10166 (new_symbol_full): Update.
10167
195a3f6c
TT
101682013-01-25 Tom Tromey <tromey@redhat.com>
10169
10170 * cp-namespace.c (cp_set_block_scope): Remove.
10171 * cp-support.h (cp_set_block_scope): Remove.
10172 * dbxread.c: Include block.h.
10173 (cp_set_block_scope): New function.
10174 (process_one_symbol): Update.
10175 * dwarf2read.c (read_func_scope): Use block_set_scope.
10176
8ba0730a
PA
101772013-01-25 Pedro Alves <palves@redhat.com>
10178
10179 * remote.c (add_current_inferior_and_thread): Tweak comment.
10180
12aaed36
TT
101812013-01-25 Tom Tromey <tromey@redhat.com>
10182
10183 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10184 (cp_add_using_directive): Add 'copy_names' argument.
10185 * cp-support.h (cp_add_using_directive): Update.
10186 (struct using_direct) <import_src, import_dest, alias,
10187 declaration>: Now const.
10188 * dwarf2read.c (read_import_statement): Use obconcat.
10189 Don't copy names passed to cp_add_using_directive.
10190
7fc75ca7
TT
101912013-01-25 Tom Tromey <tromey@redhat.com>
10192
10193 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10194
3405876a
PA
101952013-01-25 Pedro Alves <palves@redhat.com>
10196
10197 * remote.c (stop_reply_extract_thread): New.
10198 (add_current_inferior_and_thread): New parameter 'wait_status'.
10199 Handle it.
10200 (remote_start_remote): Pass wait status to
10201 add_current_inferior_and_thread.
10202 (extended_remote_run): Update comment.
10203 (extended_remote_create_inferior_1): Pass wait status to
10204 add_current_inferior_and_thread.
10205
8954db33
AB
102062013-01-25 Andrew Burgess <aburgess@broadcom.com>
10207 Ulrich Weigand <uweigand@de.ibm.com>
10208
10209 * valarith.c (value_vector_widen): New function for replicating a
10210 scalar into a vector.
10211 (value_binop): Use value_vector_widen to widen scalar to vector
10212 rather than casting, this better matches gcc C behaviour.
10213 * valops.c (value_casst): Update logic for casting between vector
10214 types, and for casting from scalar to vector, try to match gcc C
10215 behaviour.
10216 * value.h (value_vector_widen): Declare.
10217 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10218 function, handle special case for casting scalar to vector.
10219 (opencl_relop): Use opencl_value_cast.
10220 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10221 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10222 in order to use opencl_value_cast.
10223
843b20dc
YQ
102242013-01-25 Yao Qi <yao@codesourcery.com>
10225
10226 * event-loop.c: Include "queue.h".
10227 (gdb_event_p): New typedef.
10228 (DECLARE_QUEUE_P): Use.
10229 (DEFINE_QUEUE_P): Use.
10230 (async_queue_event): Remove.
10231 (gdb_event_xfree): New.
10232 (initialize_event_loop): New.
10233 (process_event): Use QUEUE macros.
10234 (event_queue): Remove.
10235 (gdb_wait_for_event): Caller update.
10236 (check_async_event_handlers): Likewise.
10237 (poll_timers): Likewise.
10238 * event-loop.h (initialize_event_loop): Declare.
10239 * event-loop.c (gdb_event_xfree): New.
10240 * top.c (gdb_init): Call initialize_event_loop.
10241
20ad8856
YQ
102422013-01-25 Yao Qi <yao@codesourcery.com>
10243
10244 * event-loop.c (async_queue_event): Remove one parameter
10245 'position'. Remove code handling 'position' == TAIL.
10246 (gdb_wait_for_event): Caller update.
10247 (check_async_event_handlers): Caller update.
10248 (poll_timers): Caller update.
10249 * event-loop.h (enum queue_position): Remove.
10250
3bbbe775
MK
102512013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10252
10253 * MAINTAINERS: Update my email.
10254
a87d9ac4
YQ
102552013-01-25 Yao Qi <yao@codesourcery.com>
10256
10257 * main.c (print_gdb_help): Remove "--epoch" from the help
10258 message.
10259
2077afdd
TD
102602013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10261
10262 * symtab.c (skip_prologue_using_sal): Consider a file
10263 change the same as an increased line number
10264
63da4037
TD
102652013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10266
30e8ee25 10267 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10268
45e6c716
TT
102692013-01-24 Tom Tromey <tromey@redhat.com>
10270
10271 * ada-lang.h (ada_decode_symbol): Make return type const.
10272 * ada-lang.c (ada_decode_symbol): Likewise.
10273
b1ae631a
DE
102742013-01-23 Doug Evans <dje@google.com>
10275
10276 * linespec.c (find_linespec_symbols): Make static.
10277
55a78401
SDJ
102782013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10279
10280 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10281 type on float conversion for complex type.
10282
bea883fd
SCR
102832013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10284
10285 Add a new class gdb.Architecture which exposes GDB's
10286 internal representation of architecture via GDB Python API.
10287 * Makefile.in: Add entries corresponding to the new file
10288 python/py-arch.c.
10289 * NEWS (Python Scripting): Add entries for the new class
10290 gdb.Architecture and the new method gdb.Frame.architecture.
10291 * python/py-arch.c: Implement gdb.Architecture class.
10292 * python/py-frame.c (frapy_arch): Implement the method
10293 gdb.Frame.architecture().
10294 (frame_object_methods): Add 'architecture' to the method table.
10295 * python/python-internal.h: Add declarations of new utility
10296 functions.
10297 * python/python.c (_initialize_python): Initialize
10298 gdb.Architecture class.
10299
796a7ff8
DE
103002013-01-23 Doug Evans <dje@google.com>
10301
10302 Work around binutils/15021.
10303 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10304 type_unit_group out of union s. All uses updated.
10305 (read_index_from_section): Watch for index version 8.
10306 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10307 an imported symtab.
10308 (write_psymtabs_to_index): Increment version number to 8.
10309
0928e93d
PA
103102013-01-22 Pedro Alves <palves@redhat.com>
10311
10312 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10313 user-visible.
10314
9c97429f
PA
103152013-01-22 Pedro Alves <palves@redhat.com>
10316
10317 * annotate.c (annotate_breakpoints_changed): Rename to ...
10318 (annotate_breakpoints_invalid): ... this. Make static.
10319 (breakpoint_changed): Adjust.
10320 (_initialize_annotate): Always install the observers. Install a
10321 "breakpoint_created" observer.
10322 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10323 * breakpoint.c (set_breakpoint_condition)
10324 (breakpoint_set_commands, do_map_commands_command)
10325 (init_raw_breakpoint, clear_command, set_ignore_count)
10326 (enable_breakpoint_disp): No longer call
10327 annotate_breakpoints_changed.
10328
bd00c694
PA
103292013-01-22 Pedro Alves <palves@redhat.com>
10330
10331 * annotate.c: Include "inferior.h".
10332 (frames_invalid_emitted)
10333 (breakpoints_invalid_emitted): New globals.
10334 (async_background_execution_p): New function.
10335 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10336 emitting the annotation if it has already been emitted.
10337 (annotate_display_prompt): New function.
10338 * annotate.h (annotate_display_prompt): New declaration.
10339 * event-top.c: Include annotate.h.
10340 (display_gdb_prompt): Call annotate_display_prompt.
10341
187d10dd
PA
103422013-01-22 Pedro Alves <palves@redhat.com>
10343
10344 * annotate.c (ignore_count_changed): Delete.
10345 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10346 (annotate_ignore_count_change): Delete.
10347 (annotate_stopped): Don't emit a delayed breakpoints-changed
10348 annotation.
10349 * annotate.h (annotate_ignore_count_change): Delete.
10350 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10351 annotate_ignore_count_change.
10352
d84cf7eb
TT
103532013-01-22 Tom Tromey <tromey@redhat.com>
10354
10355 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10356 require_rvalue for a register location.
10357
8f1d5693
MK
103582013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10359
10360 * breakpoint.c (print_one_breakpoint_location): Add MI
10361 field 'thread-groups' when printing a breakpoint.
10362 (output_thread_groups): New function.
10363
aa6199c6
SCR
103642013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10365
10366 * python/lib/gdb/commands/explore.py
10367 (CompoundExplorer.explore_expr): Correct the name of a method
10368 being invoked.
10369 (ExploreTypeCommand.invoke): Add a missing 'return'.
10370
d2afef13
TT
103712013-01-21 Tom Tromey <tromey@redhat.com>
10372
10373 * gdb_obstack.h (obconcat): Move declaration here, from...
10374 * symfile.h (obconcat): ... here.
10375 * gdb_obstack.c: New file.
10376 (obconcat): Move from...
10377 * symfile.c (obconcat): ... here.
10378 * Makefile.in (SFILES): Add gdb_obstack.c.
10379 (COMMON_OBS): Add gdb_obstack.o.
10380
10f0c4bb
TT
103812013-01-21 Tom Tromey <tromey@redhat.com>
10382
10383 * symfile.h (obsavestring): Don't declare.
10384 * symfile.c (obsavestring): Remove.
10385 * ada-exp.y: Use obstack_copy0, not obsavestring.
10386 * ada-lang.c: Use obstack_copy0, not obsavestring.
10387 * coffread.c: Use obstack_copy0, not obsavestring.
10388 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10389 * dbxread.c: Use obstack_copy0, not obsavestring.
10390 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10391 * jit.c: Use obstack_copy0, not obsavestring.
10392 * mdebugread.c: Use obstack_copy0, not obsavestring.
10393 * psymtab.c: Use obstack_copy0, not obsavestring.
10394 * stabsread.c: Use obstack_copy0, not obsavestring.
10395 * xcoffread.c: Use obstack_copy0, not obsavestring.
10396
86f62fd7
TT
103972013-01-21 Tom Tromey <tromey@redhat.com>
10398
10399 * dwarf2read.c (fixup_go_packaging): Save package name
10400 on objfile obstack.
10401 * gdbtypes.c (init_type): Don't copy name.
10402
15d034d0
TT
104032013-01-21 Tom Tromey <tromey@redhat.com>
10404
10405 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10406 const.
10407 (struct attribute) <u.str>: Now const.
10408 (struct fnfieldlist) <name>: Now const.
10409 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10410 (partial_die_parent_scope): Make return type const.
10411 (partial_die_full_name, add_partial_symbol): Update.
10412 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10413 'name' const.
10414 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10415 (read_file_scope, read_func_scope, dwarf2_add_field)
10416 (dwarf2_add_member_fn, read_structure_type)
10417 (process_enumeration_scope, read_array_type, read_module_type)
10418 (read_base_type, read_subrange_type): Update.
10419 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10420 (new_symbol_full, guess_full_die_structure_name): Update.
10421 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10422 (dwarf2_name): Return const type.
10423 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10424 const.
10425
748e18ae
TT
104262013-01-21 Tom Tromey <tromey@redhat.com>
10427
10428 * gdbtypes.c (init_type): Make 'name' const.
10429 * gdbtypes.h (init_type): Update.
10430
46212e0b
TT
104312013-01-21 Tom Tromey <tromey@redhat.com>
10432
10433 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10434 (start_symtab): Make 'name' and 'dirname' const. Use
10435 set_last_source_file.
10436 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10437 (last_source_file): Define. Now static.
10438 (set_last_source_file, get_last_source_file): New functions.
10439 * buildsym.h (last_source_file): Don't declare.
10440 (start_symtab): Update.
10441 (set_last_source_file, get_last_source_file): Declare.
10442 * coffread.c (complete_symtab): Use set_last_source_file.
10443 (coff_end_symtab): Likewise.
10444 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10445 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10446 set_last_source_file.
10447 (process_one_symbol): Use get_last_source_file.
10448 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10449 (psymtab_to_symtab_1): Use get_last_source_file.
10450 * xcoffread.c (process_linenos): Use get_last_source_file.
10451 (complete_symtab): Use set_last_source_file.
10452 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10453 (scan_xcoff_symtab): Use set_last_source_file.
10454
9d2ceabe
TT
104552013-01-21 Tom Tromey <tromey@redhat.com>
10456
10457 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10458 (symbol_set_names): Remove casts. Handle field const-ness.
10459
cfc594ee
TT
104602013-01-21 Tom Tromey <tromey@redhat.com>
10461
10462 * dwarf2read.c (new_symbol_full): Remove cast.
10463 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10464 * symtab.h (symbol_set_demangled_name): Update.
10465
5484b13a
TT
104662013-01-21 Tom Tromey <tromey@redhat.com>
10467
10468 * main.c (captured_main): Call bfd_init.
10469
1605ef26
TT
104702013-01-21 Tom Tromey <tromey@redhat.com>
10471
10472 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10473 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10474 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10475 * NEWS: Update.
10476
3b74cdc3
JK
104772013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10478
10479 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10480
5a352474
JK
104812013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10482
10483 Fix gdb.fortran/common-block.exp crash in PIE mode.
10484 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10485 LOC_COMMON_BLOCK.
10486 * f-valprint.c (info_common_command_for_block): Expect
10487 LOC_COMMON_BLOCK in gdb_assert.
10488 * symtab.h (struct general_symbol_info): Update comment for the
10489 common_block member.
10490 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10491 (enum address_class): New member LOC_COMMON_BLOCK.
10492
c60797fd
DB
104932013-01-18 David Blaikie <dblaikie@gmail.com>
10494
10495 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10496
46f35228
TT
104972013-01-18 Tom Tromey <tromey@redhat.com>
10498
10499 PR c++/14999:
10500 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10501 Call require_rvalue.
10502
257e7a09
YQ
105032013-01-18 Yao Qi <yao@codesourcery.com>
10504
10505 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10506 (dbx_read_symtab): New declaration.
10507 (dbx_psymtab_to_symtab): Delete.
10508 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10509 Rename parameter PST to SELF. Exchanged two parameters.
10510 (start_psymtab): Caller update.
10511 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10512 (dwarf2_read_symtab): New declaration.
10513 (dwarf2_psymtab_to_symtab): Delete.
10514 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10515 Rename parameter PST to SELF. Exchanged two parameters.
10516 (create_partial_symtab): Caller update.
10517 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10518 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10519 Rename parameter PST to SELF. Exchanged two parameters.
10520 (parse_partial_symbols, new_psymtab): Caller update.
10521 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10522 two parameters.
10523 * psymtab.c (psymtab_to_symtab): Caller update.
10524 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10525 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10526 Rename parameter PST to SELF. Exchanged two parameters.
10527 (xcoff_start_psymtab): Caller update.
10528
0de5618e
YQ
105292013-01-18 Yao Qi <yao@codesourcery.com>
10530
10531 * infrun.c (proceed): Rename local variable 'oneproc' to
10532 'force_step'.
10533
5c04624b
DE
105342013-01-17 Doug Evans <dje@google.com>
10535
848e3e78
DE
10536 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10537 (dw2_build_type_unit_groups): Delete. All uses updated.
10538
5c04624b
DE
10539 * symtab.h (struct symbol_search): Add comment.
10540
d84fca2c
JK
105412013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10542
10543 * symtab.c (compare_filenames_for_search): New comment for
10544 HAS_DRIVE_SPEC.
10545
6108433d
TT
105462013-01-17 Tom Tromey <tromey@redhat.com>
10547
10548 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10549
c89ffd86
JK
105502013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10551
10552 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10553 initialize it by existing make_cleanup. Call new do_cleanups.
10554
db2b2972
TT
105552013-01-17 Tom Tromey <tromey@redhat.com>
10556
10557 * cp-abi.c (cp_abi_completer): New function.
10558 (_initialize_cp_abi): Set completer for "set cp-abi".
10559
be7d37a2
TT
105602013-01-17 Tom Tromey <tromey@redhat.com>
10561
10562 * mem-break.c: Remove obsolete comment.
10563 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10564
c9fb1240
SD
105652012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10566
10567 * jit.c (jit_reader_load_command): Interpret the jit reader name
10568 as an absolute path if it begins with a forward slash.
10569
db334a01
SD
105702012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10571
10572 PR gdb/14550
10573
10574 * jit.c (finalize_symtab): Ensure that only the global block has a
10575 NULL superblock.
10576
7d928dac
PA
105772013-01-17 Pedro Alves <palves@redhat.com>
10578
10579 * acinclude.m4: Include ../config/plugins.m4,
10580 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10581 * Makefile.in (aclocal_m4_deps): Update.
10582 * aclocal.m4: Renegerate.
10583
fb8cf7c5
DE
105842013-01-16 Doug Evans <dje@google.com>
10585
10586 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10587
ab04a2af
TT
105882013-01-16 Pedro Alves <palves@redhat.com>
10589 Tom Tromey <tromey@redhat.com>
10590
10591 PR cli/7221:
10592 * NEWS: Add "catch signal".
10593 * breakpoint.c (base_breakpoint_ops): No longer static.
10594 (bpstat_explains_signal): New function.
10595 (init_catchpoint): No longer static.
10596 (base_breakpoint_explains_signal): New function.
10597 (base_breakpoint_ops): Initialize new field.
10598 * breakpoint.h (enum bpstat_signal_value): New.
10599 (struct breakpoint_ops) <explains_signal>: New field.
10600 (bpstat_explains_signal): Remove macro, declare as function.
10601 (base_breakpoint_ops, init_catchpoint): Declare.
10602 * break-catch-sig.c: New file.
10603 * inferior.h (signal_catch_update): Declare.
10604 * infrun.c (signal_catch): New global.
10605 (handle_syscall_event): Update for change to
10606 bpstat_explains_signal.
10607 (handle_inferior_event): Likewise. Always handle random signals
10608 via bpstats.
10609 (signal_cache_update): Check signal_catch.
10610 (signal_catch_update): New function.
10611 (_initialize_infrun): Initialize signal_catch.
10612 * Makefile.in (SFILES): Add break-catch-sig.c.
10613 (COMMON_OBS): Add break-catch-sig.o.
10614
8ac3646f
TT
106152013-01-16 Tom Tromey <tromey@redhat.com>
10616
10617 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10618 (print_one_catch_solib, print_one_catch_syscall)
10619 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10620 "catch-type".
10621
5a18e302
YQ
106222013-01-16 Yao Qi <yao@codesourcery.com>
10623
10624 * printcmd.c (current_display_number): Make it static.
10625
3f01d0d0
YQ
106262013-01-16 Yao Qi <yao@codesourcery.com>
10627
10628 * infcmd.c (step_once): Don't check '!single_inst' as it was
10629 checked before.
10630
1ed59174
JK
106312013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10632
10633 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10634
44478ab3
TT
106352013-01-14 Tom Tromey <tromey@redhat.com>
10636
10637 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10638 set command.
10639 * command.h (add_setshow_string_noescape_cmd): Update.
10640 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10641 (complete_set_gnutarget): New function.
10642 (_initialize_core): Set the "set gnutarget" completer.
10643
06d66ee9
TT
106442013-01-14 Tom Tromey <tromey@redhat.com>
10645
10646 PR symtab/14442:
10647 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10648 (c_type_print_modifier): Likewise.
10649 * dwarf2read.c (read_tag_restrict_type): New function.
10650 (read_type_die_1): Handle DW_TAG_restrict_type.
10651 * gdbtypes.c (make_restrict_type): New function.
10652 (recursive_dump_type): Handle TYPE_RESTRICT.
10653 * gdbtypes.h (enum type_flag_values): Renumber.
10654 (enum type_instance_flag_value): Add
10655 TYPE_INSTANCE_FLAG_RESTRICT.
10656 (TYPE_RESTRICT): New macro.
10657 (make_restrict_type): Declare.
10658
c9bf0622
TT
106592013-01-14 Tom Tromey <tromey@redhat.com>
10660
10661 PR symtab/14931:
10662 * psymtab.c (struct psymtab_state): New.
10663 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10664 functions.
10665 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10666 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10667
44d594fd
PA
106682013-01-14 Richard Sharman <richard_sharman@mitel.com>
10669 Pedro Alves <palves@redhat.com>
10670
10671 PR remote/14786
10672
10673 * remote.c (remote_threads_info): Make a copy of the reply from
10674 qfThreadInfo and use that instead of rs->buf.
10675
442e4d9c
YQ
106762013-01-14 Yao Qi <yao@codesourcery.com>
10677
10678 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10679 (dbx_psymtab_to_symtab): Likewise.
10680 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10681 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10682 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10683
5b12a61c
JK
106842013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10685
10686 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10687 make_cleanup_restore_current_language. Call set_language. Move
10688 OLD_CHAIN and INNER_CHAIN cleanups.
10689 * utils.c (do_restore_current_language)
10690 (make_cleanup_restore_current_language): New functions.
10691 * utils.h (make_cleanup_restore_current_language): New declaration.
10692
f0a4b570
JK
106932013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10694
10695 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10696 non-existing files.
10697
57b3c00c
JK
10698 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10699 non-existing files if FILENAME is already absolute.
10700
daefa854
JK
107012013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10702
10703 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10704 fputs_filtered. Append trailing newline.
10705
ca9c6ee2
YQ
107062013-01-11 Yao Qi <yao@codesourcery.com>
10707 Stan Shebs <stan@codesourcery.com>
10708
10709 * psymtab.c (init_psymbol_list): Clarify the comment.
10710
f28045c2
YQ
107112013-01-11 Yao Qi <yao@codesourcery.com>
10712
10713 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10714 (update_dprintf_command_list): Assert that 'printf_line' is
10715 non-null. Remove condition check.
10716
da5132d3
JK
107172013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10718
10719 Code cleanup.
10720 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10721 type const char *.
10722 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10723 const char *.
10724 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10725
843e694d
AG
107262013-01-09 Anthony Green <green@moxielogic.com>
10727
10728 * cp-abi.c (cplus_print_vtable): Don't return value from void
10729 function.
10730 * ada-lang.c (re_set_catch_assert): Ditto.
10731
da51c347
DE
107322013-01-09 Doug Evans <dje@google.com>
10733
10734 * symfile.h (quick_symbol_functions): Delete member
10735 pre_expand_symtabs_matching. All uses removed.
10736 * dwarf2read.c (dw2_lookup_symbol): Implement.
10737 (dw2_do_expand_symtabs_matching): Delete.
10738 (dw2_pre_expand_symtabs_matching): Delete.
10739 (struct dw2_symtab_iterator): New type.
10740 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10741 (dw2_expand_symtabs_for_function): Rewrite.
10742 (dwarf2_gdb_index_functions): Update.
10743 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10744 (psym_functions): Update.
10745
b2259038
TT
107462013-01-09 Tom Tromey <tromey@redhat.com>
10747
10748 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10749 * configure: Rebuild.
10750 * configure.ac: Add somread.o to the build if BFD has SOM
10751 support.
10752 * somread.c: Include som/aout.h, not syms.h.
10753 (som_symtab_read): Use som_external_symbol_dictionary_record.
10754 Unpack records manually.
10755 (_initialize_somread): Declare.
10756
bdad4180
MF
107572012-01-08 Mike Frysinger <vapier@gentoo.org>
10758
10759 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10760 Cast return_address to 64bits.
10761
03cdf680
HZ
107622013-01-08 Hui Zhu <hui_zhu@mentor.com>
10763
10764 * printcmd.c: Remove define of function output_command.
10765 * tracepoint.c: Remove extern of function output_command.
10766 * valprint.h: (output_command): New extern.
10767
8a808554
TT
107682013-01-07 Tom Tromey <tromey@redhat.com>
10769
10770 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10771 Remove.
10772 (objc_language_defn): Use c_printchar, c_printstr,
10773 c_emit_char.
10774
e93a8774
TT
107752013-01-07 Tom Tromey <tromey@redhat.com>
10776
10777 PR cli/7719:
10778 * NEWS: Update.
10779 * ada-valprint.c (printstr, print_field_values): Remove
10780 "inspect_it" code.
10781 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10782 code.
10783 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10784 code.
10785 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10786 * main.c (captured_main): Remove "epoch" argument.
10787 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10788 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10789 * p-valprint.c (pascal_object_print_value_fields): Remove
10790 "inspect_it" code.
10791 * printcmd.c (print_command_1): Remove 'inspect' argument.
10792 (print_command, call_command): Update.
10793 (inspect_command): Remove.
10794 (_initialize_printcmd): Make "inspect" an alias for "print".
10795 * top.c (epoch_interface): Remove.
10796 * top.h (epoch_interface): Remove.
10797 * valprint.c (user_print_options): Update.
10798 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10799 * valprint.h (struct value_print_options) <inspect_it>: Remove
10800 field.
10801
108022013-01-04 Tom Tromey <tromey@redhat.com>
10803
10804 * valprint.h (read_string): Add 'extern'.
10805
b967eb24
JB
108062013-01-07 Joel Brobecker <brobecker@adacore.com>
10807
10808 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10809 used to decide whether to define darwin_read_dyld_info or not.
10810
78a8b30e
PM
108112013-01-03 Pierre Muller <muller@sourceware.org>
10812
10813 * main.c (relocate_gdb_directory): Avoid calling stat function
10814 if DIR is empty.
10815
50da2f25
YQ
108162013-01-03 Yao Qi <yao@codesourcery.com>
10817
10818 * psymtab.c (fixup_psymbol_section): Update declaration.
10819 (fixup_psymbol_section): Remove code returning value.
10820
e7e8980f
YQ
108212013-01-03 Yao Qi <yao@codesourcery.com>
10822
10823 * symtab.h: Remove some out of date comments.
10824 (enum exception_event_kind): Move it ...
10825 * breakpoint.c: ... here.
10826
569283d4
MF
108272013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10828
9f9d9a96 10829 PR gdb/14405
569283d4
MF
10830 * darwin-nat.c (darwin_read_dyld_info): Only build if
10831 TASK_DYLD_INFO_COUNT is defined.
10832 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10833 TASK_DYLD_INFO_COUNT is defined.
10834
2e36fbea
TT
108352013-01-02 Tom Tromey <tromey@redhat.com>
10836
10837 * symfile.h (struct ecoff_debug_hack): Remove.
10838 * objfiles.c: Don't include mdebugread.h.
10839
4f05add4
TT
108402013-01-02 Tom Tromey <tromey@redhat.com>
10841
10842 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10843 * configure.ac: Check for Mach-O support in BFD. Update
10844 CONFIG_OBS.
10845 * configure: Rebuild.
10846
def63ff0
TT
108472013-01-02 Tom Tromey <tromey@redhat.com>
10848
10849 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10850 * configure.ac: Use GDB_AC_CHECK_BFD.
10851 * configure: Rebuild.
10852
60c5dd93
MK
108532013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10854
10855 * MAINTAINERS: Update my email.
10856
6e58437e
JB
108572013-01-01 Joel Brobecker <brobecker@adacore.com>
10858
10859 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10860
627fe805
JB
108612013-01-01 Joel Brobecker <brobecker@adacore.com>
10862
10863 * rs6000-nat.c (bss_data_overlap): New function.
10864 (vmap_symtab): Use it to adjust the .bss section's offset.
10865
28e7fd62
JB
108662013-01-01 Joel Brobecker <brobecker@adacore.com>
10867
10868 Update year range in copyright notice of all files.
10869
e93a8774 108702013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
10871
10872 * top.c (print_gdb_version): Update copyright year.
10873
72b20e9c 10874For older changes see ChangeLog-2012.
c906108c
SS
10875\f
10876Local Variables:
10877mode: change-log
10878left-margin: 8
10879fill-column: 74
10880version-control: never
57da7796 10881coding: utf-8
c906108c 10882End:
This page took 2.307034 seconds and 4 git commands to generate.