linux-tdep.c: Remove unused `num_notes' struct member
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
59a70096
MR
12013-10-24 "Maciej W. Rozycki <macro@codesourcery.com>
2
3 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
4 member.
5 (linux_corefile_thread_callback): Update accordingly.
6 (linux_make_corefile_notes): Likewise.
7
98882a26
PA
82013-10-24 Pedro Alves <palves@redhat.com>
9
10 * NEWS (New options): Mention set/show startup-with-shell.
11 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
12 instead of 3.
13 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
14 startup-with-shell'.
15 (show_startup_with_shell): New function.
16 (_initialize_fork_child): Register the set/show startup-with-shell
17 commands.
18 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
19 * inf-ttrace.c (inf_ttrace_him): Remove comment.
20 * procfs.c (procfs_init_inferior): Remove comment.
21 * infcmd.c (startup_with_shell): New global.
22 * inferior.h (startup_with_shell): Declare global.
23 (STARTUP_WITH_SHELL): Delete.
24 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
25
c9737c08
PA
262013-10-23 Pedro Alves <palves@redhat.com>
27
28 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
29 * common/signals.c: Include "gdb_assert.h".
30 (signals): New field 'symbol'.
31 (SET): Use the 'symbol' parameter.
32 (gdb_signal_to_symbol_string): New function.
33 * infrun.c (handle_inferior_event) <random signal>: In debug
34 output, print the random signal enum as string in addition to its
35 number.
36 * target/waitstatus.c (target_waitstatus_to_string): Print the
37 signal's enum value as string instead of the (POSIX) signal name.
38
f60db4f0
GB
392013-10-23 Gary Benson <gbenson@redhat.com>
40
41 PR 16013
42 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
43 from 32 to 18. Adjusted fscanf format string accordingly.
44 (Avoids leaving cmd unterminated.)
45 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
46 trun, retn or extra. (Avoids leaving extra unterminated.) Check
47 that local_address and remote_address will not overflow.
48 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
49 leaving dependencies unterminated. Parse size as "%u" to match
50 definition.
51
6d3e7a94
PA
522013-10-22 Pedro Alves <palves@redhat.com>
53
54 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
55 set ecs->random signal.
56
42ec045f
PA
572013-10-22 Pedro Alves <palves@redhat.com>
58
59 * infrun.c (keep_going): Update comments.
60
612013-10-22 Pedro Alves <palves@redhat.com>
62
63 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
64 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
65
662013-10-22 Pedro Alves <palves@redhat.com>
67
68 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
69 GDB_EXC_BAD_ACCESS.
70 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
71 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
72 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
73 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
74 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
75 (GDB_SIGNAL_LAST): Change description string.
76 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
77 Adjust to signal renaming.
78 * darwin-nat.c (darwin_decode_message): Likewise.
79
c8fde1b1
JM
802013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
81
82 * MAINTAINERS (Write After Approval): Add myself to the list.
83
e8369a73
AB
842013-10-18 Andrew Burgess <aburgess@broadcom.com>
85
86 * breakpoint.c (update_watchpoint): If hardware watchpoints are
87 forced off, downgrade them to software watchpoints if possible,
88 and error out if not possible.
89 (watch_command_1): Move watchpoint type selection closer to
90 watchpoint creation, and extend the comments.
91
776f04fa
PA
922013-10-18 Pedro Alves <palves@redhat.com>
93
94 PR gdb/16062
95 * infrun.c (handle_inferior_event): Keep going if we got a random
96 signal we should not stop for, instead of falling through to the
97 step tests.
98
0c6faab5
YQ
992013-10-18 Yao Qi <yao@codesourcery.com>
100
101 * c-varobj.c (cplus_number_of_children): Fix indentation.
102
50b34a18
TT
1032013-10-17 Tom Tromey <tromey@redhat.com>
104
105 PR gdb/15995:
106 * printcmd.c (printcmd): Call gdb_flush.
107
5c4c8a59
TT
1082013-10-17 Tom Tromey <tromey@redhat.com>
109
110 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
111 (elf_locate_sections): Update.
112
c4124bf1
YQ
1132013-10-17 Yao Qi <yao@codesourcery.com>
114
115 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
116 * ada-varobj.c: Remove the include of ada-varobj.h.
117 (ada_varobj_get_number_of_children): Declare.
118 (ada_varobj_get_name_of_child): Make it static.
119 (ada_varobj_get_path_expr_of_child): Likewise.
120 (ada_varobj_get_value_of_child): Likewise.
121 (ada_varobj_get_type_of_child): Likewise.
122 (ada_varobj_get_value_of_array_variable): Likewise.
123 * ada-varobj.h: Remove.
124
99ad9427
YQ
1252013-10-17 Yao Qi <yao@codesourcery.com>
126
127 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
128 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
129 * ada-varobj.c: Include "varobj.h".
130 (ada_number_of_children): New. Moved from varobj.c.
131 (ada_name_of_variable, ada_name_of_child): Likewise.
132 (ada_path_expr_of_child, ada_value_of_child): Likewise.
133 (ada_type_of_child, ada_value_of_variable): Likewise.
134 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
135 (ada_varobj_ops): New.
136 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
137 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
138 * gdbtypes.h (get_target_type): Declare.
139 * varobj.c: Remove the inclusion of "ada-varobj.h" and
140 "ada-lang.h".
141 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
142 (ANONYMOUS_UNION_NAME): Likewise.
143 (get_type, get_value_type, get_target_type): Remove declarations.
144 (value_get_print_value, varobj_value_get_print_value): Likewise.
145 (c_number_of_children, c_name_of_variable): Likewise.
146 (c_name_of_child, c_path_expr_of_child): Likewise.
147 (c_value_of_child, c_type_of_child): Likewise.
148 (c_value_of_variable, cplus_number_of_children): Likewise.
149 (cplus_class_num_children, cplus_name_of_variable): Likewise.
150 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
151 (cplus_value_of_child, cplus_type_of_child): Likewise.
152 (cplus_value_of_variable, java_number_of_children): Likewise.
153 (java_name_of_variable, java_name_of_child): Likewise.
154 (java_path_expr_of_child, java_value_of_child): Likewise.
155 (java_type_of_child, java_value_of_variable): Likewise.
156 (ada_number_of_children, ada_name_of_variable): Likewise.
157 (ada_name_of_child, ada_path_expr_of_child): Likewise.
158 (ada_value_of_child, ada_type_of_child): Likewise.
159 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
160 (ada_value_has_mutated): Likewise.
161 (struct language_specific): Move it to varobj.h.
162 (CPLUS_FAKE_CHILD): Move it to varobj.h.
163 (restrict_range): Rename it varobj_restrict_range. Make it extern.
164 Callers update.
165 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
166 Make it extern.
167 (is_anonymous_child): Move it to c-varobj.c and rename to
168 varobj_is_anonymous_child. Caller update.
169 (get_type): Move it to c-varobj.c.
170 (get_value_type): Rename it varobj_get_value_type. Make it
171 extern.
172 (get_target_type): Move it gdbtypes.c.
173 (varobj_formatted_print_options): New function.
174 (value_get_print_value): Rename it to
175 varobj_value_get_print_value and make it extern.
176 (varobj_value_is_changeable_p): Make it extern.
177 (adjust_value_for_child_access): Move it to c-varobj.c.
178 (default_value_is_changeable_p): Rename it to
179 varobj_default_value_is_changeable_p. Make it extern.
180 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
181 (c_name_of_child, c_path_expr_of_child): Likewise.
182 (c_value_of_child, c_type_of_child): Likewise.
183 (c_value_of_variable, cplus_number_of_children): Likewise.
184 (cplus_class_num_children, cplus_name_of_variable): Likewise.
185 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
186 (cplus_value_of_child, cplus_type_of_child): Likewise.
187 (cplus_value_of_variable): Likewise.
188 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
189 (java_name_of_child, java_path_expr_of_child): Likewise.
190 (java_value_of_child, java_type_of_child): Likewise.
191 (java_value_of_variable): Likewise.
192 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
193 (ada_name_of_child, ada_path_expr_of_child): Likewise.
194 (ada_value_of_child, ada_type_of_child): Likewise.
195 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
196 (ada_value_has_mutated): Likewise.
197 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
198 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
199 (c_varobj_ops, cplus_varobj_ops): Declare.
200 (java_varobj_ops, ada_varobj_ops): Declare.
201 (varobj_default_value_is_changeable_p): Declare.
202 (varobj_value_is_changeable_p): Declare.
203 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
204 (varobj_get_path_expr_parent): Declare.
205 (varobj_value_get_print_value): Declare.
206 (varobj_formatted_print_options): Declare.
207 (varobj_restrict_range): Declare.
208
c8a62302
LM
2092013-10-17 Luis Machado <lgustavo@codesourcery.com>
210
211 * target/waitstatus.h (target_waitkind): Remove spurious
212 character from the comments.
213
eade6471
JB
2142013-10-17 Joel Brobecker <brobecker@adacore.com>
215
216 * gdbarch.sh (get_longjmp_target): Add method documentation.
217 * gdbarch.h: Regenerate.
218
5411b26c
TT
2192013-10-16 Tom Tromey <tromey@redhat.com>
220
221 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
222 label.
223
87326c87
LM
2242013-10-16 Luis Machado <lgustavo@codesourcery.com>
225
226 * gcore.in: Call GDB using the full path to the gcore script.
227 Error out if the GDB binary is not found.
228
fd0a4d76
SDJ
2292013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
230
231 PR gdb/16014
232 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
233 sizeof.
234
d92f7ee3
SDJ
2352013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
236
237 PR gdb/16042
238 * target.c (target_disable_btrace): Fix invalid return value for
239 void function.
240 (target_teardown_btrace): Likewise.
241
bb5ce47a
YQ
2422013-10-14 Yao Qi <yao@codesourcery.com>
243
244 * varobj.c (struct varobj): Move most of the fields to
245 varobj.h.
246 (struct varobj_dynamic): New struct.
247 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
248 (varobj_has_more): Likewise.
249 (dynamic_varobj_has_child_method): Likewise.
250 (update_dynamic_varobj_children): Likewise.
251 (varobj_get_num_children): Likewise.
252 (varobj_list_children, varobj_pretty_printed_p): Likewise.
253 (install_new_value_visualizer): Likewise.
254 (install_new_value_visualizer, install_new_value): Likewise.
255 (varobj_update, new_variable, free_variable): Likewise.
256 (my_value_of_variable, value_get_print_value): Likewise.
257 (install_visualizer): Change the type of parameter 'var' to
258 'struct varobjd_dynamic *'. Callers update.
259 * varobj.h (struct varobj): Moved from varobj.c.
260 (struct varobj) <dynamic>: New field.
261
0b76b0ce
SL
2622013-10-13 Sandra Loosemore <sandra@codesourcery.com>
263
264 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
265 as the preferred name of r30.
266 * nios2-linux-tdep.c (reg_offsets): Likewise.
267 * features/nios2-cpu.xml: Likewise.
268 * features/nios2-linux.c: Regenerated.
269 * features/nios2.c: Regenerated.
270 * regformats/nios2-linux.dat: Regenerated.
271
4856b6bc
JK
2722013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
273
274 Canonicalize directories for EXEC_FILENAME.
275 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
276 exec_filename.
277 * utils.c (gdb_realpath_keepfile): New function.
278 * utils.h (gdb_realpath_keepfile): New declaration.
279
9b557b58
DE
2802013-10-11 Doug Evans <dje@google.com>
281
282 * Makefile.in (GDBFLAGS): New variable.
283 (run): New rule.
284
ce13fade
JB
2852013-10-11 Joel Brobecker <brobecker@adacore.com>
286
287 * NEWS: Add entry documenting the new "-catch-assert" and
288 "-catch-exception" GDB/MI commands.
289
349774ef
JB
2902013-10-11 Joel Brobecker <brobecker@adacore.com>
291
292 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
293 "enabled".
294 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
295 "enabled". Set B->ENABLE_STATE accordingly.
296 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
297 ada-lang.c.
298 (create_ada_exception_catchpoint): Add declaration.
299 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
300 (create_ada_exception_catchpoint): Make non-static. Add new
301 parameter "disabled". Use it in call to
302 init_ada_exception_breakpoint.
303 (catch_ada_exception_command): Add parameter "enabled" in call
304 to create_ada_exception_catchpoint.
305 (catch_assert_command): Likewise.
306
307 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
308 Add declarations.
309 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
310 "catch-exception" commands.
311 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
312 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
313
761269c8
JB
3142013-10-11 Joel Brobecker <brobecker@adacore.com>
315
316 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
317 "enum exception_catchpoint_kind". Replace the "ex_" prefix
318 of all its enumerates with "ada_". Update the rest of this
319 file throughout.
320
b4a5b78b
JB
3212013-10-11 Joel Brobecker <brobecker@adacore.com>
322
323 * ada-lang.c (ada_decode_exception_location): Delete.
324 (create_ada_exception_catchpoint): Remove arguments "sal",
325 "addr_string" and "ops". Add argument "ex_kind" instead.
326 Adjust implementation accordingly, calling ada_exception_sal
327 to get the entities it no longer gets passed as arguments.
328 Document the function's arguments.
329 (catch_ada_exception_command): Use catch_ada_exception_command_split
330 instead of ada_decode_exception_location, and update call to
331 create_ada_exception_catchpoint.
332 (catch_ada_assert_command_split): Renames
333 ada_decode_assert_location. Remove parameters "addr_string" and
334 "ops", and now returns void. Adjust implementation accordingly.
335 Update the function documentation.
336 (catch_assert_command): Use catch_ada_assert_command_split
337 instead of ada_decode_assert_location. Update call to
338 create_ada_exception_catchpoint.
339
7ad1d32c 3402013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
341
342 * utils.h (perror_warning_with_name): Add declaration.
343 * utils.c (perror_warning_with_name): New function.
344 * cli/cli-cmds.c (source_script_with_search): Add call to
345 perror_warning_with_name if from_tty is nul.
346
7ad1d32c 3472013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
348
349 * utils.c (perror_string): New function, extracted out of
350 throw_perror_with_name.
351 (throw_perror_with_name): Rework to use perror_string.
352
bcc75809
YQ
3532013-10-11 Yao Qi <yao@codesourcery.com>
354
355 * remote.c (discard_pending_stop_replies_in_queue): Update
356 declaration.
357 (struct stop_reply) <rs>: New field.
358 (remove_stop_reply_of_remote_state): New function.
359 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
360 Callers update. Pass remove_stop_reply_of_remote_state to
361 QUEUE_iterate.
362 (remote_parse_stop_reply): Initialize field 'rs'.
363
05feb193
WN
3642013-10-10 Will Newton <will.newton@linaro.org>
365
366 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
367 linux_init_abi.
368
0d12017b
JB
3692013-10-10 Joel Brobecker <brobecker@adacore.com>
370
371 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
372 serial_baud_show_cmd.
373 (_initialize_cli_cmds): Delete the code creating the
374 "set/show remotebaud" commands.
375 * serial.c (baud_rate): Move here from top.c.
376 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
377 (_initialize_serial): Create "set/show serial baud" commands.
378 Add "set/show remotebaud" command aliases.
379 * top.c (baud_rate): Moved to serial.c.
380 * NEWS: Document the new "set/show serial baud" commands,
381 replacing "set/show remotebaud".
382
578d3588
PA
3832013-10-09 Pedro Alves <palves@redhat.com>
384
385 * breakpoint.c (insert_bp_location): Use memory_error_message to
386 build the memory error string.
387 * c-lang.c: Include "gdbcore.h".
388 (c_get_string): Use memory_error to throw error.
389 (target_xfer_memory_error): Delete.
390 (memory_error_message): New, factored out from
391 target_xfer_memory_error.
392 (memory_error): Change parameter type to target_xfer_error.
393 Rewrite.
394 (read_memory): Use memory_error instead of
395 target_xfer_memory_error.
396 * gdbcore.h: Include "target.h".
397 (memory_error): Change parameter type to target_xfer_error.
398 (memory_error_message): Declare function.
399 * target.c (target_read_memory, target_read_stack)
400 (target_write_memory, target_write_raw_memory): Return
401 TARGET_XFER_E_IO on error. Adjust comments.
402 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
403 instead of EIO.
404 * target.h (target_read, target_insert_breakpoint)
405 (target_remove_breakpoint): Adjust comments.
406 * valprint.c (partial_memory_read): Rename parameter, and adjust
407 comment.
408 (val_print_string): Use memory_error_message to build the memory
409 error string.
410
c74e1ccf
JK
4112013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
412
413 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
414 result variable. Rename variable fopen_e_ever_failed to
415 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
416
915215be
PA
4172013-10-09 Pedro Alves <palves@redhat.com>
418
419 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
420 (monitor_write_memory_longlongs, monitor_write_memory_block):
421 Constify 'myaddr' parameter.
422 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
423 helper.
424 (monitor_xfer_partial): New function.
425 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
426 hook. Install a to_xfer_partial hook.
427
acd13123
TT
4282013-10-09 Tom Tromey <tromey@redhat.com>
429
430 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
431 bfd_get_alt_debug_link_info.
432
40135bb1
JK
4332013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 New flag OBJF_NOT_FILENAME.
436 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
437 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
438 allocate_objfile.
439 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
440 symbol_file_add_from_bfd.
441 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
442 allocate_objfile.
443 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
444 NULL.
445 * objfiles.h (OBJF_NOT_FILENAME): New.
446
dc294be5
TT
4472013-10-08 Tom Tromey <tromey@redhat.com>
448
449 * Makefile.in (SFILES): Add build-id.c.
450 (HFILES_NO_SRCDIR): Add build-id.h.
451 * build-id.c: New file, largely from elfread.c. Modified
452 most functions.
453 * build-id.h: New file.
454 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
455 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
456 Search for dwz file using build-id.
457 * elfread.c (build_id_bfd_get, build_id_verify)
458 (build_id_to_debug_filename, find_separate_debug_file): Remove.
459
db230ce3
JB
4602013-10-08 Joel Brobecker <brobecker@adacore.com>
461
462 * ada-lang.c (compare_names_with_case): Renamed from
463 compare_names, adding a new parameter "casing" and its handling.
464 New function documentation.
465 (compare_names): New function, implemented using
466 compare_names_with_case.
467
6501c98a
JB
4682013-10-08 Joel Brobecker <brobecker@adacore.com>
469
470 * ada-lang.c (ada_exception_sal): Remove advance declaration.
471
84a1243b
TT
4722013-10-07 Tom Tromey <tromey@redhat.com>
473
474 * objfiles.c (free_objfile_per_bfd_storage): Delete the
475 demangled_names_hash.
476 (free_objfile): Don't delete the demangled_names_hash.
477 * objfiles.h (struct objfile_per_bfd_storage)
478 <demangled_names_hash>: New field.
479 (struct objfile) <demangled_names_hash>: Move to
480 objfile_per_bfd_storage.
481 * symfile.c (reread_symbols): Don't delete the
482 demangled_names_hash.
483 * symtab.c (create_demangled_names_hash): Update.
484 (symbol_set_names): Update.
485
1da77581
TT
4862013-10-07 Tom Tromey <tromey@redhat.com>
487
488 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
489 needs_relocations>: New fields.
490 (gdb_bfd_requires_relocations): New function.
491 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
492 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
493 the BFD needs relocations applied.
494
46ecd527
PA
4952013-10-07 Pedro Alves <palves@redhat.com>
496
497 PR breakpoints/11568
498 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
499 the thread list" instead of "gone".
500
0c557179
SDJ
5012013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
502
503 * NEWS: Mention new convenience variable $_exitsignal.
504 * corelow.c (core_open): Reset exit convenience variables. Set
505 $_exitsignal to the uncaught signal which generated the corefile.
506 * infrun.c (handle_inferior_event): Reset exit convenience
507 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
508 (clear_exit_convenience_vars): New function.
509 * inferior.h (clear_exit_convenience_vars): New prototype.
510
1cc47d81
YQ
5112013-10-06 Yao Qi <yao@codesourcery.com>
512
513 * varobj.h: Add comments to enum varobj_languages.
514
73869dc2
DE
5152013-10-04 Doug Evans <dje@google.com>
516
517 Add support for DWP file format version 2.
518 * NEWS: Mention support for DWP file format version 2.
519 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
520 union of asection, containing_section. New fields virtual_offset
521 and is_virtual. Change type of readin filed from int to char.
522 (dwo_sections, dwo_file): Tweak comments.
523 (dwp_v2_section_ids): New enum.
524 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
525 str_offsets, types.
526 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
527 All uses updated.
528 (virtual_v2_dwo_sections): New struct.
529 (dwp_hash_table): New fields version, nr_columns. Change type of
530 section_pool field to a union.
531 (dwp_file): New field version.
532 (dwarf2_has_info): Check for virtual sections.
533 (get_containing_section): New function.
534 (get_section_bfd_owner, get_section_bfd_section): Call it.
535 (dwarf2_locate_sections): Update.
536 (dwarf2_section_empty_p): Update.
537 (dwarf2_read_section): Handle virtual sections.
538 (locate_dwz_sections): Update.
539 (create_dwp_hash_table): Document and handle V2 format.
540 (locate_v1_virtual_dwo_sections): Renamed from
541 locate_virtual_dwo_sections and update. All callers updated.
542 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
543 Delete arg htab. Rename arg section_index to unit_index.
544 All callers updated.
545 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
546 All uses updated.
547 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
548 (lookup_dwo_unit_in_dwp): Add V2 support.
549 (dwarf2_locate_dwo_sections): Update.
550 (dwarf2_locate_common_dwp_sections): Renamed from
551 dwarf2_locate_dwp_sections and update. All callers updated.
552 (dwarf2_locate_v2_dwp_sections): New function.
553 (open_and_init_dwp_file): Add V2 support.
554 (read_str_index): New locals str_section, str_offsets_section.
555
9a2c3737
PA
5562013-10-04 Pedro Alves <palves@redhat.com>
557
558 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
559 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
560 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
561 describing comments with references to ptid.h.
562 * common/ptid.h: Remove intro description of constructors,
563 accessors and predicates.
564 (struct ptid): Reformat.
565 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
566 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
567 describing comments.
568
f5371440
JB
5692013-10-04 Joel Brobecker <brobecker@adacore.com>
570
571 * aix-thread.c (sync_threadlists): Add missing ')' in call
572 to ptid_build.
573
793e1c06
JB
5742013-10-04 Joel Brobecker <brobecker@adacore.com>
575
576 * procfs.c (procfs_init_inferior): Fix typo causing the build
577 to fail.
578
26f0edc1
JB
5792013-10-04 Joel Brobecker <brobecker@adacore.com>
580
581 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
582
5713b9b5
JB
5832013-10-04 Joel Brobecker <brobecker@adacore.com>
584
585 * mi/mi-main.c (run_one_inferior): Add function description.
586 Make ARG a pointer to an integer whose value determines whether
587 we should "run" or "start" the program.
588 (mi_cmd_exec_run): Add handling of the "--start" option.
589 Reject all other command-line options.
590 * NEWS: Add entry for "-exec-run"'s new "--start" option.
591
f48ff2a7
YQ
5922013-10-04 Yao Qi <yao@codesourcery.com>
593
594 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
595 (struct notif_client) <pending_event>: Moved
596 to struct remote_notif_state.
597 <id>: New field.
598 (struct remote_notif_state) <pending_event>: New field.
599 (notif_event_xfree): Declare.
600 * remote-notif.c (handle_notification): Adjust.
601 (notif_event_xfree): New function.
602 (do_notif_event_xfree): Call notif_event_xfree.
603 (remote_notif_state_xfree): Call notif_event_xfree to free
604 each element in field pending_event.
605 * remote.c (discard_pending_stop_replies): Remove declaration.
606 (discard_pending_stop_replies_in_queue): Declare.
607 (remote_close): Call discard_pending_stop_replies_in_queue
608 instead of discard_pending_stop_replies.
609 (remote_start_remote): Adjust.
610 (stop_reply_xfree): Call notif_event_xfree.
611 (notif_client_stop): Adjust initialization.
612 (remote_notif_remove_all): Rename it to ...
613 (remove_stop_reply_for_inferior): ... this. Update comments.
614 Don't check INF is NULL.
615 (discard_pending_stop_replies): Return early if notif_state is
616 NULL. Adjust. Don't check INF is NULL.
617 (remote_notif_get_pending_events): Adjust.
618 (discard_pending_stop_replies_in_queue): New function.
619 (remote_wait_ns): Likewise.
620
5965e028
YQ
6212013-10-04 Yao Qi <yao@codesourcery.com>
622
623 * remote-notif.c (DECLARE_QUEUE_P): Remove.
624 (notif_queue): Remove.
625 (remote_notif_process): Add one parameter 'notif_queue'.
626 Update comments. Callers update.
627 (remote_async_get_pending_events_token): Remove.
628 (remote_notif_register_async_event_handler): Remove.
629 (remote_notif_unregister_async_event_handler): Remove.
630 (handle_notification): Add parameter 'notif_queue'. Update
631 comments. Callers update.
632 (notif_xfree): Remove.
633 (remote_notif_state_allocate): New function.
634 (remote_notif_state_xfree): New function.
635 (_initialize_notif): Remove code to allocate queue.
636 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
637 (struct remote_notif_state): New.
638 (handle_notification): Update declaration.
639 (remote_notif_process): Likewise.
640 (remote_notif_register_async_event_handler): Remove.
641 (remote_notif_unregister_async_event_handler): Remove.
642 (remote_notif_state_allocate): Declare.
643 (remote_notif_state_xfree): Declare.
644 * remote.c (struct remote_state) <notif_state>: New field.
645 (remote_close): Don't call
646 remote_notif_unregister_async_event_handler. Call
647 remote_notif_state_xfree.
648 (remote_open_1): Don't call
649 remote_notif_register_async_event_handler. Call
650 remote_notif_state_allocate.
651
5e5ac9a5
YQ
6522013-10-04 Yao Qi <yao@codesourcery.com>
653
654 * varobj.c (create_child_with_value): Remove 'const' from the
655 type of parameter 'name'.
656 (varobj_add_child): Likewise.
657 (install_dynamic_child): Remove 'const' from the type of
658 parameter 'name'.
659 (varobj_add_child): Likewise.
660 (create_child_with_value): Likewise. Update comments. Don't
661 duplicate 'name'.
662 (update_dynamic_varobj_children): Duplicate 'name'
663 and pass it to install_dynamic_child.
664
06ab7b19
PM
6652013-10-03 Phil Muldoon <pmuldoon@redhat.com>
666
667 * python/py-value.c (convert_value_from_python): Move PyInt_Check
668 conversion logic to occur after PyLong_Check. Comment on order
669 change significance.
670 * python/py-arch.c (archpy_disassemble): Comment on order of
671 conversion for integers and longs.
672
8ae377e8
PA
6732013-10-03 Pedro Alves <palves@redhat.com>
674
675 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
676 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
677 functions. Always test for PTRACE_O_TRACESYSGOOD even if
678 PTRACE_O_TRACEFORK is not supported.
679 (linux_test_for_tracesysgood): New function.
680 (linux_test_for_tracefork): New function, factored out from
681 linux_check_ptrace_features, and also don't kill child_pid here.
682
b1328b1b
TG
6832013-10-03 Tristan Gingold <gingold@adacore.com>
684
685 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
686 Remove verbose error reporting. Use detected state to
687 thread_set_state call.
688 (i386_darwin_dr_get): Fix return type. Remove verbose error
689 report.
690 Remove trailing spaces.
691
901461f8
PA
6922013-10-02 Pedro Alves <palves@redhat.com>
693
694 * cp-valprint.c (cp_print_value_fields): Adjust calls to
695 val_print_optimized_out.
696 * jv-valprint.c (java_print_value_fields): Likewise.
697 * p-valprint.c (pascal_object_print_value_fields): Likewise.
698 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
699 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
700 new optimized out value.
701 * findvar.c (address_from_register): Likewise.
702 * frame.c (put_frame_register): Tweak error string to say the
703 register was not saved, rather than optimized out.
704 * infcmd.c (default_print_one_register_info): Adjust call to
705 val_print_optimized_out. Use value_of_register instead of
706 get_frame_register_value.
707 * mi/mi-main.c (output_register): Use value_of_register instead of
708 get_frame_register_value.
709 * valprint.c (valprint_check_validity): Likewise.
710 (val_print_optimized_out): New value parameter. If the value is
711 lval_register, print <not saved> instead.
712 (value_check_printable, val_print_scalar_formatted): Adjust calls
713 to val_print_optimized_out.
714 * valprint.h (val_print_optimized_out): New value parameter.
715 * value.c (struct value) <optimized_out>: Extend comment.
716 (error_value_optimized_out): New function.
717 (require_not_optimized_out): Use it. Use a different string for
718 lval_register values.
719 * value.h (error_value_optimized_out): New declaration.
720 * NEWS: Mention <not saved>.
721
042a84d9
JB
7222013-10-02 Joel Brobecker <brobecker@adacore.com>
723
724 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
725 strcmp to compare two symtab filenames.
726
6b9780fb
JB
7272013-10-02 Joel Brobecker <brobecker@adacore.com>
728
729 * symtab.c (search_symbols_equal): Delete.
730 (sort_search_symbols_remove_dups): Replace call to
731 search_symbols_equal by call to compare_search_syms,
732 adjusting as necessary.
733
751e7549
PM
7342013-10-02 Phil Muldoon <pmuldoon@redhat.com>
735
736 PR python/15579
737
738 * python/python.c: Document gdb.execute command in Python help.
739
1efd7661
PM
7402013-10-02 Phil Muldoon <pmuldoon@redhat.com>
741
742 * python/py-frame.c (frame_info_to_frame_object): Use
743 gdbpy_convert_exception. Clean up Python object on failure.
744
562fc849
PM
7452013-10-02 Phil Muldoon <pmuldoon@redhat.com>
746
747 * python/lib/gdb/command/frame_filters.py
748 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
749 (ShowFrameFilterPriority.invoke): Ditto.
750
d7561cbb
KS
7512013-10-01 Keith Seitz <keiths@redhat.com>
752
753 * linespec.c (struct ls_parser): Make 'saved_arg' const.
754 (parse_linespec): Make 'argptr' const.
755 Remove temporary cast of 'argptr' to const char **.
756 (decode_line_full): Pass const pointer to parse_linespec.
757 (decode_line_1): Likewise.
758 (decode_objc): Make local variable 'new_argptr' const.
759 (find_function_symbols): Remove temporary cast to char *
760 to find_imps.
761 * objc-lang.c (find_imps): Make argument 'method' const.
762 Return const.
763 * objc-lang.h (find_imps): Likewise.
764
7652013-10-01 Keith Seitz <keiths@redhat.com>
766
767 * completer.c (skip_quoted_chars): Make all arguments const.
768 Return const.
769 (skip_quoted): Likewise.
770 * completer.h (skip_quoted_chars): Likewise.
771 (skip_quoted): Likewise.
772 * defs.h (skip_quoted): Remove duplicate declaration.
773 * jv-exp.y: Include completer.h.
774 (yylex): Remove unneccessary cast to char * fro skip_quoted.
775 * p-exp.y: Include completer.h.
776
7772013-10-01 Keith Seitz <keiths@redhat.com>
778
779 * c-exp.y (parse_number): Make first argument const.
780 Make a copy of the input to manipulate.
781 (c_parse_escape): Make first argument const.
782 Make local variable 'tokptr' const.
783 (parse_string_or_char): Make first two arguments const.
784 (macro_original_text): Make const.
785 (lex_one_token): Make local variable 'tokstart' const.
786 Likewise for local variables named 'p'.
787 Cast away const for struct stoken (temporary).
788 * c-lang.h (c_parse_escpae): Make first argument const.
789 * cli/cli-cmds.c (echo_command): Make local variable 'p'
790 const.
791 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
792 var_string case.
793 * f-exp.y (parse_number): Make first argument const.
794 (match_string_literal): Make local variable 'tokstart'
795 const.
796 (yylex): Make local variable 'p' const.
797 Cast away const for struct stoken (temporary).
798 * go-exp.y (parse_number): Make first argument const.
799 (parse_string_or_char): Likewise.
800 Make local variable 'tokstart' const.
801 (lex_one_token): Likewise for numerous locals called 'p'.
802 Cast away const for struct stoken (temporary).
803 * jv-exp.y (parse_number): Make first argument const.
804 Make local variables 'tokstart' and 'tokptr' const.
805 Cast away const for call to skip_quoted (temporary).
806 (yylex): Make local variable 'p' const.
807 Cast away const for struct stoken (temporary).
808 * m2-exp.y (parse_number): Make local variable 'p' const.
809 (yylex): Likewise for 'tokstart'.
810 Cast away const for struct stoken (temporary).
811 Make local variable 'p' const.
812 * macroexp.c (get_character_constant): Pass a const string
813 to c_parse_escape.
814 (get_string_literal): Likewise.
815 (macro_expand_next): Make first argument const.
816 Cast away const for init_shared_buffer.
817 * macroexp.h (macro_expand_next): Make first argument const.
818 * p-exp.y (yylex): Make a local copy of 'lexptr'.
819 Pass a const string to c_parse_escape.
820 Make local variables 'p' and 'namestart' const.
821 * parse.c (lexptr): Make const.
822 (prev_lexptr): Likewise.
823 (find_template_name_end): Return const.
824 Make argument const, too.
825 (parse_exp_in_context): Make first argument const.
826 Remove the entire const_hack.
827 (parse_exp_in_context_1): Make first argument const.
828 * parser-defs.h (find_template_name_end): Return const.
829 Make argument const, too.
830 (lexptr): Make const.
831 (prev_lexptr): Likewise.
832 * utils.c (parse_escape): Make second argument const.
833 * utils.h (parse_escape): Likewise.
834
8352013-10-01 Keith Seitz <keiths@redhat.com>
836
837 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
838 is now const.
839 (block_lookup): Make 'raw_name' and 'name' const.
840 * ada-lex.l (processString): Update for struct stoken.ptr.
841 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
842 (operator_stoken): Likewise.
843 (lex_one_token): Remove temporary cast to char * for
844 'yylval.sval.ptr'.
845 * f-exp.y (yylex): Likewise.
846 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
847 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
848 * go-exp.y (lex_one_token): Remove temporary cast to char * for
849 'yylval.sval.ptr'.
850 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
851 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
852 * linespec.c (struct ls_parser): Make 'stream' const.
853 (find_parameter_list_end): Make argument 'input' and local
854 variable 'p' const.
855 (linespec_lexer_lex_string): Make local variables 'start' and
856 'p' const.
857 Use skip_spaces_const instead of skip_spaces.
858 (linespec_lexer_peek_token): Make local variable 'saved_stream'
859 const.
860 (parse_linespec): Temporarily cast 'argptr' to const for
861 'parser->lexer.stream'.
862 * m2-exp.y (yylex): Remove temporary cast to char * for
863 'yylval.sval.ptr'.
864 * objc-lang.c (add_msglist): Make local variable 'p' const.
865 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
866 (exp : STRING): Make 'sp' const.
867 (parse_number): Make argument 'p' const.
868 * parser-defs.h (struct stoken): Make 'ptr' const.
869
193a8eac
DE
8702013-10-01 Doug Evans <dje@google.com>
871
872 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
873
2213e2be
YQ
8742013-10-01 Yao Qi <yao@codesourcery.com>
875
876 * varobj.c (c_value_of_root): Remove declaration.
877 (cplus_value_of_root, java_value_of_root): Likewise.
878 (ada_value_of_root): Likewise.
879 (struct language_specific) <value_of_root>: Remove.
880 (languages): Update initialization.
881 (check_scope): Move earlier.
882 (c_value_of_root): Move earlier and rename to ...
883 (value_of_root_1): ... this.
884 (value_of_root): Caller update.
885 (cplus_value_of_root, java_value_of_root): Remove.
886 (ada_value_of_root): Remove.
887
c573f273
YQ
8882013-10-01 Yao Qi <yao@codesourcery.com>
889
890 * varobj.c (varobj_format_string): Remove "unknown".
891 (languages): Remove the first element.
892 * varobj.h (enum varobj_languages): Remove vlang_c.
893
56250258
YQ
8942013-10-01 Yao Qi <yao@codesourcery.com>
895
896 * varobj.c (struct language_specific) <language>: Remove.
897 (languages): Update the initialization.
898
29f9ebfa
YQ
8992013-10-01 Yao Qi <yao@codesourcery.com>
900
901 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
902 "solib-target.h". Include "windows-tdep.h".
903 (arm_wince_init_abi): Call windows_init_abi. Remove call to
904 set_solib_ops and set_gdbarch_has_dos_based_file_system.
905 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
906 windows-tdep.o to gdb_target_obs.
907
64870a42
YQ
9082013-10-01 Yao Qi <yao@codesourcery.com>
909
910 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
911 "solib-target.h".
912 (amd64_windows_init_abi): Don't call set_solib_ops and
913 set_gdbarch_iterate_over_objfiles_in_search_order. Call
914 windows_init_abi instead.
915 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
916 "solib-target.h".
917 (i386_cygwin_init_abi): Don't call set_solib_ops,
918 set_gdbarch_has_dos_based_file_system and
919 set_gdbarch_iterate_over_objfiles_in_search_order. Call
920 windows_init_abi instead.
921 * windows-tdep.c: Include "solib.h" and "solib-target.h".
922 (windows_init_abi): New function.
923 (windows_iterate_over_objfiles_in_search_order): Make it
924 static.
925 * windows-tdep.h (windows_init_abi): Declare.
926 (windows_iterate_over_objfiles_in_search_order): Remove
927 declaration.
928
0aebdefa
JB
9292013-10-01 Jerome Guitton <guitton@adacore.com>
930
931 Checked in by Joel Brobecker <brobecker@adacore.com>
932 * system-gdbinit/elinos.py (get_elinos_environment): Return an
933 incomplete dictionnary instead of None in case of missing
934 environment variables.
935 (elinos_init): in case of an incomplete environment, best
936 effort to load system libraries instead of abort.
937
1c8e84b0
JB
9382013-10-01 Joel Brobecker <brobecker@adacore.com>
939
940 * ada-lang.c (ada_has_this_exception_support): Ignore
941 mst_solib_trampoline minimal symbols.
942
61d82a0d
TG
9432013-09-30 Tristan Gingold <gingold@adacore.com>
944
945 * i386-darwin-nat.c (darwin_complete_target): Install methods for
946 hardware watchpoint.
947 (i386_darwin_dr_set): Support 32 and 64 bit states.
948 (i386_darwin_dr_get): Likewise.
949 (i386_darwin_dr_set_control): Make static.
950 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
951 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
952
dfd4cc63
LM
9532013-09-30 Luis Machado <lgustavo@codesourcery.com>
954
955 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
956 Replace TIDGET with ptid_get_lwp.
957 Replace GET_LWP with ptid_get_lwp.
958 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
959 Replace BUILD_THREAD with ptid_build.
960 Replace BUILD_LWP with ptid_build.
961 Replace PIDGET with ptid_get_pid.
962 Replace TIDGET with ptid_get_lwp.
963 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
964 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
965 Replace TIDGET with ptid_get_lwp.
966 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
967 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
968 Replace TIDGET with ptid_get_lwp.
969 Replace GET_LWP with ptid_get_lwp.
970 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
971 * auxv.c: Likewise.
972 * breakpoint.c: Likewise.
973 * common/ptid.c (ptid_is_pid): Condense check for
974 null_ptid and minus_one_ptid.
975 (ptid_lwp_p): New function.
976 (ptid_tid_p): New function.
977 * common/ptid.h: Update comments for accessors.
978 (ptid_lwp_p): New prototype.
979 (ptid_tid_p): New prototype.
980 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
981 * gcore.c: Replace PIDGET with ptid_get_pid.
982 * gdbthread.h: Likewise.
983 * gnu-nat.c: Likewise.
984 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
985 Replace TIDGET with ptid_get_lwp.
986 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
987 * hppanbsd-nat.c: Likewise.
988 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
989 Replace TIDGET with ptid_get_lwp.
990 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
991 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
992 * infcmd.c: Likewise.
993 * inferior.h: Likewise.
994 * inflow.c: Likewise.
995 * infrun.c: Likewise.
996 * linux-fork.c: Likewise.
997 * linux-nat.c: Replace PIDGET with ptid_get_pid.
998 Replace GET_PID with ptid_get_pid.
999 Replace is_lwp with ptid_lwp_p.
1000 Replace GET_LWP with ptid_get_lwp.
1001 Replace BUILD_LWP with ptid_build.
1002
5b4e221c
MF
10032013-09-28 Mike Frysinger <vapier@gentoo.org>
1004
1005 * common/linux-btrace.c: Move sys/syscall.h out of the
1006 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1007 Also check for SYS_perf_event_open before attempting to buid.
1008
57d63ce2
DE
10092013-09-27 Doug Evans <dje@google.com>
1010
19ac8c2e
DE
1011 * dwarf2read.c (dwarf2_section_info): Add comment.
1012 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1013 All uses updated.
1014 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1015 (dwarf2_read_section): Delete unused local "header". Add section
1016 name to error message.
1017 (create_dwo_in_dwp): Tweak comment.
1018 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1019
a32a8923
DE
1020 * dwarf2read.c (die_reader_specs): Tweak comment.
1021 (get_section_bfd_owner, get_section_bfd_section): New functions.
1022 (get_section_name, get_section_file_name): New functions.
1023 (get_section_id, get_section_flags): New functions.
1024 (*): Use new functions to access section fields.
1025
57d63ce2
DE
1026 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1027 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1028 arg "htab". All callers updated.
1029 (create_debug_types_hash_table): Remove redundant copy of
1030 abbrev_section.
1031 (create_dwo_in_dwp): Tweak comments.
1032 (read_str_index): Tweak comment. Record dwarf form name in static
1033 local.
1034
3736004f
PA
10352013-09-27 Pedro Alves <palves@redhat.com>
1036
1037 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1038 (remote_filename_p): Add comment.
1039 * remote.c (remote_filename_p): Adjust to use
1040 REMOTE_SYSROOT_PREFIX.
1041 * solib.c (solib_find): When deciding whether we need to add a
1042 directory separator, check whether the sysroot is "remote:"
1043 instead of checking whether the patch has a drive spec. Add
1044 comments.
1045
5b5596ff
PA
10462013-09-27 Pedro Alves <palves@redhat.com>
1047
1048 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1049 Delete fields.
1050 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1051 directly.
1052
b5eef7aa
JK
10532013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1054
1055 Fix set debug frame output.
1056 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1057 SENTINEL_FRAME entry lower to match enum frame_type order.
1058
5b856f36
PM
10592013-09-26 Pierre Muller <muller@sourceware.org>
1060
1061 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1062 AMD64_R15_REGNUM when a register index is expected.
1063 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1064 Substitute in array.
1065 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1066 (amd64_push_arguments): Substitute in integer_regnum array.
1067
ade7ed9e
DE
10682013-09-25 Doug Evans <dje@google.com>
1069
d3e81981
DE
1070 * objfiles.c (allocate_objfile): Move comment to better place.
1071
8fb8eb5c
DE
1072 New option "set debug symfile on".
1073 * NEWS: Mention "set debug symfile".
1074 * Makefile.in (SFILES): Add symfile-debug.c.
1075 (COMMON_OBS): Add symfile-debug.o.
1076 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1077 objfile's symbol functions.
1078 * objfiles.h (objfile_set_sym_fns): Declare.
1079 * symfile-debug.c: New file.
1080 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1081 objfile's symbol functions.
1082 (reread_symbols): Ditto.
1083
c256e171
DE
1084 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1085 All uses updated.
1086 (add_symtab_fns): Update prototype.
1087 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1088 (registered_sym_fns): ... this.
1089 (symtab_fns): Update.
1090 (add_symtab_fns): New arg "flavour". All callers updated.
1091 (find_sym_fns): Rewrite to use new sym_fns registry.
1092
f56ce883
DE
1093 * symfile.h (struct sym_fns): Add "objfile" argument to
1094 sym_read_linetable. All uses updated.
1095
20c681d1
DE
1096 * symtab.c (domain_name, search_domain_name): New functions.
1097 * symtab.h (domain_name, search_domain_name): Declare.
1098
ade7ed9e
DE
1099 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1100 map_matching_symbols so objfile is first. All uses updated.
1101 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1102 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1103
7d760051
UW
11042013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1105
1106 PR shlibs/8882
1107 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1108 link map entries.
1109
020f7036
DE
11102013-09-24 Doug Evans <dje@google.com>
1111
1112 * objfiles.c (free_objfile): Move comment.
1113
598402f0
JB
11142013-09-24 Joel Brobecker <brobecker@adacore.com>
1115
1116 * ada-exp.y (string_to_operator): Delete.
1117 (dummy_string_to_ada_operator): Delete.
1118
bf4d6c1c
JB
11192013-09-24 Joel Brobecker <brobecker@adacore.com>
1120
1121 Revert:
1122 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1123 amd64-tdep.c.
1124 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1125 call_dummy_integer_regs, and classify.
1126 * amd64-tdep.h (amd64_classify): Add declaration.
1127 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1128 (amd64_reg_class): Delete, moved to i386-tdep.h.
1129 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1130 Replace call to amd64_classify by call to tdep->classify.
1131 (amd64_push_arguments): Get the list of registers to use for
1132 passing integer parameters from the gdbarch tdep structure,
1133 rather than using a hardcoded one. Replace calls to amd64_classify
1134 by calls to tdep->classify.
1135 (amd64_push_dummy_call): Get the register number used for
1136 the "hidden" argument from tdep->call_dummy_integer_regs.
1137 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1138 and tdep->call_dummy_integer_regs. Set tdep->classify.
1139
849e9755
JB
11402013-09-24 Joel Brobecker <brobecker@adacore.com>
1141
1142 Revert:
1143 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1144 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1145 where tdep->memory_args_by_pointer is non-zero.
1146
c1459fd6
JB
11472013-09-24 Joel Brobecker <brobecker@adacore.com>
1148
1149 Revert:
1150 * i386-tdep.h (struct gdbarch_tdep): Add new field
1151 integer_param_regs_saved_in_caller_frame.
1152 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1153 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1154
20c2e3e0
JB
11552013-09-24 Joel Brobecker <brobecker@adacore.com>
1156
874440b8 1157 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1158 (amd64_windows_classify): Delete.
1159 (amd64_windows_passed_by_integer_register)
1160 (amd64_windows_passed_by_xmm_register)
1161 (amd64_windows_passed_by_pointer)
1162 (amd64_windows_adjust_args_passed_by_pointer)
1163 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1164 (amd64_windows_push_dummy_call): New functions.
1165 (amd64_windows_init_abi): Remove setting of
1166 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1167 tdep->classify, tdep->memory_args_by_pointer and
1168 tdep->integer_param_regs_saved_in_caller_frame.
1169 Add call to set_gdbarch_push_dummy_call.
1170
82bf32bc
JK
11712013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1172
1173 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1174 objfile->original_name.
1175
24ba069a
JK
11762013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1177
1178 Pass down original filename for objfile.
1179 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1180 * elfread.c (elf_symfile_read): Likewise.
1181 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1182 longer set ORIGINAL_NAME.
1183 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1184 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1185 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1186 symbol_file_add_from_bfd call.
1187 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1188 (macho_check_dsym): Add parameter filenamep. Change function comment.
1189 Set *filenamep.
1190 (macho_symfile_read): New variable dsym_filename. Update
1191 macho_check_dsym call. Use it for symbol_file_add_separate.
1192 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1193 it. Use it for objfile->original_name.
1194 (objfile_name): Return OBFD's filename, if available.
1195 * objfiles.h (allocate_objfile): Add new parameter name.
1196 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1197 * symfile-mem.c (symbol_file_add_from_memory): Update
1198 symbol_file_add_from_bfd call.
1199 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1200 comment for it.
1201 (symbol_file_add_with_addrs): New parameter name, add function comment
1202 for it. Remove variable name. Update allocate_objfile call.
1203 (symbol_file_add_separate): New parameter name, add function comment
1204 for it. Update symbol_file_add_with_addrs call.
1205 (symbol_file_add_from_bfd): New parameter name. Update
1206 symbol_file_add_with_addrs call.
1207 (symbol_file_add): Update symbol_file_add_from_bfd call.
1208 (reread_symbols): New variable original_name. Save
1209 objfile->original_name by it.
1210 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1211 second parameter.
1212
4262abfb
JK
12132013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1214
1215 Code cleanup: Add objfile_name accessor function.
1216 * ada-lang.c (is_known_support_routine): Use objfile_name.
1217 * auto-load.c (source_gdb_script_for_objfile)
1218 (auto_load_objfile_script): Likewise.
1219 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1220 * dbxread.c (dbx_symfile_read): Likewise.
1221 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1222 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1223 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1224 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1225 (lookup_dwp_signatured_type, lookup_dwo_unit)
1226 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1227 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1228 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1229 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1230 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1231 (read_subrange_type, load_partial_dies, read_partial_die)
1232 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1233 (die_containing_type, build_error_marker_type, lookup_die_type)
1234 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1235 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1236 (get_DW_AT_signature_type, write_psymtabs_to_index)
1237 (save_gdb_index_command): Likewise.
1238 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1239 Likewise.
1240 * expprint.c (dump_subexp_body_standard): Likewise.
1241 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1242 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1243 original_name.
1244 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1245 obj_name, use objfile_name for it, use the variable.
1246 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1247 Use objfile_name.
1248 * machoread.c (macho_symtab_read, macho_check_dsym)
1249 (macho_symfile_relocate): Likewise.
1250 * maint.c (maintenance_translate_address): Likewise.
1251 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1252 * minsyms.c (install_minimal_symbols): Likewise.
1253 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1254 original_name.
1255 (filter_overlapping_sections): Use objfile_name.
1256 (objfile_name): New function.
1257 * objfiles.h (struct objfile): Rename field name to original_name.
1258 (objfile_name): New prototype.
1259 * printcmd.c (sym_info, address_info): Use objfile_name.
1260 * probe.c (parse_probes, collect_probes, compare_probes)
1261 (info_probes_for_ops): Likewise.
1262 * progspace.c (clone_program_space): Likewise.
1263 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1264 (maintenance_info_psymtabs): Likewise.
1265 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1266 (source_section_scripts): Likewise.
1267 * python/py-objfile.c (objfpy_get_filename): Likewise.
1268 * python/py-progspace.c (pspy_get_filename): Likewise.
1269 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1270 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1271 * solib.c (solib_read_symbols): Likewise.
1272 * stabsread.c (scan_file_globals): Likewise.
1273 * stap-probe.c (handle_stap_probe): Likewise.
1274 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1275 (find_separate_debug_file_by_debuglink): Likewise.
1276 (reread_symbols): Likewise. Use the objfile field name renamed to
1277 original_name.
1278 (allocate_symtab): Use objfile_name.
1279 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1280 (dump_objfile, dump_msymbols, dump_symtab_1)
1281 (maintenance_print_msymbols, maintenance_print_objfiles)
1282 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1283 * target.c (target_translate_tls_address, target_info): Likewise.
1284 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1285 objfile_name.
1286
4721dc18
JK
12872013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1288
1289 Code cleanup.
1290 * probe.c (parse_probes): Rename variable objfile_name to
1291 objfile_namestr.
1292
a61d6db8
JK
12932013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1294
1295 Remove solib-sunos.c.
1296 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1297 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1298 * objfiles.c (rt_common_objfile): Remove.
1299 (free_objfile): Remove rt_common_objfile comparison.
1300 * objfiles.h (rt_common_objfile): Remove.
1301 * solib-sunos.c: Remove.
1302 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1303
2659903b
JK
13042013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1305
1306 Remove a.out NetBSD and OpenBSD hosts.
1307 * NEWS (Removed native configurations): New.
1308 * config/arm/nbsdaout.mh: Remove.
1309 * config/i386/nbsdaout.mh: Remove.
1310 * config/i386/obsdaout.mh: Remove.
1311 * config/m68k/nbsdaout.mh: Remove.
1312 * config/sparc/nbsdaout.mh: Remove.
1313 * config/vax/nbsdaout.mh: Remove.
1314 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1315 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1316 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1317 error.
1318 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1319 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1320 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1321
f60e2d5c
TT
13222013-09-23 Tom Tromey <tromey@redhat.com>
1323
1324 * linespec.c (struct minsym_and_objfile): Remove.
1325 (minsym_and_objfile_d): Remove.
1326 (struct linespec, struct collect_info, linespec_parse_basic)
1327 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1328 (compare_msymbols, find_method, find_function_symbols)
1329 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1330 (add_minsym, search_minsyms_for_name): Update.
1331
d3eaaf66
AB
13322013-09-23 Andrew Burgess <aburgess@broadcom.com>
1333
1334 * regcache.c: Add include of valprint.h.
1335 (dump_endian_bytes): Delete.
1336 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1337
2cc762b5
AB
13382013-09-23 Andrew Burgess <aburgess@broadcom.com>
1339
1340 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1341
96181529
PA
13422013-09-19 Pedro Alves <palves@redhat.com>
1343
1344 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1345 breakpoints.
1346
9b3f3ee6
TS
13472013-09-19 Pedro Alves <palves@redhat.com>
1348 Thomas Schwinge <thomas@codesourcery.com>
1349 Yue Lu <hacklu.newborn@gmail.com>
1350
1351 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1352 Take a gdb_byte pointer instead of a char pointer.
1353
1354 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1355 gnu_xfer_partial helper.
1356 (gnu_xfer_partial): New function.
1357 (gnu_target): Don't install a deprecated_xfer_memory hook.
1358 Install a to_xfer_partial hook.
1359
69150c3d
JK
13602013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1361
1362 Constification.
1363 * main.c (captured_main): Replace catch_command_errors by
1364 catch_command_errors_const. Twice.
1365 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1366 (symbol_file_add): Make name parameter const.
1367 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1368 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1369 variable name. Change their usage accordingly.
1370 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1371 const.
1372 (symbol_file_add_main): Make args parameter const.
1373
086850b2
UW
13742013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1375 Ulrich Weigand <uweigand@de.ibm.com>
1376
1377 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1378 of c_value member.
1379 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1380
ca08a94c 13812013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1382 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1383
1384 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1385 (gnu_create_inferior)
1386 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1387 (set_sig_thread_cmd): Use the lwpid field of ptids to
1388 store/extract thread ids instead of the tid field.
1389 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1390
e4c6a2c4
AB
13912013-09-18 Andrew Burgess <aburgess@broadcom.com>
1392
1393 * infcmd.c (default_print_one_register_info): Add detection of
1394 optimized out values.
1395 (default_print_registers_info): Switch to using
1396 get_frame_register_value.
1397
58c48e72
MM
13982013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1399
1400 * infrun.c (handle_inferior_event): Check if we know the
1401 function start address before setting a resume breakpoint.
1402
c8d37639
PA
14032013-09-18 Pedro Alves <palves@redhat.com>
1404
1405 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1406 minus_one_ptid instead of looking at the ptid's tid field and
1407 comparing that to -1.
1408
71926e28
AB
14092013-09-18 Andrew Burgess <aburgess@broadcom.com>
1410
1411 * main.h (get_gdb_program_name): Remove extra whitespace.
1412
c88a1531
AB
14132013-09-18 Andrew Burgess <aburgess@broadcom.com>
1414
1415 * main.h (get_gdb_program_name): Add declaration.
1416 * main.c (get_gdb_program_name): Add definition.
1417
4390d890
DE
14182013-09-17 Doug Evans <dje@google.com>
1419
1420 * dwarf2read.c: Move definitions of complaint functions to after
1421 forward declarations of local functions.
1422
49fa26b0
PA
14232013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1424 Pedro Alves <palves@redhat.com>
1425
1426 PR gdb/11568
1427 * breakpoint.c (remove_threaded_breakpoints): New function.
1428 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1429 as thread_exit observer.
1430
08d72866
PA
14312013-09-17 Pedro Alves <palves@redhat.com>
1432
1433 PR gdb/15911
1434 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1435 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1436 * corelow.c (core_open):
1437 * frame.h (print_stack_frame, print_frame_info): New
1438 'set_current_sal' parameter.
1439 * infcmd.c (finish_command, kill_command): Adjust call to
1440 print_stack_frame.
1441 * inferior.c (inferior_command): Likewise.
1442 * infrun.c (normal_stop): Likewise.
1443 * linux-fork.c (linux_fork_context): Likewise.
1444 * record-full.c (record_full_goto_entry, record_full_restore):
1445 Likewise.
1446 * remote-mips.c (common_open): Likewise.
1447 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1448 Use it.
1449 (print_frame_info): New 'set_current_sal' parameter. Set the last
1450 displayed sal depending on the new paremeter instead of looking at
1451 print_what.
1452 (backtrace_command_1, select_and_print_frame, frame_command)
1453 (current_frame_command, up_command, down_command): Adjust call to
1454 print_stack_frame.
1455 * thread.c (print_thread_info, restore_selected_frame)
1456 (do_captured_thread_select): Adjust call to print_stack_frame.
1457 * tracepoint.c (tfind_1): Likewise.
1458 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1459 (mi_cmd_stack_info_frame): Likewise.
1460 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1461 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1462
6bc305f5
SDJ
14632013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1464
1465 * value.c (isvoid_internal_fn): Replace "parameter" with
1466 "argument".
1467
0a7cfe2c
SS
14682013-09-16 Stan Shebs <stan@codesourcery.com>
1469
1470 * README: Update references to writing code for GDB.
1471 * configure.ac (build_warnings): Remove obsolete comment.
1472 * configure: Regenerate.
1473 * gdbarch.sh: Remove references to gdbint.texinfo.
1474 * gdbarch.h: Regenerate.
1475 * gdbtypes.c (objfile_type): Remove comments referencing internals
1476 manual and D10V.
1477
a280dbd1
SDJ
14782013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1479
1480 * NEWS: Mention new convenience function $_isvoid.
1481 * value.c (isvoid_internal_fn): New function.
1482 (_initialize_values): Add new convenience function $_isvoid.
1483
04a83fee
PM
14842013-09-16 Pierre Muller <muller@sourceware.org>
1485
1486 * arm-linux-tdep.c: Add "elf/common.h" header.
1487 Remove AT_HWCAP macro definintion as it is provided in
1488 added include file.
1489 * s390-tdep.c: Remove system header <elf.h>
1490 Add "elf/common.h" header for AT_HWCAP definition.
1491 (s390_core_read_description): Use correct CORE_ADDR
1492 for hwcap local variable used as third parameter
1493 of function target_auxv_search.
1494
88505fac
PM
14952013-09-14 Pierre Muller <muller@sourceware.org>
1496 Tom Tromey <tromey@redhat.com>
1497 Pedro Alves <palves@redhat.com>
1498
1499 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1500 mode if operating system doesn't know O_CLOEXEC.
1501
d3846e71
JK
15022013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1503
1504 Code cleanup.
1505 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1506 inner block.
1507
4ac33720
UW
15082013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1509
1510 * NEWS: Mention TDB support.
1511 * features/s390-tdb.xml: New file.
1512 * features/s390-te-linux64.xml: New file.
1513 * features/s390x-te-linux64.xml: New file.
1514 * features/Makefile (WHICH): Add new tdescs above.
1515 (s390-te-linux64-expedite): Set.
1516 (s390x-te-linux64-expedite): Set.
1517 * features/s390-te-linux64.c: New file (generated).
1518 * features/s390x-te-linux64.c: New file (generated).
1519 * regformats/s390-te-linux64.dat: New file (generated).
1520 * regformats/s390x-te-linux64.dat: New file (generated).
1521 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1522 (HWCAP_S390_TE): Likewise.
1523 (S390_TDB_DWORD0_REGNUM): Likewise.
1524 (S390_TDB_DWORD0_REGNUM): Likewise.
1525 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1526 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1527 (S390_TDB_ATIA_REGNUM): Likewise.
1528 (S390_TDB_R0_REGNUM): Likewise.
1529 (S390_TDB_R1_REGNUM): Likewise.
1530 (S390_TDB_R2_REGNUM): Likewise.
1531 (S390_TDB_R3_REGNUM): Likewise.
1532 (S390_TDB_R4_REGNUM): Likewise.
1533 (S390_TDB_R5_REGNUM): Likewise.
1534 (S390_TDB_R6_REGNUM): Likewise.
1535 (S390_TDB_R7_REGNUM): Likewise.
1536 (S390_TDB_R8_REGNUM): Likewise.
1537 (S390_TDB_R9_REGNUM): Likewise.
1538 (S390_TDB_R10_REGNUM): Likewise.
1539 (S390_TDB_R11_REGNUM): Likewise.
1540 (S390_TDB_R12_REGNUM): Likewise.
1541 (S390_TDB_R13_REGNUM): Likewise.
1542 (S390_TDB_R14_REGNUM): Likewise.
1543 (S390_TDB_R15_REGNUM): Likewise.
1544 (S390_NUM_REGS): Increase.
1545 (S390_IS_TDBREGSET_REGNUM): New macro.
1546 (s390_regmap_tdb): Declare.
1547 (s390_sizeof_tdbregset): Define.
1548 (tdesc_s390_te_linux64): Declare.
1549 (tdesc_s390x_te_linux64): Likewise.
1550 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1551 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1552 (s390_regmap_tdb): New regmap.
1553 (s390_supply_tdb_regset): New function.
1554 (s390_tdb_regset): New regset.
1555 (s390_linux64v2_regset_sections): Add TDB regset to list.
1556 (s390x_linux64v2_regset_sections): Likewise.
1557 (s390_regset_from_core_section): Recognize TDB core note section.
1558 (s390_core_read_description): If HWCAP indicates TE support,
1559 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1560 (s390_gdbarch_init): Handle TDB regset.
1561 (_initialize_s390_tdep): Initialize new tdescs.
1562 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1563 (have_regset_tdb): New variable.
1564 (s390_native_supply): Support register invalidation.
1565 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1566 (check_regset): Treat ENODATA as "regset exists".
1567 (s390_linux_fetch_inferior_registers): Add TDB.
1568 (s390_read_description): Check for TDB existence and select
1569 appropriate tdesc.
1570 * gdbserver/Makefile.in (clean): Add removal of new makefile
1571 targets.
1572 (s390-te-linux64.c): New makefile target.
1573 (s390x-te-linux64.c): Likewise.
1574 * gdbserver/configure.srv (srv_regobj): Append new objects
1575 s390-te-linux64.o and s390x-te-linux64.o.
1576 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1577 s390x-te-linux64.xml, and s390-tdb.xml.
1578 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1579 declaration.
1580 (tdesc_s390_te_linux64): Likewise.
1581 (init_registers_s390x_te_linux64): Likewise.
1582 (tdesc_s390x_te_linux64): Likewise.
1583 (s390_check_regset): Treat ENODATA as "regset exists".
1584 (s390_arch_setup): Add TDB regset support.
1585 (initialize_low_arch): Initialize registers for new tdescs.
1586
2ccd1468
UW
15872013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1588
1589 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1590 (S390_IS_FPREGSET_REGNUM): New macro.
1591 * s390-tdep.c (s390_dwarf_regmap): Make const.
1592 (regnum_is_gpr_full): New function for replacing repeated code.
1593 (s390_pseudo_register_name): Use it.
1594 (s390_pseudo_register_type): Likewise.
1595 (s390_pseudo_register_read): Likewise.
1596 (s390_pseudo_register_write): Likewise.
1597 (s390_unwind_pseudo_register): Likewise.
1598 (s390_regmap_gregset): New format for regmap.
1599 (s390x_regmap_gregset): Likewise.
1600 (s390_regmap_fpregset): Likewise.
1601 (s390_regmap_upper): Likewise.
1602 (s390_regmap_last_break): Likewise.
1603 (s390_regmap_system_call): Likewise.
1604 (s390_supply_regset): Adjust to new regmap format.
1605 (s390_collect_regset): Likewise.
1606 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1607 (s390_native_collect): Likewise.
1608 (supply_gregset): Likewise.
1609 (fill_gregset): Likewise.
1610 (supply_fpregset): Likewise.
1611 (fill_fpregset): Likewise.
1612 (fetch_regset): Likewise.
1613 (store_regset): Likewise.
1614 (s390_linux_fetch_inferior_registers): Likewise.
1615 (s390_linux_fetch_inferior_registers): Likewise.
1616
1aa4cd77
AP
16172013-09-12 Andrew Pinski <apinski@cavium.com>
1618
1619 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1620
d91fab15
UW
16212013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1622
1623 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1624
5a5d8ead
AB
16252013-09-09 Andrew Burgess <aburgess@broadcom.com>
1626
1627 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1628
1385f66c
PA
16292013-09-06 Pedro Alves <palves@redhat.com>
1630
1631 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1632 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1633 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1634 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1635 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1636 gdb_stdlog.
1637
146ec4db
PA
16382013-09-06 Pedro Alves <palves@redhat.com>
1639
1640 * remote-sim.c (dump_mem): Constify buf parameter.
1641 gdbsim_xfer_inferior_memory): Rename to ...
1642 (gdbsim_xfer_memory): ... this. Adjust interface as
1643 target_xfer_partial helper.
1644 (gdbsim_xfer_partial): New function.
1645 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1646 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1647
fcde0081
PA
16482013-09-06 Pedro Alves <palves@redhat.com>
1649
1650 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1651 host_address_to_string, and send debug output to gdb_stdlog.
1652
749c8b38
RW
16532013-09-06 Ricard Wanderlof <ricardw@axis.com>
1654
1655 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1656 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1657 gdb_target_obs for cris target.
1658 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1659 (cris_gdbarch_init): Move calls to
1660 set_gdbarch_fetch_tls_load_module_address and
1661 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1662 Add call to gdbarch_init_osabi.
1663 * cris-linux-tdep.c: New file.
1664 * cris-tdep.h: New file.
1665
43df09d9
AB
16662013-09-06 Andrew Burgess <aburgess@broadcom.com>
1667
1668 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1669 to deprecated_init_ui_hook.
1670
4d09c5b4
AB
16712013-09-06 Andrew Burgess <aburgess@broadcom.com>
1672
1673 * cli/cli-interp.c (_initialize_cli_interp): Add a
1674 command_loop_proc to interp_procs.
1675 * event-top.c (cli_command_loop): Change signature to match
1676 interp_command_loop_ftype.
1677 * event-top.h (cli_command_loop): Same.
1678 * interps.c (interp_new): Require every interpreter to have a
1679 command_loop_proc.
1680 (current_interp_command_loop): Just call the command_loop_proc on
1681 the current interpreter.
1682 * tui/tui-interp.c (_initialize_tui_interp): Add a
1683 command_loop_proc to interp_procs.
1684
8eb3d7b6
RW
16852013-09-06 Ricard Wanderlof <ricardw@axis.com>
1686
1687 * cris-tdep.c (cris_gdbarch_init): Add call to
1688 get_gdbarch_fetch_tls_load_module_address.
1689
18b3c2f5
RW
16902013-09-06 Ricard Wanderlof <ricardw@axis.com>
1691
1692 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1693 (cris_elf_gregset_t): Rename from elf_gregset_t.
1694 (crisv32_elf_gregset_t): Adjust.
1695 (cris_supply_gregset, fetch_core_registers): Adjust.
1696
dc8636ef
RW
16972013-09-06 Ricard Wanderlof <ricardw@axis.com>
1698
1699 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1700
257e6d53
AB
17012013-09-05 Andrew Burgess <aburgess@broadcom.com>
1702
1581d8a7 1703 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1704 references in comments.
1581d8a7 1705 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1706 deprecated_command_loop_hook.
1707 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1708 setup.
1581d8a7 1709 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1710
7c33b57c
PA
17112013-09-05 Pedro Alves <palves@redhat.com>
1712
1713 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1714 local is now int instead of ULONGEST. Print it with %d
1715 instead of paddress.
1716
9f8edbd5
TG
17172013-09-05 Tristan Gingold <gingold@adacore.com>
1718
1719 * MAINTAINERS: Remove avr maintainership.
1720
d5b495b4
PA
17212013-09-05 Pedro Alves <palves@redhat.com>
1722
1723 * findvar.c (value_of_register): Rework in terms of
1724 value_of_register_lazy.
1725
40b91786
MB
17262013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1727
1728 * symfile.c (add_symbol_file_command): Remove trailing
1729 whitespaces and blank line after comment.
1730
6eed1678
PA
17312013-09-05 Pedro Alves <palves@redhat.com>
1732
1733 * tui/tui-regs.c (tui_register_format): Don't look at the
1734 register's name here. Return string representing register
1735 value instead of storing it in the data element.
1736 (tui_get_register): Compare register string representations
1737 instead of register value states and contents.
1738
8eb6bda2
PA
17392013-09-05 Pedro Alves <palves@redhat.com>
1740
1741 PR tui/15933
1742 * tui/tui-regs.c (tui_show_registers): Show registers of the
1743 selected frame, not the current frame.
1744
48b1f08c
RW
17452013-09-05 Ricard Wanderlof <ricardw@axis.com>
1746
1747 * MAINTAINERS (Write After Approval): Add myself to the list.
1748
89e63ee4
DE
17492013-09-04 Doug Evans <dje@google.com>
1750
1751 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1752 (queue_and_load_dwo_tu): New function.
1753 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1754 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1755 Make dependent_cu optional.
1756 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1757 and an older .gdb_index is in use, queue and load all its TUs too.
1758
492c0ab7
JK
17592013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1760
1761 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1762 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1763 variable search_flags.
1764 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1765 (OPF_RETURN_REALPATH): ... here.
1766 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1767 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1768 call. Twice.
1769 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1770 openp call.
1771 * solib.c (solib_find): Likewise. Four times.
1772 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1773 in the function comment and for the realpath_fptr variable.
1774 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1775 (find_and_open_source): Likewise. Twice.
1776 * symfile.c (symfile_bfd_open): Likewise, also twice.
1777
23a44de8
DE
17782013-09-04 Doug Evans <dje@google.com>
1779
1780 * progspace.c (save_current_space_and_thread): Remove unnecessary
1781 call to save_current_inferior.
1782
47061676
AB
17832013-09-04 Andrew Burgess <aburgess@broadcom.com>
1784
1785 * sh64-tdep.c (sh64_do_register): Return after printing message
1786 about unavailable register contents.
1787
41dc8db8
MB
17882013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1789 Pedro Alves <palves@redhat.com>
1790
1791 * symfile.c (add_symbol_file_command): Error out on unknown
1792 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1793 options and collapse into single conditional branch.
1794
07107ca6
LM
17952013-09-03 Luis Machado <lgustavo@codesourcery.com>
1796
a7ea61cf 1797 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1798 detach_fork.
1799 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1800 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1801 * inferior.h (detach_fork): Remove.
1802 * infrun.c (detach_fork): Adjust comment and make it
1803 static.
1804 (follow_fork): Pass detach_fork parameter to
1805 target_follow_fork.
1806 * linux-nat.c (linux_child_follow_fork): New parameter
1807 detach_fork.
1808 * target.c (target_follow_fork): New parameter detach_fork.
1809 Pass detach_fork as parameter and print its value.
1810 * target.h (struct target_ops) <to_follow_fork>: New int
1811 parameter.
1812 (target_follow_fork): New parameter detach_fork.
1813
3bec2768
JB
18142013-09-03 Joel Brobecker <brobecker@adacore.com>
1815
1816 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1817 Replace sec->bfd by sec->the_bfd_section->owner.
1818
c01cbb3d
YQ
18192013-09-03 Yao Qi <yao@codesourcery.com>
1820
1821 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1822 from linux_has_shared_address_space.
1823 (linux_has_shared_address_space): Call linux_is_uclinux.
1824 * linux-tdep.h (linux_is_uclinux): Declare.
1825 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1826 linux_is_uclinux.
1827
7b00db47
YQ
18282013-09-03 Yao Qi <yao@codesourcery.com>
1829
1830 * config/djgpp/fnchange.lst: Remove entry of
1831 i386-interix-nat.c and i386-interix-tdep.c.
1832 * configure.ac: Remove '*-*-interix*'.
1833 * configure: Re-generated.
1834 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1835 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1836 obsolete comments.
1837 * osabi.c (gdb_osabi_names): Remove "Interix".
1838
0f9741f2
YQ
18392013-09-03 Yao Qi <yao@codesourcery.com>
1840
1841 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1842
1e038f67
MM
18432013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1844
1845 * record.h (record_print_flag) <record_print_src_line,
1846 record_print_insn_range>: Rename into ...
1847 (record_print_flag) <record_print_src_line,
1848 record_print_insn_range>: ... this. Update all users.
1849
9e52adf9
PM
18502013-09-02 Pierre Muller <muller@sourceware.org>
1851
1852 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1853 error code.
1854
a2388568
PM
18552013-09-02 Pierre Muller <muller@sourceware.org>
1856
1857 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1858 by use of plongest function.
1859
9058cc3a
TG
18602013-09-02 Tristan Gingold <gingold@adacore.com>
1861
1862 * NEWS: Add entry mentioning support for native Windows x64
1863 SEH data.
1864
1865 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1866 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1867 (struct amd64_windows_frame_cache): New struct.
1868 (amd64_windows_w2gdb_regnum): New global.
1869 (pc_in_range, amd64_windows_frame_decode_epilogue)
1870 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1871 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1872 (amd64_windows_frame_this_id): New functions.
1873 (amd64_windows_frame_unwind): New static global.
1874 (amd64_windows_skip_prologue): New function.
1875 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1876 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1877 with amd64_windows_skip_prologue.
1878
3161820b 18792013-08-30 Joel Brobecker <brobecker@adacore.com>
1880
1881 GDB 7.6.1 released.
1882
02457c76
PA
18832013-08-30 Pedro Alves <palves@redhat.com>
1884
1885 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1886 SRC_AND_LOC.
1887
e0162910
PA
18882013-08-30 Pedro Alves <palves@redhat.com>
1889
1890 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1891 warning text.
1892
6391ce51
PA
18932013-08-30 Pedro Alves <palves@redhat.com>
1894
1895 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1896 Adjust arguments to print_stack_frame.
1897
d1da0587
PA
18982013-08-30 Pedro Alves <palves@redhat.com>
1899
1900 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1901
adfd8245
PA
19022013-08-30 Pedro Alves <palves@redhat.com>
1903
1904 * frame.h (show_and_print_stack_frame): Delete declaration.
1905
96d9056e
PM
19062013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1907
1908 PR python/15461
1909
1910 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1911 (archpy_name): Check for valid architecture.
1912 (archpy_disassemble): Ditto.
1913
11cb8762
JB
19142013-08-29 Joel Brobecker <brobecker@adacore.com>
1915
1916 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1917 instead of "long long" in call to ptrace64.
1918
1af12a7d
AB
19192013-08-29 Andrew Burgess <aburgess@broadcom.com>
1920
1921 * mi/mi-interp.c (mi_command_loop): Change signature to match
1922 interp_command_loop_ftype.
1923 (mi1_command_loop): Remove.
1924 (mi2_command_loop): Remove.
1925 (mi3_command_loop): Remove.
1926 (mi_interpreter_resume): Remove setting of
1927 deprecated_command_loop_hook.
1928 (_initialize_mi_interp): Set mi_command_loop as the command loop
1929 callback.
1930
acc900c2
SA
19312013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1932
1933 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1934 value_type.
1935
548b762d
SA
19362013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1937
1938 * value.c (allocate_value_contents): Make static.
1939 * value.h (allocate_value_contents): Remove prototype.
1940
08039c9e
SA
19412013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1942
1943 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1944 of assembling value via allocate_value_lazy and attribute setter.
1945 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1946 assembling value via allocate_value_lazy and attribute setter.
1947 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1948 assembling value via allocate_value_lazy and attribute setter.
1949
314c7de9
SA
19502013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1951
1952 * value.c (value_from_contents_and_address): Replace allocate_value and
1953 memcpy with value_from_contents.
1954
8f28f522
PM
19552013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1956
1957 * python/py-framefilter.c (py_print_frame): Remove usage of
1958 PyString_AsString. Use python_string_to_host_string instead.
1959 Refactor function to work with a string as a new allocation
1960 instead of a pointer.
1961 (py_print_frame): Ditto.
1962 * python/lib/gdb/frames.py (return_list): Cain iterators together
1963 instead of adding them as a list.
1964 (_sort_list): Call return_list, and remove duplicate code.
1965 (execute_frame_filters): Convert iterator to a list with list().
1966 * python/lib/gdb/command/frame_filters.py
1967 (SetFrameFilterPriority._set_filter_priority): Convert priority
1968 attribute to an integer.
1969 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1970 wrapper function __next__.
1971 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1972 define as "str".
1973
8ee002df
PM
19742013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1975
1976 PR python/15752
8ee002df
PM
1977 * python/py-framefilter.c (apply_frame_filter): Check
1978 gdb_python_initialized. Exit if the Python frame-filter code
1979 cannot be initialized.
1980
af4c453a
PM
19812013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1982
1983 PR cli/15842
af4c453a
PM
1984 * top.c (print_gdb_version): Remove erroneous newline after help
1985 text.
1986
bf8793bb
YQ
19872013-08-29 Yao Qi <yao@codesourcery.com>
1988
1989 * varobj.c (install_dynamic_child): Remove trailing space.
1990 Add one blank line after variable declaration.
1991
1f0c4988
JK
19922013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1993
1994 PR gdb/15415
1995 * corefile.c (get_exec_file): Use exec_filename.
1996 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1997 * exec.c (exec_close): Free EXEC_FILENAME.
1998 (exec_file_attach): New variable canonical_pathname. Use
1999 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2000 EXEC_FILENAME.
2001 * exec.h (exec_filename): New.
2002 * inferior.c (print_inferior, inferior_command): Use
2003 PSPACE_EXEC_FILENAME.
2004 * mi/mi-main.c (print_one_inferior): Likewise.
2005 * progspace.c (clone_program_space, print_program_space): Likewise.
2006 * progspace.h (struct program_space): New field pspace_exec_filename.
2007 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2008 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2009
59ee9f94
WN
20102013-08-28 Will Newton <will.newton@linaro.org>
2011
2012 * common/linux-ptrace.c: Include stdint.h unconditionally.
2013
c8a2a419
JK
20142013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2015
2016 Code cleanup.
2017 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2018
ffa4ac95
YQ
20192013-08-28 Yao Qi <yao@codesourcery.com>
2020 Pedro Alves <palves@redhat.com>
2021
2022 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2023 instead of stdio_fileopen.
2024 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2025 .Call stderr_fileopen instead of stdio_fileopen.
2026 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2027 [__MINGW32__] (stderr_file_fputs): New function.
2028 (stderr_fileopen): New function.
2029 * ui-file.h (stderr_fileopen): Declare.
2030
69d751e3
DE
20312013-08-27 Doug Evans <dje@google.com>
2032
2033 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2034 (struct dwarf2_per_cu_data): Ditto.
2035 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2036 (process_imported_unit_die): Ditto.
2037 (follow_die_sig_1): Simplify assert.
2038
44f38867
PA
20392013-08-27 Pedro Alves <palves@redhat.com>
2040
2041 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2042 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2043 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2044 windows_xfer_memory directly.
2045 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2046
d28d46b5
PA
20472013-08-27 Pedro Alves <palves@redhat.com>
2048
2049 * darwin-nat.c (darwin_xfer_memory): Delete.
2050 (_initialize_darwin_inferior): Don't install a
2051 deprecated_xfer_memory method.
2052
6211c335
YQ
20532013-08-27 Pedro Alves <pedro@codesourcery.com>
2054 Yao Qi <yao@codesourcery.com>
2055
2056 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2057 (parse_no_frames_option): Remove.
2058 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2059 (mi_cmd_stack_list_args): Adjust.
2060 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2061 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2062 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2063 Caller update.
2064 (list_args_or_locals): New parameter 'skip_unavailable'.
2065 Handle it.
2066 * valprint.c (scalar_type_p): Rename to ...
2067 (val_print_scalar_type_p): ... this. Make extern.
2068 (val_print, value_check_printable): Adjust.
2069 * valprint.h (val_print_scalar_type_p): Declare.
2070 * value.c (value_entirely_unavailable): New function.
2071 * value.h (value_entirely_unavailable): Declare.
2072
2073 * NEWS: Mention the new option "--skip-unavailable" to MI
2074 commands '-stack-list-locals', '-stack-list-arguments' and
2075 '-stack-list-variables'.
2076
242f1fd7
YQ
20772013-08-27 Yao Qi <yao@codesourcery.com>
2078
2079 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2080 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2081 options.
2082 * mi/mi-getopt.c (mi_getopt): Remove.
2083 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2084 'error_on_unknown'.
2085 (mi_getopt): Call mi_getopt_1.
2086 (mi_getopt_silent): New.
2087 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2088
260b681b
DE
20892013-08-26 Doug Evans <dje@google.com>
2090
779bd270
DE
2091 PR symtab/15885
2092 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2093 .gdb_index is in use.
2094 * symfile.c (reread_symbols): Reset objfile->sf.
2095
52e260a3
DE
2096 * NEWS: Document "mt print objfiles" now takes optional regexp.
2097 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2098 regexp of objfiles to print.
2099 (_initialize_symmisc): Update doc string for "mt print objfiles".
2100
260b681b
DE
2101 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2102 missing debug info checks.
2103
a85c52f2
UW
21042013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2105 Ulrich Weigand <uweigand@de.ibm.com>
2106
2107 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2108 line tables generated by XLC compiled binaries.
2109
4f00dda3
DE
21102013-08-23 Doug Evans <dje@google.com>
2111
db68bbae
DE
2112 * symmisc.c (dump_symtab): Delete prototype.
2113 (dump_msymbols, dump_objfile): Ditto.
2114 (maintenance_info_symtabs): Mark as dont_repeat.
2115 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2116
4f00dda3
DE
2117 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2118 debugging printf to better location.
2119
23d577b0
PA
21202013-08-23 Pedro Alves <palves@redhat.com>
2121
2122 * target.c (target_read_live_memory): Change type of 'ret' local
2123 to LONGEST.
2124
00d84524
PA
21252013-08-23 Pedro Alves <palves@redhat.com>
2126
2127 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2128 (remote_read_bytes): Change return type to LONGEST, and adjust to
2129 return a target_xfer_error on error.
2130 (remote_xfer_memory): Delete.
2131 (remote_flash_write): Change type of 'ret' local to LONGEST.
2132 (remote_xfer_partial, remote_xfer_partial): Adjust.
2133 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2134
1ed3ee94
PM
21352013-08-23 Pierre Muller <muller@sourceware.org>
2136
2137 ARI fix: Push # directives to start of line.
2138 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2139
9eaabc75
MW
21402013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2141
2142 PR gdb/15501
2143 * breakpoint.c (enable_command, disable_command): Iterate over
2144 all specified breakpoint locations.
2145
101158d9
LM
21462013-08-22 Luis Machado <lgustavo@codesourcery.com>
2147
2148 * common/linux-ptrace.c (linux_fork_to_function): Push #
2149 directives to the start of the line.
2150 (linux_check_ptrace_features): Fix warning message to use
2151 the "_" markup.
2152
96d7229d
LM
21532013-08-22 Luis Machado <lgustavo@codesourcery.com>
2154
2155 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2156 nat/linux-waitpid.h.
2157 (linux-waitpid.o): New object file rule.
2158 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2159 (current_ptrace_options): Moved from linux-nat.c.
2160 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2161 parameters.
2162 (linux_fork_to_function): New function.
2163 (linux_grandchild_function): Likewise.
2164 (linux_child_function): Likewise.
2165 (linux_check_ptrace_features): New function, heavily
2166 based on linux-nat.c:linux_test_for_tracefork.
2167 (linux_enable_event_reporting): New function.
2168 (ptrace_supports_feature): Likewise.
2169 (linux_supports_tracefork): Likewise.
2170 (linux_supports_traceclone): Likewise.
2171 (linux_supports_tracevforkdone): Likewise.
2172 (linux_supports_tracesysgood): Likewise.
2173 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2174 gdbserver/linux-low.c.
2175 (linux_enable_event_reporting): New declaration.
2176 (linux_supports_tracefork): Likewise.
2177 (linux_supports_traceclone): Likewise.
2178 (linux_supports_tracevforkdone): Likewise.
2179 (linux_supports_tracesysgood): Likewise.
2180 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2181 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2182 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2183 * config/arm/linux.mh (NATDEPFILES): Likewise.
2184 * config/i386/linux.mh (NATDEPFILES): Likewise.
2185 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2186 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2187 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2188 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2189 * config/mips/linux.mh (NATDEPFILES): Likewise.
2190 * config/pa/linux.mh (NATDEPFILES): Likewise..
2191 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2192 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2193 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2194 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2195 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2196 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2197 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2198 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2199 ptrace's 4th argument's types.
2200 Check the type of PTRACE_TYPE_ARG4.
2201 * configure: Regenerate.
2202 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2203 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2204 (linux_supports_tracefork_flag): Remove.
2205 (linux_supports_tracesysgood_flag): Likewise.
2206 (linux_supports_tracevforkdone_flag): Likewise.
2207 (current_ptrace_options): Moved to
2208 common/linux-ptrace.c.
2209 (linux_tracefork_child): Remove.
2210 (my_waitpid): Remove.
2211 (linux_test_for_tracefork): Renamed to
2212 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2213 (linux_test_for_tracesysgood): Remove.
2214 (linux_supports_tracesysgood): Remove.
2215 (linux_supports_tracefork): Remove.
2216 (linux_supports_tracevforkdone): Remove.
2217 (linux_enable_tracesysgood): Remove.
2218 (linux_enable_event_reporting): Remove.
2219 (linux_init_ptrace): New function.
2220 (linux_child_post_attach): Call linux_init_ptrace.
2221 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2222 (linux_child_follow_fork): Call linux_supports_tracefork
2223 and linux_supports_tracevforkdone.
2224 (linux_child_insert_fork_catchpoint): Call
2225 linux_supports_tracefork.
2226 (linux_child_insert_vfork_catchpoint): Likewise.
2227 (linux_child_set_syscall_catchpoint): Call
2228 linux_supports_tracesysgood.
2229 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2230 * nat/linux-nat.h: New file.
2231 * nat/linux-waitpid.c: New file.
2232 * nat/linux-waitpid.h: New file.
2233
9f948660
SDJ
22342013-08-22 Samuel Bronson <naesten@gmail.com>
2235
2236 ARM Linux support for `catch syscall'.
2237 * syscalls/arm-linux.py: New file.
2238 * syscalls/arm-linux.xml: Likewise.
2239 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2240 (arm_linux_init_abi): Register the new function and syscall xml file.
2241 * data-directory/Makefile.in: Install the new syscall xml file.
2242 * NEWS: Brag about this.
2243
6be7b56e
PA
22442013-08-22 Pedro Alves <palves@redhat.com>
2245
2246 PR gdb/15871
2247 * corefile.c (target_xfer_memory_error): New function.
2248 (memory_error): Defer EIO to target_memory_error.
2249 (read_memory): Use target_xfer_partial, and handle finer-grained
2250 target xfer errors.
2251 * target.c (target_xfer_error_to_string): New function.
2252 (memory_xfer_partial_1): If memory is known to be
2253 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2254 (target_xfer_partial): Make extern.
2255 * target.h (enum target_xfer_error): New enum.
2256 (target_xfer_error_to_string): Declare function.
2257 (target_xfer_partial): Declare function.
2258 (struct target_ops) <xfer_partial>: Adjust describing comment.
2259
bcbec14e
AM
22602013-08-22 Alan Modra <amodra@gmail.com>
2261
2262 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2263 * configure.tgt: Likewise as targets.
2264
fc474241
DE
22652013-08-20 Doug Evans <dje@google.com>
2266
2267 * buildsym.c (subfile_stack): Move here from buildsym.h.
2268 (pending_macros): Ditto.
2269 (get_macro_table): New function.
2270 (buildsym_init): Initialize subfile_stack.
2271 * coffread.c (type_vector,type_vector_length): Moved here from
2272 buildsym.h.
2273 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2274 (coff_symtab_read): Use it.
2275 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2276 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2277 with call to get_macro_table.
2278 * stabsread.c (type_vector,type_vector_length): Moved here from
2279 buildsym.h.
2280 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2281 * buildsym.h (get_macro_table): Declare.
2282
bec71544
TT
22832013-08-20 Tom Tromey <tromey@redhat.com>
2284
2285 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2286 Update.
2287 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2288
0002ad5f
DE
22892013-08-20 Doug Evans <dje@google.com>
2290
2291 * blockframe.c: Remove #include "psymtab.h".
2292 * cp-support.c: Ditto.
2293 * source.c: Ditto.
2294 * stack.c: Ditto.
2295
df302446
TT
22962013-08-20 Tom Tromey <tromey@redhat.com>
2297
2298 PR python/15816:
2299 * exceptions.h (return_mask): Now an enum.
2300 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2301 enum constants.
2302
df6d5441
TT
23032013-08-20 Tom Tromey <tromey@redhat.com>
2304
2305 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2306 get_objfile_arch.
2307 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2308 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2309 * jit.c (jit_object_close_impl): Update.
2310 * jv-lang.c (get_dynamics_objfile): Update.
2311 * linespec.c (add_minsym): Use get_dynamics_objfile.
2312 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2313 (allocate_objfile): Don't initialize 'gdbarch' field.
2314 (get_objfile_arch): Update.
2315 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2316 moved from...
2317 (struct objfile) <gdbarch>: ... here. Remove.
2318 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2319 get_objfile_arch.
2320 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2321
f5aee5ee
AM
23222013-08-20 Alan Modra <amodra@gmail.com>
2323
2324 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2325 for IBM long double nan and inf.
2326 (floatformat_is_negative, floatformat_classify,
2327 floatformat_mantissa): Similarly.
2328 (floatformat_ieee_single, floatformat_ieee_double,
2329 floatformat_ieee_quad, floatformat_arm_ext,
2330 floatformat_ia64_spill): Delete unused vars.
2331 (_initialize_doublest): Delete unused function.
2332 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2333 little-endian variants of floatformat_ibm_long_double.
2334
33b60d58 23352013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2336
33b60d58
LM
2337 * Makefile.in (SFILES): Remove common/target-common.c and
2338 add target/waitstatus.c.
2339 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2340 target/resume.h, target/wait.h and target/waitstatus.h.
2341 (COMMON_OBS): Remove target-common.o and add
2342 waitstatus.o.
2343 (target-common.o): Remove.
2344 (waitstatus.o): New target object file.
2345 * common/target-common.c: Move contents to
2346 target/waitstatus.c and remove.
2347 * common/target-common.h: Move contents to other files and
2348 remove.
2349 (enum resume_kind: Move to target/resume.h.
2350 (TARGET_WNOHANG): Move to target/wait.h.
2351 (enum target_waitkind): Move to target/waitstatus.h.
2352 (struct target_waitstatus): Likewise.
2353 * target.h: Do not include target-common.h and
2354 include target/resume.h, target/wait.h and
2355 target/waitstatus.h.
2356 * target/resume.h: New file.
2357 * target/wait.h: New file.
2358 * target/waitstatus.h: New file.
2359 * target/waitstatus.c: New file.
2360
12696c10
PA
23612013-08-19 Pedro Alves <palves@redhat.com>
2362
2363 * linux-nat.c (linux_test_for_tracefork)
2364 (linux_test_for_tracesysgood, linux_child_follow_fork)
2365 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2366 (linux_nat_wait_1): Extend comment.
2367 (linux_async_pipe): Add comment.
2368
ba89f962
KB
23692013-08-15 Kevin Buettner <kevinb@redhat.com>
2370
2371 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2372 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2373 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2374 Update to account for fact that PC is now a pseudo-register.
2375 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2376 cases for RL78_PC_REGNUM.
2377
35ab155d
MB
23782013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2379
2380 PR cli/15841
2381 * top.c (quit_force): Skip writing history file
2382 if input is not from terminal.
2383
0d031856
TT
23842013-08-14 Tom Tromey <tromey@redhat.com>
2385
2386 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2387 resultthreadlist>: New fields.
2388 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2389 (remote_get_threadlist, remote_threadlist_iterator): Use
2390 new fields. Remove static variables.
2391
ee154bee
TT
23922013-08-14 Tom Tromey <tromey@redhat.com>
2393
2394 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2395 remote_watch_data_address>: New fields.
2396 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2397 (process_stop_reply, remote_wait_as)
2398 (remote_check_watch_resources, remote_stopped_data_address): Update.
2399
88b496c3
TT
24002013-08-14 Tom Tromey <tromey@redhat.com>
2401
2402 * remote.c (struct remote_state) <async_client_callback,
2403 async_client_context>: New fields.
2404 (async_client_callback, async_client_context): Remove.
2405 (remote_async_serial_handler, remote_async): Update.
2406
2f65bcb7
TT
24072013-08-14 Tom Tromey <tromey@redhat.com>
2408
2409 * remote.c (sizeof_pkt): Remove.
2410 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2411
b80fafe3
TT
24122013-08-14 Tom Tromey <tromey@redhat.com>
2413
2414 * remote.c (struct remote_state) <use_threadinfo_query,
2415 use_threadextra_query>: New fields.
2416 (remote_threads_info, remote_threads_extra_info)
2417 (remote_open_1): Update.
2418
8e88304f
TT
24192013-08-14 Tom Tromey <tromey@redhat.com>
2420
2421 * remote.c (struct remote_state) <finished_object,
2422 finished_annex, finished_offset>: New fields.
2423 (remote_read_qxfer): Use remote_state fields; remove static
2424 variables.
2425
280ceea3
TT
24262013-08-14 Tom Tromey <tromey@redhat.com>
2427
2428 * remote.c (struct remote_state) <last_sent_step>:
2429 New field.
2430 (last_sent_step): Remove.
2431 (remote_resume, remote_wait_as): Update.
2432
b73be471
TT
24332013-08-14 Tom Tromey <tromey@redhat.com>
2434
2435 * remote.c (struct remote_state) <last_sent_signal>:
2436 New field.
2437 (last_sent_signal): Remove.
2438 (new_remote_state, remote_resume, remote_wait_as): Update.
2439
5e4a05c4
TT
24402013-08-14 Tom Tromey <tromey@redhat.com>
2441
2442 * remote.c (struct remote_state) <last_program_signals_packet>:
2443 New field.
2444 (last_program_signals_packet): Remove.
2445 (remote_program_signals, remote_open_1): Update.
2446
747dc59d
TT
24472013-08-14 Tom Tromey <tromey@redhat.com>
2448
2449 * remote.c (struct remote_state) <last_pass_packet>:
2450 New field.
2451 (last_pass_packet): Remove.
2452 (remote_pass_signals, remote_open_1): Update.
2453
262e1174
TT
24542013-08-14 Tom Tromey <tromey@redhat.com>
2455
2456 * remote.c (struct remote_state) <remote_traceframe_number>:
2457 New field.
2458 (remote_traceframe_number): Remove.
2459 (new_remote_state, remote_open_1, set_remote_traceframe)
2460 (remote_trace_find): Update.
2461
47f8a51d
TT
24622013-08-14 Tom Tromey <tromey@redhat.com>
2463
2464 * remote.c (struct remote_state) <general_thread, continue_thread>:
2465 New fields.
2466 (general_thread, continue_thread): Remove.
2467 (record_currthread, set_thread, set_general_process)
2468 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2469 (extended_remote_mourn_1): Update.
2470
5d93a237
TT
24712013-08-14 Tom Tromey <tromey@redhat.com>
2472
2473 * remote.c (struct remote_state) <remote_desc>: New field.
2474 (remote_desc): Remove.
2475 (remote_threads_info, remote_threads_extra_info, remote_close)
2476 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2477 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2478 (remote_hostio_send_command, remote_file_put, remote_file_get)
2479 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2480 (remote_async, remote_new_objfile, set_range_stepping): Update.
2481
cf792862
TT
24822013-08-14 Tom Tromey <tromey@redhat.com>
2483
2484 * remote.c (remote_state): Now a pointer.
2485 (get_remote_state_raw): Update.
2486 (new_remote_state): New function.
2487 (_initialize_remote): Use new_remote_state.
2488
dc473cfb
TT
24892013-08-14 Tom Tromey <tromey@redhat.com>
2490
2491 * remote.c (remote_protocol_features): Now const.
2492
85ec6ce7
TT
24932013-08-14 Tom Tromey <tromey@redhat.com>
2494
2495 * remote.c (crc32_table, crc32): Remove.
2496 (remote_verify_memory): Use xcrc32.
2497
73033f12
SDJ
24982013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2499
2500 * value.h (create_internalvar_type_lazy): Adjust prototype
2501 declaration.
2502
5c30d39a
AB
25032013-08-13 Andrew Burgess <aburgess@broadcom.com>
2504
2505 * common/format.c (parse_format_string): Don't allow '#' flag for
2506 pointer arguments in format string.
2507
1a66331e
PM
25082013-08-13 Pierre Muller <muller@sourceware.org>
2509
fde605f3 2510 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2511 if rl_get_screen_size did not return useful values.
2512
b4013987
AA
25132013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2514
2515 PR breakpoints/15117
2516 * linespec.c (linespec_parse_basic): Check for convenience
2517 variable or history value while parsing.
2518
959b6a66
SDJ
25192013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2520
2521 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2522 AVR.
2523 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2524 different signals between the generic Linux kernel implementation
2525 and AVR's.
2526 (avr_linux_gdb_signal_from_target): Delete.
2527 (avr_linux_gdb_signal_to_target): Delete.
2528 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2529
24a55014
DE
25302013-08-09 Doug Evans <dje@google.com>
2531
2532 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2533 entries.
2534
eb14d406
SDJ
25352013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2536
2537 * linux-tdep.c: Define enum with generic signal numbers.
2538 (linux_gdb_signal_from_target): New function.
2539 (linux_gdb_signal_to_target): Likewise.
2540 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2541 methods to the functions above.
2542 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2543 (linux_gdb_signal_to_target): Likewise.
2544 * alpha-linux-tdep.c: Define new enum with signals different
2545 from generic Linux kernel.
2546 (alpha_linux_gdb_signal_from_target): New function.
2547 (alpha_linux_gdb_signal_to_target): Likewise.
2548 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2549 with the functions mentioned above.
2550 * avr-tdep.c: Define enum with differences between Linux kernel
2551 and AVR signals.
2552 (avr_linux_gdb_signal_from_target): New function.
2553 (avr_linux_gdb_signal_to_target): Likewise.
2554 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2555 the functions mentioned above.
2556 * sparc-linux-tdep.c: Define enum with differences between SPARC
2557 and generic Linux kernel signal numbers.
2558 (sparc32_linux_gdb_signal_from_target): New function.
2559 (sparc32_linux_gdb_signal_to_target): Likewise.
2560 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2561 to the functions defined above.
2562 * xtensa-linux-tdep.c: Define enum with differences between
2563 Xtensa and Linux kernel generic signals.
2564 (xtensa_linux_gdb_signal_from_target): New function.
2565 (xtensa_linux_gdb_signal_to_target): Likewise.
2566 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2567 to the functions defined above.
2568 * mips-linux-tdep.c: Define enum with differences between
2569 signals in MIPS and Linux kernel generic ones.
2570 (mips_gdb_signal_to_target): New function.
2571 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2572 only different signals from the Linux kernel generic.
2573 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2574 the functions defined above.
2575 * mips-linux-tdep.h (enum mips_signals): Remove.
2576
156d08c8
PA
25772013-08-09 Pedro Alves <palves@redhat.com>
2578
2579 * avr-tdep.c (XMALLOC): Delete macro.
2580 * cli/cli-dump.c (XMALLOC): Delete macro.
2581
db229724
PA
25822013-08-09 Pedro Alves <palves@redhat.com>
2583
2584 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2585 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2586 (fopen_with_cleanup, add_dump_command): Make static.
2587 * cli/cli-dump.h: Delete file.
2588 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2589 cli/cli-dump.h.
2590
3f12a589
PA
25912013-08-09 Pedro Alves <palves@redhat.com>
2592
2593 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2594 error message.
2595
c718be47
PA
25962013-08-09 Pedro Alves <palves@redhat.com>
2597
156d08c8 2598 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2599 error message.
2600
1e351ed1
PA
26012013-08-09 Pedro Alves <palves@redhat.com>
2602
2603 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2604 (gcore_command): Use tilde_expand here, and when showing the
2605 filename to the user, show the expanded version.
2606
1ed8d800
YQ
26072013-08-09 Yao Qi <yao@codesourcery.com>
2608
2609 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2610 'entryval' is set.
2611
47ecca85
PA
26122013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2613
2614 * gcore.c (create_gcore_bfd): Use tilde_expand.
2615
82a0a75f
YQ
26162013-08-08 Yao Qi <yao@codesourcery.com>
2617
2618 * frame.h (read_frame_local): Declare.
2619 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2620 read_frame_local.
2621 * stack.c (read_frame_local): New.
2622
5c4aa40b
YQ
26232013-08-08 Yao Qi <yao@codesourcery.com>
2624
2625 * mi/mi-cmd-stack.c: Update comments to function
2626 list_args_or_locals.
2627
b93601f3
TT
26282013-08-07 Tom Tromey <tromey@redhat.com>
2629
2630 PR symtab/15028:
2631 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2632 (process_psymtab_comp_unit_reader): Use it.
2633 (process_psymtab_comp_unit): Update. Add "pretend_language"
2634 argument.
2635 (dwarf2_build_psymtabs_hard): Update.
2636 (scan_partial_symbols): Pass CU's language to
2637 process_psymtab_comp_unit.
2638
fa760f46
TT
26392013-08-07 Tom Tromey <tromey@redhat.com>
2640
2641 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2642 (dwarf2_gdb_index_functions): Update.
2643 * psymtab.c (find_symbol_file_from_partial): Remove.
2644 (psym_functions): Update.
2645 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2646 Remove.
2647
bf6d8a91
TT
26482013-08-07 Tom Tromey <tromey@redhat.com>
2649
2650 * symfile.c (set_initial_language): Look up "main" symbol
2651 and use its language.
2652 * symtab.c (find_main_filename): Remove.
2653 * symtab.h (find_main_filename): Remove.
2654
f9125b6c
TT
26552013-08-07 Tom Tromey <tromey@redhat.com>
2656
2657 * dwarf2read.c (recursively_compute_inclusions): Add
2658 "immediate_parent" argument. Set symtab's "user" field
2659 if not set.
2660 (compute_symtab_includes): Update.
2661
fdbb204b
TT
26622013-08-07 Tom Tromey <tromey@redhat.com>
2663
2664 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2665 when adding label symbols.
2666
49de1690
UW
26672013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2668 Ulrich Weigand <uweigand@de.ibm.com>
2669
2670 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2671 * configure.host (powerpc64-*-aix*): Likewise.
2672
b08ee99f
UW
26732013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2674 Ulrich Weigand <uweigand@de.ibm.com>
2675
2676 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2677 is defined.
2678 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2679 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2680 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2681 * configure.ac: Check for ptrace64.
2682 * configure, config.in: Regenerate.
2683
fecf803e
UW
26842013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2685 Ulrich Weigand <uweigand@de.ibm.com>
2686
2687 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2688 Call ptrace64 instead of ptrace if defined.
2689 Add macro addr_ptr to take care of ptrace address argument.
2690 (pdc_read_regs): Likewise.
2691 (pdc_write_regs): Likewise.
2692 (aix_thread_resume): Likewise.
2693 (fetch_regs_kernel_thread): Likewise.
2694 (store_regs_kernel_thread): Likewise.
2695
3bb5e4a8
AB
26962013-08-07 Anton Blanchard <anton@samba.org>
2697
2698 * MAINTAINERS: Add myself to Write After Approval.
2699
12070676
TT
27002013-08-05 Tom Tromey <tromey@redhat.com>
2701
2702 * aix-thread.c (_initialize_aix_thread): Use
2703 complete_target_initialization.
2704 * bsd-uthread.c (_initialize_bsd_uthread): Use
2705 complete_target_initialization.
2706 * dec-thread.c (_initialize_dec_thread): Use
2707 complete_target_initialization.
2708 * ravenscar-thread.c (_initialize_ravenscar): Use
2709 complete_target_initialization.
2710 * sol-thread.c (_initialize_sol_thread): Use
2711 complete_target_initialization.
2712 * spu-multiarch.c (_initialize_spu_multiarch): Use
2713 complete_target_initialization.
2714
7c7b6655
TT
27152013-08-05 Tom Tromey <tromey@redhat.com>
2716
2717 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2718 * ada-lang.c (ada_lookup_simple_minsym): Return
2719 bound_minimal_symbol.
2720 * ada-lang.h (ada_lookup_simple_minsym): Update.
2721 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2722 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2723 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2724 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2725 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2726 * minsyms.c (msymbol_objfile): Remove.
2727 (lookup_minimal_symbol_internal): New function, from
2728 lookup_minimal_symbol.
2729 (lookup_minimal_symbol): Rewrite using
2730 lookup_minimal_symbol_internal.
2731 (lookup_bound_minimal_symbol): New function.
2732 * minsyms.h (msymbol_objfile): Remove.
2733 (lookup_bound_minimal_symbol): Declare.
2734 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2735 * parse.c (write_exp_msymbol): Change parameter to a
2736 bound_minimal_symbol.
2737 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2738 * parser-defs.h (write_exp_msymbol): Update.
2739 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2740 * symfile.c (simple_read_overlay_table): Use
2741 lookup_bound_minimal_symbol.
2742 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2743 (search_symbols): Likewise.
2744 (print_msymbol_info): Take a bound_minimal_symbol argument.
2745 (symtab_symbol_info, rbreak_command): Update.
2746 * symtab.h (struct symbol_search) <msymbol>: Change type
2747 to bound_minimal_symbol.
2748 * valops.c (find_function_in_inferior): Use
2749 lookup_bound_minimal_symbol.
2750 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2751
934b9bac
JK
27522013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 Code cleanup.
2755 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2756 to ...
2757 (async_cleanup_sigint_signal_handler): ... this.
2758 (initialize_sigint_signal_handler): Remove declaration.
2759 (handle_remote_sigint): Rename the declaration to ...
2760 (async_handle_remote_sigint): ... this.
2761 (handle_remote_sigint_twice): Rename the declaration to ...
2762 (async_handle_remote_sigint_twice): ... this.
2763 (async_remote_interrupt, async_remote_interrupt_twice)
2764 (remote_interrupt): Remove the declarations.
2765 (remote_interrupt_twice): Rename the declaration ...
2766 (sync_remote_interrupt_twice): ... this.
2767 (sigint_remote_twice_token): Rename the variable to ...
2768 (async_sigint_remote_twice_token): ... this.
2769 (sigint_remote_token): Rename the variable to ...
2770 (async_sigint_remote_token): ... this.
2771 (initialize_sigint_signal_handler): Rename the function to ...
2772 (async_initialize_sigint_signal_handler): ... this. Update the name
2773 inside.
2774 (handle_remote_sigint): Rename the function to ...
2775 (async_handle_remote_sigint): ... this. Update the names inside.
2776 (handle_remote_sigint_twice): Rename the function to ...
2777 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2778 (cleanup_sigint_signal_handler): Rename the function to ...
2779 (async_cleanup_sigint_signal_handler): ... this.
2780 (remote_interrupt): Rename the function to ...
2781 (sync_remote_interrupt): this. Update the names inside.
2782 (remote_interrupt_twice): Rename the function to ...
2783 (sync_remote_interrupt_twice): this. Update the names inside.
2784 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2785 (_initialize_remote): Update the names inside.
2786
3a1115a0
TT
27872013-08-02 Tom Tromey <tromey@redhat.com>
2788
2789 PR symtab/15719:
2790 * breakpoint.c (update_watchpoint, watchpoint_check)
2791 (watch_command_1): Update.
2792 * eval.c (fetch_subexp_value): Add "preserve_errors"
2793 parameter.
2794 * ppc-linux-nat.c (check_condition): Update.
2795 * value.h (fetch_subexp_value): Update.
2796
58b19776
AB
27972013-08-02 Andrew Burgess <aburgess@broadcom.com>
2798
2799 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2800 add_file_handler.
2801
ec94af83
DE
28022013-08-01 Doug Evans <dje@google.com>
2803
7ee85ab1
DE
2804 PR symtab/15691
2805 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2806 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2807 Add assert of sig_entry->dwo_unit == NULL.
2808 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2809 had already been read.
2810 (read_signatured_type): Set per_cu.tu_read.
2811
b846d303
DE
2812 PR symtab/15695
2813 * valops.c (value_struct_elt): Add missing call to check_typedef.
2814 (value_find_oload_method_list): Ditto.
2815
b52109bc
DE
2816 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2817 effectively, struct symbol_search **.
2818 (make_cleanup_free_search_symbols): Change arg to struct
2819 symbol_search **. All callers updated.
2820 (compare_search_syms): Compare symtab file name and block as well.
2821 (search_symbols_equal): New function.
2822 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2823 New args new_head, new_tail. Result is now void. Remove dups after
2824 sorting the symbols.
2825 (search_symbols): Sort all found symbols once, after all have been
2826 found, and remove duplicates. Simplify cleanup tracking of result.
2827 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2828
ec94af83
DE
2829 Further workarounds for binutils/15021.
2830 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2831 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2832 Watch for duplicate symtabs coming from type units.
2833 (compute_symtab_includes): Update call to
2834 recursively_compute_inclusions. Build vector of included symtabs
2835 instead of per_cus.
2836 * symtab.h (symtab_ptr): New typedef.
2837 (DEF_VEC_P (symtab_ptr)): New VEC type.
2838 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2839 instead.
2840
b2ae85cf
AB
28412013-08-01 Andrew Burgess <aburgess@broadcom.com>
2842
2843 * cli/cli-script.c (script_from_file): Remove use of
2844 error_pre_print.
2845 * main.c (captured_main): Remove use of error_pre_print and
2846 quit_pre_print.
2847 * utils.c (error_pre_print, quit_pre_print): Remove.
2848 * utils.h (error_pre_print, quit_pre_print): Likewise.
2849
645eab03
YQ
28502013-08-01 Yao Qi <yao@codesourcery.com>
2851
2852 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2853 with mi_getopt.
2854 (mi_cmd_stack_list_variables): Likewise.
2855
16f92dd4
AB
28562013-07-31 Andrew Burgess <aburgess@broadcom.com>
2857
2858 * exceptions.c (deprecated_throw_reason): Remove.
2859 * exceptions.h (deprecated_throw_reason): Remove.
2860
13f78033
AB
28612013-07-31 Andrew Burgess <aburgess@broadcom.com>
2862
2863 * remote-mips.c (mips_error): Replace use of
2864 deprecated_throw_reason with throw_verror. Use the error message
2865 passed to mips_error as the error message for throw_verror.
2866
039e3c22
AB
28672013-07-31 Andrew Burgess <aburgess@broadcom.com>
2868
2869 * monitor.c (monitor_interrupt_query): Replace use of
2870 deprecated_throw_reason with quit.
2871 * nto-procfs.c (interrupt_query): Likewise.
2872 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2873 * remote-mips.c (mips_kill): Likewise.
2874 * remote.c (interrupt_query): Likewise.
2875
8150913b
AB
28762013-07-31 Andrew Burgess <aburgess@broadcom.com>
2877
2878 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2879 with call to fatal.
2880
de74e63a
YQ
28812013-07-31 Pedro Alves <pedro@codesourcery.com>
2882 Yao Qi <yao@codesourcery.com>
2883
2884 * tracepoint.c (trace_dump_command): Select the current frame.
2885
247f5c4f
DE
28862013-07-30 Doug Evans <dje@google.com>
2887
2888 * dwarf2read.c (process_queue): Add type signature to debug output.
2889
11b4b7cc
AB
28902013-07-30 Andrew Burgess <aburgess@broadcom.com>
2891
2892 * value.c (value_fetch_lazy): Mark optimized out values as such
2893 rather than raising an error.
2894
b0c54aa5
AB
28952013-07-30 Andrew Burgess <aburgess@broadcom.com>
2896
2897 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2898 before checking which bits of the parent, not the child, value are
2899 valid.
2900
97c85fc6
MB
29012013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2902
2903 PR gdb/15715
2904 * top.c: Include "filenames.h".
2905 (set_history_filename): New function.
2906 (init_main): Install it as set hook of the "set history filename"
2907 command.
2908
ff39bb5e
SA
29092013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2910
2911 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2912 attribute parameter.
2913 (dwarf2_const_value_data): Constify struct attribute parameter.
2914 (dwarf2_const_value): Constify struct attribute parameter.
2915 (dwarf2_const_value_attr): Constify struct attribute parameter.
2916 (lookup_die_type): Constify struct attribute parameter.
2917 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2918 (follow_die_ref_or_sig): Constify struct attribute parameter.
2919 (follow_die_ref): Constify struct attribute parameter.
2920 (follow_die_sig): Constify struct attribute parameter.
2921 (get_DW_AT_signature_type): Constify struct attribute parameter.
2922 (get_type_unit_group): Constify struct attribute parameter.
2923 (fill_in_loclist_baton): Constify struct attribute parameter.
2924 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2925 (type_unit_group): Constify struct attribute parameter.
2926
6e5a29e1
SA
29272013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2928
2929 * dwarf2read.c (attr_form_is_block): Make argument const.
2930 (attr_form_is_section_offset): Make argument const.
2931 (attr_form_is_constant): Make argument const.
2932 (attr_form_is_ref): Make argument const.
2933
7771576e
SA
29342013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2935
2936 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2937 All uses updated.
2938 (attr_form_is_ref): Moved below attr_form_is_constant.
2939
a94e8645
DE
29402013-07-29 Doug Evans <dje@google.com>
2941
bb5291d0
DE
2942 * main.c (captured_command_loop): Tweak comment.
2943
b5419e49
DE
2944 * target.c (target_async_permitted_1): Fix comment.
2945
b2d23133
DE
2946 * symtab.c (iterate_over_some_symtabs): Add comment.
2947
a94e8645
DE
2948 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2949
7a60ad40
YQ
29502013-07-27 Yao Qi <yao@codesourcery.com>
2951
2952 * NEWS: Mention that GDBserver now supports hardware
2953 watchpoints on the MIPS GNU/Linux target.
2954
aaee2056
YQ
29552013-07-27 Yao Qi <yao@codesourcery.com>
2956
2957 * Makefile.in (HFILES_NO_SRCDIR): Add
2958 common/mips-linux-watch.h.
2959 (mips-linux-watch.o): New rule.
2960 * common/mips-linux-watch.c: New.
2961 * common/mips-linux-watch.h: New.
2962 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2963 * mips-linux-nat.c: Include mips-linux-watch.h.
2964 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2965 to common/mips-linux-watch.h.
2966 (MAX_DEBUG_REGISTER): Likewise.
2967 (enum pt_watch_style): Likewise.
2968 (struct mips32_watch_regs): Likewise.
2969 (struct mips64_watch_regs): Likewise.
2970 (struct pt_watch_regs): Likewise.
2971 (struct mips_watchpoint): Likewise.
2972 (mips_linux_watch_get_irw_mask): Move to
2973 common/mips-linux-watch.c.
2974 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2975 (mips_linux_watch_get_watchlo): Likewise.
2976 (mips_linux_watch_set_watchlo): Likewise.
2977 (mips_linux_watch_get_watchhi): Likewise.
2978 (mips_linux_watch_set_watchhi): Likewise.
2979 (mips_linux_read_watch_registers): Likewise.
2980 (mips_linux_watch_type_to_irw): Likewise.
2981 (mips_linux_stopped_data_address, fill_mask): Likewise.
2982 (mips_linux_watch_try_one_watch): Likewise.
2983 (mips_linux_watch_populate_regs): Likewise.
2984
b3436450
YQ
29852013-07-27 Yao Qi <yao@codesourcery.com>
2986
2987 * mips-linux-nat.c (get_irw_mask): Rename to ...
2988 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2989 'set' to 'n'. Update function comment. All callers changed.
2990 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2991 function comment. All callers changed.
2992 (get_num_valid): Rename to ...
2993 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2994 'set' to 'n'. Update function comment. All callers changed.
2995 (get_watchlo): Rename to ...
2996 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2997 'set' to 'n'. Update function comment. All callers changed.
2998 (set_watchlo): Rename to ...
2999 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3000 'set' to 'n'. Update function comment. All callers changed.
3001 (get_watchhi): Rename to ...
3002 (mips_linux_watch_get_watchhi): ... this. Update function
3003 comment. All callers changed.
3004 (set_watchhi): Rename to ...
3005 (mips_linux_watch_set_watchhi): ... this. Update function
3006 comment. All callers changed.
3007 (mips_linux_read_watch_registers): Update function comment.
3008 Add new parameters 'lwpid', 'watch_readback', and
3009 'watch_readback_valid'. Update.
3010 (type_to_irw): Rename to ...
3011 (mips_linux_watch_type_to_irw): ... this. Update function
3012 comment. All callers changed.
3013 (fill_mask): Update function comment.
3014 (try_one_watch): Rename to ...
3015 (mips_linux_watch_try_one_watch): ... this. Change the type
3016 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3017 (populate_regs_from_watches): Rename to ...
3018 (mips_linux_watch_populate_regs): ... this. Add parameter
3019 'current_watches'. All callers changed.
3020
9be14b81
YQ
30212013-07-27 Yao Qi <yao@codesourcery.com>
3022
3023 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3024 the code.
3025 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3026 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3027 (struct pt_watch_regs): Likewise.
3028 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3029 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3030 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3031 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3032 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3033
de6f69ad
YQ
30342013-07-27 Yao Qi <yao@codesourcery.com>
3035
3036 * breakpoint.h: Include break-common.h.
3037 (enum target_hw_bp_type): Move to ...
3038 * common/break-common.h: ... here. New.
3039
6f64ef53
PA
30402013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3041
3042 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3043 process group regardless of having tty on stdin.
3044
6107e809
DE
30452013-07-25 Doug Evans <dje@google.com>
3046
3047 * linux-fork.h (detach_fork): Delete.
3048
7fdc1521
TT
30492013-07-25 Tom Tromey <tromey@redhat.com>
3050
3051 PR remote/15256, PR remote/15266:
3052 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3053 * monitor.c (monitor_detach): Use unpush_target.
3054 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3055 * remote-mips.c (mips_detach): Use unpush_target. Don't
3056 call mips_close.
3057 * remote-sim.c (gdbsim_detach): Use unpush_target.
3058 * target.c (pop_target): Remove.
3059 (pop_all_targets_above): Don't call target_close.
3060 (target_close): Assert that the target is unpushed.
3061 * target.h (pop_target): Don't declare.
3062 * tracepoint.c (tfile_open): Use unpush_target.
3063
c22a2b88
TT
30642013-07-25 Tom Tromey <tromey@redhat.com>
3065
3066 * linux-thread-db.c (init_thread_db_ops): Call
3067 complete_target_initialization.
3068 (_initialize_thread_db): Don't call add_target.
3069 * target.c (complete_target_initialization): New function.
3070 (add_target_with_completer): Call it.
3071 * target.h (complete_target_initialization): Declare.
3072
cbb6aada
MK
30732013-07-25 Mark Kettenis <kettenis@gnu.org>
3074
3075 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3076 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3077 (HPPANBSD_SIZEOF_GREGS): New define.
3078 (hppaobsd_supply_gregset): Handle additional registers.
3079 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3080 we provide more registers now.
3081 (hppabsd_supply_gregset): Supply additional registers.
3082 (hppabsd_collect_gregset): Collect additional registers.
3083
17767988
MK
30842013-07-25 Mark Kettenis <kettenis@gnu.org>
3085
3086 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3087 (hppabsd_dwarf2_frame_init_reg): New function.
3088 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3089
fdc8aae8
AB
30902013-07-25 Andrew Burgess <aburgess@broadcom.com>
3091
3092 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3093 'z' format code. Remove error for optimized out values, standard
3094 code will handle these fine.
3095
6fbe845e
AB
30962013-07-25 Andrew Burgess <aburgess@broadcom.com>
3097
3098 * NEWS: Mention new 'z' formatter.
3099 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3100 (_initialize_printcmd): Mention 'z' formatter in help text of the
3101 'x' command.
3102
3373342d
MR
31032013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3104
3105 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3106 formatting.
3107
25f9533e
SDJ
31082013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3109
3110 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3111 interface can evaluate arguments. Fallback to the old mode if it
3112 cannot.
3113 (create_exception_master_breakpoint): Likewise.
3114 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3115 (struct sym_probe_fns elf_probe_fns): Export function above to the
3116 probe interface.
3117 * probe.c (can_evaluate_probe_arguments): New function.
3118 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3119 function pointer.
3120 (can_evaluate_probe_arguments): New function prototype.
3121 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3122 probe interface can evaluate arguments. Fallback to the old mode
3123 if it cannot.
3124 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3125 interface can evaluate arguments. Warning the user if it cannot.
3126 (stap_can_evaluate_probe_arguments): New function.
3127 (struct probe_ops stap_probe_ops): Export function above to the
3128 probe interface.
3129 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3130 New function pointer.
3131
3360c0bf
LM
31322013-07-24 Luis Machado <lgustavo@codesourcery.com>
3133
3134 * Makefile.in (SFILES): Add common/target-common.c.
3135 Add common/target-common.h to headers.
3136 (COMMON_OBS): Add target-common.o.
3137 (target-common.o): New target.
3138 * linux-nat.h (resume_kind): Move to common/target-common.h.
3139 * target.c (target_waitstatus_to_string): Move to
3140 common/target-common.c.
3141 * target.h: Include target-common.h.
3142 (target_waitkind): Move to common/target-common.h.
3143 (target_waitstatus): Likewise.
3144 (TARGET_WNOHANG): Likewise.
3145 * common/target-common.c: New file.
3146 * common/target-common.h: New file.
3147
6656a72d
DE
31482013-07-24 Doug Evans <dje@google.com>
3149
3150 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3151 a warning.
3152
6df81a63
YQ
31532013-07-23 Yao Qi <yao@codesourcery.com>
3154
3155 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3156 parameter 'gdbarch'.
3157 (i386_stack_tramp_frame_sniffer): Caller update.
3158 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3159 parameter 'gdbarch' and 'target'.
3160 (i386_linux_core_read_description): Caller update.
3161 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3162 Likewise.
3163 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3164 declaration.
3165
365156ad
TT
31662013-07-23 Tom Tromey <tromey@redhat.com>
3167
3168 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3169 2013-07-22.
3170
046ac79f
JK
31712013-07-22 Doug Evans <dje@google.com>
3172
3173 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3174 * exec.c (exec_close): Update call to remove_target_sections.
3175 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3176 * solib.c (update_solib_list): Ditto.
3177 (reload_shared_libraries_1): Ditto.
3178 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3179 * target.h (struct target_section): Rename key to owner.
3180 All uses updated.
046ac79f 3181
29b2cc46
TT
31822013-07-22 Tom Tromey <tromey@redhat.com>
3183
3184 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3185
d1160018
TT
31862013-07-22 Tom Tromey <tromey@redhat.com>
3187
3188 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3189 Simplify cleanup handling.
3190
2f324bf6
TT
31912013-07-22 Tom Tromey <tromey@redhat.com>
3192
3193 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3194 on all return paths.
3195
e23b9d6e
UW
31962013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3197
3198 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3199 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3200 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3201
1cf55f60
PM
32022013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3203
3204 * top.c (print_gdb_version): Add help, apropos description and
3205 url to online documentation.
3206
fa876972
HZ
32072013-07-19 Hui Zhu <hui@codesourcery.com>
3208
3209 PR gdb/15692
3210 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3211
1527aea8
YQ
32122013-07-19 Yao Qi <yao@codesourcery.com>
3213
3214 * target.c (update_current_target): Change the default action
3215 of 'to_traceframe_info' from tcomplain to return_zero.
3216 * target.h (struct target_ops) <to_traceframe_info>: Add more
3217 comments.
3218 * valops.c (read_value_memory): Call
3219 traceframe_available_memory unconditionally.
3220
886f230e
YQ
32212013-07-18 Yao Qi <yao@codesourcery.com>
3222
3223 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3224 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3225 symbol without prefix. If found, set its type to
3226 'mst_solib_trampoline'.
3227
16419bae
DE
32282013-07-17 Doug Evans <dje@google.com>
3229
e7045703
DE
3230 * NEWS: Mention "set print raw frame-arguments".
3231 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3232 * stack.c (print_raw_frame_arguments): New static global.
3233 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3234 (_initialize_stack): New command "set/show print raw frame-arguments".
3235 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3236 (set_print_raw, show_print_raw): New functions.
3237 (_initialize_valprint): New prefix command "set/show print raw".
3238 * valprint.h (value_print_options): Improve comments.
3239
453e48a5
DE
3240 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3241 of all *list variables.
3242
16419bae
DE
3243 * gdbcmd.h (togglelist): Delete.
3244 * cli/cli-cmds.c (togglelist): Delete.
3245 (init_cmd_lists): Update.
3246 * cli/cli-cmds.h (togglelist): Delete.
3247
626f2d1c
TT
32482013-07-17 Tom Tromey <tromey@redhat.com>
3249
3250 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3251 dwarf2_per_objfile.
3252
57e6060e
DE
32532013-07-16 Doug Evans <dje@google.com>
3254
3255 * nto-tdep.c (nto_relocate_section_addresses): Update,
3256 target_section.bfd deleted.
3257 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3258 * s390-tdep.c (s390_load): Ditto.
3259 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3260
5ea5559b
AB
32612013-07-16 Andrew Burgess <aburgess@broadcom.com>
3262
3263 * common/format.c (parse_format_string): Add checks for NULL
3264 character before calling strchr.
3265
2b2848e2
DE
32662013-07-16 Doug Evans <dje@google.com>
3267
2c571006
DE
3268 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3269 temp_pathname argument.
3270 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3271 when opening the file fails.
3272
2b2848e2
DE
3273 * target.h (struct target_section): Delete member bfd.
3274 All users updated to use the_bfd_section->owner instead.
3275 * exec.c (add_to_section_table): Assert bfd is expected value.
3276 Remove initialization of target_section.bfd.
3277 (remove_target_sections): Update.
3278 (section_table_available_memory): Update.
3279 (section_table_xfer_memory_partial): Update.
3280 (print_section_info): Update.
3281 (exec_set_section_address): Update.
3282 * record-full.c (record_full_core_xfer_partial): Update.
3283 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3284 * solib-target.c (solib_target_relocate_section_addresses): Update.
3285 * symfile.c (build_section_addr_info_from_section_table): Update.
3286 * target.c (memory_xfer_live_readonly_partial): Update.
3287 (memory_xfer_partial_1): Update.
3288
926bf92d
UW
32892013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3290
3291 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3292 now available for embedded (BookE) and server (BookS) processors,
3293 correct mentions of 'booke' and adjust comments accordingly in order to
3294 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3295 (have_ptrace_booke_interface): Rename function and variable
3296 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3297 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3298 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3299 'hwdebug_point_cmp'. Update all uses.
3300 (booke_find_thread_points_by_tid): Rename function
3301 'booke_find_thread_points_by_tid' to
3302 'hwdebug_find_thread_points_by_tid'. Update all uses.
3303 (booke_insert_point): Rename function 'booke_insert_point' to
3304 'hwdebug_insert_point'. Update all uses.
3305 (booke_remove_point): Rename function 'booke_remove_point' to
3306 'hwdebug_remove_point'. Update all uses.
3307
d929bc19
MR
33082013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3309
3310 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3311 numbers with enum values.
3312
054e8d9e
AA
33132013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3314
3315 PR threads/13217
3316 * thread.c (thread_apply_all_command): Check for valid threads
3317 and thread count.
3318 (thread_array_cleanup): New struct.
3319 (set_thread_refcount): New function.
3320
cf006359
AB
33212013-07-11 Andrew Burgess <aburgess@broadcom.com>
3322
3323 * infcmd.c (default_print_one_register_info): Reuse function
3324 print_hex_chars.
3325
94e36acc
TT
33262013-07-10 Tom Tromey <tromey@redhat.com>
3327
3328 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3329 (ada-exp.o): New target.
3330
915dd369
SDJ
33312013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3332
3333 * mt-tdep.c (mt_registers_info): Call
3334 get_no_prettyformat_print_options instead of
3335 get_raw_print_options (regression by last patch from Doug
3336 Evans).
3337
eca07816
JB
33382013-07-09 Pedro Alves <palves@redhat.com>
3339
3340 Checked in by Joel Brobecker <brobecker@adacore.com>.
3341 * ada-lang.c (coerce_unspec_val_to_type): Use
3342 value_optimized_out_const.
3343 * value.c (value_optimized_out_const): New function.
3344 * value.h (value_optimized_out_const): New declaration.
3345
2a998fc0
DE
33462013-07-09 Doug Evans <dje@google.com>
3347
3348 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3349 Enum values rename as well. All uses updated.
3350 * valprint.h (value_print_options): Rename member pretty to
3351 pretty format. Rename member prettyprint_arrays to
3352 prettyformat_arrays. Rename member prettyprint_structs to
3353 prettyformat_structs. All uses updated.
3354 (get_no_prettyformat_print_options): Renamed from
3355 get_raw_print_options.
3356 * valprint.c (get_no_prettyformat_print_options): Renamed from
3357 get_raw_print_options. All callers updated.
3358 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3359 All callers updated.
3360 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3361 All callers updated.
3362 (_initialize_valprint): Improve help text for "set print pretty" and
3363 "set print arrays".
3364
466c1fca
AB
33652013-07-09 Andrew Burgess <aburgess@broadcom.com>
3366
3367 * value.c (value_bits_valid): Revert previous change, and change
3368 by Pedro on 2013-07-04, due to regressions in
3369 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3370
ad0f0303
AB
33712013-07-08 Andrew Burgess <aburgess@broadcom.com>
3372 Pedro Alves <palves@redhat.com>
3373
3374 * value.c (value_bits_valid): If the value is not lval_computed
3375 or has no check validity handler then the answer is the
3376 optimized_out flag, otherwise defer to the handler.
3377
b187bec1
EZ
33782013-07-06 Eli Zaretskii <eliz@gnu.org>
3379
48d1d6f5
EZ
3380 * top.c (print_gdb_configuration): Explain in output of
3381 --configuration what does "relocatable" mean.
3382
b187bec1
EZ
3383 * main.c (print_gdb_help): Regroup options in the --help text.
3384 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3385 the relevant discussions.
3386
52d361e1
YQ
33872013-07-06 Yao Qi <yao@codesourcery.com>
3388
3389 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3390 Remove parameter 'lsal'.
3391 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3392 to inner block. Caller update.
3393 (base_breakpoint_create_breakpoints_sal): Update.
3394 (bkpt_create_breakpoints_sal): Likewise.
3395 (tracepoint_create_breakpoints_sal): Likewise.
3396 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3397 element 0 of vector 'canonical->sals'.
3398
e1ec1b42
LM
33992013-07-05 Luis Machado <lgustavo@codesourcery.com>
3400
3401 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3402 register number instead of the pseudo register one.
3403 (rs6000_dwarf2_reg_to_regnum): Likewise.
3404
7195e6f0
PA
34052013-07-04 Pedro Alves <palves@redhat.com>
3406
3407 * findvar.c (value_of_register): Use allocate_optimized_out_value
3408 if the register has been optimized out, instead of
3409 set_value_optimized_out.
3410 * frame-unwind.c (frame_unwind_got_optimized): Use
3411 allocate_optimized_out_value.
3412
58722cac
PA
34132013-07-04 Pedro Alves <palves@redhat.com>
3414
3415 * value.c (value_bits_valid): If the value is not lval_computed,
3416 or doesn't have a check_validity hook, assume the value is entirely
3417 valid.
3418
691a26f5
AB
34192013-07-04 Andrew Burgess <aburgess@broadcom.com>
3420
3421 * stack.c (read_frame_arg): No longer fetch lazy values.
3422 * value.c (value_optimized_out): If the value is not already
3423 marked optimized out, and is lazy then fetch it.
3424 (value_primitive_field): Move optimized out check to later in the
3425 function, after we have loaded any lazy values.
3426 (value_fetch_lazy): Use optimized out flag directly rather than
3427 calling optimized_out method.
3428
a58e2656
AB
34292013-07-04 Andrew Burgess <aburgess@broadcom.com>
3430
3431 * valops.c: Don't include "user-regs.h".
3432 (value_fetch_lazy): Moved to value.c.
3433 * value.c: Include "user-regs.h".
3434 (value_fetch_lazy): Moved from valops.c.
3435
bd885420
YQ
34362013-07-04 Yao Qi <yao@codesourcery.com>
3437
3438 Revert:
3439 2013-06-27 Yao Qi <yao@codesourcery.com>
3440
3441 * common/create-version.sh: Update comments. Handle the case
3442 that TARGET_ALIAS is empty.
3443
17ef446e
PA
34442013-07-03 Pedro Alves <palves@redhat.com>
3445
3446 * Makefile.in (config.status): Depend on development.sh.
3447 (aclocal_m4_deps): Add libmcheck.m4.
3448 * acinclude.m4: Include libmcheck.m4.
3449 * configure.ac: Source development.sh instead of setting
3450 'development' here. --enable-libmcheck/--disable-libmcheck code
3451 factored out to GDB_AC_LIBMCHECK. Run it.
3452 * development.sh: New file.
3453 * libmcheck.m4: New file.
3454 * configure: Regenerate.
3455
ac6dd50f
TT
34562013-07-02 Tom Tromey <tromey@redhat.com>
3457
3458 * contrib/ari/update-web-ari.sh: Update for version.in change.
3459
bd1df410
TT
34602013-07-02 Tom Tromey <tromey@redhat.com>
3461
3462 * common/ptid.h: Comment fixes.
3463
4db1a1dc
TT
34642013-07-01 Tom Tromey <tromey@redhat.com>
3465
3466 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3467 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3468 (dwarf2_read_index, create_all_comp_units): Update.
3469
dd9aa048
TT
34702013-07-01 Tom Tromey <tromey@redhat.com>
3471
3472 * configure.ac (build_warnings): Add -Wold-style-definition.
3473 * configure: Rebuild.
3474 * machoread.c (_initialize_machoread): Use "(void)".
3475 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3476 use "(void)".
3477
44d100c3
TT
34782013-07-01 Tom Tromey <tromey@redhat.com>
3479
3480 * configure.ac (build_warnings): Add -Wold-style-declaration.
3481 * configure: Rebuild.
3482 * dsrec.c (make_srec): Use "static const", not "const static".
3483 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3484 not "const static".
3485 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3486 Use "static const", not "const static".
3487 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3488 not "const static".
3489 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3490 not "const static".
3491 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3492 not "const static".
3493 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3494 not "const static".
3495 (v850_dbtrap_breakpoint_from_pc): Likewise.
3496 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3497 not "const static".
3498
2945b807
TT
34992013-07-01 Tom Tromey <tromey@redhat.com>
3500
3501 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3502 * configure: Rebuild.
3503
d8d2a3ee
PA
35042013-07-01 Pedro Alves <palves@redhat.com>
3505
3506 * defs.h: Include "pathmax.h".
3507 * utils.c: Don't include sys/param.h.
3508 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3509 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3510 instead of MAXPATHLEN.
3511 * solib-sunos.c: Don't include sys/param.h.
3512 * xcoffread.c: Don't include sys/param.h.
3513 * bsd-kvm.c: Don't include sys/param.h.
3514 * darwin-nat.c: Don't include sys/param.h.
3515 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3516 * darwin-nat-info.c: Don't include sys/param.h.
3517 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3518 MAXPATHLEN.
3519 * i386obsd-nat.c: Don't include sys/param.h.
3520 * inf-child.c: Don't include sys/param.h.
3521 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3522 * linux-fork.c: Don't include sys/param.h.
3523 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3524 * linux-nat.c: Don't include sys/param.h.
3525 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3526 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3527 * m68klinux-nat.c: Don't include sys/param.h.
3528 * nbsd-nat.c: Don't include sys/param.h.
3529 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3530 * ppc-linux-nat.c: Don't include sys/param.h.
3531 * rs6000-nat.c: Don't include sys/param.h.
3532 * spu-linux-nat.c. Don't include sys/param.h.
3533 * windows-nat.c: Don't include sys/param.h.
3534 * xtensa-linux-nat.c: Don't include sys/param.h.
3535 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3536
38ec2207
PA
35372013-07-01 Pedro Alves <palves@redhat.com>
3538
3539 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3540 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3541 * gnulib/aclocal.m4: Regenerate.
3542 * gnulib/config.in: Regenerate.
3543 * gnulib/configure: Regenerate.
3544 * gnulib/import/pathmax.h: New file.
3545 * gnulib/import/Makefile.am: Regenerate.
3546 * gnulib/import/Makefile.in: Regenerate.
3547 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3548 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3549 * gnulib/import/m4/pathmax.m4: New file.
3550
e655c1a2
PA
35512013-07-01 Pedro Alves <palves@redhat.com>
3552
3553 * configure.ac (GDBINIT): Define, depending on host.
3554 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3555 * top.c (PATH_MAX): Delete fallback definition.
3556 (GDBINIT_FILENAME): Delete.
3557 (gdbinit): Reimplement as const char array set to the GDBINIT
3558 string constant.
3559 * top.h (gdbinit): Make const.
3560 * configure, config.in: Regenerate.
3561
50dd9793
PA
35622013-07-01 Pedro Alves <palves@redhat.com>
3563
3564 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3565 * cli/cli-cmds.h (source_script): Likewise.
3566 * exceptions.c (catch_command_errors_const): New function.
3567 * exceptions.h (catch_command_errors_const): Declare.
3568 * main.c (get_init_files): Make parameters const, and adjust.
3569 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3570 'local_gdbinit' locals const. Adjust to use
3571 catch_command_errors_const.
3572 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3573 'local_gdbinit' locals const.
3574
bc7dea8d
PA
35752013-07-01 Pedro Alves <palves@redhat.com>
3576
3577 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3578 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3579 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3580 <unistd.h>.
3581
8839a007
PA
35822013-07-01 Pedro Alves <palves@redhat.com>
3583
3584 Import the "unistd" gnulib module.
3585 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3586 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3587 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3588 import/m4/unistd_h.m4.
3589 * gnulib/aclocal.m4: Renenerate.
3590 * gnulib/config.in: Renenerate.
3591 * gnulib/configure: Renenerate.
3592 * gnulib/import/Makefile.am: Renenerate.
3593 * gnulib/import/Makefile.in: Renenerate.
3594 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3595 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3596 * gnulib/import/m4/off_t.m4: New file.
3597 * gnulib/import/m4/ssize_t.m4: New file.
3598 * gnulib/import/m4/sys_types_h.m4: New file.
3599 * gnulib/import/m4/unistd_h.m4: New file.
3600 * gnulib/import/sys_types.in.h: New file.
3601 * gnulib/import/unistd.c: New file.
3602 * gnulib/import/unistd.in.h: New file.
3603
8c0da261
PA
36042013-07-01 Pedro Alves <palves@redhat.com>
3605
3606 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3607 defined instead of checking HAVE_UNISTD_H.
3608
3574124b
PA
36092013-07-01 Pedro Alves <palves@redhat.com>
3610
3611 Reimport gnulib from scratch.
3612 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3613 import/m4/onceonly.m4.
3614 * gnulib/aclocal.m4: Renegerate.
3615 * gnulib/config.in: Renegerate.
3616 * gnulib/configure: Renegerate.
3617 * gnulib/import/Makefile.in: Renegerate.
3618 * gnulib/import/extra/update-copyright: Renegerate.
3619 * gnulib/import/m4/onceonly.m4: Delete.
3620
702dc4fd
PA
36212013-07-01 Pedro Alves <palves@redhat.com>
3622
3623 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3624
47e1ce27
JK
36252013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3626
3627 Code cleanup.
3628 * remote.c (async_remote_interrupt_twice): Make it static.
3629 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3630
e82839d4
SDJ
36312013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3632
3633 * ia64-linux-tdep.c: Include <ctype.h>.
3634 (ia64_linux_stap_is_single_operand): New function.
3635 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3636
d6c2da54
TT
36372013-06-28 Tom Tromey <tromey@redhat.com>
3638
3639 * Makefile.in (version.c): Use version.in, not
3640 common/version.in.
3641 * common/create-version.sh: Likewise.
3642 * common/version.in: Move...
3643 * version.in: ...here.
3644
74da6f00
PA
36452013-06-28 Pedro Alves <palves@redhat.com>
3646
3647 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3648 here.
3649 * utils.h (pagination_enabled): Declare.
3650
d32dc48e
PA
36512013-06-28 Pedro Alves <palves@redhat.com>
3652
3653 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3654 Move higher up in file.
3655
0edd9e3b
TT
36562013-06-28 Tom Tromey <tromey@redhat.com>
3657
3658 * tracepoint.c (deprecated_readline_begin_hook)
3659 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3660 declare.
3661
4eb59108
PA
36622013-06-28 Pedro Alves <palves@redhat.com>
3663
3664 PR tui/14880
3665 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3666 checking if they're available.
3667 * value.c (value_available_contents_eq): Change comment.
3668 * value.h (value_available_contents_eq): Expand comment.
3669
97b17156
TT
36702013-06-27 Tom Tromey <tromey@redhat.com>
3671
3672 * target.c (find_run_target): Remove.
3673 * target.h (find_run_target): Remove.
3674
6a3bfc5c
TT
36752013-06-27 Tom Tromey <tromey@redhat.com>
3676
3677 * corelow.c (core_gdbarch): Now static.
3678
c9ef825d
TT
36792013-06-27 Tom Tromey <tromey@redhat.com>
3680
3681 * target.c (target_struct_index): Remove.
3682
e5823f1c
PA
36832013-06-27 Pedro Alves <palves@redhat.com>
3684
3685 * infrun.c: Remove comment describing the 'stepping over runtime
3686 loader dynamic symbol resolution code' mechanism; moved to
3687 gdbint.texinfo.
3688
97f8dd09
PA
36892013-06-27 Pedro Alves <palves@redhat.com>
3690
3691 * exceptions.c (catch_command_errors): Remove spurious space.
3692 * exceptions.h (catch_command_errors): Second parameter is "arg",
3693 not "command".
3694
02b1871e
YQ
36952013-06-27 Yao Qi <yao@codesourcery.com>
3696
3697 * common/create-version.sh: Update comments. Handle the case
3698 that TARGET_ALIAS is empty.
3699
bb1b1cf1
PA
37002013-06-26 Pedro Alves <palves@redhat.com>
3701
3702 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3703 comment.
3704
7b624e71
PA
37052013-06-26 Pedro Alves <palves@redhat.com>
3706
3707 * infrun.c: Update comments on stepping over runtime loader
3708 dynamic symbol resolution code.
3709
74e5a346
SDJ
37102013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3711
3712 * ax-gdb.h (union exp_element): Forward declare.
3713 * parser-defs.h: Include expression.h.
3714
a2fb2cee
MR
37152013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3716
3717 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3718
cdba14e0
DK
37192013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3720
3721 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3722
f30aa5af
DK
37232013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3724
3725 Fix trace-status to output proper start-time and stop-time.
3726 * tracepoint.c (trace_status_command): Fix type of printf arg to
3727 prevent improper type conversion.
3728 (trace_status_mi): Likewise.
3729
1aee363c
MR
37302013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3731
3732 * mips-tdep.c (mips_next_pc): Fix a typo.
3733
3356937a
MR
37342013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3735
3736 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3737
dc673c81
YQ
37382013-06-26 Pedro Alves <pedro@codesourcery.com>
3739 Yao Qi <yao@codesourcery.com>
3740
3741 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3742 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3743 * mi/mi-main.c (print_variable_or_computed): New function.
3744 (mi_cmd_trace_frame_collected): New function.
3745 * tracepoint.c (find_trace_state_variable_by_number): New.
3746 (struct traceframe_info): Move to tracepoint.h
3747 (struct collection_list): Likewise.
3748 (do_collect_symbol): Include locals and arguments in the
3749 collected variables list.
3750 (clear_collection_list): Clear wholly collected variables list
3751 and computed variables list.
3752 (append_exp): New function.
3753 (encode_actions_1): Include variables in the wholly
3754 collected variables list. Include memory ranges and
3755 full-fledged expressions in the computed expressions list.
3756 (encode_actions): Move some code to ...
3757 Return the cleanup chain.
3758 (encode_actions_rsp): ... here. New function.
3759 (get_traceframe_location, get_traceframe_info): Remove static.
3760 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3761 (struct collection_list): Moved from tracepoint.c. Add two
3762 new fields 'wholly_collected' and 'computed'.
3763 (find_trace_state_variable_by_number): Declare.
3764 (encode_actions): Adjust declaration.
3765 (encode_actions_rsp): Declare.
3766 (get_traceframe_info, get_traceframe_location): Declare.
3767
3768 * NEWS: Mention new MI command -trace-frame-collected.
3769
28a93511
YQ
37702013-06-26 Pedro Alves <pedro@codesourcery.com>
3771 Yao Qi <yao@codesourcery.com>
3772
3773 * ctf.c (ctf_traceframe_info): Push trace state variables
3774 present in the trace data into the traceframe info object.
3775 * breakpoint.c (DEF_VEC_I): Remove.
3776 * common/filestuff.c (DEF_VEC_I): Likewise.
3777 * dwarf2loc.c (DEF_VEC_I): Likewise.
3778 * mi/mi-main.c (DEF_VEC_I): Likewise.
3779 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3780 * features/traceframe-info.dtd: Add tvar element and its
3781 attributes.
3782 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3783 (build_traceframe_info): Push trace state variables present in
3784 the trace data into the traceframe info object.
3785 (traceframe_info_start_tvar): New function.
3786 (tvar_attributes): New.
3787 (traceframe_info_children): Add "tvar" element.
3788 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3789
3790 * NEWS: Mention the change in GDB and GDBserver.
3791
ddacd3c8
YQ
37922013-06-26 Pedro Alves <pedro@codesourcery.com>
3793 Yao Qi <yao@codesourcery.com>
3794
3795 * tracepoint.c (trace_dump_command): Move code to ...
3796 (get_traceframe_location): ... here. New.
3797
05796b35
YQ
37982013-06-26 Pedro Alves <pedro@codesourcery.com>
3799 Yao Qi <yao@codesourcery.com>
3800
3801 * tracepoint.c (trace_dump_command): GDB emits an error
3802 instead of a warning when a traceframe is not selected.
3803
cbfa3b61
YQ
38042013-06-26 Pedro Alves <pedro@codesourcery.com>
3805 Yao Qi <yao@codesourcery.com>
3806
3807 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3808 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3809 in collection_list.
3810 (do_clear_collection_list, init_collection_list): New.
3811 (encode_actions): Add local variables 'tracepoint_list' and
3812 'stepping_list'. Call init_collection_list and make cleanup
3813 which calls do_clear_collection_list. Don't call
3814 clear_collection_list.
3815 (_initialize_tracepoint): Delete references to
3816 'tracepoint_list' and 'stepping_list'.
3817
6e2048d3
TT
38182013-06-25 Tom Tromey <tromey@redhat.com>
3819
3820 * common/create-version.sh (date): Use "$", not "$$" in sed
3821 expression.
3822
42059f0e
KB
38232013-06-25 Kevin Buettner <kevinb@redhat.com>
3824
3825 * NEWS (New targets): Add entry for TI MSP430.
3826
a0743c90
YQ
38272013-06-25 Yao Qi <yao@codesourcery.com>
3828
3829 * remote.c (remote_start_remote): Move code to upload tsv
3830 earlier.
3831
9d6e6e84
HZ
38322013-06-25 Yao Qi <yao@codesourcery.com>
3833 Hui Zhu <hui@codesourcery.com>
3834 Pedro Alves <palves@redhat.com>
3835
3836 PR breakpoints/15075
3837 PR breakpoints/15434
3838 * breakpoint.c (bpstat_stop_status): Call
3839 b->ops->after_condition_true.
3840 (update_dprintf_command_list): Don't append "continue" command
3841 to the command list of dprintf breakpoint.
3842 (base_breakpoint_after_condition_true): New function.
3843 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3844 (dprintf_after_condition_true): New function.
3845 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3846 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3847
586cf749
KB
38482013-06-24 Kevin Buettner <kevinb@redhat.com>
3849
3850 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3851 (ALLDEPFILES): Add msp430-tdep.c.
3852 * configure.tgt (msp430*-*-elf): New target.
3853 * msp430-tdep.c: New file.
3854
1bbce132
MR
38552013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3856
3857 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3858 microMIPS synthetic symbols.
3859
3e5d3a5a
MR
38602013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3861
3862 * objfiles.h (pc_in_section): New prototype.
3863 (in_plt_section): Remove name argument, replace prototype with
3864 static inline function.
3865 * mips-tdep.h: Include "objfiles.h".
3866 (in_mips_stubs_section): New function.
3867 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3868 in_solib_call_trampoline member.
3869 (hppa_in_solib_call_trampoline): Remove name argument.
3870 * objfiles.c (pc_in_section): New function.
3871 (in_plt_section): Remove function.
3872 * mips-linux-tdep.c: Include "objfiles.h".
3873 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3874 name argument. Return 1 rather than the low 16-bit halfword of
3875 any instruction examined.
3876 (mips_linux_in_dynsym_resolve_code): Update
3877 mips_linux_in_dynsym_stub call accordingly.
3878 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3879 rather than an equivalent hand-coded sequence.
3880 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3881 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3882 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3883 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3884 in_opd_section.
3885 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3886 on call to tdep->in_solib_call_trampoline.
3887 (hppa_in_solib_call_trampoline): Remove name argument, update
3888 according to in_plt_section change.
3889 (hppa_skip_trampoline_code): Update according to in_plt_section
3890 change.
3891 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3892 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3893 Likewise.
3894 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3895 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3896 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3897 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3898 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3899 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3900 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3901 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3902 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3903 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3904 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3905 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3906 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3907
b9b26a16
JB
39082013-06-24 Joel Brobecker <brobecker@adacore.com>
3909
3910 * common/create-version.sh: Fix expansion of $host_alias
3911 and $target_alias in generation of HOST_NAME and TARGET_NAME
3912 (resp.).
3913
01208463
TT
39142013-06-24 Tom Tromey <tromey@redhat.com>
3915
3916 * common/create-version.sh: New file.
3917 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3918 create-version.sh.
3919 (HFILES_NO_SRCDIR): Use common/version.h.
3920 * version.in: Move to ...
3921 * common/version.in: ... here. Replace date with "DATE".
3922 * version.h: Move to ...
3923 * common/version.h: ... here.
3924
bb6b9a5e
JB
39252013-06-21 Joel Brobecker <brobecker@adacore.com>
3926
3927 * gdb/gnulib/Makefile.in: Update date in copyright header.
3928 * gdb/gnulib/configure.ac: Ditto.
3929 * gdb/gnulib/update-gnulib.sh: Ditto.
3930
c3b18ee7
JB
39312013-06-21 Joel Brobecker <brobecker@adacore.com>
3932
3933 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3934 "gdb/gnulib/import".
3935
85d3b769
WN
39362013-06-21 Will Newton <will.newton@linaro.org>
3937
3938 * doublest.c (ldfrexp): Remove function.
3939 (convert_doublest_to_floatformat): Call frexpl instead of
3940 ldfrexp.
3941
88b48903
WN
39422013-06-21 Will Newton <will.newton@linaro.org>
3943
3944 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3945 * gnulib/aclocal.m4: Regenerate.
3946 * gnulib/config.in: Regenerate.
3947 * gnulib/configure: Regenerate.
3948 * gnulib/import/Makefile.am: Update.
3949 * gnulib/import/Makefile.in: Update.
3950 * gnulib/import/m4/gnulib-cache.m4: Update.
3951 * gnulib/import/m4/gnulib-comp.m4: Update.
3952 * gnulib/import/float+.h: Import.
3953 * gnulib/import/float.c: Import.
3954 * gnulib/import/float.in.h: Import.
3955 * gnulib/import/fpucw.h: Import.
3956 * gnulib/import/frexp.c: Import.
3957 * gnulib/import/frexpl.c: Import.
3958 * gnulib/import/isnan.c: Import.
3959 * gnulib/import/isnand-nolibm.h: Import.
3960 * gnulib/import/isnand.c: Import.
3961 * gnulib/import/isnanl-nolibm.h: Import.
3962 * gnulib/import/isnanl.c: Import.
3963 * gnulib/import/itold.c: Import.
3964 * gnulib/import/m4/exponentd.m4: Import.
3965 * gnulib/import/m4/exponentl.m4: Import.
3966 * gnulib/import/m4/float_h.m4: Import.
3967 * gnulib/import/m4/fpieee.m4: Import.
3968 * gnulib/import/m4/frexp.m4: Import.
3969 * gnulib/import/m4/frexpl.m4: Import.
3970 * gnulib/import/m4/isnand.m4: Import.
3971 * gnulib/import/m4/isnanl.m4: Import.
3972 * gnulib/import/m4/math_h.m4: Import.
3973 * gnulib/import/math.c: Import.
3974 * gnulib/import/math.in.h: Import.
3975
4353c9e6
JK
39762013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3977
3978 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3979 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3980 signature_INTEL_edx comparisons.
3981
e3e06db3
DE
39822013-06-20 Doug Evans <dje@google.com>
3983
6ac97d4c
DE
3984 symtab/15652
3985 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3986 All callers updated.
3987 (open_dwp_file): If we can't find the dwp file, search the basename
3988 in debug-file-directory.
3989
93417882
DE
3990 * dwarf2read.c (struct dwp_file): Fix comment.
3991 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3992
e3e06db3
DE
3993 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3994 better.
3995
0878d0fa
YQ
39962013-06-20 Yao Qi <yao@codesourcery.com>
3997
3998 * breakpoint.c (create_breakpoint): Fix code indentation.
3999
023fa29b
YQ
40002013-06-20 Yao Qi <yao@codesourcery.com>
4001
4002 * breakpoint.c (create_breakpoints_sal_default): Remove
4003 parameter 'lsal'. Update declaration.
4004 (bkpt_create_breakpoints_sal): Caller update.
4005 (tracepoint_create_breakpoints_sal): Likewise.
4006
c898adb7
YQ
40072013-06-20 Pedro Alves <pedro@codesourcery.com>
4008 Yao Qi <yao@codesourcery.com>
4009
4010 * NEWS: Mention the new option '--skip-unavailable' of command
4011 -data-list-register-values.
4012 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4013 --skip-unavailable option. Adjust to use output_register.
4014 (output_register): Add new 'skip_unavailable' parameter.
4015 Handle it.
4016
4d157a3d
MF
40172013-06-19 Mike Frysinger <vapier@gentoo.org>
4018
4019 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4020 common/i386-gcc-cpuid.h.
4021 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4022 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4023 Copy the latest version from upstream gcc.
4024 * common/linux-btrace.c: Include i386-cpuid.h.
4025 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4026 call to i386_cpuid.
4027 (cpu_supports_btrace): Likewise.
4028 * go32-nat.c: Include i386-cpuid.h.
4029 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4030
1ce4db08
DE
40312013-06-19 Doug Evans <dje@google.com>
4032
4033 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4034 (get_section_index): Ditto.
4035
0e4777df
TT
40362013-06-19 Tom Tromey <tromey@redhat.com>
4037
4038 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4039 "dprintf" help.
4040
3190f0c6
DE
40412013-06-18 Doug Evans <dje@google.com>
4042
4043 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4044 before using it.
4045 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4046 Move test of cu_index closer to use. Print complaint if cu_index
4047 is bad.
4048
8b89a20a
JB
40492013-06-18 Joel Brobecker <brobecker@adacore.com>
4050
4051 * machoread.c (oso_vector): Delete this global.
4052 (macho_register_oso): Add new parameter "oso_vector_ptr".
4053 Use it instead of the "oso_vector" global.
4054 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4055 (macho_symfile_read): Use a local oso_vector, to be free'ed
4056 at the end of this function, in place of the old "oso_vector"
4057 global. Update various function calls accordingly. Use one
4058 single cleanup chain for the entire function.
4059
59b0c7c1
JB
40602013-06-18 Joel Brobecker <brobecker@adacore.com>
4061
937c708c 4062 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4063 DWARF2_PER_OBJFILE by uses of DATA instead.
4064
427cd150
TT
40652013-06-18 Tom Tromey <tromey@redhat.com>
4066
4067 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4068 argument.
4069 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4070 Special case signals other than GDB_SIGNAL_TRAP.
4071 (explains_signal_watchpoint): New function.
4072 (base_breakpoint_explains_signal): Add 'sig' argument.
4073 (initialize_breakpoint_ops): Set 'explains_signal' method for
4074 watchpoints.
4075 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4076 signal argument.
4077 (bpstat_explains_signal): Likewise.
4078 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4079
2d57700b
TT
40802013-06-18 Tom Tromey <tromey@redhat.com>
4081
4082 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4083
ac475191
TT
40842013-06-18 Tom Tromey <tromey@redhat.com>
4085
4086 * python/python.c (finish_python_initialization): Decref
4087 'pythondir' on failure path as well.
4088
5bd1ef56
TT
40892013-06-18 Tom Tromey <tromey@redhat.com>
4090
4091 PR symtab/15391:
4092 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4093 after taking bits_to_skip into account. Sign extend byte_offset.
4094 * utils.h (gdb_sign_extend): Declare.
4095 * utils.c (gdb_sign_extend): New function.
4096
92fac807
JK
40972013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4098
4099 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4100
2d503272
PM
41012013-06-17 Pierre Muller <muller@sourceware.org>
4102
4103 * corelow.c (core_open): Print GDB signal name instead of target
4104 signal number.
4105
6916fd98
MF
41062013-06-17 Mike Frysinger <vapier@gentoo.org>
4107
4108 * .gitignore: Add /gcore.
4109
9c02c129
DE
41102013-06-13 Doug Evans <dje@google.com>
4111
4112 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4113 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4114
d0548fa2
PM
41152013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4116
4117 * stack.c (backtrace_command_1): Fix indentation.
4118
22128028
JB
41192013-06-11 Joel Brobecker <brobecker@adacore.com>
4120
4121 * window-nat.c (thread_rec): Add missing empty line after
4122 local variable declaration.
4123
2ed3e009
JB
41242013-06-11 Joel Brobecker <brobecker@adacore.com>
4125
4126 * windows-nat.c (thread_rec): Revert format used to print
4127 error code returned by SuspendThread from %d back to %u.
4128
0c3d84be
JB
41292013-06-11 Joel Brobecker <brobecker@adacore.com>
4130
4131 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4132 ID in debug trace.
4133 (get_windows_debug_event): Likewise, for all debug traces.
4134
80e88e1a
JB
41352013-06-11 Joel Brobecker <brobecker@adacore.com>
4136
4137 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4138 warning message.
4139
1edebdbf
YQ
41402013-06-08 Pedro Alves <pedro@codesourcery.com>
4141 Yao Qi <yao@codesourcery.com>
4142
4143 * mi/mi-main.c (get_register): Remove declaration.
4144 (output_register): Declare.
4145 (mi_cmd_data_list_register_values): Remove local variable
4146 'tuple_cleanup'. Move some code into output_register.
4147 (get_register): Renamed to ...
4148 (output_register): ... this. Output the register's
4149 "number" ui_out tuple here.
4150
47d48711
PA
41512013-06-07 Pedro Alves <palves@redhat.com>
4152
4153 * darwin-nat.c: Fix formating in copyright header.
4154 * darwin-nat.h: Likewise.
4155 * gnu-nat.c: Likewise.
4156 * machoread.c: Likewise.
4157
3aee8918
PA
41582013-06-07 Pedro Alves <palves@redhat.com>
4159
5f2b57b5 4160 PR server/14823
3aee8918
PA
4161 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4162 static. Output a global target description pointer.
4163 (init_registers_${name}): Adjust to initialize a
4164 target description structure.
4165
fe8400b4
WN
41662013-06-07 Will Newton <will.newton@linaro.org>
4167
4168 * printcmd.c (build_address_symbolic): Call
4169 gdbarch_addr_bits_remove for text minimal symbols.
4170
20df6206
WN
41712013-06-07 Will Newton <will.newton@linaro.org>
4172
4173 * MAINTAINERS: Add myself to Write After Approval.
4174
aef525cb
YQ
41752013-06-07 Yao Qi <yao@codesourcery.com>
4176
4177 * tracepoint.c (start_tracing): Move code to ...
4178 (trace_reset_local_state): ... here. New.
4179 (disconnect_tracing): Don't call set_current_traceframe,
4180 set_tracepoint_num, and set_traceframe_context. Call
4181 trace_reset_local_state instead.
4182 (tfile_close): Call trace_reset_local_state.
4183 * ctf.c (ctf_close): Likewise.
4184 * remote.c (remote_close): Likewise.
4185 * tracepoint.h (trace_reset_local_state): Declare.
4186
d2415c6c
DE
41872013-06-06 Doug Evans <dje@google.com>
4188
4189 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4190 and fix header docs.
4191
69fc87c2
DE
41922013-06-05 Doug Evans <dje@google.com>
4193 Keith Seitz <keiths@redhat.com>
4194
4195 PR 15519
4196 * cp-namespace.c (find_symbol_in_baseclass): Call
4197 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4198 Check result of call to lookup_symbol_static.
4199 Call lookup_static_symbol_aux unconditionally.
4200 Call check_typedef on base types before accessing them.
4201 (cp_lookup_nested_symbol): Fix comment.
4202
a513d1e8
LM
42032013-06-05 Luis Machado <lgustavo@codesourcery.com>
4204
4205 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4206 minimal symbols pointing to function descriptors.
4207
351a6f02
TT
42082013-06-05 Tom Tromey <tromey@redhat.com>
4209
4210 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4211
5e1b953b 42122013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4213 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4214
4215 * remote.c (remote_wait_as): Restore signal handler before returning
4216 when GDB gets a notification.
4217
f9e14852
GB
42182013-06-04 Gary Benson <gbenson@redhat.com>
4219
8445cbf1 4220 PR 2328
f9e14852
GB
4221 * breakpoint.h (handle_solib_event): Moved function declaration
4222 to solib.h.
4223 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4224 (bpstat_stop_status): Pass new argument to handle_solib_event.
4225 * solib.h (update_solib_breakpoints): New function declaration.
4226 (handle_solib_event): Moved function declaration from
4227 breakpoint.h.
4228 * solib.c (update_solib_breakpoints): New function.
4229 (handle_solib_event): Moved function from breakpoint.c.
4230 Updated to call solib_ops->handle_event if not NULL.
4231 * solist.h (target_so_ops): New fields "update_breakpoints" and
4232 "handle_event".
4233 * infrun.c (set_stop_on_solib_events): New function.
4234 (_initialize_infrun): Use the above for "set
4235 stop-on-solib-events".
4236 (handle_inferior_event): Pass new argument to handle_solib_event.
4237 * solib-svr4.c (probe.h): New include.
4238 (svr4_free_library_list): New forward declaration.
4239 (probe_action): New enum.
4240 (probe_info): New struct.
4241 (probe_info): New static variable.
4242 (NUM_PROBES): New definition.
4243 (svr4_info): New fields "using_xfer", "probes_table" and
4244 "solib_list".
4245 (free_probes_table): New function.
4246 (free_solib_list): New function.
4247 (svr4_pspace_data_cleanup): Free probes table and solib list.
4248 (svr4_copy_library_list): New function.
4249 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4250 (svr4_read_so_list): New parameter "prev_lm".
4251 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4252 (svr4_current_sos): New function.
4253 (probe_and_action): New struct.
4254 (hash_probe_and_action): New function.
4255 (equal_probe_and_action): Likewise.
4256 (register_solib_event_probe): Likewise.
4257 (solib_event_probe_at): Likewise.
4258 (solib_event_probe_action): Likewise.
4259 (solist_update_full): Likewise.
4260 (solist_update_incremental): Likewise.
4261 (disable_probes_interface_cleanup): Likewise.
4262 (svr4_handle_solib_event): Likewise.
4263 (svr4_update_solib_event_breakpoint): Likewise.
4264 (svr4_update_solib_event_breakpoints): Likewise.
4265 (svr4_create_solib_event_breakpoints): Likewise.
4266 (enable_break): Free probes table before creating breakpoints.
4267 Use svr4_create_solib_event_breakpoints to create breakpoints.
4268 (svr4_solib_create_inferior_hook): Free the solib list.
4269 (_initialize_svr4_solib): Initialise
4270 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4271
ced63ec0
GB
42722013-06-04 Gary Benson <gbenson@redhat.com>
4273
4274 * target.h (target_ops): New field
4275 "to_augmented_libraries_svr4_read".
4276 (target_augmented_libraries_svr4_read): New macro.
4277 * target.c (update_current_target): Handle
4278 to_augmented_libraries_svr4_read.
4279 * remote.c (remote_state): New field
4280 "augmented_libraries_svr4_read".
4281 (remote_augmented_libraries_svr4_read_feature): New function.
4282 (remote_protocol_features): Add entry for
4283 "augmented-libraries-svr4-read".
4284 (remote_augmented_libraries_svr4_read): New function.
4285 (init_remote_ops): Initialize
4286 remote_ops.to_augmented_libraries_svr4_read.
4287
7f91dbec
GB
42882013-06-04 Gary Benson <gbenson@redhat.com>
4289
4290 * NEWS: Update.
4291
607ece04
GB
42922013-06-04 Gary Benson <gbenson@redhat.com>
4293
4294 * objfiles.h (inhibit_section_map_updates): New function
4295 declaration.
4296 (resume_section_map_updates): Likewise.
4297 (resume_section_map_updates_cleanup): Likewise.
4298 * objfiles.c (objfile_pspace_info): Removed field
4299 "objfiles_changed_p". New fields "new_objfiles_available",
4300 "section_map_dirty" and "inhibit_updates".
4301 (allocate_objfile): Set new_objfiles_available.
4302 (free_objfile): Set section_map_dirty.
4303 (objfile_relocate1): Likewise.
4304 (in_plt_section): Likewise.
4305 (find_pc_section): Update the conditions under which the
4306 section map will be updated.
4307 (inhibit_section_map_updates): New function.
4308 (resume_section_map_updates): Likewise.
4309 (resume_section_map_updates_cleanup): Likewise.
4310
9ee6a5ac
GB
43112013-06-04 Gary Benson <gbenson@redhat.com>
4312
4313 * probe.h (get_probe_argument_count): New declaration.
4314 (evaluate_probe_argument): Likewise.
4315 * probe.c (get_probe_argument_count): New function.
4316 (evaluate_probe_argument): Likewise.
4317 (probe_safe_evaluate_at_pc): Use the above new functions.
4318
845d4708
AM
43192013-06-04 Alan Modra <amodra@gmail.com>
4320
4321 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4322 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4323 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4324 target mem reads on optional insns.
4325 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4326 ppc_insns_match_pattern calls.
4327 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4328 Add match for power7 thread safety insns, and new order of
4329 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4330 invocation in comment, and update rest of comment.
4331 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4332 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4333 (ppc64_standard_linkage2_target): Update insn offsets.
4334 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4335 stubs first. Update calls.
4336
404e278f
YQ
43372013-06-04 Yao Qi <yao@codesourcery.com>
4338
4339 * solib.c (solib_find): Don't need dir separator if path has
4340 drive spec.
4341
f6aea118
JB
43422013-06-03 Joel Brobecker <brobecker@adacore.com>
4343
4344 Revert (indirectly causes a SIGSEGV):
4345 * machoread.c (macho_symfile_read): Assign first cleanup to
4346 'back_to'.
4347
87967e27
YQ
43482013-06-03 Yao Qi <yao@codesourcery.com>
4349
4350 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4351 mi-parse.c. Make them static.
4352 (mi_all_values): Likewise.
4353 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4354 mi_parse_print_values. Make it external.
4355 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4356 Remove the declarations.
4357 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4358 * mi/mi-parse.h (mi_parse_print_values): Declare.
4359 * mi/mi-cmd-stack.c: Include mi-parse.h.
4360 (parse_print_values): Remove
4361 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4362 of parse_print_values.
4363 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4364
3ca73e0c
YQ
43652013-05-31 Pedro Alves <pedro@codesourcery.com>
4366 Yao Qi <yao@codesourcery.com>
4367
4368 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4369 (encode_actions): Move code to ...
4370 (all_tracepoint_actions_and_cleanup): ... here. New.
4371 (trace_dump_command): Likewise.
4372
4e993a19
TT
43732013-05-30 Tom Tromey <tromey@redhat.com>
4374
4375 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4376
e3b76b4f
TT
43772013-05-30 Tom Tromey <tromey@redhat.com>
4378
4379 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4380 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4381 'old_chain' argument. Add 'parser_result' argument.
4382 (gdb_xml_create_parser_and_cleanup): Remove old version.
4383 (gdb_xml_parse_quick): Update.
4384 (xml_process_xincludes): Update.
4385 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4386 declare.
4387
db26349c
TT
43882013-05-30 Tom Tromey <tromey@redhat.com>
4389
4390 * probe.c (collect_probes): Check arguments for NULL before
4391 calling compile_rx_or_error.
4392 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4393 Remove NULL return.
4394
77f9e713
TT
43952013-05-30 Tom Tromey <tromey@redhat.com>
4396
4397 * infrun.c (adjust_pc_after_break): Introduce an outer null
4398 cleanup.
4399
45475de7
TT
44002013-05-30 Tom Tromey <tromey@redhat.com>
4401
4402 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4403
ac5007fd
TT
44042013-05-30 Tom Tromey <tromey@redhat.com>
4405
4406 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4407 for 'old_chain'. Do not check 'head' before processing
4408 cleanups.
4409
cd82eddc
TT
44102013-05-30 Tom Tromey <tromey@redhat.com>
4411
4412 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4413 "cleanup_tuple".
4414
57cee33a
TT
44152013-05-30 Tom Tromey <tromey@redhat.com>
4416
4417 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4418 inner scope. Unconditionally call do_cleanups.
4419
795d915c
TT
44202013-05-30 Tom Tromey <tromey@redhat.com>
4421
4422 * source.c (find_and_open_source): Call do_cleanups.
4423
1fc3cf4a
TT
44242013-05-30 Tom Tromey <tromey@redhat.com>
4425
4426 * linux-thread-db.c (thread_db_load_search): Unconditionally
4427 call do_cleanups.
4428
e35ac9bf
TT
44292013-05-30 Tom Tromey <tromey@redhat.com>
4430
4431 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4432 for 'cleanup'; instead use a later one.
4433
f3300387
TT
44342013-05-30 Tom Tromey <tromey@redhat.com>
4435
4436 * python/py-breakpoint.c (bppy_get_commands): Use
4437 explicit, unconditional return.
4438 * python/py-frame.c (frapy_read_var): Likewise.
4439 * python/python.c (gdbpy_decode_line): Likewise.
4440
c27e16e3
TT
44412013-05-30 Tom Tromey <tromey@redhat.com>
4442
4443 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4444 do_cleanups on all return paths.
4445
5ae85e44
TT
44462013-05-30 Tom Tromey <tromey@redhat.com>
4447
4448 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4449
73b8d9da
TT
44502013-05-30 Tom Tromey <tromey@redhat.com>
4451
4452 * stabsread.c (read_struct_type): Call do_cleanups along
4453 all return paths.
4454
7d266584
MR
44552013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4456
4457 * mips-linux-tdep.c: Adjust formatting throughout.
4458
0f900f54
TT
44592013-05-30 Tom Tromey <tromey@redhat.com>
4460
4461 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4462 along all return paths.
4463
a991ac28
TT
44642013-05-30 Tom Tromey <tromey@redhat.com>
4465
4466 * symfile.c (find_separate_debug_file): Call do_cleanups
4467 along all return paths.
4468
1abaf042
TT
44692013-05-30 Tom Tromey <tromey@redhat.com>
4470
4471 * symtab.c (search_symbols): Introduce a null cleanup for
4472 'retval_chain'.
4473
edefe1da
TT
44742013-05-30 Tom Tromey <tromey@redhat.com>
4475
4476 * python/py-value.c (valpy_binop): Call do_cleanups before
4477 exiting loop.
4478
54f72dcc
TT
44792013-05-30 Tom Tromey <tromey@redhat.com>
4480
4481 * python/py-prettyprint.c (print_children): Remove extra
4482 do_cleanups call.
4483
af1c6971
TT
44842013-05-30 Tom Tromey <tromey@redhat.com>
4485
4486 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4487 all return paths.
4488
b862ce75
TT
44892013-05-30 Tom Tromey <tromey@redhat.com>
4490
4491 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4492 along all return paths.
4493
e12fefc8
TT
44942013-05-30 Tom Tromey <tromey@redhat.com>
4495
4496 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4497 call do_cleanups.
4498
4867f990
TT
44992013-05-30 Tom Tromey <tromey@redhat.com>
4500
4501 * varobj.c (c_value_of_root): Call do_cleanups along all
4502 return paths.
4503
4fd2d6af
TT
45042013-05-30 Tom Tromey <tromey@redhat.com>
4505
4506 * tracepoint.c (trace_dump_command): Unconditionally call
4507 do_cleanups.
4508
752eb8b4
TT
45092013-05-30 Tom Tromey <tromey@redhat.com>
4510
4511 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4512 do_cleanups earlier.
4513
e42d0aa5
TT
45142013-05-30 Tom Tromey <tromey@redhat.com>
4515
4516 * machoread.c (macho_symfile_read): Assign first cleanup to
4517 'back_to'.
4518
4bbc010a
TT
45192013-05-30 Tom Tromey <tromey@redhat.com>
4520
4521 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4522
b9635925
TT
45232013-05-30 Tom Tromey <tromey@redhat.com>
4524
4525 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4526
25f43500
TT
45272013-05-30 Tom Tromey <tromey@redhat.com>
4528
4529 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4530 call discard_cleanups.
4531 (inf_ptrace_attach): Likewise.
4532
d6a2e54a
TT
45332013-05-30 Tom Tromey <tromey@redhat.com>
4534
4535 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4536 return paths.
4537 (mips_initialize): Likewise.
4538 (common_open): Call do_cleanups.
4539
48be7c1b
TT
45402013-05-30 Tom Tromey <tromey@redhat.com>
4541
4542 * utils.c (internal_vproblem): Call do_cleanups.
4543
e61727ab
TT
45442013-05-30 Tom Tromey <tromey@redhat.com>
4545
4546 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4547
b81b921f
TT
45482013-05-30 Tom Tromey <tromey@redhat.com>
4549
4550 * cli/cli-script.c (setup_user_args): Don't return after error.
4551
fe48dfb1
TT
45522013-05-30 Tom Tromey <tromey@redhat.com>
4553
4554 * somread.c (som_symtab_read): Call do_cleanups.
4555
27833de7
TT
45562013-05-30 Tom Tromey <tromey@redhat.com>
4557
4558 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4559
5b3fca71
TT
45602013-05-30 Tom Tromey <tromey@redhat.com>
4561
4562 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4563 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4564 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4565 * source.c (show_substitute_path_command): Call do_cleanups.
4566 (unset_substitute_path_command, set_substitute_path_command):
4567 Likewise.
4568 * symfile.c (load_command): Call do_cleanups.
4569
af83e3f8
TT
45702013-05-30 Tom Tromey <tromey@redhat.com>
4571
4572 * contrib/cleanup_check.py: New file.
4573 * contrib/gcc-with-excheck: Add option parsing.
4574
564eac42
JB
45752013-05-30 Joel Brobecker <brobecker@adacore.com>
4576
4577 * windows-nat.c (windows_delete_thread): Add missing space
4578 in cast expression.
4579
47902076
HAQ
45802013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4581
4582 * inferior.c (top level): Include tilde.h.
4583 (add_inferior_command): Call tilde_expand on the value of 'exec'
4584 argument.
4585
23da373a
YQ
45862013-05-30 Pedro Alves <pedro@codesourcery.com>
4587 Yao Qi <yao@codesourcery.com>
4588
4589 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4590 Caller update.
4591 (encode_actions): Likewise.
4592 * remote.c (remote_download_tracepoint): Caller update.
4593 * tracepoint.h (encode_actions): Update declaration.
4594
a6e6f791
PA
45952013-05-30 Pedro Alves <palves@redhat.com>
4596
4597 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4598 pointer.
4599
36d25514
YQ
46002013-05-30 Yao Qi <yao@codesourcery.com>
4601
4602 * remote.c (remote_check_symbols): Remove unused parameter
4603 'objfile'.
4604 Declaration update.
4605 (remote_start_remote, remote_new_objfile): Caller update.
4606
62a813cc
YQ
46072013-05-30 Yao Qi <yao@codesourcery.com>
4608
4609 * mi/mi-cmds.c (mi_cmds): Define MI command
4610 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4611 DEF_MI_CMD_CLI.
4612
28439a30
PA
46132013-05-29 Pedro Alves <palves@redhat.com>
4614
4615 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4616 (remote_insert_watchpoint, remote_remove_watchpoint)
4617 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4618 (remote_verify_memory, compare_sections_command)
4619 (remote_search_memory): Set the general process/thread on the
4620 remote side.
4621
6ac1c082
PA
46222013-05-29 Pedro Alves <palves@redhat.com>
4623
4624 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4625 (_initialize_aarch64_tdep): Don't call
4626 initialize_tdesc_aarch64_without_fpu.
4627 * features/Makefile (WHICH): Remove reference to
4628 aarch64-without-fpu.
4629 * features/aarch64-without-fpu.c: Delete file.
4630 * regformats/aarch64-without-fpu.dat: Delete file.
4631
a73e3634
YQ
46322013-05-28 Yao Qi <yao@codesourcery.com>
4633
4634 * tracepoint.c (stringify_collection_list): Remove parameter
4635 'string'.
4636 (encode_actions): Caller update. Remove local variables.
4637
c0ea94eb
YQ
46382013-05-24 Yao Qi <yao@codesourcery.com>
4639
4640 * tracepoint.c (TFILE_PID): Remove.
4641 (tfile_open): Don't add thread and inferior.
4642 (tfile_close): Don't set 'inferior_ptid'. Don't call
4643 exit_inferior_silent.
4644 (tfile_thread_alive): Remove.
4645 (init_tfile_ops): Don't set field 'to_thread_alive' of
4646 tfile_ops.
4647
20d7f211
DE
46482013-05-23 Doug Evans <dje@google.com>
4649
4650 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4651
8658d16d
PA
46522013-05-23 Pedro Alves <palves@redhat.com>
4653
4654 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4655 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4656 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4657 Only define if HAVE_SOCKETS is defined.
4658 * configure.ac: Check for sys/socket.h.
4659 * config.in, configure: Regenerate.
4660
21aa081e
PA
46612013-05-23 Pedro Alves <palves@redhat.com>
4662
4663 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4664 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4665 printing uint32_t variables.
4666
c2d6af84
PA
46672013-05-23 Pedro Alves <palves@redhat.com>
4668
4669 * NEWS: Mention GDBserver range stepping support.
4670
c1e36e3e
PA
46712013-05-23 Yao Qi <yao@codesourcery.com>
4672 Pedro Alves <palves@redhat.com>
4673
4674 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4675 field.
4676 * infcmd.c (step_once, until_next_command): Enable range stepping.
4677 * infrun.c (displaced_step_prepare): Disable range stepping.
4678 (resume): Disable range stepping if stepping over a breakpoint or
4679 we have software watchpoints. If range stepping is enabled,
4680 assert the thread is in the stepping range.
4681 (clear_proceed_status_thread): Clear may_range_step.
4682 (handle_inferior_event): Disable range stepping as soon as we know
4683 the thread that hit the event. Re-enable it whenever we're going
4684 to step with a step range.
4685 * remote.c (struct vCont_action_support) <r>: New field.
4686 (use_range_stepping): New global.
4687 (remote_vcont_probe): Handle 'r' action.
4688 (append_resumption): Append an 'r' action if the thread may range
4689 step.
4690 (show_range_stepping): New function.
4691 (set_range_stepping): New function.
4692 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4693 'set range-stepping' and 'show range-stepping' commands.
4694 * NEWS: Mention range stepping, the new vCont;r action, and the
4695 new "set/show range-stepping" commands.
4696
d458bd84
PA
46972013-05-23 Yao Qi <yao@codesourcery.com>
4698 Pedro Alves <palves@redhat.com>
4699
4700 * remote.c (struct vCont_action_support): New struct.
4701 (struct remote_state) <support_vCont_t>: Remove field.
4702 <vCont_actions_support>: New field.
4703 (remote_vcont_probe, remote_stop_ns): Update.
4704
ce4c476a
PA
47052013-05-23 Yao Qi <yao@codesourcery.com>
4706 Pedro Alves <palves@redhat.com>
4707
4708 * gdbthread.h (pc_in_thread_step_range): New declaration.
4709 * thread.c (pc_in_thread_step_range): New function.
4710 * infrun.c (handle_inferior_event): Use it.
4711
ce70887a
JB
47122013-05-23 Joel Brobecker <brobecker@adacore.com>
4713
4714 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4715 of sprintf.
4716
55b87a52
KS
47172013-05-22 Keith Seitz <keiths@redhat.com>
4718
4719 * ada-lang.c (is_known_support_routine): Add explicit free of
4720 'func_name' from find_frame_funname.
4721 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4722 for func_name from find_frame_funname.
4723 * python/py-frame.c (frapy_name): Add explicit free of
4724 'name' from find_frame_funname.
4725 * stack.c (find_frame_funname): Add comment explaining that
4726 funcp must be freed by the caller.
4727 Return copy of symbol names instead of pointers.
4728 (print_frame): Add a cleanup for 'funname' from
4729 find_frame_funname.
4730 * stack.h (find_frame_funname): Remove "const" from
4731 'funname' parameter.
4732
5f2e6b00
TT
47332013-05-22 Tom Tromey <tromey@redhat.com>
4734
4735 PR c++/15401:
4736 * c-valprint.c (c_value_print): Use value_addr for
4737 references. Convert back to reference type with value_ref.
4738
d85c4847
EZ
47392013-05-22 Eli Zaretskii <eliz@gnu.org>
4740
4741 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4742 unloaded DLL, it will be done by handle_solib_event. See
4743 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4744 details.
4745
54eb231c
PM
47462013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4747
4748 * ui-out.c: Create typedef ui_out_level_p and define vector
4749 operations for that type.
4750 (struct ui_out): Use a vector instead of an array.
4751 (current_level): Return level from a vector.
4752 (push_level): Create a level in a vector.
4753 (pop_level): Delete a level in a vector.
4754 (ui_out_new): Create initial level zero level, and store in a
4755 vector.
4756 (ui_out_destroy): Add vector cleanup.
4757
ac90359c
PA
47582013-05-22 Pedro Alves <palves@redhat.com>
4759
4760 * python/python-internal.h (gdb_Py_DECREF): Tag with
4761 "ARI: editCase function".
4762
6dcc1893
PP
47632013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4764
4765 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4766
c8c735b9
PA
47672013-05-21 Pedro Alves <palves@redhat.com>
4768
4769 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4770 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4771 * python/py-utils.c (py_decref): Don't check for NULL before
4772 calling Py_DECREF.
4773
1915daeb
PA
47742013-05-21 Pedro Alves <palves@redhat.com>
4775
4776 * python/py-utils.c (py_decref): Remove extra braces.
4777 (gdb_pymodule_addobject): Remove extra braces.
4778 * python-internal.h (gdb_Py_DECREF): New static inline function.
4779 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4780
bd9673a4
PW
47812013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4782
4783 * breakpoints.c (detach_breakpoints): Do not
4784 detach breakpoints locations with loc_type bp_loc_other.
4785
ff6009d0
JK
47862013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4787
4788 Workaround Python 2.6.
4789 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4790 a block.
4791
3641da11
JK
47922013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4793
4794 Code cleanup: constification.
4795 * solib.c (solib_ops): Make return type and ops variable type const.
4796 (set_solib_ops): Make the new_ops parameter and ops variable const.
4797 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4798 (solib_add, solib_keep_data_in_core, clear_solib)
4799 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4800 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4801 const.
4802 * solib.h (set_solib_ops): Make the new_ops parameter const.
4803
776af39e
JB
48042013-05-21 Joel Brobecker <brobecker@adacore.com>
4805
4806 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4807 variable.
4808 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4809 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4810 (SYSTEM_GDBINIT_FILES): New variables.
4811 (all): Add stamp-system-gdbinit.
4812 (stamp-system-gdbinit): New rule.
4813 (clean-system-gdbinit, install-system-gdbinit)
4814 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4815 (install-only): Add dependency on install-system-gdbinit.
4816 (uninstall): Add dependency on uninstall-system-gdbinit.
4817 (clean): Add dependency on clean-system-gdbinit.
4818 * system-gdbinit/elinos.py: New file.
4819 * system-gdbinit/wrs-linux.py: New file.
4820
1509e573
JB
48212013-05-21 Joel Brobecker <brobecker@adacore.com>
4822
4823 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4824
c5867ab6
HZ
48252013-05-21 Hui Zhu <hui@codesourcery.com>
4826
4827 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4828 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4829 * mi/mi-cmd-break.c (ctype.h): New include.
4830 (gdb_obstack.h): New include.
4831 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4832 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4833 (mi_cmd_dprintf_insert): New.
4834 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4835 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4836
7d38e38f
TT
48372013-05-20 Tom Tromey <tromey@redhat.com>
4838
4839 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4840
97b77b39
TT
48412013-05-20 Tom Tromey <tromey@redhat.com>
4842
4843 * python/py-value.c (valpy_get_dynamic_type): Simplify
4844 dynamic_type assignment. Use Py_XINCREF.
4845
53e66479
TT
48462013-05-20 Tom Tromey <tromey@redhat.com>
4847
4848 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4849
dcf87832
TT
48502013-05-20 Tom Tromey <tromey@redhat.com>
4851
4852 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4853 (gdbpy_selected_frame): Move object-construction code
4854 out of TRY_CATCH.
4855
aa36459a
TT
48562013-05-20 Tom Tromey <tromey@redhat.com>
4857
4858 * python/py-arch.c (gdbpy_initialize_arch): Use
4859 gdb_pymodule_addobject.
4860 * python/py-block.c (gdbpy_initialize_blocks): Use
4861 gdb_pymodule_addobject.
4862 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4863 gdb_pymodule_addobject.
4864 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4865 gdb_pymodule_addobject.
4866 * python/py-event.c (gdbpy_initialize_event_generic): Use
4867 gdb_pymodule_addobject.
4868 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4869 gdb_pymodule_addobject.
4870 * python/py-evts.c (add_new_registry): Use
4871 gdb_pymodule_addobject.
4872 (gdbpy_initialize_py_events): Likewise.
4873 * python/py-finishbreakpoint.c
4874 (gdbpy_initialize_finishbreakpoints): Use
4875 gdb_pymodule_addobject.
4876 * python/py-frame.c (gdbpy_initialize_frames): Use
4877 gdb_pymodule_addobject.
4878 * python/py-function.c (gdbpy_initialize_functions): Use
4879 gdb_pymodule_addobject.
4880 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4881 gdb_pymodule_addobject.
4882 * python/py-infthread.c (gdbpy_initialize_thread): Use
4883 gdb_pymodule_addobject.
4884 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4885 gdb_pymodule_addobject.
4886 * python/py-param.c (gdbpy_initialize_parameters): Use
4887 gdb_pymodule_addobject.
4888 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4889 gdb_pymodule_addobject.
4890 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4891 gdb_pymodule_addobject.
4892 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4893 gdb_pymodule_addobject.
4894 * python/py-type.c (gdbpy_initialize_types): Use
4895 gdb_pymodule_addobject.
4896 * python/py-utils.c (gdb_pymodule_addobject): New function.
4897 * python/py-value.c (gdbpy_initialize_values): Use
4898 gdb_pymodule_addobject.
4899 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4900 * python/python.c (_initialize_python): Use
4901 gdb_pymodule_addobject.
4902
3d4a3c3e
TT
49032013-05-20 Tom Tromey <tromey@redhat.com>
4904
4905 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4906 * python/py-param.c (get_set_value, get_show_value): Use
4907 explicit decrefs.
4908 * python/python.c (start_type_printers, apply_type_printers):
4909 Use explicit decrefs.
4910
72ff8829
TT
49112013-05-20 Tom Tromey <tromey@redhat.com>
4912
4913 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4914 incref the module.
4915
02146ba5
TT
49162013-05-20 Tom Tromey <tromey@redhat.com>
4917
4918 * python/python.c (gdbpy_run_events): Decref the result
4919 of PyObject_CallObject.
4920
33ee792f
TT
49212013-05-20 Tom Tromey <tromey@redhat.com>
4922
4923 * python/py-symtab.c (set_sal): Use
4924 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4925 (symtab_and_line_to_sal_object): Update.
4926
fcb49fc8
TT
49272013-05-20 Tom Tromey <tromey@redhat.com>
4928
4929 * python/py-param.c (compute_enum_values): Decref 'item'.
4930
0646da15
TT
49312013-05-20 Tom Tromey <tromey@redhat.com>
4932
4933 * mi/mi-main.c: Include python-internal.h.
4934 (mi_cmd_list_features): Check gdb_python_initialized.
4935 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4936 (python_inferior_exit, python_new_objfile, add_thread_object)
4937 (delete_thread_object, py_free_inferior): Check
4938 gdb_python_initialized.
4939 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4940 gdb_python_initialized.
4941 * python/py-type.c (save_objfile_types): Check
4942 gdb_python_initialized.
4943 * python/python-internal.h (gdb_python_initialized): Declare.
4944 * python/python.c (ensure_python_env): Throw exception if
4945 Python not initialized.
4946 (before_prompt_hook, source_python_script_for_objfile)
4947 (start_type_printers, apply_type_printers,
4948 free_type_printers): Check gdb_python_initialized.
4949 * varobj.c (varobj_get_display_hint)
4950 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4951 (install_new_value_visualizer, varobj_set_visualizer)
4952 (value_get_print_value): Check gdb_python_initialized.
4953
999633ed
TT
49542013-05-20 Tom Tromey <tromey@redhat.com>
4955
4956 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4957 Check errors.
4958 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4959 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4960 Check errors.
4961 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4962 Check errors.
4963 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4964 Check errors.
4965 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4966 Check errors.
4967 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4968 init function to return 'int'.
4969 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4970 Return 'int'. Check errors.
4971 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4972 Check errors.
4973 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4974 Return 'int'. Check errors.
4975 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4976 Check errors.
4977 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4978 Check errors.
4979 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4980 Check errors.
4981 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4982 Check errors.
4983 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4984 Check errors.
4985 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4986 Check errors.
4987 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4988 Check errors.
4989 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4990 Check errors.
4991 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4992 Check errors.
4993 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4994 Check errors.
4995 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4996 Check errors.
4997 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4998 Check errors.
4999 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5000 Check errors.
5001 * python/python-internal.h (gdbpy_initialize_auto_load,
5002 gdbpy_initialize_values, gdbpy_initialize_frames,
5003 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5004 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5005 gdbpy_initialize_blocks, gdbpy_initialize_types,
5006 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5007 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5008 gdbpy_initialize_finishbreakpoints,
5009 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5010 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5011 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5012 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5013 gdbpy_initialize_signal_event,
5014 gdbpy_initialize_breakpoint_event,
5015 gdbpy_initialize_continue_event,
5016 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5017 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5018 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5019 * python/python.c (gdb_python_initialized): New global.
5020 (gdbpy_initialize_events): Return 'int'. Check errors.
5021 (_initialize_python): Check errors. Set
5022 gdb_python_initialized.
5023
18868860
TT
50242013-05-20 Tom Tromey <tromey@redhat.com>
5025
5026 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5027 Decref the reslut of PyObject_CallMethod.
5028
9f4ff0c2
TT
50292013-05-20 Tom Tromey <tromey@redhat.com>
5030
5031 * python/py-event.c (gdbpy_initialize_event_generic): Return
5032 early if PyType_Ready fails.
5033
0d3a2e8a
TT
50342013-05-20 Tom Tromey <tromey@redhat.com>
5035
5036 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5037 as 'default' in the switch.
5038
b86af38a
TT
50392013-05-20 Tom Tromey <tromey@redhat.com>
5040
5041 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5042 get_addr_from_python calls out of TRY_CATCH.
5043 (infpy_write_memory, infpy_search_memory): Likewise.
5044 * python/py-utils.c (get_addr_from_python): Return negative
5045 value on error. Use TRY_CATCH.
5046 * python/python-internal.h (get_addr_from_python): Use
5047 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5048
c127ec58
TT
50492013-05-20 Tom Tromey <tromey@redhat.com>
5050
5051 * python/py-event.c (evpy_emit_event): Decref the
5052 result of PyObject_CallFunctionObjArgs.
5053
ba327838
TT
50542013-05-20 Tom Tromey <tromey@redhat.com>
5055
5056 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5057 Correctly decref.
5058
d8191432
TT
50592013-05-20 Tom Tromey <tromey@redhat.com>
5060
5061 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5062
5d153bd1
TT
50632013-05-20 Tom Tromey <tromey@redhat.com>
5064
5065 * python/py-event.h (gdbpy_initialize_event_generic): Use
5066 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5067 * python/py-evts.c (add_new_registry): Use
5068 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5069 * python/python-internal.h
5070 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5071
56cc411c
TT
50722013-05-20 Tom Tromey <tromey@redhat.com>
5073
5074 * python/py-arch.c (archpy_disassemble): Update.
5075 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5076 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5077 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5078 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5079 macro.
5080 (GDB_PY_HANDLE_EXCEPTION): Update.
5081 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5082
8919e174
TT
50832013-05-20 Tom Tromey <tromey@redhat.com>
5084
5085 * python/python-internal.h (events_object_type): Remove.
5086
9b08f225
TT
50872013-05-20 Tom Tromey <tromey@redhat.com>
5088
f5aee5ee
AM
5089 * python/py-event.h (evpy_emit_event): Use
5090 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5091 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5092 New macro.
9b08f225 5093
f04010ff
TT
50942013-05-20 Tom Tromey <tromey@redhat.com>
5095
5096 * py-evtregistry.c (create_event_object): Decref
5097 eventregistry_object if PyList_New fails.
5098
3919fd96
TT
50992013-05-20 Tom Tromey <tromey@redhat.com>
5100
5101 * py-cmd.c (gdbpy_string_to_argv): Check result of
5102 PyList_New.
5103
0430e8cb
TT
51042013-05-20 Tom Tromey <tromey@redhat.com>
5105
5106 * python/python.c (before_prompt_hook): Add cleanup to
5107 decref 'hook'.
5108
764123e4
TT
51092013-05-20 Tom Tromey <tromey@redhat.com>
5110
5111 * python/py-function.c (fnpy_init): Decref result of
5112 PyObject_GetAttrString.
5113
634c58be
TT
51142013-05-20 Tom Tromey <tromey@redhat.com>
5115
5116 * python/py-threadevent.c (get_event_thread): Use
5117 CPYCHECKER_RETURNS_BORROWED_REF.
5118 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5119 New define.
5120 (pspace_to_pspace_object, objfile_to_objfile_object)
5121 (find_thread_object): Use it.
5122
62eec1a5
TT
51232013-05-20 Tom Tromey <tromey@redhat.com>
5124
5125 * python/py-arch.c (arch_object_type): Use
5126 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5127 * python/py-block.c (block_syms_iterator_object_type):
5128 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5129 * python/py-bpevent.c (breakpoint_event_object_type):
5130 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5131 * python/py-cmd.c (cmdpy_object_type): Use
5132 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5133 * python/py-continueevent.c (continue_event_object_type):
5134 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5135 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5136 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5137 * python/py-events.h (thread_event_object_type):
5138 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5139 * python/py-evtregistry.c (eventregistry_object_type): Use
5140 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5141 * python/py-exitedevent.c (exited_event_object_type):
5142 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5143 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5144 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5145 * python/py-function.c (fnpy_object_type): Use
5146 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5147 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5148 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5149 * python/py-infthread.c (thread_object_type): Use
5150 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5151 * python/py-lazy-string.c (lazy_string_object_type):
5152 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5153 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5154 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5155 * python/py-objfile.c (objfile_object_type): Use
5156 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5157 * python/py-param.c (parmpy_object_type):
5158 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5159 * python/py-progspace.c (pspace_object_type):
5160 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5161 * python/py-signalevent.c (signal_event_object_type):
5162 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5163 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5164 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5165 * python/py-type.c (type_object_type, field_object_type)
5166 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5167 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5168 define.
5169 (value_object_type, block_object_type, symbol_object_type)
5170 (event_object_type, stop_event_object_type, breakpoint_object_type)
5171 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5172
81ea8796
AT
51732013-05-20 Andreas Tobler <andreas@fgznet.ch>
5174
5175 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5176 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5177
a2ce51a0
DE
51782013-05-20 Doug Evans <dje@google.com>
5179
5180 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5181 For Fission.
5182 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5183 reading_dwo_directly.
5184 (struct signatured_type): New member dwo_unit.
5185 (struct die_reader_specs): New member comp_dir.
5186 (create_signatured_type_table_from_index): Use malloc for
5187 all_type_units instead of objfile's obstack.
5188 (create_all_type_units): Ditto.
5189 (fill_in_sig_entry_from_dwo_entry): New function.
5190 (add_type_unit): New function.
5191 (lookup_dwo_signatured_type): New function.
5192 (lookup_dwp_signatured_type): New function.
5193 (lookup_signatured_type): New arg cu. All callers updated.
5194 (init_cu_die_reader): Initialize comp_dir.
5195 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5196 Change assert of matching type signatures to call error on mismatch.
5197 (lookup_dwo_unit): Add assert.
5198 (init_tu_and_read_dwo_dies): New function.
5199 (init_cutu_and_read_dies): Call it.
5200 (build_type_unit_groups): Handle case of no type unit groups created.
5201 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5202 (lookup_dwo_cutu): Tweak complaint.
5203 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5204 (dwarf2_per_objfile_free): Free all_type_units.
5205
a25cd31f
JB
52062013-05-20 Joel Brobecker <brobecker@adacore.com>
5207
5208 * windows-nat.c (handle_unload_dll): Add missing empty line.
5209
4d804846
JB
52102013-05-20 Joel Brobecker <brobecker@adacore.com>
5211
5212 * dwarf2read.c (prototyped_function_p): New function.
5213 (read_subroutine_type): Use it.
5214
1c432e72
JB
52152013-05-20 Joel Brobecker <brobecker@adacore.com>
5216
5217 * rs6000-aix-tdep.c: De-indent some example code provided
5218 as a comment.
5219
4feebbdd
EBM
52202013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5221
5222 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5223 region is ok for a hardware watchpoint using the new ptrace interface
5224 on Power servers.
5225
7d0c9981
DE
52262013-05-17 Doug Evans <dje@google.com>
5227
5228 * NEWS: Mention new maintenance commands check-symtabs, and
5229 expand-symtabs, and renamed check-psymtabs.
5230 * psymtab.c (maintenance_check_psymtabs): Renamed from
5231 maintenance_check_symtabs. Only process already-expanded symbol
5232 tables.
5233 (_initialize_psymtab): Update.
5234 * symmisc.c (maintenance_check_symtabs): New function.
5235 (maintenance_expand_name_matcher): New function
5236 (maintenance_expand_file_matcher): New function
5237 (maintenance_expand_symtabs): New function.
5238 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5239 commands.
5240
6cbc7c3d
TT
52412013-05-17 Tom Tromey <tromey@redhat.com>
5242
5243 * python/py-inferior.c (infpy_read_memory): Don't call
5244 PyErr_SetString if PyObject_New fails.
5245 * python/py-frame.c (frame_info_to_frame_object): Don't call
5246 PyErr_SetString if PyObject_New fails.
5247
a48b32c0
L
52482013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5249
5250 * acinclude.m4: Add check for dlopen in libdl.
5251 * configure.ac: Ditto.
5252 * configure: Regenerate.
5253
3de661e6
PM
52542013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5255
5256 * frame.c (frame_stash): Convert to htab.
5257 (frame_addr_hash): New function.
5258 (frame_addr_hash_eq): New function.
5259 (frame_stash_create): Convert function to create
5260 a hash table.
5261 (frame_stash_add): Convert function to add an entry to a hash
5262 table.
5263 (frame_stash_find): Convert function to search the hash table.
5264 (frame_stash_invalidate): Convert function to empty the hash
5265 table.
5266 (get_frame_id): Only add to stash if a frame_id is created.
5267 (_initialize_frame): Call frame_stash_create.
5268
bb4168a9 52692013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5270
5271 * configure.ac: Ensure MIG is available when building for GNU Hurd
5272 hosts.
5273 * configure: Regenerate.
5274
d1be3247
JB
52752013-05-16 Joel Brobecker <brobecker@adacore.com>
5276
5277 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5278
b8fea896
JB
52792013-05-16 Joel Brobecker <brobecker@adacore.com>
5280
5281 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5282 all cleanups are done before returning from this function.
5283
af880d85
JB
52842013-05-15 Joel Brobecker <brobecker@adacore.com>
5285
5286 * utils.h: #include "exceptions.h".
5287 (enum errors): Remove partial declaration.
5288
356a5233
JB
52892013-05-15 Joel Brobecker <brobecker@adacore.com>
5290
5291 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5292 * gdbarch.h, gdbarch.c: Regenerate.
5293 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5294 handling.
5295
5296 * rs6000-aix-tdep.h: New file.
5297 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5298 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5299 "xml-utils.h".
5300 (struct field_info, struct ld_info_desc): New types.
5301 (ld_info32_desc, ld_info64_desc): New static constants.
5302 (struct ld_info): New type.
5303 (rs6000_aix_extract_ld_info): New function.
5304 (rs6000_aix_shared_library_to_xml): Likewise.
5305 (rs6000_aix_ld_info_to_xml): Likewise.
5306 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5307 (rs6000_aix_init_osabi): Add call to
5308 set_gdbarch_core_xfer_shared_libraries_aix.
5309 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5310 Remove "xml-utils.h" include.
5311 (LdInfo): Delete typedef.
5312 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5313 Delete macros.
5314 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5315 Adjust code accordingly.
5316 (rs6000_core_ldinfo): Delete, folded into
5317 rs6000_aix_core_xfer_shared_libraries_aix.
5318 (rs6000_xfer_shared_library): Delete.
5319 (rs6000_xfer_shared_libraries): Reimplement.
5320
742ce053
MM
53212013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5322
5323 * record.c (record_goto_cmdlist): New.
5324 (cmd_record_goto): Split into this ...
5325 (cmd_record_goto_begin): ... this
5326 (cmd_record_goto_end): ... and this.
5327 (_initialize_record): Change "record goto" to prefix command.
5328 Add commands for "record goto begin" and "record goto end".
5329 Add an alias for "record goto start" to "record goto begin".
5330
e93ba630
JK
53312013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5332
5333 * linespec.c (convert_linespec_to_sals): New comment for
5334 SOURCE_FILENAME assignment.
5335
5821aace
JK
53362013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5337
5338 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5339 internal_warning.
5340
a1b8c4cc
TT
53412013-05-14 Tom Tromey <tromey@redhat.com>
5342
5343 * eval.c (parse_and_eval_long): Make 'exp' const.
5344 * value.h (parse_and_eval_long): Update.
5345
23b3a2c3
TT
53462013-05-14 Tom Tromey <tromey@redhat.com>
5347
5348 * ui-file.c (gdb_fopen): Make arguments const.
5349 * ui-file.h (gdb_fopen): Make arguments const.
5350
ca623f82
TT
53512013-05-14 Tom Tromey <tromey@redhat.com>
5352
5353 * remote.c (remote_set_trace_notes): Make arguments const.
5354 * target.c (update_current_target): Update cast.
5355 * target.h (to_set_trace_notes): Make arguments const.
5356
503ebb2c
TT
53572013-05-14 Tom Tromey <tromey@redhat.com>
5358
5359 * go32-nat.c (go32_terminal_info): Make 'args' const.
5360 * inferior.h (child_terminal_info): Update.
5361 * inflow.c (child_terminal_info): Make 'args' const.
5362 * target.c (default_terminal_info): Make 'args' const.
5363 (debug_to_terminal_save_ours): Likewise.
5364 * target.h (struct target_ops) <to_terminal_info>: Make argument
5365 const.
5366
85e1311a
TT
53672013-05-13 Tom Tromey <tromey@redhat.com>
5368
5369 * gcore.c (create_gcore_bfd): Make 'filename' const.
5370 * gcore.h (create_gcore_bfd): Make 'filename' const.
5371 * record-full.c (record_full_save): Make 'recfilename' const.
5372 * target.c (target_save_record): Make 'filename' const.
5373 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5374 const.
5375 (target_save_record): Likewise.
5376
d62bfeaf
TT
53772013-05-13 Tom Tromey <tromey@redhat.com>
5378
f5aee5ee 5379 PR gdb/15338:
d62bfeaf
TT
5380 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5381 ranges section has been read.
5382
ac1ca910
TT
53832013-05-13 Tom Tromey <tromey@redhat.com>
5384
5385 PR exp/15364:
5386 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5387 STRUCTOP_PTR>: Return a not_lval value for
5388 EVAL_AVOID_SIDE_EFFECTS.
5389 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5390 for EVAL_AVOID_SIDE_EFFECTS.
5391
36d1c68c
JB
53922013-05-13 Joel Brobecker <brobecker@adacore.com>
5393
5394 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5395 floating point registers to register type before storing
5396 value.
5397 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5398 Likewise.
5399
21ff4686
TT
54002013-05-10 Joel Brobecker <brobecker@adacore.com>
5401 Tom Tromey <tromey@redhat.com>
5402
5403 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5404 New functions.
5405 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5406 Declare.
5407 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5408 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5409 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5410 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5411
d3685d60
TT
54122013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5413 Tom Tromey <tromey@redhat.com>
5414
5415 PR build/15414:
5416 * configure: Rebuild.
5417 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5418 with -Wno-format.
5419
eb9fe518
PA
54202013-05-10 Pedro Alves <palves@redhat.com>
5421
5422 * remote.c (_initialize_remote): Fix spelling of
5423 qXfer:traceframe-info:read packet in packet config command.
5424
9779ab84
PA
54252013-05-10 David Taylor <dtaylor@emc.com>
5426
5427 PR remote/15455
5428
5429 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5430 "QTro" at start of packet.
5431
060cfbef
JB
54322013-05-10 Joel Brobecker <brobecker@adacore.com>
5433
5434 * solib-aix.c (solib_aix_relocate_section_addresses):
5435 For the .bss section action, apply the same offset as
5436 the .data section.
5437
ab1c4e88
JB
54382013-05-10 Joel Brobecker <brobecker@adacore.com>
5439
5440 * solib-aix.c (solib_aix_relocate_section_addresses):
5441 Remove FIXME comment.
5442
c1357578
JB
54432013-05-10 Joel Brobecker <brobecker@adacore.com>
5444
5445 PR tdep/15420:
5446 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5447 New functions, directly copied from sparc-sol-thread.c.
5448 * sparc-sol-thread.c: Delete.
5449 * configure.ac: Remove code handling sparc-solaris-thread.c.
5450 * configure: Regenerate.
5451
1e611234
PM
54522013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5453
5454 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5455 filter logic.
5456 (backtrace_command): Add "no-filters" option parsing.
5457 (_initialize_stack): Alter help to reflect "no-filters" option.
5458 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5459 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5460 (py-frame.o): Add target
5461 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5462 filter files.
5463 * python/python.h: Add new frame filter constants, and flag enum.
5464 (apply_frame_filter): Add definition.
5465 * python/python.c (apply_frame_filter): New non-Python
5466 enabled function.
5467 * python/py-utils.c (py_xdecref): New function.
5468 (make_cleanup_py_xdecref): Ditto.
5469 * python/py-objfile.c: Declare frame_filters dictionary.
5470 (objfpy_dealloc): Add frame_filters dealloc.
5471 (objfpy_new): Initialize frame_filters attribute.
5472 (objfile_to_objfile_object): Ditto.
5473 (objfpy_get_frame_filters): New function.
5474 (objfpy_set_frame_filters): New function.
5475 * python/py-progspace.c: Declare frame_filters dictionary.
5476 (pspy_dealloc): Add frame_filters dealloc.
5477 (pspy_new): Initialize frame_filters attribute.
5478 (pspacee_to_pspace_object): Ditto.
5479 (pspy_get_frame_filters): New function.
5480 (pspy_set_frame_filters): New function.
5481 * python/py-framefilter.c: New file.
5482 * python/lib/gdb/command/frame_filters.py: New file.
5483 * python/lib/gdb/frames.py: New file.
5484 * python/lib/gdb/__init__.py: Initialize global frame_filters
5485 dictionary
5486 * python/lib/gdb/FrameDecorator.py: New file.
5487 * python/lib/gdb/FrameIterator.py: New file.
5488 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5489 * mi/mi-cmds.h: Declare.
5490 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5491 --no-frame-filter logic, and Python frame filter logic.
5492 (stack_enable_frame_filters): New function.
5493 (parse_no_frame_option): Ditto.
5494 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5495 filter logic.
5496 (mi_cmd_stack_list_locals): Ditto.
5497 (mi_cmd_stack_list_args): Ditto.
5498 (mi_cmd_stack_list_variables): Ditto.
5499 * NEWS: Add frame filter note.
5500
2cb9c859
DE
55012013-05-09 Doug Evans <dje@google.com>
5502
6bf667bb
DE
5503 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5504 All callers updated.
5505 (syms_from_objfile): Ditto. Make static.
5506 (symbol_file_add_with_addrs): Renamed from
5507 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5508 num_offsets. All callers updated.
5509 * symfile.h (syms_from_objfile): Delete.
5510
2cb9c859
DE
5511 * symfile.c (decrement_reading_symtab): Add assert.
5512 (increment_reading_symtab): Ditto.
5513
40aea477
JB
55142013-05-09 Joel Brobecker <brobecker@adacore.com>
5515
5516 * source.c (forward_search_command): Replace call to getc
5517 by call to fgetc.
5518 (reverse_search_command): Likewise.
5519
680d1742
DE
55202013-05-08 Doug Evans <dje@google.com>
5521
5522 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5523 matching test.
5524
17e760ae
JB
55252013-05-08 Joel Brobecker <brobecker@adacore.com>
5526
5527 * sol-thread.c (info_cb): Factorize the code a little.
5528
c0f5f490
JB
55292013-05-08 Joel Brobecker <brobecker@adacore.com>
5530
5531 * sol-thread.c (info_cb): Rework the output of the "maintenance
5532 info sol-threads" command a bit.
5533
5d74e061
JB
55342013-05-08 Joel Brobecker <brobecker@adacore.com>
5535
5536 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5537 Replace ti.ti_startfunc by ti.ti_pc.
5538
814a3ff7
JB
55392013-05-08 Joel Brobecker <brobecker@adacore.com>
5540
5541 * solib-aix.c (solib_aix_free_library_list): New function
5542 for the case where HAVE_LIBEXPAT is not defined.
5543
58ce7251
SDJ
55442013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5545
5546 PR breakpoints/15413:
5547 * breakpoint.c (condition_completer): Simplify the code to
5548 disconsider multiple locations of breakpoints when completing the
5549 "condition" command.
5550
be8b1ea6
PM
55512013-05-07 Pierre Muller <muller@sourceware.org>
5552
5553 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5554 instead of <sys/wait.h>.
5555
1e52bda6
PM
55562013-05-07 Pierre Muller <muller@sourceware.org>
5557
5558 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5559 trailing new line from warning message.
5560
27fd0c6b
PM
55612013-05-07 Pierre Muller <muller@sourceware.org>
5562
5563 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5564 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5565
e228ac87
JB
55662013-05-07 Joel Brobecker <brobecker@adacore.com>
5567
5568 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5569 error message (ARI fix).
5570
55712013-05-07 Joel Brobecker <brobecker@adacore.com>
5572
5573 * features/library-list-aix.dtd: Replace library-list by
5574 library-list-aix.
5575 * rs6000-nat.c: Replace library-list by library-list-aix
5576 throughout.
5577 * solib-aix.c: Likewise.
5578
55792013-05-07 Joel Brobecker <brobecker@adacore.com>
5580
5581 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5582 Renames TARGET_OBJECT_AIX_LIBRARIES.
5583 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5584 TARGET_OBJECT_LIBRARIES_AIX throughout.
5585 * solib-aix.c: Likwise.
5586
26a4dda9
YQ
55872013-05-07 Yao Qi <yao@codesourcery.com>
5588
5589 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5590 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5591
3582629f
YQ
55922013-05-07 Yao Qi <yao@codesourcery.com>
5593
5594 * solib-dsbt.c (enable_break): Declare.
5595 (dsbt_current_sos): Remove call to enable_break2.
5596 (enable_break2): Rename to enable_break. Set solib breakpoint
5597 on '_dl_debug_state'.
5598 (enable_break): Remove.
5599
aacbb8a5
LM
56002013-05-07 Luis Machado <lgustavo@codesourcery.com>
5601
5602 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5603 debug state prior to replicating existing hardware watchpoints or
5604 breakpoints.
5605
0c013353
JK
56062013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5607
5608 * gcore.c (gcore_create_callback): Ignore sections with
5609 separate_debug_objfile_backlink != NULL.
5610
a1217d97
SL
56112013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5612 Andrew Jenner <andrew@codesourcery.com>
5613 Chung-Lin Tang <cltang@codesourcery.com>
5614 Julian Brown <julian@codesourcery.com>
5615
5616 Based on the nios2-elf port from Altera Corporation.
5617
5618 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5619 nios2-linux-tdep.o.
5620 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5621 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5622 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5623 * nios2-tdep.h: New.
5624 * nios2-tdep.c: New.
5625 * nios2-linux-tdep.c: New.
5626 * features/Makefile (WHICH): Add nios2-linux.
5627 (nios2-linux-expedite): Set.
5628 * features/nios2-cpu.xml: New.
5629 * features/nios2.xml: New.
5630 * features/nios2-linux.xml: New.
5631 * features/nios2.c: New (autogenerated).
5632 * features/nios2-linux.c: New (autogenerated).
5633 * regformats/nios2-linux.dat: New (autogenerated).
5634 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5635 and commands.
5636
0892cb63
DE
56372013-05-06 Doug Evans <dje@google.com>
5638
3b7bacac
DE
5639 * symfile.c: Whitespace cleanup.
5640
0892cb63
DE
5641 * solist.h (struct target_so_ops): New member clear_so.
5642 * solib-svr4.c (svr4_clear_so): New function.
5643 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5644 * solib.c (clear_so): Renamed from free_so_symbols.
5645 All callers updated. Call target clear_so if it exists.
5646
40501e00
TT
56472013-05-06 Tom Tromey <tromey@redhat.com>
5648
5649 * ada-lang.c (ada_value_primitive_packed_val): Don't
5650 call value_incref.
5651 * value.c (set_value_parent): Incref the new parent and decref
5652 the old parent.
5653 (value_copy, value_primitive_field): Use set_value_parent.
5654
b6807d98
TT
56552013-05-06 Tom Tromey <tromey@redhat.com>
5656
5657 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5658 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5659 if needed.
5660 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5661 * dwarf2read.c (write_constant_as_bytes)
5662 (dwarf2_fetch_constant_bytes): New functions.
5663
3aef2284
TT
56642013-05-06 Tom Tromey <tromey@redhat.com>
5665
5666 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5667 parameters.
5668 (dwarf2_const_value_attr): Update.
5669
66f65e2b
TT
56702013-05-06 Tom Tromey <tromey@redhat.com>
5671
5672 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5673 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5674 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5675 Remove declaration.
5676
7919a973
TT
56772013-05-06 Tom Tromey <tromey@redhat.com>
5678
5679 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5680 objfile's obstack.
5681
a7bfba49
DE
56822013-05-06 Doug Evans <dje@google.com>
5683
3189cb12
DE
5684 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5685 * stabsread.h (process_one_symbol): Update declaration.
5686 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5687 * elfread.c (elf_symfile_relocate_probe): Ditto.
5688 * psymtab.c (relocate_psymtabs): Ditto.
5689 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5690 (objfile_relocate): Ditto.
5691 * objfiles.h (objfile_relocate): Update declaration.
5692 * symfile.c (relative_addr_info_to_section_offsets): Constify
5693 addrs parameter.
5694 (default_symfile_offsets): Ditto.
5695 (syms_from_objfile_1): Constify offsets parameter.
5696 (syms_from_objfile): Ditto.
5697 (symbol_file_add_with_addrs_or_offsets): Ditto.
5698 (symfile_map_offsets_to_segments): Constify data parameter.
5699 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5700 delta parameters of member relocate.
5701 (struct sym_probe_fns): Constify new_offsets,
5702 delta parameters of member sym_relocate_probe.
5703 (struct sym_fns): Constify section_addr_info parameter of member
5704 sym_offsets.
5705 (relative_addr_info_to_section_offsets): Update declaration.
5706 (default_symfile_offsets): Ditto.
5707 (syms_from_objfile): Ditto.
5708 (symfile_map_offsets_to_segments): Ditto.
5709
a7bfba49
DE
5710 * symfile.c (syms_from_objfile_1): Use correct section count when
5711 objfile->sf == NULL.
5712
5f8e0b8f
MF
57132013-05-06 Mike Frysinger <vapier@gentoo.org>
5714
5715 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5716
ea52d893
DE
57172013-05-06 Doug Evans <dje@google.com>
5718
5719 * psympriv.h (struct partial_symtab): Augment comment for member
5720 section_offsets.
5721
4d1eb6b4
JB
57222013-05-06 Joel Brobecker <brobecker@adacore.com>
5723
5724 Reimplement shared library support on ppc-aix...
5725 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5726 * features/library-list-aix.dtd: New file.
5727 * solib-aix.h, solib-aix.c: New file.
5728 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5729 (rs6000_find_toc_address_hook): Delete.
5730 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5731 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5732 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5733 "xml-utils.h".
5734 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5735 (vmap_symtab, fixup_breakpoints): Delete.
5736 (rs6000_xfer_shared_libraries): New function.
5737 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5738 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5739 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5740 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5741 (rs6000_xfer_shared_library): New function.
5742 (find_toc_address): Delete.
5743 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5744 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5745 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5746 before creating minimal symbol. Adjust function description
5747 accordingly.
5748 (scan_xcoff_symtab): Replace call to
5749 prim_record_minimal_symbol_and_info by call to
5750 record_minimal_symbol.
5751 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5752 around default_symfile_offsets.
5753 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5754 powerpc-aix targets.
5755 * config/rs6000/nm-rs6000.h: Delete.
5756 * config/powerpc/aix.mh (NAT_FILE): Delete.
5757 (NATDEPFILES): Remove xcoffsolib.o.
5758 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5759 (ALL_TARGET_OBS): Add solib-aix.o.
5760 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5761 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5762 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5763 * xcoffsolib.h, xcoffsolib.c: Delete.
5764
5765 * solib.c (reload_shared_libraries): Remove reference to
5766 SOLIB_CREATE_INFERIOR_HOOK.
5767 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5768 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5769 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5770 comment.
5771 * corelow.c (deprecated_core_resize_section_table): Delete.
5772 * exec.c: Remove include of xcoffsolib.h".
5773 (map_vmap, vmap): Delete.
5774 (exec_close_1): Remove references to vmap.
5775 (exec_file_attach): Remove vmap handling code, and reference
5776 to DEPRECATED_IBM6000_TARGET.
5777 (bfdsec_to_vmap): Delete.
5778 (exec_files_info): Remove block of code handling VMAP.
5779 * infcmd.c (post_create_inferior): Remove reference to
5780 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5781 * infrun.c (follow_exec): Remove reference to
5782 SOLIB_CREATE_INFERIOR_HOOK.
5783 * stack.c (print_frame): Remove reference to PC_SOLIB.
5784 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5785 (dsbt_relocate_main_executable): Likewise.
5786 * solib-frv.c (frv_current_sos): Likewise.
5787
0c4f667c
JB
57882013-05-06 Joel Brobecker <brobecker@adacore.com>
5789
5790 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5791 to target_write_memory and target_read_memory.
5792
726ce67c
JB
57932013-05-06 Joel Brobecker <brobecker@adacore.com>
5794
5795 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5796 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5797
c8c9911f
JB
57982013-05-06 Joel Brobecker <brobecker@adacore.com>
5799
5800 * darwin-nat.c: Replace all "%x" instances in format strings
5801 into "0x%x" throughout.
5802
fda184b6
JB
58032013-05-06 Joel Brobecker <brobecker@adacore.com>
5804
5805 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5806 gdb_assert by call to MACH_CHECK_ERROR.
5807 (darwin_attach_pid): Raise an error rather than a failed
5808 assertion when various system calls failed. Report a warning
5809 instead of raising a failed assertion when PREV_NOT is not NULL
5810 after call to mach_port_request_notification.
5811 (darwin_ptrace_me): Raise an error rather than a failed
5812 assertion when read returns nonzero.
5813
d1d69afb
JB
58142013-05-06 Joel Brobecker <brobecker@adacore.com>
5815
5816 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5817
dc90b24d
JK
58182013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5819
5820 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5821
faab9922
JK
58222013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5823
5824 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5825 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5826 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5827 a stale cleanup. Fix double free of NAME.
5828
e0ea48a0
EZ
58292013-05-04 Eli Zaretskii <eliz@gnu.org>
5830
5831 * windows-nat.c (windows_delete_thread): Accept an additional
5832 argument, the thread's exit code, and announce thread death when
5833 print_thread_events is non-zero and we are deleting a thread that
5834 is not the main thread.
5835 (get_windows_debug_event): Pass thread exit code to
5836 windows_delete_thread.
5837
83b2706a
KB
58382013-05-03 Kevin Buettner <kevinb@redhat.com>
5839
5840 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5841 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5842 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5843 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5844 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5845 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5846 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5847 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5848 (gdbarch_tdep): New struct.
5849 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5850 E_NUM_REGS.
5851 (v850e3v5_register_name): New function.
5852 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5853 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5854 code handling the struct return conventions for the RH850 ABI.
5855 Update all callers.
5856 (v850_eight_byte_align_p): New function.
5857 (v850_push_call_dummy): Push structs by value, not by reference
5858 for the RH850 ABI. Add support for eight byte alignment.
5859 (v850_dbtrap_breakpoint_from_pc): New function.
5860 (v850_gdbarch_init): Add ABI detection code. Register
5861 v850e3v5_register_name for the v850e3v5 architecture. Set the
5862 number of registers for v850e3v5. Register
5863 v850_dbtrap_breakpoint_from_pc as appropriate.
5864 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5865
d445b2f6
DE
58662013-05-03 Doug Evans <dje@google.com>
5867
5868 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5869 of bfd_count_sections.
5870 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5871 * symfile.c (default_symfile_offsets): Ditto.
5872 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5873 one entry, not bfd_count_sections entries.
5874
b3ce41ea
KB
58752013-05-03 Kevin Buettner <kevinb@redhat.com>
5876
5877 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5878 `save' and `restore' register groups. Don't include SPL
5879 or SPH in these groups.
5880 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5881 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5882 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5883 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5884 dwarf2_append_unwinders().
5885
96f7d3f1
PW
58862013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5887
5888 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5889 ignore SIGINT and SIGTRAP in case these internal signals are
5890 caught explicitely.
5891
b9dd1947
JB
58922013-05-01 Joel Brobecker <brobecker@adacore.com>
5893
5894 * darwin-nat.c (darwin_read_write_inferior): Change types
5895 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5896 of copy_count to "mach_msg_type_number_t".
5897 (darwin_read_dyld_info): Change type of parameter
5898 rdaddr to "gdb_byte *".
5899
4ca18a63
JB
59002013-05-01 Joel Brobecker <brobecker@adacore.com>
5901
5902 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5903 of &info->load_map from "char *" to "gdb_byte *".
5904
2b692d32
JB
59052013-05-01 Joel Brobecker <brobecker@adacore.com>
5906
5907 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5908 from "char *" to "gdb_byte *".
5909 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5910
a98c29a0
DE
59112013-04-30 Doug Evans <dje@google.com>
5912
6a506a2d
DE
5913 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5914 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5915 DWO stub. If DWO isn't found, just use stub.
5916 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5917
a98c29a0
DE
5918 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5919 calling init_cutu_and_read_dies.
5920
f92b06da
WT
59212013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5922
5923 * target-descriptions.c (maint_print_c_tdesc_cmd):
5924 Add case to parse structures as register types and
5925 bitfields.
5926
95eebdcc
WT
59272013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5928
5929 * MAINTAINERS (Write After Approval): Add myself to the list.
5930
019c1128
JB
59312013-04-30 Joel Brobecker <brobecker@adacore.com>
5932
5933 * sol-thread.c (rw_common): Change type of parameter "buf"
5934 to "gdb_byte *".
5935 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5936 rw_common to "gdb_byte *" instead of "char *".
5937
5812197c
JB
59382013-04-30 Joel Brobecker <brobecker@adacore.com>
5939
5940 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5941 of local variable msym to const struct bound_minimal_symbol.
5942 Adjust use accordingly.
5943 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5944
ecccb813
TS
59452013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5946
5947 * i386gnu-nat.c (CREG_OFFSET): New macro.
5948 (creg_offset): New array.
5949 (CREG_ADDR): Use creg_offset instead of reg_offset.
5950
f1d02dd4 59512013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
5952
5953 * mep-tdep.c (mep_write_pc): Delete.
5954 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5955 Add call to set_gdbarch_pc_regnum.
5956
f1d02dd4 59572013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
5958
5959 * common/filestuff.c: Replace #include <dirent.h> by
5960 #include "gdb_dirent.h".
5961
f1d02dd4 59622013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
5963
5964 * common/filestuff.c: Replace #include <sys/stat.h> by
5965 #include "gdb_stat.h".
5966
b385a60d
PM
59672013-04-29 Pierre Muller <muller@sourceware.org>
5968
5969 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5970 editCase function rule.
5971 (get_DW_AT_signature_type): Likewise.
5972
d27b54ad
JB
59732013-04-29 Joel Brobecker <brobecker@adacore.com>
5974
5975 * m32r-tdep.c (m32r_write_pc): Delete.
5976 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5977 Add call to set_gdbarch_pc_regnum.
5978
47d21dc5
PM
59792013-04-29 Pierre Muller <muller@sourceware.org>
5980
5981 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5982
9056882e
JB
59832013-04-29 Joel Brobecker <brobecker@adacore.com>
5984
5985 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5986
7ee4732a
YQ
59872013-04-28 Yao Qi <yao@codesourcery.com>
5988
5989 * solib-dsbt.c (fetch_loadmap): Re-indent.
5990 (displacement_from_map, enable_break2): Likewise.
5991 (dsbt_relocate_section_addresses): Likewise.
5992
2260af53 59932013-04-26 Joel Brobecker <brobecker@adacore.com>
5994
5995 GDB 7.6 released.
5996
ff546935
TT
59972013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5998
5999 PR corefiles/14983:
6000 * dwarf2read.c (process_full_comp_unit): Always create a static
6001 block.
6002
40fb6c5e
HZ
60032013-04-25 Hui Zhu <hui@codesourcery.com>
6004
6005 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6006 to loc->cmd_bytecode.
6007
74e04d1c
DE
60082013-04-24 Doug Evans <dje@google.com>
6009
6010 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6011
3cf62c1d
KS
60122013-04-22 Keith Seitz <keiths@redhat.com>
6013
6014 * tracepoint.c (trace_save): Call the writer's start method.
6015
bf9e4d0c
MB
60162013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6017
6018 PR gdb/10462
6019 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6020 before argument.
6021
5d71132c
TT
60222013-04-23 Tom Tromey <tromey@redhat.com>
6023
6024 * common/filestuff.c: Check USE_WIN32API before including
6025 sys/socket.h.
6026 (HAVE_F_GETFD): New define.
6027 (mark_cloexec): Check HAVE_F_GETFD.
6028 (gdb_open_cloexec): Change 'mode' to unsigned long.
6029 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6030 (gdb_pipe_cloexec): Check HAVE_PIPE.
6031 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6032 long.
6033
a11cfd87
HZ
60342013-04-23 Hui Zhu <hui@codesourcery.com>
6035
6036 PR gdb/15293
a11cfd87
HZ
6037 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6038
2d9442cc
HZ
60392013-04-23 Hui Zhu <hui@codesourcery.com>
6040
6041 PR gdb/15165
2d9442cc
HZ
6042 * breakpoint.c (dprintf_print_recreate): New.
6043 (save_breakpoints): Let it not save dprintf commands.
6044 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6045
614c279d
TT
60462013-04-22 Tom Tromey <tromey@redhat.com>
6047
6048 PR gdb/7912:
6049 * Makefile.in (SFILES): Add filestuff.c
6050 (COMMON_OBS): Add filestuff.o.
6051 (filestuff.o): New target.
6052 * auto-load.c (auto_load_objfile_script_1): Use
6053 gdb_fopen_cloexec.
6054 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6055 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6056 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6057 * common/agent.c (gdb_connect_sync_socket): Use
6058 gdb_socket_cloexec.
6059 * common/filestuff.c: New file.
6060 * common/filestuff.h: New file.
6061 * common/linux-osdata.c (linux_common_core_of_thread)
6062 (command_from_pid, commandline_from_pid, print_source_lines)
6063 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6064 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6065 gdb_fopen_cloexec.
6066 * common/linux-procfs.c (linux_proc_get_int)
6067 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6068 * config.in, configure: Rebuild.
6069 * configure.ac: Don't check for sys/socket.h. Check for
6070 fdwalk, pipe2.
6071 * corelow.c (core_open): Use gdb_open_cloexec.
6072 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6073 * fork-child.c (fork_inferior): Call close_most_fds.
6074 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6075 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6076 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6077 Use gdb_fopen_cloexec.
6078 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6079 gdb_open_cloexec.
6080 (linux_async_pipe): Use gdb_pipe_cloexec.
6081 * remote-fileio.c (remote_fileio_func_open): Use
6082 gdb_open_cloexec.
6083 * remote.c (remote_file_put, remote_file_get): Use
6084 gdb_fopen_cloexec.
6085 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6086 close_most_fds.
6087 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6088 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6089 * solib.c (solib_find): Use gdb_open_cloexec.
6090 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6091 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6092 (tfile_open): Use gdb_open_cloexec.
6093 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6094 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6095 * xml-support.c (xml_fetch_content_from_file): Use
6096 gdb_fopen_cloexec.
6097 * main.c (captured_main): Call notice_open_fds.
6098
5fda2332
EBM
60992013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6100
6101 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6102 'char *' to 'gdb_byte *'.
6103 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6104 'gdb_byte'.
6105
eb6c553b
YQ
61062013-04-22 Yao Qi <yao@codesourcery.com>
6107
6108 * infrun.c: Fix typo in comment.
6109
9991b207
SDJ
61102013-04-22 Andrew Haley <aph@redhat.com>
6111
6112 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6113 instead of "long".
6114
8b4833e3
YQ
61152013-04-20 Yao Qi <yao@codesourcery.com>
6116
6117 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6118 'char *' to 'gdb_byte *'. Cast the return value of
6119 'bt_ctf_get_char_array' to 'gdb_byte *'.
6120
bd3f3b55
PA
61212013-04-19 Pedro Alves <palves@redhat.com>
6122
6123 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6124 -Wpointer-sign.
6125 * configure: Regenerate.
6126
c49e7f76
PA
61272013-04-19 Pedro Alves <palves@redhat.com>
6128
6129 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6130 'void *'.
6131
12ff8552
PA
61322013-04-19 Pedro Alves <palves@redhat.com>
6133
6134 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6135 Change type of 'myaddr' parameter to gdb_byte pointer.
6136 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6137 to 'long long' pointer instead of to 'unsigned long long'.
6138 (monitor_write_memory_block, monitor_read_memory_single)
6139 (monitor_read_memory): Change type of 'myaddr' parameter to
6140 gdb_byte pointer.
6141
9c37696b
PA
61422013-04-19 Pedro Alves <palves@redhat.com>
6143
6144 * record.c (validate_history_size): Make parameter 'setting'
6145 unsigned.
6146
a398505b
PA
61472013-04-19 Pedro Alves <palves@redhat.com>
6148
6149 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6150 to 'gdb_byte *'.
6151
9f8afa72
PA
61522013-04-19 Pedro Alves <palves@redhat.com>
6153
6154 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6155 local to int.
6156
c714b426
PA
61572013-04-19 Pedro Alves <palves@redhat.com>
6158
6159 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6160 * ada-tasks.c (read_fat_string_value): Likewise.
6161
507a579c
PA
61622013-04-19 Pedro Alves <palves@redhat.com>
6163
6164 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6165 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6166 'offset', and adjust.
6167
f9d83a0b
PA
61682013-04-19 Pedro Alves <palves@redhat.com>
6169
6170 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6171 (read_index_from_section): Add cast to 'char *'.
6172
745eb4fd
PA
61732013-04-19 Pedro Alves <palves@redhat.com>
6174
6175 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6176
db5be46f
PA
61772013-04-19 Pedro Alves <palves@redhat.com>
6178
6179 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6180
0f928d68
PA
61812013-04-19 Pedro Alves <palves@redhat.com>
6182
6183 * record-full.c (record_full_get_bookmark): Change local 'ret'
6184 type to char * and add cast to gdb_byte *.
6185 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6186 string.
6187 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6188
89f6d837
PA
61892013-04-19 Pedro Alves <palves@redhat.com>
6190
6191 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6192 * python/py-prettyprint.c (print_string_repr): Change type of
6193 'output' local to char *. Add cast to gdb_byte * in
6194 LA_PRINT_STRING call.
6195 (print_children): Change type of 'output' local to char *.
6196 * python/py-value.c (valpy_string): Add cast to const char * in
6197 PyUnicode_Decode call.
6198
ce6ec7d8
PA
61992013-04-19 Pedro Alves <palves@redhat.com>
6200
6201 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6202 and change its type to 'const char *'. Adjust.
6203 (mips_send_packet): Add cast to 'char *', and remove cast to
6204 'unsigned char *'.
6205 (mips_receive_packet): Remove cast to 'unsigned char *'.
6206 (mips_load_srec): Use bfd_byte.
6207 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6208 (pmon_checkset): Make 'value' parameter unsigned.
6209
fda0389f
PA
62102013-04-19 Pedro Alves <palves@redhat.com>
6211
6212 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6213
bc20a4af
PA
62142013-04-19 Pedro Alves <palves@redhat.com>
6215
6216 * remote.c (remote_write_bytes_aux, compare_sections_command)
6217 (remote_read_qxfer)
6218 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6219 (remote_hostio_readlink, remote_bfd_iovec_pread)
6220 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6221 binary buffer, and char when buffer is used as string.
6222 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6223 (trace_save, tfile_open, traceframe_walk_blocks)
6224 (tfile_fetch_registers): Likewise.
6225
c628b528
PA
62262013-04-19 Pedro Alves <palves@redhat.com>
6227
6228 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6229 buffer and size_t size. Adjust.
6230 * ser-base.h (ser_base_write): Adjust.
6231 * ser-go32.c (cnts): Change type to size_t.
6232 (dos_write): Change prototype -- take 'void *'
6233 buffer and size_t size. Adjust.
6234 (dos_info): Print elements of 'cnts' as unsigned long.
6235 * serial.c (serial_write): Likewise.
6236 * serial.h (serial_write): Adjust.
6237 (struct serial_ops) <write>: Change prototype -- take 'void *'
6238 buffer and size_t size. Adjust.
6239
51a5cd90
PA
62402013-04-19 Pedro Alves <palves@redhat.com>
6241
6242 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6243 gdb_byte *.
6244 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6245
a9933661
PA
62462013-04-19 Pedro Alves <palves@redhat.com>
6247
6248 * alpha-tdep.c (alpha_extract_return_value): Use
6249 regcache_cooked_read_unsigned to read 'v0'.
6250
19afdd07
PA
62512013-04-19 Pedro Alves <palves@redhat.com>
6252
6253 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6254 parameters 'at', 'as' and 'offset' to uint32_t.
6255
96b32e50
PA
62562013-04-19 Pedro Alves <palves@redhat.com>
6257
6258 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6259 'is64' to signed 'int'.
6260
eb1bd1fb
PA
62612013-04-19 Pedro Alves <palves@redhat.com>
6262
6263 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6264 parameter to int *.
6265
463920bf
PA
62662013-04-19 Pedro Alves <palves@redhat.com>
6267
6268 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6269 'insnbuf' buffer type to unsigned int[].
6270
70242eb1
PA
62712013-04-19 Pedro Alves <palves@redhat.com>
6272
6273 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6274
9d1dd0e2
PA
62752013-04-19 Pedro Alves <palves@redhat.com>
6276
6277 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6278 unsigned long *.
6279
44096aee
PA
62802013-04-19 Pedro Alves <palves@redhat.com>
6281
6282 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6283 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6284 UINT_MAX.
6285 * mips-tdep.c (heuristic_fence_post): Change type to int.
6286 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6287
e4286e57
PA
62882013-04-19 Pedro Alves <palves@redhat.com>
6289
6290 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6291 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6292 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6293
001f13d8
PA
62942013-04-19 Pedro Alves <palves@redhat.com>
6295
6296 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6297 it to get a string view of the byte buffer.
6298 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6299 type to gdb_byte *. Adjust.
6300 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6301 Change local to char *.
6302 * solib-darwin.c (find_program_interpreter): Change return type to
6303 char *. Adjust.
6304 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6305 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6306 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6307 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6308 * solib-svr4.c (find_program_interpreter): Change return type to
6309 char *. Adjust.
6310 (enable_break): Change local 'interp_name' to char *.
6311 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6312 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6313 (spu_pseudo_register_write_spu): Use char for string buffer.
6314 Adjust.
6315 (info_spu_event_command, info_spu_signal_command): Add casts to
6316 'char *'.
6317
948f8e3d
PA
63182013-04-19 Pedro Alves <palves@redhat.com>
6319
6320 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6321 gdb_byte[].
6322 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6323 * ada-lang.c (ada_value_assign): Use gdb_byte.
6324 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6325 (alphanbsd_sigtramp_offset): Use gdb_byte.
6326 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6327 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6328 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6329 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6330 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6331 * arm-tdep.c (arm_stub_unwind_sniffer)
6332 (arm_displaced_init_closure): Use gdb_byte.
6333 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6334 (arm_default_thumb_le_breakpoint)
6335 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6336 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6337 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6338 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6339 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6340 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6341 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6342 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6343 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6344 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6345 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6346 (cris_store_return_value, cris_extract_return_value): Use
6347 gdb_byte.
6348 (constraint): Change type of parameter to char * from signed
6349 char*. Use gdb_byte.
6350 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6351 of local buffer to gdb_byte *.
6352 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6353 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6354 (add_address_entry): Change type of local buffer to gdb_byte[].
6355 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6356 (frv_push_dummy_call): Use gdb_byte.
6357 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6358 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6359 (hppa_hpux_supply_save_state): Use gdb_byte.
6360 * hppa-tdep.c (hppa32_push_dummy_call)
6361 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6362 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6363 (slotN_contents, replace_slotN_contents): Change type of parameter
6364 to gdb_byte *.
6365 (fetch_instruction, ia64_pseudo_register_write)
6366 (ia64_register_to_value, ia64_value_to_register)
6367 (ia64_extract_return_value, ia64_store_return_value)
6368 (ia64_push_dummy_call): Use gdb_byte.
6369 * m32c-tdep.c (m32c_return_value): Remove cast.
6370 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6371 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6372 gdb_byte.
6373 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6374 * mn10300-tdep.c (mn10300_store_return_value)
6375 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6376 gdb_byte.
6377 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6378 (moxie_process_record): Remove casts.
6379 * ppc-ravenscar-thread.c (supply_register_at_address)
6380 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6381 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6382 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6383 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6384 * remote.c (compare_sections_command): Use gdb_byte.
6385 * score-tdep.c (score7_free_memblock): Change type of parameter to
6386 gdb_byte *.
6387 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6388 gdb_byte *. Use gdb_byte.
6389 (sh_push_dummy_call_fpu): Use gdb_byte.
6390 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6391 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6392 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6393 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6394 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6395 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6396 (sh64_store_return_value, sh64_register_convert_to_virtual):
6397 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6398 (sh64_pseudo_register_write): Use gdb_byte.
6399 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6400 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6401 buffer.
6402 (irix_current_sos): Use gdb_byte.
6403 * solib-som.c (som_current_sos): Use gdb_byte.
6404 * sparc-ravenscar-thread.c (supply_register_at_address)
6405 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6406 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6407 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6408 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6409 'gdb_byte *'.
6410 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6411 'gdb_byte *'.
6412 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6413 * xstormy16-tdep.c (xstormy16_extract_return_value)
6414 (xstormy16_store_return_value): Change parameter type to
6415 'gdb_byte *'. Adjust.
6416 (xstormy16_push_dummy_call): Use gdb_byte.
6417 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6418 (call0_analyze_prologue, execute_code): Use gdb_byte.
6419
433730c9
PA
64202013-04-19 Vladimir Kargov <kargov@gmail.com>
6421 Pedro Alves <palves@redhat.com>
6422
6423 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6424 value contents.
6425
ac9ec31b
DE
64262013-04-17 Doug Evans <dje@google.com>
6427
6428 * dwarf2read.c (struct signatured_type): New member type.
6429 (struct attribute): Replace member signatured_type with signature.
6430 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6431 (read_call_site_scope): Call follow_die_ref instead of
6432 follow_die_ref_or_sig.
6433 (read_structure_type): Rewrite handling of signatured types.
6434 (read_enumeration_type): Ditto.
6435 (read_attribute_value): Update.
6436 (build_error_marker_type): New function.
6437 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6438 Don't call error for bad types, just build an error marker type.
6439 (dump_die_shallow): Update.
6440 (follow_die_sig_1): Renamed from follow_die_sig.
6441 Don't call error for bad types, instead return NULL.
6442 (follow_die_sig): New function.
6443 (get_signatured_type, get_DW_AT_signature_type): New functions.
6444
e546e8bb
YZ
64452013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6446
6447 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6448 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6449 function.
e546e8bb 6450
ab116149
YQ
64512013-04-17 Yao Qi <yao@codesourcery.com>
6452
6453 * top.c (print_gdb_configuration): Print configure-time
6454 parameter on using libbabeltrace or not.
6455
488a42b8
PA
64562013-04-16 Pedro Alves <palves@redhat.com>
6457
6458 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6459
f5fb825b
PA
64602013-04-16 Pedro Alves <palves@redhat.com>
6461
85d494ea 6462 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6463 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6464
e1154999
PA
64652013-04-16 Pedro Alves <palves@redhat.com>
6466
6467 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6468 * common/glibc_thread_db.h: ... this new file ...
6469 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6470
e3b50a7f
PA
64712013-04-16 Will Newton <will.newton@gmail.com>
6472 Pedro Alves <palves@redhat.com>
6473
6474 PR build/11881
6475
6476 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6477 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6478 HAVE_THREAD_DB_H.
6479
1c2e4450
PA
64802013-04-16 Pedro Alves <palves@redhat.com>
6481 Eli Zaretskii <eliz@gnu.org>
6482
6483 * NEWS: Mention "set foo unlimited".
6484
4031ecc5
DE
64852013-04-15 Doug Evans <dje@google.com>
6486
19c3d4c9
DE
6487 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6488 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6489 (create_dwo_cu_reader): Renamed from
6490 create_dwo_debug_info_hash_table_reader.
6491 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6492 Remove support for multiple CUs in a DWO file.
6493 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6494
4031ecc5
DE
6495 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6496 instead of phex.
6497 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6498 (create_dwo_in_dwp): Ditto.
6499
b340913d
TT
65002013-04-15 Tom Tromey <tromey@redhat.com>
6501
6502 * NEWS: Move recent entries into "since 7.6" section.
6503
cc16e6c9
TT
65042013-04-15 Tom Tromey <tromey@redhat.com>
6505
6506 PR c++/13588:
6507 * NEWS: Update.
6508 * break-catch-throw.c (struct exception_catchpoint)
6509 <exception_rx, pattern>: New fields.
6510 (fetch_probe_arguments, dtor_exception_catchpoint)
6511 (check_status_exception_catchpoint)
6512 (print_one_detail_exception_catchpoint): New functions.
6513 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6514 Compile regular expression if needed.
6515 (extract_exception_regexp): New function.
6516 (catch_exception_command_1): Use extract_exception_regexp.
6517 (compute_exception): Use fetch_probe_arguments.
6518 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6519 and check_status fields.
6520 * cp-abi.c (cplus_typename_from_type_info): New function.
6521 * cp-abi.h (cplus_typename_from_type_info): Declare.
6522 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6523 * gdb_regex.h (compile_rx_or_error): Declare.
6524 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6525 comment.
6526 (init_gnuv3_ops): Set get_type_from_type_info field.
6527 * probe.c (compile_rx_or_error): Move...
6528 * utils.c (compile_rx_or_error): ... here.
6529
72f1fe8a
TT
65302013-04-15 Tom Tromey <tromey@redhat.com>
6531
6532 PR c++/15176:
6533 * NEWS: Update.
6534 * break-catch-throw.c (compute_exception): New function.
6535 (exception_funcs): New global.
6536 (_initialize_break_catch_throw): Create $_exception.
6537 * cp-abi.c (cplus_type_from_type_info): New function.
6538 * cp-abi.h (cplus_type_from_type_info): Declare.
6539 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6540 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6541 (gnuv3_get_type_from_type_info): New functions.
6542 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6543
fc4746a2
TT
65442013-04-15 Tom Tromey <tromey@redhat.com>
6545
6546 * break-catch-throw.c (struct exception_names): New.
6547 (exception_functions): Change type.
6548 (re_set_exception_catchpoint): Look for SDT probes.
6549
15a73f56
TT
65502013-04-15 Tom Tromey <tromey@redhat.com>
6551
6552 PR c++/10119:
6553 * break-catch-throw.c (exception_functions): New global.
6554 (gnu_v3_exception_catchpoint_ops): Move earlier.
6555 (struct exception_catchpoint): New.
6556 (classify_exception_breakpoint): Rewrite.
6557 (re_set_exception_catchpoint): New function.
6558 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6559 Allocate a struct exception_catchpoint.
6560 (catch_exception_command_1): Update.
6561 (initialize_throw_catchpoint_ops): Set 're_set' method.
6562
916703c0
TT
65632013-04-15 Tom Tromey <tromey@redhat.com>
6564
6565 * Makefile.in (SFILES): Add break-catch-throw.c
6566 (COMMON_OBS): Add break-catch-throw.o.
6567 * break-catch-throw.c: New file.
6568 * breakpoint.c: Move exception-catching code to new file.
6569 (ep_parse_optional_if_clause): No longer static.
6570 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6571
6e72ca20
TT
65722013-04-15 Tom Tromey <tromey@redhat.com>
6573
6574 PR c++/9065:
6575 * NEWS: Update.
6576 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6577 * c-exp.y (TYPEID): New token.
6578 (exp): Add new TYPEID productions.
6579 (ident_tokens): Add "typeid".
6580 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6581 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6582 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6583 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6584 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6585 case.
6586 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6587 (build_std_type_info_type, gnuv3_get_typeid_type)
6588 (gnuv3_get_typeid): New functions.
6589 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6590 new fields on ABI object.
6591 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6592 * std-operator.def (OP_TYPEID): New.
6593
715c6909
TT
65942013-04-15 Tom Tromey <tromey@redhat.com>
6595
6596 * elfread.c (elf_symtab_read): Install versioned symbol under
6597 unversioned name as well.
6598
8de20a37
TT
65992013-04-15 Tom Tromey <tromey@redhat.com>
6600
6601 PR c++/11990:
6602 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6603 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6604 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6605 (gdb_demangle): New function.
6606 * cp-support.h (gdb_demangle): Declare.
6607 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6608 (dwarf2_name): Use gdb_demangle.
6609 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6610 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6611 suffixes from name.
6612 (gnuv3_print_method_ptr): Use gdb_demangle.
6613 * jv-lang.c (java_demangle): Use gdb_demangle.
6614 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6615 * language.c (unk_lang_demangle): Use gdb_demangle.
6616 * symtab.c (symbol_find_demangled_name)
6617 (demangle_for_lookup): Use gdb_demangle.
6618
591f19e8
TT
66192013-04-15 Tom Tromey <tromey@redhat.com>
6620
6621 PR c++/12824:
6622 * NEWS: Update.
6623 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6624 New constant.
6625 (classify_exception_breakpoint): New function.
6626 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6627 (print_mention_exception_catchpoint)
6628 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6629 (catch_exception_command_1): Handle "rethrow" catchpoint.
6630 (catch_rethrow_command): New function.
6631 (_initialize_breakpoint): Add "catch rethrow" command.
6632
4d40cad2
PM
66332013-04-15 Pierre Muller <muller@sourceware.org>
6634
6635 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6636 set_gdbarch_write_pc as deprecated anymore.
6637
30bcb456
JB
66382013-04-15 Joel Brobecker <brobecker@adacore.com>
6639
6640 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6641 declarations.
6642
da9160e4
YQ
66432013-04-13 Yao Qi <yao@codesourcery.com>
6644
6645 * ctf.c (_initialize_ctf): Include "completer.h".
6646 Call add_target_with_completer instead of add_target.
6647
39ed5604
JK
66482013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6649
6650 Fix GDB regression related to PR binutils/14813.
6651 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6652 * minidebug.c (lzma_close): Add return value comment.
6653 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6654 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6655 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6656
66572013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6658
6659 * config.in: Regenerate.
6660
d521ce57
TT
66612013-04-12 Tom Tromey <tromey@redhat.com>
6662
6663 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6664 const.
6665 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6666 (struct die_reader_specs) <buffer>: Likewise.
6667 (die_reader_func_ftype): Make 'info_ptr' const.
6668 (struct line_header) <include_dirs, statement_program_start,
6669 statement_program_end>: Now const.
6670 (struct file_entry) <name>: Likewise.
6671 (struct partial_die_info) <sibling>: Likewise.
6672 (struct dwarf_block) <data>: Likewise.
6673 (dwarf2_read_section): Remove cast.
6674 (dwarf2_get_section_info): Make 'bufp' const.
6675 (read_index_from_section): Constify.
6676 (dw2_get_file_names_reader): Make 'info_ptr' const.
6677 (dw2_get_primary_filename_reader): Likewise.
6678 (read_comp_unit_head): Make 'info_ptr' and return type const.
6679 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6680 Likewise.
6681 (read_abbrev_offset): Constify.
6682 (dwarf2_create_include_psymtab): Make 'name' const.
6683 (create_debug_types_hash_table): Update.
6684 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6685 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6686 Constify.
6687 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6688 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6689 (read_comp_units_from_section): Constify.
6690 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6691 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6692 const.
6693 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6694 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6695 (create_dwp_hash_table, dwarf2_ranges_read)
6696 (dwarf2_record_block_ranges): Constify.
6697 (read_die_and_children, read_die_and_siblings_1)
6698 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6699 const.
6700 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6701 (abbrev_table_read_table): Constify.
6702 (load_partial_dies): Make 'info_ptr' const.
6703 (read_partial_die, read_attribute_value, read_attribute): Make
6704 'info_ptr' and return type const.
6705 (read_address, read_initial_length)
6706 (read_checked_initial_length_and_offset, read_offset)
6707 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6708 const.
6709 (read_direct_string): Make 'buf' and return type const.
6710 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6711 (read_indirect_string): Make return type const.
6712 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6713 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6714 'info_ptr' const.
6715 (read_str_index): Make return type const.
6716 (add_include_dir): Make 'include_dir' const.
6717 (add_file_name): Make 'name' const.
6718 (dwarf_decode_line_header): Constify.
6719 (psymtab_include_file_name): Make return type const.
6720 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6721 (dwarf2_start_subfile): Make 'filename' const.
6722 (dwarf2_const_value_attr): Make 'bytes' const.
6723 (read_signatured_type_reader): Make 'info_ptr' const.
6724 (decode_locdesc): Constify.
6725 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6726 const.
6727 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6728 'mac_end', and return type const.
6729 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6730 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6731 type const.
6732 (per_cu_header_read_in): Constify.
6733 * symfile.h (dwarf2_get_section_info): Update.
6734
d47a1bc1
TT
67352013-04-12 Tom Tromey <tromey@redhat.com>
6736
6737 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6738
6eaaf48b
EZ
67392013-04-12 Eli Zaretskii <eliz@gnu.org>
6740
fc4c25bf 6741 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6742 * top.c (print_gdb_configuration): New function, displays the
6743 details about GDB configure-time parameters.
6744 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6745 * cli/cli-cmds.c (show_configuration): New function.
6746 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6747 * main.c (captured_main) <print_configuration>: New static var.
6748 <long_options>: Use it.
6749 If --configuration was given, call print_gdb_configuration.
6750
b292c783
JK
67512013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 Pedro Alves <palves@redhat.com>
6753
6754 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6755 (generated_files): Add gcore.
6756 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6757 HAVE_NATIVE_GCORE_HOST.
6758 (gcore): New.
6759 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6760 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6761 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6762 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6763 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6764 Add HAVE_NATIVE_GCORE_HOST.
6765 * configure: Regenerate.
6766 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6767 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6768 AC_CONFIG_FILES for gcore.
6769 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6770 gdb_have_gcore.
6771 * gdb_gcore.sh: Rename to ...
6772 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6773 and GCORE_TRANSFORM_NAME substitutions.
6774
c96b3c4f
JK
6775 Fix parsing tabs in ${gdb_target_obs}.
6776 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6777
d6cb50a2
JK
67782013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6779
6780 * remote.c (unpush_and_perror): Add output message final dot.
6781
cf2cb5ec
YQ
67822013-04-11 Yao Qi <yao@codesourcery.com>
6783
6784 * tracepoint.c (tfile_interp_line): Fit parameters line and
6785 utpp in one line.
6786
07293be4
JB
67872013-04-10 Joel Brobecker <brobecker@adacore.com>
6788
6789 * solib.c (solib_map_sections): Remove code overwriting
6790 SO->SO_NAME with the bfd's filename.
6791
f81d1120
PA
67922013-04-10 Pedro Alves <palves@redhat.com>
6793
6794 * cli/cli-decode.c (integer_unlimited_completer): New function.
6795 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6796 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6797 completer.
6798 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6799 (is_unlimited_literal): New function.
6800 (do_set_command): Handle literal "unlimited" arguments.
6801 * frame.c (_initialize_frame) <set backtrace limit>: Document
6802 "unlimited".
6803 * printcmd.c (_initialize_printcmd) <set print
6804 max-symbolic-offset>: Add help text.
6805 * record-full.c (_initialize_record_full) <set record full
6806 insn-number-max>: Likewise.
6807 * record.c (_initialize_record) <set record
6808 instruction-history-size, set record function-call-history-size>:
6809 Add help text.
6810 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6811 help text.
6812 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6813 Likewise.
6814 * source.c (_initialize_source) <set listsize>: Add help text.
6815 * utils.c (initialize_utils) <set height, set width>: Likewise.
6816 <set pagination>: Mention "set height unlimited".
6817 * valprint.c (_initialize_valprint) <set print elements, set print
6818 repeats>: Document "unlimited".
6819
2f9d54cf
PA
68202013-04-10 Pedro Alves <palves@redhat.com>
6821
6822 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6823 instead of disconnect_tracing.
6824 * infcmd.c (detach_command, disconnect_command): Call
6825 query_if_trace_running. Adjust.
6826 * top.c: Include "tracepoint.h".
6827 (quit_target): Delete. Contents moved ...
6828 (quit_force): ... here. Wrap each stage of teardown in
6829 TRY_CATCH. Call disconnect_tracing before detaching.
6830
393fd4c3
YQ
68312013-04-10 Hui Zhu <hui@codesourcery.com>
6832 Yao Qi <yao@codesourcery.com>
6833
6834 * configure.ac: Check libbabeltrace is installed.
6835 * config.in: Regenerate.
6836 * configure: Regenerate.
6837 * Makefile.in (LIBBABELTRACE): New.
6838 (CLIBS): Add LIBBABELTRACE.
6839 * ctf.c: Include "exec.h".
6840 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6841 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6842 (ctf_save_metadata_header): Define new type aliases in
6843 metadata.
6844 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6845 in metadata. Start a new faked packet for trace status.
6846 (ctf_write_status): Write trace status to CTF.
6847 (ctf_write_uploaded_tsv): Write TSV to CTF.
6848 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6849 (ctf_write_definition_end): End the faked packet.
6850
6851 (ctx, ctf_iter, trace_dirname): New.
6852 (start_pos): New variable.
6853 (ctf_destroy, ctf_open_dir, ctf_open): New.
6854 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6855 macros.
6856 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6857 (ctf_fetch_registers, ctf_xfer_partial): New.
6858 (ctf_get_trace_state_variable_value): New.
6859 (ctf_get_tpnum_from_frame_event): New.
6860 (ctf_get_traceframe_address): New.
6861 (ctf_trace_find, ctf_has_stack): New.
6862 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6863 (ctf_get_trace_status, ctf_read_status): New.
6864 (_initialize_ctf): New.
6865 * tracepoint.c (get_tracepoint_number): New
6866 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6867 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6868 * tracepoint.h: ... here.
6869 (get_tracepoint_number): Declare it.
6870 (get_uploaded_tsv): Declare it.
6871
6872 * NEWS: Mention new configure option.
6873
5c2b4418
HZ
68742013-04-10 Pedro Alves <palves@redhat.com>
6875 Hui Zhu <hui@codesourcery.com>
6876
6877 * breakpoint.c (dprintf_re_set): New.
6878 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6879 to dprintf_re_set.
6880
a5c66735
JB
68812013-04-09 Joel Brobecker <brobecker@adacore.com>
6882
6883 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6884 Remove solib-svr4.o from the list.
6885
9e77999c
JB
68862013-04-09 Joel Brobecker <brobecker@adacore.com>
6887
6888 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6889 Use gdb_assert_not_reached instead of invalid boolean expression.
6890
1927e618
PA
68912013-04-09 Pedro Alves <palves@redhat.com>
6892
6893 * remote.c (unpush_and_perror): New function.
6894 (readchar, remote_serial_write): Use it.
6895
10782d74
MM
68962013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6897
6898 * NEWS: Mention new btrace RSP packets.
6899
4c8429ef
TT
69002013-04-08 Tom Tromey <tromey@redhat.com>
6901
6902 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6903 long.
6904
8625fc1b
TT
69052013-04-08 Tom Tromey <tromey@redhat.com>
6906
6907 * maint.c (print_bfd_section_info): Print the section index.
6908 * symmisc.c (dump_msymbols): Print the section index.
6909
e27d198c
TT
69102013-04-08 Tom Tromey <tromey@redhat.com>
6911
6912 PR symtab/8424:
6913 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6914 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6915 * breakpoint.c (resolve_sal_pc): Update.
6916 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6917 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6918 (minsym_lookup_iterator_cb): Use it.
6919 (default_read_var_value): Update.
6920 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6921 Update.
6922 * infcmd.c (jump_command): Update.
6923 * linespec.c (minsym_found): Update.
6924 * maint.c (maintenance_translate_address): Update.
6925 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6926 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6927 * parse.c (write_exp_msymbol): Update.
6928 * printcmd.c (address_info): Update.
6929 * psymtab.c (find_pc_sect_psymbol): Update.
6930 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6931 SYMBOL_OBJ_SECTION.
6932 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6933 Don't initialize SYMBOL_OBJ_SECTION.
6934 * spu-tdep.c (spu_catch_start): Update.
6935 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6936 * symmisc.c (dump_msymbols, print_symbol): Update.
6937 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6938 how fallback section is computed.
6939 (fixup_symbol_section): Update.
6940 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6941 Update.
6942 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6943 Initialize SYMBOL_SECTION.
6944 * symtab.h (struct general_symbol_info) <section>: Update comment.
6945 <obj_section>: Remove.
6946 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6947 (SYMBOL_OBJFILE): New macro.
6948
e6dc44a8
TT
69492013-04-08 Tom Tromey <tromey@redhat.com>
6950
6951 * coffread.c (record_minimal_symbol): Update.
6952 * dbxread.c (record_minimal_symbol): Update.
6953 * elfread.c (record_minimal_symbol): Update.
6954 * machoread.c (macho_symtab_add_minsym): Update.
6955 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6956 Update.
6957 * minsyms.c (prim_record_minimal_symbol): Update.
6958 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6959 argument.
6960 (prim_record_minimal_symbol_and_info): Likewise.
6961 * minsyms.h (prim_record_minimal_symbol_full)
6962 (prim_record_minimal_symbol_and_info): Update.
6963 * symtab.c (allocate_symbol, initialize_symbol)
6964 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6965 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6966 Update.
6967
36192a8d
TT
69682013-04-08 Tom Tromey <tromey@redhat.com>
6969
6970 PR symtab/8423:
6971 * solib-som.c (som_solib_section_offsets): Use BFD section
6972 indices. Set offsets for all sections.
6973 * somread.c (som_symtab_read): Compute BFD section for
6974 symbol. Use prim_record_minimal_symbol_and_info.
6975 (som_symfile_read): Fix comment.
6976 (struct find_section_offset_arg): New.
6977 (find_section_offset, set_section_index): New functions.
6978 (som_symfile_offsets): Use set_section_index to compute
6979 section indices.
6980
65cf3563
TT
69812013-04-08 Tom Tromey <tromey@redhat.com>
6982
6983 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6984 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6985 gdb_bfd_section_index.
6986 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6987 New functions.
6988 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6989 Declare.
6990 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6991 Update.
6992 * objfiles.c (add_to_objfile_sections_full): New function.
6993 (add_to_objfile_sections): Use it.
6994 (build_section_table): Rewrite.
6995 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6996 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6997 (struct objfile) <sections>: Update comment.
6998 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6999 is NULL.
7000 (ALL_OBJSECTIONS): Use it.
7001 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7002 * solib-frv.c (frv_relocate_main_executable): Update.
7003 * solib-target.c (solib_target_relocate_section_addresses):
7004 Use gdb_bfd_section_index.
7005 * symfile.c (build_section_addr_info_from_section_table):
7006 Use gdb_bfd_section_index.
7007 (build_section_addr_info_from_bfd, place_section): Likewise.
7008 * symtab.c (fixup_section): Update.
7009 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7010
7cbd4a93
TT
70112013-04-08 Tom Tromey <tromey@redhat.com>
7012
7013 * minsyms.h (struct bound_minimal_symbol): New.
7014 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7015 Remove objfile argument.
7016 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7017 Return bound_minimal_symbol.
7018 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7019 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7020 Return bound_minimal_symbol.
7021 (in_gnu_ifunc_stub): Update.
7022 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7023 Remove 'objfile_p' argument.
7024 (lookup_solib_trampoline_symbol_by_pc): Update.
7025 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7026 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7027 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7028 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7029 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7030 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7031 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7032 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7033 stack.c, symtab.c, tui/tui-disasm.c: Update.
7034
f85f34ed
TT
70352013-04-08 Tom Tromey <tromey@redhat.com>
7036
7037 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7038 Use symbol's obstack, not an objfile.
7039 * coffread.c (process_coff_symbol): Update.
7040 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7041 * jv-lang.c (add_class_symbol): Update.
7042 * mdebugread.c (new_symbol): Update.
7043 * minsyms.c (prim_record_minimal_symbol_full)
7044 (terminate_minimal_symbol_table): Update.
7045 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7046 * stabsread.c (define_symbol, read_enum_type): Update.
7047 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7048 Handle Ada specially.
7049 (symbol_set_language): Add 'obstack' argument.
7050 (symbol_set_names): Update.
7051 (symbol_natural_name, symbol_demangled_name): Always use
7052 ada_decode_symbol.
7053 * symtab.h (struct general_symbol_info)
7054 <language_specific::obstack>: New field.
7055 <ada_mangled>: New field.
7056 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7057 (symbol_set_language): Update.
7058
ccde22c0
TT
70592013-04-08 Tom Tromey <tromey@redhat.com>
7060
7061 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7062 Take an obstack, not an objfile.
7063 (symbol_set_names): Update.
7064 * symtab.h (symbol_set_demangled_name): Update.
7065
e623cf5d
TT
70662013-04-08 Tom Tromey <tromey@redhat.com>
7067
7068 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7069 allocate_symbol.
7070 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7071 (read_func_scope): Call allocate_template_symbol.
7072 (new_symbol_full): Call allocate_symbol.
7073 * jit.c (finalize_symtab): Call allocate_symbol.
7074 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7075 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7076 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7077 (common_block_end): Call allocate_symbol.
7078 * symtab.c (allocate_symbol, initialize_symbol)
7079 (allocate_template_symbol): New functions.
7080 * symtab.c (allocate_symbol, initialize_symbol)
7081 (allocate_template_symbol): Declare.
7082 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7083
f6de8ec2
PA
70842013-04-08 Pedro Alves <palves@redhat.com>
7085 Keith Seitz <keiths@redhat.com>
7086
7087 * breakpoint.c (create_breakpoint): Rename
7088 "parse_condition_and_thread" parameter to "parse_arg". Update
7089 describing comment. If !PARSE_ARG, then error out if ARG is not
7090 the empty string after extracting the location.
7091 * breakpoint.h (create_breakpoint): Rename
7092 "parse_condition_and_thread" parameter to "parse_arg".
7093
f65ce5fb
AR
70942013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7095
7096 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7097
cc5925ad
YQ
70982013-04-07 Yao Qi <yao@codesourcery.com>
7099
7100 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7101 and 'addr2' to CORE_ADDR.
7102 * target.c (update_current_target): Update.
7103 * target.h (struct target_ops) <to_trace_find>: Change parameter
7104 type to CORE_ADDR.
7105 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7106 'addr2' to CORE_ADDR.
7107 (tfile_trace_find): Likewise.
7108 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7109 Change local variable 'addr' to type CORE_ADDR.
7110 * tracepoint.h (tfind_1): Update declaration.
7111
d9ac0664
EZ
71122013-04-06 Eli Zaretskii <eliz@gnu.org>
7113
7114 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7115 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7116 Include main.h.
7117
7118 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7119 here...
7120 * main.h (windows_get_absolute_argv0): ...to here.
7121
02142a6c
DE
71222013-04-05 Doug Evans <dje@google.com>
7123
7124 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7125 (read_cutu_die_from_dwo): Add comments.
7126 (read_structure_type): Update comment.
7127 (read_enumeration_type, read_namespace_type): Update comment.
7128 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7129
43662968
JK
71302013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7131
7132 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7133 * Makefile.in (gdb.z): Remove.
7134 (install-only): Remove $(man1dir) and gdb.1 installation.
7135 * gdb.1: Remove.
7136
9ead1b84
JK
71372013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7138
7139 Fix compatibility with Linux kernel 3.8.3.
7140 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7141 to more inner block. Remove parsing of NUMBER from outer block.
7142 Parse NUMBER only if KEYWORD has been identified.
7143
d1794952
JK
71442013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7145
7146 Fix variable name shadowing.
7147 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7148 filename to mapsfilename and update its uses.
7149
9025569e
EZ
71502013-04-05 Eli Zaretskii <eliz@gnu.org>
7151
7152 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7153 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7154 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7155 details of the problem.
7156
c9a6ce02
PA
71572013-04-04 Pedro Alves <palves@redhat.com>
7158 Hui Zhu <hui@codesourcery.com>
7159
7160 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7161 tracepoint, reset its STEP_COUNT and call validate_actionline.
7162
5ff888ce
DE
71632013-04-03 Doug Evans <dje@google.com>
7164
bf6af496
DE
7165 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7166 read_die_and_siblings.
7167 (read_die_and_siblings): New function.
7168 (read_cutu_die_from_dwo): Dump die if requested.
7169 (read_die_and_children): Call read_full_die_1 and
7170 read_die_and_siblings_1.
7171 (read_full_die): Dump die if requested.
7172
7173 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7174
0ac5b59e
DE
7175 * dwarf2read.c (struct dwo_file): New member comp_dir.
7176 Rename member name to dwo_name. All uses updated.
7177 (hash_dwo_file): Include comp_dir in computation.
7178 (eq_dwo_file): Ditto.
7179 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7180 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7181
5ff888ce
DE
7182 * psymtab.c (read_psymtabs_with_fullname): Don't call
7183 psymtab_to_fullname if the basenames are different.
7184
ec83d211
JK
71852013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7186
7187 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7188 New entry about "fullname" presence.
7189
4f4352f7
PA
71902013-04-03 Pedro Alves <palves@redhat.com>
7191
7192 * NEWS: Mention x86_64/Cygwin as new native configuration.
7193
3d1d5ea3
DE
71942013-04-02 Doug Evans <dje@google.com>
7195
7196 * dwarf2read.c (read_structure_type): Fix typo in comment.
7197
be9a8770
PA
71982013-04-02 Pedro Alves <palves@redhat.com>
7199
7200 * NEWS: Mention "set/show debug aarch64", "set/show debug
7201 coff-pe-read" and "set/show debug mach-o".
7202
a46c1e42
PA
72032013-04-02 Pedro Alves <palves@redhat.com>
7204
7205 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7206
3ad18b19
EZ
72072013-04-02 Eli Zaretskii <eliz@gnu.org>
7208
7209 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7210 gdb_string.h is now in common/.
7211
e9f1758d
PA
72122013-04-02 Pedro Alves <palves@redhat.com>
7213
7214 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7215 under "New options".
7216
049dc89b
JK
72172013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7218
7219 Revert this patch:
7220 PR gdb/15275
7221 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7222
c33e31fd
PA
72232013-04-02 Pedro Alves <palves@redhat.com>
7224
7225 PR gdb/15275
7226
7227 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7228 (remote_serial_write): New function.
7229 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7230
ea5f3910
JW
72312013-04-01 Jiong Wang <jiwang@tilera.com>
7232
7233 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7234 "New targets" sections.
ea5f3910 7235
5c6fa7ab
DE
72362013-04-01 Doug Evans <dje@google.com>
7237
c0f78cd4
DE
7238 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7239 (process_enumeration_scope): Simplify.
7240
0186c6a7
DE
7241 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7242 type_unit_group ...
7243 (struct signatured_type): ... to here.
7244 (sig_type_ptr): New typedef.
7245 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7246 out of union 't'. All uses updated.
7247 (dw2_get_file_names_reader): Assert not called for a type unit.
7248 (dw2_get_file_names): Assert not called for a type unit or type
7249 unit group.
7250 (build_type_psymtabs_reader): Assert called for a type unit.
7251 (build_type_psymtab_dependencies): Assert called for a type unit group.
7252
5c6fa7ab
DE
7253 * dwarf2read.c (free_dwo_file): Add comment.
7254 (dwarf2_per_objfile_free): Unref dwp bfd.
7255
b3c0ad67 72562013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7257
7258 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7259 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7260 (read_pe_exported_syms): Remove unused 'exportix'.
7261 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7262 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7263 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7264
e2df1547
AR
72652013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7266
7267 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7268 (print_it_watchpoint): Remove unused 'bl'.
7269 (say_where): Remove unused 'uiout'.
7270 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7271 (bkpt_breakpoint_hit): Remove unused 'b'.
7272 (internal_bkpt_print_it): Remove unused 'uiout'.
7273 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7274
d81e75c0
TD
72752013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7276
7277 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7278 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7279
5a8b3f62
DE
72802013-03-29 Doug Evans <dje@google.com>
7281
ab5088bf
DE
7282 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7283 Delete arg is_dwp. All callers updated.
7284 (open_dwp_file): New function.
7285 (open_and_init_dwp_file): Call it.
7286 (get_dwp_file): New function.
7287 (lookup_dwo_cutu): Call it.
7288
a8ad1e57
DE
7289 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7290 unnecessary, cleanup.
7291
6296d8c1
DE
7292 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7293
b0c7bfa9
DE
7294 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7295 (lookup_dwo_unit): New function.
7296 (init_cutu_and_read_dies): Move DWO handling to new functions.
7297
c88ee1f0
DE
7298 * dwarf2read.c (struct signatured_type): Tweak comment.
7299 (struct dwo_unit): Tweak comment.
7300 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7301 (create_dwo_debug_info_hash_table): Tweak comment.
7302 (dwarf2_per_cu_offset_and_type): Tweak comment.
7303
5a8b3f62
DE
7304 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7305 missing .debug_types section.
7306
9852c492
YQ
73072013-03-29 Yao Qi <yao@codesourcery.com>
7308
7309 * corelow.c: Include "completer.h".
7310 (_initialize_corelow): Call add_target_with_completer with
7311 argument 'filename_completer'.
7312 * tracepoint.c: Likewise.
7313 * exec.c (_initialize_exec): Likewise.
7314 * target.c (add_target): Rename to ...
7315 (add_target_with_completer): ... this. Call set_cmd_completer
7316 if parameter completer is not NULL.
7317 (add_target): New.
7318 * target.h: Include "command.h".
7319 (add_target_with_completer): Declare it.
7320
af312be7
JB
73212013-03-28 Joel Brobecker <brobecker@adacore.com>
7322
7323 * coffread.c (is_import_fixup_symbol): New function.
7324 (record_minimal_symbol): Use is_import_fixup_symbol to
7325 detect import fixup symbols, and discard them.
7326
8a0459fd
DE
73272013-03-28 Doug Evans <dje@google.com>
7328
0349ea22
DE
7329 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7330 types hash table until we know we need it.
7331
f652bce2
DE
7332 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7333 index numbers.
7334
e4a48d9d
DE
7335 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7336 All callers updated.
7337 (dw2_print_stats): Print #read CUs too.
7338 (dump_die_shallow): Print signatured types better.
7339
8a0459fd
DE
7340 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7341 info_or_types_section to section. All uses updated.
7342 (struct dwo_unit): Ditto.
7343
bd3eecc3
PA
73442013-03-28 Pedro Alves <palves@redhat.com>
7345
7346 * NEWS (New options): New section.
7347 (New options): Mention set/show remote trace-status-packet.
7348 * remote.c (PACKET_qTStatus): New enumeration value.
7349 (remote_get_trace_status): Skip sending qTStatus if the packet is
7350 disabled. Use packet_ok.
7351 (_initialize_remote): Register a configuration command for
7352 qTStatus packet.
7353
41245087
DE
73542013-03-28 Doug Evans <dje@google.com>
7355
7edbb660
DE
7356 * symfile.c (find_separate_debug_file): Add comment.
7357 (terminate_after_last_dir_separator): Tweak comment.
7358
0018ea6f
DE
7359 * dwarf2read.c (create_partial_symtab): Add forward decl.
7360 (create_partial_symtab): Move to be closer to other psymtab functions.
7361 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7362
ca69b9e6
DE
7363 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7364 (compute_symtab_includes): Remove unnecessary forward declaration.
7365 (die_needs_namespace): Add comment marking group of functions for
7366 dwarf2 name computation.
7367
a9375afe
DE
7368 * typeprint.c (_initialize_typeprint): Improve type help text.
7369
41245087
DE
7370 * python/python.c (finish_python_initialization): Provide suggestion
7371 for how to tell gdb to find its python files.
7372
7f7cc265
PA
73732013-03-28 Pedro Alves <palves@redhat.com>
7374
7375 PR gdb/15294
7376
7377 * source.c (_initialize_source): Change back "set listsize" to an
7378 integer command.
7379
ec21308c
JK
73802013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7381
7382 PR gdb/15275
7383 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7384
840a9a1f
PA
73852013-03-27 Pedro Alves <palves@redhat.com>
7386
7387 * top.c (history_size): Rename to ...
7388 (history_size_setshow_var): ... this. Add comment.
7389 (show_commands): Use readline's 'history_length' instead of
7390 computing the history length by calling history_get in a loop.
7391 (set_history_size_command): Error out for sizes over INT_MAX.
7392 Restore previous history size on invalid size.
7393 (init_history): If HISTSIZE is negative, leave the history size as
7394 zero. Add comments.
7395 (init_main): Adjust.
7396
826ecc4d
PA
73972013-03-27 Pedro Alves <palves@redhat.com>
7398
7399 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7400 coff_pe_read" command to "set debug coff-pe-read".
7401
0ccfeeae
MM
74022013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7403
7404 * record.c (command_size_to_target_size): Fix size comparison.
7405 Change parameter type from pointer to integer to integer.
7406 Update all users.
7407
40653b35
PM
74082013-03-27 Pierre Muller <muller@sourceware.org>
7409
7410 * windows-nat.c (handle_output_debug_string): Avoid typecast
7411 from integer of different size warning.
7412
c62fa0e2
JB
74132013-03-26 Joel Brobecker <brobecker@adacore.com>
7414
7415 * windows-nat.c (handle_output_debug_string): Add empty line
7416 after local block variable definition.
7417
2c619be2
PA
74182013-03-26 Pedro Alves <palves@redhat.com>
7419
7420 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7421 (net_open): Make 'polls' local unsigned.
7422
1b493192
PA
74232013-03-26 Pedro Alves <palves@redhat.com>
7424
7425 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7426 a zuinteger command instead of uinteger.
7427
7ee70bf5
PA
74282013-03-26 Pedro Alves <palves@redhat.com>
7429
7430 * record-full.c (record_full_insn_num): Make it unsigned.
7431 (record_full_check_insn_num, record_full_message)
7432 (record_full_registers_change, record_full_xfer_partial): Remove
7433 record_full_insn_max_num check (it's always != 0).
7434 (record_full_info, record_full_restore): Use %u as format string.
7435 (): Use %u as format string.
7436 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7437 check (it's always != 0).
7438
dfd1f9bb
PA
74392013-03-26 Pedro Alves <palves@redhat.com>
7440
7441 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7442 and "set dcache size" commands zuinteger instead of uinteger.
7443
addb4faf
PA
74442013-03-26 Pedro Alves <palves@redhat.com>
7445
7446 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7447 command zuinteger instead of uinteger.
7448
b75bf488
PA
74492013-03-26 Pedro Alves <palves@redhat.com>
7450
7451 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7452 zuinteger instead of uinteger.
7453
42c634cb
PA
74542013-03-26 Pedro Alves <palves@redhat.com>
7455
7456 * record.c (record_insn_history_size_setshow_var)
7457 (record_call_history_size_setshow_var): New globals.
7458 (command_size_to_target_size): New function.
7459 (cmd_record_insn_history, cmd_record_call_history): Use
7460 command_size_to_target_size instead of cast.
7461 (validate_history_size, set_record_insn_history_size)
7462 (set_record_call_history_size): New functions.
7463 (_initialize_record): Install set_record_insn_history_size and
7464 set_record_call_history_size as "set" hooks of "set record
7465 instruction-history-size" and "set record
7466 function-call-history-size".
7467
1fb2e2b5
PA
74682013-03-26 Pedro Alves <palves@redhat.com>
7469
7470 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7471 use with history_max_entries use. Remove FIXME note.
7472
99c819ee
MM
74732013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7474
7475 * record-btrace.c (record_btrace_close): Call
7476 record_btrace_auto_disable.
7477
9f9e404c
JB
74782013-03-25 Joel Brobecker <brobecker@adacore.com>
7479
7480 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7481
ebcdfe33
DE
74822013-03-25 Doug Evans <dje@google.com>
7483
7484 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7485
24955f63
TT
74862013-03-25 Tom Tromey <tromey@redhat.com>
7487
7488 PR symtab/11462:
7489 * c-exp.y (exp): Add new productions for destructors after '.' and
7490 '->'.
7491 (write_destructor_name): New function.
7492
fce632b6
TT
74932013-03-25 Tom Tromey <tromey@redhat.com>
7494
7495 PR c++/9197:
7496 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7497 value_struct_elt, not lookup_struct_elt_type.
7498 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7499 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7500 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7501
a4341769
YQ
75022013-03-25 Yao Qi <yao@codesourcery.com>
7503
7504 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7505 instead of '_mkdir'.
7506
b5981e5a
EZ
75072013-03-23 Eli Zaretskii <eliz@gnu.org>
7508
7509 * windows-nat.c (windows_get_absolute_argv0): New function.
7510 * windows-nat.h: Add its prototype.
7511
7512 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7513 Use IS_DIR_SEPARATOR instead of looking for a character inside
7514 SLASH_STRING. Include filenames.h.
7515 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7516 relocate_gdb_directory works when passed gdb_program_name.
7517 Include windows-nat.h.
7518
598d3636
JK
75192013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7520
7521 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7522 * remote.c (trace_error): Remove the special handling of '2'.
7523 (readchar) <SERIAL_EOF>
7524 (readchar) <SERIAL_ERROR>
7525 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7526 (remote_get_trace_status): Call throw_exception if EX is
7527 TARGET_CLOSE_ERROR.
7528 * utils.c (perror_with_name): Rename to ...
7529 (throw_perror_with_name): ... here. New parameter errcode, describe it
7530 in the function comment.
7531 (perror_with_name): New function wrapper.
7532 * utils.h (enum errors): New stub declaration.
7533 (throw_perror_with_name): New declaration.
7534
82b821e9
PA
75352013-03-22 Pedro Alves <palves@redhat.com>
7536 Yao Qi <yao@codesourcery.com>
7537 Mark Kettenis <kettenis@gnu.org>
7538
7539 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7540 Don't let the user set the value to UINT_MAX directly.
7541 <var_integer>: Don't let the user set the value to INT_MAX
7542 directly.
7543
78a095c3
JK
75442013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7545
7546 * remote.c (remote_unpush_target): New function.
7547 (remote_open_1): Remove two pop_target calls, update one comment, add
7548 comment to target_preopen call. Replace pop_target call by
7549 remote_unpush_target call.
7550 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7551 pop_target calls by remote_unpush_target calls.
7552
3e74e146
PA
75532013-03-22 Pedro Alves <palves@redhat.com>
7554
7555 * linux-nat.c (linux_child_follow_fork): Don't call
7556 linux_enable_event_reporting.
7557 (linux_handle_extended_wait): Don't call
7558 linux_enable_event_reporting.
7559
a2213dca
PA
75602013-03-22 Pedro Alves <palves@redhat.com>
7561
7562 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7563 use it to rewrite the trampoline buffers with type gdb_byte[], and
7564 undefine the macro. Remove char* cast.
7565
bd712aed
DE
75662013-03-21 Doug Evans <dje@google.com>
7567
7568 New commands "mt set per-command {space,time,symtab} {on,off}".
7569 * NEWS: Add entry.
7570 * event-top.c: #include "maint.h".
7571 * main.c: #include "maint.h".
7572 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7573 timeval-utils.h, maint.h, cli/cli-setshow.h.
7574 (per_command_time, per_command_space): New static globals.
7575 (per_command_symtab): New static global.
7576 (per_command_setlist, per_command_showlist): New static globals.
7577 (struct cmd_stats): Move here from utils.c.
7578 (set_per_command_time): Renamed from set_display_time in utils.c
7579 and moved here. All callers updated.
7580 (set_per_command_space): Renamed from set_display_space in utils.c
7581 and moved here. All callers updated.
7582 (count_symtabs_and_blocks): New function.
7583 (report_command_stats): Moved here from utils.c. Add support for
7584 printing symtab stats. Only print data if enabled before command
7585 executed.
7586 (make_command_stats_cleanup): Ditto.
7587 (sert_per_command_cmd, show_per_command_cmd): New functions.
7588 (_initialize_maint_cmds): Add new commands
7589 mt set per-command {space,time,symtab} {on,off}.
7590 * maint.h: New file.
7591 * top.c: #include "maint.h".
7592 * utils.c (reset_prompt_for_continue_wait_time): New function.
7593 (get_prompt_for_continue_wait_time): New function.
7594 * utils.h (reset_prompt_for_continue_wait_time): Declare
7595 (get_prompt_for_continue_wait_time): Declare.
7596 (make_command_stats_cleanup): Moved to maint.h.
7597 (set_display_time, set_display_space): Moved to maint.h and renamed
7598 to set_per_command_time, set_per_command_space.
7599 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7600 parse_binary_operation and made non-static. Don't call error,
7601 just return an error marker. All callers updated.
7602 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7603
d76488d8
TT
76042013-03-21 Tom Tromey <tromey@redhat.com>
7605
7606 * symfile.c (alloc_section_addr_info): Update header. Don't set
7607 'num_sections' field.
7608 (build_section_addr_info_from_section_table): Set 'num_sections'.
7609 (build_section_addr_info_from_bfd): Likewise.
7610 (build_section_addr_info_from_objfile): Remove dead loop
7611 condition.
7612 (free_section_addr_info): Unconditionally call xfree.
7613 (relative_addr_info_to_section_offsets, addrs_section_sort)
7614 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7615 condition.
7616 (syms_from_objfile_1): Remove dead 'if' condition. Check
7617 'num_sections'.
7618 (add_symbol_file_command): Set 'num_sections'.
7619 * symfile-mem.c (symbol_file_add_from_memory): Set
7620 'num_sections'.
7621 * somread.c (som_symfile_offsets): Remove dead loop condition.
7622 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7623 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7624
a72e5169 76252013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7626
7627 * tracepoint.h (decode_agent_options): Add 'trace_string'
7628 argument.
7629 * tracepoint.c (decode_agent_options): Add 'trace_string'
7630 argument.
7631 (validate_actionline): Update.
7632 (collect_symbol): Add 'trace_string' argument.
7633 (struct add_local_symbols_data) <trace_string>: New field.
7634 (do_collect_symbol): Update.
7635 (add_local_symbols): Add 'trace_string' argument.
7636 (encode_actions_1): Update.
7637 (trace_dump_actions): Update.
7638 * dwarf2loc.c (access_memory): Update.
7639 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7640 * ax-general.c (new_agent_expr): Update.
7641 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7642 (gen_trace_for_return_address): Add argument.
7643 (trace_kludge, trace_string_kludge): Remove.
7644 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7645 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7646 (gen_trace_for_var): Add 'trace_string' argument.
7647 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7648 (gen_printf, agent_eval_command_one): Update.
7649
b2f83c08
TT
76502013-03-21 Tom Tromey <tromey@redhat.com>
7651
7652 PR exp/15109:
7653 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7654 Handle FILENAME token.
7655
9507860e
TT
76562013-03-21 Tom Tromey <tromey@redhat.com>
7657
7658 * c-exp.y (YYPRINT): Define.
7659 (c_print_token): New function.
7660
e403aa4b
TT
76612013-03-21 Tom Tromey <tromey@redhat.com>
7662
7663 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7664
af307d6a
YQ
76652013-03-21 Yao Qi <yao@codesourcery.com>
7666
7667 * ctf.c: Include "gdb_stat.h".
7668 [USE_WIN32API]: New macro 'mkdir'.
7669 (ctf_start): Use permission bits macros if they are defined.
7670
fb81d016
KS
76712013-03-20 Keith Seitz <keiths@redhat.com>
7672
7673 * breakpoint.h (struct breakpoint): Add comment to
7674 extra_string indicating that this member is mallod'd.
7675 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7676
ef0026f0
PA
76772013-03-20 Pedro Alves <palves@redhat.com>
7678
7679 PR gdb/15289
7680
7681 * cli/cli-setshow.c (do_set_command)
7682 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7683 the result of parsing the command argument. Throw error if the
7684 value is greater than UINT_MAX. Print the invalid value with
7685 plongest.
7686 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7687 result of parsing the command argument. Throw error if the value
7688 is greater than INT_MAX, not greater or equal. Also throw error
7689 if the value is less than INT_MIN. Print the invalid value with
7690 plongest.
7691 <var_zuinteger_unlimited>: Throw error if the value is greater
7692 than INT_MAX, not greater or equal.
7693 (do_show_command) <var_integer, var_zinteger,
7694 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7695
24d6c2a0
TT
76962013-03-20 Tom Tromey <tromey@redhat.com>
7697
7698 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7699 if possible.
7700 * dwarf2read.c (read_func_scope): Remove old FIXME.
7701 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7702 not LOC_COMPUTED.
7703 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7704 Unconditionally call via computed ops, if possible.
7705 * printcmd.c (address_info): Unconditionally call via computed ops,
7706 if possible.
7707 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7708 if possible.
7709 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7710 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7711 if possible.
7712
f1e6e072
TT
77132013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7714 Tom Tromey <tromey@redhat.com>
7715
7716 PR symtab/8421:
7717 * coffread.c (coff_register_index): New global.
7718 (process_coff_symbol, coff_read_enum_type): Set
7719 SYMBOL_ACLASS_INDEX.
7720 (_initialize_coffread): Initialize new global.
7721 * dwarf2loc.c (locexpr_find_frame_base_location)
7722 (dwarf2_block_frame_base_locexpr_funcs)
7723 (loclist_find_frame_base_location)
7724 (dwarf2_block_frame_base_loclist_funcs): New.
7725 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7726 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7727 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7728 (dwarf2_block_frame_base_loclist_funcs): New.
7729 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7730 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7731 globals.
7732 (read_func_scope): Update.
7733 (fixup_go_packaging, mark_common_block_symbol_computed)
7734 (var_decode_location, new_symbol_full, dwarf2_const_value):
7735 Set SYMBOL_ACLASS_INDEX.
7736 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7737 (_initialize_dwarf2_read): Initialize new globals.
7738 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7739 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7740 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7741 globals.
7742 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7743 (_initialize_mdebugread): Initialize new globals.
7744 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7745 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7746 (stab_register_index, stab_regparm_index): New globals.
7747 (define_symbol, read_enum_type, common_block_end): Set
7748 SYMBOL_ACLASS_INDEX.
7749 (_initialize_stabsread): Initialize new globals.
7750 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7751 globals.
7752 (MAX_SYMBOL_IMPLS): New define.
7753 (register_symbol_computed_impl, register_symbol_block_impl)
7754 (register_symbol_register_impl)
7755 (initialize_ordinary_address_classes): New functions.
7756 (_initialize_symtab): Call initialize_ordinary_address_classes.
7757 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7758 (struct symbol_impl): New.
7759 (SYMBOL_ACLASS_BITS): New define.
7760 (struct symbol) <aclass, ops>: Remove fields.
7761 <aclass_index>: New field.
7762 (symbol_impls): Declare.
7763 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7764 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7765 (register_symbol_computed_impl, register_symbol_block_impl)
7766 (register_symbol_register_impl): Declare.
7767 (struct symbol_computed_ops): Add location_has_loclist.
7768 (struct symbol_block_ops): New.
7769 (SYMBOL_BLOCK_OPS): New.
7770 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7771
dbccfd4c
TT
77722013-03-20 Tom Tromey <tromey@redhat.com>
7773
7774 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7775 (print_partial_symbols, recursively_search_psymtabs): Use
7776 PSYMBOL_CLASS.
7777
e3f1ad4f
PM
77782013-03-20 Pierre Muller <muller@sourceware.org>
7779
7780 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7781 addtion, subtraction, multiplication and division binary operator.
7782
460014f5
JK
77832013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7784
7785 Code cleanup.
7786 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7787 * bsd-kvm.c (bsd_kvm_close): Likewise.
7788 * bsd-uthread.c (bsd_uthread_close): Likewise.
7789 * corelow.c (core_close): Likewise.
7790 (core_close_cleanup): Remove parameter quitting from a caller.
7791 * event-top.c (async_disconnect): Likewise.
7792 * exec.c (exec_close_1): Remove parameter quitting.
7793 * go32-nat.c (go32_close): Likewise.
7794 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7795 parameter quitting from a caller.
7796 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7797 variable.
7798 (mips_linux_close): Remove parameter quitting. Remove parameter
7799 quitting from a caller.
7800 * monitor.c (monitor_close): Remove parameter quitting.
7801 * monitor.h (monitor_close): Likewise.
7802 * record-btrace.c (record_btrace_close): Likewise.
7803 * record-full.c (record_full_close): Likewise.
7804 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7805 it also from fprintf_unfiltered.
7806 * remote-mips.c (mips_close): Remove parameter quitting.
7807 (mips_detach): Remove parameter quitting from a caller.
7808 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7809 (gdbsim_close): Remove duplicate function comment. Remove parameter
7810 quitting and remove it also from printf_filtered.
7811 * remote.c (remote_close): Remove parameter quitting.
7812 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7813 * target.c (update_current_target): Remove parameter int from to_close
7814 de_fault.
7815 (push_target, unpush_target, pop_target): Remove parameter quitting from
7816 a caller.
7817 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7818 Remove parameter quitting from a caller.
7819 (target_preopen): Remove parameter quitting from a caller.
7820 (target_close): Remove parameter quitting. Remove parameter quitting
7821 from a caller two times. Remove parameter quitting also from
7822 fprintf_unfiltered.
7823 * target.h (struct target_ops): Remove parameter quitting and as int
7824 from fields to_xclose and to_close.
7825 (extern struct target_ops current_target):
7826 (target_close, pop_all_targets): Remove parameter quitting. Update the
7827 comment.
7828 (pop_all_targets_above): Remove parameter quitting.
7829 * top.c (quit_target): Remove parameter quitting from a caller.
7830 * tracepoint.c (tfile_close): Remove parameter quitting.
7831 * windows-nat.c (windows_close): Remove parameter quitting.
7832
35a7120b
CV
78332013-03-20 Corinna Vinschen <vinschen@redhat.com>
7834
7835 * windows-nat.c (handle_output_debug_string): Replace call
7836 to string_to_core_addr with call to strtoull.
7837
8249a5a9
YQ
78382013-03-20 Yao Qi <yao@codesourcery.com>
7839
7840 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7841 and write it to CTF metadata.
7842
2c15ef43
CV
78432013-03-19 Corinna Vinschen <vinschen@redhat.com>
7844
7845 * windows-nat.c (handle_output_debug_string): Change type of n to
7846 SIZE_T to avoid crash on 64 bit systems.
7847
1cdd3232
EZ
78482013-03-17 Eli Zaretskii <eliz@gnu.org>
7849
7850 * python/python-internal.h (HAVE_SNPRINTF)
7851 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7852 about redefinition of snprintf by pyerrors.h.
7853
3cb2ab1a
SE
78542013-03-15 Steve Ellcey <sellcey@mips.com>
7855
7856 * remote-sim.c (sim_command_completer): Make char arguments const.
7857
9ce98649
TT
78582013-03-15 Tom Tromey <tromey@redhat.com>
7859
7860 PR c++/15116:
7861 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7862
dccee2de
TT
78632013-03-14 Tom Tromey <tromey@redhat.com>
7864
7865 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7866 New fields.
7867 (get_file_crc): Move from symfile.c.
7868 (gdb_bfd_crc): New function.
7869 * gdb_bfd.h (gdb_bfd_crc): Declare.
7870 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7871 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7872 (separate_debug_file_exists): Use gdb_bfd_crc.
7873
cc0ea93c
TT
78742013-03-14 Tom Tromey <tromey@redhat.com>
7875
7876 * symfile.c (get_debug_link_info): Remove.
7877 (find_separate_debug_file_by_debuglink): Use
7878 bfd_get_debug_link_info.
7879
08c23b0d
TT
78802013-03-14 Tom Tromey <tromey@redhat.com>
7881
7882 * symtab.c (error_in_psymtab_expansion): New function.
7883 (lookup_symbol_aux_quick)
7884 (basic_lookup_transparent_type_quick): Remove "last resort"
7885 code. Use error_in_psymtab_expansion.
7886
288e77a7
JK
78872013-03-14 Doug Evans <dje@google.com>
7888 Jan Kratochvil <jan.kratochvil@redhat.com>
7889
7890 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7891 any successful compare_filenames_for_search or FILENAME_CMP.
7892 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7893 * symtab.c (iterate_over_some_symtabs): Likewise.
7894
8f1b8b82
JK
78952013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7896
7897 * source.c (print_source_lines_base): Make a local copy of
7898 symtab_to_fullname.
7899
23eb71e4
JK
79002013-03-14 Hui Zhu <hui_zhu@mentor.com>
7901 Jan Kratochvil <jan.kratochvil@redhat.com>
7902
7903 * source.c (print_source_lines_base): Suppress "file" for TUI.
7904
bb869963
SDJ
79052013-03-14 Keith Seitz <keiths@redhat.com>
7906 Alan Matsuoka <alanm@redhat.com>
7907
7908 PR c++/15203
7909 PR c++/15210
7910 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7911 TYPE_CODE_METHOD.
7912 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7913 symbols.
7914
d6682f9e
YQ
79152013-03-14 Yao Qi <yao@codesourcery.com>
7916
7917 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7918 status to tfile if trace is stopped by command 'tstop'.
7919
a22fa6e4
YQ
79202013-03-14 Yao Qi <yao@codesourcery.com>
7921
7922 * tracepoint.c (tfile_write_status): Write trace notes and user
7923 name into tfile if they are not NULL.
7924
d0353e76
YQ
79252013-03-14 Hui Zhu <hui@codesourcery.com>
7926 Yao Qi <yao@codesourcery.com>
7927
7928 * Makefile.in (REMOTE_OBS): Add ctf.o.
7929 (SFILES): Add ctf.c.
7930 (HFILES_NO_SRCDIR): Add ctf.h.
7931 * ctf.c, ctf.h: New files.
7932 * tracepoint.c: Include 'ctf.h'.
7933 (collect_pseudocommand): Remove static.
7934 (trace_save_command): Parse option "-ctf".
7935 Produce different trace file writers per option.
7936 Adjust output message.
7937 (trace_save_tfile, trace_save_ctf): New.
7938 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7939 * mi/mi-main.c: Include 'ctf.h'.
7940 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7941 trace_save_tfile or trace_save_ctf.
7942 * NEWS: Mention these changes.
7943
3f43bc09
YQ
79442013-03-14 Yao Qi <yao@codesourcery.com>
7945
7946 * tracepoint.c (trace_file_writer_xfree): New.
7947 (struct tfile_writer_data): New.
7948 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7949 (tfile_write_header, tfile_write_regblock_type): New.
7950 (tfile_write_status, tfile_write_uploaded_tsv): New.
7951 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7952 (tfile_write_raw_data, (tfile_end): New.
7953 (tfile_write_ops): New global variable.
7954 (TRACE_WRITE_R_BLOCK): New macro.
7955 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7956 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7957 (TRACE_WRITE_V_BLOCK): New macro.
7958 (trace_save): Add extra one parameter WRITER. Make it static.
7959 Use WRITER to writer trace.
7960 (tfile_trace_file_writer_new): New.
7961 (trace_save_command): Caller update.
7962 (trace_save_tfile): Write trace data in TFILE format.
7963 * tracepoint.h (struct trace_frame_write_ops): New.
7964 (struct trace_file_write_ops): New.
7965 (struct trace_file_writer): New.
7966 (trace_save): Remove its declaration.
7967 (trace_save_tfile): Declare it.
7968 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7969 instead of trace_save.
7970
58665b40
PA
79712013-03-13 Pedro Alves <palves@redhat.com>
7972
7973 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7974
10217050
PA
79752013-03-13 Pedro Alves <palves@redhat.com>
7976
7977 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7978 commented out code.
7979 * demangle.c (current_demangling_style_string): Make it const.
7980 (set_demangling_command): Assert the demangling style is known.
7981 Remove all handling of unknown styles. Set
7982 'current_demangling_style_string' to an element of the
7983 demangling_style_names array.
7984 (set_demangling_style): Delete.
7985 (_initialize_demangler): Set current_demangling_style_string to the
7986 element of the demangling_style_names array that corresponds to
7987 the default demangling style. Remove FIXME note. Don't call
7988 set_demangling_style.
7989 * gdb-demangle.h (set_demangling_style): Remove declaration.
7990
6f937416
PA
79912013-03-13 Pedro Alves <palves@redhat.com>
7992
7993 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7994 fields const.
7995 (ada_make_symbol_completion_list): Make "text0" parameter const.
7996 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7997 * breakpoint.c (condition_completer): Make "text" and "word"
7998 parameters const. Adjust.
7999 (check_tracepoint_command): Adjust to validate_actionline
8000 prototype change.
8001 (catch_syscall_completer): Make "text" and "word" parameters
8002 const.
8003 * cli/cli-cmds.c (show_user): Make "comname" local const.
8004 (valid_command_p): Make "command" parameter const.
8005 (alias_command): Make "alias_prefix" and "command_prefix" locals
8006 const.
8007 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8008 (add_alias_cmd): Make "name" and "oldname" parameters const.
8009 Adjust. No longer make copy of OLDNAME.
8010 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8011 (add_setshow_cmd_full, add_setshow_enum_cmd)
8012 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8013 (add_setshow_filename_cmd, add_setshow_string_cmd)
8014 (add_setshow_string_noescape_cmd)
8015 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8016 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8017 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8018 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8019 Make "name" parameter const.
8020 (help_cmd): Rename "command" parameter to "arg". New const local
8021 "command".
8022 (find_cmd): Make "command" parameter const.
8023 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8024 deprecated_cmd_warning prototype change.
8025 (undef_cmd_error): Make "cmdtype" parameter const.
8026 (lookup_cmd): Make "line" parameter const.
8027 (deprecated_cmd_warning): Change type of "text" parameter to
8028 pointer to const char, from pointer to pointer to char. Adjust.
8029 (lookup_cmd_composition): Make "text" parameter const.
8030 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8031 parameters const.
8032 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8033 const.
8034 * cli/cli-script.c (validate_comname): Make "tem" local const.
8035 (define_command): New const local "tem_c". Use it in calls to
8036 lookup_cmd.
8037 (document_command): Make "tem" and "comfull" locals const.
8038 (show_user_1): Make "prefix" and "name" parameters const.
8039 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8040 const.
8041 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8042 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8043 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8044 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8045 (complete_on_enum, add_setshow_enum_cmd)
8046 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8047 (add_setshow_filename_cmd, add_setshow_string_cmd)
8048 (add_setshow_string_noescape_cmd)
8049 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8050 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8051 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8052 Change prototypes, constifying strings.
8053 * completer.c (noop_completer, filename_completer): Make "text"
8054 and "prefix" parameters const.
8055 (location_completer, expression_completer)
8056 (complete_line_internal): Make "text" and "prefix" parameters
8057 const and adjust.
8058 (command_completer, signal_completer): Make "text" and "prefix"
8059 parameters const.
8060 * completer.h (noop_completer, filename_completer)
8061 (expression_completer, location_completer, command_completer)
8062 (signal_completer): Change prototypes.
8063 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8064 parameters const.
8065 * cp-abi.c (cp_abi_completer): Likewise.
8066 * expression.h (parse_expression_for_completion): Change
8067 prototype.
8068 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8069 parameters const.
8070 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8071 * infrun.c (handle_completer): Make "text" and "word" parameters
8072 const.
8073 * interps.c (interpreter_completer): Make "text" and "word"
8074 parameters const.
8075 * language.h (struct language_defn)
8076 <la_make_symbol_completion_list>: Make "text" and "word"
8077 parameters const.
8078 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8079 (parse_exp_in_context): Rename to ...
8080 (parse_exp_in_context_1): ... this.
8081 (parse_exp_in_context): Reimplement, with const hack from
8082 parse_exp_1.
8083 (parse_expression_for_completion): Make "string" parameter const.
8084 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8085 to pointer to const char. Adjust.
8086 (print_command_1): Make "exp" parameter const.
8087 (output_command): Rename to ...
8088 (output_command_const): ... this. Make "exp" parameter const.
8089 (output_command): Reimplement.
8090 (x_command): Adjust.
8091 (display_command): Rename "exp" parameter to "arg". New "exp"
8092 local, const version of "arg".
8093 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8094 "cmd_name" local const.
8095 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8096 call.
8097 (cmdpy_completer): Make "text" and "word" parameters const.
8098 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8099 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8100 const.
8101 * remote.c (_initialize_remote): Make "cmd_name" local const.
8102 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8103 parameters const. Adjust.
8104 (completion_list_add_fields): Make "sym_text", "text" and "word"
8105 parameters const.
8106 (struct add_name_data) <sym_text, text, word>: Make fields const.
8107 (default_make_symbol_completion_list_break_on): Make "text" and
8108 "word" parameters const. Adjust locals.
8109 (default_make_symbol_completion_list)
8110 (make_symbol_completion_list, make_symbol_completion_type)
8111 (make_symbol_completion_list_fn): Make "text" and "word"
8112 parameters const.
8113 (make_file_symbol_completion_list): Make "text", "word" and
8114 "srcfile" parameters const. Adjust locals.
8115 (add_filename_to_list): Make "text" and "word" parameters const.
8116 (struct add_partial_filename_data) <text, word>: Make fields
8117 const.
8118 (make_source_files_completion_list): Make "text" and "word"
8119 parameters const.
8120 * symtab.h (default_make_symbol_completion_list_break_on)
8121 (default_make_symbol_completion_list, make_symbol_completion_list)
8122 (make_symbol_completion_type enum type_code)
8123 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8124 (make_source_files_completion_list): Change prototype.
8125 * top.c (execute_command): Adjust to pass pointer to pointer to
8126 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8127 change.
8128 (set_verbose): Make "cmdname" local const.
8129 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8130 and adjust.
8131 (validate_actionline): Make "line" parameter a pointer to const
8132 char, and adjust.
8133 (encode_actions_1): Make "action_exp" local const, and adjust.
8134 (encode_actions): Adjust.
8135 (replace_comma): Delete.
8136 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8137 const, and adjust. Don't frob the action string while splitting
8138 it at commas. Instead, make a copy of each split substring in
8139 turn.
8140 (trace_dump_command): Adjust to validate_actionline prototype
8141 change.
8142 * tracepoint.h (decode_agent_options, decode_agent_options)
8143 (encode_actions, validate_actionline): Change prototypes.
8144 * valprint.h (output_command): Delete declaration.
8145 (output_command_const): Declare.
8146 * value.c (function_destroyer): Cast const away in xfree call.
8147
a0bcdaa7
PA
81482013-03-13 Pedro Alves <palves@redhat.com>
8149
8150 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8151 rather than casting 'const char * const *' to 'const char **'.
8152 * ada-lex.l (processInt): Make "trailer" local const. Remove
8153 'const char **' cast.
8154 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8155 locals, and use those as strtol output pointer, instead than doing
8156 invalid casts to from 'const char **' to 'char **'.
8157 (_initialize_demangle): Remove cast.
8158 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8159 locals, and use those as strtol output pointer, instead than doing
8160 invalid casts to from 'const char **' to 'char **'.
8161 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8162 casts.
8163 * stap-probe.c (stap_parse_register_operand)
8164 (stap_parse_single_operand): Likewise.
8165
8ddb1965
YQ
81662013-03-13 Yao Qi <yao@codesourcery.com>
8167
8168 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8169 the last matched 'V' blcok in trace frame.
8170
2d450646
JB
81712013-03-12 Joel Brobecker <brobecker@adacore.com>
8172
8173 * NEWS: Create a new section for the next release branch.
8174 Rename the section of the current branch, now that it has
8175 been cut.
8176
b4b79973 81772013-03-12 Joel Brobecker <brobecker@adacore.com>
8178
8179 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8180 * version.in: Bump version to 7.6.50.20130312-cvs.
8181
ee047554
KS
81822013-03-12 Keith Seitz <keiths@redhat.com>
8183
8184 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8185 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8186 Remove temporary copy of input string.
8187 (mi_execute_command_wrapper): Make "cmd" const.
8188 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8189 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8190 Use const strings.
8191 (mi_parse): Make "cmd" const.
8192 Use const strings.
8193 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8194
bbc13ae3
KS
81952013-03-12 Keith Seitz <keiths@redhat.com>
8196
8197 * ada-lang.c (ada_read_renaming_var_value): Pass const
8198 pointer to expression string to parse_exp_1.
8199 (create_excep_cond_exprs): Likewise.
8200 * ax-gdb.c (agent_eval_command_one): Likewise.
8201 (maint_agent_printf_command): Likewise.
8202 Constify much of the string handling/parsing.
8203 * breakpoint.c (set_breakpoint_condition): Pass const
8204 pointer to expression string to parse_exp_1.
8205 (update_watchpoint): Likewise.
8206 (parse_cmd_to_aexpr): Constify string handling.
8207 Pass const pointer to parse_exp_1.
8208 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8209 (find_condition_and_thread): Likewise.
8210 Make TOK const.
8211 (watch_command_1): Make "arg" const.
8212 Constify string handling.
8213 Copy the expression string instead of changing the input
8214 string.
8215 (update_breakpoint_location): Pass const pointer to
8216 parse_exp_1.
8217 * eval.c (parse_and_eval_address): Make "exp" const.
8218 (parse_to_comma_and_eval): Make "expp" const.
8219 (parse_and_eval): Make "exp" const.
8220 * expression.h (parse_expression): Make argument const.
8221 (parse_exp_1): Make first argument const.
8222 * findcmd.c (parse_find_args): Treat "args" as const.
8223 * linespec.c (parse_linespec): Pass const pointer to
8224 linespec_expression_to_pc.
8225 (linespec_expression_to_pc): Make "exp_ptr" const.
8226 * parse.c (parse_exp_1): Make "stringptr" const.
8227 Make a copy of the expression to pass to parse_exp_in_context until
8228 this whole interface can be constified.
8229 (parse_expression): Make "string" const.
8230 * printcmd.c (ui_printf): Treat "arg" as const.
8231 Handle const strings.
8232 * tracepoint.c (validate_actionline): Pass const pointer to
8233 all calls to parse_exp_1.
8234 (encode_actions_1): Likewise.
8235 * value.h (parse_to_comma_and_eval): Make argument const.
8236 (parse_and_eval_address): Likewise.
8237 (parse_and_eval): Likewise.
8238 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8239 (varobj_set_value): Likewise.
8240 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8241 constify string handling.
8242 Pass const pointers to parse_and_eval_address and
8243 parse_to_comman_and_eval.
8244 * cli/cli-utils.c (skip_to_space): Rename to ...
8245 (skip_to_space_const): ... this. Handle const strings.
8246 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8247 skip_to_space_const.
8248 (skip_to_space_const): Declare.
8249 * common/format.c (parse_format_string): Make "arg" const.
8250 Handle const strings.
8251 * common/format.h (parse_format_string): Make "arg" const.
8252 * gdbserver/ax.c (ax_printf): Make "format" const.
8253 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8254 of the expression string.
8255
f3cec7e6
HZ
82562013-03-12 Hui Zhu <hui@codesourcery.com>
8257
8258 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8259
9df7235c
HZ
82602013-03-12 Yao Qi <yao@codesourcery.com>
8261 Hui Zhu <hui@codesourcery.com>
8262
8263 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8264 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8265 DW_OP_deref_size.
8266
82d049ab
PH
82672013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8268
5f8e0b8f
MF
8269 * ada-lex.l (rules): Only recognize 'thread' as a
8270 delimiter when followed by numerals, as for c-exp.y.
8271 Use new rewind_to_char function to rewind the input for
8272 expression-delimiting tokens.
8273 (rewind_to_char): New function.
82d049ab 8274
8c1fb155
JK
82752013-03-11 Pedro Alves <palves@redhat.com>
8276 Jan Kratochvil <jan.kratochvil@redhat.com>
8277
8278 * configure: Regenerate.
8279 * configure.ac (check dynamic export flag): Link python test with
8280 $PYTHON_LIBS.
8281
cc81e1c6
DE
82822013-03-11 Doug Evans <dje@google.com>
8283 Keith Seitz <keiths@redhat.com>
8284
8285 * linespec.c (find_linespec_symbols): Call find_function_symbols
8286 first, and then call lookup_prefix_sym/find_method.
8287
39086a0e
PA
82882013-03-11 Pedro Alves <palves@redhat.com>
8289
8290 * charset.c (convert_between_encodings): Don't cast between
8291 different pointer to pointer types. Instead, make the 'inp' local
8292 be of the type iconv expects.
8293 (wchar_iterate): Don't cast between different pointer to pointer
8294 types. Instead, use new pointer local of the type iconv expects.
8295 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8296 Add new local of type char pointer, and use it to get a
8297 char/string view of the byte buffer, instead of casting between
8298 pointer to pointer types.
8299
90585175
HAQ
83002013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8301
8302 * remote.c (remote_set_trace_buffer_size): Move != operator
8303 to the start of next line to fix an ARI warning.
8304
59ea5688
MM
83052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8306
8307 * NEWS: Add record changes.
8308
946287b7
MM
83092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8310
8311 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8312 the instruction history disassembly.
8313 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8314 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8315
afedecd3
MM
83162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8317
8318 * Makefile.in (SFILES): Add record-btrace.c
8319 (COMMON_OBS): Add record-btrace.o
8320 * record-btrace.c: New.
8321 * objfiles.c: Include btrace.h.
8322 (free_objfile): call btrace_free_objfile.
8323
15984c13
MM
83242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8325
8326 * target.c (target_call_history, target_call_history_from,
8327 target_call_history_range): New.
8328 * target.h (target_ops) <to_call_history, to_call_history_from,
8329 to_call_history_range>: New fields.
8330 (target_call_history, target_call_history_from,
8331 target_call_history_range): New declaration.
8332 * record.c (get_call_history_modifiers, cmd_record_call_history,
8333 record_call_history_size): New.
8334 (_initialize_record): Add the "record function-call-history" command.
8335 Add "set/show record function-call-history-size" commands.
8336 * record.h (record_print_flag): New.
8337
67c86d06
MM
83382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8339
8340 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8341 to_insn_history_range>: New fields.
8342 (target_insn_history): New.
8343 (target_insn_history_from): New.
8344 (target_insn_history_range): New.
8345 * target.c (target_insn_history): New.
8346 (target_insn_history_from): New.
8347 (target_insn_history_range): New.
8348 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8349 (record_insn_history_size): New.
8350 (get_insn_number): New.
8351 (get_context_size): New.
8352 (no_chunk): New.
8353 (get_insn_history_modifiers): New.
8354 (cmd_record_insn_history): New.
8355 (_initialize_record): Add "set/show record instruction-history-size"
8356 command. Add "record instruction-history" command.
8357
7c1687a9
MM
83582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8359
8360 * record.h (record_disconnect): New.
8361 (record_detach): New.
8362 (record_mourn_inferior): New.
8363 (record_kill): New.
8364 * record-full.c (record_disconnect, record_detach,
8365 record_mourn_inferior, record_kill): Move to...
8366 * record.c: ...here.
8367 (DEBUG): New.
8368 (record_stop): New.
8369 (record_unpush): New.
8370 (cmd_record_stop): Call record_stop. Replace unpush_target
8371 call with record_unpush call.
8372 (record_disconnect, record_detach): Assert that the target
8373 is of record stratum. Call record_unpush, record_stop, and
8374 DEBUG.
8375 (record_mourn_inferior, record_kill): Assert that the target
8376 is of record stratum. Call record_unpush and DEBUG.
8377
25ea693b
MM
83782013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8379
8380 * record-full.h, record-full.c (record_memory_query): Rename
8381 to ...
8382 (record_full_memory_query): ...this. Update all users.
8383 (record_arch_list_add_reg): Rename to ...
8384 (record_full_arch_list_add_reg): ...this. Update all users.
8385 (record_arch_list_add_mem): Rename to ...
8386 (record_full_arch_list_add_mem): ...this. Update all users.
8387 (record_arch_list_add_end): Rename to ...
8388 (record_full_arch_list_add_end): ...this. Update all users.
8389 (record_gdb_operation_disable_set): Rename to ...
8390 (record_full_gdb_operation_disable_set): ...this.
8391 Update all users.
8392
88d1aa9d
MM
83932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8394
8395 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8396 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8397 (RECORD_IS_REPLAY): Renamed to ...
8398 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8399 (RECORD_FILE_MAGIC): Renamed to ...
8400 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8401 (record_mem_entry): Renamed to ...
8402 (record_full_mem_entry): ... this. Updated all users.
8403 (record_reg_entry): Renamed to ...
8404 (record_full_reg_entry): ... this. Updated all users.
8405 (record_end_entry): Renamed to ...
8406 (record_full_end_entry): ... this. Updated all users.
8407 (record_type) <record_end, record_reg, record_mem>: Renamed
8408 to ...
8409 (record_full_type) <record_full_end, record_full_reg,
8410 record_full_mem>: ... this. Updated all users.
8411 (record_entry): Renamed to ...
8412 (record_full_entry): ... this. Updated all users.
8413 (record_core_buf_entry): Renamed to ...
8414 (record_full_core_buf_entry): ... this. Updated all users.
8415 (record_core_regbuf): Renamed to ...
8416 (record_full_core_regbuf): ... this. Updated all users.
8417 (record_core_start): Renamed to ...
8418 (record_full_core_start): ... this. Updated all users.
8419 (record_core_end): Renamed to ...
8420 (record_full_core_end): ... this. Updated all users.
8421 (record_core_buf_list): Renamed to ...
8422 (record_full_core_buf_list): ... this. Updated all users.
8423 (record_first): Renamed to ...
8424 (record_full_first): ... this. Updated all users.
8425 (record_list): Renamed to ...
8426 (record_full_list): ... this. Updated all users.
8427 (record_arch_list_head): Renamed to ...
8428 (record_full_arch_list_head): ... this. Updated all users.
8429 (record_arch_list_tail): Renamed to ...
8430 (record_full_arch_list_tail): ... this. Updated all users.
8431 (record_stop_at_limit): Renamed to ...
8432 (record_full_stop_at_limit): ... this. Updated all users.
8433 (record_insn_max_num): Renamed to ...
8434 (record_full_insn_max_num): ... this. Updated all users.
8435 (record_insn_num): Renamed to ...
8436 (record_full_insn_num): ... this. Updated all users.
8437 (record_insn_count): Renamed to ...
8438 (record_full_insn_count): ... this. Updated all users.
8439 (record_ops): Renamed to ...
8440 (record_full_ops): ... this. Updated all users.
8441 (record_core_ops): Renamed to ...
8442 (record_full_core_ops): ... this. Updated all users.
8443 (set_record_cmdlist): Renamed to ...
8444 (set_record_full_cmdlist): ... this. Updated all users.
8445 (show_record_cmdlist): Renamed to ...
8446 (show_record_full_cmdlist): ... this. Updated all users.
8447 (record_cmdlist): Renamed to ...
8448 (record_full_cmdlist): ... this. Updated all users.
8449 (record_beneath_to_resume_ops): Renamed to ...
8450 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8451 (record_beneath_to_resume): Renamed to ...
8452 (record_full_beneath_to_resume): ... this. Updated all users.
8453 (record_beneath_to_wait_ops): Renamed to ...
8454 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8455 (record_beneath_to_wait): Renamed to ...
8456 (record_full_beneath_to_wait): ... this. Updated all users.
8457 (record_beneath_to_store_registers_ops): Renamed to ...
8458 (record_full_beneath_to_store_registers_ops): ... this.
8459 Updated all users.
8460 (record_beneath_to_store_registers): Renamed to ...
8461 (record_full_beneath_to_store_registers): ... this.
8462 Updated all users.
8463 (record_beneath_to_xfer_partial_ops): Renamed to ...
8464 (record_full_beneath_to_xfer_partial_ops): ... this.
8465 Updated all users.
8466 (record_beneath_to_xfer_partial): Renamed to ...
8467 (record_full_beneath_to_xfer_partial): ... this.
8468 Updated all users.
8469 (record_beneath_to_insert_breakpoint): Renamed to ...
8470 (record_full_beneath_to_insert_breakpoint): ... this.
8471 Updated all users.
8472 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8473 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8474 Updated all users.
8475 (record_beneath_to_stopped_data_address): Renamed to ...
8476 (record_full_beneath_to_stopped_data_address): ... this.
8477 Updated all users.
8478 (record_beneath_to_async): Renamed to ...
8479 (record_full_beneath_to_async): ... this. Updated all users.
8480 (record_goto_insn): Renamed to ...
8481 (record_full_goto_insn): ... this. Updated all users.
8482 (record_save): Renamed to ...
8483 (record_full_save): ... this. Updated all users.
8484 (record_reg_alloc): Renamed to ...
8485 (record_full_reg_alloc): ... this. Updated all users.
8486 (record_reg_release): Renamed to ...
8487 (record_full_reg_release): ... this. Updated all users.
8488 (record_mem_alloc): Renamed to ...
8489 (record_full_mem_alloc): ... this. Updated all users.
8490 (record_mem_release): Renamed to ...
8491 (record_full_mem_release): ... this. Updated all users.
8492 (record_end_alloc): Renamed to ...
8493 (record_full_end_alloc): ... this. Updated all users.
8494 (record_end_release): Renamed to ...
8495 (record_full_end_release): ... this. Updated all users.
8496 (record_entry_release): Renamed to ...
8497 (record_full_entry_release): ... this. Updated all users.
8498 (record_list_release): Renamed to ...
8499 (record_full_list_release): ... this. Updated all users.
8500 (record_list_release_following): Renamed to ...
8501 (record_full_list_release_following): ... this.
8502 Updated all users.
8503 (record_list_release_first): Renamed to ...
8504 (record_full_list_release_first): ... this. Updated all users.
8505 (record_arch_list_add): Renamed to ...
8506 (record_full_arch_list_add): ... this. Updated all users.
8507 (record_get_loc): Renamed to ...
8508 (record_full_get_loc): ... this. Updated all users.
8509 (record_check_insn_num): Renamed to ...
8510 (record_full_check_insn_num): ... this. Updated all users.
8511 (record_arch_list_cleanups): Renamed to ...
8512 (record_full_arch_list_cleanups): ... this. Updated all users.
8513 (record_message): Renamed to ...
8514 (record_full_message): ... this. Updated all users.
8515 (record_message_wrapper): Renamed to ...
8516 (record_full_message_wrapper): ... this. Updated all users.
8517 (record_message_wrapper_safe): Renamed to ...
8518 (record_full_message_wrapper_safe): ... this. Updated all users.
8519 (record_gdb_operation_disable): Renamed to ...
8520 (record_full_gdb_operation_disable): ... this. Updated all users.
8521 (record_hw_watchpoint): Renamed to ...
8522 (record_full_hw_watchpoint): ... this. Updated all users.
8523 (record_exec_insn): Renamed to ...
8524 (record_full_exec_insn): ... this. Updated all users.
8525 (record_restore): Renamed to ...
8526 (record_full_restore): ... this. Updated all users.
8527 (record_async_inferior_event_token): Renamed to ...
8528 (record_full_async_inferior_event_token): ... this.
8529 Updated all users.
8530 (record_async_inferior_event_handler): Renamed to ...
8531 (record_full_async_inferior_event_handler): ... this.
8532 Updated all users.
8533 (record_core_open_1): Renamed to ...
8534 (record_full_core_open_1): ... this. Updated all users.
8535 (record_open_1): Renamed to ...
8536 (record_full_open_1): ... this. Updated all users.
8537 (record_open): Renamed to ...
8538 (record_full_open): ... this. Updated all users.
8539 (record_close): Renamed to ...
8540 (record_full_close): ... this. Updated all users.
8541 (record_resume_step): Renamed to ...
8542 (record_full_resume_step): ... this. Updated all users.
8543 (record_resumed): Renamed to ...
8544 (record_full_resumed): ... this. Updated all users.
8545 (record_execution_dir): Renamed to ...
8546 (record_full_execution_dir): ... this. Updated all users.
8547 (record_resume): Renamed to ...
8548 (record_full_resume): ... this. Updated all users.
8549 (record_get_sig): Renamed to ...
8550 (record_full_get_sig): ... this. Updated all users.
8551 (record_sig_handler): Renamed to ...
8552 (record_full_sig_handler): ... this. Updated all users.
8553 (record_wait_cleanups): Renamed to ...
8554 (record_full_wait_cleanups): ... this. Updated all users.
8555 (record_wait_1): Renamed to ...
8556 (record_full_wait_1): ... this. Updated all users.
8557 (record_wait): Renamed to ...
8558 (record_full_wait): ... this. Updated all users.
8559 (record_stopped_by_watchpoint): Renamed to ...
8560 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8561 (record_disconnect): Renamed to ...
8562 (record_full_disconnect): ... this. Updated all users.
8563 (record_detach): Renamed to ...
8564 (record_full_detach): ... this. Updated all users.
8565 (record_mourn_inferior): Renamed to ...
8566 (record_full_mourn_inferior): ... this. Updated all users.
8567 (record_kill): Renamed to ...
8568 (record_full_kill): ... this. Updated all users.
8569 (record_stopped_data_address): Renamed to ...
8570 (record_full_stopped_data_address): ... this. Updated all users.
8571 (record_registers_change): Renamed to ...
8572 (record_full_registers_change): ... this. Updated all users.
8573 (record_store_registers): Renamed to ...
8574 (record_full_store_registers): ... this. Updated all users.
8575 (record_xfer_partial): Renamed to ...
8576 (record_full_xfer_partial): ... this. Updated all users.
8577 (record_breakpoint): Renamed to ...
8578 (record_full_breakpoint): ... this. Updated all users.
8579 (record_breakpoint_p): Renamed to ...
8580 (record_full_breakpoint_p): ... this. Updated all users.
8581 (record_breakpoints): Renamed to ...
8582 (record_full_breakpoints): ... this. Updated all users.
8583 (record_sync_record_breakpoints): Renamed to ...
8584 (record_full_sync_record_breakpoints): ... this.
8585 Updated all users.
8586 (record_init_record_breakpoints): Renamed to ...
8587 (record_full_init_record_breakpoints): ... this.
8588 Updated all users.
8589 (record_insert_breakpoint): Renamed to ...
8590 (record_full_insert_breakpoint): ... this. Updated all users.
8591 (record_remove_breakpoint): Renamed to ...
8592 (record_full_remove_breakpoint): ... this. Updated all users.
8593 (record_can_execute_reverse): Renamed to ...
8594 (record_full_can_execute_reverse): ... this. Updated all users.
8595 (record_get_bookmark): Renamed to ...
8596 (record_full_get_bookmark): ... this. Updated all users.
8597 (record_goto_bookmark): Renamed to ...
8598 (record_full_goto_bookmark): ... this. Updated all users.
8599 (record_async): Renamed to ...
8600 (record_full_async): ... this. Updated all users.
8601 (record_can_async_p): Renamed to ...
8602 (record_full_can_async_p): ... this. Updated all users.
8603 (record_is_async_p): Renamed to ...
8604 (record_full_is_async_p): ... this. Updated all users.
8605 (record_execution_direction): Renamed to ...
8606 (record_full_execution_direction): ... this. Updated all users.
8607 (record_info): Renamed to ...
8608 (record_full_info): ... this. Updated all users.
8609 (record_delete): Renamed to ...
8610 (record_full_delete): ... this. Updated all users.
8611 (record_is_replaying): Renamed to ...
8612 (record_full_is_replaying): ... this. Updated all users.
8613 (record_goto_entry): Renamed to ...
8614 (record_full_goto_entry): ... this. Updated all users.
8615 (record_goto_begin): Renamed to ...
8616 (record_full_goto_begin): ... this. Updated all users.
8617 (record_goto_end): Renamed to ...
8618 (record_full_goto_end): ... this. Updated all users.
8619 (record_goto): Renamed to ...
8620 (record_full_goto): ... this. Updated all users.
8621 (init_record_ops): Renamed to ...
8622 (init_record_full_ops): ... this. Updated all users.
8623 (record_core_resume): Renamed to ...
8624 (record_full_core_resume): ... this. Updated all users.
8625 (record_core_kill): Renamed to ...
8626 (record_full_core_kill): ... this. Updated all users.
8627 (record_core_fetch_registers): Renamed to ...
8628 (record_full_core_fetch_registers): ... this. Updated all users.
8629 (record_core_prepare_to_store): Renamed to ...
8630 (record_full_core_prepare_to_store): ... this. Updated all users.
8631 (record_core_store_registers): Renamed to ...
8632 (record_full_core_store_registers): ... this. Updated all users.
8633 (record_core_xfer_partial): Renamed to ...
8634 (record_full_core_xfer_partial): ... this. Updated all users.
8635 (record_core_insert_breakpoint): Renamed to ...
8636 (record_full_core_insert_breakpoint): ... this. Updated all users.
8637 (record_core_remove_breakpoint): Renamed to ...
8638 (record_full_core_remove_breakpoint): ... this. Updated all users.
8639 (record_core_has_execution): Renamed to ...
8640 (record_full_core_has_execution): ... this. Updated all users.
8641 (init_record_core_ops): Renamed to ...
8642 (init_record_full_core_ops): ... this. Updated all users.
8643 (cmd_record_restore): Renamed to ...
8644 (cmd_record_full_restore): ... this. Updated all users.
8645 (record_save_cleanups): Renamed to ...
8646 (record_full_save_cleanups): ... this. Updated all users.
8647 (cmd_record_start): Renamed to ...
8648 (cmd_record_full_start): ... this. Updated all users.
8649 (set_record_insn_max_num): Renamed to ...
8650 (set_record_full_insn_max_num): ... this. Updated all users.
8651 (set_record_command): Renamed to ...
8652 (set_record_full_command): ... this. Updated all users.
8653 (show_record_command): Renamed to ...
8654 (show_record_full_command): ... this. Updated all users.
8655 (_initialize_record): Renamed to ...
8656 (_initialize_record_full): ... this. Updated all users.
8657
d02ed0bb
MM
86582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8659
8660 * record.h: Split into this and ...
8661 * record-full.h: ... this.
8662 * record.c: Split into this and ...
8663 * record-full.c: ... this.
8664 * target.h (target_ops): Add new fields to_info_record,
8665 to_save_record, to_delete_record, to_record_is_replaying,
8666 to_goto_record_begin, to_goto_record_end, to_goto_record.
8667 (target_info_record): New.
8668 (target_save_record): New.
8669 (target_supports_delete_record): New.
8670 (target_delete_record): New.
8671 (target_record_is_replaying): New.
8672 (target_goto_record_begin): New.
8673 (target_goto_record_end): New.
8674 (target_goto_record): New.
8675 * target.c (target_info_record): New.
8676 (target_save_record): New.
8677 (target_supports_delete_record): New.
8678 (target_delete_record): New.
8679 (target_record_is_replaying): New.
8680 (target_goto_record_begin): New.
8681 (target_goto_record_end): New.
8682 (target_goto_record): New.
8683 * record.h: Declare struct cmd_list_element.
8684 (record_cmdlist): New declaration.
8685 (set_record_cmdlist): New declaration.
8686 (show_record_cmdlist): New declaration.
8687 (info_record_cmdlist): New declaration.
8688 (cmd_record_goto): New declaration.
8689 * record.c: Remove unnecessary includes.
8690 Include inferior.h.
8691 (cmd_record_goto): Remove declaration.
8692 (record_cmdlist): Now extern. Initialize.
8693 (set_record_cmdlist): Now extern. Initialize.
8694 (show_record_cmdlist): Now extern. Initialize.
8695 (info_record_cmdlist): Now extern. Initialize.
8696 (find_record_target): New.
8697 (require_record_target): New.
8698 (cmd_record_start): Update.
8699 (cmd_record_delete): Remove target-specific code.
8700 Call target_delete_record.
8701 (cmd_record_stop): Unpush any record target.
8702 (set_record_insn_max_num): Move to record-full.c
8703 (set_record_command): Add comment.
8704 (show_record_command): Add comment.
8705 (info_record_command): Update comment.
8706 Remove target-specific code.
8707 Call the record target's to_info_record.
8708 (cmd_record_start): New.
8709 (cmd_record_goto): Now extern.
8710 Remove target-specific code.
8711 Call target_goto_begin, target_goto_end, or target_goto.
8712 (_initialize_record): Move record target ops initialization to
8713 record-full.c.
8714 Change "record" command help text.
8715 Move "record restore", "record set", and "record show" commands to
8716 record-full.c.
8717 * Makefile.in (SFILES): Add record-full.c.
8718 (HFILES_NO_SRCDIR): Add record-full.h.
8719 (COMMON_OBS): Add record-full.o.
8720 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8721 * arm-tdep.c: Include record-full.h.
8722 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8723 * i386-tdep.c: Include record-full.h.
8724 * infrun.c: Include record-full.h.
8725 * linux-record.c: Include record-full.h.
8726 * moxie-tdep.c: Include record-full.h.
8727 * record-full.c: Include record-full.h.
8728 Change module comment.
8729 (set_record_full_cmdlist): New.
8730 (show_record_full_cmdlist): New.
8731 (record_full_cmdlist): New.
8732 (record_goto_insn): New declaration.
8733 (record_save): New declaration.
8734 (record_check_insn_num): Change query string.
8735 (record_info): New.
8736 (record_delete): New.
8737 (record_is_replaying): New.
8738 (record_goto_entry): New.
8739 (record_goto_begin): New.
8740 (record_goto_end): New.
8741 (record_goto): New.
8742 (init_record_ops): Update.
8743 (init_record_core_ops): Update.
8744 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8745 (cmd_record_start): New.
8746 (set_record_insn_max_num): Moved from record.c
8747 (set_record_full_command): New.
8748 (show_record_full_command): New.
8749 (_initialize_record_full): New.
8750
b48d48eb
MM
87512013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8752
8753 * target.h (add_deprecated_target_alias): New.
8754 * target.c (add_deprecated_target_alias): New.
8755
a950d57c
MM
87562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8757
8758 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8759 and signal.h.
8760 (linux_supports_btrace): Add kernel and
8761 cpuid check.
8762 (kernel_supports_btrace): New function.
8763 (cpu_supports_btrace): New function.
8764 (intel_supports_btrace): New function.
8765
9accd112
MM
87662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8767
8768 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8769 * remote.c: Include btrace.h.
8770 (struct btrace_target_info): New struct.
8771 (remote_supports_btrace): New function.
8772 (send_Qbtrace): New function.
8773 (remote_enable_btrace): New function.
8774 (remote_disable_btrace): New function.
8775 (remote_teardown_btrace): New function.
8776 (remote_read_btrace): New function.
8777 (init_remote_ops): Add btrace ops.
8778 (enum <unnamed>): Add btrace packets.
8779 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8780 (_initialize_remote): Add packet configuration for branch tracing.
8781
c12a2917
MM
87822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8783
8784 * features/btrace.dtd: New file.
8785 * Makefile.in (XMLFILES): Add btrace.dtd.
8786 * btrace.h (parse_xml_btrace): New declaration.
8787 * btrace.c: Include xml-support.h.
8788 (parse_xml_btrace): New function.
8789 (parse_xml_btrace_block): New function.
8790 (block_attributes): New struct.
8791 (btrace_attributes): New struct.
8792 (btrace_children): New struct.
8793 (btrace_elements): New struct.
8794
3e3aea48
MM
87952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8796
8797 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8798 (amd64_linux_enable_btrace): New.
8799 (amd64_linux_disable_btrace): New.
8800 (amd64_linux_teardown_btrace): New.
8801 (_initialize_amd64_linux_nat): Initialize btrace ops.
8802 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8803 (i386_linux_enable_btrace): New.
8804 (i386_linux_disable_btrace): New.
8805 (i386_linux_teardown_btrace): New.
8806 (_initialize_i386_linux_nat): Initialize btrace ops.
8807 * config/i386/linux.mh: Add linux-btrace.o.
8808 * config/i386/linux64.mh: Add linux-btrace.o.
8809
7c97f91e
MM
88102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8811
8812 * common/linux_btrace.h: New file.
8813 * common/linux_btrace.c: New file.
8814 * Makefile.in (SFILES): Add btrace.c.
8815 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8816 (COMMON_OBS): Add btrace.o.
8817 (linux-btrace.o): New rule.
8818
1999790b 88192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8820
8821 * target.h: Include btrace.h.
8822 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8823 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8824 * target.c (target_supports_btrace): New function.
8825 (target_enable_btrace): New function.
8826 (target_disable_btrace): New function.
8827 (target_teardown_btrace): New function.
8828 (target_read_btrace): New function.
8829 * btrace.h: New file.
8830 * btrace.c: New file.
8831 * Makefile.in: Add btrace.c.
8832 * gdbthread.h: Include btrace.h.
8833 (struct thread_info): Add btrace field.
8834 * thread.c: Include btrace.h.
8835 (clear_thread_inferior_resources): Call target_teardown_btrace.
8836 * common/btrace-common.h: New file.
8837
61a31a67
JK
88382013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8839
8840 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8841 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8842 kill_status to outer block.
8843
05c56a9d
JK
88442013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8845
8846 Fix entry-values if the callee called a noreturn function.
8847 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8848 get_frame_address_in_block. Add new comment.
8849
9112db09
JK
88502013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8851
8852 Fix entry-values in C++ across CUs.
8853 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8854 lookup_minimal_symbol. Add a comment.
8855 * dwarf2read.c
8856 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8857 DW_AT_linkage_name.
8858
9b67fcec
YQ
88592013-03-08 Yao Qi <yao@codesourcery.com>
8860
8861 * tracepoint.c (_initialize_tracepoint): Indent the code.
8862
6221be90
PA
88632013-03-08 Pedro Alves <palves@redhat.com>
8864
8865 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8866 (parse_find_args, find_command): Change type of pattern buffer
8867 locals to 'gdb_byte *'.
8868
be9a119c 88692013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8870 Hafiz Abid Qadeer <abidh@codesourcery.com>
8871
8872 * NEWS: Mention set and show trace-buffer-size commands.
8873 Mention new packet.
8874 * target.h (struct target_ops): New method
8875 to_set_trace_buffer_size.
8876 (target_set_trace_buffer_size): New macro.
8877 * target.c (update_current_target): Set up new method.
8878 * tracepoint.c (trace_buffer_size): New global.
8879 (start_tracing): Send it to the target.
8880 (set_trace_buffer_size): New function.
8881 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8882 * remote.c (remote_set_trace_buffer_size): New function.
8883 (_initialize_remote): Use it.
8884 (QTBuffer:size) New remote command.
8885 (PACKET_QTBuffer_size): New enum.
8886 (remote_protocol_features): Add an entry for
8887 PACKET_QTBuffer_size.
8888
7da3ab79
TT
88892013-03-08 Tom Tromey <tromey@redhat.com>
8890
8891 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8892 variable.
8893
0c1f71e7
PA
88942013-03-07 Pedro Alves <palves@redhat.com>
8895
8896 * target.c (target_read_stralloc, target_fileio_read_alloc):
8897 *Cast pointer to 'gdb_byte *' in target call.
8898
c8af03a2
PA
88992013-03-07 Pedro Alves <palves@redhat.com>
8900
8901 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8902 call.
8903
529480d0
KS
89042013-03-07 Keith Seitz <keiths@redhat.com>
8905
8906 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8907 (trace_pass_command): Likewise.
8908 * cli/cli-cmds.c: Include cli/cli-utils.h.
8909 (source_command): Use skip-spaces.
8910 (disassemble_command): Likewise.
8911 * findcmd.c: Include cli/cli-utils.h.
8912 (parse_find_args): Use skip_spaces.
8913 * go32-nat.c: Include cli/cli-utils.h.
8914 (go32_sldt): Use skip_spaces.
8915 (go32_sgdt): Likewise.
8916 (go32_sidt): Likewise.
8917 (go32_pde): Likewise.
8918 (go32_pte): Likewise.
8919 (go32_pte_for_address): Likewise.
8920 * infcmd.c: Include cli/cli-utils.h.
8921 (registers_info): Use skip_spaces.
8922 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8923 (linux_info_proc): Likewise.
8924 * linux-thread-db.c: Include cli/cli-utils.h.
8925 (info_auto_load_libthread_db): Use skip_spaces_const.
8926 * m32r-rom.c: Include cli/cli-utils.h.
8927 (m32r_upload_command): Use skip_spaces.
8928 * maint.c: Include cli/cli-utils.h.
8929 (maintenance_translate_address): Use skip_spaces.
8930 * mi/mi-parse.c: Include cli/cli-utils.h.
8931 (mi_parse_argv): Use skip_spaces.
8932 (mi_parse): Likewise.
8933 * minsyms.c: Include cli/cli-utils.h.
8934 (msymbol_hash_iw): Use skip_spaces_const.
8935 * objc-lang.c: Include cli/cli-utils.h.
8936 (parse_selector): Use skip_spaces.
8937 (parse_method): Likewise.
8938 * python/python.c: Include cli/cli-utils.h.
8939 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8940 (python_command)[HAVE_PYTHON]: Likewise.
8941 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8942 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8943 (m32r_load): Use skip_spaces.
8944 * serial.c: Include cli/cli-utils.h.
8945 (serial_open): Use skip_spaces_const.
8946 * stack.c: Include cli/cli-utils.h.
8947 (parse_frame_specification_1): Use skip_spaces_const.
8948 * symfile.c: Include cli/cli-utils.h.
8949 (set_ext_lang_command): Use skip_spaces.
8950 * symtab.c: Include cli/cli-utils.h.
8951 (rbreak_command): Use skip_spaces.
8952 * thread.c (thread_name_command): Use skip_spaces.
8953 * tracepoint.c (validate_actionline): Use skip_spaces.
8954 (encode_actions_1): Likewise.
8955 (trace_find_range_command): Likewise.
8956 (trace_find_outside_command): Likewise.
8957 (trace_dump_actions): Likewise.
8958
ac91cd70
PA
89592013-03-07 Pedro Alves <palves@redhat.com>
8960
8961 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8962 * expprint.c (print_subexp_standard): Likewise.
8963 * utils.c (host_char_to_target): Likewise.
8964 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8965 * varobj.c (value_get_print_value): Change type of local to char*.
8966 Cast it gdb_byte * in call to language printer.
8967
2898e560
PA
89682013-03-07 Pedro Alves <palves@redhat.com>
8969
8970 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8971 gdb_byte *'.
8972 (make_wchar_iterator): Remove cast to char*.
8973 (wchar_iterate): Change type of local.
8974
a09b4448
PA
89752013-03-07 Pedro Alves <palves@redhat.com>
8976
8977 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8978 for 'regcache->register_status'.
8979
20ced3e4
PA
89802013-03-07 Pedro Alves <palves@redhat.com>
8981
c2d6a675 8982 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
8983 int.
8984
fe106009
PA
89852013-03-07 Pedro Alves <palves@redhat.com>
8986
8987 * stap-probe.c (handle_stap_probe): Add cast to char*.
8988
8ac2c12b
PA
89892013-03-07 Pedro Alves <palves@redhat.com>
8990
8991 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8992 RECORD_MSGRCV>: Pass a signed variable to
8993 regcache_raw_read_signed, instead of an unsigned one.
8994
99f0a309
PA
89952013-03-07 Pedro Alves <palves@redhat.com>
8996
8997 * remote-notif.c (notif_debug): Change type to int.
8998 * remote-notif.h (notif_debug): Likewise.
8999
964b8317
PA
90002013-03-07 Pedro Alves <palves@redhat.com>
9001
9002 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9003
f0cc8ad4
PA
90042013-03-07 Pedro Alves <palves@redhat.com>
9005
9006 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9007 * remote.h (hex2bin, bin2hex): ... here.
9008 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9009
77dec115
EZ
90102013-03-07 Eli Zaretskii <eliz@gnu.org>
9011
9012 * utils.c (initialize_utils): Improve doc strings of "set/show
9013 width", "set/show height", and "set/show pagination".
9014
741d92cf
KS
90152013-03-06 Keith Seitz <keiths@redhat.com>
9016
9017 * ax-gdb.c (gen_printf): Make FORMAT const.
9018 * ax-gdb.h (gen_printf): Likewise.
9019 * ax-general.c (ax_string): Make STR const.
9020 * ax.h (ax_string): Likewise.
9021
7b6c814e
DE
90222013-03-06 Doug Evans <dje@google.com>
9023
9024 * elfread.c (elf_symfile_read): Move debugging printf to more
9025 logical location.
9026
634334ab
PA
90272013-03-06 Pedro Alves <palves@redhat.com>
9028
9029 * python/py-utils.c (target_string_to_unicode): Delete function.
9030 * python/python-internal.h (target_string_to_unicode): Delete
9031 declaration.
9032
e482a1a7
PM
90332013-03-06 Pierre Muller <muller@sourceware.org>
9034
9035 * linespec.c (get_current_search_block): ARI fix, use (void)
9036 for empty parameter list.
9037
4eeaa230
DE
90382013-03-05 Doug Evans <dje@google.com>
9039
9040 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9041 of old ada_lookup_symbol_list. In !full_search case, don't
9042 search superblocks.
9043 (ada_lookup_symbol_list): Delete arg full_search, all callers
9044 updated. Call ada_lookup_symbol_list_worker.
9045 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9046 * ada-lang.h (ada_lookup_symbol_list): Update.
9047 * language.h (language_defn): Update comment for
9048 la_iterate_over_symbols.
9049 * linespec.c (iterate_over_file_blocks): New function.
9050 (iterate_over_all_matching_symtabs): Call it.
9051 (lookup_prefix_sym): Ditto.
9052 (get_current_search_block): New function.
9053 (get_search_block): Delete.
9054 (find_label_symbols): Call get_current_search_block.
9055 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9056 * symtab.c (iterate_over_symbols): Don't search superblocks.
9057
b69b1fb1
YQ
90582013-03-05 Yao Qi <yao@codesourcery.com>
9059
9060 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9061 parameter VAR's type from "unsigned int" to "int".
9062 * command.h (var_zuinteger_unlimited): Update its comments.
9063 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9064
3c095f49
CV
90652013-03-05 Corinna Vinschen <vinschen@redhat.de>
9066
9067 * NEWS: Mention new target x86_64-*-cygwin*.
9068
b5b0b0af
CV
90692013-03-05 Corinna Vinschen <vinschen@redhat.de>
9070
9071 * configure.host: Add x86_64-*-cygwin* as host.
9072 * configure.tgt: Add x86_64-*-cygwin* as target.
9073 * config/i386/cygwin64.mh: New file.
9074
f6f99966
JK
90752013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9076
9077 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9078
33f448b1
JK
90792013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9080
9081 * linespec.c (struct linespec_canonical_name): New.
9082 (struct linespec_state): Change canonical_names type to it.
9083 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9084 xrealloc element size. Initialize the different CANONICAL fields.
9085 (canonical_to_fullform): New.
9086 (filter_results): Use it. Add variables canonical, fullform and
9087 cleanup.
9088 (struct decode_line_2_item, decode_line_2_compare_items): New.
9089 (decode_line_2): Remove variables iter and item_names, add variables
9090 items and items_count. Modify the code for these new variables.
9091
feb14725
CV
90922013-03-04 Corinna Vinschen <vinschen@redhat.com>
9093
9094 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9095 calling do_cleanup.
9096
e83b17ba
HZ
90972013-03-04 Luis Machado <lgustavo@codesourcery.com>
9098
9099 * tracepoint.c (build_traceframe_info): Add code for byte order.
9100
a2d13a0d
KB
91012013-03-02 Kevin Buettner <kevinb@redhat.com>
9102
8dddcae8
KB
9103 * v850-tdep.c: (v850e2_register_name): Revise system register
9104 names to match current V850E2M architecture specifications.
9105 Update register number enum comments too.
f5aee5ee 9106
d79e58d8
JW
91072013-03-01 Jiong Wang <jiwang@tilera.com>
9108 Pedro Alves <palves@redhat.com>
9109
9110 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9111 to END_ADDR.
9112 (tilegx_skip_prologue): Limit prologue analysis to section end.
9113
c4be5165
JK
91142013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9115
9116 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9117 use it.
9118
e362b510
PA
91192013-03-01 Pedro Alves <palves@redhat.com>
9120
9121 Use gdb_byte for bytes from the program being debugged.
9122
9123 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9124 Change type of local 'buf' to gdb_byte.
9125 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9126 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9127 * cris-tdep.c (cris_sigcontext_addr)
9128 (cris_sigtramp_frame_unwind_cache): Likewise.
9129 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9130 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9131 Likewise.
9132 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9133 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9134 (hppa32_hpux_search_dummy_call_sequence)
9135 (hppa_hpux_supply_save_state): Likewise.
9136 * hppa-linux-tdep.c (insns_match_pattern)
9137 (hppa_linux_find_global_pointer): Likewise.
9138 * hppa-tdep.c (hppa_in_function_epilogue_p)
9139 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9140 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9141 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9142 (i386fbsd_collect_uthread): Likewise.
9143 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9144 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9145 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9146 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9147 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9148 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9149 (ia64_libunwind_frame_prev_register)
9150 (ia64_libunwind_sigtramp_frame_this_id)
9151 (ia64_find_global_pointer_from_dynamic_section)
9152 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9153 (ia64_unwind_pc): Likewise.
9154 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9155 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9156 (m68hc11_extract_return_value): Likewise.
9157 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9158 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9159 (mep_get_insn, mep_push_dummy_call): Likewise.
9160 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9161 (mips_linux_in_dynsym_stub): Likewise.
9162 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9163 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9164 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9165 to gdb_byte.
9166 * remote-mips.c (mips_set_register): Likewise.
9167 * remote-sim.c (gdbsim_fetch_register): Likewise.
9168 * score-tdep.c (score7_fetch_inst): Change type of parameter
9169 'memblock' and local 'buf' to gdb_byte.
9170 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9171 Change type of local 'buf' to gdb_byte. Adjust.
9172 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9173 to gdb_byte**.
9174 (score7_analyze_prologue): Change type of 'memblock' and
9175 'memblock_ptr' locals to gdb_byte*.
9176 * sh64-tdep.c (sh64_extract_return_value)
9177 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9178 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9179 * solib-pa64.c (pa64_solib_create_inferior_hook)
9180 (pa64_open_symbol_file_object): Remove local 'buf'.
9181 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9182 (som_open_symbol_file_object): Likewise.
9183 * solib-spu.c (spu_current_sos): Likewise.
9184 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9185 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9186 (spu_store_registers): Likewise.
9187 * target.c (debug_print_register): Likewise.
9188 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9189 * xstormy16-tdep.c (xstormy16_store_return_value)
9190 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9191 (xstormy16_find_jmp_table_entry): Likewise.
9192
75cc61ca 91932013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9194
9195 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9196 (tilegx_gdbarch_init): Install it.
9197
ddb08e9c
TT
91982013-02-28 Tom Tromey <tromey@redhat.com>
9199
9200 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9201 PyLong_Check.
9202
62d7fb51
DE
92032013-02-28 Doug Evans <dje@google.com>
9204
9205 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9206 * python/python.c (gdbpy_find_pc_line): Ditto.
9207
c4a9e8b4
TT
92082013-02-28 Tom Tromey <tromey@redhat.com>
9209
9210 * contrib/excheck.py: New file.
9211 * contrib/exsummary.py: New file.
9212 * contrib/gcc-with-excheck: New file.
9213
7f6a5dde
TT
92142013-02-28 Tom Tromey <tromey@redhat.com>
9215
9216 * python/python.c (gdbpy_print_stack): Call begin_line and
9217 fprintf_filtered inside TRY_CATCH.
9218
9e974e55
TT
92192013-02-28 Tom Tromey <tromey@redhat.com>
9220
9221 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9222 inside TRY_CATCH.
9223
dd5fa3e7
TT
92242013-02-28 Tom Tromey <tromey@redhat.com>
9225
9226 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9227 frame_object_to_frame_info inside TRY_CATCH.
9228
86a3263f
TT
92292013-02-28 Tom Tromey <tromey@redhat.com>
9230
9231 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9232 TRY_CATCH.
9233
81b52a3a
TT
92342013-02-28 Tom Tromey <tromey@redhat.com>
9235
9236 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9237
d50a0ce2
CV
92382013-02-27 Corinna Vinschen <vinschen@redhat.com>
9239
9240 * windows-nat.c: Throughout, fix format strings and casts of
9241 printf-like functions to avoid type related warnings on all
9242 platforms.
9243 (handle_output_debug_string): Fetch context information address
9244 from debug string using string_to_core_addr.
9245
e1f58301
JW
92462013-02-27 Jiong Wang <jiwang@tilera.com>
9247
9248 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9249 * regformats/reg-tilegx32.dat: New.
9250
4fcd89fc
JW
92512013-02-27 Jiong Wang <jiwang@tilera.com>
9252
9253 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9254
748d24e6
JW
92552013-02-27 Jiong Wang <jiwang@tilera.com>
9256
9257 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9258
6c8e944d
YQ
92592013-02-27 Yao Qi <yao@codesourcery.com>
9260 Pedro Alves <palves@redhat.com>
9261
9262 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9263 pc/tp/range/outside, look for the next trace frame instead of
9264 always starting from frame 0.
6c8e944d 9265
acd7db30
AG
92662013-02-26 Anthony Green <green@moxielogic.com>
9267
9268 * configure.tgt: Add support for moxie-*-rtems* target.
9269
025e6dce
PA
92702013-02-25 Pedro Alves <palves@redhat.com>
9271
9272 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9273 warning text.
9274
ca9c94ef
MR
92752013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9276
9277 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9278 if $fp is used as the virtual frame pointer.
9279
24c274a1
AM
92802013-02-23 Alan Modra <amodra@gmail.com>
9281
9282 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9283 symbol size.
9284 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9285 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9286 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9287 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9288
bfada189
JK
92892013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9290
9291 Code cleanup.
9292 * elfread.c (build_id_bfd_get): Make the return type const.
9293 (build_id_verify): Make the check parameter const.
9294 (build_id_to_debug_filename): Make the build_id parameter and variable
9295 data const.
9296 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9297
c0355132
AM
92982013-02-21 Alan Modra <amodra@gmail.com>
9299
9300 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9301
9f44fbc0
SCR
93022013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9303
9304 Add a new method 'disassemble' to gdb.Architecture class.
9305 * python/py-arch.c (archpy_disassmble): Implementation of the
9306 new method gdb.Architecture.disassemble.
9307 (arch_object_methods): Add entry for the new method.
9308
b74ea3eb
JW
93092013-02-20 Jiong Wang <jiwang@tilera.com>
9310
9311 * MAINTAINERS (Write After Approval): Add myself to the list.
9312
61a672f1
PA
93132013-02-19 Pedro Alves <palves@redhat.com>
9314
9315 Garbage collect 'struct monitor_ops'::load_routine.
9316
9317 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9318 * monitor.c (monitor_load): No longer call
9319 current_monitor->load_routine.
9320 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9321 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9322 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9323
40e397df
PA
93242013-02-19 Pedro Alves <palves@redhat.com>
9325
9326 PR gdb/15161
9327
9328 Harmonize with generic_load.
9329
9330 * monitor.c: Include "readline/readline.h".
9331 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9332 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9333 long/strtol for the 'load_offset' local. Error out if no argument
9334 is given or if too many arguments are given. Tilde expand the
9335 passed in file name.
9336
f698ca8e
KT
93372013-02-19 Kai Tietz <ktietz@redhat.com>
9338
9339 PR gdb/15161
9340 * symfile.c (load_section_data): Change type of load_offset
9341 to CORE_ADDR.
9342 (generic_load): User strtoulst instead of strtoul for conversion
9343 of load_offset.
9344
3361b059
WL
93452013-02-19 Jiong Wang <jiwang@tilera.com>
9346
9347 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9348 for return address, "lr" register, saved on stack.
9349 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9350 after we invoke tilegx_analyze_prologue.
9351
3e9d5130
WL
93522013-02-19 Jiong Wang <jiwang@tilera.com>
9353
bb1bcd86
WL
9354 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9355
3361b059 93562013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9357
b74ea3eb 9358 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9359
4aaf2503
WL
93602013-02-19 Jiong Wang <jiwang@tilera.com>
9361
b74ea3eb 9362 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9363 (tilegx_write_pc): New function.
9364 (tilegx_cannot_reference_register): Return zero if REGNO
9365 is TILEGX_FAULTNUM_REGNUM.
9366 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9367 (tilegx_register_name): Add handling of "faultnum" register.
9368 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9369 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9370 handling of TILEGX_FAULTNUM_REGNUM.
9371 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9372
bc23a956
WL
93732013-02-19 Jiong Wang <jiwang@tilera.com>
9374
9375 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9376 should be aligned to 64bit.
bc23a956 9377
42f45f1a
KT
93782013-02-19 Kai Tietz <ktietz@redhat.com>
9379
9380 * windows-nat.c (windows_xfer_memory): Fix debug-output
9381 for LLP64.
9382
6ce4c112
LL
93832013-02-19 Lei Liu <lei.liu2@windriver.com>
9384
9385 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9386 Don't check DSP register number if HAVE_DSP is not set.
9387
30e8ee25
AM
93882013-02-19 Alan Modra <amodra@gmail.com>
9389
9390 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9391 throughout file instead.
9392 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9393 Don't xmalloc return value.
9394 (build_id_verify): Similarly. Don't xfree.
9395 (build_id_to_debug_filename): Update.
9396 (find_separate_debug_file_by_buildid): Update, don't xfree.
9397
4c9ad8c2
TT
93982013-02-18 Tom Tromey <tromey@redhat.com>
9399
9400 PR gdb/15102:
9401 * dwarf2read.c (read_subrange_type): Use result of
9402 'check_typedef'.
9403
983dc440
YQ
94042013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9405
9406 * frame.c: Remove one extra white space after #include
9407 directive.
9408
7fb2b84a
JK
94092013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9410
9411 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9412
edceb2a9
JK
94132013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9414
9415 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9416 and dir commands into an if block.
9417
e81b7af8
TT
94182013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9419
9420 * python/py-breakpoint (struct pybp_code): Use int instead of
9421 enum type_code.
9422
f5911ea1
HAQ
94232013-02-15 Pedro Alves <pedro@codesourcery.com>
9424 Hafiz Abid Qadeer <abidh@codesourcery.com>
9425
9426 * NEWS: Mention new field "trace-file".
9427 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9428 (tfile_open): Record the trace file's filename in the trace
9429 status.
9430 (tfile_files_info): Mention the name of the trace file.
9431 Check the "filename" field explicitely.
9432 (trace_status_command): Explicitely check "filename" field.
9433 (trace_find_command): Ditto.
9434 (trace_find_pc_command): Ditto.
9435 (trace_find_tracepoint_command): Ditto.
9436 (trace_find_line_command): Ditto.
9437 (trace_find_range_command): Ditto.
9438 (trace_find_outside_command): Ditto.
9439 * tracepoint.h (struct trace_status) <from_file>: Rename it
9440 to "filename" and make it hold the trace file's filename
9441 instead of a boolean.
9442 * remote.c (remote_get_trace_status): Initialize "filename"
9443 field with NULL instead of 0.
9444
796cb314
YQ
94452013-02-15 Yao Qi <yao@codesourcery.com>
9446
9447 * remote.c: Fix a typo.
9448
42e79b1d
PM
94492013-02-14 Pierre Muller <muller@sourceware.org>
9450
9451 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9452
baea0dae
PA
94532013-02-14 Pedro Alves <palves@redhat.com>
9454
9455 * utils.c (savestring): Don't #undef it. Move function to
9456 common/common-utils.c.
9457 * common/common-utils.c: Include gdb_string.h.
9458 (savestring): Move here from utils.c.
9459 * common/common-utils.h (savestring): Declare.
9460
57c3b6ed
PA
94612013-02-14 Pedro Alves <palves@redhat.com>
9462
9463 * utils.c (savestring): Rename parameter 'size' to 'len'.
9464
d6c44983
YZ
94652013-02-14 Pedro Alves <palves@redhat.com>
9466 Yufeng Zhang <yufeng.zhang@arm.com>
9467
9468 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9469 (aarch64_inferior_data, struct aarch64_inferior_data):
9470 Delete.
9471 (struct aarch64_process_info): New.
9472 (aarch64_process_list): New global.
9473 (aarch64_find_process_pid, aarch64_add_process)
9474 (aarch64_process_info_get): New functions.
9475 (aarch64_inferior_data_get): Delete.
9476 (aarch64_process_info_get): New function.
9477 (aarch64_forget_process): New function.
9478 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9479 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9480 aarch64_get_debug_reg_state.
9481 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9482 instead of linux_nat_iterate_watchpoint_lwps.
9483 (aarch64_linux_new_fork): New function.
9484 (aarch64_linux_child_post_startup_inferior): Use
9485 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9486 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9487 (aarch64_linux_remove_hw_breakpoint)
9488 (aarch64_handle_aligned_watchpoint)
9489 (aarch64_handle_unaligned_watchpoint)
9490 (aarch64_linux_insert_watchpoint)
9491 (aarch64_linux_remove_watchpoint)
9492 (aarch64_linux_stopped_data_address): Adjust to pass the current
9493 process id to aarch64_debug_reg_state.
9494 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9495 linux_nat_new_fork hook, and aarch64_forget_process as
9496 linux_nat_forget_process hook; remove the call to
9497 register_inferior_data_with_cleanup.
9498
4819b3f8
PA
94992013-02-14 Pedro Alves <palves@redhat.com>
9500
9501 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9502 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9503 lval_memory.
9504
1773c82c
HAQ
95052013-02-14 Pedro Alves <pedro@codesourcery.com>
9506 Hafiz Abid Qadeer <abidh@codesourcery.com>
9507
9508 * tracepoint.h (validate_trace_state_variable_name): Declare.
9509 * tracepoint.c (validate_trace_state_variable_name): New.
9510 (trace_variable_command): Parse the trace state variable's name
9511 without using parse_expression. Do several validations.
9512 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9513 trace state variable's name with parse_expression. Validate it.
9514
53778a97
YQ
95152013-02-14 Yao Qi <yao@codesourcery.com>
9516
9517 * infcmd.c (breakpoint_proceeded): Remove it.
9518
7b3ae3a6
YQ
95192013-02-14 Yao Qi <yao@codesourcery.com>
9520
9521 * tracepoint.c (end_actions_pseudocommand): Make it static.
9522 (while_stepping_pseudocommand): Likewise.
9523 * tracepoint.h (end_actions_pseudocommand): Remove the
9524 declaration.
9525 (while_stepping_pseudocommand): Likewise.
9526
64580925
YQ
95272013-02-14 Yao Qi <yao@codesourcery.com>
9528
9529 * cli/cli-decode.c (help_cmd): Remove the declaration of
9530 "cmdlist".
9531 (help_all): Likewise.
9532
26cb8b7c
PA
95332013-02-13 Pedro Alves <palves@redhat.com>
9534
9535 * amd64-linux-nat.c (update_debug_registers_callback):
9536 Update comment.
9537 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9538 iterate_over_lwps.
9539 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9540 i386_debug_reg_state.
9541 (amd64_linux_new_fork): New function.
9542 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9543 linux_nat_new_fork hook, and i386_forget_process as
9544 linux_nat_forget_process hook.
9545 * i386-linux-nat.c (update_debug_registers_callback):
9546 Update comment.
a8256ea1 9547 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9548 iterate_over_lwps.
9549 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9550 i386_debug_reg_state.
9551 (i386_linux_new_fork): New function.
9552 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9553 linux_nat_new_fork hook, and i386_forget_process as
9554 linux_nat_forget_process hook.
9555 * i386-nat.c (i386_init_dregs): Delete.
9556 (i386_inferior_data, struct i386_inferior_data):
9557 Delete.
9558 (struct i386_process_info): New.
9559 (i386_process_list): New global.
9560 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9561 New functions.
9562 (i386_inferior_data_get): Delete.
9563 (i386_process_info_get): New function.
9564 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9565 (i386_forget_process): New function.
9566 (i386_cleanup_dregs): Rewrite.
9567 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9568 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9569 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9570 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9571 to i386_debug_reg_state.
9572 (i386_use_watchpoints): Don't register inferior data.
9573 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9574 adjust comment.
9575 (i386_forget_process): Declare.
9576 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9577 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9578 New static globals.
9579 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9580 (add_initial_lwp): New, factored out from ...
9581 (add_lwp): ... this. Don't check the number of lwps before
9582 calling linux_nat_new_thread.
9583 (linux_nat_iterate_watchpoint_lwps): Delete.
9584 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9585 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9586 forks and vforks.
9587 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9588 initial lwp.
9589 (linux_nat_kill, linux_nat_mourn_inferior): Call
9590 linux_nat_forget_process.
9591 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9592 (linux_nat_forget_process): New functions.
9593 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9594 type.
9595 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9596 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9597 types.
9598 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9599 (linux_nat_forget_process): New declarations.
9600
9601 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9602 (amd64fbsd_mourn_inferior): New function.
9603 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9604 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9605
5befea72
MS
96062013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9607
55015247
YQ
9608 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9609 Adding _().
5befea72 9610
1d3ffd6b
MS
96112013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9612
9613 * aarch64-linux-nat.c (debug_reg_change_callback)
9614 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9615 %s and phex().
9616
6eb04473
MS
96172013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9618
9619 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9620 with LONGEST.
9621
a016fc87
HAQ
96222013-02-13 Pedro Alves <palves@redhat.com>
9623 Hafiz Abid Qadeer <abidh@codesourcery.com>
9624
9625 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9626
e234dfaf
TT
96272013-02-12 Tom Tromey <tromey@redhat.com>
9628
9629 PR symtab/11464:
9630 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9631 NAME return.
9632 (classify_inner_name): Remove 'first_name' argument, add
9633 'context'. Remove unused variable.
9634 (yylex): Explicitly maintain the context type. Exit loop earlier
9635 if NAME result is seen.
9636
0b1afbb3
PA
96372013-02-12 Pedro Alves <palves@redhat.com>
9638
9639 * amd64-darwin-tdep.c: Add (C) after Copyright.
9640 * cli/cli-cmds.h: Ditto.
9641 * cli/cli-decode.c: Ditto.
9642 * cli/cli-decode.h: Ditto.
9643 * cli/cli-dump.c: Ditto.
9644 * cli/cli-dump.h: Ditto.
9645 * cli/cli-interp.c: Ditto.
9646 * cli/cli-logging.c: Ditto.
9647 * cli/cli-script.c: Ditto.
9648 * cli/cli-script.h: Ditto.
9649 * cli/cli-setshow.c: Ditto.
9650 * cli/cli-setshow.h: Ditto.
9651 * cli/cli-utils.c: Ditto.
9652 * cli/cli-utils.h: Ditto.
9653 * config/alpha/nm-osf3.h: Ditto.
9654 * config/djgpp/djconfig.sh: Ditto.
9655 * config/i386/nm-fbsd.h: Ditto.
9656 * config/i386/nm-i386gnu.h: Ditto.
9657 * config/nm-linux.h: Ditto.
9658 * config/nm-nto.h: Ditto.
9659 * config/rs6000/nm-rs6000.h: Ditto.
9660 * config/sparc/nm-sol2.h: Ditto.
9661 * darwin-nat-info.c: Ditto.
9662 * dfp.c: Ditto.
9663 * dfp.h: Ditto.
9664 * gdb-demangle.h: Ditto.
9665 * i386-darwin-nat.c: Ditto.
9666 * i386-darwin-tdep.c: Ditto.
9667 * linux-fork.h: Ditto.
9668 * m32c-tdep.c: Ditto.
9669 * microblaze-linux-tdep.c: Ditto.
9670 * microblaze-rom.c: Ditto.
9671 * microblaze-tdep.c: Ditto.
9672 * microblaze-tdep.h: Ditto.
9673 * mips-linux-tdep.h: Ditto.
9674 * ppc-ravenscar-thread.c: Ditto.
9675 * ppc-ravenscar-thread.h: Ditto.
9676 * prologue-value.c: Ditto.
9677 * prologue-value.h: Ditto.
9678 * ravenscar-thread.c: Ditto.
9679 * ravenscar-thread.h: Ditto.
9680 * sparc-ravenscar-thread.c: Ditto.
9681 * sparc-ravenscar-thread.h: Ditto.
9682 * tilegx-linux-tdep.c: Ditto.
9683 * unwind_stop_reasons.def: Ditto.
9684 * windows-nat.h: Ditto.
9685 * xtensa-linux-tdep.c: Ditto.
9686 * xtensa-xtregs.c: Ditto.
9687 * regformats/regdat.sh: Ditto.
9688 * regformats/regdef.h: Ditto.
9689
6c01dd94
PA
96902013-02-12 Pedro Alves <palves@redhat.com>
9691
9692 * break-catch-sig.c: Update copyright years.
9693
b65a2bd9
SCR
96942013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9695
9696 Add support for a destructor for ui_out data and use it to
9697 provide a ui_out destructor.
9698 * ui-out.h: Declare the new ui_out destructor.
9699 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9700 * ui-out.c (default_data_destroy): Add a default data destructor
9701 which does nothing.
9702 (default_ui_out_impl): Set the new data_destroy field to
9703 default_data_destroy
9704 (uo_data_destroy): Local function which invokes the data
9705 destructor if present.
9706 (clear_table): Local function which clears the table data of a
9707 ui_out object.
9708 (ui_out_destroy): Public function which frees a ui_out object.
9709 (ui_out_table_end): Use the new clear_table function.
9710 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9711 NULL.
9712 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9713 to NULL.
9714
c2792f5a
DE
97152013-02-11 Doug Evans <dje@google.com>
9716
9717 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9718 (printf_decfloat): New function. Broken out from ui_printf.
9719 Remove unnecessary code to shift the entire format string down.
9720 (printf_pointer): New function.
9721 (ui_printf): Code to print C strings, wide C strings, decfloats,
9722 and pointers moved to separate functions.
9723
d9e98382
SDJ
97242013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9725
9726 * valops.c (value_assign): Handling bitfield offset in
9727 `lval_internalvar_component' case.
9728
4ff3ce77
DE
97292013-02-08 Doug Evans <dje@google.com>
9730
9731 * common/format.c (parse_format_string): Fix whitespace.
9732
901900c4
MGD
97332013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9734
9735 * stack.c (return_command): Work around uninitialized variable
9736 warning.
9737
b5dbc8d4
YZ
97382013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9739
9740 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9741 number of the registers from 36 to 34.
9742
51d66578
MS
97432013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9744
9745 * NEWS: Mention new AArch64 native and target support.
9746
176b1c95
MS
97472013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9748
9749 * MAINTAINERS (Write After Approval): Add myself.
9750
9d19df75
MS
97512013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9752 Marcus Shawcroft <marcus.shawcroft@arm.com>
9753 Nigel Stephens <nigel.stephens@arm.com>
9754 Yufeng Zhang <yufeng.zhang@arm.com>
9755
9756 * aarch64-linux-nat.c: New file.
9757 * config/aarch64/linux.mh: New file.
9758 * configure.host: Add AArch64.
9759 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9760
7e1e0340
DE
97612013-02-07 Doug Evans <dje@google.com>
9762
9763 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9764 disassemble command.
9765
45e25a36
MS
97662013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9767
9768 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9769 set_gdbarch_fetch_tls_load_module_address.
9770
bbfdfe1c
DM
97712013-02-06 David S. Miller <davem@davemloft.net>
9772
9773 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9774 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9775 * value.c (struct_return_convention): New function.
9776 (using_struct_return): Implement in terms of struct_return_convention.
9777 * value.h (struct_return_convention): Declare.
9778 * stack.c (return_command): Allow successful overriding of the return
9779 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9780
bc9abe4a
TT
97812013-02-06 Tom Tromey <tromey@redhat.com>
9782
9783 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9784 outside of TRY_CATCH.
9785
134a2066
YQ
97862013-02-06 Yao Qi <yao@codesourcery.com>
9787
9788 * mi/mi-interp.c: Include "tracepoint.h".
9789 (mi_tsv_modified): Declare.
9790 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9791 (mi_interpreter_init): Call observer_attach_tsv_modified.
9792 (mi_tsv_modified): New.
9793 (mi_tsv_created, mi_tsv_deleted): Update.
9794 * tracepoint.c (trace_variable_command): Call
9795 observer_notify_tsv_modified if the initial value of tsv is
9796 changed.
9797 (delete_trace_state_variable): Call
9798 observer_notify_tsv_deleted earlier.
9799 (trace_variable_command): Caller update.
9800 (create_tsv_from_upload): Likewise.
9801 * observer.sh: Declare "struct trace_state_variable".
9802
9803 * NEWS: Mention the new MI notification "=tsv-modified".
9804
59be2b6a
DE
98052013-02-05 Doug Evans <dje@google.com>
9806
9807 * completer.c (location_completer): Fix typo in comment.
9808
d30113d4
JK
98092013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9812 ADDRESS sorted.
9813
14ac654f
MS
98142013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9815
9816 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9817 Refactor if statement to avoid trailing || operator.
9818
543bf33d
AT
98192013-02-05 Andreas Tobler <andreast@fgznet.ch>
9820
9821 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9822
dc18f110
AT
98232013-02-04 Andreas Tobler <andreast@fgznet.ch>
9824
9825 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9826 * configure.host: Add powerpc*-*-freebsd* target.
9827 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9828 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9829 * config/powerpc/fbsd.mh: New file.
9830
b3ac9c77
SDJ
98312013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9832 Denys Vlasenko <dvlasenk@redhat.com>
9833 Pedro Alves <palves@redhat.com>
9834
9835 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9836 (struct elf_internal_linux_prpsinfo): Forward declare.
9837 * gdbarch.h, gdbarch.c: Regenerate.
9838 * linux-tdep.c: Include `cli/cli-utils.h'.
9839 (linux_fill_prpsinfo): New function.
9840 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9841 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9842 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9843 depending on gdbarch pointer bitness.
9844 * ppc-linux-tdep.c: Include elf-bfd.h.
9845 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9846 on 32-bit.
9847
176eb98c
MS
98482013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9849 Marcus Shawcroft <marcus.shawcroft@arm.com>
9850 Nigel Stephens <nigel.stephens@arm.com>
9851 Yufeng Zhang <yufeng.zhang@arm.com>
9852
9853 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9854
cf0dbd6f
MS
98552013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9856 Marcus Shawcroft <marcus.shawcroft@arm.com>
9857 Nigel Stephens <nigel.stephens@arm.com>
9858 Yufeng Zhang <yufeng.zhang@arm.com>
9859
9860 * aarch64-newlib-tdep.c: New file.
9861 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9862 aarch64*-*-elf.
9863 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9864 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9865 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9866 * osabi.c (gdb_osabi_names): Add "Newlib".
9867
1ae3db19
MS
98682013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9869 Marcus Shawcroft <marcus.shawcroft@arm.com>
9870 Nigel Stephens <nigel.stephens@arm.com>
9871 Yufeng Zhang <yufeng.zhang@arm.com>
9872
9873 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9874 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9875 * aarch64-linux-tdep.c: New file.
9876 * aarch64-linux-tdep.h: New file.
9877 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9878 * configure.tgt: Add aarch64-none-linux-gnu.
9879
07b287a0
MS
98802013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9881 Marcus Shawcroft <marcus.shawcroft@arm.com>
9882 Nigel Stephens <nigel.stephens@arm.com>
9883 Yufeng Zhang <yufeng.zhang@arm.com>
9884
9885 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9886 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9887 (ALLDEPFILES): Add aarch64-tdep.c.
9888 * aarch64-tdep.c: New file.
9889 * aarch64-tdep.h: New file.
9890 * configure.tgt: Add AArch64.
9891 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9892 (aarch64-expedite): New definition.
9893 * features/aarch64-core.xml: New file.
9894 * features/aarch64-fpu.xml: New file.
9895 * features/aarch64-without-fpu.c: New file (generated).
9896 * features/aarch64-without-fpu.xml: New file.
9897 * features/aarch64.c: New file (generated).
9898 * features/aarch64.xml: New file.
9899 * regformats/aarch64-without-fpu.dat: New file (generated).
9900 * regformats/aarch64.dat: New file (generated).
9901
0f1b18ab
JK
99022013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9903
9904 * contrib/expect-read1.c: New file.
9905 * contrib/expect-read1.sh: New file.
9906
233d95b5
JK
99072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 * dwarf2read.c (file_file_name): New function with code from
9910 file_full_name.
9911 (file_full_name): Move most of the code to file_file_name.
9912 (macro_start_file): Rename variable full_name to file_name and use
9913 file_file_name for it. Add comp_dir parameter to new_macro_table.
9914 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9915 macro_source_file->filename access by macro_source_fullname call.
9916 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9917 caller.
9918 * macrotab.c (struct macro_table): New field comp_dir.
9919 (macro_include): New variables link_fullname and source_fullname.
9920 Replace any macro_source_file->filename access by macro_source_fullname
9921 call.
9922 (macro_lookup_inclusion): Remove the partial filenames checking code.
9923 (check_for_redefinition): New variables source_fullname and
9924 found_key_fullname. Replace any macro_source_file->filename access by
9925 macro_source_fullname call.
9926 (macro_undef): New variables source_fullname and key_fullname. Replace
9927 any macro_source_file->filename access by macro_source_fullname call.
9928 (macro_lookup_definition): New variables retval and source_fullname.
9929 Replace any macro_source_file->filename access by macro_source_fullname
9930 call.
9931 (foreach_macro): New variable key_fullname. Replace any
9932 macro_source_file->filename access by macro_source_fullname call.
9933 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9934 macro_source_file->filename access by macro_source_fullname call.
9935 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9936 (macro_source_fullname): New function.
9937 * macrotab.h (struct macro_source_file): Extent the filename field
9938 comment.
9939 (new_macro_table): New parameter comp_dir, add a comment for it.
9940 (macro_source_fullname): new declaration.
9941
da235a7c
JK
99422013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9943
9944 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9945 this_real_name to outer block. Use it also for
9946 compare_filenames_for_search.
9947 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9948 with dw2_get_real_path for file_matcher, considering also
9949 BASENAMES_MAY_DIFFER.
9950 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9951
fbd9ab74
JK
99522013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9953
9954 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9955 to the file_matcher parameter. Pass 0 to it.
9956 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9957 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9958 NULL psymtab_to_fullname result.
9959 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9960 an expected filename instead.
9961 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9962 file_matcher parameter. Call also psymtab_to_fullname, after newly
9963 considering BASENAMES_MAY_DIFFER.
9964 * source.c (rewrite_source_path): Remove static.
9965 * source.h (rewrite_source_path): New declaration.
9966 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9967 the expand_symtabs_matching field. Comment it.
9968 * symtab.c (file_matches): New function comment. Add parameter
9969 basenames, implement it.
9970 (search_symbols_file_matches): Add basenames parameter. Update the
9971 file_matches caller.
9972 (search_symbols): Match FILES also against symtab_to_fullname.
9973 Optimize it for BASENAMES_MAY_DIFFER.
9974
56d397a3
JK
99752013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * source.c (print_source_lines_base): Print for TUI also "fullname".
9978 * tui/tui-data.c (init_content_element): Change tui_locator_element
9979 field to full_name.
9980 * tui/tui-data.h (struct tui_locator_element): Likewise.
9981 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9982 tui_update_locator_filename calls to tui_update_locator_fullname.
9983 Replace symtab->filename refererence by symtab_to_fullname call.
9984 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9985 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9986 field to full_name. Replace symtab->filename refererence by
9987 symtab_to_fullname call.
9988 (tui_show_symtab_source): Rename parameter to fullname. Change
9989 tui_locator_element field to full_name.
9990 * tui/tui-stack.c: Include source.h.
9991 (tui_set_locator_filename): Rename the declaration to ...
9992 (tui_set_locator_fullname): ... here. Rename its parameter to
9993 fullname, updates its comment.
9994 (tui_set_locator_info): Rename its parameter to fullname.
9995 (tui_set_locator_filename): Rename the definition to ...
9996 (tui_set_locator_fullname): ... here. Rename its parameter to
9997 fullname, updates its comment. Change tui_locator_element field to
9998 full_name.
9999 (tui_set_locator_info): Rename its parameter to fullname.
10000 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10001 (tui_update_locator_filename): Rename to ...
10002 (tui_update_locator_fullname): ... here. Rename callee to
10003 tui_set_locator_fullname.
10004 (tui_show_frame_info): Replace symtab->filename refererence by
10005 symtab_to_fullname call.
10006 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10007 (tui_update_locator_fullname): ... here.
10008 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10009 tui_update_locator_fullname. Replace symtab->filename refererence by
10010 symtab_to_fullname call.
10011 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10012 Rename the callee to tui_update_locator_fullname.
10013 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10014
05cba821
JK
100152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10016
10017 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10018 by symtab_to_filename_for_display calls.
10019 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10020 (clear_command): New variable sal_fullname, initialize it. Replace
10021 compare_filenames_for_search by filename_cmp with sal_fullname.
10022 (say_where, update_static_tracepoint): Replace symtab->filename
10023 refererences by symtab_to_filename_for_display calls.
10024 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10025 Likewise.
10026 * dwarf2read.c: Include source.h.
10027 (fixup_go_packaging): Replace symtab->filename refererences by
10028 symtab_to_filename_for_display calls.
10029 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10030 Replace symtab->filename refererences by symtab_to_filename_for_display
10031 calls.
10032 (create_sals_line_offset, convert_linespec_to_sals): New variable
10033 fullname, initialize it, replace symtab->filename reference by the
10034 variable.
10035 * linux-fork.c: Include source.h.
10036 (info_checkpoints_command): Replace symtab->filename refererences by
10037 symtab_to_filename_for_display calls.
10038 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10039 by symtab_to_filename_for_display calls.
10040 * mdebugread.c: Include source.h.
10041 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10042 symtab_to_filename_for_display calls.
10043 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10044 (mi_cmd_file_list_exec_source_files): Likewise.
10045 * printcmd.c: Include source.h.
10046 (build_address_symbolic): Replace symtab->filename refererences by
10047 symtab_to_filename_for_display calls.
10048 * psymtab.c (partial_map_symtabs_matching_filename)
10049 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10050 with psymtab_to_fullname.
10051 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10052 by symtab_to_filename_for_display calls.
10053 (stpy_get_filename): New variable filename, initialize it, use instead
10054 of symtab->filename refererences.
10055 (salpy_str): Make variable filename const char *. Replace
10056 symtab->filename refererences by symtab_to_filename_for_display calls.
10057 * skip.c: Include source.h and filenames.h.
10058 (skip_file_command): Remove const from the symtab variable. Replace
10059 symtab->filename refererences by symtab_to_fullname call.
10060 (function_name_is_marked_for_skip): New variables searched_for_fullname
10061 and fullname. Use them to search also with symtab's fullname.
10062 * source.c (find_source_lines): Replace symtab->filename refererences
10063 by symtab_to_filename_for_display calls.
10064 (print_source_lines_base): New variable filename, use it instead of
10065 symtab->filename. Replace symtab->filename refererences by
10066 symtab_to_filename_for_display calls.
10067 (line_info, forward_search_command): Replace symtab->filename
10068 refererences by symtab_to_filename_for_display calls.
10069 (reverse_search_command): Replace symtab->filename refererences by
10070 symtab_to_filename_for_display calls. New variable filename for it.
10071 * stack.c (frame_info): Likewise.
10072 * symmisc.c: Include source.h.
10073 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10074 (maintenance_info_symtabs): Replace symtab->filename refererences by
10075 symtab_to_filename_for_display calls.
10076 * symtab.c (iterate_over_some_symtabs): Call
10077 compare_filenames_for_search also with symtab_to_fullname.
10078 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10079 symtab->filename refererences by symtab_to_filename_for_display calls.
10080 (find_line_symtab): Replace symtab->filename refererences by
10081 symtab_to_filename_for_display calls.
10082 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10083 (print_symbol_info): Make the last parameter const char *. New
10084 variable s_filename. Use it in the function.
10085 (symtab_symbol_info): Make the last_filename variable const char *.
10086 Replace symtab->filename refererences by symtab_to_filename_for_display
10087 calls.
10088 (rbreak_command): New variable fullname. Use it. Replace
10089 symtab->filename refererence by symtab_to_filename_for_display call.
10090 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10091 (print_one_static_tracepoint_marker): Replace symtab->filename
10092 refererences by symtab_to_filename_for_display calls.
10093 * tui/tui-source.c (tui_set_source_content): New variables filename and
10094 s_filename. Replace symtab->filename refererences by this variable.
10095 Replace other symtab->filename refererences by
10096 symtab_to_filename_for_display calls.
10097
1b56eb55
JK
100982013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10099 Jan Kratochvil <jan.kratochvil@redhat.com>
10100
10101 Add a new variable that controls a way in which filenames are
10102 displayed.
10103 * NEWS (set filename-display): New entry.
10104 * source.c (filename_display_basename, filename_display_relative)
10105 (filename_display_absolute, filename_display_kind_names)
10106 (filename_display_string, show_filename_display_string)
10107 (symtab_to_filename_for_display): New.
10108 (_initialize_source): Added initialization of 'filename-display'
10109 variable.
10110 * source.h (symtab_to_filename_for_display): Added declaration.
10111 * stack.c (print_frame): Added new variable and calling of a new
10112 function and condition with this variable. Changed third argument of
10113 calling of a function.
10114
aa079c93
JK
101152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10116
10117 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10118 Rename field reference filename to fullname.
10119 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10120 fullname. New comment for it.
10121 * tui/tui-source.c (tui_set_source_content): Rename field reference
10122 filename to fullname. Initialize field by symtab_to_fullname now.
10123 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10124 reference filename to fullname. Use symtab_to_fullname during
10125 comparison.
10126
652a8996
JK
101272013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10128
10129 Code cleanup.
10130 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10131 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10132 filename to fullname. Rename variable this_name to this_fullname.
10133 Lowercase FILENAME_CMP call.
10134 (dw2_find_symbol_file): New comment for the returned string.
10135 (dwarf2_gdb_index_functions): Rename the function to
10136 dw2_expand_symtabs_with_fullname.
10137 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10138 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10139 fullname.
10140 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10141 * symfile.h (struct quick_symbol_functions): Rename field
10142 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10143 parameter filename to fullname. Document returned string meaning for
10144 find_symbol_file.
10145 * symtab.c (find_line_symtab): Rename the called function to
10146 expand_symtabs_with_fullname.
10147
af529f8f
JK
101482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10149
10150 Code cleanup.
10151 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10152 call of filename_cmp with compare_filenames_for_search.
10153 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10154 is_abs, unify the call of FILENAME_CMP with
10155 compare_filenames_for_search. New gdb_asserts for real_path and name.
10156 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10157 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10158 * symfile.h (struct quick_symbol_functions): Extend the comment for
10159 map_symtabs_matching_filename.
10160 * symtab.c (compare_filenames_for_search): Remove the function comment
10161 relative path requirement. Handle absolute filenames, with a comment.
10162 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10163 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10164 real_path and name. Unify the call of compare_filenames_for_search
10165 with FILENAME_CMP.
10166 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10167
2f202fde
JK
101682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10169
10170 Code cleanup.
10171 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10172 source_file references by symtab field references. Remove variables
10173 sal and fullname.
10174 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10175 (clear_command, say_where): Replace bp_location field source_file
10176 references by symtab field references.
10177 (bp_location_dtor): Remove the source_file reference.
10178 (update_static_tracepoint): Replace bp_location field source_file
10179 references by symtab field references.
10180 (breakpoint_free_objfile): New function.
10181 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10182 Replace the field source_file by field symtab, extend its comment.
10183 (breakpoint_free_objfile): New declaration.
10184 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10185 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10186 field source_file references by symtab field references.
10187
f5b95b50
JK
101882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10189
10190 Replace xfullpath calls by gdb_realpath calls.
10191 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10192 function comment.
10193 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10194 Remove it from the iterate_over_some_symtabs call.
10195 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10196 Remove it from the dw2_map_expand_apply calls, remove a block handling
10197 it.
10198 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10199 Remove it from the iterate_over_some_symtabs call.
10200 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10201 Remove it from the partial_map_expand_apply calls, remove a block
10202 handling it. Drop gdb_realpath call and cleanups from the real_path
10203 handling.
10204 * source.c (openp): Drop the comment part about xfullpath. Replace
10205 xfullpath calls by gdb_realpath calls.
10206 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10207 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10208 from method map_symtabs_matching_filename and its comment.
10209 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10210 gdb_realpath call.
10211 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10212 remove it also from the function comment, remove a block handling it.
10213 Drop gdb_realpath call and cleanups from the real_path handling.
10214 (iterate_over_symtabs): Drop variable full_path and its use.
10215 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10216 * utils.c (xfullpath): Remove.
10217 * utils.h (xfullpath): Remove.
10218
d78489bf
AT
102192013-02-01 Andreas Tobler <andreast@fgznet.ch>
10220
10221 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10222 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10223 (ALLDEPFILES): Add ppc64-tdep.c.
10224 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10225 ppc64-tdep.o to gdb_target_obs.
10226 * ppc64-tdep.h: New file.
10227 * ppc64-tdep.c: New file.
10228 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10229 ppc-linux-tdep.c to here.
10230 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10231 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10232 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10233 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10234 from ppc-linux-tdep.c to here.
10235 (ppc64_convert_from_func_ptr_addr): Rename from
10236 ppc64_linux_convert_from_func_ptr_addr to
10237 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10238 here.
10239 * rs6000-tdep.c:
10240 (read_insn): Move from ppc-linux-tdep.c to here.
10241 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10242 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10243 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10244 Removed above functions.
10245 (ppc_linux_init_abi): Adjust.
10246
8db60374
AR
102472013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10248
10249 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10250
f2e5f4ce
AR
102512013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10252
10253 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10254
c1f7d745
PA
102552013-02-01 Pedro Alves <palves@redhat.com>
10256
10257 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10258 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10259
8a92335b
JK
102602013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10261
10262 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10263 files with no separate debug info.
10264 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10265 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10266 only for files with no separate debug info.
10267
8eacb197
TT
102682013-01-31 Tom Tromey <tromey@redhat.com>
10269
10270 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10271 change type.
10272 (struct jit_program_space_data): Rename from jit_inferior_data.
10273 Update comments.
10274 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10275 Change return type. Attach data to program space.
10276 (jit_program_space_data_cleanup): Rename from
10277 jit_inferior_data_cleanup; change argument type.
10278 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10279 change type.
10280 (jit_register_code): Update.
10281 (jit_update_inferior_cache): Remove.
10282 (jit_breakpoint_deleted): Get jit data from the location's program
10283 space.
10284 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10285 'ps_data', change type.
10286 (jit_inferior_init, jit_breakpoint_re_set_internal)
10287 (jit_event_handler): Update.
10288 (free_objfile_data): Get data from objfile's program space.
10289 (_initialize_jit): Update.
10290
f25c0135
TT
102912013-01-31 Tom Tromey <tromey@redhat.com>
10292
10293 PR gdb/13987:
10294 * jit.c (struct jit_inferior_data) <cached_code_address,
10295 jit_breakpoint>: New fields.
10296 (jit_breakpoint_re_set_internal): Fix logging. Only create
10297 breakpoint if cached address has changed.
10298 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10299 functions.
10300 (_initialize_jit): Register breakpoint deleted observer.
10301
974a734b
AR
103022013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10303
10304 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10305 (save_infcall_suspend_state): Ifdef out unused inf.
10306 (restore_infcall_suspend_state): Ifdef out unused inf.
10307 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10308 (jit_frame_sniffer): Remove unused inf_data.
10309
df54f8eb
AR
103102013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10311
10312 * c-exp.y (classify_inner_name): Remove unused type.
10313 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10314 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10315 need_escape.
10316 (c_get_string): Remove unused kind.
10317 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10318
5799c0b9
AR
103192013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10320
10321 * charset.c (intermediate_encoding): Remove unused i.
10322 * completer.c (signal_completer): Remove unused i.
10323 * continuations.c (discard_my_continuations_1): Remove unused
10324 continuation_ptr.
10325 * corelow.c (core_close): Remove unuseD name.
10326 (get_core_siginfo): Remove unused pid.
10327 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10328 i, cps.
10329 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10330 (loclist_describe_location): Remove unused first.
10331 * event-top.c (command_line_handler): Remove unused got_eof.
10332 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10333 (resize_section_table): Remove unused old_value.
10334 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10335 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10336 * i386-tdep.c (i386_process_record): Remove unused rex.
10337 * infcmd.c (get_return_value): Remove unused uiout.
10338 * jv-lang.c (type_from_class): Remove unused is_array.
10339 * jv-valprint.c (java_val_print): Remove unused i.
10340 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10341 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10342 * m2-typeprint.c (m2_print_type): Remove unused code.
10343 * macroexp.c (get_character_constant): Remove unused body_start.
10344 (macro_stringify): Remove unused result.
10345 * objc-lang.c (find_methods): Remove unused gdbarch.
10346 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10347 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10348 * stack.c (print_frame_args): Remove unused summary.
10349 * thread.c (thread_apply_command): Remove unused p.
10350 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10351 * valops.c (search_struct_method): Remove unused skip.
10352 * valprint.c (generic_val_print): Remove unused byte_order.
10353 * varobj.c (varobj_update): Remove unused changed.
10354 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10355 (alias_command): Remove unused c.
10356 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10357 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10358 format.
10359 (mi_cmd_data_write_memory): Remove unused word_format.
10360 (mi_cmd_data_write_memory_bytes): Remove unused r.
10361 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10362 p_start, p_end.
10363 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10364 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10365 line_width.
10366
c656bca5
AR
103672013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10368
10369 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10370 * symtab.c (iterate_over_symtabs): Remove unused s.
10371 (find_pc_sect_symtab): Remove unused pspAce.
10372 (find_pc_sect_line): Remove unused alt_symtab.
10373 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10374 (completion_list_add_name): Remove unused newsize.
10375
7078baeb
TT
103762013-01-31 Tom Tromey <tromey@redhat.com>
10377
10378 PR c++/14998:
10379 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10380 TYPE_CODE_FUNC.
10381
c2e8b827
AR
103822013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10383
10384 * target.c (target_read_string): Remove unused origlen.
10385
0e43993a
AR
103862013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10387
10388 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10389 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10390 * ax-general.c (ax_print): Remove unused is_float.
10391 * blockframe.c (block_innermost_frame): Remove unused start, end.
10392 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10393
765a97ab
AR
103942013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10395
10396 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10397 (svr4_read_so_list): Remove unused lmo.
10398 * solib-target.c (solib_target_relocate_section_addresses): Remove
10399 unused flags.
10400
a99dad3d
TT
104012013-01-30 Tom Tromey <tromey@redhat.com>
10402
10403 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10404
3bff1ecd
TT
104052013-01-30 Tom Tromey <tromey@redhat.com>
10406
10407 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10408 * utils.c (gnu_debuglink_crc32): Remove.
10409 * utils.h (gnu_debuglink_crc32): Don't declare.
10410
7d455152
TT
104112013-01-30 Tom Tromey <tromey@redhat.com>
10412
10413 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10414 (read_structure_type, read_enumeration_type): Remove cast.
10415
abee88f2
TT
104162013-01-30 Tom Tromey <tromey@redhat.com>
10417
10418 * dwarf2read.c (read_namespace_type): Remove cast.
10419 (read_typedef): Likewise.
10420
8d9878a4
TT
104212013-01-29 Tom Tromey <tromey@redhat.com>
10422
10423 * dwarf2read.c (free_dwo_file): Remove assert.
10424
a543d2a9
TT
104252013-01-29 Tom Tromey <tromey@redhat.com>
10426
10427 * value.c (deprecated_set_value_modifiable): Remove.
10428 * value.h (deprecated_set_value_modifiable): Remove.
10429
bed911e5
DE
104302013-01-28 Doug Evans <dje@google.com>
10431
10432 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10433 to addresses from dwo files.
10434
28c64fc2
SCR
104352013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10436
10437 * valops.c (find_overload_match): Remove unused argument 'lax'.
10438 * value.h: Remove unused argument 'lax' from the declaration of
10439 find_overload_match.
10440 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10441 to find_overload_match.
10442 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10443 argument to find_overload_match.
10444
4d4ec4e5
TT
104452013-01-25 Tom Tromey <tromey@redhat.com>
10446
10447 * dwarf2read.c (processing_has_namespace_info): Remove.
10448 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10449 (process_die, read_func_scope, dwarf2_start_symtab)
10450 (new_symbol_full): Update.
10451
195a3f6c
TT
104522013-01-25 Tom Tromey <tromey@redhat.com>
10453
10454 * cp-namespace.c (cp_set_block_scope): Remove.
10455 * cp-support.h (cp_set_block_scope): Remove.
10456 * dbxread.c: Include block.h.
10457 (cp_set_block_scope): New function.
10458 (process_one_symbol): Update.
10459 * dwarf2read.c (read_func_scope): Use block_set_scope.
10460
8ba0730a
PA
104612013-01-25 Pedro Alves <palves@redhat.com>
10462
10463 * remote.c (add_current_inferior_and_thread): Tweak comment.
10464
12aaed36
TT
104652013-01-25 Tom Tromey <tromey@redhat.com>
10466
10467 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10468 (cp_add_using_directive): Add 'copy_names' argument.
10469 * cp-support.h (cp_add_using_directive): Update.
10470 (struct using_direct) <import_src, import_dest, alias,
10471 declaration>: Now const.
10472 * dwarf2read.c (read_import_statement): Use obconcat.
10473 Don't copy names passed to cp_add_using_directive.
10474
7fc75ca7
TT
104752013-01-25 Tom Tromey <tromey@redhat.com>
10476
10477 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10478
3405876a
PA
104792013-01-25 Pedro Alves <palves@redhat.com>
10480
10481 * remote.c (stop_reply_extract_thread): New.
10482 (add_current_inferior_and_thread): New parameter 'wait_status'.
10483 Handle it.
10484 (remote_start_remote): Pass wait status to
10485 add_current_inferior_and_thread.
10486 (extended_remote_run): Update comment.
10487 (extended_remote_create_inferior_1): Pass wait status to
10488 add_current_inferior_and_thread.
10489
8954db33
AB
104902013-01-25 Andrew Burgess <aburgess@broadcom.com>
10491 Ulrich Weigand <uweigand@de.ibm.com>
10492
10493 * valarith.c (value_vector_widen): New function for replicating a
10494 scalar into a vector.
10495 (value_binop): Use value_vector_widen to widen scalar to vector
10496 rather than casting, this better matches gcc C behaviour.
10497 * valops.c (value_casst): Update logic for casting between vector
10498 types, and for casting from scalar to vector, try to match gcc C
10499 behaviour.
10500 * value.h (value_vector_widen): Declare.
10501 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10502 function, handle special case for casting scalar to vector.
10503 (opencl_relop): Use opencl_value_cast.
10504 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10505 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10506 in order to use opencl_value_cast.
10507
843b20dc
YQ
105082013-01-25 Yao Qi <yao@codesourcery.com>
10509
10510 * event-loop.c: Include "queue.h".
10511 (gdb_event_p): New typedef.
10512 (DECLARE_QUEUE_P): Use.
10513 (DEFINE_QUEUE_P): Use.
10514 (async_queue_event): Remove.
10515 (gdb_event_xfree): New.
10516 (initialize_event_loop): New.
10517 (process_event): Use QUEUE macros.
10518 (event_queue): Remove.
10519 (gdb_wait_for_event): Caller update.
10520 (check_async_event_handlers): Likewise.
10521 (poll_timers): Likewise.
10522 * event-loop.h (initialize_event_loop): Declare.
10523 * event-loop.c (gdb_event_xfree): New.
10524 * top.c (gdb_init): Call initialize_event_loop.
10525
20ad8856
YQ
105262013-01-25 Yao Qi <yao@codesourcery.com>
10527
10528 * event-loop.c (async_queue_event): Remove one parameter
10529 'position'. Remove code handling 'position' == TAIL.
10530 (gdb_wait_for_event): Caller update.
10531 (check_async_event_handlers): Caller update.
10532 (poll_timers): Caller update.
10533 * event-loop.h (enum queue_position): Remove.
10534
3bbbe775
MK
105352013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10536
10537 * MAINTAINERS: Update my email.
10538
a87d9ac4
YQ
105392013-01-25 Yao Qi <yao@codesourcery.com>
10540
10541 * main.c (print_gdb_help): Remove "--epoch" from the help
10542 message.
10543
2077afdd
TD
105442013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10545
10546 * symtab.c (skip_prologue_using_sal): Consider a file
10547 change the same as an increased line number
10548
63da4037
TD
105492013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10550
30e8ee25 10551 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10552
45e6c716
TT
105532013-01-24 Tom Tromey <tromey@redhat.com>
10554
10555 * ada-lang.h (ada_decode_symbol): Make return type const.
10556 * ada-lang.c (ada_decode_symbol): Likewise.
10557
b1ae631a
DE
105582013-01-23 Doug Evans <dje@google.com>
10559
10560 * linespec.c (find_linespec_symbols): Make static.
10561
55a78401
SDJ
105622013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10563
10564 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10565 type on float conversion for complex type.
10566
bea883fd
SCR
105672013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10568
10569 Add a new class gdb.Architecture which exposes GDB's
10570 internal representation of architecture via GDB Python API.
10571 * Makefile.in: Add entries corresponding to the new file
10572 python/py-arch.c.
10573 * NEWS (Python Scripting): Add entries for the new class
10574 gdb.Architecture and the new method gdb.Frame.architecture.
10575 * python/py-arch.c: Implement gdb.Architecture class.
10576 * python/py-frame.c (frapy_arch): Implement the method
10577 gdb.Frame.architecture().
10578 (frame_object_methods): Add 'architecture' to the method table.
10579 * python/python-internal.h: Add declarations of new utility
10580 functions.
10581 * python/python.c (_initialize_python): Initialize
10582 gdb.Architecture class.
10583
796a7ff8
DE
105842013-01-23 Doug Evans <dje@google.com>
10585
10586 Work around binutils/15021.
10587 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10588 type_unit_group out of union s. All uses updated.
10589 (read_index_from_section): Watch for index version 8.
10590 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10591 an imported symtab.
10592 (write_psymtabs_to_index): Increment version number to 8.
10593
0928e93d
PA
105942013-01-22 Pedro Alves <palves@redhat.com>
10595
10596 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10597 user-visible.
10598
9c97429f
PA
105992013-01-22 Pedro Alves <palves@redhat.com>
10600
10601 * annotate.c (annotate_breakpoints_changed): Rename to ...
10602 (annotate_breakpoints_invalid): ... this. Make static.
10603 (breakpoint_changed): Adjust.
10604 (_initialize_annotate): Always install the observers. Install a
10605 "breakpoint_created" observer.
10606 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10607 * breakpoint.c (set_breakpoint_condition)
10608 (breakpoint_set_commands, do_map_commands_command)
10609 (init_raw_breakpoint, clear_command, set_ignore_count)
10610 (enable_breakpoint_disp): No longer call
10611 annotate_breakpoints_changed.
10612
bd00c694
PA
106132013-01-22 Pedro Alves <palves@redhat.com>
10614
10615 * annotate.c: Include "inferior.h".
10616 (frames_invalid_emitted)
10617 (breakpoints_invalid_emitted): New globals.
10618 (async_background_execution_p): New function.
10619 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10620 emitting the annotation if it has already been emitted.
10621 (annotate_display_prompt): New function.
10622 * annotate.h (annotate_display_prompt): New declaration.
10623 * event-top.c: Include annotate.h.
10624 (display_gdb_prompt): Call annotate_display_prompt.
10625
187d10dd
PA
106262013-01-22 Pedro Alves <palves@redhat.com>
10627
10628 * annotate.c (ignore_count_changed): Delete.
10629 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10630 (annotate_ignore_count_change): Delete.
10631 (annotate_stopped): Don't emit a delayed breakpoints-changed
10632 annotation.
10633 * annotate.h (annotate_ignore_count_change): Delete.
10634 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10635 annotate_ignore_count_change.
10636
d84cf7eb
TT
106372013-01-22 Tom Tromey <tromey@redhat.com>
10638
10639 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10640 require_rvalue for a register location.
10641
8f1d5693
MK
106422013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10643
10644 * breakpoint.c (print_one_breakpoint_location): Add MI
10645 field 'thread-groups' when printing a breakpoint.
10646 (output_thread_groups): New function.
10647
aa6199c6
SCR
106482013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10649
10650 * python/lib/gdb/commands/explore.py
10651 (CompoundExplorer.explore_expr): Correct the name of a method
10652 being invoked.
10653 (ExploreTypeCommand.invoke): Add a missing 'return'.
10654
d2afef13
TT
106552013-01-21 Tom Tromey <tromey@redhat.com>
10656
10657 * gdb_obstack.h (obconcat): Move declaration here, from...
10658 * symfile.h (obconcat): ... here.
10659 * gdb_obstack.c: New file.
10660 (obconcat): Move from...
10661 * symfile.c (obconcat): ... here.
10662 * Makefile.in (SFILES): Add gdb_obstack.c.
10663 (COMMON_OBS): Add gdb_obstack.o.
10664
10f0c4bb
TT
106652013-01-21 Tom Tromey <tromey@redhat.com>
10666
10667 * symfile.h (obsavestring): Don't declare.
10668 * symfile.c (obsavestring): Remove.
10669 * ada-exp.y: Use obstack_copy0, not obsavestring.
10670 * ada-lang.c: Use obstack_copy0, not obsavestring.
10671 * coffread.c: Use obstack_copy0, not obsavestring.
10672 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10673 * dbxread.c: Use obstack_copy0, not obsavestring.
10674 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10675 * jit.c: Use obstack_copy0, not obsavestring.
10676 * mdebugread.c: Use obstack_copy0, not obsavestring.
10677 * psymtab.c: Use obstack_copy0, not obsavestring.
10678 * stabsread.c: Use obstack_copy0, not obsavestring.
10679 * xcoffread.c: Use obstack_copy0, not obsavestring.
10680
86f62fd7
TT
106812013-01-21 Tom Tromey <tromey@redhat.com>
10682
10683 * dwarf2read.c (fixup_go_packaging): Save package name
10684 on objfile obstack.
10685 * gdbtypes.c (init_type): Don't copy name.
10686
15d034d0
TT
106872013-01-21 Tom Tromey <tromey@redhat.com>
10688
10689 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10690 const.
10691 (struct attribute) <u.str>: Now const.
10692 (struct fnfieldlist) <name>: Now const.
10693 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10694 (partial_die_parent_scope): Make return type const.
10695 (partial_die_full_name, add_partial_symbol): Update.
10696 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10697 'name' const.
10698 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10699 (read_file_scope, read_func_scope, dwarf2_add_field)
10700 (dwarf2_add_member_fn, read_structure_type)
10701 (process_enumeration_scope, read_array_type, read_module_type)
10702 (read_base_type, read_subrange_type): Update.
10703 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10704 (new_symbol_full, guess_full_die_structure_name): Update.
10705 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10706 (dwarf2_name): Return const type.
10707 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10708 const.
10709
748e18ae
TT
107102013-01-21 Tom Tromey <tromey@redhat.com>
10711
10712 * gdbtypes.c (init_type): Make 'name' const.
10713 * gdbtypes.h (init_type): Update.
10714
46212e0b
TT
107152013-01-21 Tom Tromey <tromey@redhat.com>
10716
10717 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10718 (start_symtab): Make 'name' and 'dirname' const. Use
10719 set_last_source_file.
10720 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10721 (last_source_file): Define. Now static.
10722 (set_last_source_file, get_last_source_file): New functions.
10723 * buildsym.h (last_source_file): Don't declare.
10724 (start_symtab): Update.
10725 (set_last_source_file, get_last_source_file): Declare.
10726 * coffread.c (complete_symtab): Use set_last_source_file.
10727 (coff_end_symtab): Likewise.
10728 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10729 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10730 set_last_source_file.
10731 (process_one_symbol): Use get_last_source_file.
10732 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10733 (psymtab_to_symtab_1): Use get_last_source_file.
10734 * xcoffread.c (process_linenos): Use get_last_source_file.
10735 (complete_symtab): Use set_last_source_file.
10736 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10737 (scan_xcoff_symtab): Use set_last_source_file.
10738
9d2ceabe
TT
107392013-01-21 Tom Tromey <tromey@redhat.com>
10740
10741 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10742 (symbol_set_names): Remove casts. Handle field const-ness.
10743
cfc594ee
TT
107442013-01-21 Tom Tromey <tromey@redhat.com>
10745
10746 * dwarf2read.c (new_symbol_full): Remove cast.
10747 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10748 * symtab.h (symbol_set_demangled_name): Update.
10749
5484b13a
TT
107502013-01-21 Tom Tromey <tromey@redhat.com>
10751
10752 * main.c (captured_main): Call bfd_init.
10753
1605ef26
TT
107542013-01-21 Tom Tromey <tromey@redhat.com>
10755
10756 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10757 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10758 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10759 * NEWS: Update.
10760
3b74cdc3
JK
107612013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10762
10763 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10764
5a352474
JK
107652013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10766
10767 Fix gdb.fortran/common-block.exp crash in PIE mode.
10768 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10769 LOC_COMMON_BLOCK.
10770 * f-valprint.c (info_common_command_for_block): Expect
10771 LOC_COMMON_BLOCK in gdb_assert.
10772 * symtab.h (struct general_symbol_info): Update comment for the
10773 common_block member.
10774 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10775 (enum address_class): New member LOC_COMMON_BLOCK.
10776
c60797fd
DB
107772013-01-18 David Blaikie <dblaikie@gmail.com>
10778
10779 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10780
46f35228
TT
107812013-01-18 Tom Tromey <tromey@redhat.com>
10782
10783 PR c++/14999:
10784 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10785 Call require_rvalue.
10786
257e7a09
YQ
107872013-01-18 Yao Qi <yao@codesourcery.com>
10788
10789 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10790 (dbx_read_symtab): New declaration.
10791 (dbx_psymtab_to_symtab): Delete.
10792 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10793 Rename parameter PST to SELF. Exchanged two parameters.
10794 (start_psymtab): Caller update.
10795 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10796 (dwarf2_read_symtab): New declaration.
10797 (dwarf2_psymtab_to_symtab): Delete.
10798 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10799 Rename parameter PST to SELF. Exchanged two parameters.
10800 (create_partial_symtab): Caller update.
10801 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10802 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10803 Rename parameter PST to SELF. Exchanged two parameters.
10804 (parse_partial_symbols, new_psymtab): Caller update.
10805 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10806 two parameters.
10807 * psymtab.c (psymtab_to_symtab): Caller update.
10808 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10809 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10810 Rename parameter PST to SELF. Exchanged two parameters.
10811 (xcoff_start_psymtab): Caller update.
10812
0de5618e
YQ
108132013-01-18 Yao Qi <yao@codesourcery.com>
10814
10815 * infrun.c (proceed): Rename local variable 'oneproc' to
10816 'force_step'.
10817
5c04624b
DE
108182013-01-17 Doug Evans <dje@google.com>
10819
848e3e78
DE
10820 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10821 (dw2_build_type_unit_groups): Delete. All uses updated.
10822
5c04624b
DE
10823 * symtab.h (struct symbol_search): Add comment.
10824
d84fca2c
JK
108252013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10826
10827 * symtab.c (compare_filenames_for_search): New comment for
10828 HAS_DRIVE_SPEC.
10829
6108433d
TT
108302013-01-17 Tom Tromey <tromey@redhat.com>
10831
10832 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10833
c89ffd86
JK
108342013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10835
10836 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10837 initialize it by existing make_cleanup. Call new do_cleanups.
10838
db2b2972
TT
108392013-01-17 Tom Tromey <tromey@redhat.com>
10840
10841 * cp-abi.c (cp_abi_completer): New function.
10842 (_initialize_cp_abi): Set completer for "set cp-abi".
10843
be7d37a2
TT
108442013-01-17 Tom Tromey <tromey@redhat.com>
10845
10846 * mem-break.c: Remove obsolete comment.
10847 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10848
c9fb1240
SD
108492012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10850
10851 * jit.c (jit_reader_load_command): Interpret the jit reader name
10852 as an absolute path if it begins with a forward slash.
10853
db334a01
SD
108542012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10855
10856 PR gdb/14550
10857
10858 * jit.c (finalize_symtab): Ensure that only the global block has a
10859 NULL superblock.
10860
7d928dac
PA
108612013-01-17 Pedro Alves <palves@redhat.com>
10862
10863 * acinclude.m4: Include ../config/plugins.m4,
10864 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10865 * Makefile.in (aclocal_m4_deps): Update.
10866 * aclocal.m4: Renegerate.
10867
fb8cf7c5
DE
108682013-01-16 Doug Evans <dje@google.com>
10869
10870 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10871
ab04a2af
TT
108722013-01-16 Pedro Alves <palves@redhat.com>
10873 Tom Tromey <tromey@redhat.com>
10874
10875 PR cli/7221:
10876 * NEWS: Add "catch signal".
10877 * breakpoint.c (base_breakpoint_ops): No longer static.
10878 (bpstat_explains_signal): New function.
10879 (init_catchpoint): No longer static.
10880 (base_breakpoint_explains_signal): New function.
10881 (base_breakpoint_ops): Initialize new field.
10882 * breakpoint.h (enum bpstat_signal_value): New.
10883 (struct breakpoint_ops) <explains_signal>: New field.
10884 (bpstat_explains_signal): Remove macro, declare as function.
10885 (base_breakpoint_ops, init_catchpoint): Declare.
10886 * break-catch-sig.c: New file.
10887 * inferior.h (signal_catch_update): Declare.
10888 * infrun.c (signal_catch): New global.
10889 (handle_syscall_event): Update for change to
10890 bpstat_explains_signal.
10891 (handle_inferior_event): Likewise. Always handle random signals
10892 via bpstats.
10893 (signal_cache_update): Check signal_catch.
10894 (signal_catch_update): New function.
10895 (_initialize_infrun): Initialize signal_catch.
10896 * Makefile.in (SFILES): Add break-catch-sig.c.
10897 (COMMON_OBS): Add break-catch-sig.o.
10898
8ac3646f
TT
108992013-01-16 Tom Tromey <tromey@redhat.com>
10900
10901 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10902 (print_one_catch_solib, print_one_catch_syscall)
10903 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10904 "catch-type".
10905
5a18e302
YQ
109062013-01-16 Yao Qi <yao@codesourcery.com>
10907
10908 * printcmd.c (current_display_number): Make it static.
10909
3f01d0d0
YQ
109102013-01-16 Yao Qi <yao@codesourcery.com>
10911
10912 * infcmd.c (step_once): Don't check '!single_inst' as it was
10913 checked before.
10914
1ed59174
JK
109152013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10916
10917 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10918
44478ab3
TT
109192013-01-14 Tom Tromey <tromey@redhat.com>
10920
10921 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10922 set command.
10923 * command.h (add_setshow_string_noescape_cmd): Update.
10924 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10925 (complete_set_gnutarget): New function.
10926 (_initialize_core): Set the "set gnutarget" completer.
10927
06d66ee9
TT
109282013-01-14 Tom Tromey <tromey@redhat.com>
10929
10930 PR symtab/14442:
10931 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10932 (c_type_print_modifier): Likewise.
10933 * dwarf2read.c (read_tag_restrict_type): New function.
10934 (read_type_die_1): Handle DW_TAG_restrict_type.
10935 * gdbtypes.c (make_restrict_type): New function.
10936 (recursive_dump_type): Handle TYPE_RESTRICT.
10937 * gdbtypes.h (enum type_flag_values): Renumber.
10938 (enum type_instance_flag_value): Add
10939 TYPE_INSTANCE_FLAG_RESTRICT.
10940 (TYPE_RESTRICT): New macro.
10941 (make_restrict_type): Declare.
10942
c9bf0622
TT
109432013-01-14 Tom Tromey <tromey@redhat.com>
10944
10945 PR symtab/14931:
10946 * psymtab.c (struct psymtab_state): New.
10947 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10948 functions.
10949 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10950 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10951
44d594fd
PA
109522013-01-14 Richard Sharman <richard_sharman@mitel.com>
10953 Pedro Alves <palves@redhat.com>
10954
10955 PR remote/14786
10956
10957 * remote.c (remote_threads_info): Make a copy of the reply from
10958 qfThreadInfo and use that instead of rs->buf.
10959
442e4d9c
YQ
109602013-01-14 Yao Qi <yao@codesourcery.com>
10961
10962 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10963 (dbx_psymtab_to_symtab): Likewise.
10964 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10965 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10966 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10967
5b12a61c
JK
109682013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10969
10970 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10971 make_cleanup_restore_current_language. Call set_language. Move
10972 OLD_CHAIN and INNER_CHAIN cleanups.
10973 * utils.c (do_restore_current_language)
10974 (make_cleanup_restore_current_language): New functions.
10975 * utils.h (make_cleanup_restore_current_language): New declaration.
10976
f0a4b570
JK
109772013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10978
10979 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10980 non-existing files.
10981
57b3c00c
JK
10982 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10983 non-existing files if FILENAME is already absolute.
10984
daefa854
JK
109852013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10986
10987 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10988 fputs_filtered. Append trailing newline.
10989
ca9c6ee2
YQ
109902013-01-11 Yao Qi <yao@codesourcery.com>
10991 Stan Shebs <stan@codesourcery.com>
10992
10993 * psymtab.c (init_psymbol_list): Clarify the comment.
10994
f28045c2
YQ
109952013-01-11 Yao Qi <yao@codesourcery.com>
10996
10997 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10998 (update_dprintf_command_list): Assert that 'printf_line' is
10999 non-null. Remove condition check.
11000
da5132d3
JK
110012013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11002
11003 Code cleanup.
11004 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11005 type const char *.
11006 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11007 const char *.
11008 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11009
843e694d
AG
110102013-01-09 Anthony Green <green@moxielogic.com>
11011
11012 * cp-abi.c (cplus_print_vtable): Don't return value from void
11013 function.
11014 * ada-lang.c (re_set_catch_assert): Ditto.
11015
da51c347
DE
110162013-01-09 Doug Evans <dje@google.com>
11017
11018 * symfile.h (quick_symbol_functions): Delete member
11019 pre_expand_symtabs_matching. All uses removed.
11020 * dwarf2read.c (dw2_lookup_symbol): Implement.
11021 (dw2_do_expand_symtabs_matching): Delete.
11022 (dw2_pre_expand_symtabs_matching): Delete.
11023 (struct dw2_symtab_iterator): New type.
11024 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11025 (dw2_expand_symtabs_for_function): Rewrite.
11026 (dwarf2_gdb_index_functions): Update.
11027 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11028 (psym_functions): Update.
11029
b2259038
TT
110302013-01-09 Tom Tromey <tromey@redhat.com>
11031
11032 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11033 * configure: Rebuild.
11034 * configure.ac: Add somread.o to the build if BFD has SOM
11035 support.
11036 * somread.c: Include som/aout.h, not syms.h.
11037 (som_symtab_read): Use som_external_symbol_dictionary_record.
11038 Unpack records manually.
11039 (_initialize_somread): Declare.
11040
bdad4180
MF
110412012-01-08 Mike Frysinger <vapier@gentoo.org>
11042
11043 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11044 Cast return_address to 64bits.
11045
03cdf680
HZ
110462013-01-08 Hui Zhu <hui_zhu@mentor.com>
11047
11048 * printcmd.c: Remove define of function output_command.
11049 * tracepoint.c: Remove extern of function output_command.
11050 * valprint.h: (output_command): New extern.
11051
8a808554
TT
110522013-01-07 Tom Tromey <tromey@redhat.com>
11053
11054 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11055 Remove.
11056 (objc_language_defn): Use c_printchar, c_printstr,
11057 c_emit_char.
11058
e93a8774
TT
110592013-01-07 Tom Tromey <tromey@redhat.com>
11060
11061 PR cli/7719:
11062 * NEWS: Update.
11063 * ada-valprint.c (printstr, print_field_values): Remove
11064 "inspect_it" code.
11065 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11066 code.
11067 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11068 code.
11069 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11070 * main.c (captured_main): Remove "epoch" argument.
11071 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11072 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11073 * p-valprint.c (pascal_object_print_value_fields): Remove
11074 "inspect_it" code.
11075 * printcmd.c (print_command_1): Remove 'inspect' argument.
11076 (print_command, call_command): Update.
11077 (inspect_command): Remove.
11078 (_initialize_printcmd): Make "inspect" an alias for "print".
11079 * top.c (epoch_interface): Remove.
11080 * top.h (epoch_interface): Remove.
11081 * valprint.c (user_print_options): Update.
11082 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11083 * valprint.h (struct value_print_options) <inspect_it>: Remove
11084 field.
11085
110862013-01-04 Tom Tromey <tromey@redhat.com>
11087
11088 * valprint.h (read_string): Add 'extern'.
11089
b967eb24
JB
110902013-01-07 Joel Brobecker <brobecker@adacore.com>
11091
11092 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11093 used to decide whether to define darwin_read_dyld_info or not.
11094
78a8b30e
PM
110952013-01-03 Pierre Muller <muller@sourceware.org>
11096
11097 * main.c (relocate_gdb_directory): Avoid calling stat function
11098 if DIR is empty.
11099
50da2f25
YQ
111002013-01-03 Yao Qi <yao@codesourcery.com>
11101
11102 * psymtab.c (fixup_psymbol_section): Update declaration.
11103 (fixup_psymbol_section): Remove code returning value.
11104
e7e8980f
YQ
111052013-01-03 Yao Qi <yao@codesourcery.com>
11106
11107 * symtab.h: Remove some out of date comments.
11108 (enum exception_event_kind): Move it ...
11109 * breakpoint.c: ... here.
11110
569283d4
MF
111112013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11112
9f9d9a96 11113 PR gdb/14405
569283d4
MF
11114 * darwin-nat.c (darwin_read_dyld_info): Only build if
11115 TASK_DYLD_INFO_COUNT is defined.
11116 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11117 TASK_DYLD_INFO_COUNT is defined.
11118
2e36fbea
TT
111192013-01-02 Tom Tromey <tromey@redhat.com>
11120
11121 * symfile.h (struct ecoff_debug_hack): Remove.
11122 * objfiles.c: Don't include mdebugread.h.
11123
4f05add4
TT
111242013-01-02 Tom Tromey <tromey@redhat.com>
11125
11126 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11127 * configure.ac: Check for Mach-O support in BFD. Update
11128 CONFIG_OBS.
11129 * configure: Rebuild.
11130
def63ff0
TT
111312013-01-02 Tom Tromey <tromey@redhat.com>
11132
11133 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11134 * configure.ac: Use GDB_AC_CHECK_BFD.
11135 * configure: Rebuild.
11136
60c5dd93
MK
111372013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11138
11139 * MAINTAINERS: Update my email.
11140
6e58437e
JB
111412013-01-01 Joel Brobecker <brobecker@adacore.com>
11142
11143 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11144
627fe805
JB
111452013-01-01 Joel Brobecker <brobecker@adacore.com>
11146
11147 * rs6000-nat.c (bss_data_overlap): New function.
11148 (vmap_symtab): Use it to adjust the .bss section's offset.
11149
28e7fd62
JB
111502013-01-01 Joel Brobecker <brobecker@adacore.com>
11151
11152 Update year range in copyright notice of all files.
11153
e93a8774 111542013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11155
11156 * top.c (print_gdb_version): Update copyright year.
11157
72b20e9c 11158For older changes see ChangeLog-2012.
c906108c
SS
11159\f
11160Local Variables:
11161mode: change-log
11162left-margin: 8
11163fill-column: 74
11164version-control: never
57da7796 11165coding: utf-8
c906108c 11166End:
This page took 2.090451 seconds and 4 git commands to generate.