PR binutils/15994
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6c177e28
YQ
12013-10-25 Yao Qi <yao@codesourcery.com>
2
3 * remote.c (remote_traceframe_info): Return early if
4 traceframe is not selected.
5
98322bfa
YQ
62013-10-25 Yao Qi <yao@codesourcery.com>
7
8 * tracepoint.c (traceframe_fun): Remove.
9 (traceframe_sal): Remove.
10 (set_traceframe_context): Add local variables.
11
6ba1f115
JB
122013-10-25 Joel Brobecker <brobecker@adacore.com>
13
14 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
15 and parameter name.
16
bbe769cc
MR
172013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
18
19 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
20 failure from register information collection.
21
72ee4495 222013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
23
24 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
25 member.
26 (linux_corefile_thread_callback): Update accordingly.
27 (linux_make_corefile_notes): Likewise.
28
98882a26
PA
292013-10-24 Pedro Alves <palves@redhat.com>
30
31 * NEWS (New options): Mention set/show startup-with-shell.
32 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
33 instead of 3.
34 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
35 startup-with-shell'.
36 (show_startup_with_shell): New function.
37 (_initialize_fork_child): Register the set/show startup-with-shell
38 commands.
39 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
40 * inf-ttrace.c (inf_ttrace_him): Remove comment.
41 * procfs.c (procfs_init_inferior): Remove comment.
42 * infcmd.c (startup_with_shell): New global.
43 * inferior.h (startup_with_shell): Declare global.
44 (STARTUP_WITH_SHELL): Delete.
45 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
46
c9737c08
PA
472013-10-23 Pedro Alves <palves@redhat.com>
48
49 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
50 * common/signals.c: Include "gdb_assert.h".
51 (signals): New field 'symbol'.
52 (SET): Use the 'symbol' parameter.
53 (gdb_signal_to_symbol_string): New function.
54 * infrun.c (handle_inferior_event) <random signal>: In debug
55 output, print the random signal enum as string in addition to its
56 number.
57 * target/waitstatus.c (target_waitstatus_to_string): Print the
58 signal's enum value as string instead of the (POSIX) signal name.
59
f60db4f0
GB
602013-10-23 Gary Benson <gbenson@redhat.com>
61
62 PR 16013
63 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
64 from 32 to 18. Adjusted fscanf format string accordingly.
65 (Avoids leaving cmd unterminated.)
66 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
67 trun, retn or extra. (Avoids leaving extra unterminated.) Check
68 that local_address and remote_address will not overflow.
69 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
70 leaving dependencies unterminated. Parse size as "%u" to match
71 definition.
72
6d3e7a94
PA
732013-10-22 Pedro Alves <palves@redhat.com>
74
75 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
76 set ecs->random signal.
77
42ec045f
PA
782013-10-22 Pedro Alves <palves@redhat.com>
79
80 * infrun.c (keep_going): Update comments.
81
822013-10-22 Pedro Alves <palves@redhat.com>
83
84 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
85 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
86
872013-10-22 Pedro Alves <palves@redhat.com>
88
89 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
90 GDB_EXC_BAD_ACCESS.
91 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
92 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
93 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
94 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
95 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
96 (GDB_SIGNAL_LAST): Change description string.
97 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
98 Adjust to signal renaming.
99 * darwin-nat.c (darwin_decode_message): Likewise.
100
c8fde1b1
JM
1012013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
102
103 * MAINTAINERS (Write After Approval): Add myself to the list.
104
e8369a73
AB
1052013-10-18 Andrew Burgess <aburgess@broadcom.com>
106
107 * breakpoint.c (update_watchpoint): If hardware watchpoints are
108 forced off, downgrade them to software watchpoints if possible,
109 and error out if not possible.
110 (watch_command_1): Move watchpoint type selection closer to
111 watchpoint creation, and extend the comments.
112
776f04fa
PA
1132013-10-18 Pedro Alves <palves@redhat.com>
114
115 PR gdb/16062
116 * infrun.c (handle_inferior_event): Keep going if we got a random
117 signal we should not stop for, instead of falling through to the
118 step tests.
119
0c6faab5
YQ
1202013-10-18 Yao Qi <yao@codesourcery.com>
121
122 * c-varobj.c (cplus_number_of_children): Fix indentation.
123
50b34a18
TT
1242013-10-17 Tom Tromey <tromey@redhat.com>
125
126 PR gdb/15995:
127 * printcmd.c (printcmd): Call gdb_flush.
128
5c4c8a59
TT
1292013-10-17 Tom Tromey <tromey@redhat.com>
130
131 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
132 (elf_locate_sections): Update.
133
c4124bf1
YQ
1342013-10-17 Yao Qi <yao@codesourcery.com>
135
136 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
137 * ada-varobj.c: Remove the include of ada-varobj.h.
138 (ada_varobj_get_number_of_children): Declare.
139 (ada_varobj_get_name_of_child): Make it static.
140 (ada_varobj_get_path_expr_of_child): Likewise.
141 (ada_varobj_get_value_of_child): Likewise.
142 (ada_varobj_get_type_of_child): Likewise.
143 (ada_varobj_get_value_of_array_variable): Likewise.
144 * ada-varobj.h: Remove.
145
99ad9427
YQ
1462013-10-17 Yao Qi <yao@codesourcery.com>
147
148 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
149 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
150 * ada-varobj.c: Include "varobj.h".
151 (ada_number_of_children): New. Moved from varobj.c.
152 (ada_name_of_variable, ada_name_of_child): Likewise.
153 (ada_path_expr_of_child, ada_value_of_child): Likewise.
154 (ada_type_of_child, ada_value_of_variable): Likewise.
155 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
156 (ada_varobj_ops): New.
157 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
158 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
159 * gdbtypes.h (get_target_type): Declare.
160 * varobj.c: Remove the inclusion of "ada-varobj.h" and
161 "ada-lang.h".
162 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
163 (ANONYMOUS_UNION_NAME): Likewise.
164 (get_type, get_value_type, get_target_type): Remove declarations.
165 (value_get_print_value, varobj_value_get_print_value): Likewise.
166 (c_number_of_children, c_name_of_variable): Likewise.
167 (c_name_of_child, c_path_expr_of_child): Likewise.
168 (c_value_of_child, c_type_of_child): Likewise.
169 (c_value_of_variable, cplus_number_of_children): Likewise.
170 (cplus_class_num_children, cplus_name_of_variable): Likewise.
171 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
172 (cplus_value_of_child, cplus_type_of_child): Likewise.
173 (cplus_value_of_variable, java_number_of_children): Likewise.
174 (java_name_of_variable, java_name_of_child): Likewise.
175 (java_path_expr_of_child, java_value_of_child): Likewise.
176 (java_type_of_child, java_value_of_variable): Likewise.
177 (ada_number_of_children, ada_name_of_variable): Likewise.
178 (ada_name_of_child, ada_path_expr_of_child): Likewise.
179 (ada_value_of_child, ada_type_of_child): Likewise.
180 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
181 (ada_value_has_mutated): Likewise.
182 (struct language_specific): Move it to varobj.h.
183 (CPLUS_FAKE_CHILD): Move it to varobj.h.
184 (restrict_range): Rename it varobj_restrict_range. Make it extern.
185 Callers update.
186 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
187 Make it extern.
188 (is_anonymous_child): Move it to c-varobj.c and rename to
189 varobj_is_anonymous_child. Caller update.
190 (get_type): Move it to c-varobj.c.
191 (get_value_type): Rename it varobj_get_value_type. Make it
192 extern.
193 (get_target_type): Move it gdbtypes.c.
194 (varobj_formatted_print_options): New function.
195 (value_get_print_value): Rename it to
196 varobj_value_get_print_value and make it extern.
197 (varobj_value_is_changeable_p): Make it extern.
198 (adjust_value_for_child_access): Move it to c-varobj.c.
199 (default_value_is_changeable_p): Rename it to
200 varobj_default_value_is_changeable_p. Make it extern.
201 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
202 (c_name_of_child, c_path_expr_of_child): Likewise.
203 (c_value_of_child, c_type_of_child): Likewise.
204 (c_value_of_variable, cplus_number_of_children): Likewise.
205 (cplus_class_num_children, cplus_name_of_variable): Likewise.
206 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
207 (cplus_value_of_child, cplus_type_of_child): Likewise.
208 (cplus_value_of_variable): Likewise.
209 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
210 (java_name_of_child, java_path_expr_of_child): Likewise.
211 (java_value_of_child, java_type_of_child): Likewise.
212 (java_value_of_variable): Likewise.
213 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
214 (ada_name_of_child, ada_path_expr_of_child): Likewise.
215 (ada_value_of_child, ada_type_of_child): Likewise.
216 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
217 (ada_value_has_mutated): Likewise.
218 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
219 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
220 (c_varobj_ops, cplus_varobj_ops): Declare.
221 (java_varobj_ops, ada_varobj_ops): Declare.
222 (varobj_default_value_is_changeable_p): Declare.
223 (varobj_value_is_changeable_p): Declare.
224 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
225 (varobj_get_path_expr_parent): Declare.
226 (varobj_value_get_print_value): Declare.
227 (varobj_formatted_print_options): Declare.
228 (varobj_restrict_range): Declare.
229
c8a62302
LM
2302013-10-17 Luis Machado <lgustavo@codesourcery.com>
231
232 * target/waitstatus.h (target_waitkind): Remove spurious
233 character from the comments.
234
eade6471
JB
2352013-10-17 Joel Brobecker <brobecker@adacore.com>
236
237 * gdbarch.sh (get_longjmp_target): Add method documentation.
238 * gdbarch.h: Regenerate.
239
5411b26c
TT
2402013-10-16 Tom Tromey <tromey@redhat.com>
241
242 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
243 label.
244
87326c87
LM
2452013-10-16 Luis Machado <lgustavo@codesourcery.com>
246
247 * gcore.in: Call GDB using the full path to the gcore script.
248 Error out if the GDB binary is not found.
249
fd0a4d76
SDJ
2502013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
251
252 PR gdb/16014
253 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
254 sizeof.
255
d92f7ee3
SDJ
2562013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
257
258 PR gdb/16042
259 * target.c (target_disable_btrace): Fix invalid return value for
260 void function.
261 (target_teardown_btrace): Likewise.
262
bb5ce47a
YQ
2632013-10-14 Yao Qi <yao@codesourcery.com>
264
265 * varobj.c (struct varobj): Move most of the fields to
266 varobj.h.
267 (struct varobj_dynamic): New struct.
268 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
269 (varobj_has_more): Likewise.
270 (dynamic_varobj_has_child_method): Likewise.
271 (update_dynamic_varobj_children): Likewise.
272 (varobj_get_num_children): Likewise.
273 (varobj_list_children, varobj_pretty_printed_p): Likewise.
274 (install_new_value_visualizer): Likewise.
275 (install_new_value_visualizer, install_new_value): Likewise.
276 (varobj_update, new_variable, free_variable): Likewise.
277 (my_value_of_variable, value_get_print_value): Likewise.
278 (install_visualizer): Change the type of parameter 'var' to
279 'struct varobjd_dynamic *'. Callers update.
280 * varobj.h (struct varobj): Moved from varobj.c.
281 (struct varobj) <dynamic>: New field.
282
0b76b0ce
SL
2832013-10-13 Sandra Loosemore <sandra@codesourcery.com>
284
285 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
286 as the preferred name of r30.
287 * nios2-linux-tdep.c (reg_offsets): Likewise.
288 * features/nios2-cpu.xml: Likewise.
289 * features/nios2-linux.c: Regenerated.
290 * features/nios2.c: Regenerated.
291 * regformats/nios2-linux.dat: Regenerated.
292
4856b6bc
JK
2932013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
294
295 Canonicalize directories for EXEC_FILENAME.
296 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
297 exec_filename.
298 * utils.c (gdb_realpath_keepfile): New function.
299 * utils.h (gdb_realpath_keepfile): New declaration.
300
9b557b58
DE
3012013-10-11 Doug Evans <dje@google.com>
302
303 * Makefile.in (GDBFLAGS): New variable.
304 (run): New rule.
305
ce13fade
JB
3062013-10-11 Joel Brobecker <brobecker@adacore.com>
307
308 * NEWS: Add entry documenting the new "-catch-assert" and
309 "-catch-exception" GDB/MI commands.
310
349774ef
JB
3112013-10-11 Joel Brobecker <brobecker@adacore.com>
312
313 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
314 "enabled".
315 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
316 "enabled". Set B->ENABLE_STATE accordingly.
317 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
318 ada-lang.c.
319 (create_ada_exception_catchpoint): Add declaration.
320 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
321 (create_ada_exception_catchpoint): Make non-static. Add new
322 parameter "disabled". Use it in call to
323 init_ada_exception_breakpoint.
324 (catch_ada_exception_command): Add parameter "enabled" in call
325 to create_ada_exception_catchpoint.
326 (catch_assert_command): Likewise.
327
328 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
329 Add declarations.
330 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
331 "catch-exception" commands.
332 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
333 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
334
761269c8
JB
3352013-10-11 Joel Brobecker <brobecker@adacore.com>
336
337 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
338 "enum exception_catchpoint_kind". Replace the "ex_" prefix
339 of all its enumerates with "ada_". Update the rest of this
340 file throughout.
341
b4a5b78b
JB
3422013-10-11 Joel Brobecker <brobecker@adacore.com>
343
344 * ada-lang.c (ada_decode_exception_location): Delete.
345 (create_ada_exception_catchpoint): Remove arguments "sal",
346 "addr_string" and "ops". Add argument "ex_kind" instead.
347 Adjust implementation accordingly, calling ada_exception_sal
348 to get the entities it no longer gets passed as arguments.
349 Document the function's arguments.
350 (catch_ada_exception_command): Use catch_ada_exception_command_split
351 instead of ada_decode_exception_location, and update call to
352 create_ada_exception_catchpoint.
353 (catch_ada_assert_command_split): Renames
354 ada_decode_assert_location. Remove parameters "addr_string" and
355 "ops", and now returns void. Adjust implementation accordingly.
356 Update the function documentation.
357 (catch_assert_command): Use catch_ada_assert_command_split
358 instead of ada_decode_assert_location. Update call to
359 create_ada_exception_catchpoint.
360
7ad1d32c 3612013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
362
363 * utils.h (perror_warning_with_name): Add declaration.
364 * utils.c (perror_warning_with_name): New function.
365 * cli/cli-cmds.c (source_script_with_search): Add call to
366 perror_warning_with_name if from_tty is nul.
367
7ad1d32c 3682013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
369
370 * utils.c (perror_string): New function, extracted out of
371 throw_perror_with_name.
372 (throw_perror_with_name): Rework to use perror_string.
373
bcc75809
YQ
3742013-10-11 Yao Qi <yao@codesourcery.com>
375
376 * remote.c (discard_pending_stop_replies_in_queue): Update
377 declaration.
378 (struct stop_reply) <rs>: New field.
379 (remove_stop_reply_of_remote_state): New function.
380 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
381 Callers update. Pass remove_stop_reply_of_remote_state to
382 QUEUE_iterate.
383 (remote_parse_stop_reply): Initialize field 'rs'.
384
05feb193
WN
3852013-10-10 Will Newton <will.newton@linaro.org>
386
387 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
388 linux_init_abi.
389
0d12017b
JB
3902013-10-10 Joel Brobecker <brobecker@adacore.com>
391
392 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
393 serial_baud_show_cmd.
394 (_initialize_cli_cmds): Delete the code creating the
395 "set/show remotebaud" commands.
396 * serial.c (baud_rate): Move here from top.c.
397 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
398 (_initialize_serial): Create "set/show serial baud" commands.
399 Add "set/show remotebaud" command aliases.
400 * top.c (baud_rate): Moved to serial.c.
401 * NEWS: Document the new "set/show serial baud" commands,
402 replacing "set/show remotebaud".
403
578d3588
PA
4042013-10-09 Pedro Alves <palves@redhat.com>
405
406 * breakpoint.c (insert_bp_location): Use memory_error_message to
407 build the memory error string.
408 * c-lang.c: Include "gdbcore.h".
409 (c_get_string): Use memory_error to throw error.
410 (target_xfer_memory_error): Delete.
411 (memory_error_message): New, factored out from
412 target_xfer_memory_error.
413 (memory_error): Change parameter type to target_xfer_error.
414 Rewrite.
415 (read_memory): Use memory_error instead of
416 target_xfer_memory_error.
417 * gdbcore.h: Include "target.h".
418 (memory_error): Change parameter type to target_xfer_error.
419 (memory_error_message): Declare function.
420 * target.c (target_read_memory, target_read_stack)
421 (target_write_memory, target_write_raw_memory): Return
422 TARGET_XFER_E_IO on error. Adjust comments.
423 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
424 instead of EIO.
425 * target.h (target_read, target_insert_breakpoint)
426 (target_remove_breakpoint): Adjust comments.
427 * valprint.c (partial_memory_read): Rename parameter, and adjust
428 comment.
429 (val_print_string): Use memory_error_message to build the memory
430 error string.
431
c74e1ccf
JK
4322013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
433
434 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
435 result variable. Rename variable fopen_e_ever_failed to
436 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
437
915215be
PA
4382013-10-09 Pedro Alves <palves@redhat.com>
439
440 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
441 (monitor_write_memory_longlongs, monitor_write_memory_block):
442 Constify 'myaddr' parameter.
443 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
444 helper.
445 (monitor_xfer_partial): New function.
446 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
447 hook. Install a to_xfer_partial hook.
448
acd13123
TT
4492013-10-09 Tom Tromey <tromey@redhat.com>
450
451 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
452 bfd_get_alt_debug_link_info.
453
40135bb1
JK
4542013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 New flag OBJF_NOT_FILENAME.
457 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
458 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
459 allocate_objfile.
460 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
461 symbol_file_add_from_bfd.
462 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
463 allocate_objfile.
464 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
465 NULL.
466 * objfiles.h (OBJF_NOT_FILENAME): New.
467
dc294be5
TT
4682013-10-08 Tom Tromey <tromey@redhat.com>
469
470 * Makefile.in (SFILES): Add build-id.c.
471 (HFILES_NO_SRCDIR): Add build-id.h.
472 * build-id.c: New file, largely from elfread.c. Modified
473 most functions.
474 * build-id.h: New file.
475 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
476 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
477 Search for dwz file using build-id.
478 * elfread.c (build_id_bfd_get, build_id_verify)
479 (build_id_to_debug_filename, find_separate_debug_file): Remove.
480
db230ce3
JB
4812013-10-08 Joel Brobecker <brobecker@adacore.com>
482
483 * ada-lang.c (compare_names_with_case): Renamed from
484 compare_names, adding a new parameter "casing" and its handling.
485 New function documentation.
486 (compare_names): New function, implemented using
487 compare_names_with_case.
488
6501c98a
JB
4892013-10-08 Joel Brobecker <brobecker@adacore.com>
490
491 * ada-lang.c (ada_exception_sal): Remove advance declaration.
492
84a1243b
TT
4932013-10-07 Tom Tromey <tromey@redhat.com>
494
495 * objfiles.c (free_objfile_per_bfd_storage): Delete the
496 demangled_names_hash.
497 (free_objfile): Don't delete the demangled_names_hash.
498 * objfiles.h (struct objfile_per_bfd_storage)
499 <demangled_names_hash>: New field.
500 (struct objfile) <demangled_names_hash>: Move to
501 objfile_per_bfd_storage.
502 * symfile.c (reread_symbols): Don't delete the
503 demangled_names_hash.
504 * symtab.c (create_demangled_names_hash): Update.
505 (symbol_set_names): Update.
506
1da77581
TT
5072013-10-07 Tom Tromey <tromey@redhat.com>
508
509 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
510 needs_relocations>: New fields.
511 (gdb_bfd_requires_relocations): New function.
512 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
513 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
514 the BFD needs relocations applied.
515
46ecd527
PA
5162013-10-07 Pedro Alves <palves@redhat.com>
517
518 PR breakpoints/11568
519 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
520 the thread list" instead of "gone".
521
0c557179
SDJ
5222013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
523
524 * NEWS: Mention new convenience variable $_exitsignal.
525 * corelow.c (core_open): Reset exit convenience variables. Set
526 $_exitsignal to the uncaught signal which generated the corefile.
527 * infrun.c (handle_inferior_event): Reset exit convenience
528 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
529 (clear_exit_convenience_vars): New function.
530 * inferior.h (clear_exit_convenience_vars): New prototype.
531
1cc47d81
YQ
5322013-10-06 Yao Qi <yao@codesourcery.com>
533
534 * varobj.h: Add comments to enum varobj_languages.
535
73869dc2
DE
5362013-10-04 Doug Evans <dje@google.com>
537
538 Add support for DWP file format version 2.
539 * NEWS: Mention support for DWP file format version 2.
540 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
541 union of asection, containing_section. New fields virtual_offset
542 and is_virtual. Change type of readin filed from int to char.
543 (dwo_sections, dwo_file): Tweak comments.
544 (dwp_v2_section_ids): New enum.
545 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
546 str_offsets, types.
547 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
548 All uses updated.
549 (virtual_v2_dwo_sections): New struct.
550 (dwp_hash_table): New fields version, nr_columns. Change type of
551 section_pool field to a union.
552 (dwp_file): New field version.
553 (dwarf2_has_info): Check for virtual sections.
554 (get_containing_section): New function.
555 (get_section_bfd_owner, get_section_bfd_section): Call it.
556 (dwarf2_locate_sections): Update.
557 (dwarf2_section_empty_p): Update.
558 (dwarf2_read_section): Handle virtual sections.
559 (locate_dwz_sections): Update.
560 (create_dwp_hash_table): Document and handle V2 format.
561 (locate_v1_virtual_dwo_sections): Renamed from
562 locate_virtual_dwo_sections and update. All callers updated.
563 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
564 Delete arg htab. Rename arg section_index to unit_index.
565 All callers updated.
566 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
567 All uses updated.
568 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
569 (lookup_dwo_unit_in_dwp): Add V2 support.
570 (dwarf2_locate_dwo_sections): Update.
571 (dwarf2_locate_common_dwp_sections): Renamed from
572 dwarf2_locate_dwp_sections and update. All callers updated.
573 (dwarf2_locate_v2_dwp_sections): New function.
574 (open_and_init_dwp_file): Add V2 support.
575 (read_str_index): New locals str_section, str_offsets_section.
576
9a2c3737
PA
5772013-10-04 Pedro Alves <palves@redhat.com>
578
579 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
580 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
581 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
582 describing comments with references to ptid.h.
583 * common/ptid.h: Remove intro description of constructors,
584 accessors and predicates.
585 (struct ptid): Reformat.
586 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
587 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
588 describing comments.
589
f5371440
JB
5902013-10-04 Joel Brobecker <brobecker@adacore.com>
591
592 * aix-thread.c (sync_threadlists): Add missing ')' in call
593 to ptid_build.
594
793e1c06
JB
5952013-10-04 Joel Brobecker <brobecker@adacore.com>
596
597 * procfs.c (procfs_init_inferior): Fix typo causing the build
598 to fail.
599
26f0edc1
JB
6002013-10-04 Joel Brobecker <brobecker@adacore.com>
601
602 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
603
5713b9b5
JB
6042013-10-04 Joel Brobecker <brobecker@adacore.com>
605
606 * mi/mi-main.c (run_one_inferior): Add function description.
607 Make ARG a pointer to an integer whose value determines whether
608 we should "run" or "start" the program.
609 (mi_cmd_exec_run): Add handling of the "--start" option.
610 Reject all other command-line options.
611 * NEWS: Add entry for "-exec-run"'s new "--start" option.
612
f48ff2a7
YQ
6132013-10-04 Yao Qi <yao@codesourcery.com>
614
615 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
616 (struct notif_client) <pending_event>: Moved
617 to struct remote_notif_state.
618 <id>: New field.
619 (struct remote_notif_state) <pending_event>: New field.
620 (notif_event_xfree): Declare.
621 * remote-notif.c (handle_notification): Adjust.
622 (notif_event_xfree): New function.
623 (do_notif_event_xfree): Call notif_event_xfree.
624 (remote_notif_state_xfree): Call notif_event_xfree to free
625 each element in field pending_event.
626 * remote.c (discard_pending_stop_replies): Remove declaration.
627 (discard_pending_stop_replies_in_queue): Declare.
628 (remote_close): Call discard_pending_stop_replies_in_queue
629 instead of discard_pending_stop_replies.
630 (remote_start_remote): Adjust.
631 (stop_reply_xfree): Call notif_event_xfree.
632 (notif_client_stop): Adjust initialization.
633 (remote_notif_remove_all): Rename it to ...
634 (remove_stop_reply_for_inferior): ... this. Update comments.
635 Don't check INF is NULL.
636 (discard_pending_stop_replies): Return early if notif_state is
637 NULL. Adjust. Don't check INF is NULL.
638 (remote_notif_get_pending_events): Adjust.
639 (discard_pending_stop_replies_in_queue): New function.
640 (remote_wait_ns): Likewise.
641
5965e028
YQ
6422013-10-04 Yao Qi <yao@codesourcery.com>
643
644 * remote-notif.c (DECLARE_QUEUE_P): Remove.
645 (notif_queue): Remove.
646 (remote_notif_process): Add one parameter 'notif_queue'.
647 Update comments. Callers update.
648 (remote_async_get_pending_events_token): Remove.
649 (remote_notif_register_async_event_handler): Remove.
650 (remote_notif_unregister_async_event_handler): Remove.
651 (handle_notification): Add parameter 'notif_queue'. Update
652 comments. Callers update.
653 (notif_xfree): Remove.
654 (remote_notif_state_allocate): New function.
655 (remote_notif_state_xfree): New function.
656 (_initialize_notif): Remove code to allocate queue.
657 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
658 (struct remote_notif_state): New.
659 (handle_notification): Update declaration.
660 (remote_notif_process): Likewise.
661 (remote_notif_register_async_event_handler): Remove.
662 (remote_notif_unregister_async_event_handler): Remove.
663 (remote_notif_state_allocate): Declare.
664 (remote_notif_state_xfree): Declare.
665 * remote.c (struct remote_state) <notif_state>: New field.
666 (remote_close): Don't call
667 remote_notif_unregister_async_event_handler. Call
668 remote_notif_state_xfree.
669 (remote_open_1): Don't call
670 remote_notif_register_async_event_handler. Call
671 remote_notif_state_allocate.
672
5e5ac9a5
YQ
6732013-10-04 Yao Qi <yao@codesourcery.com>
674
675 * varobj.c (create_child_with_value): Remove 'const' from the
676 type of parameter 'name'.
677 (varobj_add_child): Likewise.
678 (install_dynamic_child): Remove 'const' from the type of
679 parameter 'name'.
680 (varobj_add_child): Likewise.
681 (create_child_with_value): Likewise. Update comments. Don't
682 duplicate 'name'.
683 (update_dynamic_varobj_children): Duplicate 'name'
684 and pass it to install_dynamic_child.
685
06ab7b19
PM
6862013-10-03 Phil Muldoon <pmuldoon@redhat.com>
687
688 * python/py-value.c (convert_value_from_python): Move PyInt_Check
689 conversion logic to occur after PyLong_Check. Comment on order
690 change significance.
691 * python/py-arch.c (archpy_disassemble): Comment on order of
692 conversion for integers and longs.
693
8ae377e8
PA
6942013-10-03 Pedro Alves <palves@redhat.com>
695
696 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
697 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
698 functions. Always test for PTRACE_O_TRACESYSGOOD even if
699 PTRACE_O_TRACEFORK is not supported.
700 (linux_test_for_tracesysgood): New function.
701 (linux_test_for_tracefork): New function, factored out from
702 linux_check_ptrace_features, and also don't kill child_pid here.
703
b1328b1b
TG
7042013-10-03 Tristan Gingold <gingold@adacore.com>
705
706 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
707 Remove verbose error reporting. Use detected state to
708 thread_set_state call.
709 (i386_darwin_dr_get): Fix return type. Remove verbose error
710 report.
711 Remove trailing spaces.
712
901461f8
PA
7132013-10-02 Pedro Alves <palves@redhat.com>
714
715 * cp-valprint.c (cp_print_value_fields): Adjust calls to
716 val_print_optimized_out.
717 * jv-valprint.c (java_print_value_fields): Likewise.
718 * p-valprint.c (pascal_object_print_value_fields): Likewise.
719 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
720 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
721 new optimized out value.
722 * findvar.c (address_from_register): Likewise.
723 * frame.c (put_frame_register): Tweak error string to say the
724 register was not saved, rather than optimized out.
725 * infcmd.c (default_print_one_register_info): Adjust call to
726 val_print_optimized_out. Use value_of_register instead of
727 get_frame_register_value.
728 * mi/mi-main.c (output_register): Use value_of_register instead of
729 get_frame_register_value.
730 * valprint.c (valprint_check_validity): Likewise.
731 (val_print_optimized_out): New value parameter. If the value is
732 lval_register, print <not saved> instead.
733 (value_check_printable, val_print_scalar_formatted): Adjust calls
734 to val_print_optimized_out.
735 * valprint.h (val_print_optimized_out): New value parameter.
736 * value.c (struct value) <optimized_out>: Extend comment.
737 (error_value_optimized_out): New function.
738 (require_not_optimized_out): Use it. Use a different string for
739 lval_register values.
740 * value.h (error_value_optimized_out): New declaration.
741 * NEWS: Mention <not saved>.
742
042a84d9
JB
7432013-10-02 Joel Brobecker <brobecker@adacore.com>
744
745 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
746 strcmp to compare two symtab filenames.
747
6b9780fb
JB
7482013-10-02 Joel Brobecker <brobecker@adacore.com>
749
750 * symtab.c (search_symbols_equal): Delete.
751 (sort_search_symbols_remove_dups): Replace call to
752 search_symbols_equal by call to compare_search_syms,
753 adjusting as necessary.
754
751e7549
PM
7552013-10-02 Phil Muldoon <pmuldoon@redhat.com>
756
757 PR python/15579
758
759 * python/python.c: Document gdb.execute command in Python help.
760
1efd7661
PM
7612013-10-02 Phil Muldoon <pmuldoon@redhat.com>
762
763 * python/py-frame.c (frame_info_to_frame_object): Use
764 gdbpy_convert_exception. Clean up Python object on failure.
765
562fc849
PM
7662013-10-02 Phil Muldoon <pmuldoon@redhat.com>
767
768 * python/lib/gdb/command/frame_filters.py
769 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
770 (ShowFrameFilterPriority.invoke): Ditto.
771
d7561cbb
KS
7722013-10-01 Keith Seitz <keiths@redhat.com>
773
774 * linespec.c (struct ls_parser): Make 'saved_arg' const.
775 (parse_linespec): Make 'argptr' const.
776 Remove temporary cast of 'argptr' to const char **.
777 (decode_line_full): Pass const pointer to parse_linespec.
778 (decode_line_1): Likewise.
779 (decode_objc): Make local variable 'new_argptr' const.
780 (find_function_symbols): Remove temporary cast to char *
781 to find_imps.
782 * objc-lang.c (find_imps): Make argument 'method' const.
783 Return const.
784 * objc-lang.h (find_imps): Likewise.
785
7862013-10-01 Keith Seitz <keiths@redhat.com>
787
788 * completer.c (skip_quoted_chars): Make all arguments const.
789 Return const.
790 (skip_quoted): Likewise.
791 * completer.h (skip_quoted_chars): Likewise.
792 (skip_quoted): Likewise.
793 * defs.h (skip_quoted): Remove duplicate declaration.
794 * jv-exp.y: Include completer.h.
795 (yylex): Remove unneccessary cast to char * fro skip_quoted.
796 * p-exp.y: Include completer.h.
797
7982013-10-01 Keith Seitz <keiths@redhat.com>
799
800 * c-exp.y (parse_number): Make first argument const.
801 Make a copy of the input to manipulate.
802 (c_parse_escape): Make first argument const.
803 Make local variable 'tokptr' const.
804 (parse_string_or_char): Make first two arguments const.
805 (macro_original_text): Make const.
806 (lex_one_token): Make local variable 'tokstart' const.
807 Likewise for local variables named 'p'.
808 Cast away const for struct stoken (temporary).
809 * c-lang.h (c_parse_escpae): Make first argument const.
810 * cli/cli-cmds.c (echo_command): Make local variable 'p'
811 const.
812 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
813 var_string case.
814 * f-exp.y (parse_number): Make first argument const.
815 (match_string_literal): Make local variable 'tokstart'
816 const.
817 (yylex): Make local variable 'p' const.
818 Cast away const for struct stoken (temporary).
819 * go-exp.y (parse_number): Make first argument const.
820 (parse_string_or_char): Likewise.
821 Make local variable 'tokstart' const.
822 (lex_one_token): Likewise for numerous locals called 'p'.
823 Cast away const for struct stoken (temporary).
824 * jv-exp.y (parse_number): Make first argument const.
825 Make local variables 'tokstart' and 'tokptr' const.
826 Cast away const for call to skip_quoted (temporary).
827 (yylex): Make local variable 'p' const.
828 Cast away const for struct stoken (temporary).
829 * m2-exp.y (parse_number): Make local variable 'p' const.
830 (yylex): Likewise for 'tokstart'.
831 Cast away const for struct stoken (temporary).
832 Make local variable 'p' const.
833 * macroexp.c (get_character_constant): Pass a const string
834 to c_parse_escape.
835 (get_string_literal): Likewise.
836 (macro_expand_next): Make first argument const.
837 Cast away const for init_shared_buffer.
838 * macroexp.h (macro_expand_next): Make first argument const.
839 * p-exp.y (yylex): Make a local copy of 'lexptr'.
840 Pass a const string to c_parse_escape.
841 Make local variables 'p' and 'namestart' const.
842 * parse.c (lexptr): Make const.
843 (prev_lexptr): Likewise.
844 (find_template_name_end): Return const.
845 Make argument const, too.
846 (parse_exp_in_context): Make first argument const.
847 Remove the entire const_hack.
848 (parse_exp_in_context_1): Make first argument const.
849 * parser-defs.h (find_template_name_end): Return const.
850 Make argument const, too.
851 (lexptr): Make const.
852 (prev_lexptr): Likewise.
853 * utils.c (parse_escape): Make second argument const.
854 * utils.h (parse_escape): Likewise.
855
8562013-10-01 Keith Seitz <keiths@redhat.com>
857
858 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
859 is now const.
860 (block_lookup): Make 'raw_name' and 'name' const.
861 * ada-lex.l (processString): Update for struct stoken.ptr.
862 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
863 (operator_stoken): Likewise.
864 (lex_one_token): Remove temporary cast to char * for
865 'yylval.sval.ptr'.
866 * f-exp.y (yylex): Likewise.
867 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
868 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
869 * go-exp.y (lex_one_token): Remove temporary cast to char * for
870 'yylval.sval.ptr'.
871 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
872 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
873 * linespec.c (struct ls_parser): Make 'stream' const.
874 (find_parameter_list_end): Make argument 'input' and local
875 variable 'p' const.
876 (linespec_lexer_lex_string): Make local variables 'start' and
877 'p' const.
878 Use skip_spaces_const instead of skip_spaces.
879 (linespec_lexer_peek_token): Make local variable 'saved_stream'
880 const.
881 (parse_linespec): Temporarily cast 'argptr' to const for
882 'parser->lexer.stream'.
883 * m2-exp.y (yylex): Remove temporary cast to char * for
884 'yylval.sval.ptr'.
885 * objc-lang.c (add_msglist): Make local variable 'p' const.
886 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
887 (exp : STRING): Make 'sp' const.
888 (parse_number): Make argument 'p' const.
889 * parser-defs.h (struct stoken): Make 'ptr' const.
890
193a8eac
DE
8912013-10-01 Doug Evans <dje@google.com>
892
893 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
894
2213e2be
YQ
8952013-10-01 Yao Qi <yao@codesourcery.com>
896
897 * varobj.c (c_value_of_root): Remove declaration.
898 (cplus_value_of_root, java_value_of_root): Likewise.
899 (ada_value_of_root): Likewise.
900 (struct language_specific) <value_of_root>: Remove.
901 (languages): Update initialization.
902 (check_scope): Move earlier.
903 (c_value_of_root): Move earlier and rename to ...
904 (value_of_root_1): ... this.
905 (value_of_root): Caller update.
906 (cplus_value_of_root, java_value_of_root): Remove.
907 (ada_value_of_root): Remove.
908
c573f273
YQ
9092013-10-01 Yao Qi <yao@codesourcery.com>
910
911 * varobj.c (varobj_format_string): Remove "unknown".
912 (languages): Remove the first element.
913 * varobj.h (enum varobj_languages): Remove vlang_c.
914
56250258
YQ
9152013-10-01 Yao Qi <yao@codesourcery.com>
916
917 * varobj.c (struct language_specific) <language>: Remove.
918 (languages): Update the initialization.
919
29f9ebfa
YQ
9202013-10-01 Yao Qi <yao@codesourcery.com>
921
922 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
923 "solib-target.h". Include "windows-tdep.h".
924 (arm_wince_init_abi): Call windows_init_abi. Remove call to
925 set_solib_ops and set_gdbarch_has_dos_based_file_system.
926 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
927 windows-tdep.o to gdb_target_obs.
928
64870a42
YQ
9292013-10-01 Yao Qi <yao@codesourcery.com>
930
931 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
932 "solib-target.h".
933 (amd64_windows_init_abi): Don't call set_solib_ops and
934 set_gdbarch_iterate_over_objfiles_in_search_order. Call
935 windows_init_abi instead.
936 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
937 "solib-target.h".
938 (i386_cygwin_init_abi): Don't call set_solib_ops,
939 set_gdbarch_has_dos_based_file_system and
940 set_gdbarch_iterate_over_objfiles_in_search_order. Call
941 windows_init_abi instead.
942 * windows-tdep.c: Include "solib.h" and "solib-target.h".
943 (windows_init_abi): New function.
944 (windows_iterate_over_objfiles_in_search_order): Make it
945 static.
946 * windows-tdep.h (windows_init_abi): Declare.
947 (windows_iterate_over_objfiles_in_search_order): Remove
948 declaration.
949
0aebdefa
JB
9502013-10-01 Jerome Guitton <guitton@adacore.com>
951
952 Checked in by Joel Brobecker <brobecker@adacore.com>
953 * system-gdbinit/elinos.py (get_elinos_environment): Return an
954 incomplete dictionnary instead of None in case of missing
955 environment variables.
956 (elinos_init): in case of an incomplete environment, best
957 effort to load system libraries instead of abort.
958
1c8e84b0
JB
9592013-10-01 Joel Brobecker <brobecker@adacore.com>
960
961 * ada-lang.c (ada_has_this_exception_support): Ignore
962 mst_solib_trampoline minimal symbols.
963
61d82a0d
TG
9642013-09-30 Tristan Gingold <gingold@adacore.com>
965
966 * i386-darwin-nat.c (darwin_complete_target): Install methods for
967 hardware watchpoint.
968 (i386_darwin_dr_set): Support 32 and 64 bit states.
969 (i386_darwin_dr_get): Likewise.
970 (i386_darwin_dr_set_control): Make static.
971 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
972 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
973
dfd4cc63
LM
9742013-09-30 Luis Machado <lgustavo@codesourcery.com>
975
976 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
977 Replace TIDGET with ptid_get_lwp.
978 Replace GET_LWP with ptid_get_lwp.
979 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
980 Replace BUILD_THREAD with ptid_build.
981 Replace BUILD_LWP with ptid_build.
982 Replace PIDGET with ptid_get_pid.
983 Replace TIDGET with ptid_get_lwp.
984 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
985 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
986 Replace TIDGET with ptid_get_lwp.
987 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
988 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
989 Replace TIDGET with ptid_get_lwp.
990 Replace GET_LWP with ptid_get_lwp.
991 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
992 * auxv.c: Likewise.
993 * breakpoint.c: Likewise.
994 * common/ptid.c (ptid_is_pid): Condense check for
995 null_ptid and minus_one_ptid.
996 (ptid_lwp_p): New function.
997 (ptid_tid_p): New function.
998 * common/ptid.h: Update comments for accessors.
999 (ptid_lwp_p): New prototype.
1000 (ptid_tid_p): New prototype.
1001 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1002 * gcore.c: Replace PIDGET with ptid_get_pid.
1003 * gdbthread.h: Likewise.
1004 * gnu-nat.c: Likewise.
1005 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1006 Replace TIDGET with ptid_get_lwp.
1007 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1008 * hppanbsd-nat.c: Likewise.
1009 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1010 Replace TIDGET with ptid_get_lwp.
1011 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1012 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1013 * infcmd.c: Likewise.
1014 * inferior.h: Likewise.
1015 * inflow.c: Likewise.
1016 * infrun.c: Likewise.
1017 * linux-fork.c: Likewise.
1018 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1019 Replace GET_PID with ptid_get_pid.
1020 Replace is_lwp with ptid_lwp_p.
1021 Replace GET_LWP with ptid_get_lwp.
1022 Replace BUILD_LWP with ptid_build.
1023
5b4e221c
MF
10242013-09-28 Mike Frysinger <vapier@gentoo.org>
1025
1026 * common/linux-btrace.c: Move sys/syscall.h out of the
1027 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1028 Also check for SYS_perf_event_open before attempting to buid.
1029
57d63ce2
DE
10302013-09-27 Doug Evans <dje@google.com>
1031
19ac8c2e
DE
1032 * dwarf2read.c (dwarf2_section_info): Add comment.
1033 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1034 All uses updated.
1035 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1036 (dwarf2_read_section): Delete unused local "header". Add section
1037 name to error message.
1038 (create_dwo_in_dwp): Tweak comment.
1039 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1040
a32a8923
DE
1041 * dwarf2read.c (die_reader_specs): Tweak comment.
1042 (get_section_bfd_owner, get_section_bfd_section): New functions.
1043 (get_section_name, get_section_file_name): New functions.
1044 (get_section_id, get_section_flags): New functions.
1045 (*): Use new functions to access section fields.
1046
57d63ce2
DE
1047 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1048 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1049 arg "htab". All callers updated.
1050 (create_debug_types_hash_table): Remove redundant copy of
1051 abbrev_section.
1052 (create_dwo_in_dwp): Tweak comments.
1053 (read_str_index): Tweak comment. Record dwarf form name in static
1054 local.
1055
3736004f
PA
10562013-09-27 Pedro Alves <palves@redhat.com>
1057
1058 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1059 (remote_filename_p): Add comment.
1060 * remote.c (remote_filename_p): Adjust to use
1061 REMOTE_SYSROOT_PREFIX.
1062 * solib.c (solib_find): When deciding whether we need to add a
1063 directory separator, check whether the sysroot is "remote:"
1064 instead of checking whether the patch has a drive spec. Add
1065 comments.
1066
5b5596ff
PA
10672013-09-27 Pedro Alves <palves@redhat.com>
1068
1069 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1070 Delete fields.
1071 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1072 directly.
1073
b5eef7aa
JK
10742013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1075
1076 Fix set debug frame output.
1077 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1078 SENTINEL_FRAME entry lower to match enum frame_type order.
1079
5b856f36
PM
10802013-09-26 Pierre Muller <muller@sourceware.org>
1081
1082 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1083 AMD64_R15_REGNUM when a register index is expected.
1084 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1085 Substitute in array.
1086 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1087 (amd64_push_arguments): Substitute in integer_regnum array.
1088
ade7ed9e
DE
10892013-09-25 Doug Evans <dje@google.com>
1090
d3e81981
DE
1091 * objfiles.c (allocate_objfile): Move comment to better place.
1092
8fb8eb5c
DE
1093 New option "set debug symfile on".
1094 * NEWS: Mention "set debug symfile".
1095 * Makefile.in (SFILES): Add symfile-debug.c.
1096 (COMMON_OBS): Add symfile-debug.o.
1097 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1098 objfile's symbol functions.
1099 * objfiles.h (objfile_set_sym_fns): Declare.
1100 * symfile-debug.c: New file.
1101 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1102 objfile's symbol functions.
1103 (reread_symbols): Ditto.
1104
c256e171
DE
1105 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1106 All uses updated.
1107 (add_symtab_fns): Update prototype.
1108 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1109 (registered_sym_fns): ... this.
1110 (symtab_fns): Update.
1111 (add_symtab_fns): New arg "flavour". All callers updated.
1112 (find_sym_fns): Rewrite to use new sym_fns registry.
1113
f56ce883
DE
1114 * symfile.h (struct sym_fns): Add "objfile" argument to
1115 sym_read_linetable. All uses updated.
1116
20c681d1
DE
1117 * symtab.c (domain_name, search_domain_name): New functions.
1118 * symtab.h (domain_name, search_domain_name): Declare.
1119
ade7ed9e
DE
1120 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1121 map_matching_symbols so objfile is first. All uses updated.
1122 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1123 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1124
7d760051
UW
11252013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1126
1127 PR shlibs/8882
1128 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1129 link map entries.
1130
020f7036
DE
11312013-09-24 Doug Evans <dje@google.com>
1132
1133 * objfiles.c (free_objfile): Move comment.
1134
598402f0
JB
11352013-09-24 Joel Brobecker <brobecker@adacore.com>
1136
1137 * ada-exp.y (string_to_operator): Delete.
1138 (dummy_string_to_ada_operator): Delete.
1139
bf4d6c1c
JB
11402013-09-24 Joel Brobecker <brobecker@adacore.com>
1141
1142 Revert:
1143 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1144 amd64-tdep.c.
1145 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1146 call_dummy_integer_regs, and classify.
1147 * amd64-tdep.h (amd64_classify): Add declaration.
1148 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1149 (amd64_reg_class): Delete, moved to i386-tdep.h.
1150 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1151 Replace call to amd64_classify by call to tdep->classify.
1152 (amd64_push_arguments): Get the list of registers to use for
1153 passing integer parameters from the gdbarch tdep structure,
1154 rather than using a hardcoded one. Replace calls to amd64_classify
1155 by calls to tdep->classify.
1156 (amd64_push_dummy_call): Get the register number used for
1157 the "hidden" argument from tdep->call_dummy_integer_regs.
1158 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1159 and tdep->call_dummy_integer_regs. Set tdep->classify.
1160
849e9755
JB
11612013-09-24 Joel Brobecker <brobecker@adacore.com>
1162
1163 Revert:
1164 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1165 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1166 where tdep->memory_args_by_pointer is non-zero.
1167
c1459fd6
JB
11682013-09-24 Joel Brobecker <brobecker@adacore.com>
1169
1170 Revert:
1171 * i386-tdep.h (struct gdbarch_tdep): Add new field
1172 integer_param_regs_saved_in_caller_frame.
1173 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1174 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1175
20c2e3e0
JB
11762013-09-24 Joel Brobecker <brobecker@adacore.com>
1177
874440b8 1178 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1179 (amd64_windows_classify): Delete.
1180 (amd64_windows_passed_by_integer_register)
1181 (amd64_windows_passed_by_xmm_register)
1182 (amd64_windows_passed_by_pointer)
1183 (amd64_windows_adjust_args_passed_by_pointer)
1184 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1185 (amd64_windows_push_dummy_call): New functions.
1186 (amd64_windows_init_abi): Remove setting of
1187 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1188 tdep->classify, tdep->memory_args_by_pointer and
1189 tdep->integer_param_regs_saved_in_caller_frame.
1190 Add call to set_gdbarch_push_dummy_call.
1191
82bf32bc
JK
11922013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1193
1194 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1195 objfile->original_name.
1196
24ba069a
JK
11972013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1198
1199 Pass down original filename for objfile.
1200 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1201 * elfread.c (elf_symfile_read): Likewise.
1202 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1203 longer set ORIGINAL_NAME.
1204 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1205 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1206 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1207 symbol_file_add_from_bfd call.
1208 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1209 (macho_check_dsym): Add parameter filenamep. Change function comment.
1210 Set *filenamep.
1211 (macho_symfile_read): New variable dsym_filename. Update
1212 macho_check_dsym call. Use it for symbol_file_add_separate.
1213 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1214 it. Use it for objfile->original_name.
1215 (objfile_name): Return OBFD's filename, if available.
1216 * objfiles.h (allocate_objfile): Add new parameter name.
1217 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1218 * symfile-mem.c (symbol_file_add_from_memory): Update
1219 symbol_file_add_from_bfd call.
1220 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1221 comment for it.
1222 (symbol_file_add_with_addrs): New parameter name, add function comment
1223 for it. Remove variable name. Update allocate_objfile call.
1224 (symbol_file_add_separate): New parameter name, add function comment
1225 for it. Update symbol_file_add_with_addrs call.
1226 (symbol_file_add_from_bfd): New parameter name. Update
1227 symbol_file_add_with_addrs call.
1228 (symbol_file_add): Update symbol_file_add_from_bfd call.
1229 (reread_symbols): New variable original_name. Save
1230 objfile->original_name by it.
1231 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1232 second parameter.
1233
4262abfb
JK
12342013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1235
1236 Code cleanup: Add objfile_name accessor function.
1237 * ada-lang.c (is_known_support_routine): Use objfile_name.
1238 * auto-load.c (source_gdb_script_for_objfile)
1239 (auto_load_objfile_script): Likewise.
1240 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1241 * dbxread.c (dbx_symfile_read): Likewise.
1242 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1243 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1244 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1245 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1246 (lookup_dwp_signatured_type, lookup_dwo_unit)
1247 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1248 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1249 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1250 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1251 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1252 (read_subrange_type, load_partial_dies, read_partial_die)
1253 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1254 (die_containing_type, build_error_marker_type, lookup_die_type)
1255 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1256 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1257 (get_DW_AT_signature_type, write_psymtabs_to_index)
1258 (save_gdb_index_command): Likewise.
1259 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1260 Likewise.
1261 * expprint.c (dump_subexp_body_standard): Likewise.
1262 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1263 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1264 original_name.
1265 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1266 obj_name, use objfile_name for it, use the variable.
1267 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1268 Use objfile_name.
1269 * machoread.c (macho_symtab_read, macho_check_dsym)
1270 (macho_symfile_relocate): Likewise.
1271 * maint.c (maintenance_translate_address): Likewise.
1272 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1273 * minsyms.c (install_minimal_symbols): Likewise.
1274 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1275 original_name.
1276 (filter_overlapping_sections): Use objfile_name.
1277 (objfile_name): New function.
1278 * objfiles.h (struct objfile): Rename field name to original_name.
1279 (objfile_name): New prototype.
1280 * printcmd.c (sym_info, address_info): Use objfile_name.
1281 * probe.c (parse_probes, collect_probes, compare_probes)
1282 (info_probes_for_ops): Likewise.
1283 * progspace.c (clone_program_space): Likewise.
1284 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1285 (maintenance_info_psymtabs): Likewise.
1286 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1287 (source_section_scripts): Likewise.
1288 * python/py-objfile.c (objfpy_get_filename): Likewise.
1289 * python/py-progspace.c (pspy_get_filename): Likewise.
1290 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1291 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1292 * solib.c (solib_read_symbols): Likewise.
1293 * stabsread.c (scan_file_globals): Likewise.
1294 * stap-probe.c (handle_stap_probe): Likewise.
1295 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1296 (find_separate_debug_file_by_debuglink): Likewise.
1297 (reread_symbols): Likewise. Use the objfile field name renamed to
1298 original_name.
1299 (allocate_symtab): Use objfile_name.
1300 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1301 (dump_objfile, dump_msymbols, dump_symtab_1)
1302 (maintenance_print_msymbols, maintenance_print_objfiles)
1303 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1304 * target.c (target_translate_tls_address, target_info): Likewise.
1305 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1306 objfile_name.
1307
4721dc18
JK
13082013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1309
1310 Code cleanup.
1311 * probe.c (parse_probes): Rename variable objfile_name to
1312 objfile_namestr.
1313
a61d6db8
JK
13142013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1315
1316 Remove solib-sunos.c.
1317 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1318 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1319 * objfiles.c (rt_common_objfile): Remove.
1320 (free_objfile): Remove rt_common_objfile comparison.
1321 * objfiles.h (rt_common_objfile): Remove.
1322 * solib-sunos.c: Remove.
1323 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1324
2659903b
JK
13252013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1326
1327 Remove a.out NetBSD and OpenBSD hosts.
1328 * NEWS (Removed native configurations): New.
1329 * config/arm/nbsdaout.mh: Remove.
1330 * config/i386/nbsdaout.mh: Remove.
1331 * config/i386/obsdaout.mh: Remove.
1332 * config/m68k/nbsdaout.mh: Remove.
1333 * config/sparc/nbsdaout.mh: Remove.
1334 * config/vax/nbsdaout.mh: Remove.
1335 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1336 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1337 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1338 error.
1339 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1340 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1341 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1342
f60e2d5c
TT
13432013-09-23 Tom Tromey <tromey@redhat.com>
1344
1345 * linespec.c (struct minsym_and_objfile): Remove.
1346 (minsym_and_objfile_d): Remove.
1347 (struct linespec, struct collect_info, linespec_parse_basic)
1348 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1349 (compare_msymbols, find_method, find_function_symbols)
1350 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1351 (add_minsym, search_minsyms_for_name): Update.
1352
d3eaaf66
AB
13532013-09-23 Andrew Burgess <aburgess@broadcom.com>
1354
1355 * regcache.c: Add include of valprint.h.
1356 (dump_endian_bytes): Delete.
1357 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1358
2cc762b5
AB
13592013-09-23 Andrew Burgess <aburgess@broadcom.com>
1360
1361 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1362
96181529
PA
13632013-09-19 Pedro Alves <palves@redhat.com>
1364
1365 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1366 breakpoints.
1367
9b3f3ee6
TS
13682013-09-19 Pedro Alves <palves@redhat.com>
1369 Thomas Schwinge <thomas@codesourcery.com>
1370 Yue Lu <hacklu.newborn@gmail.com>
1371
1372 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1373 Take a gdb_byte pointer instead of a char pointer.
1374
1375 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1376 gnu_xfer_partial helper.
1377 (gnu_xfer_partial): New function.
1378 (gnu_target): Don't install a deprecated_xfer_memory hook.
1379 Install a to_xfer_partial hook.
1380
69150c3d
JK
13812013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1382
1383 Constification.
1384 * main.c (captured_main): Replace catch_command_errors by
1385 catch_command_errors_const. Twice.
1386 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1387 (symbol_file_add): Make name parameter const.
1388 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1389 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1390 variable name. Change their usage accordingly.
1391 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1392 const.
1393 (symbol_file_add_main): Make args parameter const.
1394
086850b2
UW
13952013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1396 Ulrich Weigand <uweigand@de.ibm.com>
1397
1398 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1399 of c_value member.
1400 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1401
ca08a94c 14022013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1403 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1404
1405 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1406 (gnu_create_inferior)
1407 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1408 (set_sig_thread_cmd): Use the lwpid field of ptids to
1409 store/extract thread ids instead of the tid field.
1410 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1411
e4c6a2c4
AB
14122013-09-18 Andrew Burgess <aburgess@broadcom.com>
1413
1414 * infcmd.c (default_print_one_register_info): Add detection of
1415 optimized out values.
1416 (default_print_registers_info): Switch to using
1417 get_frame_register_value.
1418
58c48e72
MM
14192013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1420
1421 * infrun.c (handle_inferior_event): Check if we know the
1422 function start address before setting a resume breakpoint.
1423
c8d37639
PA
14242013-09-18 Pedro Alves <palves@redhat.com>
1425
1426 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1427 minus_one_ptid instead of looking at the ptid's tid field and
1428 comparing that to -1.
1429
71926e28
AB
14302013-09-18 Andrew Burgess <aburgess@broadcom.com>
1431
1432 * main.h (get_gdb_program_name): Remove extra whitespace.
1433
c88a1531
AB
14342013-09-18 Andrew Burgess <aburgess@broadcom.com>
1435
1436 * main.h (get_gdb_program_name): Add declaration.
1437 * main.c (get_gdb_program_name): Add definition.
1438
4390d890
DE
14392013-09-17 Doug Evans <dje@google.com>
1440
1441 * dwarf2read.c: Move definitions of complaint functions to after
1442 forward declarations of local functions.
1443
49fa26b0
PA
14442013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1445 Pedro Alves <palves@redhat.com>
1446
1447 PR gdb/11568
1448 * breakpoint.c (remove_threaded_breakpoints): New function.
1449 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1450 as thread_exit observer.
1451
08d72866
PA
14522013-09-17 Pedro Alves <palves@redhat.com>
1453
1454 PR gdb/15911
1455 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1456 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1457 * corelow.c (core_open):
1458 * frame.h (print_stack_frame, print_frame_info): New
1459 'set_current_sal' parameter.
1460 * infcmd.c (finish_command, kill_command): Adjust call to
1461 print_stack_frame.
1462 * inferior.c (inferior_command): Likewise.
1463 * infrun.c (normal_stop): Likewise.
1464 * linux-fork.c (linux_fork_context): Likewise.
1465 * record-full.c (record_full_goto_entry, record_full_restore):
1466 Likewise.
1467 * remote-mips.c (common_open): Likewise.
1468 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1469 Use it.
1470 (print_frame_info): New 'set_current_sal' parameter. Set the last
1471 displayed sal depending on the new paremeter instead of looking at
1472 print_what.
1473 (backtrace_command_1, select_and_print_frame, frame_command)
1474 (current_frame_command, up_command, down_command): Adjust call to
1475 print_stack_frame.
1476 * thread.c (print_thread_info, restore_selected_frame)
1477 (do_captured_thread_select): Adjust call to print_stack_frame.
1478 * tracepoint.c (tfind_1): Likewise.
1479 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1480 (mi_cmd_stack_info_frame): Likewise.
1481 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1482 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1483
6bc305f5
SDJ
14842013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1485
1486 * value.c (isvoid_internal_fn): Replace "parameter" with
1487 "argument".
1488
0a7cfe2c
SS
14892013-09-16 Stan Shebs <stan@codesourcery.com>
1490
1491 * README: Update references to writing code for GDB.
1492 * configure.ac (build_warnings): Remove obsolete comment.
1493 * configure: Regenerate.
1494 * gdbarch.sh: Remove references to gdbint.texinfo.
1495 * gdbarch.h: Regenerate.
1496 * gdbtypes.c (objfile_type): Remove comments referencing internals
1497 manual and D10V.
1498
a280dbd1
SDJ
14992013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1500
1501 * NEWS: Mention new convenience function $_isvoid.
1502 * value.c (isvoid_internal_fn): New function.
1503 (_initialize_values): Add new convenience function $_isvoid.
1504
04a83fee
PM
15052013-09-16 Pierre Muller <muller@sourceware.org>
1506
1507 * arm-linux-tdep.c: Add "elf/common.h" header.
1508 Remove AT_HWCAP macro definintion as it is provided in
1509 added include file.
1510 * s390-tdep.c: Remove system header <elf.h>
1511 Add "elf/common.h" header for AT_HWCAP definition.
1512 (s390_core_read_description): Use correct CORE_ADDR
1513 for hwcap local variable used as third parameter
1514 of function target_auxv_search.
1515
88505fac
PM
15162013-09-14 Pierre Muller <muller@sourceware.org>
1517 Tom Tromey <tromey@redhat.com>
1518 Pedro Alves <palves@redhat.com>
1519
1520 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1521 mode if operating system doesn't know O_CLOEXEC.
1522
d3846e71
JK
15232013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1524
1525 Code cleanup.
1526 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1527 inner block.
1528
4ac33720
UW
15292013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1530
1531 * NEWS: Mention TDB support.
1532 * features/s390-tdb.xml: New file.
1533 * features/s390-te-linux64.xml: New file.
1534 * features/s390x-te-linux64.xml: New file.
1535 * features/Makefile (WHICH): Add new tdescs above.
1536 (s390-te-linux64-expedite): Set.
1537 (s390x-te-linux64-expedite): Set.
1538 * features/s390-te-linux64.c: New file (generated).
1539 * features/s390x-te-linux64.c: New file (generated).
1540 * regformats/s390-te-linux64.dat: New file (generated).
1541 * regformats/s390x-te-linux64.dat: New file (generated).
1542 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1543 (HWCAP_S390_TE): Likewise.
1544 (S390_TDB_DWORD0_REGNUM): Likewise.
1545 (S390_TDB_DWORD0_REGNUM): Likewise.
1546 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1547 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1548 (S390_TDB_ATIA_REGNUM): Likewise.
1549 (S390_TDB_R0_REGNUM): Likewise.
1550 (S390_TDB_R1_REGNUM): Likewise.
1551 (S390_TDB_R2_REGNUM): Likewise.
1552 (S390_TDB_R3_REGNUM): Likewise.
1553 (S390_TDB_R4_REGNUM): Likewise.
1554 (S390_TDB_R5_REGNUM): Likewise.
1555 (S390_TDB_R6_REGNUM): Likewise.
1556 (S390_TDB_R7_REGNUM): Likewise.
1557 (S390_TDB_R8_REGNUM): Likewise.
1558 (S390_TDB_R9_REGNUM): Likewise.
1559 (S390_TDB_R10_REGNUM): Likewise.
1560 (S390_TDB_R11_REGNUM): Likewise.
1561 (S390_TDB_R12_REGNUM): Likewise.
1562 (S390_TDB_R13_REGNUM): Likewise.
1563 (S390_TDB_R14_REGNUM): Likewise.
1564 (S390_TDB_R15_REGNUM): Likewise.
1565 (S390_NUM_REGS): Increase.
1566 (S390_IS_TDBREGSET_REGNUM): New macro.
1567 (s390_regmap_tdb): Declare.
1568 (s390_sizeof_tdbregset): Define.
1569 (tdesc_s390_te_linux64): Declare.
1570 (tdesc_s390x_te_linux64): Likewise.
1571 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1572 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1573 (s390_regmap_tdb): New regmap.
1574 (s390_supply_tdb_regset): New function.
1575 (s390_tdb_regset): New regset.
1576 (s390_linux64v2_regset_sections): Add TDB regset to list.
1577 (s390x_linux64v2_regset_sections): Likewise.
1578 (s390_regset_from_core_section): Recognize TDB core note section.
1579 (s390_core_read_description): If HWCAP indicates TE support,
1580 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1581 (s390_gdbarch_init): Handle TDB regset.
1582 (_initialize_s390_tdep): Initialize new tdescs.
1583 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1584 (have_regset_tdb): New variable.
1585 (s390_native_supply): Support register invalidation.
1586 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1587 (check_regset): Treat ENODATA as "regset exists".
1588 (s390_linux_fetch_inferior_registers): Add TDB.
1589 (s390_read_description): Check for TDB existence and select
1590 appropriate tdesc.
1591 * gdbserver/Makefile.in (clean): Add removal of new makefile
1592 targets.
1593 (s390-te-linux64.c): New makefile target.
1594 (s390x-te-linux64.c): Likewise.
1595 * gdbserver/configure.srv (srv_regobj): Append new objects
1596 s390-te-linux64.o and s390x-te-linux64.o.
1597 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1598 s390x-te-linux64.xml, and s390-tdb.xml.
1599 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1600 declaration.
1601 (tdesc_s390_te_linux64): Likewise.
1602 (init_registers_s390x_te_linux64): Likewise.
1603 (tdesc_s390x_te_linux64): Likewise.
1604 (s390_check_regset): Treat ENODATA as "regset exists".
1605 (s390_arch_setup): Add TDB regset support.
1606 (initialize_low_arch): Initialize registers for new tdescs.
1607
2ccd1468
UW
16082013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1609
1610 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1611 (S390_IS_FPREGSET_REGNUM): New macro.
1612 * s390-tdep.c (s390_dwarf_regmap): Make const.
1613 (regnum_is_gpr_full): New function for replacing repeated code.
1614 (s390_pseudo_register_name): Use it.
1615 (s390_pseudo_register_type): Likewise.
1616 (s390_pseudo_register_read): Likewise.
1617 (s390_pseudo_register_write): Likewise.
1618 (s390_unwind_pseudo_register): Likewise.
1619 (s390_regmap_gregset): New format for regmap.
1620 (s390x_regmap_gregset): Likewise.
1621 (s390_regmap_fpregset): Likewise.
1622 (s390_regmap_upper): Likewise.
1623 (s390_regmap_last_break): Likewise.
1624 (s390_regmap_system_call): Likewise.
1625 (s390_supply_regset): Adjust to new regmap format.
1626 (s390_collect_regset): Likewise.
1627 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1628 (s390_native_collect): Likewise.
1629 (supply_gregset): Likewise.
1630 (fill_gregset): Likewise.
1631 (supply_fpregset): Likewise.
1632 (fill_fpregset): Likewise.
1633 (fetch_regset): Likewise.
1634 (store_regset): Likewise.
1635 (s390_linux_fetch_inferior_registers): Likewise.
1636 (s390_linux_fetch_inferior_registers): Likewise.
1637
1aa4cd77
AP
16382013-09-12 Andrew Pinski <apinski@cavium.com>
1639
1640 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1641
d91fab15
UW
16422013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1643
1644 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1645
5a5d8ead
AB
16462013-09-09 Andrew Burgess <aburgess@broadcom.com>
1647
1648 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1649
1385f66c
PA
16502013-09-06 Pedro Alves <palves@redhat.com>
1651
1652 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1653 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1654 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1655 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1656 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1657 gdb_stdlog.
1658
146ec4db
PA
16592013-09-06 Pedro Alves <palves@redhat.com>
1660
1661 * remote-sim.c (dump_mem): Constify buf parameter.
1662 gdbsim_xfer_inferior_memory): Rename to ...
1663 (gdbsim_xfer_memory): ... this. Adjust interface as
1664 target_xfer_partial helper.
1665 (gdbsim_xfer_partial): New function.
1666 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1667 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1668
fcde0081
PA
16692013-09-06 Pedro Alves <palves@redhat.com>
1670
1671 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1672 host_address_to_string, and send debug output to gdb_stdlog.
1673
749c8b38
RW
16742013-09-06 Ricard Wanderlof <ricardw@axis.com>
1675
1676 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1677 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1678 gdb_target_obs for cris target.
1679 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1680 (cris_gdbarch_init): Move calls to
1681 set_gdbarch_fetch_tls_load_module_address and
1682 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1683 Add call to gdbarch_init_osabi.
1684 * cris-linux-tdep.c: New file.
1685 * cris-tdep.h: New file.
1686
43df09d9
AB
16872013-09-06 Andrew Burgess <aburgess@broadcom.com>
1688
1689 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1690 to deprecated_init_ui_hook.
1691
4d09c5b4
AB
16922013-09-06 Andrew Burgess <aburgess@broadcom.com>
1693
1694 * cli/cli-interp.c (_initialize_cli_interp): Add a
1695 command_loop_proc to interp_procs.
1696 * event-top.c (cli_command_loop): Change signature to match
1697 interp_command_loop_ftype.
1698 * event-top.h (cli_command_loop): Same.
1699 * interps.c (interp_new): Require every interpreter to have a
1700 command_loop_proc.
1701 (current_interp_command_loop): Just call the command_loop_proc on
1702 the current interpreter.
1703 * tui/tui-interp.c (_initialize_tui_interp): Add a
1704 command_loop_proc to interp_procs.
1705
8eb3d7b6
RW
17062013-09-06 Ricard Wanderlof <ricardw@axis.com>
1707
1708 * cris-tdep.c (cris_gdbarch_init): Add call to
1709 get_gdbarch_fetch_tls_load_module_address.
1710
18b3c2f5
RW
17112013-09-06 Ricard Wanderlof <ricardw@axis.com>
1712
1713 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1714 (cris_elf_gregset_t): Rename from elf_gregset_t.
1715 (crisv32_elf_gregset_t): Adjust.
1716 (cris_supply_gregset, fetch_core_registers): Adjust.
1717
dc8636ef
RW
17182013-09-06 Ricard Wanderlof <ricardw@axis.com>
1719
1720 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1721
257e6d53
AB
17222013-09-05 Andrew Burgess <aburgess@broadcom.com>
1723
1581d8a7 1724 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1725 references in comments.
1581d8a7 1726 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1727 deprecated_command_loop_hook.
1728 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1729 setup.
1581d8a7 1730 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1731
7c33b57c
PA
17322013-09-05 Pedro Alves <palves@redhat.com>
1733
1734 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1735 local is now int instead of ULONGEST. Print it with %d
1736 instead of paddress.
1737
9f8edbd5
TG
17382013-09-05 Tristan Gingold <gingold@adacore.com>
1739
1740 * MAINTAINERS: Remove avr maintainership.
1741
d5b495b4
PA
17422013-09-05 Pedro Alves <palves@redhat.com>
1743
1744 * findvar.c (value_of_register): Rework in terms of
1745 value_of_register_lazy.
1746
40b91786
MB
17472013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1748
1749 * symfile.c (add_symbol_file_command): Remove trailing
1750 whitespaces and blank line after comment.
1751
6eed1678
PA
17522013-09-05 Pedro Alves <palves@redhat.com>
1753
1754 * tui/tui-regs.c (tui_register_format): Don't look at the
1755 register's name here. Return string representing register
1756 value instead of storing it in the data element.
1757 (tui_get_register): Compare register string representations
1758 instead of register value states and contents.
1759
8eb6bda2
PA
17602013-09-05 Pedro Alves <palves@redhat.com>
1761
1762 PR tui/15933
1763 * tui/tui-regs.c (tui_show_registers): Show registers of the
1764 selected frame, not the current frame.
1765
48b1f08c
RW
17662013-09-05 Ricard Wanderlof <ricardw@axis.com>
1767
1768 * MAINTAINERS (Write After Approval): Add myself to the list.
1769
89e63ee4
DE
17702013-09-04 Doug Evans <dje@google.com>
1771
1772 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1773 (queue_and_load_dwo_tu): New function.
1774 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1775 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1776 Make dependent_cu optional.
1777 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1778 and an older .gdb_index is in use, queue and load all its TUs too.
1779
492c0ab7
JK
17802013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1781
1782 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1783 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1784 variable search_flags.
1785 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1786 (OPF_RETURN_REALPATH): ... here.
1787 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1788 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1789 call. Twice.
1790 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1791 openp call.
1792 * solib.c (solib_find): Likewise. Four times.
1793 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1794 in the function comment and for the realpath_fptr variable.
1795 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1796 (find_and_open_source): Likewise. Twice.
1797 * symfile.c (symfile_bfd_open): Likewise, also twice.
1798
23a44de8
DE
17992013-09-04 Doug Evans <dje@google.com>
1800
1801 * progspace.c (save_current_space_and_thread): Remove unnecessary
1802 call to save_current_inferior.
1803
47061676
AB
18042013-09-04 Andrew Burgess <aburgess@broadcom.com>
1805
1806 * sh64-tdep.c (sh64_do_register): Return after printing message
1807 about unavailable register contents.
1808
41dc8db8
MB
18092013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1810 Pedro Alves <palves@redhat.com>
1811
1812 * symfile.c (add_symbol_file_command): Error out on unknown
1813 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1814 options and collapse into single conditional branch.
1815
07107ca6
LM
18162013-09-03 Luis Machado <lgustavo@codesourcery.com>
1817
a7ea61cf 1818 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1819 detach_fork.
1820 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1821 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1822 * inferior.h (detach_fork): Remove.
1823 * infrun.c (detach_fork): Adjust comment and make it
1824 static.
1825 (follow_fork): Pass detach_fork parameter to
1826 target_follow_fork.
1827 * linux-nat.c (linux_child_follow_fork): New parameter
1828 detach_fork.
1829 * target.c (target_follow_fork): New parameter detach_fork.
1830 Pass detach_fork as parameter and print its value.
1831 * target.h (struct target_ops) <to_follow_fork>: New int
1832 parameter.
1833 (target_follow_fork): New parameter detach_fork.
1834
3bec2768
JB
18352013-09-03 Joel Brobecker <brobecker@adacore.com>
1836
1837 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1838 Replace sec->bfd by sec->the_bfd_section->owner.
1839
c01cbb3d
YQ
18402013-09-03 Yao Qi <yao@codesourcery.com>
1841
1842 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1843 from linux_has_shared_address_space.
1844 (linux_has_shared_address_space): Call linux_is_uclinux.
1845 * linux-tdep.h (linux_is_uclinux): Declare.
1846 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1847 linux_is_uclinux.
1848
7b00db47
YQ
18492013-09-03 Yao Qi <yao@codesourcery.com>
1850
1851 * config/djgpp/fnchange.lst: Remove entry of
1852 i386-interix-nat.c and i386-interix-tdep.c.
1853 * configure.ac: Remove '*-*-interix*'.
1854 * configure: Re-generated.
1855 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1856 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1857 obsolete comments.
1858 * osabi.c (gdb_osabi_names): Remove "Interix".
1859
0f9741f2
YQ
18602013-09-03 Yao Qi <yao@codesourcery.com>
1861
1862 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1863
1e038f67
MM
18642013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1865
1866 * record.h (record_print_flag) <record_print_src_line,
1867 record_print_insn_range>: Rename into ...
1868 (record_print_flag) <record_print_src_line,
1869 record_print_insn_range>: ... this. Update all users.
1870
9e52adf9
PM
18712013-09-02 Pierre Muller <muller@sourceware.org>
1872
1873 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1874 error code.
1875
a2388568
PM
18762013-09-02 Pierre Muller <muller@sourceware.org>
1877
1878 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1879 by use of plongest function.
1880
9058cc3a
TG
18812013-09-02 Tristan Gingold <gingold@adacore.com>
1882
1883 * NEWS: Add entry mentioning support for native Windows x64
1884 SEH data.
1885
1886 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1887 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1888 (struct amd64_windows_frame_cache): New struct.
1889 (amd64_windows_w2gdb_regnum): New global.
1890 (pc_in_range, amd64_windows_frame_decode_epilogue)
1891 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1892 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1893 (amd64_windows_frame_this_id): New functions.
1894 (amd64_windows_frame_unwind): New static global.
1895 (amd64_windows_skip_prologue): New function.
1896 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1897 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1898 with amd64_windows_skip_prologue.
1899
3161820b 19002013-08-30 Joel Brobecker <brobecker@adacore.com>
1901
1902 GDB 7.6.1 released.
1903
02457c76
PA
19042013-08-30 Pedro Alves <palves@redhat.com>
1905
1906 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1907 SRC_AND_LOC.
1908
e0162910
PA
19092013-08-30 Pedro Alves <palves@redhat.com>
1910
1911 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1912 warning text.
1913
6391ce51
PA
19142013-08-30 Pedro Alves <palves@redhat.com>
1915
1916 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1917 Adjust arguments to print_stack_frame.
1918
d1da0587
PA
19192013-08-30 Pedro Alves <palves@redhat.com>
1920
1921 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1922
adfd8245
PA
19232013-08-30 Pedro Alves <palves@redhat.com>
1924
1925 * frame.h (show_and_print_stack_frame): Delete declaration.
1926
96d9056e
PM
19272013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1928
1929 PR python/15461
1930
1931 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1932 (archpy_name): Check for valid architecture.
1933 (archpy_disassemble): Ditto.
1934
11cb8762
JB
19352013-08-29 Joel Brobecker <brobecker@adacore.com>
1936
1937 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1938 instead of "long long" in call to ptrace64.
1939
1af12a7d
AB
19402013-08-29 Andrew Burgess <aburgess@broadcom.com>
1941
1942 * mi/mi-interp.c (mi_command_loop): Change signature to match
1943 interp_command_loop_ftype.
1944 (mi1_command_loop): Remove.
1945 (mi2_command_loop): Remove.
1946 (mi3_command_loop): Remove.
1947 (mi_interpreter_resume): Remove setting of
1948 deprecated_command_loop_hook.
1949 (_initialize_mi_interp): Set mi_command_loop as the command loop
1950 callback.
1951
acc900c2
SA
19522013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1953
1954 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1955 value_type.
1956
548b762d
SA
19572013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1958
1959 * value.c (allocate_value_contents): Make static.
1960 * value.h (allocate_value_contents): Remove prototype.
1961
08039c9e
SA
19622013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1963
1964 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1965 of assembling value via allocate_value_lazy and attribute setter.
1966 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1967 assembling value via allocate_value_lazy and attribute setter.
1968 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1969 assembling value via allocate_value_lazy and attribute setter.
1970
314c7de9
SA
19712013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1972
1973 * value.c (value_from_contents_and_address): Replace allocate_value and
1974 memcpy with value_from_contents.
1975
8f28f522
PM
19762013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1977
1978 * python/py-framefilter.c (py_print_frame): Remove usage of
1979 PyString_AsString. Use python_string_to_host_string instead.
1980 Refactor function to work with a string as a new allocation
1981 instead of a pointer.
1982 (py_print_frame): Ditto.
1983 * python/lib/gdb/frames.py (return_list): Cain iterators together
1984 instead of adding them as a list.
1985 (_sort_list): Call return_list, and remove duplicate code.
1986 (execute_frame_filters): Convert iterator to a list with list().
1987 * python/lib/gdb/command/frame_filters.py
1988 (SetFrameFilterPriority._set_filter_priority): Convert priority
1989 attribute to an integer.
1990 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1991 wrapper function __next__.
1992 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1993 define as "str".
1994
8ee002df
PM
19952013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1996
1997 PR python/15752
8ee002df
PM
1998 * python/py-framefilter.c (apply_frame_filter): Check
1999 gdb_python_initialized. Exit if the Python frame-filter code
2000 cannot be initialized.
2001
af4c453a
PM
20022013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2003
2004 PR cli/15842
af4c453a
PM
2005 * top.c (print_gdb_version): Remove erroneous newline after help
2006 text.
2007
bf8793bb
YQ
20082013-08-29 Yao Qi <yao@codesourcery.com>
2009
2010 * varobj.c (install_dynamic_child): Remove trailing space.
2011 Add one blank line after variable declaration.
2012
1f0c4988
JK
20132013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2014
2015 PR gdb/15415
2016 * corefile.c (get_exec_file): Use exec_filename.
2017 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2018 * exec.c (exec_close): Free EXEC_FILENAME.
2019 (exec_file_attach): New variable canonical_pathname. Use
2020 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2021 EXEC_FILENAME.
2022 * exec.h (exec_filename): New.
2023 * inferior.c (print_inferior, inferior_command): Use
2024 PSPACE_EXEC_FILENAME.
2025 * mi/mi-main.c (print_one_inferior): Likewise.
2026 * progspace.c (clone_program_space, print_program_space): Likewise.
2027 * progspace.h (struct program_space): New field pspace_exec_filename.
2028 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2029 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2030
59ee9f94
WN
20312013-08-28 Will Newton <will.newton@linaro.org>
2032
2033 * common/linux-ptrace.c: Include stdint.h unconditionally.
2034
c8a2a419
JK
20352013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2036
2037 Code cleanup.
2038 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2039
ffa4ac95
YQ
20402013-08-28 Yao Qi <yao@codesourcery.com>
2041 Pedro Alves <palves@redhat.com>
2042
2043 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2044 instead of stdio_fileopen.
2045 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2046 .Call stderr_fileopen instead of stdio_fileopen.
2047 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2048 [__MINGW32__] (stderr_file_fputs): New function.
2049 (stderr_fileopen): New function.
2050 * ui-file.h (stderr_fileopen): Declare.
2051
69d751e3
DE
20522013-08-27 Doug Evans <dje@google.com>
2053
2054 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2055 (struct dwarf2_per_cu_data): Ditto.
2056 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2057 (process_imported_unit_die): Ditto.
2058 (follow_die_sig_1): Simplify assert.
2059
44f38867
PA
20602013-08-27 Pedro Alves <palves@redhat.com>
2061
2062 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2063 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2064 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2065 windows_xfer_memory directly.
2066 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2067
d28d46b5
PA
20682013-08-27 Pedro Alves <palves@redhat.com>
2069
2070 * darwin-nat.c (darwin_xfer_memory): Delete.
2071 (_initialize_darwin_inferior): Don't install a
2072 deprecated_xfer_memory method.
2073
6211c335
YQ
20742013-08-27 Pedro Alves <pedro@codesourcery.com>
2075 Yao Qi <yao@codesourcery.com>
2076
2077 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2078 (parse_no_frames_option): Remove.
2079 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2080 (mi_cmd_stack_list_args): Adjust.
2081 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2082 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2083 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2084 Caller update.
2085 (list_args_or_locals): New parameter 'skip_unavailable'.
2086 Handle it.
2087 * valprint.c (scalar_type_p): Rename to ...
2088 (val_print_scalar_type_p): ... this. Make extern.
2089 (val_print, value_check_printable): Adjust.
2090 * valprint.h (val_print_scalar_type_p): Declare.
2091 * value.c (value_entirely_unavailable): New function.
2092 * value.h (value_entirely_unavailable): Declare.
2093
2094 * NEWS: Mention the new option "--skip-unavailable" to MI
2095 commands '-stack-list-locals', '-stack-list-arguments' and
2096 '-stack-list-variables'.
2097
242f1fd7
YQ
20982013-08-27 Yao Qi <yao@codesourcery.com>
2099
2100 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2101 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2102 options.
2103 * mi/mi-getopt.c (mi_getopt): Remove.
2104 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2105 'error_on_unknown'.
2106 (mi_getopt): Call mi_getopt_1.
2107 (mi_getopt_silent): New.
2108 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2109
260b681b
DE
21102013-08-26 Doug Evans <dje@google.com>
2111
779bd270
DE
2112 PR symtab/15885
2113 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2114 .gdb_index is in use.
2115 * symfile.c (reread_symbols): Reset objfile->sf.
2116
52e260a3
DE
2117 * NEWS: Document "mt print objfiles" now takes optional regexp.
2118 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2119 regexp of objfiles to print.
2120 (_initialize_symmisc): Update doc string for "mt print objfiles".
2121
260b681b
DE
2122 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2123 missing debug info checks.
2124
a85c52f2
UW
21252013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2126 Ulrich Weigand <uweigand@de.ibm.com>
2127
2128 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2129 line tables generated by XLC compiled binaries.
2130
4f00dda3
DE
21312013-08-23 Doug Evans <dje@google.com>
2132
db68bbae
DE
2133 * symmisc.c (dump_symtab): Delete prototype.
2134 (dump_msymbols, dump_objfile): Ditto.
2135 (maintenance_info_symtabs): Mark as dont_repeat.
2136 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2137
4f00dda3
DE
2138 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2139 debugging printf to better location.
2140
23d577b0
PA
21412013-08-23 Pedro Alves <palves@redhat.com>
2142
2143 * target.c (target_read_live_memory): Change type of 'ret' local
2144 to LONGEST.
2145
00d84524
PA
21462013-08-23 Pedro Alves <palves@redhat.com>
2147
2148 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2149 (remote_read_bytes): Change return type to LONGEST, and adjust to
2150 return a target_xfer_error on error.
2151 (remote_xfer_memory): Delete.
2152 (remote_flash_write): Change type of 'ret' local to LONGEST.
2153 (remote_xfer_partial, remote_xfer_partial): Adjust.
2154 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2155
1ed3ee94
PM
21562013-08-23 Pierre Muller <muller@sourceware.org>
2157
2158 ARI fix: Push # directives to start of line.
2159 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2160
9eaabc75
MW
21612013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2162
2163 PR gdb/15501
2164 * breakpoint.c (enable_command, disable_command): Iterate over
2165 all specified breakpoint locations.
2166
101158d9
LM
21672013-08-22 Luis Machado <lgustavo@codesourcery.com>
2168
2169 * common/linux-ptrace.c (linux_fork_to_function): Push #
2170 directives to the start of the line.
2171 (linux_check_ptrace_features): Fix warning message to use
2172 the "_" markup.
2173
96d7229d
LM
21742013-08-22 Luis Machado <lgustavo@codesourcery.com>
2175
2176 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2177 nat/linux-waitpid.h.
2178 (linux-waitpid.o): New object file rule.
2179 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2180 (current_ptrace_options): Moved from linux-nat.c.
2181 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2182 parameters.
2183 (linux_fork_to_function): New function.
2184 (linux_grandchild_function): Likewise.
2185 (linux_child_function): Likewise.
2186 (linux_check_ptrace_features): New function, heavily
2187 based on linux-nat.c:linux_test_for_tracefork.
2188 (linux_enable_event_reporting): New function.
2189 (ptrace_supports_feature): Likewise.
2190 (linux_supports_tracefork): Likewise.
2191 (linux_supports_traceclone): Likewise.
2192 (linux_supports_tracevforkdone): Likewise.
2193 (linux_supports_tracesysgood): Likewise.
2194 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2195 gdbserver/linux-low.c.
2196 (linux_enable_event_reporting): New declaration.
2197 (linux_supports_tracefork): Likewise.
2198 (linux_supports_traceclone): Likewise.
2199 (linux_supports_tracevforkdone): Likewise.
2200 (linux_supports_tracesysgood): Likewise.
2201 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2202 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2203 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2204 * config/arm/linux.mh (NATDEPFILES): Likewise.
2205 * config/i386/linux.mh (NATDEPFILES): Likewise.
2206 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2207 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2208 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2209 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2210 * config/mips/linux.mh (NATDEPFILES): Likewise.
2211 * config/pa/linux.mh (NATDEPFILES): Likewise..
2212 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2213 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2214 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2215 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2216 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2217 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2218 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2219 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2220 ptrace's 4th argument's types.
2221 Check the type of PTRACE_TYPE_ARG4.
2222 * configure: Regenerate.
2223 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2224 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2225 (linux_supports_tracefork_flag): Remove.
2226 (linux_supports_tracesysgood_flag): Likewise.
2227 (linux_supports_tracevforkdone_flag): Likewise.
2228 (current_ptrace_options): Moved to
2229 common/linux-ptrace.c.
2230 (linux_tracefork_child): Remove.
2231 (my_waitpid): Remove.
2232 (linux_test_for_tracefork): Renamed to
2233 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2234 (linux_test_for_tracesysgood): Remove.
2235 (linux_supports_tracesysgood): Remove.
2236 (linux_supports_tracefork): Remove.
2237 (linux_supports_tracevforkdone): Remove.
2238 (linux_enable_tracesysgood): Remove.
2239 (linux_enable_event_reporting): Remove.
2240 (linux_init_ptrace): New function.
2241 (linux_child_post_attach): Call linux_init_ptrace.
2242 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2243 (linux_child_follow_fork): Call linux_supports_tracefork
2244 and linux_supports_tracevforkdone.
2245 (linux_child_insert_fork_catchpoint): Call
2246 linux_supports_tracefork.
2247 (linux_child_insert_vfork_catchpoint): Likewise.
2248 (linux_child_set_syscall_catchpoint): Call
2249 linux_supports_tracesysgood.
2250 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2251 * nat/linux-nat.h: New file.
2252 * nat/linux-waitpid.c: New file.
2253 * nat/linux-waitpid.h: New file.
2254
9f948660
SDJ
22552013-08-22 Samuel Bronson <naesten@gmail.com>
2256
2257 ARM Linux support for `catch syscall'.
2258 * syscalls/arm-linux.py: New file.
2259 * syscalls/arm-linux.xml: Likewise.
2260 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2261 (arm_linux_init_abi): Register the new function and syscall xml file.
2262 * data-directory/Makefile.in: Install the new syscall xml file.
2263 * NEWS: Brag about this.
2264
6be7b56e
PA
22652013-08-22 Pedro Alves <palves@redhat.com>
2266
2267 PR gdb/15871
2268 * corefile.c (target_xfer_memory_error): New function.
2269 (memory_error): Defer EIO to target_memory_error.
2270 (read_memory): Use target_xfer_partial, and handle finer-grained
2271 target xfer errors.
2272 * target.c (target_xfer_error_to_string): New function.
2273 (memory_xfer_partial_1): If memory is known to be
2274 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2275 (target_xfer_partial): Make extern.
2276 * target.h (enum target_xfer_error): New enum.
2277 (target_xfer_error_to_string): Declare function.
2278 (target_xfer_partial): Declare function.
2279 (struct target_ops) <xfer_partial>: Adjust describing comment.
2280
bcbec14e
AM
22812013-08-22 Alan Modra <amodra@gmail.com>
2282
2283 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2284 * configure.tgt: Likewise as targets.
2285
fc474241
DE
22862013-08-20 Doug Evans <dje@google.com>
2287
2288 * buildsym.c (subfile_stack): Move here from buildsym.h.
2289 (pending_macros): Ditto.
2290 (get_macro_table): New function.
2291 (buildsym_init): Initialize subfile_stack.
2292 * coffread.c (type_vector,type_vector_length): Moved here from
2293 buildsym.h.
2294 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2295 (coff_symtab_read): Use it.
2296 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2297 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2298 with call to get_macro_table.
2299 * stabsread.c (type_vector,type_vector_length): Moved here from
2300 buildsym.h.
2301 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2302 * buildsym.h (get_macro_table): Declare.
2303
bec71544
TT
23042013-08-20 Tom Tromey <tromey@redhat.com>
2305
2306 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2307 Update.
2308 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2309
0002ad5f
DE
23102013-08-20 Doug Evans <dje@google.com>
2311
2312 * blockframe.c: Remove #include "psymtab.h".
2313 * cp-support.c: Ditto.
2314 * source.c: Ditto.
2315 * stack.c: Ditto.
2316
df302446
TT
23172013-08-20 Tom Tromey <tromey@redhat.com>
2318
2319 PR python/15816:
2320 * exceptions.h (return_mask): Now an enum.
2321 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2322 enum constants.
2323
df6d5441
TT
23242013-08-20 Tom Tromey <tromey@redhat.com>
2325
2326 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2327 get_objfile_arch.
2328 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2329 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2330 * jit.c (jit_object_close_impl): Update.
2331 * jv-lang.c (get_dynamics_objfile): Update.
2332 * linespec.c (add_minsym): Use get_dynamics_objfile.
2333 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2334 (allocate_objfile): Don't initialize 'gdbarch' field.
2335 (get_objfile_arch): Update.
2336 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2337 moved from...
2338 (struct objfile) <gdbarch>: ... here. Remove.
2339 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2340 get_objfile_arch.
2341 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2342
f5aee5ee
AM
23432013-08-20 Alan Modra <amodra@gmail.com>
2344
2345 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2346 for IBM long double nan and inf.
2347 (floatformat_is_negative, floatformat_classify,
2348 floatformat_mantissa): Similarly.
2349 (floatformat_ieee_single, floatformat_ieee_double,
2350 floatformat_ieee_quad, floatformat_arm_ext,
2351 floatformat_ia64_spill): Delete unused vars.
2352 (_initialize_doublest): Delete unused function.
2353 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2354 little-endian variants of floatformat_ibm_long_double.
2355
33b60d58 23562013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2357
33b60d58
LM
2358 * Makefile.in (SFILES): Remove common/target-common.c and
2359 add target/waitstatus.c.
2360 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2361 target/resume.h, target/wait.h and target/waitstatus.h.
2362 (COMMON_OBS): Remove target-common.o and add
2363 waitstatus.o.
2364 (target-common.o): Remove.
2365 (waitstatus.o): New target object file.
2366 * common/target-common.c: Move contents to
2367 target/waitstatus.c and remove.
2368 * common/target-common.h: Move contents to other files and
2369 remove.
2370 (enum resume_kind: Move to target/resume.h.
2371 (TARGET_WNOHANG): Move to target/wait.h.
2372 (enum target_waitkind): Move to target/waitstatus.h.
2373 (struct target_waitstatus): Likewise.
2374 * target.h: Do not include target-common.h and
2375 include target/resume.h, target/wait.h and
2376 target/waitstatus.h.
2377 * target/resume.h: New file.
2378 * target/wait.h: New file.
2379 * target/waitstatus.h: New file.
2380 * target/waitstatus.c: New file.
2381
12696c10
PA
23822013-08-19 Pedro Alves <palves@redhat.com>
2383
2384 * linux-nat.c (linux_test_for_tracefork)
2385 (linux_test_for_tracesysgood, linux_child_follow_fork)
2386 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2387 (linux_nat_wait_1): Extend comment.
2388 (linux_async_pipe): Add comment.
2389
ba89f962
KB
23902013-08-15 Kevin Buettner <kevinb@redhat.com>
2391
2392 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2393 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2394 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2395 Update to account for fact that PC is now a pseudo-register.
2396 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2397 cases for RL78_PC_REGNUM.
2398
35ab155d
MB
23992013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2400
2401 PR cli/15841
2402 * top.c (quit_force): Skip writing history file
2403 if input is not from terminal.
2404
0d031856
TT
24052013-08-14 Tom Tromey <tromey@redhat.com>
2406
2407 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2408 resultthreadlist>: New fields.
2409 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2410 (remote_get_threadlist, remote_threadlist_iterator): Use
2411 new fields. Remove static variables.
2412
ee154bee
TT
24132013-08-14 Tom Tromey <tromey@redhat.com>
2414
2415 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2416 remote_watch_data_address>: New fields.
2417 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2418 (process_stop_reply, remote_wait_as)
2419 (remote_check_watch_resources, remote_stopped_data_address): Update.
2420
88b496c3
TT
24212013-08-14 Tom Tromey <tromey@redhat.com>
2422
2423 * remote.c (struct remote_state) <async_client_callback,
2424 async_client_context>: New fields.
2425 (async_client_callback, async_client_context): Remove.
2426 (remote_async_serial_handler, remote_async): Update.
2427
2f65bcb7
TT
24282013-08-14 Tom Tromey <tromey@redhat.com>
2429
2430 * remote.c (sizeof_pkt): Remove.
2431 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2432
b80fafe3
TT
24332013-08-14 Tom Tromey <tromey@redhat.com>
2434
2435 * remote.c (struct remote_state) <use_threadinfo_query,
2436 use_threadextra_query>: New fields.
2437 (remote_threads_info, remote_threads_extra_info)
2438 (remote_open_1): Update.
2439
8e88304f
TT
24402013-08-14 Tom Tromey <tromey@redhat.com>
2441
2442 * remote.c (struct remote_state) <finished_object,
2443 finished_annex, finished_offset>: New fields.
2444 (remote_read_qxfer): Use remote_state fields; remove static
2445 variables.
2446
280ceea3
TT
24472013-08-14 Tom Tromey <tromey@redhat.com>
2448
2449 * remote.c (struct remote_state) <last_sent_step>:
2450 New field.
2451 (last_sent_step): Remove.
2452 (remote_resume, remote_wait_as): Update.
2453
b73be471
TT
24542013-08-14 Tom Tromey <tromey@redhat.com>
2455
2456 * remote.c (struct remote_state) <last_sent_signal>:
2457 New field.
2458 (last_sent_signal): Remove.
2459 (new_remote_state, remote_resume, remote_wait_as): Update.
2460
5e4a05c4
TT
24612013-08-14 Tom Tromey <tromey@redhat.com>
2462
2463 * remote.c (struct remote_state) <last_program_signals_packet>:
2464 New field.
2465 (last_program_signals_packet): Remove.
2466 (remote_program_signals, remote_open_1): Update.
2467
747dc59d
TT
24682013-08-14 Tom Tromey <tromey@redhat.com>
2469
2470 * remote.c (struct remote_state) <last_pass_packet>:
2471 New field.
2472 (last_pass_packet): Remove.
2473 (remote_pass_signals, remote_open_1): Update.
2474
262e1174
TT
24752013-08-14 Tom Tromey <tromey@redhat.com>
2476
2477 * remote.c (struct remote_state) <remote_traceframe_number>:
2478 New field.
2479 (remote_traceframe_number): Remove.
2480 (new_remote_state, remote_open_1, set_remote_traceframe)
2481 (remote_trace_find): Update.
2482
47f8a51d
TT
24832013-08-14 Tom Tromey <tromey@redhat.com>
2484
2485 * remote.c (struct remote_state) <general_thread, continue_thread>:
2486 New fields.
2487 (general_thread, continue_thread): Remove.
2488 (record_currthread, set_thread, set_general_process)
2489 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2490 (extended_remote_mourn_1): Update.
2491
5d93a237
TT
24922013-08-14 Tom Tromey <tromey@redhat.com>
2493
2494 * remote.c (struct remote_state) <remote_desc>: New field.
2495 (remote_desc): Remove.
2496 (remote_threads_info, remote_threads_extra_info, remote_close)
2497 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2498 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2499 (remote_hostio_send_command, remote_file_put, remote_file_get)
2500 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2501 (remote_async, remote_new_objfile, set_range_stepping): Update.
2502
cf792862
TT
25032013-08-14 Tom Tromey <tromey@redhat.com>
2504
2505 * remote.c (remote_state): Now a pointer.
2506 (get_remote_state_raw): Update.
2507 (new_remote_state): New function.
2508 (_initialize_remote): Use new_remote_state.
2509
dc473cfb
TT
25102013-08-14 Tom Tromey <tromey@redhat.com>
2511
2512 * remote.c (remote_protocol_features): Now const.
2513
85ec6ce7
TT
25142013-08-14 Tom Tromey <tromey@redhat.com>
2515
2516 * remote.c (crc32_table, crc32): Remove.
2517 (remote_verify_memory): Use xcrc32.
2518
73033f12
SDJ
25192013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2520
2521 * value.h (create_internalvar_type_lazy): Adjust prototype
2522 declaration.
2523
5c30d39a
AB
25242013-08-13 Andrew Burgess <aburgess@broadcom.com>
2525
2526 * common/format.c (parse_format_string): Don't allow '#' flag for
2527 pointer arguments in format string.
2528
1a66331e
PM
25292013-08-13 Pierre Muller <muller@sourceware.org>
2530
fde605f3 2531 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2532 if rl_get_screen_size did not return useful values.
2533
b4013987
AA
25342013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2535
2536 PR breakpoints/15117
2537 * linespec.c (linespec_parse_basic): Check for convenience
2538 variable or history value while parsing.
2539
959b6a66
SDJ
25402013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2541
2542 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2543 AVR.
2544 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2545 different signals between the generic Linux kernel implementation
2546 and AVR's.
2547 (avr_linux_gdb_signal_from_target): Delete.
2548 (avr_linux_gdb_signal_to_target): Delete.
2549 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2550
24a55014
DE
25512013-08-09 Doug Evans <dje@google.com>
2552
2553 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2554 entries.
2555
eb14d406
SDJ
25562013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2557
2558 * linux-tdep.c: Define enum with generic signal numbers.
2559 (linux_gdb_signal_from_target): New function.
2560 (linux_gdb_signal_to_target): Likewise.
2561 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2562 methods to the functions above.
2563 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2564 (linux_gdb_signal_to_target): Likewise.
2565 * alpha-linux-tdep.c: Define new enum with signals different
2566 from generic Linux kernel.
2567 (alpha_linux_gdb_signal_from_target): New function.
2568 (alpha_linux_gdb_signal_to_target): Likewise.
2569 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2570 with the functions mentioned above.
2571 * avr-tdep.c: Define enum with differences between Linux kernel
2572 and AVR signals.
2573 (avr_linux_gdb_signal_from_target): New function.
2574 (avr_linux_gdb_signal_to_target): Likewise.
2575 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2576 the functions mentioned above.
2577 * sparc-linux-tdep.c: Define enum with differences between SPARC
2578 and generic Linux kernel signal numbers.
2579 (sparc32_linux_gdb_signal_from_target): New function.
2580 (sparc32_linux_gdb_signal_to_target): Likewise.
2581 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2582 to the functions defined above.
2583 * xtensa-linux-tdep.c: Define enum with differences between
2584 Xtensa and Linux kernel generic signals.
2585 (xtensa_linux_gdb_signal_from_target): New function.
2586 (xtensa_linux_gdb_signal_to_target): Likewise.
2587 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2588 to the functions defined above.
2589 * mips-linux-tdep.c: Define enum with differences between
2590 signals in MIPS and Linux kernel generic ones.
2591 (mips_gdb_signal_to_target): New function.
2592 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2593 only different signals from the Linux kernel generic.
2594 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2595 the functions defined above.
2596 * mips-linux-tdep.h (enum mips_signals): Remove.
2597
156d08c8
PA
25982013-08-09 Pedro Alves <palves@redhat.com>
2599
2600 * avr-tdep.c (XMALLOC): Delete macro.
2601 * cli/cli-dump.c (XMALLOC): Delete macro.
2602
db229724
PA
26032013-08-09 Pedro Alves <palves@redhat.com>
2604
2605 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2606 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2607 (fopen_with_cleanup, add_dump_command): Make static.
2608 * cli/cli-dump.h: Delete file.
2609 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2610 cli/cli-dump.h.
2611
3f12a589
PA
26122013-08-09 Pedro Alves <palves@redhat.com>
2613
2614 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2615 error message.
2616
c718be47
PA
26172013-08-09 Pedro Alves <palves@redhat.com>
2618
156d08c8 2619 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2620 error message.
2621
1e351ed1
PA
26222013-08-09 Pedro Alves <palves@redhat.com>
2623
2624 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2625 (gcore_command): Use tilde_expand here, and when showing the
2626 filename to the user, show the expanded version.
2627
1ed8d800
YQ
26282013-08-09 Yao Qi <yao@codesourcery.com>
2629
2630 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2631 'entryval' is set.
2632
47ecca85
PA
26332013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2634
2635 * gcore.c (create_gcore_bfd): Use tilde_expand.
2636
82a0a75f
YQ
26372013-08-08 Yao Qi <yao@codesourcery.com>
2638
2639 * frame.h (read_frame_local): Declare.
2640 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2641 read_frame_local.
2642 * stack.c (read_frame_local): New.
2643
5c4aa40b
YQ
26442013-08-08 Yao Qi <yao@codesourcery.com>
2645
2646 * mi/mi-cmd-stack.c: Update comments to function
2647 list_args_or_locals.
2648
b93601f3
TT
26492013-08-07 Tom Tromey <tromey@redhat.com>
2650
2651 PR symtab/15028:
2652 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2653 (process_psymtab_comp_unit_reader): Use it.
2654 (process_psymtab_comp_unit): Update. Add "pretend_language"
2655 argument.
2656 (dwarf2_build_psymtabs_hard): Update.
2657 (scan_partial_symbols): Pass CU's language to
2658 process_psymtab_comp_unit.
2659
fa760f46
TT
26602013-08-07 Tom Tromey <tromey@redhat.com>
2661
2662 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2663 (dwarf2_gdb_index_functions): Update.
2664 * psymtab.c (find_symbol_file_from_partial): Remove.
2665 (psym_functions): Update.
2666 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2667 Remove.
2668
bf6d8a91
TT
26692013-08-07 Tom Tromey <tromey@redhat.com>
2670
2671 * symfile.c (set_initial_language): Look up "main" symbol
2672 and use its language.
2673 * symtab.c (find_main_filename): Remove.
2674 * symtab.h (find_main_filename): Remove.
2675
f9125b6c
TT
26762013-08-07 Tom Tromey <tromey@redhat.com>
2677
2678 * dwarf2read.c (recursively_compute_inclusions): Add
2679 "immediate_parent" argument. Set symtab's "user" field
2680 if not set.
2681 (compute_symtab_includes): Update.
2682
fdbb204b
TT
26832013-08-07 Tom Tromey <tromey@redhat.com>
2684
2685 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2686 when adding label symbols.
2687
49de1690
UW
26882013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2689 Ulrich Weigand <uweigand@de.ibm.com>
2690
2691 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2692 * configure.host (powerpc64-*-aix*): Likewise.
2693
b08ee99f
UW
26942013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2695 Ulrich Weigand <uweigand@de.ibm.com>
2696
2697 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2698 is defined.
2699 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2700 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2701 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2702 * configure.ac: Check for ptrace64.
2703 * configure, config.in: Regenerate.
2704
fecf803e
UW
27052013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2706 Ulrich Weigand <uweigand@de.ibm.com>
2707
2708 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2709 Call ptrace64 instead of ptrace if defined.
2710 Add macro addr_ptr to take care of ptrace address argument.
2711 (pdc_read_regs): Likewise.
2712 (pdc_write_regs): Likewise.
2713 (aix_thread_resume): Likewise.
2714 (fetch_regs_kernel_thread): Likewise.
2715 (store_regs_kernel_thread): Likewise.
2716
3bb5e4a8
AB
27172013-08-07 Anton Blanchard <anton@samba.org>
2718
2719 * MAINTAINERS: Add myself to Write After Approval.
2720
12070676
TT
27212013-08-05 Tom Tromey <tromey@redhat.com>
2722
2723 * aix-thread.c (_initialize_aix_thread): Use
2724 complete_target_initialization.
2725 * bsd-uthread.c (_initialize_bsd_uthread): Use
2726 complete_target_initialization.
2727 * dec-thread.c (_initialize_dec_thread): Use
2728 complete_target_initialization.
2729 * ravenscar-thread.c (_initialize_ravenscar): Use
2730 complete_target_initialization.
2731 * sol-thread.c (_initialize_sol_thread): Use
2732 complete_target_initialization.
2733 * spu-multiarch.c (_initialize_spu_multiarch): Use
2734 complete_target_initialization.
2735
7c7b6655
TT
27362013-08-05 Tom Tromey <tromey@redhat.com>
2737
2738 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2739 * ada-lang.c (ada_lookup_simple_minsym): Return
2740 bound_minimal_symbol.
2741 * ada-lang.h (ada_lookup_simple_minsym): Update.
2742 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2743 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2744 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2745 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2746 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2747 * minsyms.c (msymbol_objfile): Remove.
2748 (lookup_minimal_symbol_internal): New function, from
2749 lookup_minimal_symbol.
2750 (lookup_minimal_symbol): Rewrite using
2751 lookup_minimal_symbol_internal.
2752 (lookup_bound_minimal_symbol): New function.
2753 * minsyms.h (msymbol_objfile): Remove.
2754 (lookup_bound_minimal_symbol): Declare.
2755 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2756 * parse.c (write_exp_msymbol): Change parameter to a
2757 bound_minimal_symbol.
2758 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2759 * parser-defs.h (write_exp_msymbol): Update.
2760 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2761 * symfile.c (simple_read_overlay_table): Use
2762 lookup_bound_minimal_symbol.
2763 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2764 (search_symbols): Likewise.
2765 (print_msymbol_info): Take a bound_minimal_symbol argument.
2766 (symtab_symbol_info, rbreak_command): Update.
2767 * symtab.h (struct symbol_search) <msymbol>: Change type
2768 to bound_minimal_symbol.
2769 * valops.c (find_function_in_inferior): Use
2770 lookup_bound_minimal_symbol.
2771 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2772
934b9bac
JK
27732013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2774
2775 Code cleanup.
2776 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2777 to ...
2778 (async_cleanup_sigint_signal_handler): ... this.
2779 (initialize_sigint_signal_handler): Remove declaration.
2780 (handle_remote_sigint): Rename the declaration to ...
2781 (async_handle_remote_sigint): ... this.
2782 (handle_remote_sigint_twice): Rename the declaration to ...
2783 (async_handle_remote_sigint_twice): ... this.
2784 (async_remote_interrupt, async_remote_interrupt_twice)
2785 (remote_interrupt): Remove the declarations.
2786 (remote_interrupt_twice): Rename the declaration ...
2787 (sync_remote_interrupt_twice): ... this.
2788 (sigint_remote_twice_token): Rename the variable to ...
2789 (async_sigint_remote_twice_token): ... this.
2790 (sigint_remote_token): Rename the variable to ...
2791 (async_sigint_remote_token): ... this.
2792 (initialize_sigint_signal_handler): Rename the function to ...
2793 (async_initialize_sigint_signal_handler): ... this. Update the name
2794 inside.
2795 (handle_remote_sigint): Rename the function to ...
2796 (async_handle_remote_sigint): ... this. Update the names inside.
2797 (handle_remote_sigint_twice): Rename the function to ...
2798 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2799 (cleanup_sigint_signal_handler): Rename the function to ...
2800 (async_cleanup_sigint_signal_handler): ... this.
2801 (remote_interrupt): Rename the function to ...
2802 (sync_remote_interrupt): this. Update the names inside.
2803 (remote_interrupt_twice): Rename the function to ...
2804 (sync_remote_interrupt_twice): this. Update the names inside.
2805 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2806 (_initialize_remote): Update the names inside.
2807
3a1115a0
TT
28082013-08-02 Tom Tromey <tromey@redhat.com>
2809
2810 PR symtab/15719:
2811 * breakpoint.c (update_watchpoint, watchpoint_check)
2812 (watch_command_1): Update.
2813 * eval.c (fetch_subexp_value): Add "preserve_errors"
2814 parameter.
2815 * ppc-linux-nat.c (check_condition): Update.
2816 * value.h (fetch_subexp_value): Update.
2817
58b19776
AB
28182013-08-02 Andrew Burgess <aburgess@broadcom.com>
2819
2820 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2821 add_file_handler.
2822
ec94af83
DE
28232013-08-01 Doug Evans <dje@google.com>
2824
7ee85ab1
DE
2825 PR symtab/15691
2826 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2827 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2828 Add assert of sig_entry->dwo_unit == NULL.
2829 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2830 had already been read.
2831 (read_signatured_type): Set per_cu.tu_read.
2832
b846d303
DE
2833 PR symtab/15695
2834 * valops.c (value_struct_elt): Add missing call to check_typedef.
2835 (value_find_oload_method_list): Ditto.
2836
b52109bc
DE
2837 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2838 effectively, struct symbol_search **.
2839 (make_cleanup_free_search_symbols): Change arg to struct
2840 symbol_search **. All callers updated.
2841 (compare_search_syms): Compare symtab file name and block as well.
2842 (search_symbols_equal): New function.
2843 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2844 New args new_head, new_tail. Result is now void. Remove dups after
2845 sorting the symbols.
2846 (search_symbols): Sort all found symbols once, after all have been
2847 found, and remove duplicates. Simplify cleanup tracking of result.
2848 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2849
ec94af83
DE
2850 Further workarounds for binutils/15021.
2851 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2852 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2853 Watch for duplicate symtabs coming from type units.
2854 (compute_symtab_includes): Update call to
2855 recursively_compute_inclusions. Build vector of included symtabs
2856 instead of per_cus.
2857 * symtab.h (symtab_ptr): New typedef.
2858 (DEF_VEC_P (symtab_ptr)): New VEC type.
2859 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2860 instead.
2861
b2ae85cf
AB
28622013-08-01 Andrew Burgess <aburgess@broadcom.com>
2863
2864 * cli/cli-script.c (script_from_file): Remove use of
2865 error_pre_print.
2866 * main.c (captured_main): Remove use of error_pre_print and
2867 quit_pre_print.
2868 * utils.c (error_pre_print, quit_pre_print): Remove.
2869 * utils.h (error_pre_print, quit_pre_print): Likewise.
2870
645eab03
YQ
28712013-08-01 Yao Qi <yao@codesourcery.com>
2872
2873 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2874 with mi_getopt.
2875 (mi_cmd_stack_list_variables): Likewise.
2876
16f92dd4
AB
28772013-07-31 Andrew Burgess <aburgess@broadcom.com>
2878
2879 * exceptions.c (deprecated_throw_reason): Remove.
2880 * exceptions.h (deprecated_throw_reason): Remove.
2881
13f78033
AB
28822013-07-31 Andrew Burgess <aburgess@broadcom.com>
2883
2884 * remote-mips.c (mips_error): Replace use of
2885 deprecated_throw_reason with throw_verror. Use the error message
2886 passed to mips_error as the error message for throw_verror.
2887
039e3c22
AB
28882013-07-31 Andrew Burgess <aburgess@broadcom.com>
2889
2890 * monitor.c (monitor_interrupt_query): Replace use of
2891 deprecated_throw_reason with quit.
2892 * nto-procfs.c (interrupt_query): Likewise.
2893 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2894 * remote-mips.c (mips_kill): Likewise.
2895 * remote.c (interrupt_query): Likewise.
2896
8150913b
AB
28972013-07-31 Andrew Burgess <aburgess@broadcom.com>
2898
2899 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2900 with call to fatal.
2901
de74e63a
YQ
29022013-07-31 Pedro Alves <pedro@codesourcery.com>
2903 Yao Qi <yao@codesourcery.com>
2904
2905 * tracepoint.c (trace_dump_command): Select the current frame.
2906
247f5c4f
DE
29072013-07-30 Doug Evans <dje@google.com>
2908
2909 * dwarf2read.c (process_queue): Add type signature to debug output.
2910
11b4b7cc
AB
29112013-07-30 Andrew Burgess <aburgess@broadcom.com>
2912
2913 * value.c (value_fetch_lazy): Mark optimized out values as such
2914 rather than raising an error.
2915
b0c54aa5
AB
29162013-07-30 Andrew Burgess <aburgess@broadcom.com>
2917
2918 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2919 before checking which bits of the parent, not the child, value are
2920 valid.
2921
97c85fc6
MB
29222013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2923
2924 PR gdb/15715
2925 * top.c: Include "filenames.h".
2926 (set_history_filename): New function.
2927 (init_main): Install it as set hook of the "set history filename"
2928 command.
2929
ff39bb5e
SA
29302013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2931
2932 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2933 attribute parameter.
2934 (dwarf2_const_value_data): Constify struct attribute parameter.
2935 (dwarf2_const_value): Constify struct attribute parameter.
2936 (dwarf2_const_value_attr): Constify struct attribute parameter.
2937 (lookup_die_type): Constify struct attribute parameter.
2938 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2939 (follow_die_ref_or_sig): Constify struct attribute parameter.
2940 (follow_die_ref): Constify struct attribute parameter.
2941 (follow_die_sig): Constify struct attribute parameter.
2942 (get_DW_AT_signature_type): Constify struct attribute parameter.
2943 (get_type_unit_group): Constify struct attribute parameter.
2944 (fill_in_loclist_baton): Constify struct attribute parameter.
2945 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2946 (type_unit_group): Constify struct attribute parameter.
2947
6e5a29e1
SA
29482013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2949
2950 * dwarf2read.c (attr_form_is_block): Make argument const.
2951 (attr_form_is_section_offset): Make argument const.
2952 (attr_form_is_constant): Make argument const.
2953 (attr_form_is_ref): Make argument const.
2954
7771576e
SA
29552013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2956
2957 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2958 All uses updated.
2959 (attr_form_is_ref): Moved below attr_form_is_constant.
2960
a94e8645
DE
29612013-07-29 Doug Evans <dje@google.com>
2962
bb5291d0
DE
2963 * main.c (captured_command_loop): Tweak comment.
2964
b5419e49
DE
2965 * target.c (target_async_permitted_1): Fix comment.
2966
b2d23133
DE
2967 * symtab.c (iterate_over_some_symtabs): Add comment.
2968
a94e8645
DE
2969 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2970
7a60ad40
YQ
29712013-07-27 Yao Qi <yao@codesourcery.com>
2972
2973 * NEWS: Mention that GDBserver now supports hardware
2974 watchpoints on the MIPS GNU/Linux target.
2975
aaee2056
YQ
29762013-07-27 Yao Qi <yao@codesourcery.com>
2977
2978 * Makefile.in (HFILES_NO_SRCDIR): Add
2979 common/mips-linux-watch.h.
2980 (mips-linux-watch.o): New rule.
2981 * common/mips-linux-watch.c: New.
2982 * common/mips-linux-watch.h: New.
2983 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2984 * mips-linux-nat.c: Include mips-linux-watch.h.
2985 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2986 to common/mips-linux-watch.h.
2987 (MAX_DEBUG_REGISTER): Likewise.
2988 (enum pt_watch_style): Likewise.
2989 (struct mips32_watch_regs): Likewise.
2990 (struct mips64_watch_regs): Likewise.
2991 (struct pt_watch_regs): Likewise.
2992 (struct mips_watchpoint): Likewise.
2993 (mips_linux_watch_get_irw_mask): Move to
2994 common/mips-linux-watch.c.
2995 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2996 (mips_linux_watch_get_watchlo): Likewise.
2997 (mips_linux_watch_set_watchlo): Likewise.
2998 (mips_linux_watch_get_watchhi): Likewise.
2999 (mips_linux_watch_set_watchhi): Likewise.
3000 (mips_linux_read_watch_registers): Likewise.
3001 (mips_linux_watch_type_to_irw): Likewise.
3002 (mips_linux_stopped_data_address, fill_mask): Likewise.
3003 (mips_linux_watch_try_one_watch): Likewise.
3004 (mips_linux_watch_populate_regs): Likewise.
3005
b3436450
YQ
30062013-07-27 Yao Qi <yao@codesourcery.com>
3007
3008 * mips-linux-nat.c (get_irw_mask): Rename to ...
3009 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3010 'set' to 'n'. Update function comment. All callers changed.
3011 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3012 function comment. All callers changed.
3013 (get_num_valid): Rename to ...
3014 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3015 'set' to 'n'. Update function comment. All callers changed.
3016 (get_watchlo): Rename to ...
3017 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3018 'set' to 'n'. Update function comment. All callers changed.
3019 (set_watchlo): Rename to ...
3020 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3021 'set' to 'n'. Update function comment. All callers changed.
3022 (get_watchhi): Rename to ...
3023 (mips_linux_watch_get_watchhi): ... this. Update function
3024 comment. All callers changed.
3025 (set_watchhi): Rename to ...
3026 (mips_linux_watch_set_watchhi): ... this. Update function
3027 comment. All callers changed.
3028 (mips_linux_read_watch_registers): Update function comment.
3029 Add new parameters 'lwpid', 'watch_readback', and
3030 'watch_readback_valid'. Update.
3031 (type_to_irw): Rename to ...
3032 (mips_linux_watch_type_to_irw): ... this. Update function
3033 comment. All callers changed.
3034 (fill_mask): Update function comment.
3035 (try_one_watch): Rename to ...
3036 (mips_linux_watch_try_one_watch): ... this. Change the type
3037 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3038 (populate_regs_from_watches): Rename to ...
3039 (mips_linux_watch_populate_regs): ... this. Add parameter
3040 'current_watches'. All callers changed.
3041
9be14b81
YQ
30422013-07-27 Yao Qi <yao@codesourcery.com>
3043
3044 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3045 the code.
3046 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3047 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3048 (struct pt_watch_regs): Likewise.
3049 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3050 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3051 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3052 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3053 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3054
de6f69ad
YQ
30552013-07-27 Yao Qi <yao@codesourcery.com>
3056
3057 * breakpoint.h: Include break-common.h.
3058 (enum target_hw_bp_type): Move to ...
3059 * common/break-common.h: ... here. New.
3060
6f64ef53
PA
30612013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3062
3063 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3064 process group regardless of having tty on stdin.
3065
6107e809
DE
30662013-07-25 Doug Evans <dje@google.com>
3067
3068 * linux-fork.h (detach_fork): Delete.
3069
7fdc1521
TT
30702013-07-25 Tom Tromey <tromey@redhat.com>
3071
3072 PR remote/15256, PR remote/15266:
3073 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3074 * monitor.c (monitor_detach): Use unpush_target.
3075 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3076 * remote-mips.c (mips_detach): Use unpush_target. Don't
3077 call mips_close.
3078 * remote-sim.c (gdbsim_detach): Use unpush_target.
3079 * target.c (pop_target): Remove.
3080 (pop_all_targets_above): Don't call target_close.
3081 (target_close): Assert that the target is unpushed.
3082 * target.h (pop_target): Don't declare.
3083 * tracepoint.c (tfile_open): Use unpush_target.
3084
c22a2b88
TT
30852013-07-25 Tom Tromey <tromey@redhat.com>
3086
3087 * linux-thread-db.c (init_thread_db_ops): Call
3088 complete_target_initialization.
3089 (_initialize_thread_db): Don't call add_target.
3090 * target.c (complete_target_initialization): New function.
3091 (add_target_with_completer): Call it.
3092 * target.h (complete_target_initialization): Declare.
3093
cbb6aada
MK
30942013-07-25 Mark Kettenis <kettenis@gnu.org>
3095
3096 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3097 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3098 (HPPANBSD_SIZEOF_GREGS): New define.
3099 (hppaobsd_supply_gregset): Handle additional registers.
3100 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3101 we provide more registers now.
3102 (hppabsd_supply_gregset): Supply additional registers.
3103 (hppabsd_collect_gregset): Collect additional registers.
3104
17767988
MK
31052013-07-25 Mark Kettenis <kettenis@gnu.org>
3106
3107 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3108 (hppabsd_dwarf2_frame_init_reg): New function.
3109 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3110
fdc8aae8
AB
31112013-07-25 Andrew Burgess <aburgess@broadcom.com>
3112
3113 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3114 'z' format code. Remove error for optimized out values, standard
3115 code will handle these fine.
3116
6fbe845e
AB
31172013-07-25 Andrew Burgess <aburgess@broadcom.com>
3118
3119 * NEWS: Mention new 'z' formatter.
3120 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3121 (_initialize_printcmd): Mention 'z' formatter in help text of the
3122 'x' command.
3123
3373342d
MR
31242013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3125
3126 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3127 formatting.
3128
25f9533e
SDJ
31292013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3130
3131 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3132 interface can evaluate arguments. Fallback to the old mode if it
3133 cannot.
3134 (create_exception_master_breakpoint): Likewise.
3135 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3136 (struct sym_probe_fns elf_probe_fns): Export function above to the
3137 probe interface.
3138 * probe.c (can_evaluate_probe_arguments): New function.
3139 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3140 function pointer.
3141 (can_evaluate_probe_arguments): New function prototype.
3142 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3143 probe interface can evaluate arguments. Fallback to the old mode
3144 if it cannot.
3145 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3146 interface can evaluate arguments. Warning the user if it cannot.
3147 (stap_can_evaluate_probe_arguments): New function.
3148 (struct probe_ops stap_probe_ops): Export function above to the
3149 probe interface.
3150 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3151 New function pointer.
3152
3360c0bf
LM
31532013-07-24 Luis Machado <lgustavo@codesourcery.com>
3154
3155 * Makefile.in (SFILES): Add common/target-common.c.
3156 Add common/target-common.h to headers.
3157 (COMMON_OBS): Add target-common.o.
3158 (target-common.o): New target.
3159 * linux-nat.h (resume_kind): Move to common/target-common.h.
3160 * target.c (target_waitstatus_to_string): Move to
3161 common/target-common.c.
3162 * target.h: Include target-common.h.
3163 (target_waitkind): Move to common/target-common.h.
3164 (target_waitstatus): Likewise.
3165 (TARGET_WNOHANG): Likewise.
3166 * common/target-common.c: New file.
3167 * common/target-common.h: New file.
3168
6656a72d
DE
31692013-07-24 Doug Evans <dje@google.com>
3170
3171 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3172 a warning.
3173
6df81a63
YQ
31742013-07-23 Yao Qi <yao@codesourcery.com>
3175
3176 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3177 parameter 'gdbarch'.
3178 (i386_stack_tramp_frame_sniffer): Caller update.
3179 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3180 parameter 'gdbarch' and 'target'.
3181 (i386_linux_core_read_description): Caller update.
3182 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3183 Likewise.
3184 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3185 declaration.
3186
365156ad
TT
31872013-07-23 Tom Tromey <tromey@redhat.com>
3188
3189 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3190 2013-07-22.
3191
046ac79f
JK
31922013-07-22 Doug Evans <dje@google.com>
3193
3194 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3195 * exec.c (exec_close): Update call to remove_target_sections.
3196 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3197 * solib.c (update_solib_list): Ditto.
3198 (reload_shared_libraries_1): Ditto.
3199 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3200 * target.h (struct target_section): Rename key to owner.
3201 All uses updated.
046ac79f 3202
29b2cc46
TT
32032013-07-22 Tom Tromey <tromey@redhat.com>
3204
3205 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3206
d1160018
TT
32072013-07-22 Tom Tromey <tromey@redhat.com>
3208
3209 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3210 Simplify cleanup handling.
3211
2f324bf6
TT
32122013-07-22 Tom Tromey <tromey@redhat.com>
3213
3214 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3215 on all return paths.
3216
e23b9d6e
UW
32172013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3218
3219 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3220 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3221 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3222
1cf55f60
PM
32232013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3224
3225 * top.c (print_gdb_version): Add help, apropos description and
3226 url to online documentation.
3227
fa876972
HZ
32282013-07-19 Hui Zhu <hui@codesourcery.com>
3229
3230 PR gdb/15692
3231 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3232
1527aea8
YQ
32332013-07-19 Yao Qi <yao@codesourcery.com>
3234
3235 * target.c (update_current_target): Change the default action
3236 of 'to_traceframe_info' from tcomplain to return_zero.
3237 * target.h (struct target_ops) <to_traceframe_info>: Add more
3238 comments.
3239 * valops.c (read_value_memory): Call
3240 traceframe_available_memory unconditionally.
3241
886f230e
YQ
32422013-07-18 Yao Qi <yao@codesourcery.com>
3243
3244 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3245 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3246 symbol without prefix. If found, set its type to
3247 'mst_solib_trampoline'.
3248
16419bae
DE
32492013-07-17 Doug Evans <dje@google.com>
3250
e7045703
DE
3251 * NEWS: Mention "set print raw frame-arguments".
3252 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3253 * stack.c (print_raw_frame_arguments): New static global.
3254 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3255 (_initialize_stack): New command "set/show print raw frame-arguments".
3256 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3257 (set_print_raw, show_print_raw): New functions.
3258 (_initialize_valprint): New prefix command "set/show print raw".
3259 * valprint.h (value_print_options): Improve comments.
3260
453e48a5
DE
3261 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3262 of all *list variables.
3263
16419bae
DE
3264 * gdbcmd.h (togglelist): Delete.
3265 * cli/cli-cmds.c (togglelist): Delete.
3266 (init_cmd_lists): Update.
3267 * cli/cli-cmds.h (togglelist): Delete.
3268
626f2d1c
TT
32692013-07-17 Tom Tromey <tromey@redhat.com>
3270
3271 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3272 dwarf2_per_objfile.
3273
57e6060e
DE
32742013-07-16 Doug Evans <dje@google.com>
3275
3276 * nto-tdep.c (nto_relocate_section_addresses): Update,
3277 target_section.bfd deleted.
3278 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3279 * s390-tdep.c (s390_load): Ditto.
3280 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3281
5ea5559b
AB
32822013-07-16 Andrew Burgess <aburgess@broadcom.com>
3283
3284 * common/format.c (parse_format_string): Add checks for NULL
3285 character before calling strchr.
3286
2b2848e2
DE
32872013-07-16 Doug Evans <dje@google.com>
3288
2c571006
DE
3289 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3290 temp_pathname argument.
3291 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3292 when opening the file fails.
3293
2b2848e2
DE
3294 * target.h (struct target_section): Delete member bfd.
3295 All users updated to use the_bfd_section->owner instead.
3296 * exec.c (add_to_section_table): Assert bfd is expected value.
3297 Remove initialization of target_section.bfd.
3298 (remove_target_sections): Update.
3299 (section_table_available_memory): Update.
3300 (section_table_xfer_memory_partial): Update.
3301 (print_section_info): Update.
3302 (exec_set_section_address): Update.
3303 * record-full.c (record_full_core_xfer_partial): Update.
3304 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3305 * solib-target.c (solib_target_relocate_section_addresses): Update.
3306 * symfile.c (build_section_addr_info_from_section_table): Update.
3307 * target.c (memory_xfer_live_readonly_partial): Update.
3308 (memory_xfer_partial_1): Update.
3309
926bf92d
UW
33102013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3311
3312 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3313 now available for embedded (BookE) and server (BookS) processors,
3314 correct mentions of 'booke' and adjust comments accordingly in order to
3315 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3316 (have_ptrace_booke_interface): Rename function and variable
3317 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3318 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3319 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3320 'hwdebug_point_cmp'. Update all uses.
3321 (booke_find_thread_points_by_tid): Rename function
3322 'booke_find_thread_points_by_tid' to
3323 'hwdebug_find_thread_points_by_tid'. Update all uses.
3324 (booke_insert_point): Rename function 'booke_insert_point' to
3325 'hwdebug_insert_point'. Update all uses.
3326 (booke_remove_point): Rename function 'booke_remove_point' to
3327 'hwdebug_remove_point'. Update all uses.
3328
d929bc19
MR
33292013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3330
3331 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3332 numbers with enum values.
3333
054e8d9e
AA
33342013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3335
3336 PR threads/13217
3337 * thread.c (thread_apply_all_command): Check for valid threads
3338 and thread count.
3339 (thread_array_cleanup): New struct.
3340 (set_thread_refcount): New function.
3341
cf006359
AB
33422013-07-11 Andrew Burgess <aburgess@broadcom.com>
3343
3344 * infcmd.c (default_print_one_register_info): Reuse function
3345 print_hex_chars.
3346
94e36acc
TT
33472013-07-10 Tom Tromey <tromey@redhat.com>
3348
3349 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3350 (ada-exp.o): New target.
3351
915dd369
SDJ
33522013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3353
3354 * mt-tdep.c (mt_registers_info): Call
3355 get_no_prettyformat_print_options instead of
3356 get_raw_print_options (regression by last patch from Doug
3357 Evans).
3358
eca07816
JB
33592013-07-09 Pedro Alves <palves@redhat.com>
3360
3361 Checked in by Joel Brobecker <brobecker@adacore.com>.
3362 * ada-lang.c (coerce_unspec_val_to_type): Use
3363 value_optimized_out_const.
3364 * value.c (value_optimized_out_const): New function.
3365 * value.h (value_optimized_out_const): New declaration.
3366
2a998fc0
DE
33672013-07-09 Doug Evans <dje@google.com>
3368
3369 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3370 Enum values rename as well. All uses updated.
3371 * valprint.h (value_print_options): Rename member pretty to
3372 pretty format. Rename member prettyprint_arrays to
3373 prettyformat_arrays. Rename member prettyprint_structs to
3374 prettyformat_structs. All uses updated.
3375 (get_no_prettyformat_print_options): Renamed from
3376 get_raw_print_options.
3377 * valprint.c (get_no_prettyformat_print_options): Renamed from
3378 get_raw_print_options. All callers updated.
3379 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3380 All callers updated.
3381 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3382 All callers updated.
3383 (_initialize_valprint): Improve help text for "set print pretty" and
3384 "set print arrays".
3385
466c1fca
AB
33862013-07-09 Andrew Burgess <aburgess@broadcom.com>
3387
3388 * value.c (value_bits_valid): Revert previous change, and change
3389 by Pedro on 2013-07-04, due to regressions in
3390 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3391
ad0f0303
AB
33922013-07-08 Andrew Burgess <aburgess@broadcom.com>
3393 Pedro Alves <palves@redhat.com>
3394
3395 * value.c (value_bits_valid): If the value is not lval_computed
3396 or has no check validity handler then the answer is the
3397 optimized_out flag, otherwise defer to the handler.
3398
b187bec1
EZ
33992013-07-06 Eli Zaretskii <eliz@gnu.org>
3400
48d1d6f5
EZ
3401 * top.c (print_gdb_configuration): Explain in output of
3402 --configuration what does "relocatable" mean.
3403
b187bec1
EZ
3404 * main.c (print_gdb_help): Regroup options in the --help text.
3405 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3406 the relevant discussions.
3407
52d361e1
YQ
34082013-07-06 Yao Qi <yao@codesourcery.com>
3409
3410 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3411 Remove parameter 'lsal'.
3412 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3413 to inner block. Caller update.
3414 (base_breakpoint_create_breakpoints_sal): Update.
3415 (bkpt_create_breakpoints_sal): Likewise.
3416 (tracepoint_create_breakpoints_sal): Likewise.
3417 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3418 element 0 of vector 'canonical->sals'.
3419
e1ec1b42
LM
34202013-07-05 Luis Machado <lgustavo@codesourcery.com>
3421
3422 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3423 register number instead of the pseudo register one.
3424 (rs6000_dwarf2_reg_to_regnum): Likewise.
3425
7195e6f0
PA
34262013-07-04 Pedro Alves <palves@redhat.com>
3427
3428 * findvar.c (value_of_register): Use allocate_optimized_out_value
3429 if the register has been optimized out, instead of
3430 set_value_optimized_out.
3431 * frame-unwind.c (frame_unwind_got_optimized): Use
3432 allocate_optimized_out_value.
3433
58722cac
PA
34342013-07-04 Pedro Alves <palves@redhat.com>
3435
3436 * value.c (value_bits_valid): If the value is not lval_computed,
3437 or doesn't have a check_validity hook, assume the value is entirely
3438 valid.
3439
691a26f5
AB
34402013-07-04 Andrew Burgess <aburgess@broadcom.com>
3441
3442 * stack.c (read_frame_arg): No longer fetch lazy values.
3443 * value.c (value_optimized_out): If the value is not already
3444 marked optimized out, and is lazy then fetch it.
3445 (value_primitive_field): Move optimized out check to later in the
3446 function, after we have loaded any lazy values.
3447 (value_fetch_lazy): Use optimized out flag directly rather than
3448 calling optimized_out method.
3449
a58e2656
AB
34502013-07-04 Andrew Burgess <aburgess@broadcom.com>
3451
3452 * valops.c: Don't include "user-regs.h".
3453 (value_fetch_lazy): Moved to value.c.
3454 * value.c: Include "user-regs.h".
3455 (value_fetch_lazy): Moved from valops.c.
3456
bd885420
YQ
34572013-07-04 Yao Qi <yao@codesourcery.com>
3458
3459 Revert:
3460 2013-06-27 Yao Qi <yao@codesourcery.com>
3461
3462 * common/create-version.sh: Update comments. Handle the case
3463 that TARGET_ALIAS is empty.
3464
17ef446e
PA
34652013-07-03 Pedro Alves <palves@redhat.com>
3466
3467 * Makefile.in (config.status): Depend on development.sh.
3468 (aclocal_m4_deps): Add libmcheck.m4.
3469 * acinclude.m4: Include libmcheck.m4.
3470 * configure.ac: Source development.sh instead of setting
3471 'development' here. --enable-libmcheck/--disable-libmcheck code
3472 factored out to GDB_AC_LIBMCHECK. Run it.
3473 * development.sh: New file.
3474 * libmcheck.m4: New file.
3475 * configure: Regenerate.
3476
ac6dd50f
TT
34772013-07-02 Tom Tromey <tromey@redhat.com>
3478
3479 * contrib/ari/update-web-ari.sh: Update for version.in change.
3480
bd1df410
TT
34812013-07-02 Tom Tromey <tromey@redhat.com>
3482
3483 * common/ptid.h: Comment fixes.
3484
4db1a1dc
TT
34852013-07-01 Tom Tromey <tromey@redhat.com>
3486
3487 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3488 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3489 (dwarf2_read_index, create_all_comp_units): Update.
3490
dd9aa048
TT
34912013-07-01 Tom Tromey <tromey@redhat.com>
3492
3493 * configure.ac (build_warnings): Add -Wold-style-definition.
3494 * configure: Rebuild.
3495 * machoread.c (_initialize_machoread): Use "(void)".
3496 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3497 use "(void)".
3498
44d100c3
TT
34992013-07-01 Tom Tromey <tromey@redhat.com>
3500
3501 * configure.ac (build_warnings): Add -Wold-style-declaration.
3502 * configure: Rebuild.
3503 * dsrec.c (make_srec): Use "static const", not "const static".
3504 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3505 not "const static".
3506 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3507 Use "static const", not "const static".
3508 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3509 not "const static".
3510 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3511 not "const static".
3512 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3513 not "const static".
3514 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3515 not "const static".
3516 (v850_dbtrap_breakpoint_from_pc): Likewise.
3517 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3518 not "const static".
3519
2945b807
TT
35202013-07-01 Tom Tromey <tromey@redhat.com>
3521
3522 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3523 * configure: Rebuild.
3524
d8d2a3ee
PA
35252013-07-01 Pedro Alves <palves@redhat.com>
3526
3527 * defs.h: Include "pathmax.h".
3528 * utils.c: Don't include sys/param.h.
3529 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3530 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3531 instead of MAXPATHLEN.
3532 * solib-sunos.c: Don't include sys/param.h.
3533 * xcoffread.c: Don't include sys/param.h.
3534 * bsd-kvm.c: Don't include sys/param.h.
3535 * darwin-nat.c: Don't include sys/param.h.
3536 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3537 * darwin-nat-info.c: Don't include sys/param.h.
3538 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3539 MAXPATHLEN.
3540 * i386obsd-nat.c: Don't include sys/param.h.
3541 * inf-child.c: Don't include sys/param.h.
3542 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3543 * linux-fork.c: Don't include sys/param.h.
3544 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3545 * linux-nat.c: Don't include sys/param.h.
3546 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3547 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3548 * m68klinux-nat.c: Don't include sys/param.h.
3549 * nbsd-nat.c: Don't include sys/param.h.
3550 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3551 * ppc-linux-nat.c: Don't include sys/param.h.
3552 * rs6000-nat.c: Don't include sys/param.h.
3553 * spu-linux-nat.c. Don't include sys/param.h.
3554 * windows-nat.c: Don't include sys/param.h.
3555 * xtensa-linux-nat.c: Don't include sys/param.h.
3556 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3557
38ec2207
PA
35582013-07-01 Pedro Alves <palves@redhat.com>
3559
3560 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3561 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3562 * gnulib/aclocal.m4: Regenerate.
3563 * gnulib/config.in: Regenerate.
3564 * gnulib/configure: Regenerate.
3565 * gnulib/import/pathmax.h: New file.
3566 * gnulib/import/Makefile.am: Regenerate.
3567 * gnulib/import/Makefile.in: Regenerate.
3568 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3569 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3570 * gnulib/import/m4/pathmax.m4: New file.
3571
e655c1a2
PA
35722013-07-01 Pedro Alves <palves@redhat.com>
3573
3574 * configure.ac (GDBINIT): Define, depending on host.
3575 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3576 * top.c (PATH_MAX): Delete fallback definition.
3577 (GDBINIT_FILENAME): Delete.
3578 (gdbinit): Reimplement as const char array set to the GDBINIT
3579 string constant.
3580 * top.h (gdbinit): Make const.
3581 * configure, config.in: Regenerate.
3582
50dd9793
PA
35832013-07-01 Pedro Alves <palves@redhat.com>
3584
3585 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3586 * cli/cli-cmds.h (source_script): Likewise.
3587 * exceptions.c (catch_command_errors_const): New function.
3588 * exceptions.h (catch_command_errors_const): Declare.
3589 * main.c (get_init_files): Make parameters const, and adjust.
3590 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3591 'local_gdbinit' locals const. Adjust to use
3592 catch_command_errors_const.
3593 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3594 'local_gdbinit' locals const.
3595
bc7dea8d
PA
35962013-07-01 Pedro Alves <palves@redhat.com>
3597
3598 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3599 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3600 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3601 <unistd.h>.
3602
8839a007
PA
36032013-07-01 Pedro Alves <palves@redhat.com>
3604
3605 Import the "unistd" gnulib module.
3606 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3607 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3608 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3609 import/m4/unistd_h.m4.
3610 * gnulib/aclocal.m4: Renenerate.
3611 * gnulib/config.in: Renenerate.
3612 * gnulib/configure: Renenerate.
3613 * gnulib/import/Makefile.am: Renenerate.
3614 * gnulib/import/Makefile.in: Renenerate.
3615 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3616 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3617 * gnulib/import/m4/off_t.m4: New file.
3618 * gnulib/import/m4/ssize_t.m4: New file.
3619 * gnulib/import/m4/sys_types_h.m4: New file.
3620 * gnulib/import/m4/unistd_h.m4: New file.
3621 * gnulib/import/sys_types.in.h: New file.
3622 * gnulib/import/unistd.c: New file.
3623 * gnulib/import/unistd.in.h: New file.
3624
8c0da261
PA
36252013-07-01 Pedro Alves <palves@redhat.com>
3626
3627 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3628 defined instead of checking HAVE_UNISTD_H.
3629
3574124b
PA
36302013-07-01 Pedro Alves <palves@redhat.com>
3631
3632 Reimport gnulib from scratch.
3633 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3634 import/m4/onceonly.m4.
3635 * gnulib/aclocal.m4: Renegerate.
3636 * gnulib/config.in: Renegerate.
3637 * gnulib/configure: Renegerate.
3638 * gnulib/import/Makefile.in: Renegerate.
3639 * gnulib/import/extra/update-copyright: Renegerate.
3640 * gnulib/import/m4/onceonly.m4: Delete.
3641
702dc4fd
PA
36422013-07-01 Pedro Alves <palves@redhat.com>
3643
3644 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3645
47e1ce27
JK
36462013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3647
3648 Code cleanup.
3649 * remote.c (async_remote_interrupt_twice): Make it static.
3650 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3651
e82839d4
SDJ
36522013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3653
3654 * ia64-linux-tdep.c: Include <ctype.h>.
3655 (ia64_linux_stap_is_single_operand): New function.
3656 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3657
d6c2da54
TT
36582013-06-28 Tom Tromey <tromey@redhat.com>
3659
3660 * Makefile.in (version.c): Use version.in, not
3661 common/version.in.
3662 * common/create-version.sh: Likewise.
3663 * common/version.in: Move...
3664 * version.in: ...here.
3665
74da6f00
PA
36662013-06-28 Pedro Alves <palves@redhat.com>
3667
3668 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3669 here.
3670 * utils.h (pagination_enabled): Declare.
3671
d32dc48e
PA
36722013-06-28 Pedro Alves <palves@redhat.com>
3673
3674 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3675 Move higher up in file.
3676
0edd9e3b
TT
36772013-06-28 Tom Tromey <tromey@redhat.com>
3678
3679 * tracepoint.c (deprecated_readline_begin_hook)
3680 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3681 declare.
3682
4eb59108
PA
36832013-06-28 Pedro Alves <palves@redhat.com>
3684
3685 PR tui/14880
3686 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3687 checking if they're available.
3688 * value.c (value_available_contents_eq): Change comment.
3689 * value.h (value_available_contents_eq): Expand comment.
3690
97b17156
TT
36912013-06-27 Tom Tromey <tromey@redhat.com>
3692
3693 * target.c (find_run_target): Remove.
3694 * target.h (find_run_target): Remove.
3695
6a3bfc5c
TT
36962013-06-27 Tom Tromey <tromey@redhat.com>
3697
3698 * corelow.c (core_gdbarch): Now static.
3699
c9ef825d
TT
37002013-06-27 Tom Tromey <tromey@redhat.com>
3701
3702 * target.c (target_struct_index): Remove.
3703
e5823f1c
PA
37042013-06-27 Pedro Alves <palves@redhat.com>
3705
3706 * infrun.c: Remove comment describing the 'stepping over runtime
3707 loader dynamic symbol resolution code' mechanism; moved to
3708 gdbint.texinfo.
3709
97f8dd09
PA
37102013-06-27 Pedro Alves <palves@redhat.com>
3711
3712 * exceptions.c (catch_command_errors): Remove spurious space.
3713 * exceptions.h (catch_command_errors): Second parameter is "arg",
3714 not "command".
3715
02b1871e
YQ
37162013-06-27 Yao Qi <yao@codesourcery.com>
3717
3718 * common/create-version.sh: Update comments. Handle the case
3719 that TARGET_ALIAS is empty.
3720
bb1b1cf1
PA
37212013-06-26 Pedro Alves <palves@redhat.com>
3722
3723 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3724 comment.
3725
7b624e71
PA
37262013-06-26 Pedro Alves <palves@redhat.com>
3727
3728 * infrun.c: Update comments on stepping over runtime loader
3729 dynamic symbol resolution code.
3730
74e5a346
SDJ
37312013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3732
3733 * ax-gdb.h (union exp_element): Forward declare.
3734 * parser-defs.h: Include expression.h.
3735
a2fb2cee
MR
37362013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3737
3738 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3739
cdba14e0
DK
37402013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3741
3742 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3743
f30aa5af
DK
37442013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3745
3746 Fix trace-status to output proper start-time and stop-time.
3747 * tracepoint.c (trace_status_command): Fix type of printf arg to
3748 prevent improper type conversion.
3749 (trace_status_mi): Likewise.
3750
1aee363c
MR
37512013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3752
3753 * mips-tdep.c (mips_next_pc): Fix a typo.
3754
3356937a
MR
37552013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3756
3757 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3758
dc673c81
YQ
37592013-06-26 Pedro Alves <pedro@codesourcery.com>
3760 Yao Qi <yao@codesourcery.com>
3761
3762 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3763 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3764 * mi/mi-main.c (print_variable_or_computed): New function.
3765 (mi_cmd_trace_frame_collected): New function.
3766 * tracepoint.c (find_trace_state_variable_by_number): New.
3767 (struct traceframe_info): Move to tracepoint.h
3768 (struct collection_list): Likewise.
3769 (do_collect_symbol): Include locals and arguments in the
3770 collected variables list.
3771 (clear_collection_list): Clear wholly collected variables list
3772 and computed variables list.
3773 (append_exp): New function.
3774 (encode_actions_1): Include variables in the wholly
3775 collected variables list. Include memory ranges and
3776 full-fledged expressions in the computed expressions list.
3777 (encode_actions): Move some code to ...
3778 Return the cleanup chain.
3779 (encode_actions_rsp): ... here. New function.
3780 (get_traceframe_location, get_traceframe_info): Remove static.
3781 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3782 (struct collection_list): Moved from tracepoint.c. Add two
3783 new fields 'wholly_collected' and 'computed'.
3784 (find_trace_state_variable_by_number): Declare.
3785 (encode_actions): Adjust declaration.
3786 (encode_actions_rsp): Declare.
3787 (get_traceframe_info, get_traceframe_location): Declare.
3788
3789 * NEWS: Mention new MI command -trace-frame-collected.
3790
28a93511
YQ
37912013-06-26 Pedro Alves <pedro@codesourcery.com>
3792 Yao Qi <yao@codesourcery.com>
3793
3794 * ctf.c (ctf_traceframe_info): Push trace state variables
3795 present in the trace data into the traceframe info object.
3796 * breakpoint.c (DEF_VEC_I): Remove.
3797 * common/filestuff.c (DEF_VEC_I): Likewise.
3798 * dwarf2loc.c (DEF_VEC_I): Likewise.
3799 * mi/mi-main.c (DEF_VEC_I): Likewise.
3800 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3801 * features/traceframe-info.dtd: Add tvar element and its
3802 attributes.
3803 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3804 (build_traceframe_info): Push trace state variables present in
3805 the trace data into the traceframe info object.
3806 (traceframe_info_start_tvar): New function.
3807 (tvar_attributes): New.
3808 (traceframe_info_children): Add "tvar" element.
3809 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3810
3811 * NEWS: Mention the change in GDB and GDBserver.
3812
ddacd3c8
YQ
38132013-06-26 Pedro Alves <pedro@codesourcery.com>
3814 Yao Qi <yao@codesourcery.com>
3815
3816 * tracepoint.c (trace_dump_command): Move code to ...
3817 (get_traceframe_location): ... here. New.
3818
05796b35
YQ
38192013-06-26 Pedro Alves <pedro@codesourcery.com>
3820 Yao Qi <yao@codesourcery.com>
3821
3822 * tracepoint.c (trace_dump_command): GDB emits an error
3823 instead of a warning when a traceframe is not selected.
3824
cbfa3b61
YQ
38252013-06-26 Pedro Alves <pedro@codesourcery.com>
3826 Yao Qi <yao@codesourcery.com>
3827
3828 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3829 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3830 in collection_list.
3831 (do_clear_collection_list, init_collection_list): New.
3832 (encode_actions): Add local variables 'tracepoint_list' and
3833 'stepping_list'. Call init_collection_list and make cleanup
3834 which calls do_clear_collection_list. Don't call
3835 clear_collection_list.
3836 (_initialize_tracepoint): Delete references to
3837 'tracepoint_list' and 'stepping_list'.
3838
6e2048d3
TT
38392013-06-25 Tom Tromey <tromey@redhat.com>
3840
3841 * common/create-version.sh (date): Use "$", not "$$" in sed
3842 expression.
3843
42059f0e
KB
38442013-06-25 Kevin Buettner <kevinb@redhat.com>
3845
3846 * NEWS (New targets): Add entry for TI MSP430.
3847
a0743c90
YQ
38482013-06-25 Yao Qi <yao@codesourcery.com>
3849
3850 * remote.c (remote_start_remote): Move code to upload tsv
3851 earlier.
3852
9d6e6e84
HZ
38532013-06-25 Yao Qi <yao@codesourcery.com>
3854 Hui Zhu <hui@codesourcery.com>
3855 Pedro Alves <palves@redhat.com>
3856
3857 PR breakpoints/15075
3858 PR breakpoints/15434
3859 * breakpoint.c (bpstat_stop_status): Call
3860 b->ops->after_condition_true.
3861 (update_dprintf_command_list): Don't append "continue" command
3862 to the command list of dprintf breakpoint.
3863 (base_breakpoint_after_condition_true): New function.
3864 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3865 (dprintf_after_condition_true): New function.
3866 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3867 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3868
586cf749
KB
38692013-06-24 Kevin Buettner <kevinb@redhat.com>
3870
3871 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3872 (ALLDEPFILES): Add msp430-tdep.c.
3873 * configure.tgt (msp430*-*-elf): New target.
3874 * msp430-tdep.c: New file.
3875
1bbce132
MR
38762013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3877
3878 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3879 microMIPS synthetic symbols.
3880
3e5d3a5a
MR
38812013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3882
3883 * objfiles.h (pc_in_section): New prototype.
3884 (in_plt_section): Remove name argument, replace prototype with
3885 static inline function.
3886 * mips-tdep.h: Include "objfiles.h".
3887 (in_mips_stubs_section): New function.
3888 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3889 in_solib_call_trampoline member.
3890 (hppa_in_solib_call_trampoline): Remove name argument.
3891 * objfiles.c (pc_in_section): New function.
3892 (in_plt_section): Remove function.
3893 * mips-linux-tdep.c: Include "objfiles.h".
3894 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3895 name argument. Return 1 rather than the low 16-bit halfword of
3896 any instruction examined.
3897 (mips_linux_in_dynsym_resolve_code): Update
3898 mips_linux_in_dynsym_stub call accordingly.
3899 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3900 rather than an equivalent hand-coded sequence.
3901 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3902 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3903 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3904 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3905 in_opd_section.
3906 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3907 on call to tdep->in_solib_call_trampoline.
3908 (hppa_in_solib_call_trampoline): Remove name argument, update
3909 according to in_plt_section change.
3910 (hppa_skip_trampoline_code): Update according to in_plt_section
3911 change.
3912 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3913 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3914 Likewise.
3915 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3916 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3917 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3918 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3919 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3920 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3921 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3922 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3923 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3924 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3925 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3926 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3927 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3928
b9b26a16
JB
39292013-06-24 Joel Brobecker <brobecker@adacore.com>
3930
3931 * common/create-version.sh: Fix expansion of $host_alias
3932 and $target_alias in generation of HOST_NAME and TARGET_NAME
3933 (resp.).
3934
01208463
TT
39352013-06-24 Tom Tromey <tromey@redhat.com>
3936
3937 * common/create-version.sh: New file.
3938 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3939 create-version.sh.
3940 (HFILES_NO_SRCDIR): Use common/version.h.
3941 * version.in: Move to ...
3942 * common/version.in: ... here. Replace date with "DATE".
3943 * version.h: Move to ...
3944 * common/version.h: ... here.
3945
bb6b9a5e
JB
39462013-06-21 Joel Brobecker <brobecker@adacore.com>
3947
3948 * gdb/gnulib/Makefile.in: Update date in copyright header.
3949 * gdb/gnulib/configure.ac: Ditto.
3950 * gdb/gnulib/update-gnulib.sh: Ditto.
3951
c3b18ee7
JB
39522013-06-21 Joel Brobecker <brobecker@adacore.com>
3953
3954 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3955 "gdb/gnulib/import".
3956
85d3b769
WN
39572013-06-21 Will Newton <will.newton@linaro.org>
3958
3959 * doublest.c (ldfrexp): Remove function.
3960 (convert_doublest_to_floatformat): Call frexpl instead of
3961 ldfrexp.
3962
88b48903
WN
39632013-06-21 Will Newton <will.newton@linaro.org>
3964
3965 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3966 * gnulib/aclocal.m4: Regenerate.
3967 * gnulib/config.in: Regenerate.
3968 * gnulib/configure: Regenerate.
3969 * gnulib/import/Makefile.am: Update.
3970 * gnulib/import/Makefile.in: Update.
3971 * gnulib/import/m4/gnulib-cache.m4: Update.
3972 * gnulib/import/m4/gnulib-comp.m4: Update.
3973 * gnulib/import/float+.h: Import.
3974 * gnulib/import/float.c: Import.
3975 * gnulib/import/float.in.h: Import.
3976 * gnulib/import/fpucw.h: Import.
3977 * gnulib/import/frexp.c: Import.
3978 * gnulib/import/frexpl.c: Import.
3979 * gnulib/import/isnan.c: Import.
3980 * gnulib/import/isnand-nolibm.h: Import.
3981 * gnulib/import/isnand.c: Import.
3982 * gnulib/import/isnanl-nolibm.h: Import.
3983 * gnulib/import/isnanl.c: Import.
3984 * gnulib/import/itold.c: Import.
3985 * gnulib/import/m4/exponentd.m4: Import.
3986 * gnulib/import/m4/exponentl.m4: Import.
3987 * gnulib/import/m4/float_h.m4: Import.
3988 * gnulib/import/m4/fpieee.m4: Import.
3989 * gnulib/import/m4/frexp.m4: Import.
3990 * gnulib/import/m4/frexpl.m4: Import.
3991 * gnulib/import/m4/isnand.m4: Import.
3992 * gnulib/import/m4/isnanl.m4: Import.
3993 * gnulib/import/m4/math_h.m4: Import.
3994 * gnulib/import/math.c: Import.
3995 * gnulib/import/math.in.h: Import.
3996
4353c9e6
JK
39972013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3998
3999 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4000 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4001 signature_INTEL_edx comparisons.
4002
e3e06db3
DE
40032013-06-20 Doug Evans <dje@google.com>
4004
6ac97d4c
DE
4005 symtab/15652
4006 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4007 All callers updated.
4008 (open_dwp_file): If we can't find the dwp file, search the basename
4009 in debug-file-directory.
4010
93417882
DE
4011 * dwarf2read.c (struct dwp_file): Fix comment.
4012 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4013
e3e06db3
DE
4014 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4015 better.
4016
0878d0fa
YQ
40172013-06-20 Yao Qi <yao@codesourcery.com>
4018
4019 * breakpoint.c (create_breakpoint): Fix code indentation.
4020
023fa29b
YQ
40212013-06-20 Yao Qi <yao@codesourcery.com>
4022
4023 * breakpoint.c (create_breakpoints_sal_default): Remove
4024 parameter 'lsal'. Update declaration.
4025 (bkpt_create_breakpoints_sal): Caller update.
4026 (tracepoint_create_breakpoints_sal): Likewise.
4027
c898adb7
YQ
40282013-06-20 Pedro Alves <pedro@codesourcery.com>
4029 Yao Qi <yao@codesourcery.com>
4030
4031 * NEWS: Mention the new option '--skip-unavailable' of command
4032 -data-list-register-values.
4033 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4034 --skip-unavailable option. Adjust to use output_register.
4035 (output_register): Add new 'skip_unavailable' parameter.
4036 Handle it.
4037
4d157a3d
MF
40382013-06-19 Mike Frysinger <vapier@gentoo.org>
4039
4040 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4041 common/i386-gcc-cpuid.h.
4042 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4043 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4044 Copy the latest version from upstream gcc.
4045 * common/linux-btrace.c: Include i386-cpuid.h.
4046 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4047 call to i386_cpuid.
4048 (cpu_supports_btrace): Likewise.
4049 * go32-nat.c: Include i386-cpuid.h.
4050 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4051
1ce4db08
DE
40522013-06-19 Doug Evans <dje@google.com>
4053
4054 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4055 (get_section_index): Ditto.
4056
0e4777df
TT
40572013-06-19 Tom Tromey <tromey@redhat.com>
4058
4059 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4060 "dprintf" help.
4061
3190f0c6
DE
40622013-06-18 Doug Evans <dje@google.com>
4063
4064 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4065 before using it.
4066 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4067 Move test of cu_index closer to use. Print complaint if cu_index
4068 is bad.
4069
8b89a20a
JB
40702013-06-18 Joel Brobecker <brobecker@adacore.com>
4071
4072 * machoread.c (oso_vector): Delete this global.
4073 (macho_register_oso): Add new parameter "oso_vector_ptr".
4074 Use it instead of the "oso_vector" global.
4075 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4076 (macho_symfile_read): Use a local oso_vector, to be free'ed
4077 at the end of this function, in place of the old "oso_vector"
4078 global. Update various function calls accordingly. Use one
4079 single cleanup chain for the entire function.
4080
59b0c7c1
JB
40812013-06-18 Joel Brobecker <brobecker@adacore.com>
4082
937c708c 4083 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4084 DWARF2_PER_OBJFILE by uses of DATA instead.
4085
427cd150
TT
40862013-06-18 Tom Tromey <tromey@redhat.com>
4087
4088 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4089 argument.
4090 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4091 Special case signals other than GDB_SIGNAL_TRAP.
4092 (explains_signal_watchpoint): New function.
4093 (base_breakpoint_explains_signal): Add 'sig' argument.
4094 (initialize_breakpoint_ops): Set 'explains_signal' method for
4095 watchpoints.
4096 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4097 signal argument.
4098 (bpstat_explains_signal): Likewise.
4099 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4100
2d57700b
TT
41012013-06-18 Tom Tromey <tromey@redhat.com>
4102
4103 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4104
ac475191
TT
41052013-06-18 Tom Tromey <tromey@redhat.com>
4106
4107 * python/python.c (finish_python_initialization): Decref
4108 'pythondir' on failure path as well.
4109
5bd1ef56
TT
41102013-06-18 Tom Tromey <tromey@redhat.com>
4111
4112 PR symtab/15391:
4113 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4114 after taking bits_to_skip into account. Sign extend byte_offset.
4115 * utils.h (gdb_sign_extend): Declare.
4116 * utils.c (gdb_sign_extend): New function.
4117
92fac807
JK
41182013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4119
4120 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4121
2d503272
PM
41222013-06-17 Pierre Muller <muller@sourceware.org>
4123
4124 * corelow.c (core_open): Print GDB signal name instead of target
4125 signal number.
4126
6916fd98
MF
41272013-06-17 Mike Frysinger <vapier@gentoo.org>
4128
4129 * .gitignore: Add /gcore.
4130
9c02c129
DE
41312013-06-13 Doug Evans <dje@google.com>
4132
4133 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4134 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4135
d0548fa2
PM
41362013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4137
4138 * stack.c (backtrace_command_1): Fix indentation.
4139
22128028
JB
41402013-06-11 Joel Brobecker <brobecker@adacore.com>
4141
4142 * window-nat.c (thread_rec): Add missing empty line after
4143 local variable declaration.
4144
2ed3e009
JB
41452013-06-11 Joel Brobecker <brobecker@adacore.com>
4146
4147 * windows-nat.c (thread_rec): Revert format used to print
4148 error code returned by SuspendThread from %d back to %u.
4149
0c3d84be
JB
41502013-06-11 Joel Brobecker <brobecker@adacore.com>
4151
4152 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4153 ID in debug trace.
4154 (get_windows_debug_event): Likewise, for all debug traces.
4155
80e88e1a
JB
41562013-06-11 Joel Brobecker <brobecker@adacore.com>
4157
4158 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4159 warning message.
4160
1edebdbf
YQ
41612013-06-08 Pedro Alves <pedro@codesourcery.com>
4162 Yao Qi <yao@codesourcery.com>
4163
4164 * mi/mi-main.c (get_register): Remove declaration.
4165 (output_register): Declare.
4166 (mi_cmd_data_list_register_values): Remove local variable
4167 'tuple_cleanup'. Move some code into output_register.
4168 (get_register): Renamed to ...
4169 (output_register): ... this. Output the register's
4170 "number" ui_out tuple here.
4171
47d48711
PA
41722013-06-07 Pedro Alves <palves@redhat.com>
4173
4174 * darwin-nat.c: Fix formating in copyright header.
4175 * darwin-nat.h: Likewise.
4176 * gnu-nat.c: Likewise.
4177 * machoread.c: Likewise.
4178
3aee8918
PA
41792013-06-07 Pedro Alves <palves@redhat.com>
4180
5f2b57b5 4181 PR server/14823
3aee8918
PA
4182 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4183 static. Output a global target description pointer.
4184 (init_registers_${name}): Adjust to initialize a
4185 target description structure.
4186
fe8400b4
WN
41872013-06-07 Will Newton <will.newton@linaro.org>
4188
4189 * printcmd.c (build_address_symbolic): Call
4190 gdbarch_addr_bits_remove for text minimal symbols.
4191
20df6206
WN
41922013-06-07 Will Newton <will.newton@linaro.org>
4193
4194 * MAINTAINERS: Add myself to Write After Approval.
4195
aef525cb
YQ
41962013-06-07 Yao Qi <yao@codesourcery.com>
4197
4198 * tracepoint.c (start_tracing): Move code to ...
4199 (trace_reset_local_state): ... here. New.
4200 (disconnect_tracing): Don't call set_current_traceframe,
4201 set_tracepoint_num, and set_traceframe_context. Call
4202 trace_reset_local_state instead.
4203 (tfile_close): Call trace_reset_local_state.
4204 * ctf.c (ctf_close): Likewise.
4205 * remote.c (remote_close): Likewise.
4206 * tracepoint.h (trace_reset_local_state): Declare.
4207
d2415c6c
DE
42082013-06-06 Doug Evans <dje@google.com>
4209
4210 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4211 and fix header docs.
4212
69fc87c2
DE
42132013-06-05 Doug Evans <dje@google.com>
4214 Keith Seitz <keiths@redhat.com>
4215
4216 PR 15519
4217 * cp-namespace.c (find_symbol_in_baseclass): Call
4218 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4219 Check result of call to lookup_symbol_static.
4220 Call lookup_static_symbol_aux unconditionally.
4221 Call check_typedef on base types before accessing them.
4222 (cp_lookup_nested_symbol): Fix comment.
4223
a513d1e8
LM
42242013-06-05 Luis Machado <lgustavo@codesourcery.com>
4225
4226 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4227 minimal symbols pointing to function descriptors.
4228
351a6f02
TT
42292013-06-05 Tom Tromey <tromey@redhat.com>
4230
4231 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4232
5e1b953b 42332013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4234 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4235
4236 * remote.c (remote_wait_as): Restore signal handler before returning
4237 when GDB gets a notification.
4238
f9e14852
GB
42392013-06-04 Gary Benson <gbenson@redhat.com>
4240
8445cbf1 4241 PR 2328
f9e14852
GB
4242 * breakpoint.h (handle_solib_event): Moved function declaration
4243 to solib.h.
4244 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4245 (bpstat_stop_status): Pass new argument to handle_solib_event.
4246 * solib.h (update_solib_breakpoints): New function declaration.
4247 (handle_solib_event): Moved function declaration from
4248 breakpoint.h.
4249 * solib.c (update_solib_breakpoints): New function.
4250 (handle_solib_event): Moved function from breakpoint.c.
4251 Updated to call solib_ops->handle_event if not NULL.
4252 * solist.h (target_so_ops): New fields "update_breakpoints" and
4253 "handle_event".
4254 * infrun.c (set_stop_on_solib_events): New function.
4255 (_initialize_infrun): Use the above for "set
4256 stop-on-solib-events".
4257 (handle_inferior_event): Pass new argument to handle_solib_event.
4258 * solib-svr4.c (probe.h): New include.
4259 (svr4_free_library_list): New forward declaration.
4260 (probe_action): New enum.
4261 (probe_info): New struct.
4262 (probe_info): New static variable.
4263 (NUM_PROBES): New definition.
4264 (svr4_info): New fields "using_xfer", "probes_table" and
4265 "solib_list".
4266 (free_probes_table): New function.
4267 (free_solib_list): New function.
4268 (svr4_pspace_data_cleanup): Free probes table and solib list.
4269 (svr4_copy_library_list): New function.
4270 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4271 (svr4_read_so_list): New parameter "prev_lm".
4272 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4273 (svr4_current_sos): New function.
4274 (probe_and_action): New struct.
4275 (hash_probe_and_action): New function.
4276 (equal_probe_and_action): Likewise.
4277 (register_solib_event_probe): Likewise.
4278 (solib_event_probe_at): Likewise.
4279 (solib_event_probe_action): Likewise.
4280 (solist_update_full): Likewise.
4281 (solist_update_incremental): Likewise.
4282 (disable_probes_interface_cleanup): Likewise.
4283 (svr4_handle_solib_event): Likewise.
4284 (svr4_update_solib_event_breakpoint): Likewise.
4285 (svr4_update_solib_event_breakpoints): Likewise.
4286 (svr4_create_solib_event_breakpoints): Likewise.
4287 (enable_break): Free probes table before creating breakpoints.
4288 Use svr4_create_solib_event_breakpoints to create breakpoints.
4289 (svr4_solib_create_inferior_hook): Free the solib list.
4290 (_initialize_svr4_solib): Initialise
4291 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4292
ced63ec0
GB
42932013-06-04 Gary Benson <gbenson@redhat.com>
4294
4295 * target.h (target_ops): New field
4296 "to_augmented_libraries_svr4_read".
4297 (target_augmented_libraries_svr4_read): New macro.
4298 * target.c (update_current_target): Handle
4299 to_augmented_libraries_svr4_read.
4300 * remote.c (remote_state): New field
4301 "augmented_libraries_svr4_read".
4302 (remote_augmented_libraries_svr4_read_feature): New function.
4303 (remote_protocol_features): Add entry for
4304 "augmented-libraries-svr4-read".
4305 (remote_augmented_libraries_svr4_read): New function.
4306 (init_remote_ops): Initialize
4307 remote_ops.to_augmented_libraries_svr4_read.
4308
7f91dbec
GB
43092013-06-04 Gary Benson <gbenson@redhat.com>
4310
4311 * NEWS: Update.
4312
607ece04
GB
43132013-06-04 Gary Benson <gbenson@redhat.com>
4314
4315 * objfiles.h (inhibit_section_map_updates): New function
4316 declaration.
4317 (resume_section_map_updates): Likewise.
4318 (resume_section_map_updates_cleanup): Likewise.
4319 * objfiles.c (objfile_pspace_info): Removed field
4320 "objfiles_changed_p". New fields "new_objfiles_available",
4321 "section_map_dirty" and "inhibit_updates".
4322 (allocate_objfile): Set new_objfiles_available.
4323 (free_objfile): Set section_map_dirty.
4324 (objfile_relocate1): Likewise.
4325 (in_plt_section): Likewise.
4326 (find_pc_section): Update the conditions under which the
4327 section map will be updated.
4328 (inhibit_section_map_updates): New function.
4329 (resume_section_map_updates): Likewise.
4330 (resume_section_map_updates_cleanup): Likewise.
4331
9ee6a5ac
GB
43322013-06-04 Gary Benson <gbenson@redhat.com>
4333
4334 * probe.h (get_probe_argument_count): New declaration.
4335 (evaluate_probe_argument): Likewise.
4336 * probe.c (get_probe_argument_count): New function.
4337 (evaluate_probe_argument): Likewise.
4338 (probe_safe_evaluate_at_pc): Use the above new functions.
4339
845d4708
AM
43402013-06-04 Alan Modra <amodra@gmail.com>
4341
4342 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4343 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4344 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4345 target mem reads on optional insns.
4346 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4347 ppc_insns_match_pattern calls.
4348 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4349 Add match for power7 thread safety insns, and new order of
4350 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4351 invocation in comment, and update rest of comment.
4352 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4353 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4354 (ppc64_standard_linkage2_target): Update insn offsets.
4355 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4356 stubs first. Update calls.
4357
404e278f
YQ
43582013-06-04 Yao Qi <yao@codesourcery.com>
4359
4360 * solib.c (solib_find): Don't need dir separator if path has
4361 drive spec.
4362
f6aea118
JB
43632013-06-03 Joel Brobecker <brobecker@adacore.com>
4364
4365 Revert (indirectly causes a SIGSEGV):
4366 * machoread.c (macho_symfile_read): Assign first cleanup to
4367 'back_to'.
4368
87967e27
YQ
43692013-06-03 Yao Qi <yao@codesourcery.com>
4370
4371 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4372 mi-parse.c. Make them static.
4373 (mi_all_values): Likewise.
4374 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4375 mi_parse_print_values. Make it external.
4376 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4377 Remove the declarations.
4378 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4379 * mi/mi-parse.h (mi_parse_print_values): Declare.
4380 * mi/mi-cmd-stack.c: Include mi-parse.h.
4381 (parse_print_values): Remove
4382 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4383 of parse_print_values.
4384 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4385
3ca73e0c
YQ
43862013-05-31 Pedro Alves <pedro@codesourcery.com>
4387 Yao Qi <yao@codesourcery.com>
4388
4389 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4390 (encode_actions): Move code to ...
4391 (all_tracepoint_actions_and_cleanup): ... here. New.
4392 (trace_dump_command): Likewise.
4393
4e993a19
TT
43942013-05-30 Tom Tromey <tromey@redhat.com>
4395
4396 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4397
e3b76b4f
TT
43982013-05-30 Tom Tromey <tromey@redhat.com>
4399
4400 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4401 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4402 'old_chain' argument. Add 'parser_result' argument.
4403 (gdb_xml_create_parser_and_cleanup): Remove old version.
4404 (gdb_xml_parse_quick): Update.
4405 (xml_process_xincludes): Update.
4406 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4407 declare.
4408
db26349c
TT
44092013-05-30 Tom Tromey <tromey@redhat.com>
4410
4411 * probe.c (collect_probes): Check arguments for NULL before
4412 calling compile_rx_or_error.
4413 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4414 Remove NULL return.
4415
77f9e713
TT
44162013-05-30 Tom Tromey <tromey@redhat.com>
4417
4418 * infrun.c (adjust_pc_after_break): Introduce an outer null
4419 cleanup.
4420
45475de7
TT
44212013-05-30 Tom Tromey <tromey@redhat.com>
4422
4423 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4424
ac5007fd
TT
44252013-05-30 Tom Tromey <tromey@redhat.com>
4426
4427 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4428 for 'old_chain'. Do not check 'head' before processing
4429 cleanups.
4430
cd82eddc
TT
44312013-05-30 Tom Tromey <tromey@redhat.com>
4432
4433 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4434 "cleanup_tuple".
4435
57cee33a
TT
44362013-05-30 Tom Tromey <tromey@redhat.com>
4437
4438 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4439 inner scope. Unconditionally call do_cleanups.
4440
795d915c
TT
44412013-05-30 Tom Tromey <tromey@redhat.com>
4442
4443 * source.c (find_and_open_source): Call do_cleanups.
4444
1fc3cf4a
TT
44452013-05-30 Tom Tromey <tromey@redhat.com>
4446
4447 * linux-thread-db.c (thread_db_load_search): Unconditionally
4448 call do_cleanups.
4449
e35ac9bf
TT
44502013-05-30 Tom Tromey <tromey@redhat.com>
4451
4452 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4453 for 'cleanup'; instead use a later one.
4454
f3300387
TT
44552013-05-30 Tom Tromey <tromey@redhat.com>
4456
4457 * python/py-breakpoint.c (bppy_get_commands): Use
4458 explicit, unconditional return.
4459 * python/py-frame.c (frapy_read_var): Likewise.
4460 * python/python.c (gdbpy_decode_line): Likewise.
4461
c27e16e3
TT
44622013-05-30 Tom Tromey <tromey@redhat.com>
4463
4464 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4465 do_cleanups on all return paths.
4466
5ae85e44
TT
44672013-05-30 Tom Tromey <tromey@redhat.com>
4468
4469 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4470
73b8d9da
TT
44712013-05-30 Tom Tromey <tromey@redhat.com>
4472
4473 * stabsread.c (read_struct_type): Call do_cleanups along
4474 all return paths.
4475
7d266584
MR
44762013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4477
4478 * mips-linux-tdep.c: Adjust formatting throughout.
4479
0f900f54
TT
44802013-05-30 Tom Tromey <tromey@redhat.com>
4481
4482 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4483 along all return paths.
4484
a991ac28
TT
44852013-05-30 Tom Tromey <tromey@redhat.com>
4486
4487 * symfile.c (find_separate_debug_file): Call do_cleanups
4488 along all return paths.
4489
1abaf042
TT
44902013-05-30 Tom Tromey <tromey@redhat.com>
4491
4492 * symtab.c (search_symbols): Introduce a null cleanup for
4493 'retval_chain'.
4494
edefe1da
TT
44952013-05-30 Tom Tromey <tromey@redhat.com>
4496
4497 * python/py-value.c (valpy_binop): Call do_cleanups before
4498 exiting loop.
4499
54f72dcc
TT
45002013-05-30 Tom Tromey <tromey@redhat.com>
4501
4502 * python/py-prettyprint.c (print_children): Remove extra
4503 do_cleanups call.
4504
af1c6971
TT
45052013-05-30 Tom Tromey <tromey@redhat.com>
4506
4507 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4508 all return paths.
4509
b862ce75
TT
45102013-05-30 Tom Tromey <tromey@redhat.com>
4511
4512 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4513 along all return paths.
4514
e12fefc8
TT
45152013-05-30 Tom Tromey <tromey@redhat.com>
4516
4517 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4518 call do_cleanups.
4519
4867f990
TT
45202013-05-30 Tom Tromey <tromey@redhat.com>
4521
4522 * varobj.c (c_value_of_root): Call do_cleanups along all
4523 return paths.
4524
4fd2d6af
TT
45252013-05-30 Tom Tromey <tromey@redhat.com>
4526
4527 * tracepoint.c (trace_dump_command): Unconditionally call
4528 do_cleanups.
4529
752eb8b4
TT
45302013-05-30 Tom Tromey <tromey@redhat.com>
4531
4532 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4533 do_cleanups earlier.
4534
e42d0aa5
TT
45352013-05-30 Tom Tromey <tromey@redhat.com>
4536
4537 * machoread.c (macho_symfile_read): Assign first cleanup to
4538 'back_to'.
4539
4bbc010a
TT
45402013-05-30 Tom Tromey <tromey@redhat.com>
4541
4542 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4543
b9635925
TT
45442013-05-30 Tom Tromey <tromey@redhat.com>
4545
4546 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4547
25f43500
TT
45482013-05-30 Tom Tromey <tromey@redhat.com>
4549
4550 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4551 call discard_cleanups.
4552 (inf_ptrace_attach): Likewise.
4553
d6a2e54a
TT
45542013-05-30 Tom Tromey <tromey@redhat.com>
4555
4556 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4557 return paths.
4558 (mips_initialize): Likewise.
4559 (common_open): Call do_cleanups.
4560
48be7c1b
TT
45612013-05-30 Tom Tromey <tromey@redhat.com>
4562
4563 * utils.c (internal_vproblem): Call do_cleanups.
4564
e61727ab
TT
45652013-05-30 Tom Tromey <tromey@redhat.com>
4566
4567 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4568
b81b921f
TT
45692013-05-30 Tom Tromey <tromey@redhat.com>
4570
4571 * cli/cli-script.c (setup_user_args): Don't return after error.
4572
fe48dfb1
TT
45732013-05-30 Tom Tromey <tromey@redhat.com>
4574
4575 * somread.c (som_symtab_read): Call do_cleanups.
4576
27833de7
TT
45772013-05-30 Tom Tromey <tromey@redhat.com>
4578
4579 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4580
5b3fca71
TT
45812013-05-30 Tom Tromey <tromey@redhat.com>
4582
4583 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4584 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4585 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4586 * source.c (show_substitute_path_command): Call do_cleanups.
4587 (unset_substitute_path_command, set_substitute_path_command):
4588 Likewise.
4589 * symfile.c (load_command): Call do_cleanups.
4590
af83e3f8
TT
45912013-05-30 Tom Tromey <tromey@redhat.com>
4592
4593 * contrib/cleanup_check.py: New file.
4594 * contrib/gcc-with-excheck: Add option parsing.
4595
564eac42
JB
45962013-05-30 Joel Brobecker <brobecker@adacore.com>
4597
4598 * windows-nat.c (windows_delete_thread): Add missing space
4599 in cast expression.
4600
47902076
HAQ
46012013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4602
4603 * inferior.c (top level): Include tilde.h.
4604 (add_inferior_command): Call tilde_expand on the value of 'exec'
4605 argument.
4606
23da373a
YQ
46072013-05-30 Pedro Alves <pedro@codesourcery.com>
4608 Yao Qi <yao@codesourcery.com>
4609
4610 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4611 Caller update.
4612 (encode_actions): Likewise.
4613 * remote.c (remote_download_tracepoint): Caller update.
4614 * tracepoint.h (encode_actions): Update declaration.
4615
a6e6f791
PA
46162013-05-30 Pedro Alves <palves@redhat.com>
4617
4618 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4619 pointer.
4620
36d25514
YQ
46212013-05-30 Yao Qi <yao@codesourcery.com>
4622
4623 * remote.c (remote_check_symbols): Remove unused parameter
4624 'objfile'.
4625 Declaration update.
4626 (remote_start_remote, remote_new_objfile): Caller update.
4627
62a813cc
YQ
46282013-05-30 Yao Qi <yao@codesourcery.com>
4629
4630 * mi/mi-cmds.c (mi_cmds): Define MI command
4631 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4632 DEF_MI_CMD_CLI.
4633
28439a30
PA
46342013-05-29 Pedro Alves <palves@redhat.com>
4635
4636 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4637 (remote_insert_watchpoint, remote_remove_watchpoint)
4638 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4639 (remote_verify_memory, compare_sections_command)
4640 (remote_search_memory): Set the general process/thread on the
4641 remote side.
4642
6ac1c082
PA
46432013-05-29 Pedro Alves <palves@redhat.com>
4644
4645 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4646 (_initialize_aarch64_tdep): Don't call
4647 initialize_tdesc_aarch64_without_fpu.
4648 * features/Makefile (WHICH): Remove reference to
4649 aarch64-without-fpu.
4650 * features/aarch64-without-fpu.c: Delete file.
4651 * regformats/aarch64-without-fpu.dat: Delete file.
4652
a73e3634
YQ
46532013-05-28 Yao Qi <yao@codesourcery.com>
4654
4655 * tracepoint.c (stringify_collection_list): Remove parameter
4656 'string'.
4657 (encode_actions): Caller update. Remove local variables.
4658
c0ea94eb
YQ
46592013-05-24 Yao Qi <yao@codesourcery.com>
4660
4661 * tracepoint.c (TFILE_PID): Remove.
4662 (tfile_open): Don't add thread and inferior.
4663 (tfile_close): Don't set 'inferior_ptid'. Don't call
4664 exit_inferior_silent.
4665 (tfile_thread_alive): Remove.
4666 (init_tfile_ops): Don't set field 'to_thread_alive' of
4667 tfile_ops.
4668
20d7f211
DE
46692013-05-23 Doug Evans <dje@google.com>
4670
4671 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4672
8658d16d
PA
46732013-05-23 Pedro Alves <palves@redhat.com>
4674
4675 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4676 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4677 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4678 Only define if HAVE_SOCKETS is defined.
4679 * configure.ac: Check for sys/socket.h.
4680 * config.in, configure: Regenerate.
4681
21aa081e
PA
46822013-05-23 Pedro Alves <palves@redhat.com>
4683
4684 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4685 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4686 printing uint32_t variables.
4687
c2d6af84
PA
46882013-05-23 Pedro Alves <palves@redhat.com>
4689
4690 * NEWS: Mention GDBserver range stepping support.
4691
c1e36e3e
PA
46922013-05-23 Yao Qi <yao@codesourcery.com>
4693 Pedro Alves <palves@redhat.com>
4694
4695 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4696 field.
4697 * infcmd.c (step_once, until_next_command): Enable range stepping.
4698 * infrun.c (displaced_step_prepare): Disable range stepping.
4699 (resume): Disable range stepping if stepping over a breakpoint or
4700 we have software watchpoints. If range stepping is enabled,
4701 assert the thread is in the stepping range.
4702 (clear_proceed_status_thread): Clear may_range_step.
4703 (handle_inferior_event): Disable range stepping as soon as we know
4704 the thread that hit the event. Re-enable it whenever we're going
4705 to step with a step range.
4706 * remote.c (struct vCont_action_support) <r>: New field.
4707 (use_range_stepping): New global.
4708 (remote_vcont_probe): Handle 'r' action.
4709 (append_resumption): Append an 'r' action if the thread may range
4710 step.
4711 (show_range_stepping): New function.
4712 (set_range_stepping): New function.
4713 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4714 'set range-stepping' and 'show range-stepping' commands.
4715 * NEWS: Mention range stepping, the new vCont;r action, and the
4716 new "set/show range-stepping" commands.
4717
d458bd84
PA
47182013-05-23 Yao Qi <yao@codesourcery.com>
4719 Pedro Alves <palves@redhat.com>
4720
4721 * remote.c (struct vCont_action_support): New struct.
4722 (struct remote_state) <support_vCont_t>: Remove field.
4723 <vCont_actions_support>: New field.
4724 (remote_vcont_probe, remote_stop_ns): Update.
4725
ce4c476a
PA
47262013-05-23 Yao Qi <yao@codesourcery.com>
4727 Pedro Alves <palves@redhat.com>
4728
4729 * gdbthread.h (pc_in_thread_step_range): New declaration.
4730 * thread.c (pc_in_thread_step_range): New function.
4731 * infrun.c (handle_inferior_event): Use it.
4732
ce70887a
JB
47332013-05-23 Joel Brobecker <brobecker@adacore.com>
4734
4735 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4736 of sprintf.
4737
55b87a52
KS
47382013-05-22 Keith Seitz <keiths@redhat.com>
4739
4740 * ada-lang.c (is_known_support_routine): Add explicit free of
4741 'func_name' from find_frame_funname.
4742 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4743 for func_name from find_frame_funname.
4744 * python/py-frame.c (frapy_name): Add explicit free of
4745 'name' from find_frame_funname.
4746 * stack.c (find_frame_funname): Add comment explaining that
4747 funcp must be freed by the caller.
4748 Return copy of symbol names instead of pointers.
4749 (print_frame): Add a cleanup for 'funname' from
4750 find_frame_funname.
4751 * stack.h (find_frame_funname): Remove "const" from
4752 'funname' parameter.
4753
5f2e6b00
TT
47542013-05-22 Tom Tromey <tromey@redhat.com>
4755
4756 PR c++/15401:
4757 * c-valprint.c (c_value_print): Use value_addr for
4758 references. Convert back to reference type with value_ref.
4759
d85c4847
EZ
47602013-05-22 Eli Zaretskii <eliz@gnu.org>
4761
4762 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4763 unloaded DLL, it will be done by handle_solib_event. See
4764 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4765 details.
4766
54eb231c
PM
47672013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4768
4769 * ui-out.c: Create typedef ui_out_level_p and define vector
4770 operations for that type.
4771 (struct ui_out): Use a vector instead of an array.
4772 (current_level): Return level from a vector.
4773 (push_level): Create a level in a vector.
4774 (pop_level): Delete a level in a vector.
4775 (ui_out_new): Create initial level zero level, and store in a
4776 vector.
4777 (ui_out_destroy): Add vector cleanup.
4778
ac90359c
PA
47792013-05-22 Pedro Alves <palves@redhat.com>
4780
4781 * python/python-internal.h (gdb_Py_DECREF): Tag with
4782 "ARI: editCase function".
4783
6dcc1893
PP
47842013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4785
4786 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4787
c8c735b9
PA
47882013-05-21 Pedro Alves <palves@redhat.com>
4789
4790 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4791 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4792 * python/py-utils.c (py_decref): Don't check for NULL before
4793 calling Py_DECREF.
4794
1915daeb
PA
47952013-05-21 Pedro Alves <palves@redhat.com>
4796
4797 * python/py-utils.c (py_decref): Remove extra braces.
4798 (gdb_pymodule_addobject): Remove extra braces.
4799 * python-internal.h (gdb_Py_DECREF): New static inline function.
4800 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4801
bd9673a4
PW
48022013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4803
4804 * breakpoints.c (detach_breakpoints): Do not
4805 detach breakpoints locations with loc_type bp_loc_other.
4806
ff6009d0
JK
48072013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4808
4809 Workaround Python 2.6.
4810 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4811 a block.
4812
3641da11
JK
48132013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4814
4815 Code cleanup: constification.
4816 * solib.c (solib_ops): Make return type and ops variable type const.
4817 (set_solib_ops): Make the new_ops parameter and ops variable const.
4818 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4819 (solib_add, solib_keep_data_in_core, clear_solib)
4820 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4821 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4822 const.
4823 * solib.h (set_solib_ops): Make the new_ops parameter const.
4824
776af39e
JB
48252013-05-21 Joel Brobecker <brobecker@adacore.com>
4826
4827 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4828 variable.
4829 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4830 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4831 (SYSTEM_GDBINIT_FILES): New variables.
4832 (all): Add stamp-system-gdbinit.
4833 (stamp-system-gdbinit): New rule.
4834 (clean-system-gdbinit, install-system-gdbinit)
4835 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4836 (install-only): Add dependency on install-system-gdbinit.
4837 (uninstall): Add dependency on uninstall-system-gdbinit.
4838 (clean): Add dependency on clean-system-gdbinit.
4839 * system-gdbinit/elinos.py: New file.
4840 * system-gdbinit/wrs-linux.py: New file.
4841
1509e573
JB
48422013-05-21 Joel Brobecker <brobecker@adacore.com>
4843
4844 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4845
c5867ab6
HZ
48462013-05-21 Hui Zhu <hui@codesourcery.com>
4847
4848 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4849 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4850 * mi/mi-cmd-break.c (ctype.h): New include.
4851 (gdb_obstack.h): New include.
4852 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4853 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4854 (mi_cmd_dprintf_insert): New.
4855 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4856 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4857
7d38e38f
TT
48582013-05-20 Tom Tromey <tromey@redhat.com>
4859
4860 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4861
97b77b39
TT
48622013-05-20 Tom Tromey <tromey@redhat.com>
4863
4864 * python/py-value.c (valpy_get_dynamic_type): Simplify
4865 dynamic_type assignment. Use Py_XINCREF.
4866
53e66479
TT
48672013-05-20 Tom Tromey <tromey@redhat.com>
4868
4869 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4870
dcf87832
TT
48712013-05-20 Tom Tromey <tromey@redhat.com>
4872
4873 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4874 (gdbpy_selected_frame): Move object-construction code
4875 out of TRY_CATCH.
4876
aa36459a
TT
48772013-05-20 Tom Tromey <tromey@redhat.com>
4878
4879 * python/py-arch.c (gdbpy_initialize_arch): Use
4880 gdb_pymodule_addobject.
4881 * python/py-block.c (gdbpy_initialize_blocks): Use
4882 gdb_pymodule_addobject.
4883 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4884 gdb_pymodule_addobject.
4885 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4886 gdb_pymodule_addobject.
4887 * python/py-event.c (gdbpy_initialize_event_generic): Use
4888 gdb_pymodule_addobject.
4889 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4890 gdb_pymodule_addobject.
4891 * python/py-evts.c (add_new_registry): Use
4892 gdb_pymodule_addobject.
4893 (gdbpy_initialize_py_events): Likewise.
4894 * python/py-finishbreakpoint.c
4895 (gdbpy_initialize_finishbreakpoints): Use
4896 gdb_pymodule_addobject.
4897 * python/py-frame.c (gdbpy_initialize_frames): Use
4898 gdb_pymodule_addobject.
4899 * python/py-function.c (gdbpy_initialize_functions): Use
4900 gdb_pymodule_addobject.
4901 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4902 gdb_pymodule_addobject.
4903 * python/py-infthread.c (gdbpy_initialize_thread): Use
4904 gdb_pymodule_addobject.
4905 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4906 gdb_pymodule_addobject.
4907 * python/py-param.c (gdbpy_initialize_parameters): Use
4908 gdb_pymodule_addobject.
4909 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4910 gdb_pymodule_addobject.
4911 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4912 gdb_pymodule_addobject.
4913 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4914 gdb_pymodule_addobject.
4915 * python/py-type.c (gdbpy_initialize_types): Use
4916 gdb_pymodule_addobject.
4917 * python/py-utils.c (gdb_pymodule_addobject): New function.
4918 * python/py-value.c (gdbpy_initialize_values): Use
4919 gdb_pymodule_addobject.
4920 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4921 * python/python.c (_initialize_python): Use
4922 gdb_pymodule_addobject.
4923
3d4a3c3e
TT
49242013-05-20 Tom Tromey <tromey@redhat.com>
4925
4926 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4927 * python/py-param.c (get_set_value, get_show_value): Use
4928 explicit decrefs.
4929 * python/python.c (start_type_printers, apply_type_printers):
4930 Use explicit decrefs.
4931
72ff8829
TT
49322013-05-20 Tom Tromey <tromey@redhat.com>
4933
4934 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4935 incref the module.
4936
02146ba5
TT
49372013-05-20 Tom Tromey <tromey@redhat.com>
4938
4939 * python/python.c (gdbpy_run_events): Decref the result
4940 of PyObject_CallObject.
4941
33ee792f
TT
49422013-05-20 Tom Tromey <tromey@redhat.com>
4943
4944 * python/py-symtab.c (set_sal): Use
4945 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4946 (symtab_and_line_to_sal_object): Update.
4947
fcb49fc8
TT
49482013-05-20 Tom Tromey <tromey@redhat.com>
4949
4950 * python/py-param.c (compute_enum_values): Decref 'item'.
4951
0646da15
TT
49522013-05-20 Tom Tromey <tromey@redhat.com>
4953
4954 * mi/mi-main.c: Include python-internal.h.
4955 (mi_cmd_list_features): Check gdb_python_initialized.
4956 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4957 (python_inferior_exit, python_new_objfile, add_thread_object)
4958 (delete_thread_object, py_free_inferior): Check
4959 gdb_python_initialized.
4960 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4961 gdb_python_initialized.
4962 * python/py-type.c (save_objfile_types): Check
4963 gdb_python_initialized.
4964 * python/python-internal.h (gdb_python_initialized): Declare.
4965 * python/python.c (ensure_python_env): Throw exception if
4966 Python not initialized.
4967 (before_prompt_hook, source_python_script_for_objfile)
4968 (start_type_printers, apply_type_printers,
4969 free_type_printers): Check gdb_python_initialized.
4970 * varobj.c (varobj_get_display_hint)
4971 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4972 (install_new_value_visualizer, varobj_set_visualizer)
4973 (value_get_print_value): Check gdb_python_initialized.
4974
999633ed
TT
49752013-05-20 Tom Tromey <tromey@redhat.com>
4976
4977 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4978 Check errors.
4979 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4980 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4981 Check errors.
4982 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4983 Check errors.
4984 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4985 Check errors.
4986 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4987 Check errors.
4988 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4989 init function to return 'int'.
4990 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4991 Return 'int'. Check errors.
4992 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4993 Check errors.
4994 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4995 Return 'int'. Check errors.
4996 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4997 Check errors.
4998 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4999 Check errors.
5000 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5001 Check errors.
5002 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5003 Check errors.
5004 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5005 Check errors.
5006 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5007 Check errors.
5008 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5009 Check errors.
5010 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5011 Check errors.
5012 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5013 Check errors.
5014 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5015 Check errors.
5016 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5017 Check errors.
5018 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5019 Check errors.
5020 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5021 Check errors.
5022 * python/python-internal.h (gdbpy_initialize_auto_load,
5023 gdbpy_initialize_values, gdbpy_initialize_frames,
5024 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5025 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5026 gdbpy_initialize_blocks, gdbpy_initialize_types,
5027 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5028 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5029 gdbpy_initialize_finishbreakpoints,
5030 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5031 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5032 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5033 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5034 gdbpy_initialize_signal_event,
5035 gdbpy_initialize_breakpoint_event,
5036 gdbpy_initialize_continue_event,
5037 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5038 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5039 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5040 * python/python.c (gdb_python_initialized): New global.
5041 (gdbpy_initialize_events): Return 'int'. Check errors.
5042 (_initialize_python): Check errors. Set
5043 gdb_python_initialized.
5044
18868860
TT
50452013-05-20 Tom Tromey <tromey@redhat.com>
5046
5047 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5048 Decref the reslut of PyObject_CallMethod.
5049
9f4ff0c2
TT
50502013-05-20 Tom Tromey <tromey@redhat.com>
5051
5052 * python/py-event.c (gdbpy_initialize_event_generic): Return
5053 early if PyType_Ready fails.
5054
0d3a2e8a
TT
50552013-05-20 Tom Tromey <tromey@redhat.com>
5056
5057 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5058 as 'default' in the switch.
5059
b86af38a
TT
50602013-05-20 Tom Tromey <tromey@redhat.com>
5061
5062 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5063 get_addr_from_python calls out of TRY_CATCH.
5064 (infpy_write_memory, infpy_search_memory): Likewise.
5065 * python/py-utils.c (get_addr_from_python): Return negative
5066 value on error. Use TRY_CATCH.
5067 * python/python-internal.h (get_addr_from_python): Use
5068 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5069
c127ec58
TT
50702013-05-20 Tom Tromey <tromey@redhat.com>
5071
5072 * python/py-event.c (evpy_emit_event): Decref the
5073 result of PyObject_CallFunctionObjArgs.
5074
ba327838
TT
50752013-05-20 Tom Tromey <tromey@redhat.com>
5076
5077 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5078 Correctly decref.
5079
d8191432
TT
50802013-05-20 Tom Tromey <tromey@redhat.com>
5081
5082 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5083
5d153bd1
TT
50842013-05-20 Tom Tromey <tromey@redhat.com>
5085
5086 * python/py-event.h (gdbpy_initialize_event_generic): Use
5087 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5088 * python/py-evts.c (add_new_registry): Use
5089 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5090 * python/python-internal.h
5091 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5092
56cc411c
TT
50932013-05-20 Tom Tromey <tromey@redhat.com>
5094
5095 * python/py-arch.c (archpy_disassemble): Update.
5096 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5097 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5098 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5099 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5100 macro.
5101 (GDB_PY_HANDLE_EXCEPTION): Update.
5102 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5103
8919e174
TT
51042013-05-20 Tom Tromey <tromey@redhat.com>
5105
5106 * python/python-internal.h (events_object_type): Remove.
5107
9b08f225
TT
51082013-05-20 Tom Tromey <tromey@redhat.com>
5109
f5aee5ee
AM
5110 * python/py-event.h (evpy_emit_event): Use
5111 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5112 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5113 New macro.
9b08f225 5114
f04010ff
TT
51152013-05-20 Tom Tromey <tromey@redhat.com>
5116
5117 * py-evtregistry.c (create_event_object): Decref
5118 eventregistry_object if PyList_New fails.
5119
3919fd96
TT
51202013-05-20 Tom Tromey <tromey@redhat.com>
5121
5122 * py-cmd.c (gdbpy_string_to_argv): Check result of
5123 PyList_New.
5124
0430e8cb
TT
51252013-05-20 Tom Tromey <tromey@redhat.com>
5126
5127 * python/python.c (before_prompt_hook): Add cleanup to
5128 decref 'hook'.
5129
764123e4
TT
51302013-05-20 Tom Tromey <tromey@redhat.com>
5131
5132 * python/py-function.c (fnpy_init): Decref result of
5133 PyObject_GetAttrString.
5134
634c58be
TT
51352013-05-20 Tom Tromey <tromey@redhat.com>
5136
5137 * python/py-threadevent.c (get_event_thread): Use
5138 CPYCHECKER_RETURNS_BORROWED_REF.
5139 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5140 New define.
5141 (pspace_to_pspace_object, objfile_to_objfile_object)
5142 (find_thread_object): Use it.
5143
62eec1a5
TT
51442013-05-20 Tom Tromey <tromey@redhat.com>
5145
5146 * python/py-arch.c (arch_object_type): Use
5147 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5148 * python/py-block.c (block_syms_iterator_object_type):
5149 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5150 * python/py-bpevent.c (breakpoint_event_object_type):
5151 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5152 * python/py-cmd.c (cmdpy_object_type): Use
5153 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5154 * python/py-continueevent.c (continue_event_object_type):
5155 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5156 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5157 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5158 * python/py-events.h (thread_event_object_type):
5159 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5160 * python/py-evtregistry.c (eventregistry_object_type): Use
5161 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5162 * python/py-exitedevent.c (exited_event_object_type):
5163 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5164 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5165 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5166 * python/py-function.c (fnpy_object_type): Use
5167 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5168 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5169 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5170 * python/py-infthread.c (thread_object_type): Use
5171 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5172 * python/py-lazy-string.c (lazy_string_object_type):
5173 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5174 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5175 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5176 * python/py-objfile.c (objfile_object_type): Use
5177 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5178 * python/py-param.c (parmpy_object_type):
5179 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5180 * python/py-progspace.c (pspace_object_type):
5181 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5182 * python/py-signalevent.c (signal_event_object_type):
5183 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5184 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5185 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5186 * python/py-type.c (type_object_type, field_object_type)
5187 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5188 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5189 define.
5190 (value_object_type, block_object_type, symbol_object_type)
5191 (event_object_type, stop_event_object_type, breakpoint_object_type)
5192 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5193
81ea8796
AT
51942013-05-20 Andreas Tobler <andreas@fgznet.ch>
5195
5196 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5197 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5198
a2ce51a0
DE
51992013-05-20 Doug Evans <dje@google.com>
5200
5201 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5202 For Fission.
5203 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5204 reading_dwo_directly.
5205 (struct signatured_type): New member dwo_unit.
5206 (struct die_reader_specs): New member comp_dir.
5207 (create_signatured_type_table_from_index): Use malloc for
5208 all_type_units instead of objfile's obstack.
5209 (create_all_type_units): Ditto.
5210 (fill_in_sig_entry_from_dwo_entry): New function.
5211 (add_type_unit): New function.
5212 (lookup_dwo_signatured_type): New function.
5213 (lookup_dwp_signatured_type): New function.
5214 (lookup_signatured_type): New arg cu. All callers updated.
5215 (init_cu_die_reader): Initialize comp_dir.
5216 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5217 Change assert of matching type signatures to call error on mismatch.
5218 (lookup_dwo_unit): Add assert.
5219 (init_tu_and_read_dwo_dies): New function.
5220 (init_cutu_and_read_dies): Call it.
5221 (build_type_unit_groups): Handle case of no type unit groups created.
5222 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5223 (lookup_dwo_cutu): Tweak complaint.
5224 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5225 (dwarf2_per_objfile_free): Free all_type_units.
5226
a25cd31f
JB
52272013-05-20 Joel Brobecker <brobecker@adacore.com>
5228
5229 * windows-nat.c (handle_unload_dll): Add missing empty line.
5230
4d804846
JB
52312013-05-20 Joel Brobecker <brobecker@adacore.com>
5232
5233 * dwarf2read.c (prototyped_function_p): New function.
5234 (read_subroutine_type): Use it.
5235
1c432e72
JB
52362013-05-20 Joel Brobecker <brobecker@adacore.com>
5237
5238 * rs6000-aix-tdep.c: De-indent some example code provided
5239 as a comment.
5240
4feebbdd
EBM
52412013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5242
5243 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5244 region is ok for a hardware watchpoint using the new ptrace interface
5245 on Power servers.
5246
7d0c9981
DE
52472013-05-17 Doug Evans <dje@google.com>
5248
5249 * NEWS: Mention new maintenance commands check-symtabs, and
5250 expand-symtabs, and renamed check-psymtabs.
5251 * psymtab.c (maintenance_check_psymtabs): Renamed from
5252 maintenance_check_symtabs. Only process already-expanded symbol
5253 tables.
5254 (_initialize_psymtab): Update.
5255 * symmisc.c (maintenance_check_symtabs): New function.
5256 (maintenance_expand_name_matcher): New function
5257 (maintenance_expand_file_matcher): New function
5258 (maintenance_expand_symtabs): New function.
5259 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5260 commands.
5261
6cbc7c3d
TT
52622013-05-17 Tom Tromey <tromey@redhat.com>
5263
5264 * python/py-inferior.c (infpy_read_memory): Don't call
5265 PyErr_SetString if PyObject_New fails.
5266 * python/py-frame.c (frame_info_to_frame_object): Don't call
5267 PyErr_SetString if PyObject_New fails.
5268
a48b32c0
L
52692013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5270
5271 * acinclude.m4: Add check for dlopen in libdl.
5272 * configure.ac: Ditto.
5273 * configure: Regenerate.
5274
3de661e6
PM
52752013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5276
5277 * frame.c (frame_stash): Convert to htab.
5278 (frame_addr_hash): New function.
5279 (frame_addr_hash_eq): New function.
5280 (frame_stash_create): Convert function to create
5281 a hash table.
5282 (frame_stash_add): Convert function to add an entry to a hash
5283 table.
5284 (frame_stash_find): Convert function to search the hash table.
5285 (frame_stash_invalidate): Convert function to empty the hash
5286 table.
5287 (get_frame_id): Only add to stash if a frame_id is created.
5288 (_initialize_frame): Call frame_stash_create.
5289
bb4168a9 52902013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5291
5292 * configure.ac: Ensure MIG is available when building for GNU Hurd
5293 hosts.
5294 * configure: Regenerate.
5295
d1be3247
JB
52962013-05-16 Joel Brobecker <brobecker@adacore.com>
5297
5298 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5299
b8fea896
JB
53002013-05-16 Joel Brobecker <brobecker@adacore.com>
5301
5302 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5303 all cleanups are done before returning from this function.
5304
af880d85
JB
53052013-05-15 Joel Brobecker <brobecker@adacore.com>
5306
5307 * utils.h: #include "exceptions.h".
5308 (enum errors): Remove partial declaration.
5309
356a5233
JB
53102013-05-15 Joel Brobecker <brobecker@adacore.com>
5311
5312 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5313 * gdbarch.h, gdbarch.c: Regenerate.
5314 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5315 handling.
5316
5317 * rs6000-aix-tdep.h: New file.
5318 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5319 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5320 "xml-utils.h".
5321 (struct field_info, struct ld_info_desc): New types.
5322 (ld_info32_desc, ld_info64_desc): New static constants.
5323 (struct ld_info): New type.
5324 (rs6000_aix_extract_ld_info): New function.
5325 (rs6000_aix_shared_library_to_xml): Likewise.
5326 (rs6000_aix_ld_info_to_xml): Likewise.
5327 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5328 (rs6000_aix_init_osabi): Add call to
5329 set_gdbarch_core_xfer_shared_libraries_aix.
5330 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5331 Remove "xml-utils.h" include.
5332 (LdInfo): Delete typedef.
5333 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5334 Delete macros.
5335 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5336 Adjust code accordingly.
5337 (rs6000_core_ldinfo): Delete, folded into
5338 rs6000_aix_core_xfer_shared_libraries_aix.
5339 (rs6000_xfer_shared_library): Delete.
5340 (rs6000_xfer_shared_libraries): Reimplement.
5341
742ce053
MM
53422013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5343
5344 * record.c (record_goto_cmdlist): New.
5345 (cmd_record_goto): Split into this ...
5346 (cmd_record_goto_begin): ... this
5347 (cmd_record_goto_end): ... and this.
5348 (_initialize_record): Change "record goto" to prefix command.
5349 Add commands for "record goto begin" and "record goto end".
5350 Add an alias for "record goto start" to "record goto begin".
5351
e93ba630
JK
53522013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5353
5354 * linespec.c (convert_linespec_to_sals): New comment for
5355 SOURCE_FILENAME assignment.
5356
5821aace
JK
53572013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5358
5359 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5360 internal_warning.
5361
a1b8c4cc
TT
53622013-05-14 Tom Tromey <tromey@redhat.com>
5363
5364 * eval.c (parse_and_eval_long): Make 'exp' const.
5365 * value.h (parse_and_eval_long): Update.
5366
23b3a2c3
TT
53672013-05-14 Tom Tromey <tromey@redhat.com>
5368
5369 * ui-file.c (gdb_fopen): Make arguments const.
5370 * ui-file.h (gdb_fopen): Make arguments const.
5371
ca623f82
TT
53722013-05-14 Tom Tromey <tromey@redhat.com>
5373
5374 * remote.c (remote_set_trace_notes): Make arguments const.
5375 * target.c (update_current_target): Update cast.
5376 * target.h (to_set_trace_notes): Make arguments const.
5377
503ebb2c
TT
53782013-05-14 Tom Tromey <tromey@redhat.com>
5379
5380 * go32-nat.c (go32_terminal_info): Make 'args' const.
5381 * inferior.h (child_terminal_info): Update.
5382 * inflow.c (child_terminal_info): Make 'args' const.
5383 * target.c (default_terminal_info): Make 'args' const.
5384 (debug_to_terminal_save_ours): Likewise.
5385 * target.h (struct target_ops) <to_terminal_info>: Make argument
5386 const.
5387
85e1311a
TT
53882013-05-13 Tom Tromey <tromey@redhat.com>
5389
5390 * gcore.c (create_gcore_bfd): Make 'filename' const.
5391 * gcore.h (create_gcore_bfd): Make 'filename' const.
5392 * record-full.c (record_full_save): Make 'recfilename' const.
5393 * target.c (target_save_record): Make 'filename' const.
5394 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5395 const.
5396 (target_save_record): Likewise.
5397
d62bfeaf
TT
53982013-05-13 Tom Tromey <tromey@redhat.com>
5399
f5aee5ee 5400 PR gdb/15338:
d62bfeaf
TT
5401 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5402 ranges section has been read.
5403
ac1ca910
TT
54042013-05-13 Tom Tromey <tromey@redhat.com>
5405
5406 PR exp/15364:
5407 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5408 STRUCTOP_PTR>: Return a not_lval value for
5409 EVAL_AVOID_SIDE_EFFECTS.
5410 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5411 for EVAL_AVOID_SIDE_EFFECTS.
5412
36d1c68c
JB
54132013-05-13 Joel Brobecker <brobecker@adacore.com>
5414
5415 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5416 floating point registers to register type before storing
5417 value.
5418 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5419 Likewise.
5420
21ff4686
TT
54212013-05-10 Joel Brobecker <brobecker@adacore.com>
5422 Tom Tromey <tromey@redhat.com>
5423
5424 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5425 New functions.
5426 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5427 Declare.
5428 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5429 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5430 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5431 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5432
d3685d60
TT
54332013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5434 Tom Tromey <tromey@redhat.com>
5435
5436 PR build/15414:
5437 * configure: Rebuild.
5438 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5439 with -Wno-format.
5440
eb9fe518
PA
54412013-05-10 Pedro Alves <palves@redhat.com>
5442
5443 * remote.c (_initialize_remote): Fix spelling of
5444 qXfer:traceframe-info:read packet in packet config command.
5445
9779ab84
PA
54462013-05-10 David Taylor <dtaylor@emc.com>
5447
5448 PR remote/15455
5449
5450 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5451 "QTro" at start of packet.
5452
060cfbef
JB
54532013-05-10 Joel Brobecker <brobecker@adacore.com>
5454
5455 * solib-aix.c (solib_aix_relocate_section_addresses):
5456 For the .bss section action, apply the same offset as
5457 the .data section.
5458
ab1c4e88
JB
54592013-05-10 Joel Brobecker <brobecker@adacore.com>
5460
5461 * solib-aix.c (solib_aix_relocate_section_addresses):
5462 Remove FIXME comment.
5463
c1357578
JB
54642013-05-10 Joel Brobecker <brobecker@adacore.com>
5465
5466 PR tdep/15420:
5467 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5468 New functions, directly copied from sparc-sol-thread.c.
5469 * sparc-sol-thread.c: Delete.
5470 * configure.ac: Remove code handling sparc-solaris-thread.c.
5471 * configure: Regenerate.
5472
1e611234
PM
54732013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5474
5475 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5476 filter logic.
5477 (backtrace_command): Add "no-filters" option parsing.
5478 (_initialize_stack): Alter help to reflect "no-filters" option.
5479 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5480 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5481 (py-frame.o): Add target
5482 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5483 filter files.
5484 * python/python.h: Add new frame filter constants, and flag enum.
5485 (apply_frame_filter): Add definition.
5486 * python/python.c (apply_frame_filter): New non-Python
5487 enabled function.
5488 * python/py-utils.c (py_xdecref): New function.
5489 (make_cleanup_py_xdecref): Ditto.
5490 * python/py-objfile.c: Declare frame_filters dictionary.
5491 (objfpy_dealloc): Add frame_filters dealloc.
5492 (objfpy_new): Initialize frame_filters attribute.
5493 (objfile_to_objfile_object): Ditto.
5494 (objfpy_get_frame_filters): New function.
5495 (objfpy_set_frame_filters): New function.
5496 * python/py-progspace.c: Declare frame_filters dictionary.
5497 (pspy_dealloc): Add frame_filters dealloc.
5498 (pspy_new): Initialize frame_filters attribute.
5499 (pspacee_to_pspace_object): Ditto.
5500 (pspy_get_frame_filters): New function.
5501 (pspy_set_frame_filters): New function.
5502 * python/py-framefilter.c: New file.
5503 * python/lib/gdb/command/frame_filters.py: New file.
5504 * python/lib/gdb/frames.py: New file.
5505 * python/lib/gdb/__init__.py: Initialize global frame_filters
5506 dictionary
5507 * python/lib/gdb/FrameDecorator.py: New file.
5508 * python/lib/gdb/FrameIterator.py: New file.
5509 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5510 * mi/mi-cmds.h: Declare.
5511 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5512 --no-frame-filter logic, and Python frame filter logic.
5513 (stack_enable_frame_filters): New function.
5514 (parse_no_frame_option): Ditto.
5515 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5516 filter logic.
5517 (mi_cmd_stack_list_locals): Ditto.
5518 (mi_cmd_stack_list_args): Ditto.
5519 (mi_cmd_stack_list_variables): Ditto.
5520 * NEWS: Add frame filter note.
5521
2cb9c859
DE
55222013-05-09 Doug Evans <dje@google.com>
5523
6bf667bb
DE
5524 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5525 All callers updated.
5526 (syms_from_objfile): Ditto. Make static.
5527 (symbol_file_add_with_addrs): Renamed from
5528 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5529 num_offsets. All callers updated.
5530 * symfile.h (syms_from_objfile): Delete.
5531
2cb9c859
DE
5532 * symfile.c (decrement_reading_symtab): Add assert.
5533 (increment_reading_symtab): Ditto.
5534
40aea477
JB
55352013-05-09 Joel Brobecker <brobecker@adacore.com>
5536
5537 * source.c (forward_search_command): Replace call to getc
5538 by call to fgetc.
5539 (reverse_search_command): Likewise.
5540
680d1742
DE
55412013-05-08 Doug Evans <dje@google.com>
5542
5543 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5544 matching test.
5545
17e760ae
JB
55462013-05-08 Joel Brobecker <brobecker@adacore.com>
5547
5548 * sol-thread.c (info_cb): Factorize the code a little.
5549
c0f5f490
JB
55502013-05-08 Joel Brobecker <brobecker@adacore.com>
5551
5552 * sol-thread.c (info_cb): Rework the output of the "maintenance
5553 info sol-threads" command a bit.
5554
5d74e061
JB
55552013-05-08 Joel Brobecker <brobecker@adacore.com>
5556
5557 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5558 Replace ti.ti_startfunc by ti.ti_pc.
5559
814a3ff7
JB
55602013-05-08 Joel Brobecker <brobecker@adacore.com>
5561
5562 * solib-aix.c (solib_aix_free_library_list): New function
5563 for the case where HAVE_LIBEXPAT is not defined.
5564
58ce7251
SDJ
55652013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5566
5567 PR breakpoints/15413:
5568 * breakpoint.c (condition_completer): Simplify the code to
5569 disconsider multiple locations of breakpoints when completing the
5570 "condition" command.
5571
be8b1ea6
PM
55722013-05-07 Pierre Muller <muller@sourceware.org>
5573
5574 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5575 instead of <sys/wait.h>.
5576
1e52bda6
PM
55772013-05-07 Pierre Muller <muller@sourceware.org>
5578
5579 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5580 trailing new line from warning message.
5581
27fd0c6b
PM
55822013-05-07 Pierre Muller <muller@sourceware.org>
5583
5584 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5585 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5586
e228ac87
JB
55872013-05-07 Joel Brobecker <brobecker@adacore.com>
5588
5589 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5590 error message (ARI fix).
5591
55922013-05-07 Joel Brobecker <brobecker@adacore.com>
5593
5594 * features/library-list-aix.dtd: Replace library-list by
5595 library-list-aix.
5596 * rs6000-nat.c: Replace library-list by library-list-aix
5597 throughout.
5598 * solib-aix.c: Likewise.
5599
56002013-05-07 Joel Brobecker <brobecker@adacore.com>
5601
5602 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5603 Renames TARGET_OBJECT_AIX_LIBRARIES.
5604 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5605 TARGET_OBJECT_LIBRARIES_AIX throughout.
5606 * solib-aix.c: Likwise.
5607
26a4dda9
YQ
56082013-05-07 Yao Qi <yao@codesourcery.com>
5609
5610 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5611 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5612
3582629f
YQ
56132013-05-07 Yao Qi <yao@codesourcery.com>
5614
5615 * solib-dsbt.c (enable_break): Declare.
5616 (dsbt_current_sos): Remove call to enable_break2.
5617 (enable_break2): Rename to enable_break. Set solib breakpoint
5618 on '_dl_debug_state'.
5619 (enable_break): Remove.
5620
aacbb8a5
LM
56212013-05-07 Luis Machado <lgustavo@codesourcery.com>
5622
5623 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5624 debug state prior to replicating existing hardware watchpoints or
5625 breakpoints.
5626
0c013353
JK
56272013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5628
5629 * gcore.c (gcore_create_callback): Ignore sections with
5630 separate_debug_objfile_backlink != NULL.
5631
a1217d97
SL
56322013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5633 Andrew Jenner <andrew@codesourcery.com>
5634 Chung-Lin Tang <cltang@codesourcery.com>
5635 Julian Brown <julian@codesourcery.com>
5636
5637 Based on the nios2-elf port from Altera Corporation.
5638
5639 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5640 nios2-linux-tdep.o.
5641 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5642 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5643 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5644 * nios2-tdep.h: New.
5645 * nios2-tdep.c: New.
5646 * nios2-linux-tdep.c: New.
5647 * features/Makefile (WHICH): Add nios2-linux.
5648 (nios2-linux-expedite): Set.
5649 * features/nios2-cpu.xml: New.
5650 * features/nios2.xml: New.
5651 * features/nios2-linux.xml: New.
5652 * features/nios2.c: New (autogenerated).
5653 * features/nios2-linux.c: New (autogenerated).
5654 * regformats/nios2-linux.dat: New (autogenerated).
5655 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5656 and commands.
5657
0892cb63
DE
56582013-05-06 Doug Evans <dje@google.com>
5659
3b7bacac
DE
5660 * symfile.c: Whitespace cleanup.
5661
0892cb63
DE
5662 * solist.h (struct target_so_ops): New member clear_so.
5663 * solib-svr4.c (svr4_clear_so): New function.
5664 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5665 * solib.c (clear_so): Renamed from free_so_symbols.
5666 All callers updated. Call target clear_so if it exists.
5667
40501e00
TT
56682013-05-06 Tom Tromey <tromey@redhat.com>
5669
5670 * ada-lang.c (ada_value_primitive_packed_val): Don't
5671 call value_incref.
5672 * value.c (set_value_parent): Incref the new parent and decref
5673 the old parent.
5674 (value_copy, value_primitive_field): Use set_value_parent.
5675
b6807d98
TT
56762013-05-06 Tom Tromey <tromey@redhat.com>
5677
5678 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5679 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5680 if needed.
5681 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5682 * dwarf2read.c (write_constant_as_bytes)
5683 (dwarf2_fetch_constant_bytes): New functions.
5684
3aef2284
TT
56852013-05-06 Tom Tromey <tromey@redhat.com>
5686
5687 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5688 parameters.
5689 (dwarf2_const_value_attr): Update.
5690
66f65e2b
TT
56912013-05-06 Tom Tromey <tromey@redhat.com>
5692
5693 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5694 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5695 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5696 Remove declaration.
5697
7919a973
TT
56982013-05-06 Tom Tromey <tromey@redhat.com>
5699
5700 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5701 objfile's obstack.
5702
a7bfba49
DE
57032013-05-06 Doug Evans <dje@google.com>
5704
3189cb12
DE
5705 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5706 * stabsread.h (process_one_symbol): Update declaration.
5707 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5708 * elfread.c (elf_symfile_relocate_probe): Ditto.
5709 * psymtab.c (relocate_psymtabs): Ditto.
5710 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5711 (objfile_relocate): Ditto.
5712 * objfiles.h (objfile_relocate): Update declaration.
5713 * symfile.c (relative_addr_info_to_section_offsets): Constify
5714 addrs parameter.
5715 (default_symfile_offsets): Ditto.
5716 (syms_from_objfile_1): Constify offsets parameter.
5717 (syms_from_objfile): Ditto.
5718 (symbol_file_add_with_addrs_or_offsets): Ditto.
5719 (symfile_map_offsets_to_segments): Constify data parameter.
5720 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5721 delta parameters of member relocate.
5722 (struct sym_probe_fns): Constify new_offsets,
5723 delta parameters of member sym_relocate_probe.
5724 (struct sym_fns): Constify section_addr_info parameter of member
5725 sym_offsets.
5726 (relative_addr_info_to_section_offsets): Update declaration.
5727 (default_symfile_offsets): Ditto.
5728 (syms_from_objfile): Ditto.
5729 (symfile_map_offsets_to_segments): Ditto.
5730
a7bfba49
DE
5731 * symfile.c (syms_from_objfile_1): Use correct section count when
5732 objfile->sf == NULL.
5733
5f8e0b8f
MF
57342013-05-06 Mike Frysinger <vapier@gentoo.org>
5735
5736 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5737
ea52d893
DE
57382013-05-06 Doug Evans <dje@google.com>
5739
5740 * psympriv.h (struct partial_symtab): Augment comment for member
5741 section_offsets.
5742
4d1eb6b4
JB
57432013-05-06 Joel Brobecker <brobecker@adacore.com>
5744
5745 Reimplement shared library support on ppc-aix...
5746 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5747 * features/library-list-aix.dtd: New file.
5748 * solib-aix.h, solib-aix.c: New file.
5749 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5750 (rs6000_find_toc_address_hook): Delete.
5751 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5752 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5753 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5754 "xml-utils.h".
5755 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5756 (vmap_symtab, fixup_breakpoints): Delete.
5757 (rs6000_xfer_shared_libraries): New function.
5758 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5759 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5760 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5761 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5762 (rs6000_xfer_shared_library): New function.
5763 (find_toc_address): Delete.
5764 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5765 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5766 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5767 before creating minimal symbol. Adjust function description
5768 accordingly.
5769 (scan_xcoff_symtab): Replace call to
5770 prim_record_minimal_symbol_and_info by call to
5771 record_minimal_symbol.
5772 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5773 around default_symfile_offsets.
5774 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5775 powerpc-aix targets.
5776 * config/rs6000/nm-rs6000.h: Delete.
5777 * config/powerpc/aix.mh (NAT_FILE): Delete.
5778 (NATDEPFILES): Remove xcoffsolib.o.
5779 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5780 (ALL_TARGET_OBS): Add solib-aix.o.
5781 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5782 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5783 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5784 * xcoffsolib.h, xcoffsolib.c: Delete.
5785
5786 * solib.c (reload_shared_libraries): Remove reference to
5787 SOLIB_CREATE_INFERIOR_HOOK.
5788 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5789 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5790 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5791 comment.
5792 * corelow.c (deprecated_core_resize_section_table): Delete.
5793 * exec.c: Remove include of xcoffsolib.h".
5794 (map_vmap, vmap): Delete.
5795 (exec_close_1): Remove references to vmap.
5796 (exec_file_attach): Remove vmap handling code, and reference
5797 to DEPRECATED_IBM6000_TARGET.
5798 (bfdsec_to_vmap): Delete.
5799 (exec_files_info): Remove block of code handling VMAP.
5800 * infcmd.c (post_create_inferior): Remove reference to
5801 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5802 * infrun.c (follow_exec): Remove reference to
5803 SOLIB_CREATE_INFERIOR_HOOK.
5804 * stack.c (print_frame): Remove reference to PC_SOLIB.
5805 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5806 (dsbt_relocate_main_executable): Likewise.
5807 * solib-frv.c (frv_current_sos): Likewise.
5808
0c4f667c
JB
58092013-05-06 Joel Brobecker <brobecker@adacore.com>
5810
5811 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5812 to target_write_memory and target_read_memory.
5813
726ce67c
JB
58142013-05-06 Joel Brobecker <brobecker@adacore.com>
5815
5816 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5817 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5818
c8c9911f
JB
58192013-05-06 Joel Brobecker <brobecker@adacore.com>
5820
5821 * darwin-nat.c: Replace all "%x" instances in format strings
5822 into "0x%x" throughout.
5823
fda184b6
JB
58242013-05-06 Joel Brobecker <brobecker@adacore.com>
5825
5826 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5827 gdb_assert by call to MACH_CHECK_ERROR.
5828 (darwin_attach_pid): Raise an error rather than a failed
5829 assertion when various system calls failed. Report a warning
5830 instead of raising a failed assertion when PREV_NOT is not NULL
5831 after call to mach_port_request_notification.
5832 (darwin_ptrace_me): Raise an error rather than a failed
5833 assertion when read returns nonzero.
5834
d1d69afb
JB
58352013-05-06 Joel Brobecker <brobecker@adacore.com>
5836
5837 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5838
dc90b24d
JK
58392013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5840
5841 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5842
faab9922
JK
58432013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5844
5845 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5846 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5847 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5848 a stale cleanup. Fix double free of NAME.
5849
e0ea48a0
EZ
58502013-05-04 Eli Zaretskii <eliz@gnu.org>
5851
5852 * windows-nat.c (windows_delete_thread): Accept an additional
5853 argument, the thread's exit code, and announce thread death when
5854 print_thread_events is non-zero and we are deleting a thread that
5855 is not the main thread.
5856 (get_windows_debug_event): Pass thread exit code to
5857 windows_delete_thread.
5858
83b2706a
KB
58592013-05-03 Kevin Buettner <kevinb@redhat.com>
5860
5861 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5862 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5863 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5864 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5865 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5866 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5867 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5868 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5869 (gdbarch_tdep): New struct.
5870 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5871 E_NUM_REGS.
5872 (v850e3v5_register_name): New function.
5873 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5874 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5875 code handling the struct return conventions for the RH850 ABI.
5876 Update all callers.
5877 (v850_eight_byte_align_p): New function.
5878 (v850_push_call_dummy): Push structs by value, not by reference
5879 for the RH850 ABI. Add support for eight byte alignment.
5880 (v850_dbtrap_breakpoint_from_pc): New function.
5881 (v850_gdbarch_init): Add ABI detection code. Register
5882 v850e3v5_register_name for the v850e3v5 architecture. Set the
5883 number of registers for v850e3v5. Register
5884 v850_dbtrap_breakpoint_from_pc as appropriate.
5885 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5886
d445b2f6
DE
58872013-05-03 Doug Evans <dje@google.com>
5888
5889 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5890 of bfd_count_sections.
5891 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5892 * symfile.c (default_symfile_offsets): Ditto.
5893 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5894 one entry, not bfd_count_sections entries.
5895
b3ce41ea
KB
58962013-05-03 Kevin Buettner <kevinb@redhat.com>
5897
5898 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5899 `save' and `restore' register groups. Don't include SPL
5900 or SPH in these groups.
5901 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5902 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5903 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5904 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5905 dwarf2_append_unwinders().
5906
96f7d3f1
PW
59072013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5908
5909 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5910 ignore SIGINT and SIGTRAP in case these internal signals are
5911 caught explicitely.
5912
b9dd1947
JB
59132013-05-01 Joel Brobecker <brobecker@adacore.com>
5914
5915 * darwin-nat.c (darwin_read_write_inferior): Change types
5916 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5917 of copy_count to "mach_msg_type_number_t".
5918 (darwin_read_dyld_info): Change type of parameter
5919 rdaddr to "gdb_byte *".
5920
4ca18a63
JB
59212013-05-01 Joel Brobecker <brobecker@adacore.com>
5922
5923 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5924 of &info->load_map from "char *" to "gdb_byte *".
5925
2b692d32
JB
59262013-05-01 Joel Brobecker <brobecker@adacore.com>
5927
5928 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5929 from "char *" to "gdb_byte *".
5930 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5931
a98c29a0
DE
59322013-04-30 Doug Evans <dje@google.com>
5933
6a506a2d
DE
5934 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5935 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5936 DWO stub. If DWO isn't found, just use stub.
5937 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5938
a98c29a0
DE
5939 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5940 calling init_cutu_and_read_dies.
5941
f92b06da
WT
59422013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5943
5944 * target-descriptions.c (maint_print_c_tdesc_cmd):
5945 Add case to parse structures as register types and
5946 bitfields.
5947
95eebdcc
WT
59482013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5949
5950 * MAINTAINERS (Write After Approval): Add myself to the list.
5951
019c1128
JB
59522013-04-30 Joel Brobecker <brobecker@adacore.com>
5953
5954 * sol-thread.c (rw_common): Change type of parameter "buf"
5955 to "gdb_byte *".
5956 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5957 rw_common to "gdb_byte *" instead of "char *".
5958
5812197c
JB
59592013-04-30 Joel Brobecker <brobecker@adacore.com>
5960
5961 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5962 of local variable msym to const struct bound_minimal_symbol.
5963 Adjust use accordingly.
5964 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5965
ecccb813
TS
59662013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5967
5968 * i386gnu-nat.c (CREG_OFFSET): New macro.
5969 (creg_offset): New array.
5970 (CREG_ADDR): Use creg_offset instead of reg_offset.
5971
f1d02dd4 59722013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
5973
5974 * mep-tdep.c (mep_write_pc): Delete.
5975 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5976 Add call to set_gdbarch_pc_regnum.
5977
f1d02dd4 59782013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
5979
5980 * common/filestuff.c: Replace #include <dirent.h> by
5981 #include "gdb_dirent.h".
5982
f1d02dd4 59832013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
5984
5985 * common/filestuff.c: Replace #include <sys/stat.h> by
5986 #include "gdb_stat.h".
5987
b385a60d
PM
59882013-04-29 Pierre Muller <muller@sourceware.org>
5989
5990 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5991 editCase function rule.
5992 (get_DW_AT_signature_type): Likewise.
5993
d27b54ad
JB
59942013-04-29 Joel Brobecker <brobecker@adacore.com>
5995
5996 * m32r-tdep.c (m32r_write_pc): Delete.
5997 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5998 Add call to set_gdbarch_pc_regnum.
5999
47d21dc5
PM
60002013-04-29 Pierre Muller <muller@sourceware.org>
6001
6002 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6003
9056882e
JB
60042013-04-29 Joel Brobecker <brobecker@adacore.com>
6005
6006 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6007
7ee4732a
YQ
60082013-04-28 Yao Qi <yao@codesourcery.com>
6009
6010 * solib-dsbt.c (fetch_loadmap): Re-indent.
6011 (displacement_from_map, enable_break2): Likewise.
6012 (dsbt_relocate_section_addresses): Likewise.
6013
2260af53 60142013-04-26 Joel Brobecker <brobecker@adacore.com>
6015
6016 GDB 7.6 released.
6017
ff546935
TT
60182013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6019
6020 PR corefiles/14983:
6021 * dwarf2read.c (process_full_comp_unit): Always create a static
6022 block.
6023
40fb6c5e
HZ
60242013-04-25 Hui Zhu <hui@codesourcery.com>
6025
6026 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6027 to loc->cmd_bytecode.
6028
74e04d1c
DE
60292013-04-24 Doug Evans <dje@google.com>
6030
6031 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6032
3cf62c1d
KS
60332013-04-22 Keith Seitz <keiths@redhat.com>
6034
6035 * tracepoint.c (trace_save): Call the writer's start method.
6036
bf9e4d0c
MB
60372013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6038
6039 PR gdb/10462
6040 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6041 before argument.
6042
5d71132c
TT
60432013-04-23 Tom Tromey <tromey@redhat.com>
6044
6045 * common/filestuff.c: Check USE_WIN32API before including
6046 sys/socket.h.
6047 (HAVE_F_GETFD): New define.
6048 (mark_cloexec): Check HAVE_F_GETFD.
6049 (gdb_open_cloexec): Change 'mode' to unsigned long.
6050 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6051 (gdb_pipe_cloexec): Check HAVE_PIPE.
6052 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6053 long.
6054
a11cfd87
HZ
60552013-04-23 Hui Zhu <hui@codesourcery.com>
6056
6057 PR gdb/15293
a11cfd87
HZ
6058 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6059
2d9442cc
HZ
60602013-04-23 Hui Zhu <hui@codesourcery.com>
6061
6062 PR gdb/15165
2d9442cc
HZ
6063 * breakpoint.c (dprintf_print_recreate): New.
6064 (save_breakpoints): Let it not save dprintf commands.
6065 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6066
614c279d
TT
60672013-04-22 Tom Tromey <tromey@redhat.com>
6068
6069 PR gdb/7912:
6070 * Makefile.in (SFILES): Add filestuff.c
6071 (COMMON_OBS): Add filestuff.o.
6072 (filestuff.o): New target.
6073 * auto-load.c (auto_load_objfile_script_1): Use
6074 gdb_fopen_cloexec.
6075 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6076 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6077 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6078 * common/agent.c (gdb_connect_sync_socket): Use
6079 gdb_socket_cloexec.
6080 * common/filestuff.c: New file.
6081 * common/filestuff.h: New file.
6082 * common/linux-osdata.c (linux_common_core_of_thread)
6083 (command_from_pid, commandline_from_pid, print_source_lines)
6084 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6085 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6086 gdb_fopen_cloexec.
6087 * common/linux-procfs.c (linux_proc_get_int)
6088 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6089 * config.in, configure: Rebuild.
6090 * configure.ac: Don't check for sys/socket.h. Check for
6091 fdwalk, pipe2.
6092 * corelow.c (core_open): Use gdb_open_cloexec.
6093 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6094 * fork-child.c (fork_inferior): Call close_most_fds.
6095 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6096 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6097 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6098 Use gdb_fopen_cloexec.
6099 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6100 gdb_open_cloexec.
6101 (linux_async_pipe): Use gdb_pipe_cloexec.
6102 * remote-fileio.c (remote_fileio_func_open): Use
6103 gdb_open_cloexec.
6104 * remote.c (remote_file_put, remote_file_get): Use
6105 gdb_fopen_cloexec.
6106 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6107 close_most_fds.
6108 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6109 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6110 * solib.c (solib_find): Use gdb_open_cloexec.
6111 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6112 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6113 (tfile_open): Use gdb_open_cloexec.
6114 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6115 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6116 * xml-support.c (xml_fetch_content_from_file): Use
6117 gdb_fopen_cloexec.
6118 * main.c (captured_main): Call notice_open_fds.
6119
5fda2332
EBM
61202013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6121
6122 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6123 'char *' to 'gdb_byte *'.
6124 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6125 'gdb_byte'.
6126
eb6c553b
YQ
61272013-04-22 Yao Qi <yao@codesourcery.com>
6128
6129 * infrun.c: Fix typo in comment.
6130
9991b207
SDJ
61312013-04-22 Andrew Haley <aph@redhat.com>
6132
6133 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6134 instead of "long".
6135
8b4833e3
YQ
61362013-04-20 Yao Qi <yao@codesourcery.com>
6137
6138 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6139 'char *' to 'gdb_byte *'. Cast the return value of
6140 'bt_ctf_get_char_array' to 'gdb_byte *'.
6141
bd3f3b55
PA
61422013-04-19 Pedro Alves <palves@redhat.com>
6143
6144 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6145 -Wpointer-sign.
6146 * configure: Regenerate.
6147
c49e7f76
PA
61482013-04-19 Pedro Alves <palves@redhat.com>
6149
6150 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6151 'void *'.
6152
12ff8552
PA
61532013-04-19 Pedro Alves <palves@redhat.com>
6154
6155 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6156 Change type of 'myaddr' parameter to gdb_byte pointer.
6157 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6158 to 'long long' pointer instead of to 'unsigned long long'.
6159 (monitor_write_memory_block, monitor_read_memory_single)
6160 (monitor_read_memory): Change type of 'myaddr' parameter to
6161 gdb_byte pointer.
6162
9c37696b
PA
61632013-04-19 Pedro Alves <palves@redhat.com>
6164
6165 * record.c (validate_history_size): Make parameter 'setting'
6166 unsigned.
6167
a398505b
PA
61682013-04-19 Pedro Alves <palves@redhat.com>
6169
6170 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6171 to 'gdb_byte *'.
6172
9f8afa72
PA
61732013-04-19 Pedro Alves <palves@redhat.com>
6174
6175 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6176 local to int.
6177
c714b426
PA
61782013-04-19 Pedro Alves <palves@redhat.com>
6179
6180 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6181 * ada-tasks.c (read_fat_string_value): Likewise.
6182
507a579c
PA
61832013-04-19 Pedro Alves <palves@redhat.com>
6184
6185 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6186 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6187 'offset', and adjust.
6188
f9d83a0b
PA
61892013-04-19 Pedro Alves <palves@redhat.com>
6190
6191 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6192 (read_index_from_section): Add cast to 'char *'.
6193
745eb4fd
PA
61942013-04-19 Pedro Alves <palves@redhat.com>
6195
6196 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6197
db5be46f
PA
61982013-04-19 Pedro Alves <palves@redhat.com>
6199
6200 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6201
0f928d68
PA
62022013-04-19 Pedro Alves <palves@redhat.com>
6203
6204 * record-full.c (record_full_get_bookmark): Change local 'ret'
6205 type to char * and add cast to gdb_byte *.
6206 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6207 string.
6208 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6209
89f6d837
PA
62102013-04-19 Pedro Alves <palves@redhat.com>
6211
6212 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6213 * python/py-prettyprint.c (print_string_repr): Change type of
6214 'output' local to char *. Add cast to gdb_byte * in
6215 LA_PRINT_STRING call.
6216 (print_children): Change type of 'output' local to char *.
6217 * python/py-value.c (valpy_string): Add cast to const char * in
6218 PyUnicode_Decode call.
6219
ce6ec7d8
PA
62202013-04-19 Pedro Alves <palves@redhat.com>
6221
6222 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6223 and change its type to 'const char *'. Adjust.
6224 (mips_send_packet): Add cast to 'char *', and remove cast to
6225 'unsigned char *'.
6226 (mips_receive_packet): Remove cast to 'unsigned char *'.
6227 (mips_load_srec): Use bfd_byte.
6228 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6229 (pmon_checkset): Make 'value' parameter unsigned.
6230
fda0389f
PA
62312013-04-19 Pedro Alves <palves@redhat.com>
6232
6233 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6234
bc20a4af
PA
62352013-04-19 Pedro Alves <palves@redhat.com>
6236
6237 * remote.c (remote_write_bytes_aux, compare_sections_command)
6238 (remote_read_qxfer)
6239 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6240 (remote_hostio_readlink, remote_bfd_iovec_pread)
6241 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6242 binary buffer, and char when buffer is used as string.
6243 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6244 (trace_save, tfile_open, traceframe_walk_blocks)
6245 (tfile_fetch_registers): Likewise.
6246
c628b528
PA
62472013-04-19 Pedro Alves <palves@redhat.com>
6248
6249 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6250 buffer and size_t size. Adjust.
6251 * ser-base.h (ser_base_write): Adjust.
6252 * ser-go32.c (cnts): Change type to size_t.
6253 (dos_write): Change prototype -- take 'void *'
6254 buffer and size_t size. Adjust.
6255 (dos_info): Print elements of 'cnts' as unsigned long.
6256 * serial.c (serial_write): Likewise.
6257 * serial.h (serial_write): Adjust.
6258 (struct serial_ops) <write>: Change prototype -- take 'void *'
6259 buffer and size_t size. Adjust.
6260
51a5cd90
PA
62612013-04-19 Pedro Alves <palves@redhat.com>
6262
6263 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6264 gdb_byte *.
6265 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6266
a9933661
PA
62672013-04-19 Pedro Alves <palves@redhat.com>
6268
6269 * alpha-tdep.c (alpha_extract_return_value): Use
6270 regcache_cooked_read_unsigned to read 'v0'.
6271
19afdd07
PA
62722013-04-19 Pedro Alves <palves@redhat.com>
6273
6274 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6275 parameters 'at', 'as' and 'offset' to uint32_t.
6276
96b32e50
PA
62772013-04-19 Pedro Alves <palves@redhat.com>
6278
6279 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6280 'is64' to signed 'int'.
6281
eb1bd1fb
PA
62822013-04-19 Pedro Alves <palves@redhat.com>
6283
6284 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6285 parameter to int *.
6286
463920bf
PA
62872013-04-19 Pedro Alves <palves@redhat.com>
6288
6289 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6290 'insnbuf' buffer type to unsigned int[].
6291
70242eb1
PA
62922013-04-19 Pedro Alves <palves@redhat.com>
6293
6294 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6295
9d1dd0e2
PA
62962013-04-19 Pedro Alves <palves@redhat.com>
6297
6298 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6299 unsigned long *.
6300
44096aee
PA
63012013-04-19 Pedro Alves <palves@redhat.com>
6302
6303 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6304 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6305 UINT_MAX.
6306 * mips-tdep.c (heuristic_fence_post): Change type to int.
6307 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6308
e4286e57
PA
63092013-04-19 Pedro Alves <palves@redhat.com>
6310
6311 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6312 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6313 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6314
001f13d8
PA
63152013-04-19 Pedro Alves <palves@redhat.com>
6316
6317 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6318 it to get a string view of the byte buffer.
6319 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6320 type to gdb_byte *. Adjust.
6321 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6322 Change local to char *.
6323 * solib-darwin.c (find_program_interpreter): Change return type to
6324 char *. Adjust.
6325 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6326 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6327 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6328 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6329 * solib-svr4.c (find_program_interpreter): Change return type to
6330 char *. Adjust.
6331 (enable_break): Change local 'interp_name' to char *.
6332 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6333 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6334 (spu_pseudo_register_write_spu): Use char for string buffer.
6335 Adjust.
6336 (info_spu_event_command, info_spu_signal_command): Add casts to
6337 'char *'.
6338
948f8e3d
PA
63392013-04-19 Pedro Alves <palves@redhat.com>
6340
6341 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6342 gdb_byte[].
6343 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6344 * ada-lang.c (ada_value_assign): Use gdb_byte.
6345 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6346 (alphanbsd_sigtramp_offset): Use gdb_byte.
6347 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6348 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6349 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6350 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6351 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6352 * arm-tdep.c (arm_stub_unwind_sniffer)
6353 (arm_displaced_init_closure): Use gdb_byte.
6354 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6355 (arm_default_thumb_le_breakpoint)
6356 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6357 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6358 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6359 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6360 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6361 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6362 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6363 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6364 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6365 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6366 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6367 (cris_store_return_value, cris_extract_return_value): Use
6368 gdb_byte.
6369 (constraint): Change type of parameter to char * from signed
6370 char*. Use gdb_byte.
6371 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6372 of local buffer to gdb_byte *.
6373 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6374 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6375 (add_address_entry): Change type of local buffer to gdb_byte[].
6376 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6377 (frv_push_dummy_call): Use gdb_byte.
6378 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6379 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6380 (hppa_hpux_supply_save_state): Use gdb_byte.
6381 * hppa-tdep.c (hppa32_push_dummy_call)
6382 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6383 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6384 (slotN_contents, replace_slotN_contents): Change type of parameter
6385 to gdb_byte *.
6386 (fetch_instruction, ia64_pseudo_register_write)
6387 (ia64_register_to_value, ia64_value_to_register)
6388 (ia64_extract_return_value, ia64_store_return_value)
6389 (ia64_push_dummy_call): Use gdb_byte.
6390 * m32c-tdep.c (m32c_return_value): Remove cast.
6391 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6392 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6393 gdb_byte.
6394 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6395 * mn10300-tdep.c (mn10300_store_return_value)
6396 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6397 gdb_byte.
6398 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6399 (moxie_process_record): Remove casts.
6400 * ppc-ravenscar-thread.c (supply_register_at_address)
6401 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6402 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6403 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6404 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6405 * remote.c (compare_sections_command): Use gdb_byte.
6406 * score-tdep.c (score7_free_memblock): Change type of parameter to
6407 gdb_byte *.
6408 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6409 gdb_byte *. Use gdb_byte.
6410 (sh_push_dummy_call_fpu): Use gdb_byte.
6411 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6412 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6413 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6414 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6415 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6416 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6417 (sh64_store_return_value, sh64_register_convert_to_virtual):
6418 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6419 (sh64_pseudo_register_write): Use gdb_byte.
6420 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6421 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6422 buffer.
6423 (irix_current_sos): Use gdb_byte.
6424 * solib-som.c (som_current_sos): Use gdb_byte.
6425 * sparc-ravenscar-thread.c (supply_register_at_address)
6426 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6427 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6428 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6429 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6430 'gdb_byte *'.
6431 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6432 'gdb_byte *'.
6433 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6434 * xstormy16-tdep.c (xstormy16_extract_return_value)
6435 (xstormy16_store_return_value): Change parameter type to
6436 'gdb_byte *'. Adjust.
6437 (xstormy16_push_dummy_call): Use gdb_byte.
6438 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6439 (call0_analyze_prologue, execute_code): Use gdb_byte.
6440
433730c9
PA
64412013-04-19 Vladimir Kargov <kargov@gmail.com>
6442 Pedro Alves <palves@redhat.com>
6443
6444 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6445 value contents.
6446
ac9ec31b
DE
64472013-04-17 Doug Evans <dje@google.com>
6448
6449 * dwarf2read.c (struct signatured_type): New member type.
6450 (struct attribute): Replace member signatured_type with signature.
6451 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6452 (read_call_site_scope): Call follow_die_ref instead of
6453 follow_die_ref_or_sig.
6454 (read_structure_type): Rewrite handling of signatured types.
6455 (read_enumeration_type): Ditto.
6456 (read_attribute_value): Update.
6457 (build_error_marker_type): New function.
6458 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6459 Don't call error for bad types, just build an error marker type.
6460 (dump_die_shallow): Update.
6461 (follow_die_sig_1): Renamed from follow_die_sig.
6462 Don't call error for bad types, instead return NULL.
6463 (follow_die_sig): New function.
6464 (get_signatured_type, get_DW_AT_signature_type): New functions.
6465
e546e8bb
YZ
64662013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6467
6468 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6469 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6470 function.
e546e8bb 6471
ab116149
YQ
64722013-04-17 Yao Qi <yao@codesourcery.com>
6473
6474 * top.c (print_gdb_configuration): Print configure-time
6475 parameter on using libbabeltrace or not.
6476
488a42b8
PA
64772013-04-16 Pedro Alves <palves@redhat.com>
6478
6479 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6480
f5fb825b
PA
64812013-04-16 Pedro Alves <palves@redhat.com>
6482
85d494ea 6483 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6484 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6485
e1154999
PA
64862013-04-16 Pedro Alves <palves@redhat.com>
6487
6488 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6489 * common/glibc_thread_db.h: ... this new file ...
6490 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6491
e3b50a7f
PA
64922013-04-16 Will Newton <will.newton@gmail.com>
6493 Pedro Alves <palves@redhat.com>
6494
6495 PR build/11881
6496
6497 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6498 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6499 HAVE_THREAD_DB_H.
6500
1c2e4450
PA
65012013-04-16 Pedro Alves <palves@redhat.com>
6502 Eli Zaretskii <eliz@gnu.org>
6503
6504 * NEWS: Mention "set foo unlimited".
6505
4031ecc5
DE
65062013-04-15 Doug Evans <dje@google.com>
6507
19c3d4c9
DE
6508 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6509 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6510 (create_dwo_cu_reader): Renamed from
6511 create_dwo_debug_info_hash_table_reader.
6512 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6513 Remove support for multiple CUs in a DWO file.
6514 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6515
4031ecc5
DE
6516 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6517 instead of phex.
6518 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6519 (create_dwo_in_dwp): Ditto.
6520
b340913d
TT
65212013-04-15 Tom Tromey <tromey@redhat.com>
6522
6523 * NEWS: Move recent entries into "since 7.6" section.
6524
cc16e6c9
TT
65252013-04-15 Tom Tromey <tromey@redhat.com>
6526
6527 PR c++/13588:
6528 * NEWS: Update.
6529 * break-catch-throw.c (struct exception_catchpoint)
6530 <exception_rx, pattern>: New fields.
6531 (fetch_probe_arguments, dtor_exception_catchpoint)
6532 (check_status_exception_catchpoint)
6533 (print_one_detail_exception_catchpoint): New functions.
6534 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6535 Compile regular expression if needed.
6536 (extract_exception_regexp): New function.
6537 (catch_exception_command_1): Use extract_exception_regexp.
6538 (compute_exception): Use fetch_probe_arguments.
6539 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6540 and check_status fields.
6541 * cp-abi.c (cplus_typename_from_type_info): New function.
6542 * cp-abi.h (cplus_typename_from_type_info): Declare.
6543 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6544 * gdb_regex.h (compile_rx_or_error): Declare.
6545 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6546 comment.
6547 (init_gnuv3_ops): Set get_type_from_type_info field.
6548 * probe.c (compile_rx_or_error): Move...
6549 * utils.c (compile_rx_or_error): ... here.
6550
72f1fe8a
TT
65512013-04-15 Tom Tromey <tromey@redhat.com>
6552
6553 PR c++/15176:
6554 * NEWS: Update.
6555 * break-catch-throw.c (compute_exception): New function.
6556 (exception_funcs): New global.
6557 (_initialize_break_catch_throw): Create $_exception.
6558 * cp-abi.c (cplus_type_from_type_info): New function.
6559 * cp-abi.h (cplus_type_from_type_info): Declare.
6560 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6561 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6562 (gnuv3_get_type_from_type_info): New functions.
6563 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6564
fc4746a2
TT
65652013-04-15 Tom Tromey <tromey@redhat.com>
6566
6567 * break-catch-throw.c (struct exception_names): New.
6568 (exception_functions): Change type.
6569 (re_set_exception_catchpoint): Look for SDT probes.
6570
15a73f56
TT
65712013-04-15 Tom Tromey <tromey@redhat.com>
6572
6573 PR c++/10119:
6574 * break-catch-throw.c (exception_functions): New global.
6575 (gnu_v3_exception_catchpoint_ops): Move earlier.
6576 (struct exception_catchpoint): New.
6577 (classify_exception_breakpoint): Rewrite.
6578 (re_set_exception_catchpoint): New function.
6579 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6580 Allocate a struct exception_catchpoint.
6581 (catch_exception_command_1): Update.
6582 (initialize_throw_catchpoint_ops): Set 're_set' method.
6583
916703c0
TT
65842013-04-15 Tom Tromey <tromey@redhat.com>
6585
6586 * Makefile.in (SFILES): Add break-catch-throw.c
6587 (COMMON_OBS): Add break-catch-throw.o.
6588 * break-catch-throw.c: New file.
6589 * breakpoint.c: Move exception-catching code to new file.
6590 (ep_parse_optional_if_clause): No longer static.
6591 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6592
6e72ca20
TT
65932013-04-15 Tom Tromey <tromey@redhat.com>
6594
6595 PR c++/9065:
6596 * NEWS: Update.
6597 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6598 * c-exp.y (TYPEID): New token.
6599 (exp): Add new TYPEID productions.
6600 (ident_tokens): Add "typeid".
6601 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6602 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6603 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6604 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6605 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6606 case.
6607 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6608 (build_std_type_info_type, gnuv3_get_typeid_type)
6609 (gnuv3_get_typeid): New functions.
6610 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6611 new fields on ABI object.
6612 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6613 * std-operator.def (OP_TYPEID): New.
6614
715c6909
TT
66152013-04-15 Tom Tromey <tromey@redhat.com>
6616
6617 * elfread.c (elf_symtab_read): Install versioned symbol under
6618 unversioned name as well.
6619
8de20a37
TT
66202013-04-15 Tom Tromey <tromey@redhat.com>
6621
6622 PR c++/11990:
6623 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6624 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6625 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6626 (gdb_demangle): New function.
6627 * cp-support.h (gdb_demangle): Declare.
6628 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6629 (dwarf2_name): Use gdb_demangle.
6630 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6631 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6632 suffixes from name.
6633 (gnuv3_print_method_ptr): Use gdb_demangle.
6634 * jv-lang.c (java_demangle): Use gdb_demangle.
6635 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6636 * language.c (unk_lang_demangle): Use gdb_demangle.
6637 * symtab.c (symbol_find_demangled_name)
6638 (demangle_for_lookup): Use gdb_demangle.
6639
591f19e8
TT
66402013-04-15 Tom Tromey <tromey@redhat.com>
6641
6642 PR c++/12824:
6643 * NEWS: Update.
6644 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6645 New constant.
6646 (classify_exception_breakpoint): New function.
6647 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6648 (print_mention_exception_catchpoint)
6649 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6650 (catch_exception_command_1): Handle "rethrow" catchpoint.
6651 (catch_rethrow_command): New function.
6652 (_initialize_breakpoint): Add "catch rethrow" command.
6653
4d40cad2
PM
66542013-04-15 Pierre Muller <muller@sourceware.org>
6655
6656 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6657 set_gdbarch_write_pc as deprecated anymore.
6658
30bcb456
JB
66592013-04-15 Joel Brobecker <brobecker@adacore.com>
6660
6661 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6662 declarations.
6663
da9160e4
YQ
66642013-04-13 Yao Qi <yao@codesourcery.com>
6665
6666 * ctf.c (_initialize_ctf): Include "completer.h".
6667 Call add_target_with_completer instead of add_target.
6668
39ed5604
JK
66692013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6670
6671 Fix GDB regression related to PR binutils/14813.
6672 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6673 * minidebug.c (lzma_close): Add return value comment.
6674 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6675 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6676 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6677
66782013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6679
6680 * config.in: Regenerate.
6681
d521ce57
TT
66822013-04-12 Tom Tromey <tromey@redhat.com>
6683
6684 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6685 const.
6686 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6687 (struct die_reader_specs) <buffer>: Likewise.
6688 (die_reader_func_ftype): Make 'info_ptr' const.
6689 (struct line_header) <include_dirs, statement_program_start,
6690 statement_program_end>: Now const.
6691 (struct file_entry) <name>: Likewise.
6692 (struct partial_die_info) <sibling>: Likewise.
6693 (struct dwarf_block) <data>: Likewise.
6694 (dwarf2_read_section): Remove cast.
6695 (dwarf2_get_section_info): Make 'bufp' const.
6696 (read_index_from_section): Constify.
6697 (dw2_get_file_names_reader): Make 'info_ptr' const.
6698 (dw2_get_primary_filename_reader): Likewise.
6699 (read_comp_unit_head): Make 'info_ptr' and return type const.
6700 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6701 Likewise.
6702 (read_abbrev_offset): Constify.
6703 (dwarf2_create_include_psymtab): Make 'name' const.
6704 (create_debug_types_hash_table): Update.
6705 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6706 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6707 Constify.
6708 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6709 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6710 (read_comp_units_from_section): Constify.
6711 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6712 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6713 const.
6714 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6715 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6716 (create_dwp_hash_table, dwarf2_ranges_read)
6717 (dwarf2_record_block_ranges): Constify.
6718 (read_die_and_children, read_die_and_siblings_1)
6719 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6720 const.
6721 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6722 (abbrev_table_read_table): Constify.
6723 (load_partial_dies): Make 'info_ptr' const.
6724 (read_partial_die, read_attribute_value, read_attribute): Make
6725 'info_ptr' and return type const.
6726 (read_address, read_initial_length)
6727 (read_checked_initial_length_and_offset, read_offset)
6728 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6729 const.
6730 (read_direct_string): Make 'buf' and return type const.
6731 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6732 (read_indirect_string): Make return type const.
6733 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6734 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6735 'info_ptr' const.
6736 (read_str_index): Make return type const.
6737 (add_include_dir): Make 'include_dir' const.
6738 (add_file_name): Make 'name' const.
6739 (dwarf_decode_line_header): Constify.
6740 (psymtab_include_file_name): Make return type const.
6741 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6742 (dwarf2_start_subfile): Make 'filename' const.
6743 (dwarf2_const_value_attr): Make 'bytes' const.
6744 (read_signatured_type_reader): Make 'info_ptr' const.
6745 (decode_locdesc): Constify.
6746 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6747 const.
6748 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6749 'mac_end', and return type const.
6750 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6751 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6752 type const.
6753 (per_cu_header_read_in): Constify.
6754 * symfile.h (dwarf2_get_section_info): Update.
6755
d47a1bc1
TT
67562013-04-12 Tom Tromey <tromey@redhat.com>
6757
6758 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6759
6eaaf48b
EZ
67602013-04-12 Eli Zaretskii <eliz@gnu.org>
6761
fc4c25bf 6762 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6763 * top.c (print_gdb_configuration): New function, displays the
6764 details about GDB configure-time parameters.
6765 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6766 * cli/cli-cmds.c (show_configuration): New function.
6767 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6768 * main.c (captured_main) <print_configuration>: New static var.
6769 <long_options>: Use it.
6770 If --configuration was given, call print_gdb_configuration.
6771
b292c783
JK
67722013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6773 Pedro Alves <palves@redhat.com>
6774
6775 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6776 (generated_files): Add gcore.
6777 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6778 HAVE_NATIVE_GCORE_HOST.
6779 (gcore): New.
6780 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6781 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6782 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6783 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6784 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6785 Add HAVE_NATIVE_GCORE_HOST.
6786 * configure: Regenerate.
6787 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6788 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6789 AC_CONFIG_FILES for gcore.
6790 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6791 gdb_have_gcore.
6792 * gdb_gcore.sh: Rename to ...
6793 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6794 and GCORE_TRANSFORM_NAME substitutions.
6795
c96b3c4f
JK
6796 Fix parsing tabs in ${gdb_target_obs}.
6797 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6798
d6cb50a2
JK
67992013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6800
6801 * remote.c (unpush_and_perror): Add output message final dot.
6802
cf2cb5ec
YQ
68032013-04-11 Yao Qi <yao@codesourcery.com>
6804
6805 * tracepoint.c (tfile_interp_line): Fit parameters line and
6806 utpp in one line.
6807
07293be4
JB
68082013-04-10 Joel Brobecker <brobecker@adacore.com>
6809
6810 * solib.c (solib_map_sections): Remove code overwriting
6811 SO->SO_NAME with the bfd's filename.
6812
f81d1120
PA
68132013-04-10 Pedro Alves <palves@redhat.com>
6814
6815 * cli/cli-decode.c (integer_unlimited_completer): New function.
6816 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6817 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6818 completer.
6819 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6820 (is_unlimited_literal): New function.
6821 (do_set_command): Handle literal "unlimited" arguments.
6822 * frame.c (_initialize_frame) <set backtrace limit>: Document
6823 "unlimited".
6824 * printcmd.c (_initialize_printcmd) <set print
6825 max-symbolic-offset>: Add help text.
6826 * record-full.c (_initialize_record_full) <set record full
6827 insn-number-max>: Likewise.
6828 * record.c (_initialize_record) <set record
6829 instruction-history-size, set record function-call-history-size>:
6830 Add help text.
6831 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6832 help text.
6833 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6834 Likewise.
6835 * source.c (_initialize_source) <set listsize>: Add help text.
6836 * utils.c (initialize_utils) <set height, set width>: Likewise.
6837 <set pagination>: Mention "set height unlimited".
6838 * valprint.c (_initialize_valprint) <set print elements, set print
6839 repeats>: Document "unlimited".
6840
2f9d54cf
PA
68412013-04-10 Pedro Alves <palves@redhat.com>
6842
6843 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6844 instead of disconnect_tracing.
6845 * infcmd.c (detach_command, disconnect_command): Call
6846 query_if_trace_running. Adjust.
6847 * top.c: Include "tracepoint.h".
6848 (quit_target): Delete. Contents moved ...
6849 (quit_force): ... here. Wrap each stage of teardown in
6850 TRY_CATCH. Call disconnect_tracing before detaching.
6851
393fd4c3
YQ
68522013-04-10 Hui Zhu <hui@codesourcery.com>
6853 Yao Qi <yao@codesourcery.com>
6854
6855 * configure.ac: Check libbabeltrace is installed.
6856 * config.in: Regenerate.
6857 * configure: Regenerate.
6858 * Makefile.in (LIBBABELTRACE): New.
6859 (CLIBS): Add LIBBABELTRACE.
6860 * ctf.c: Include "exec.h".
6861 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6862 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6863 (ctf_save_metadata_header): Define new type aliases in
6864 metadata.
6865 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6866 in metadata. Start a new faked packet for trace status.
6867 (ctf_write_status): Write trace status to CTF.
6868 (ctf_write_uploaded_tsv): Write TSV to CTF.
6869 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6870 (ctf_write_definition_end): End the faked packet.
6871
6872 (ctx, ctf_iter, trace_dirname): New.
6873 (start_pos): New variable.
6874 (ctf_destroy, ctf_open_dir, ctf_open): New.
6875 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6876 macros.
6877 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6878 (ctf_fetch_registers, ctf_xfer_partial): New.
6879 (ctf_get_trace_state_variable_value): New.
6880 (ctf_get_tpnum_from_frame_event): New.
6881 (ctf_get_traceframe_address): New.
6882 (ctf_trace_find, ctf_has_stack): New.
6883 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6884 (ctf_get_trace_status, ctf_read_status): New.
6885 (_initialize_ctf): New.
6886 * tracepoint.c (get_tracepoint_number): New
6887 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 6888 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
6889 * tracepoint.h: ... here.
6890 (get_tracepoint_number): Declare it.
6891 (get_uploaded_tsv): Declare it.
6892
6893 * NEWS: Mention new configure option.
6894
5c2b4418
HZ
68952013-04-10 Pedro Alves <palves@redhat.com>
6896 Hui Zhu <hui@codesourcery.com>
6897
6898 * breakpoint.c (dprintf_re_set): New.
6899 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6900 to dprintf_re_set.
6901
a5c66735
JB
69022013-04-09 Joel Brobecker <brobecker@adacore.com>
6903
6904 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6905 Remove solib-svr4.o from the list.
6906
9e77999c
JB
69072013-04-09 Joel Brobecker <brobecker@adacore.com>
6908
6909 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6910 Use gdb_assert_not_reached instead of invalid boolean expression.
6911
1927e618
PA
69122013-04-09 Pedro Alves <palves@redhat.com>
6913
6914 * remote.c (unpush_and_perror): New function.
6915 (readchar, remote_serial_write): Use it.
6916
10782d74
MM
69172013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6918
6919 * NEWS: Mention new btrace RSP packets.
6920
4c8429ef
TT
69212013-04-08 Tom Tromey <tromey@redhat.com>
6922
6923 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6924 long.
6925
8625fc1b
TT
69262013-04-08 Tom Tromey <tromey@redhat.com>
6927
6928 * maint.c (print_bfd_section_info): Print the section index.
6929 * symmisc.c (dump_msymbols): Print the section index.
6930
e27d198c
TT
69312013-04-08 Tom Tromey <tromey@redhat.com>
6932
6933 PR symtab/8424:
6934 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6935 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6936 * breakpoint.c (resolve_sal_pc): Update.
6937 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6938 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6939 (minsym_lookup_iterator_cb): Use it.
6940 (default_read_var_value): Update.
6941 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6942 Update.
6943 * infcmd.c (jump_command): Update.
6944 * linespec.c (minsym_found): Update.
6945 * maint.c (maintenance_translate_address): Update.
6946 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6947 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6948 * parse.c (write_exp_msymbol): Update.
6949 * printcmd.c (address_info): Update.
6950 * psymtab.c (find_pc_sect_psymbol): Update.
6951 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6952 SYMBOL_OBJ_SECTION.
6953 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6954 Don't initialize SYMBOL_OBJ_SECTION.
6955 * spu-tdep.c (spu_catch_start): Update.
6956 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6957 * symmisc.c (dump_msymbols, print_symbol): Update.
6958 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6959 how fallback section is computed.
6960 (fixup_symbol_section): Update.
6961 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6962 Update.
6963 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6964 Initialize SYMBOL_SECTION.
6965 * symtab.h (struct general_symbol_info) <section>: Update comment.
6966 <obj_section>: Remove.
6967 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6968 (SYMBOL_OBJFILE): New macro.
6969
e6dc44a8
TT
69702013-04-08 Tom Tromey <tromey@redhat.com>
6971
6972 * coffread.c (record_minimal_symbol): Update.
6973 * dbxread.c (record_minimal_symbol): Update.
6974 * elfread.c (record_minimal_symbol): Update.
6975 * machoread.c (macho_symtab_add_minsym): Update.
6976 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6977 Update.
6978 * minsyms.c (prim_record_minimal_symbol): Update.
6979 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6980 argument.
6981 (prim_record_minimal_symbol_and_info): Likewise.
6982 * minsyms.h (prim_record_minimal_symbol_full)
6983 (prim_record_minimal_symbol_and_info): Update.
6984 * symtab.c (allocate_symbol, initialize_symbol)
6985 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6986 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6987 Update.
6988
36192a8d
TT
69892013-04-08 Tom Tromey <tromey@redhat.com>
6990
6991 PR symtab/8423:
6992 * solib-som.c (som_solib_section_offsets): Use BFD section
6993 indices. Set offsets for all sections.
6994 * somread.c (som_symtab_read): Compute BFD section for
6995 symbol. Use prim_record_minimal_symbol_and_info.
6996 (som_symfile_read): Fix comment.
6997 (struct find_section_offset_arg): New.
6998 (find_section_offset, set_section_index): New functions.
6999 (som_symfile_offsets): Use set_section_index to compute
7000 section indices.
7001
65cf3563
TT
70022013-04-08 Tom Tromey <tromey@redhat.com>
7003
7004 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7005 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7006 gdb_bfd_section_index.
7007 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7008 New functions.
7009 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7010 Declare.
7011 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7012 Update.
7013 * objfiles.c (add_to_objfile_sections_full): New function.
7014 (add_to_objfile_sections): Use it.
7015 (build_section_table): Rewrite.
7016 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7017 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7018 (struct objfile) <sections>: Update comment.
7019 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7020 is NULL.
7021 (ALL_OBJSECTIONS): Use it.
7022 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7023 * solib-frv.c (frv_relocate_main_executable): Update.
7024 * solib-target.c (solib_target_relocate_section_addresses):
7025 Use gdb_bfd_section_index.
7026 * symfile.c (build_section_addr_info_from_section_table):
7027 Use gdb_bfd_section_index.
7028 (build_section_addr_info_from_bfd, place_section): Likewise.
7029 * symtab.c (fixup_section): Update.
7030 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7031
7cbd4a93
TT
70322013-04-08 Tom Tromey <tromey@redhat.com>
7033
7034 * minsyms.h (struct bound_minimal_symbol): New.
7035 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7036 Remove objfile argument.
7037 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7038 Return bound_minimal_symbol.
7039 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7040 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7041 Return bound_minimal_symbol.
7042 (in_gnu_ifunc_stub): Update.
7043 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7044 Remove 'objfile_p' argument.
7045 (lookup_solib_trampoline_symbol_by_pc): Update.
7046 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7047 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7048 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7049 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7050 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7051 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7052 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7053 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7054 stack.c, symtab.c, tui/tui-disasm.c: Update.
7055
f85f34ed
TT
70562013-04-08 Tom Tromey <tromey@redhat.com>
7057
7058 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7059 Use symbol's obstack, not an objfile.
7060 * coffread.c (process_coff_symbol): Update.
7061 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7062 * jv-lang.c (add_class_symbol): Update.
7063 * mdebugread.c (new_symbol): Update.
7064 * minsyms.c (prim_record_minimal_symbol_full)
7065 (terminate_minimal_symbol_table): Update.
7066 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7067 * stabsread.c (define_symbol, read_enum_type): Update.
7068 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7069 Handle Ada specially.
7070 (symbol_set_language): Add 'obstack' argument.
7071 (symbol_set_names): Update.
7072 (symbol_natural_name, symbol_demangled_name): Always use
7073 ada_decode_symbol.
7074 * symtab.h (struct general_symbol_info)
7075 <language_specific::obstack>: New field.
7076 <ada_mangled>: New field.
7077 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7078 (symbol_set_language): Update.
7079
ccde22c0
TT
70802013-04-08 Tom Tromey <tromey@redhat.com>
7081
7082 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7083 Take an obstack, not an objfile.
7084 (symbol_set_names): Update.
7085 * symtab.h (symbol_set_demangled_name): Update.
7086
e623cf5d
TT
70872013-04-08 Tom Tromey <tromey@redhat.com>
7088
7089 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7090 allocate_symbol.
7091 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7092 (read_func_scope): Call allocate_template_symbol.
7093 (new_symbol_full): Call allocate_symbol.
7094 * jit.c (finalize_symtab): Call allocate_symbol.
7095 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7096 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7097 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7098 (common_block_end): Call allocate_symbol.
7099 * symtab.c (allocate_symbol, initialize_symbol)
7100 (allocate_template_symbol): New functions.
7101 * symtab.c (allocate_symbol, initialize_symbol)
7102 (allocate_template_symbol): Declare.
7103 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7104
f6de8ec2
PA
71052013-04-08 Pedro Alves <palves@redhat.com>
7106 Keith Seitz <keiths@redhat.com>
7107
7108 * breakpoint.c (create_breakpoint): Rename
7109 "parse_condition_and_thread" parameter to "parse_arg". Update
7110 describing comment. If !PARSE_ARG, then error out if ARG is not
7111 the empty string after extracting the location.
7112 * breakpoint.h (create_breakpoint): Rename
7113 "parse_condition_and_thread" parameter to "parse_arg".
7114
f65ce5fb
AR
71152013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7116
7117 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7118
cc5925ad
YQ
71192013-04-07 Yao Qi <yao@codesourcery.com>
7120
7121 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7122 and 'addr2' to CORE_ADDR.
7123 * target.c (update_current_target): Update.
7124 * target.h (struct target_ops) <to_trace_find>: Change parameter
7125 type to CORE_ADDR.
7126 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7127 'addr2' to CORE_ADDR.
7128 (tfile_trace_find): Likewise.
7129 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7130 Change local variable 'addr' to type CORE_ADDR.
7131 * tracepoint.h (tfind_1): Update declaration.
7132
d9ac0664
EZ
71332013-04-06 Eli Zaretskii <eliz@gnu.org>
7134
7135 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7136 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7137 Include main.h.
7138
7139 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7140 here...
7141 * main.h (windows_get_absolute_argv0): ...to here.
7142
02142a6c
DE
71432013-04-05 Doug Evans <dje@google.com>
7144
7145 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7146 (read_cutu_die_from_dwo): Add comments.
7147 (read_structure_type): Update comment.
7148 (read_enumeration_type, read_namespace_type): Update comment.
7149 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7150
43662968
JK
71512013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7152
7153 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7154 * Makefile.in (gdb.z): Remove.
7155 (install-only): Remove $(man1dir) and gdb.1 installation.
7156 * gdb.1: Remove.
7157
9ead1b84
JK
71582013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7159
7160 Fix compatibility with Linux kernel 3.8.3.
7161 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7162 to more inner block. Remove parsing of NUMBER from outer block.
7163 Parse NUMBER only if KEYWORD has been identified.
7164
d1794952
JK
71652013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7166
7167 Fix variable name shadowing.
7168 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7169 filename to mapsfilename and update its uses.
7170
9025569e
EZ
71712013-04-05 Eli Zaretskii <eliz@gnu.org>
7172
7173 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7174 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7175 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7176 details of the problem.
7177
c9a6ce02
PA
71782013-04-04 Pedro Alves <palves@redhat.com>
7179 Hui Zhu <hui@codesourcery.com>
7180
7181 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7182 tracepoint, reset its STEP_COUNT and call validate_actionline.
7183
5ff888ce
DE
71842013-04-03 Doug Evans <dje@google.com>
7185
bf6af496
DE
7186 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7187 read_die_and_siblings.
7188 (read_die_and_siblings): New function.
7189 (read_cutu_die_from_dwo): Dump die if requested.
7190 (read_die_and_children): Call read_full_die_1 and
7191 read_die_and_siblings_1.
7192 (read_full_die): Dump die if requested.
7193
7194 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7195
0ac5b59e
DE
7196 * dwarf2read.c (struct dwo_file): New member comp_dir.
7197 Rename member name to dwo_name. All uses updated.
7198 (hash_dwo_file): Include comp_dir in computation.
7199 (eq_dwo_file): Ditto.
7200 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7201 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7202
5ff888ce
DE
7203 * psymtab.c (read_psymtabs_with_fullname): Don't call
7204 psymtab_to_fullname if the basenames are different.
7205
ec83d211
JK
72062013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7207
7208 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7209 New entry about "fullname" presence.
7210
4f4352f7
PA
72112013-04-03 Pedro Alves <palves@redhat.com>
7212
7213 * NEWS: Mention x86_64/Cygwin as new native configuration.
7214
3d1d5ea3
DE
72152013-04-02 Doug Evans <dje@google.com>
7216
7217 * dwarf2read.c (read_structure_type): Fix typo in comment.
7218
be9a8770
PA
72192013-04-02 Pedro Alves <palves@redhat.com>
7220
7221 * NEWS: Mention "set/show debug aarch64", "set/show debug
7222 coff-pe-read" and "set/show debug mach-o".
7223
a46c1e42
PA
72242013-04-02 Pedro Alves <palves@redhat.com>
7225
7226 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7227
3ad18b19
EZ
72282013-04-02 Eli Zaretskii <eliz@gnu.org>
7229
7230 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7231 gdb_string.h is now in common/.
7232
e9f1758d
PA
72332013-04-02 Pedro Alves <palves@redhat.com>
7234
7235 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7236 under "New options".
7237
049dc89b
JK
72382013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7239
7240 Revert this patch:
7241 PR gdb/15275
7242 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7243
c33e31fd
PA
72442013-04-02 Pedro Alves <palves@redhat.com>
7245
7246 PR gdb/15275
7247
7248 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7249 (remote_serial_write): New function.
7250 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7251
ea5f3910
JW
72522013-04-01 Jiong Wang <jiwang@tilera.com>
7253
7254 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7255 "New targets" sections.
ea5f3910 7256
5c6fa7ab
DE
72572013-04-01 Doug Evans <dje@google.com>
7258
c0f78cd4
DE
7259 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7260 (process_enumeration_scope): Simplify.
7261
0186c6a7
DE
7262 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7263 type_unit_group ...
7264 (struct signatured_type): ... to here.
7265 (sig_type_ptr): New typedef.
7266 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7267 out of union 't'. All uses updated.
7268 (dw2_get_file_names_reader): Assert not called for a type unit.
7269 (dw2_get_file_names): Assert not called for a type unit or type
7270 unit group.
7271 (build_type_psymtabs_reader): Assert called for a type unit.
7272 (build_type_psymtab_dependencies): Assert called for a type unit group.
7273
5c6fa7ab
DE
7274 * dwarf2read.c (free_dwo_file): Add comment.
7275 (dwarf2_per_objfile_free): Unref dwp bfd.
7276
b3c0ad67 72772013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7278
7279 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7280 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7281 (read_pe_exported_syms): Remove unused 'exportix'.
7282 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7283 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7284 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7285
e2df1547
AR
72862013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7287
7288 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7289 (print_it_watchpoint): Remove unused 'bl'.
7290 (say_where): Remove unused 'uiout'.
7291 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7292 (bkpt_breakpoint_hit): Remove unused 'b'.
7293 (internal_bkpt_print_it): Remove unused 'uiout'.
7294 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7295
d81e75c0
TD
72962013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7297
7298 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7299 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7300
5a8b3f62
DE
73012013-03-29 Doug Evans <dje@google.com>
7302
ab5088bf
DE
7303 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7304 Delete arg is_dwp. All callers updated.
7305 (open_dwp_file): New function.
7306 (open_and_init_dwp_file): Call it.
7307 (get_dwp_file): New function.
7308 (lookup_dwo_cutu): Call it.
7309
a8ad1e57
DE
7310 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7311 unnecessary, cleanup.
7312
6296d8c1
DE
7313 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7314
b0c7bfa9
DE
7315 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7316 (lookup_dwo_unit): New function.
7317 (init_cutu_and_read_dies): Move DWO handling to new functions.
7318
c88ee1f0
DE
7319 * dwarf2read.c (struct signatured_type): Tweak comment.
7320 (struct dwo_unit): Tweak comment.
7321 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7322 (create_dwo_debug_info_hash_table): Tweak comment.
7323 (dwarf2_per_cu_offset_and_type): Tweak comment.
7324
5a8b3f62
DE
7325 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7326 missing .debug_types section.
7327
9852c492
YQ
73282013-03-29 Yao Qi <yao@codesourcery.com>
7329
7330 * corelow.c: Include "completer.h".
7331 (_initialize_corelow): Call add_target_with_completer with
7332 argument 'filename_completer'.
7333 * tracepoint.c: Likewise.
7334 * exec.c (_initialize_exec): Likewise.
7335 * target.c (add_target): Rename to ...
7336 (add_target_with_completer): ... this. Call set_cmd_completer
7337 if parameter completer is not NULL.
7338 (add_target): New.
7339 * target.h: Include "command.h".
7340 (add_target_with_completer): Declare it.
7341
af312be7
JB
73422013-03-28 Joel Brobecker <brobecker@adacore.com>
7343
7344 * coffread.c (is_import_fixup_symbol): New function.
7345 (record_minimal_symbol): Use is_import_fixup_symbol to
7346 detect import fixup symbols, and discard them.
7347
8a0459fd
DE
73482013-03-28 Doug Evans <dje@google.com>
7349
0349ea22
DE
7350 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7351 types hash table until we know we need it.
7352
f652bce2
DE
7353 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7354 index numbers.
7355
e4a48d9d
DE
7356 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7357 All callers updated.
7358 (dw2_print_stats): Print #read CUs too.
7359 (dump_die_shallow): Print signatured types better.
7360
8a0459fd
DE
7361 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7362 info_or_types_section to section. All uses updated.
7363 (struct dwo_unit): Ditto.
7364
bd3eecc3
PA
73652013-03-28 Pedro Alves <palves@redhat.com>
7366
7367 * NEWS (New options): New section.
7368 (New options): Mention set/show remote trace-status-packet.
7369 * remote.c (PACKET_qTStatus): New enumeration value.
7370 (remote_get_trace_status): Skip sending qTStatus if the packet is
7371 disabled. Use packet_ok.
7372 (_initialize_remote): Register a configuration command for
7373 qTStatus packet.
7374
41245087
DE
73752013-03-28 Doug Evans <dje@google.com>
7376
7edbb660
DE
7377 * symfile.c (find_separate_debug_file): Add comment.
7378 (terminate_after_last_dir_separator): Tweak comment.
7379
0018ea6f
DE
7380 * dwarf2read.c (create_partial_symtab): Add forward decl.
7381 (create_partial_symtab): Move to be closer to other psymtab functions.
7382 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7383
ca69b9e6
DE
7384 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7385 (compute_symtab_includes): Remove unnecessary forward declaration.
7386 (die_needs_namespace): Add comment marking group of functions for
7387 dwarf2 name computation.
7388
a9375afe
DE
7389 * typeprint.c (_initialize_typeprint): Improve type help text.
7390
41245087
DE
7391 * python/python.c (finish_python_initialization): Provide suggestion
7392 for how to tell gdb to find its python files.
7393
7f7cc265
PA
73942013-03-28 Pedro Alves <palves@redhat.com>
7395
7396 PR gdb/15294
7397
7398 * source.c (_initialize_source): Change back "set listsize" to an
7399 integer command.
7400
ec21308c
JK
74012013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7402
7403 PR gdb/15275
7404 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7405
840a9a1f
PA
74062013-03-27 Pedro Alves <palves@redhat.com>
7407
7408 * top.c (history_size): Rename to ...
7409 (history_size_setshow_var): ... this. Add comment.
7410 (show_commands): Use readline's 'history_length' instead of
7411 computing the history length by calling history_get in a loop.
7412 (set_history_size_command): Error out for sizes over INT_MAX.
7413 Restore previous history size on invalid size.
7414 (init_history): If HISTSIZE is negative, leave the history size as
7415 zero. Add comments.
7416 (init_main): Adjust.
7417
826ecc4d
PA
74182013-03-27 Pedro Alves <palves@redhat.com>
7419
7420 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7421 coff_pe_read" command to "set debug coff-pe-read".
7422
0ccfeeae
MM
74232013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7424
7425 * record.c (command_size_to_target_size): Fix size comparison.
7426 Change parameter type from pointer to integer to integer.
7427 Update all users.
7428
40653b35
PM
74292013-03-27 Pierre Muller <muller@sourceware.org>
7430
7431 * windows-nat.c (handle_output_debug_string): Avoid typecast
7432 from integer of different size warning.
7433
c62fa0e2
JB
74342013-03-26 Joel Brobecker <brobecker@adacore.com>
7435
7436 * windows-nat.c (handle_output_debug_string): Add empty line
7437 after local block variable definition.
7438
2c619be2
PA
74392013-03-26 Pedro Alves <palves@redhat.com>
7440
7441 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7442 (net_open): Make 'polls' local unsigned.
7443
1b493192
PA
74442013-03-26 Pedro Alves <palves@redhat.com>
7445
7446 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7447 a zuinteger command instead of uinteger.
7448
7ee70bf5
PA
74492013-03-26 Pedro Alves <palves@redhat.com>
7450
7451 * record-full.c (record_full_insn_num): Make it unsigned.
7452 (record_full_check_insn_num, record_full_message)
7453 (record_full_registers_change, record_full_xfer_partial): Remove
7454 record_full_insn_max_num check (it's always != 0).
7455 (record_full_info, record_full_restore): Use %u as format string.
7456 (): Use %u as format string.
7457 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7458 check (it's always != 0).
7459
dfd1f9bb
PA
74602013-03-26 Pedro Alves <palves@redhat.com>
7461
7462 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7463 and "set dcache size" commands zuinteger instead of uinteger.
7464
addb4faf
PA
74652013-03-26 Pedro Alves <palves@redhat.com>
7466
7467 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7468 command zuinteger instead of uinteger.
7469
b75bf488
PA
74702013-03-26 Pedro Alves <palves@redhat.com>
7471
7472 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7473 zuinteger instead of uinteger.
7474
42c634cb
PA
74752013-03-26 Pedro Alves <palves@redhat.com>
7476
7477 * record.c (record_insn_history_size_setshow_var)
7478 (record_call_history_size_setshow_var): New globals.
7479 (command_size_to_target_size): New function.
7480 (cmd_record_insn_history, cmd_record_call_history): Use
7481 command_size_to_target_size instead of cast.
7482 (validate_history_size, set_record_insn_history_size)
7483 (set_record_call_history_size): New functions.
7484 (_initialize_record): Install set_record_insn_history_size and
7485 set_record_call_history_size as "set" hooks of "set record
7486 instruction-history-size" and "set record
7487 function-call-history-size".
7488
1fb2e2b5
PA
74892013-03-26 Pedro Alves <palves@redhat.com>
7490
7491 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7492 use with history_max_entries use. Remove FIXME note.
7493
99c819ee
MM
74942013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7495
7496 * record-btrace.c (record_btrace_close): Call
7497 record_btrace_auto_disable.
7498
9f9e404c
JB
74992013-03-25 Joel Brobecker <brobecker@adacore.com>
7500
7501 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7502
ebcdfe33
DE
75032013-03-25 Doug Evans <dje@google.com>
7504
7505 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7506
24955f63
TT
75072013-03-25 Tom Tromey <tromey@redhat.com>
7508
7509 PR symtab/11462:
7510 * c-exp.y (exp): Add new productions for destructors after '.' and
7511 '->'.
7512 (write_destructor_name): New function.
7513
fce632b6
TT
75142013-03-25 Tom Tromey <tromey@redhat.com>
7515
7516 PR c++/9197:
7517 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7518 value_struct_elt, not lookup_struct_elt_type.
7519 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7520 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7521 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7522
a4341769
YQ
75232013-03-25 Yao Qi <yao@codesourcery.com>
7524
7525 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7526 instead of '_mkdir'.
7527
b5981e5a
EZ
75282013-03-23 Eli Zaretskii <eliz@gnu.org>
7529
7530 * windows-nat.c (windows_get_absolute_argv0): New function.
7531 * windows-nat.h: Add its prototype.
7532
7533 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7534 Use IS_DIR_SEPARATOR instead of looking for a character inside
7535 SLASH_STRING. Include filenames.h.
7536 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7537 relocate_gdb_directory works when passed gdb_program_name.
7538 Include windows-nat.h.
7539
598d3636
JK
75402013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7541
7542 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7543 * remote.c (trace_error): Remove the special handling of '2'.
7544 (readchar) <SERIAL_EOF>
7545 (readchar) <SERIAL_ERROR>
7546 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7547 (remote_get_trace_status): Call throw_exception if EX is
7548 TARGET_CLOSE_ERROR.
7549 * utils.c (perror_with_name): Rename to ...
7550 (throw_perror_with_name): ... here. New parameter errcode, describe it
7551 in the function comment.
7552 (perror_with_name): New function wrapper.
7553 * utils.h (enum errors): New stub declaration.
7554 (throw_perror_with_name): New declaration.
7555
82b821e9
PA
75562013-03-22 Pedro Alves <palves@redhat.com>
7557 Yao Qi <yao@codesourcery.com>
7558 Mark Kettenis <kettenis@gnu.org>
7559
7560 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7561 Don't let the user set the value to UINT_MAX directly.
7562 <var_integer>: Don't let the user set the value to INT_MAX
7563 directly.
7564
78a095c3
JK
75652013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7566
7567 * remote.c (remote_unpush_target): New function.
7568 (remote_open_1): Remove two pop_target calls, update one comment, add
7569 comment to target_preopen call. Replace pop_target call by
7570 remote_unpush_target call.
7571 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7572 pop_target calls by remote_unpush_target calls.
7573
3e74e146
PA
75742013-03-22 Pedro Alves <palves@redhat.com>
7575
7576 * linux-nat.c (linux_child_follow_fork): Don't call
7577 linux_enable_event_reporting.
7578 (linux_handle_extended_wait): Don't call
7579 linux_enable_event_reporting.
7580
a2213dca
PA
75812013-03-22 Pedro Alves <palves@redhat.com>
7582
7583 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7584 use it to rewrite the trampoline buffers with type gdb_byte[], and
7585 undefine the macro. Remove char* cast.
7586
bd712aed
DE
75872013-03-21 Doug Evans <dje@google.com>
7588
7589 New commands "mt set per-command {space,time,symtab} {on,off}".
7590 * NEWS: Add entry.
7591 * event-top.c: #include "maint.h".
7592 * main.c: #include "maint.h".
7593 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7594 timeval-utils.h, maint.h, cli/cli-setshow.h.
7595 (per_command_time, per_command_space): New static globals.
7596 (per_command_symtab): New static global.
7597 (per_command_setlist, per_command_showlist): New static globals.
7598 (struct cmd_stats): Move here from utils.c.
7599 (set_per_command_time): Renamed from set_display_time in utils.c
7600 and moved here. All callers updated.
7601 (set_per_command_space): Renamed from set_display_space in utils.c
7602 and moved here. All callers updated.
7603 (count_symtabs_and_blocks): New function.
7604 (report_command_stats): Moved here from utils.c. Add support for
7605 printing symtab stats. Only print data if enabled before command
7606 executed.
7607 (make_command_stats_cleanup): Ditto.
7608 (sert_per_command_cmd, show_per_command_cmd): New functions.
7609 (_initialize_maint_cmds): Add new commands
7610 mt set per-command {space,time,symtab} {on,off}.
7611 * maint.h: New file.
7612 * top.c: #include "maint.h".
7613 * utils.c (reset_prompt_for_continue_wait_time): New function.
7614 (get_prompt_for_continue_wait_time): New function.
7615 * utils.h (reset_prompt_for_continue_wait_time): Declare
7616 (get_prompt_for_continue_wait_time): Declare.
7617 (make_command_stats_cleanup): Moved to maint.h.
7618 (set_display_time, set_display_space): Moved to maint.h and renamed
7619 to set_per_command_time, set_per_command_space.
7620 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7621 parse_binary_operation and made non-static. Don't call error,
7622 just return an error marker. All callers updated.
7623 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7624
d76488d8
TT
76252013-03-21 Tom Tromey <tromey@redhat.com>
7626
7627 * symfile.c (alloc_section_addr_info): Update header. Don't set
7628 'num_sections' field.
7629 (build_section_addr_info_from_section_table): Set 'num_sections'.
7630 (build_section_addr_info_from_bfd): Likewise.
7631 (build_section_addr_info_from_objfile): Remove dead loop
7632 condition.
7633 (free_section_addr_info): Unconditionally call xfree.
7634 (relative_addr_info_to_section_offsets, addrs_section_sort)
7635 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7636 condition.
7637 (syms_from_objfile_1): Remove dead 'if' condition. Check
7638 'num_sections'.
7639 (add_symbol_file_command): Set 'num_sections'.
7640 * symfile-mem.c (symbol_file_add_from_memory): Set
7641 'num_sections'.
7642 * somread.c (som_symfile_offsets): Remove dead loop condition.
7643 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7644 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7645
a72e5169 76462013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7647
7648 * tracepoint.h (decode_agent_options): Add 'trace_string'
7649 argument.
7650 * tracepoint.c (decode_agent_options): Add 'trace_string'
7651 argument.
7652 (validate_actionline): Update.
7653 (collect_symbol): Add 'trace_string' argument.
7654 (struct add_local_symbols_data) <trace_string>: New field.
7655 (do_collect_symbol): Update.
7656 (add_local_symbols): Add 'trace_string' argument.
7657 (encode_actions_1): Update.
7658 (trace_dump_actions): Update.
7659 * dwarf2loc.c (access_memory): Update.
7660 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7661 * ax-general.c (new_agent_expr): Update.
7662 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7663 (gen_trace_for_return_address): Add argument.
7664 (trace_kludge, trace_string_kludge): Remove.
7665 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7666 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7667 (gen_trace_for_var): Add 'trace_string' argument.
7668 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7669 (gen_printf, agent_eval_command_one): Update.
7670
b2f83c08
TT
76712013-03-21 Tom Tromey <tromey@redhat.com>
7672
7673 PR exp/15109:
7674 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7675 Handle FILENAME token.
7676
9507860e
TT
76772013-03-21 Tom Tromey <tromey@redhat.com>
7678
7679 * c-exp.y (YYPRINT): Define.
7680 (c_print_token): New function.
7681
e403aa4b
TT
76822013-03-21 Tom Tromey <tromey@redhat.com>
7683
7684 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7685
af307d6a
YQ
76862013-03-21 Yao Qi <yao@codesourcery.com>
7687
7688 * ctf.c: Include "gdb_stat.h".
7689 [USE_WIN32API]: New macro 'mkdir'.
7690 (ctf_start): Use permission bits macros if they are defined.
7691
fb81d016
KS
76922013-03-20 Keith Seitz <keiths@redhat.com>
7693
7694 * breakpoint.h (struct breakpoint): Add comment to
7695 extra_string indicating that this member is mallod'd.
7696 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7697
ef0026f0
PA
76982013-03-20 Pedro Alves <palves@redhat.com>
7699
7700 PR gdb/15289
7701
7702 * cli/cli-setshow.c (do_set_command)
7703 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7704 the result of parsing the command argument. Throw error if the
7705 value is greater than UINT_MAX. Print the invalid value with
7706 plongest.
7707 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7708 result of parsing the command argument. Throw error if the value
7709 is greater than INT_MAX, not greater or equal. Also throw error
7710 if the value is less than INT_MIN. Print the invalid value with
7711 plongest.
7712 <var_zuinteger_unlimited>: Throw error if the value is greater
7713 than INT_MAX, not greater or equal.
7714 (do_show_command) <var_integer, var_zinteger,
7715 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7716
24d6c2a0
TT
77172013-03-20 Tom Tromey <tromey@redhat.com>
7718
7719 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7720 if possible.
7721 * dwarf2read.c (read_func_scope): Remove old FIXME.
7722 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7723 not LOC_COMPUTED.
7724 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7725 Unconditionally call via computed ops, if possible.
7726 * printcmd.c (address_info): Unconditionally call via computed ops,
7727 if possible.
7728 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7729 if possible.
7730 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7731 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7732 if possible.
7733
f1e6e072
TT
77342013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7735 Tom Tromey <tromey@redhat.com>
7736
7737 PR symtab/8421:
7738 * coffread.c (coff_register_index): New global.
7739 (process_coff_symbol, coff_read_enum_type): Set
7740 SYMBOL_ACLASS_INDEX.
7741 (_initialize_coffread): Initialize new global.
7742 * dwarf2loc.c (locexpr_find_frame_base_location)
7743 (dwarf2_block_frame_base_locexpr_funcs)
7744 (loclist_find_frame_base_location)
7745 (dwarf2_block_frame_base_loclist_funcs): New.
7746 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7747 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7748 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7749 (dwarf2_block_frame_base_loclist_funcs): New.
7750 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7751 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7752 globals.
7753 (read_func_scope): Update.
7754 (fixup_go_packaging, mark_common_block_symbol_computed)
7755 (var_decode_location, new_symbol_full, dwarf2_const_value):
7756 Set SYMBOL_ACLASS_INDEX.
7757 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7758 (_initialize_dwarf2_read): Initialize new globals.
7759 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7760 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7761 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7762 globals.
7763 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7764 (_initialize_mdebugread): Initialize new globals.
7765 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7766 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7767 (stab_register_index, stab_regparm_index): New globals.
7768 (define_symbol, read_enum_type, common_block_end): Set
7769 SYMBOL_ACLASS_INDEX.
7770 (_initialize_stabsread): Initialize new globals.
7771 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7772 globals.
7773 (MAX_SYMBOL_IMPLS): New define.
7774 (register_symbol_computed_impl, register_symbol_block_impl)
7775 (register_symbol_register_impl)
7776 (initialize_ordinary_address_classes): New functions.
7777 (_initialize_symtab): Call initialize_ordinary_address_classes.
7778 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7779 (struct symbol_impl): New.
7780 (SYMBOL_ACLASS_BITS): New define.
7781 (struct symbol) <aclass, ops>: Remove fields.
7782 <aclass_index>: New field.
7783 (symbol_impls): Declare.
7784 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7785 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7786 (register_symbol_computed_impl, register_symbol_block_impl)
7787 (register_symbol_register_impl): Declare.
7788 (struct symbol_computed_ops): Add location_has_loclist.
7789 (struct symbol_block_ops): New.
7790 (SYMBOL_BLOCK_OPS): New.
7791 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7792
dbccfd4c
TT
77932013-03-20 Tom Tromey <tromey@redhat.com>
7794
7795 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7796 (print_partial_symbols, recursively_search_psymtabs): Use
7797 PSYMBOL_CLASS.
7798
e3f1ad4f
PM
77992013-03-20 Pierre Muller <muller@sourceware.org>
7800
7801 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7802 addtion, subtraction, multiplication and division binary operator.
7803
460014f5
JK
78042013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7805
7806 Code cleanup.
7807 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7808 * bsd-kvm.c (bsd_kvm_close): Likewise.
7809 * bsd-uthread.c (bsd_uthread_close): Likewise.
7810 * corelow.c (core_close): Likewise.
7811 (core_close_cleanup): Remove parameter quitting from a caller.
7812 * event-top.c (async_disconnect): Likewise.
7813 * exec.c (exec_close_1): Remove parameter quitting.
7814 * go32-nat.c (go32_close): Likewise.
7815 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7816 parameter quitting from a caller.
7817 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7818 variable.
7819 (mips_linux_close): Remove parameter quitting. Remove parameter
7820 quitting from a caller.
7821 * monitor.c (monitor_close): Remove parameter quitting.
7822 * monitor.h (monitor_close): Likewise.
7823 * record-btrace.c (record_btrace_close): Likewise.
7824 * record-full.c (record_full_close): Likewise.
7825 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7826 it also from fprintf_unfiltered.
7827 * remote-mips.c (mips_close): Remove parameter quitting.
7828 (mips_detach): Remove parameter quitting from a caller.
7829 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7830 (gdbsim_close): Remove duplicate function comment. Remove parameter
7831 quitting and remove it also from printf_filtered.
7832 * remote.c (remote_close): Remove parameter quitting.
7833 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7834 * target.c (update_current_target): Remove parameter int from to_close
7835 de_fault.
7836 (push_target, unpush_target, pop_target): Remove parameter quitting from
7837 a caller.
7838 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7839 Remove parameter quitting from a caller.
7840 (target_preopen): Remove parameter quitting from a caller.
7841 (target_close): Remove parameter quitting. Remove parameter quitting
7842 from a caller two times. Remove parameter quitting also from
7843 fprintf_unfiltered.
7844 * target.h (struct target_ops): Remove parameter quitting and as int
7845 from fields to_xclose and to_close.
7846 (extern struct target_ops current_target):
7847 (target_close, pop_all_targets): Remove parameter quitting. Update the
7848 comment.
7849 (pop_all_targets_above): Remove parameter quitting.
7850 * top.c (quit_target): Remove parameter quitting from a caller.
7851 * tracepoint.c (tfile_close): Remove parameter quitting.
7852 * windows-nat.c (windows_close): Remove parameter quitting.
7853
35a7120b
CV
78542013-03-20 Corinna Vinschen <vinschen@redhat.com>
7855
7856 * windows-nat.c (handle_output_debug_string): Replace call
7857 to string_to_core_addr with call to strtoull.
7858
8249a5a9
YQ
78592013-03-20 Yao Qi <yao@codesourcery.com>
7860
7861 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7862 and write it to CTF metadata.
7863
2c15ef43
CV
78642013-03-19 Corinna Vinschen <vinschen@redhat.com>
7865
7866 * windows-nat.c (handle_output_debug_string): Change type of n to
7867 SIZE_T to avoid crash on 64 bit systems.
7868
1cdd3232
EZ
78692013-03-17 Eli Zaretskii <eliz@gnu.org>
7870
7871 * python/python-internal.h (HAVE_SNPRINTF)
7872 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7873 about redefinition of snprintf by pyerrors.h.
7874
3cb2ab1a
SE
78752013-03-15 Steve Ellcey <sellcey@mips.com>
7876
7877 * remote-sim.c (sim_command_completer): Make char arguments const.
7878
9ce98649
TT
78792013-03-15 Tom Tromey <tromey@redhat.com>
7880
7881 PR c++/15116:
7882 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7883
dccee2de
TT
78842013-03-14 Tom Tromey <tromey@redhat.com>
7885
7886 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7887 New fields.
7888 (get_file_crc): Move from symfile.c.
7889 (gdb_bfd_crc): New function.
7890 * gdb_bfd.h (gdb_bfd_crc): Declare.
7891 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7892 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7893 (separate_debug_file_exists): Use gdb_bfd_crc.
7894
cc0ea93c
TT
78952013-03-14 Tom Tromey <tromey@redhat.com>
7896
7897 * symfile.c (get_debug_link_info): Remove.
7898 (find_separate_debug_file_by_debuglink): Use
7899 bfd_get_debug_link_info.
7900
08c23b0d
TT
79012013-03-14 Tom Tromey <tromey@redhat.com>
7902
7903 * symtab.c (error_in_psymtab_expansion): New function.
7904 (lookup_symbol_aux_quick)
7905 (basic_lookup_transparent_type_quick): Remove "last resort"
7906 code. Use error_in_psymtab_expansion.
7907
288e77a7
JK
79082013-03-14 Doug Evans <dje@google.com>
7909 Jan Kratochvil <jan.kratochvil@redhat.com>
7910
7911 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7912 any successful compare_filenames_for_search or FILENAME_CMP.
7913 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7914 * symtab.c (iterate_over_some_symtabs): Likewise.
7915
8f1b8b82
JK
79162013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7917
7918 * source.c (print_source_lines_base): Make a local copy of
7919 symtab_to_fullname.
7920
23eb71e4
JK
79212013-03-14 Hui Zhu <hui_zhu@mentor.com>
7922 Jan Kratochvil <jan.kratochvil@redhat.com>
7923
7924 * source.c (print_source_lines_base): Suppress "file" for TUI.
7925
bb869963
SDJ
79262013-03-14 Keith Seitz <keiths@redhat.com>
7927 Alan Matsuoka <alanm@redhat.com>
7928
7929 PR c++/15203
7930 PR c++/15210
7931 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7932 TYPE_CODE_METHOD.
7933 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7934 symbols.
7935
d6682f9e
YQ
79362013-03-14 Yao Qi <yao@codesourcery.com>
7937
7938 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7939 status to tfile if trace is stopped by command 'tstop'.
7940
a22fa6e4
YQ
79412013-03-14 Yao Qi <yao@codesourcery.com>
7942
7943 * tracepoint.c (tfile_write_status): Write trace notes and user
7944 name into tfile if they are not NULL.
7945
d0353e76
YQ
79462013-03-14 Hui Zhu <hui@codesourcery.com>
7947 Yao Qi <yao@codesourcery.com>
7948
7949 * Makefile.in (REMOTE_OBS): Add ctf.o.
7950 (SFILES): Add ctf.c.
7951 (HFILES_NO_SRCDIR): Add ctf.h.
7952 * ctf.c, ctf.h: New files.
7953 * tracepoint.c: Include 'ctf.h'.
7954 (collect_pseudocommand): Remove static.
7955 (trace_save_command): Parse option "-ctf".
7956 Produce different trace file writers per option.
7957 Adjust output message.
7958 (trace_save_tfile, trace_save_ctf): New.
7959 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7960 * mi/mi-main.c: Include 'ctf.h'.
7961 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7962 trace_save_tfile or trace_save_ctf.
7963 * NEWS: Mention these changes.
7964
3f43bc09
YQ
79652013-03-14 Yao Qi <yao@codesourcery.com>
7966
7967 * tracepoint.c (trace_file_writer_xfree): New.
7968 (struct tfile_writer_data): New.
7969 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7970 (tfile_write_header, tfile_write_regblock_type): New.
7971 (tfile_write_status, tfile_write_uploaded_tsv): New.
7972 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7973 (tfile_write_raw_data, (tfile_end): New.
7974 (tfile_write_ops): New global variable.
7975 (TRACE_WRITE_R_BLOCK): New macro.
7976 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7977 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7978 (TRACE_WRITE_V_BLOCK): New macro.
7979 (trace_save): Add extra one parameter WRITER. Make it static.
7980 Use WRITER to writer trace.
7981 (tfile_trace_file_writer_new): New.
7982 (trace_save_command): Caller update.
7983 (trace_save_tfile): Write trace data in TFILE format.
7984 * tracepoint.h (struct trace_frame_write_ops): New.
7985 (struct trace_file_write_ops): New.
7986 (struct trace_file_writer): New.
7987 (trace_save): Remove its declaration.
7988 (trace_save_tfile): Declare it.
7989 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7990 instead of trace_save.
7991
58665b40
PA
79922013-03-13 Pedro Alves <palves@redhat.com>
7993
7994 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7995
10217050
PA
79962013-03-13 Pedro Alves <palves@redhat.com>
7997
7998 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7999 commented out code.
8000 * demangle.c (current_demangling_style_string): Make it const.
8001 (set_demangling_command): Assert the demangling style is known.
8002 Remove all handling of unknown styles. Set
8003 'current_demangling_style_string' to an element of the
8004 demangling_style_names array.
8005 (set_demangling_style): Delete.
8006 (_initialize_demangler): Set current_demangling_style_string to the
8007 element of the demangling_style_names array that corresponds to
8008 the default demangling style. Remove FIXME note. Don't call
8009 set_demangling_style.
8010 * gdb-demangle.h (set_demangling_style): Remove declaration.
8011
6f937416
PA
80122013-03-13 Pedro Alves <palves@redhat.com>
8013
8014 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8015 fields const.
8016 (ada_make_symbol_completion_list): Make "text0" parameter const.
8017 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8018 * breakpoint.c (condition_completer): Make "text" and "word"
8019 parameters const. Adjust.
8020 (check_tracepoint_command): Adjust to validate_actionline
8021 prototype change.
8022 (catch_syscall_completer): Make "text" and "word" parameters
8023 const.
8024 * cli/cli-cmds.c (show_user): Make "comname" local const.
8025 (valid_command_p): Make "command" parameter const.
8026 (alias_command): Make "alias_prefix" and "command_prefix" locals
8027 const.
8028 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8029 (add_alias_cmd): Make "name" and "oldname" parameters const.
8030 Adjust. No longer make copy of OLDNAME.
8031 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8032 (add_setshow_cmd_full, add_setshow_enum_cmd)
8033 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8034 (add_setshow_filename_cmd, add_setshow_string_cmd)
8035 (add_setshow_string_noescape_cmd)
8036 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8037 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8038 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8039 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8040 Make "name" parameter const.
8041 (help_cmd): Rename "command" parameter to "arg". New const local
8042 "command".
8043 (find_cmd): Make "command" parameter const.
8044 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8045 deprecated_cmd_warning prototype change.
8046 (undef_cmd_error): Make "cmdtype" parameter const.
8047 (lookup_cmd): Make "line" parameter const.
8048 (deprecated_cmd_warning): Change type of "text" parameter to
8049 pointer to const char, from pointer to pointer to char. Adjust.
8050 (lookup_cmd_composition): Make "text" parameter const.
8051 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8052 parameters const.
8053 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8054 const.
8055 * cli/cli-script.c (validate_comname): Make "tem" local const.
8056 (define_command): New const local "tem_c". Use it in calls to
8057 lookup_cmd.
8058 (document_command): Make "tem" and "comfull" locals const.
8059 (show_user_1): Make "prefix" and "name" parameters const.
8060 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8061 const.
8062 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8063 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8064 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8065 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8066 (complete_on_enum, add_setshow_enum_cmd)
8067 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8068 (add_setshow_filename_cmd, add_setshow_string_cmd)
8069 (add_setshow_string_noescape_cmd)
8070 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8071 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8072 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8073 Change prototypes, constifying strings.
8074 * completer.c (noop_completer, filename_completer): Make "text"
8075 and "prefix" parameters const.
8076 (location_completer, expression_completer)
8077 (complete_line_internal): Make "text" and "prefix" parameters
8078 const and adjust.
8079 (command_completer, signal_completer): Make "text" and "prefix"
8080 parameters const.
8081 * completer.h (noop_completer, filename_completer)
8082 (expression_completer, location_completer, command_completer)
8083 (signal_completer): Change prototypes.
8084 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8085 parameters const.
8086 * cp-abi.c (cp_abi_completer): Likewise.
8087 * expression.h (parse_expression_for_completion): Change
8088 prototype.
8089 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8090 parameters const.
8091 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8092 * infrun.c (handle_completer): Make "text" and "word" parameters
8093 const.
8094 * interps.c (interpreter_completer): Make "text" and "word"
8095 parameters const.
8096 * language.h (struct language_defn)
8097 <la_make_symbol_completion_list>: Make "text" and "word"
8098 parameters const.
8099 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8100 (parse_exp_in_context): Rename to ...
8101 (parse_exp_in_context_1): ... this.
8102 (parse_exp_in_context): Reimplement, with const hack from
8103 parse_exp_1.
8104 (parse_expression_for_completion): Make "string" parameter const.
8105 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8106 to pointer to const char. Adjust.
8107 (print_command_1): Make "exp" parameter const.
8108 (output_command): Rename to ...
8109 (output_command_const): ... this. Make "exp" parameter const.
8110 (output_command): Reimplement.
8111 (x_command): Adjust.
8112 (display_command): Rename "exp" parameter to "arg". New "exp"
8113 local, const version of "arg".
8114 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8115 "cmd_name" local const.
8116 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8117 call.
8118 (cmdpy_completer): Make "text" and "word" parameters const.
8119 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8120 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8121 const.
8122 * remote.c (_initialize_remote): Make "cmd_name" local const.
8123 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8124 parameters const. Adjust.
8125 (completion_list_add_fields): Make "sym_text", "text" and "word"
8126 parameters const.
8127 (struct add_name_data) <sym_text, text, word>: Make fields const.
8128 (default_make_symbol_completion_list_break_on): Make "text" and
8129 "word" parameters const. Adjust locals.
8130 (default_make_symbol_completion_list)
8131 (make_symbol_completion_list, make_symbol_completion_type)
8132 (make_symbol_completion_list_fn): Make "text" and "word"
8133 parameters const.
8134 (make_file_symbol_completion_list): Make "text", "word" and
8135 "srcfile" parameters const. Adjust locals.
8136 (add_filename_to_list): Make "text" and "word" parameters const.
8137 (struct add_partial_filename_data) <text, word>: Make fields
8138 const.
8139 (make_source_files_completion_list): Make "text" and "word"
8140 parameters const.
8141 * symtab.h (default_make_symbol_completion_list_break_on)
8142 (default_make_symbol_completion_list, make_symbol_completion_list)
8143 (make_symbol_completion_type enum type_code)
8144 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8145 (make_source_files_completion_list): Change prototype.
8146 * top.c (execute_command): Adjust to pass pointer to pointer to
8147 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8148 change.
8149 (set_verbose): Make "cmdname" local const.
8150 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8151 and adjust.
8152 (validate_actionline): Make "line" parameter a pointer to const
8153 char, and adjust.
8154 (encode_actions_1): Make "action_exp" local const, and adjust.
8155 (encode_actions): Adjust.
8156 (replace_comma): Delete.
8157 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8158 const, and adjust. Don't frob the action string while splitting
8159 it at commas. Instead, make a copy of each split substring in
8160 turn.
8161 (trace_dump_command): Adjust to validate_actionline prototype
8162 change.
8163 * tracepoint.h (decode_agent_options, decode_agent_options)
8164 (encode_actions, validate_actionline): Change prototypes.
8165 * valprint.h (output_command): Delete declaration.
8166 (output_command_const): Declare.
8167 * value.c (function_destroyer): Cast const away in xfree call.
8168
a0bcdaa7
PA
81692013-03-13 Pedro Alves <palves@redhat.com>
8170
8171 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8172 rather than casting 'const char * const *' to 'const char **'.
8173 * ada-lex.l (processInt): Make "trailer" local const. Remove
8174 'const char **' cast.
8175 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8176 locals, and use those as strtol output pointer, instead than doing
8177 invalid casts to from 'const char **' to 'char **'.
8178 (_initialize_demangle): Remove cast.
8179 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8180 locals, and use those as strtol output pointer, instead than doing
8181 invalid casts to from 'const char **' to 'char **'.
8182 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8183 casts.
8184 * stap-probe.c (stap_parse_register_operand)
8185 (stap_parse_single_operand): Likewise.
8186
8ddb1965
YQ
81872013-03-13 Yao Qi <yao@codesourcery.com>
8188
8189 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8190 the last matched 'V' blcok in trace frame.
8191
2d450646
JB
81922013-03-12 Joel Brobecker <brobecker@adacore.com>
8193
8194 * NEWS: Create a new section for the next release branch.
8195 Rename the section of the current branch, now that it has
8196 been cut.
8197
b4b79973 81982013-03-12 Joel Brobecker <brobecker@adacore.com>
8199
8200 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8201 * version.in: Bump version to 7.6.50.20130312-cvs.
8202
ee047554
KS
82032013-03-12 Keith Seitz <keiths@redhat.com>
8204
8205 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8206 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8207 Remove temporary copy of input string.
8208 (mi_execute_command_wrapper): Make "cmd" const.
8209 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8210 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8211 Use const strings.
8212 (mi_parse): Make "cmd" const.
8213 Use const strings.
8214 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8215
bbc13ae3
KS
82162013-03-12 Keith Seitz <keiths@redhat.com>
8217
8218 * ada-lang.c (ada_read_renaming_var_value): Pass const
8219 pointer to expression string to parse_exp_1.
8220 (create_excep_cond_exprs): Likewise.
8221 * ax-gdb.c (agent_eval_command_one): Likewise.
8222 (maint_agent_printf_command): Likewise.
8223 Constify much of the string handling/parsing.
8224 * breakpoint.c (set_breakpoint_condition): Pass const
8225 pointer to expression string to parse_exp_1.
8226 (update_watchpoint): Likewise.
8227 (parse_cmd_to_aexpr): Constify string handling.
8228 Pass const pointer to parse_exp_1.
8229 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8230 (find_condition_and_thread): Likewise.
8231 Make TOK const.
8232 (watch_command_1): Make "arg" const.
8233 Constify string handling.
8234 Copy the expression string instead of changing the input
8235 string.
8236 (update_breakpoint_location): Pass const pointer to
8237 parse_exp_1.
8238 * eval.c (parse_and_eval_address): Make "exp" const.
8239 (parse_to_comma_and_eval): Make "expp" const.
8240 (parse_and_eval): Make "exp" const.
8241 * expression.h (parse_expression): Make argument const.
8242 (parse_exp_1): Make first argument const.
8243 * findcmd.c (parse_find_args): Treat "args" as const.
8244 * linespec.c (parse_linespec): Pass const pointer to
8245 linespec_expression_to_pc.
8246 (linespec_expression_to_pc): Make "exp_ptr" const.
8247 * parse.c (parse_exp_1): Make "stringptr" const.
8248 Make a copy of the expression to pass to parse_exp_in_context until
8249 this whole interface can be constified.
8250 (parse_expression): Make "string" const.
8251 * printcmd.c (ui_printf): Treat "arg" as const.
8252 Handle const strings.
8253 * tracepoint.c (validate_actionline): Pass const pointer to
8254 all calls to parse_exp_1.
8255 (encode_actions_1): Likewise.
8256 * value.h (parse_to_comma_and_eval): Make argument const.
8257 (parse_and_eval_address): Likewise.
8258 (parse_and_eval): Likewise.
8259 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8260 (varobj_set_value): Likewise.
8261 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8262 constify string handling.
8263 Pass const pointers to parse_and_eval_address and
8264 parse_to_comman_and_eval.
8265 * cli/cli-utils.c (skip_to_space): Rename to ...
8266 (skip_to_space_const): ... this. Handle const strings.
8267 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8268 skip_to_space_const.
8269 (skip_to_space_const): Declare.
8270 * common/format.c (parse_format_string): Make "arg" const.
8271 Handle const strings.
8272 * common/format.h (parse_format_string): Make "arg" const.
8273 * gdbserver/ax.c (ax_printf): Make "format" const.
8274 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8275 of the expression string.
8276
f3cec7e6
HZ
82772013-03-12 Hui Zhu <hui@codesourcery.com>
8278
8279 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8280
9df7235c
HZ
82812013-03-12 Yao Qi <yao@codesourcery.com>
8282 Hui Zhu <hui@codesourcery.com>
8283
8284 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8285 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8286 DW_OP_deref_size.
8287
82d049ab
PH
82882013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8289
5f8e0b8f
MF
8290 * ada-lex.l (rules): Only recognize 'thread' as a
8291 delimiter when followed by numerals, as for c-exp.y.
8292 Use new rewind_to_char function to rewind the input for
8293 expression-delimiting tokens.
8294 (rewind_to_char): New function.
82d049ab 8295
8c1fb155
JK
82962013-03-11 Pedro Alves <palves@redhat.com>
8297 Jan Kratochvil <jan.kratochvil@redhat.com>
8298
8299 * configure: Regenerate.
8300 * configure.ac (check dynamic export flag): Link python test with
8301 $PYTHON_LIBS.
8302
cc81e1c6
DE
83032013-03-11 Doug Evans <dje@google.com>
8304 Keith Seitz <keiths@redhat.com>
8305
8306 * linespec.c (find_linespec_symbols): Call find_function_symbols
8307 first, and then call lookup_prefix_sym/find_method.
8308
39086a0e
PA
83092013-03-11 Pedro Alves <palves@redhat.com>
8310
8311 * charset.c (convert_between_encodings): Don't cast between
8312 different pointer to pointer types. Instead, make the 'inp' local
8313 be of the type iconv expects.
8314 (wchar_iterate): Don't cast between different pointer to pointer
8315 types. Instead, use new pointer local of the type iconv expects.
8316 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8317 Add new local of type char pointer, and use it to get a
8318 char/string view of the byte buffer, instead of casting between
8319 pointer to pointer types.
8320
90585175
HAQ
83212013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8322
8323 * remote.c (remote_set_trace_buffer_size): Move != operator
8324 to the start of next line to fix an ARI warning.
8325
59ea5688
MM
83262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8327
8328 * NEWS: Add record changes.
8329
946287b7
MM
83302013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8331
8332 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8333 the instruction history disassembly.
8334 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8335 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8336
afedecd3
MM
83372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8338
8339 * Makefile.in (SFILES): Add record-btrace.c
8340 (COMMON_OBS): Add record-btrace.o
8341 * record-btrace.c: New.
8342 * objfiles.c: Include btrace.h.
8343 (free_objfile): call btrace_free_objfile.
8344
15984c13
MM
83452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8346
8347 * target.c (target_call_history, target_call_history_from,
8348 target_call_history_range): New.
8349 * target.h (target_ops) <to_call_history, to_call_history_from,
8350 to_call_history_range>: New fields.
8351 (target_call_history, target_call_history_from,
8352 target_call_history_range): New declaration.
8353 * record.c (get_call_history_modifiers, cmd_record_call_history,
8354 record_call_history_size): New.
8355 (_initialize_record): Add the "record function-call-history" command.
8356 Add "set/show record function-call-history-size" commands.
8357 * record.h (record_print_flag): New.
8358
67c86d06
MM
83592013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8360
8361 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8362 to_insn_history_range>: New fields.
8363 (target_insn_history): New.
8364 (target_insn_history_from): New.
8365 (target_insn_history_range): New.
8366 * target.c (target_insn_history): New.
8367 (target_insn_history_from): New.
8368 (target_insn_history_range): New.
8369 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8370 (record_insn_history_size): New.
8371 (get_insn_number): New.
8372 (get_context_size): New.
8373 (no_chunk): New.
8374 (get_insn_history_modifiers): New.
8375 (cmd_record_insn_history): New.
8376 (_initialize_record): Add "set/show record instruction-history-size"
8377 command. Add "record instruction-history" command.
8378
7c1687a9
MM
83792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8380
8381 * record.h (record_disconnect): New.
8382 (record_detach): New.
8383 (record_mourn_inferior): New.
8384 (record_kill): New.
8385 * record-full.c (record_disconnect, record_detach,
8386 record_mourn_inferior, record_kill): Move to...
8387 * record.c: ...here.
8388 (DEBUG): New.
8389 (record_stop): New.
8390 (record_unpush): New.
8391 (cmd_record_stop): Call record_stop. Replace unpush_target
8392 call with record_unpush call.
8393 (record_disconnect, record_detach): Assert that the target
8394 is of record stratum. Call record_unpush, record_stop, and
8395 DEBUG.
8396 (record_mourn_inferior, record_kill): Assert that the target
8397 is of record stratum. Call record_unpush and DEBUG.
8398
25ea693b
MM
83992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8400
8401 * record-full.h, record-full.c (record_memory_query): Rename
8402 to ...
8403 (record_full_memory_query): ...this. Update all users.
8404 (record_arch_list_add_reg): Rename to ...
8405 (record_full_arch_list_add_reg): ...this. Update all users.
8406 (record_arch_list_add_mem): Rename to ...
8407 (record_full_arch_list_add_mem): ...this. Update all users.
8408 (record_arch_list_add_end): Rename to ...
8409 (record_full_arch_list_add_end): ...this. Update all users.
8410 (record_gdb_operation_disable_set): Rename to ...
8411 (record_full_gdb_operation_disable_set): ...this.
8412 Update all users.
8413
88d1aa9d
MM
84142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8415
8416 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8417 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8418 (RECORD_IS_REPLAY): Renamed to ...
8419 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8420 (RECORD_FILE_MAGIC): Renamed to ...
8421 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8422 (record_mem_entry): Renamed to ...
8423 (record_full_mem_entry): ... this. Updated all users.
8424 (record_reg_entry): Renamed to ...
8425 (record_full_reg_entry): ... this. Updated all users.
8426 (record_end_entry): Renamed to ...
8427 (record_full_end_entry): ... this. Updated all users.
8428 (record_type) <record_end, record_reg, record_mem>: Renamed
8429 to ...
8430 (record_full_type) <record_full_end, record_full_reg,
8431 record_full_mem>: ... this. Updated all users.
8432 (record_entry): Renamed to ...
8433 (record_full_entry): ... this. Updated all users.
8434 (record_core_buf_entry): Renamed to ...
8435 (record_full_core_buf_entry): ... this. Updated all users.
8436 (record_core_regbuf): Renamed to ...
8437 (record_full_core_regbuf): ... this. Updated all users.
8438 (record_core_start): Renamed to ...
8439 (record_full_core_start): ... this. Updated all users.
8440 (record_core_end): Renamed to ...
8441 (record_full_core_end): ... this. Updated all users.
8442 (record_core_buf_list): Renamed to ...
8443 (record_full_core_buf_list): ... this. Updated all users.
8444 (record_first): Renamed to ...
8445 (record_full_first): ... this. Updated all users.
8446 (record_list): Renamed to ...
8447 (record_full_list): ... this. Updated all users.
8448 (record_arch_list_head): Renamed to ...
8449 (record_full_arch_list_head): ... this. Updated all users.
8450 (record_arch_list_tail): Renamed to ...
8451 (record_full_arch_list_tail): ... this. Updated all users.
8452 (record_stop_at_limit): Renamed to ...
8453 (record_full_stop_at_limit): ... this. Updated all users.
8454 (record_insn_max_num): Renamed to ...
8455 (record_full_insn_max_num): ... this. Updated all users.
8456 (record_insn_num): Renamed to ...
8457 (record_full_insn_num): ... this. Updated all users.
8458 (record_insn_count): Renamed to ...
8459 (record_full_insn_count): ... this. Updated all users.
8460 (record_ops): Renamed to ...
8461 (record_full_ops): ... this. Updated all users.
8462 (record_core_ops): Renamed to ...
8463 (record_full_core_ops): ... this. Updated all users.
8464 (set_record_cmdlist): Renamed to ...
8465 (set_record_full_cmdlist): ... this. Updated all users.
8466 (show_record_cmdlist): Renamed to ...
8467 (show_record_full_cmdlist): ... this. Updated all users.
8468 (record_cmdlist): Renamed to ...
8469 (record_full_cmdlist): ... this. Updated all users.
8470 (record_beneath_to_resume_ops): Renamed to ...
8471 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8472 (record_beneath_to_resume): Renamed to ...
8473 (record_full_beneath_to_resume): ... this. Updated all users.
8474 (record_beneath_to_wait_ops): Renamed to ...
8475 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8476 (record_beneath_to_wait): Renamed to ...
8477 (record_full_beneath_to_wait): ... this. Updated all users.
8478 (record_beneath_to_store_registers_ops): Renamed to ...
8479 (record_full_beneath_to_store_registers_ops): ... this.
8480 Updated all users.
8481 (record_beneath_to_store_registers): Renamed to ...
8482 (record_full_beneath_to_store_registers): ... this.
8483 Updated all users.
8484 (record_beneath_to_xfer_partial_ops): Renamed to ...
8485 (record_full_beneath_to_xfer_partial_ops): ... this.
8486 Updated all users.
8487 (record_beneath_to_xfer_partial): Renamed to ...
8488 (record_full_beneath_to_xfer_partial): ... this.
8489 Updated all users.
8490 (record_beneath_to_insert_breakpoint): Renamed to ...
8491 (record_full_beneath_to_insert_breakpoint): ... this.
8492 Updated all users.
8493 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8494 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8495 Updated all users.
8496 (record_beneath_to_stopped_data_address): Renamed to ...
8497 (record_full_beneath_to_stopped_data_address): ... this.
8498 Updated all users.
8499 (record_beneath_to_async): Renamed to ...
8500 (record_full_beneath_to_async): ... this. Updated all users.
8501 (record_goto_insn): Renamed to ...
8502 (record_full_goto_insn): ... this. Updated all users.
8503 (record_save): Renamed to ...
8504 (record_full_save): ... this. Updated all users.
8505 (record_reg_alloc): Renamed to ...
8506 (record_full_reg_alloc): ... this. Updated all users.
8507 (record_reg_release): Renamed to ...
8508 (record_full_reg_release): ... this. Updated all users.
8509 (record_mem_alloc): Renamed to ...
8510 (record_full_mem_alloc): ... this. Updated all users.
8511 (record_mem_release): Renamed to ...
8512 (record_full_mem_release): ... this. Updated all users.
8513 (record_end_alloc): Renamed to ...
8514 (record_full_end_alloc): ... this. Updated all users.
8515 (record_end_release): Renamed to ...
8516 (record_full_end_release): ... this. Updated all users.
8517 (record_entry_release): Renamed to ...
8518 (record_full_entry_release): ... this. Updated all users.
8519 (record_list_release): Renamed to ...
8520 (record_full_list_release): ... this. Updated all users.
8521 (record_list_release_following): Renamed to ...
8522 (record_full_list_release_following): ... this.
8523 Updated all users.
8524 (record_list_release_first): Renamed to ...
8525 (record_full_list_release_first): ... this. Updated all users.
8526 (record_arch_list_add): Renamed to ...
8527 (record_full_arch_list_add): ... this. Updated all users.
8528 (record_get_loc): Renamed to ...
8529 (record_full_get_loc): ... this. Updated all users.
8530 (record_check_insn_num): Renamed to ...
8531 (record_full_check_insn_num): ... this. Updated all users.
8532 (record_arch_list_cleanups): Renamed to ...
8533 (record_full_arch_list_cleanups): ... this. Updated all users.
8534 (record_message): Renamed to ...
8535 (record_full_message): ... this. Updated all users.
8536 (record_message_wrapper): Renamed to ...
8537 (record_full_message_wrapper): ... this. Updated all users.
8538 (record_message_wrapper_safe): Renamed to ...
8539 (record_full_message_wrapper_safe): ... this. Updated all users.
8540 (record_gdb_operation_disable): Renamed to ...
8541 (record_full_gdb_operation_disable): ... this. Updated all users.
8542 (record_hw_watchpoint): Renamed to ...
8543 (record_full_hw_watchpoint): ... this. Updated all users.
8544 (record_exec_insn): Renamed to ...
8545 (record_full_exec_insn): ... this. Updated all users.
8546 (record_restore): Renamed to ...
8547 (record_full_restore): ... this. Updated all users.
8548 (record_async_inferior_event_token): Renamed to ...
8549 (record_full_async_inferior_event_token): ... this.
8550 Updated all users.
8551 (record_async_inferior_event_handler): Renamed to ...
8552 (record_full_async_inferior_event_handler): ... this.
8553 Updated all users.
8554 (record_core_open_1): Renamed to ...
8555 (record_full_core_open_1): ... this. Updated all users.
8556 (record_open_1): Renamed to ...
8557 (record_full_open_1): ... this. Updated all users.
8558 (record_open): Renamed to ...
8559 (record_full_open): ... this. Updated all users.
8560 (record_close): Renamed to ...
8561 (record_full_close): ... this. Updated all users.
8562 (record_resume_step): Renamed to ...
8563 (record_full_resume_step): ... this. Updated all users.
8564 (record_resumed): Renamed to ...
8565 (record_full_resumed): ... this. Updated all users.
8566 (record_execution_dir): Renamed to ...
8567 (record_full_execution_dir): ... this. Updated all users.
8568 (record_resume): Renamed to ...
8569 (record_full_resume): ... this. Updated all users.
8570 (record_get_sig): Renamed to ...
8571 (record_full_get_sig): ... this. Updated all users.
8572 (record_sig_handler): Renamed to ...
8573 (record_full_sig_handler): ... this. Updated all users.
8574 (record_wait_cleanups): Renamed to ...
8575 (record_full_wait_cleanups): ... this. Updated all users.
8576 (record_wait_1): Renamed to ...
8577 (record_full_wait_1): ... this. Updated all users.
8578 (record_wait): Renamed to ...
8579 (record_full_wait): ... this. Updated all users.
8580 (record_stopped_by_watchpoint): Renamed to ...
8581 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8582 (record_disconnect): Renamed to ...
8583 (record_full_disconnect): ... this. Updated all users.
8584 (record_detach): Renamed to ...
8585 (record_full_detach): ... this. Updated all users.
8586 (record_mourn_inferior): Renamed to ...
8587 (record_full_mourn_inferior): ... this. Updated all users.
8588 (record_kill): Renamed to ...
8589 (record_full_kill): ... this. Updated all users.
8590 (record_stopped_data_address): Renamed to ...
8591 (record_full_stopped_data_address): ... this. Updated all users.
8592 (record_registers_change): Renamed to ...
8593 (record_full_registers_change): ... this. Updated all users.
8594 (record_store_registers): Renamed to ...
8595 (record_full_store_registers): ... this. Updated all users.
8596 (record_xfer_partial): Renamed to ...
8597 (record_full_xfer_partial): ... this. Updated all users.
8598 (record_breakpoint): Renamed to ...
8599 (record_full_breakpoint): ... this. Updated all users.
8600 (record_breakpoint_p): Renamed to ...
8601 (record_full_breakpoint_p): ... this. Updated all users.
8602 (record_breakpoints): Renamed to ...
8603 (record_full_breakpoints): ... this. Updated all users.
8604 (record_sync_record_breakpoints): Renamed to ...
8605 (record_full_sync_record_breakpoints): ... this.
8606 Updated all users.
8607 (record_init_record_breakpoints): Renamed to ...
8608 (record_full_init_record_breakpoints): ... this.
8609 Updated all users.
8610 (record_insert_breakpoint): Renamed to ...
8611 (record_full_insert_breakpoint): ... this. Updated all users.
8612 (record_remove_breakpoint): Renamed to ...
8613 (record_full_remove_breakpoint): ... this. Updated all users.
8614 (record_can_execute_reverse): Renamed to ...
8615 (record_full_can_execute_reverse): ... this. Updated all users.
8616 (record_get_bookmark): Renamed to ...
8617 (record_full_get_bookmark): ... this. Updated all users.
8618 (record_goto_bookmark): Renamed to ...
8619 (record_full_goto_bookmark): ... this. Updated all users.
8620 (record_async): Renamed to ...
8621 (record_full_async): ... this. Updated all users.
8622 (record_can_async_p): Renamed to ...
8623 (record_full_can_async_p): ... this. Updated all users.
8624 (record_is_async_p): Renamed to ...
8625 (record_full_is_async_p): ... this. Updated all users.
8626 (record_execution_direction): Renamed to ...
8627 (record_full_execution_direction): ... this. Updated all users.
8628 (record_info): Renamed to ...
8629 (record_full_info): ... this. Updated all users.
8630 (record_delete): Renamed to ...
8631 (record_full_delete): ... this. Updated all users.
8632 (record_is_replaying): Renamed to ...
8633 (record_full_is_replaying): ... this. Updated all users.
8634 (record_goto_entry): Renamed to ...
8635 (record_full_goto_entry): ... this. Updated all users.
8636 (record_goto_begin): Renamed to ...
8637 (record_full_goto_begin): ... this. Updated all users.
8638 (record_goto_end): Renamed to ...
8639 (record_full_goto_end): ... this. Updated all users.
8640 (record_goto): Renamed to ...
8641 (record_full_goto): ... this. Updated all users.
8642 (init_record_ops): Renamed to ...
8643 (init_record_full_ops): ... this. Updated all users.
8644 (record_core_resume): Renamed to ...
8645 (record_full_core_resume): ... this. Updated all users.
8646 (record_core_kill): Renamed to ...
8647 (record_full_core_kill): ... this. Updated all users.
8648 (record_core_fetch_registers): Renamed to ...
8649 (record_full_core_fetch_registers): ... this. Updated all users.
8650 (record_core_prepare_to_store): Renamed to ...
8651 (record_full_core_prepare_to_store): ... this. Updated all users.
8652 (record_core_store_registers): Renamed to ...
8653 (record_full_core_store_registers): ... this. Updated all users.
8654 (record_core_xfer_partial): Renamed to ...
8655 (record_full_core_xfer_partial): ... this. Updated all users.
8656 (record_core_insert_breakpoint): Renamed to ...
8657 (record_full_core_insert_breakpoint): ... this. Updated all users.
8658 (record_core_remove_breakpoint): Renamed to ...
8659 (record_full_core_remove_breakpoint): ... this. Updated all users.
8660 (record_core_has_execution): Renamed to ...
8661 (record_full_core_has_execution): ... this. Updated all users.
8662 (init_record_core_ops): Renamed to ...
8663 (init_record_full_core_ops): ... this. Updated all users.
8664 (cmd_record_restore): Renamed to ...
8665 (cmd_record_full_restore): ... this. Updated all users.
8666 (record_save_cleanups): Renamed to ...
8667 (record_full_save_cleanups): ... this. Updated all users.
8668 (cmd_record_start): Renamed to ...
8669 (cmd_record_full_start): ... this. Updated all users.
8670 (set_record_insn_max_num): Renamed to ...
8671 (set_record_full_insn_max_num): ... this. Updated all users.
8672 (set_record_command): Renamed to ...
8673 (set_record_full_command): ... this. Updated all users.
8674 (show_record_command): Renamed to ...
8675 (show_record_full_command): ... this. Updated all users.
8676 (_initialize_record): Renamed to ...
8677 (_initialize_record_full): ... this. Updated all users.
8678
d02ed0bb
MM
86792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8680
8681 * record.h: Split into this and ...
8682 * record-full.h: ... this.
8683 * record.c: Split into this and ...
8684 * record-full.c: ... this.
8685 * target.h (target_ops): Add new fields to_info_record,
8686 to_save_record, to_delete_record, to_record_is_replaying,
8687 to_goto_record_begin, to_goto_record_end, to_goto_record.
8688 (target_info_record): New.
8689 (target_save_record): New.
8690 (target_supports_delete_record): New.
8691 (target_delete_record): New.
8692 (target_record_is_replaying): New.
8693 (target_goto_record_begin): New.
8694 (target_goto_record_end): New.
8695 (target_goto_record): New.
8696 * target.c (target_info_record): New.
8697 (target_save_record): New.
8698 (target_supports_delete_record): New.
8699 (target_delete_record): New.
8700 (target_record_is_replaying): New.
8701 (target_goto_record_begin): New.
8702 (target_goto_record_end): New.
8703 (target_goto_record): New.
8704 * record.h: Declare struct cmd_list_element.
8705 (record_cmdlist): New declaration.
8706 (set_record_cmdlist): New declaration.
8707 (show_record_cmdlist): New declaration.
8708 (info_record_cmdlist): New declaration.
8709 (cmd_record_goto): New declaration.
8710 * record.c: Remove unnecessary includes.
8711 Include inferior.h.
8712 (cmd_record_goto): Remove declaration.
8713 (record_cmdlist): Now extern. Initialize.
8714 (set_record_cmdlist): Now extern. Initialize.
8715 (show_record_cmdlist): Now extern. Initialize.
8716 (info_record_cmdlist): Now extern. Initialize.
8717 (find_record_target): New.
8718 (require_record_target): New.
8719 (cmd_record_start): Update.
8720 (cmd_record_delete): Remove target-specific code.
8721 Call target_delete_record.
8722 (cmd_record_stop): Unpush any record target.
8723 (set_record_insn_max_num): Move to record-full.c
8724 (set_record_command): Add comment.
8725 (show_record_command): Add comment.
8726 (info_record_command): Update comment.
8727 Remove target-specific code.
8728 Call the record target's to_info_record.
8729 (cmd_record_start): New.
8730 (cmd_record_goto): Now extern.
8731 Remove target-specific code.
8732 Call target_goto_begin, target_goto_end, or target_goto.
8733 (_initialize_record): Move record target ops initialization to
8734 record-full.c.
8735 Change "record" command help text.
8736 Move "record restore", "record set", and "record show" commands to
8737 record-full.c.
8738 * Makefile.in (SFILES): Add record-full.c.
8739 (HFILES_NO_SRCDIR): Add record-full.h.
8740 (COMMON_OBS): Add record-full.o.
8741 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8742 * arm-tdep.c: Include record-full.h.
8743 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8744 * i386-tdep.c: Include record-full.h.
8745 * infrun.c: Include record-full.h.
8746 * linux-record.c: Include record-full.h.
8747 * moxie-tdep.c: Include record-full.h.
8748 * record-full.c: Include record-full.h.
8749 Change module comment.
8750 (set_record_full_cmdlist): New.
8751 (show_record_full_cmdlist): New.
8752 (record_full_cmdlist): New.
8753 (record_goto_insn): New declaration.
8754 (record_save): New declaration.
8755 (record_check_insn_num): Change query string.
8756 (record_info): New.
8757 (record_delete): New.
8758 (record_is_replaying): New.
8759 (record_goto_entry): New.
8760 (record_goto_begin): New.
8761 (record_goto_end): New.
8762 (record_goto): New.
8763 (init_record_ops): Update.
8764 (init_record_core_ops): Update.
8765 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8766 (cmd_record_start): New.
8767 (set_record_insn_max_num): Moved from record.c
8768 (set_record_full_command): New.
8769 (show_record_full_command): New.
8770 (_initialize_record_full): New.
8771
b48d48eb
MM
87722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8773
8774 * target.h (add_deprecated_target_alias): New.
8775 * target.c (add_deprecated_target_alias): New.
8776
a950d57c
MM
87772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8778
8779 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8780 and signal.h.
8781 (linux_supports_btrace): Add kernel and
8782 cpuid check.
8783 (kernel_supports_btrace): New function.
8784 (cpu_supports_btrace): New function.
8785 (intel_supports_btrace): New function.
8786
9accd112
MM
87872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8788
8789 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8790 * remote.c: Include btrace.h.
8791 (struct btrace_target_info): New struct.
8792 (remote_supports_btrace): New function.
8793 (send_Qbtrace): New function.
8794 (remote_enable_btrace): New function.
8795 (remote_disable_btrace): New function.
8796 (remote_teardown_btrace): New function.
8797 (remote_read_btrace): New function.
8798 (init_remote_ops): Add btrace ops.
8799 (enum <unnamed>): Add btrace packets.
8800 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8801 (_initialize_remote): Add packet configuration for branch tracing.
8802
c12a2917
MM
88032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8804
8805 * features/btrace.dtd: New file.
8806 * Makefile.in (XMLFILES): Add btrace.dtd.
8807 * btrace.h (parse_xml_btrace): New declaration.
8808 * btrace.c: Include xml-support.h.
8809 (parse_xml_btrace): New function.
8810 (parse_xml_btrace_block): New function.
8811 (block_attributes): New struct.
8812 (btrace_attributes): New struct.
8813 (btrace_children): New struct.
8814 (btrace_elements): New struct.
8815
3e3aea48
MM
88162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8817
8818 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8819 (amd64_linux_enable_btrace): New.
8820 (amd64_linux_disable_btrace): New.
8821 (amd64_linux_teardown_btrace): New.
8822 (_initialize_amd64_linux_nat): Initialize btrace ops.
8823 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8824 (i386_linux_enable_btrace): New.
8825 (i386_linux_disable_btrace): New.
8826 (i386_linux_teardown_btrace): New.
8827 (_initialize_i386_linux_nat): Initialize btrace ops.
8828 * config/i386/linux.mh: Add linux-btrace.o.
8829 * config/i386/linux64.mh: Add linux-btrace.o.
8830
7c97f91e
MM
88312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8832
8833 * common/linux_btrace.h: New file.
8834 * common/linux_btrace.c: New file.
8835 * Makefile.in (SFILES): Add btrace.c.
8836 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8837 (COMMON_OBS): Add btrace.o.
8838 (linux-btrace.o): New rule.
8839
1999790b 88402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
8841
8842 * target.h: Include btrace.h.
8843 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8844 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8845 * target.c (target_supports_btrace): New function.
8846 (target_enable_btrace): New function.
8847 (target_disable_btrace): New function.
8848 (target_teardown_btrace): New function.
8849 (target_read_btrace): New function.
8850 * btrace.h: New file.
8851 * btrace.c: New file.
8852 * Makefile.in: Add btrace.c.
8853 * gdbthread.h: Include btrace.h.
8854 (struct thread_info): Add btrace field.
8855 * thread.c: Include btrace.h.
8856 (clear_thread_inferior_resources): Call target_teardown_btrace.
8857 * common/btrace-common.h: New file.
8858
61a31a67
JK
88592013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8860
8861 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8862 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8863 kill_status to outer block.
8864
05c56a9d
JK
88652013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8866
8867 Fix entry-values if the callee called a noreturn function.
8868 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8869 get_frame_address_in_block. Add new comment.
8870
9112db09
JK
88712013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8872
8873 Fix entry-values in C++ across CUs.
8874 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8875 lookup_minimal_symbol. Add a comment.
8876 * dwarf2read.c
8877 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8878 DW_AT_linkage_name.
8879
9b67fcec
YQ
88802013-03-08 Yao Qi <yao@codesourcery.com>
8881
8882 * tracepoint.c (_initialize_tracepoint): Indent the code.
8883
6221be90
PA
88842013-03-08 Pedro Alves <palves@redhat.com>
8885
8886 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8887 (parse_find_args, find_command): Change type of pattern buffer
8888 locals to 'gdb_byte *'.
8889
be9a119c 88902013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
8891 Hafiz Abid Qadeer <abidh@codesourcery.com>
8892
8893 * NEWS: Mention set and show trace-buffer-size commands.
8894 Mention new packet.
8895 * target.h (struct target_ops): New method
8896 to_set_trace_buffer_size.
8897 (target_set_trace_buffer_size): New macro.
8898 * target.c (update_current_target): Set up new method.
8899 * tracepoint.c (trace_buffer_size): New global.
8900 (start_tracing): Send it to the target.
8901 (set_trace_buffer_size): New function.
8902 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8903 * remote.c (remote_set_trace_buffer_size): New function.
8904 (_initialize_remote): Use it.
8905 (QTBuffer:size) New remote command.
8906 (PACKET_QTBuffer_size): New enum.
8907 (remote_protocol_features): Add an entry for
8908 PACKET_QTBuffer_size.
8909
7da3ab79
TT
89102013-03-08 Tom Tromey <tromey@redhat.com>
8911
8912 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8913 variable.
8914
0c1f71e7
PA
89152013-03-07 Pedro Alves <palves@redhat.com>
8916
8917 * target.c (target_read_stralloc, target_fileio_read_alloc):
8918 *Cast pointer to 'gdb_byte *' in target call.
8919
c8af03a2
PA
89202013-03-07 Pedro Alves <palves@redhat.com>
8921
8922 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8923 call.
8924
529480d0
KS
89252013-03-07 Keith Seitz <keiths@redhat.com>
8926
8927 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8928 (trace_pass_command): Likewise.
8929 * cli/cli-cmds.c: Include cli/cli-utils.h.
8930 (source_command): Use skip-spaces.
8931 (disassemble_command): Likewise.
8932 * findcmd.c: Include cli/cli-utils.h.
8933 (parse_find_args): Use skip_spaces.
8934 * go32-nat.c: Include cli/cli-utils.h.
8935 (go32_sldt): Use skip_spaces.
8936 (go32_sgdt): Likewise.
8937 (go32_sidt): Likewise.
8938 (go32_pde): Likewise.
8939 (go32_pte): Likewise.
8940 (go32_pte_for_address): Likewise.
8941 * infcmd.c: Include cli/cli-utils.h.
8942 (registers_info): Use skip_spaces.
8943 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8944 (linux_info_proc): Likewise.
8945 * linux-thread-db.c: Include cli/cli-utils.h.
8946 (info_auto_load_libthread_db): Use skip_spaces_const.
8947 * m32r-rom.c: Include cli/cli-utils.h.
8948 (m32r_upload_command): Use skip_spaces.
8949 * maint.c: Include cli/cli-utils.h.
8950 (maintenance_translate_address): Use skip_spaces.
8951 * mi/mi-parse.c: Include cli/cli-utils.h.
8952 (mi_parse_argv): Use skip_spaces.
8953 (mi_parse): Likewise.
8954 * minsyms.c: Include cli/cli-utils.h.
8955 (msymbol_hash_iw): Use skip_spaces_const.
8956 * objc-lang.c: Include cli/cli-utils.h.
8957 (parse_selector): Use skip_spaces.
8958 (parse_method): Likewise.
8959 * python/python.c: Include cli/cli-utils.h.
8960 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8961 (python_command)[HAVE_PYTHON]: Likewise.
8962 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8963 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8964 (m32r_load): Use skip_spaces.
8965 * serial.c: Include cli/cli-utils.h.
8966 (serial_open): Use skip_spaces_const.
8967 * stack.c: Include cli/cli-utils.h.
8968 (parse_frame_specification_1): Use skip_spaces_const.
8969 * symfile.c: Include cli/cli-utils.h.
8970 (set_ext_lang_command): Use skip_spaces.
8971 * symtab.c: Include cli/cli-utils.h.
8972 (rbreak_command): Use skip_spaces.
8973 * thread.c (thread_name_command): Use skip_spaces.
8974 * tracepoint.c (validate_actionline): Use skip_spaces.
8975 (encode_actions_1): Likewise.
8976 (trace_find_range_command): Likewise.
8977 (trace_find_outside_command): Likewise.
8978 (trace_dump_actions): Likewise.
8979
ac91cd70
PA
89802013-03-07 Pedro Alves <palves@redhat.com>
8981
8982 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8983 * expprint.c (print_subexp_standard): Likewise.
8984 * utils.c (host_char_to_target): Likewise.
8985 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8986 * varobj.c (value_get_print_value): Change type of local to char*.
8987 Cast it gdb_byte * in call to language printer.
8988
2898e560
PA
89892013-03-07 Pedro Alves <palves@redhat.com>
8990
8991 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8992 gdb_byte *'.
8993 (make_wchar_iterator): Remove cast to char*.
8994 (wchar_iterate): Change type of local.
8995
a09b4448
PA
89962013-03-07 Pedro Alves <palves@redhat.com>
8997
8998 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8999 for 'regcache->register_status'.
9000
20ced3e4
PA
90012013-03-07 Pedro Alves <palves@redhat.com>
9002
c2d6a675 9003 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9004 int.
9005
fe106009
PA
90062013-03-07 Pedro Alves <palves@redhat.com>
9007
9008 * stap-probe.c (handle_stap_probe): Add cast to char*.
9009
8ac2c12b
PA
90102013-03-07 Pedro Alves <palves@redhat.com>
9011
9012 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9013 RECORD_MSGRCV>: Pass a signed variable to
9014 regcache_raw_read_signed, instead of an unsigned one.
9015
99f0a309
PA
90162013-03-07 Pedro Alves <palves@redhat.com>
9017
9018 * remote-notif.c (notif_debug): Change type to int.
9019 * remote-notif.h (notif_debug): Likewise.
9020
964b8317
PA
90212013-03-07 Pedro Alves <palves@redhat.com>
9022
9023 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9024
f0cc8ad4
PA
90252013-03-07 Pedro Alves <palves@redhat.com>
9026
9027 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9028 * remote.h (hex2bin, bin2hex): ... here.
9029 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9030
77dec115
EZ
90312013-03-07 Eli Zaretskii <eliz@gnu.org>
9032
9033 * utils.c (initialize_utils): Improve doc strings of "set/show
9034 width", "set/show height", and "set/show pagination".
9035
741d92cf
KS
90362013-03-06 Keith Seitz <keiths@redhat.com>
9037
9038 * ax-gdb.c (gen_printf): Make FORMAT const.
9039 * ax-gdb.h (gen_printf): Likewise.
9040 * ax-general.c (ax_string): Make STR const.
9041 * ax.h (ax_string): Likewise.
9042
7b6c814e
DE
90432013-03-06 Doug Evans <dje@google.com>
9044
9045 * elfread.c (elf_symfile_read): Move debugging printf to more
9046 logical location.
9047
634334ab
PA
90482013-03-06 Pedro Alves <palves@redhat.com>
9049
9050 * python/py-utils.c (target_string_to_unicode): Delete function.
9051 * python/python-internal.h (target_string_to_unicode): Delete
9052 declaration.
9053
e482a1a7
PM
90542013-03-06 Pierre Muller <muller@sourceware.org>
9055
9056 * linespec.c (get_current_search_block): ARI fix, use (void)
9057 for empty parameter list.
9058
4eeaa230
DE
90592013-03-05 Doug Evans <dje@google.com>
9060
9061 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9062 of old ada_lookup_symbol_list. In !full_search case, don't
9063 search superblocks.
9064 (ada_lookup_symbol_list): Delete arg full_search, all callers
9065 updated. Call ada_lookup_symbol_list_worker.
9066 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9067 * ada-lang.h (ada_lookup_symbol_list): Update.
9068 * language.h (language_defn): Update comment for
9069 la_iterate_over_symbols.
9070 * linespec.c (iterate_over_file_blocks): New function.
9071 (iterate_over_all_matching_symtabs): Call it.
9072 (lookup_prefix_sym): Ditto.
9073 (get_current_search_block): New function.
9074 (get_search_block): Delete.
9075 (find_label_symbols): Call get_current_search_block.
9076 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9077 * symtab.c (iterate_over_symbols): Don't search superblocks.
9078
b69b1fb1
YQ
90792013-03-05 Yao Qi <yao@codesourcery.com>
9080
9081 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9082 parameter VAR's type from "unsigned int" to "int".
9083 * command.h (var_zuinteger_unlimited): Update its comments.
9084 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9085
3c095f49
CV
90862013-03-05 Corinna Vinschen <vinschen@redhat.de>
9087
9088 * NEWS: Mention new target x86_64-*-cygwin*.
9089
b5b0b0af
CV
90902013-03-05 Corinna Vinschen <vinschen@redhat.de>
9091
9092 * configure.host: Add x86_64-*-cygwin* as host.
9093 * configure.tgt: Add x86_64-*-cygwin* as target.
9094 * config/i386/cygwin64.mh: New file.
9095
f6f99966
JK
90962013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9097
9098 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9099
33f448b1
JK
91002013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9101
9102 * linespec.c (struct linespec_canonical_name): New.
9103 (struct linespec_state): Change canonical_names type to it.
9104 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9105 xrealloc element size. Initialize the different CANONICAL fields.
9106 (canonical_to_fullform): New.
9107 (filter_results): Use it. Add variables canonical, fullform and
9108 cleanup.
9109 (struct decode_line_2_item, decode_line_2_compare_items): New.
9110 (decode_line_2): Remove variables iter and item_names, add variables
9111 items and items_count. Modify the code for these new variables.
9112
feb14725
CV
91132013-03-04 Corinna Vinschen <vinschen@redhat.com>
9114
9115 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9116 calling do_cleanup.
9117
e83b17ba
HZ
91182013-03-04 Luis Machado <lgustavo@codesourcery.com>
9119
9120 * tracepoint.c (build_traceframe_info): Add code for byte order.
9121
a2d13a0d
KB
91222013-03-02 Kevin Buettner <kevinb@redhat.com>
9123
8dddcae8
KB
9124 * v850-tdep.c: (v850e2_register_name): Revise system register
9125 names to match current V850E2M architecture specifications.
9126 Update register number enum comments too.
f5aee5ee 9127
d79e58d8
JW
91282013-03-01 Jiong Wang <jiwang@tilera.com>
9129 Pedro Alves <palves@redhat.com>
9130
9131 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9132 to END_ADDR.
9133 (tilegx_skip_prologue): Limit prologue analysis to section end.
9134
c4be5165
JK
91352013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9136
9137 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9138 use it.
9139
e362b510
PA
91402013-03-01 Pedro Alves <palves@redhat.com>
9141
9142 Use gdb_byte for bytes from the program being debugged.
9143
9144 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9145 Change type of local 'buf' to gdb_byte.
9146 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9147 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9148 * cris-tdep.c (cris_sigcontext_addr)
9149 (cris_sigtramp_frame_unwind_cache): Likewise.
9150 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9151 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9152 Likewise.
9153 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9154 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9155 (hppa32_hpux_search_dummy_call_sequence)
9156 (hppa_hpux_supply_save_state): Likewise.
9157 * hppa-linux-tdep.c (insns_match_pattern)
9158 (hppa_linux_find_global_pointer): Likewise.
9159 * hppa-tdep.c (hppa_in_function_epilogue_p)
9160 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9161 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9162 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9163 (i386fbsd_collect_uthread): Likewise.
9164 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9165 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9166 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9167 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9168 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9169 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9170 (ia64_libunwind_frame_prev_register)
9171 (ia64_libunwind_sigtramp_frame_this_id)
9172 (ia64_find_global_pointer_from_dynamic_section)
9173 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9174 (ia64_unwind_pc): Likewise.
9175 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9176 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9177 (m68hc11_extract_return_value): Likewise.
9178 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9179 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9180 (mep_get_insn, mep_push_dummy_call): Likewise.
9181 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9182 (mips_linux_in_dynsym_stub): Likewise.
9183 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9184 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9185 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9186 to gdb_byte.
9187 * remote-mips.c (mips_set_register): Likewise.
9188 * remote-sim.c (gdbsim_fetch_register): Likewise.
9189 * score-tdep.c (score7_fetch_inst): Change type of parameter
9190 'memblock' and local 'buf' to gdb_byte.
9191 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9192 Change type of local 'buf' to gdb_byte. Adjust.
9193 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9194 to gdb_byte**.
9195 (score7_analyze_prologue): Change type of 'memblock' and
9196 'memblock_ptr' locals to gdb_byte*.
9197 * sh64-tdep.c (sh64_extract_return_value)
9198 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9199 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9200 * solib-pa64.c (pa64_solib_create_inferior_hook)
9201 (pa64_open_symbol_file_object): Remove local 'buf'.
9202 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9203 (som_open_symbol_file_object): Likewise.
9204 * solib-spu.c (spu_current_sos): Likewise.
9205 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9206 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9207 (spu_store_registers): Likewise.
9208 * target.c (debug_print_register): Likewise.
9209 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9210 * xstormy16-tdep.c (xstormy16_store_return_value)
9211 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9212 (xstormy16_find_jmp_table_entry): Likewise.
9213
75cc61ca 92142013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9215
9216 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9217 (tilegx_gdbarch_init): Install it.
9218
ddb08e9c
TT
92192013-02-28 Tom Tromey <tromey@redhat.com>
9220
9221 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9222 PyLong_Check.
9223
62d7fb51
DE
92242013-02-28 Doug Evans <dje@google.com>
9225
9226 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9227 * python/python.c (gdbpy_find_pc_line): Ditto.
9228
c4a9e8b4
TT
92292013-02-28 Tom Tromey <tromey@redhat.com>
9230
9231 * contrib/excheck.py: New file.
9232 * contrib/exsummary.py: New file.
9233 * contrib/gcc-with-excheck: New file.
9234
7f6a5dde
TT
92352013-02-28 Tom Tromey <tromey@redhat.com>
9236
9237 * python/python.c (gdbpy_print_stack): Call begin_line and
9238 fprintf_filtered inside TRY_CATCH.
9239
9e974e55
TT
92402013-02-28 Tom Tromey <tromey@redhat.com>
9241
9242 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9243 inside TRY_CATCH.
9244
dd5fa3e7
TT
92452013-02-28 Tom Tromey <tromey@redhat.com>
9246
9247 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9248 frame_object_to_frame_info inside TRY_CATCH.
9249
86a3263f
TT
92502013-02-28 Tom Tromey <tromey@redhat.com>
9251
9252 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9253 TRY_CATCH.
9254
81b52a3a
TT
92552013-02-28 Tom Tromey <tromey@redhat.com>
9256
9257 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9258
d50a0ce2
CV
92592013-02-27 Corinna Vinschen <vinschen@redhat.com>
9260
9261 * windows-nat.c: Throughout, fix format strings and casts of
9262 printf-like functions to avoid type related warnings on all
9263 platforms.
9264 (handle_output_debug_string): Fetch context information address
9265 from debug string using string_to_core_addr.
9266
e1f58301
JW
92672013-02-27 Jiong Wang <jiwang@tilera.com>
9268
9269 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9270 * regformats/reg-tilegx32.dat: New.
9271
4fcd89fc
JW
92722013-02-27 Jiong Wang <jiwang@tilera.com>
9273
9274 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9275
748d24e6
JW
92762013-02-27 Jiong Wang <jiwang@tilera.com>
9277
9278 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9279
6c8e944d
YQ
92802013-02-27 Yao Qi <yao@codesourcery.com>
9281 Pedro Alves <palves@redhat.com>
9282
9283 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9284 pc/tp/range/outside, look for the next trace frame instead of
9285 always starting from frame 0.
6c8e944d 9286
acd7db30
AG
92872013-02-26 Anthony Green <green@moxielogic.com>
9288
9289 * configure.tgt: Add support for moxie-*-rtems* target.
9290
025e6dce
PA
92912013-02-25 Pedro Alves <palves@redhat.com>
9292
9293 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9294 warning text.
9295
ca9c94ef
MR
92962013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9297
9298 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9299 if $fp is used as the virtual frame pointer.
9300
24c274a1
AM
93012013-02-23 Alan Modra <amodra@gmail.com>
9302
9303 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9304 symbol size.
9305 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9306 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9307 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9308 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9309
bfada189
JK
93102013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9311
9312 Code cleanup.
9313 * elfread.c (build_id_bfd_get): Make the return type const.
9314 (build_id_verify): Make the check parameter const.
9315 (build_id_to_debug_filename): Make the build_id parameter and variable
9316 data const.
9317 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9318
c0355132
AM
93192013-02-21 Alan Modra <amodra@gmail.com>
9320
9321 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9322
9f44fbc0
SCR
93232013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9324
9325 Add a new method 'disassemble' to gdb.Architecture class.
9326 * python/py-arch.c (archpy_disassmble): Implementation of the
9327 new method gdb.Architecture.disassemble.
9328 (arch_object_methods): Add entry for the new method.
9329
b74ea3eb
JW
93302013-02-20 Jiong Wang <jiwang@tilera.com>
9331
9332 * MAINTAINERS (Write After Approval): Add myself to the list.
9333
61a672f1
PA
93342013-02-19 Pedro Alves <palves@redhat.com>
9335
9336 Garbage collect 'struct monitor_ops'::load_routine.
9337
9338 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9339 * monitor.c (monitor_load): No longer call
9340 current_monitor->load_routine.
9341 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9342 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9343 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9344
40e397df
PA
93452013-02-19 Pedro Alves <palves@redhat.com>
9346
9347 PR gdb/15161
9348
9349 Harmonize with generic_load.
9350
9351 * monitor.c: Include "readline/readline.h".
9352 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9353 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9354 long/strtol for the 'load_offset' local. Error out if no argument
9355 is given or if too many arguments are given. Tilde expand the
9356 passed in file name.
9357
f698ca8e
KT
93582013-02-19 Kai Tietz <ktietz@redhat.com>
9359
9360 PR gdb/15161
9361 * symfile.c (load_section_data): Change type of load_offset
9362 to CORE_ADDR.
9363 (generic_load): User strtoulst instead of strtoul for conversion
9364 of load_offset.
9365
3361b059
WL
93662013-02-19 Jiong Wang <jiwang@tilera.com>
9367
9368 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9369 for return address, "lr" register, saved on stack.
9370 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9371 after we invoke tilegx_analyze_prologue.
9372
3e9d5130
WL
93732013-02-19 Jiong Wang <jiwang@tilera.com>
9374
bb1bcd86
WL
9375 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9376
3361b059 93772013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9378
b74ea3eb 9379 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9380
4aaf2503
WL
93812013-02-19 Jiong Wang <jiwang@tilera.com>
9382
b74ea3eb 9383 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9384 (tilegx_write_pc): New function.
9385 (tilegx_cannot_reference_register): Return zero if REGNO
9386 is TILEGX_FAULTNUM_REGNUM.
9387 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9388 (tilegx_register_name): Add handling of "faultnum" register.
9389 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9390 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9391 handling of TILEGX_FAULTNUM_REGNUM.
9392 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9393
bc23a956
WL
93942013-02-19 Jiong Wang <jiwang@tilera.com>
9395
9396 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9397 should be aligned to 64bit.
bc23a956 9398
42f45f1a
KT
93992013-02-19 Kai Tietz <ktietz@redhat.com>
9400
9401 * windows-nat.c (windows_xfer_memory): Fix debug-output
9402 for LLP64.
9403
6ce4c112
LL
94042013-02-19 Lei Liu <lei.liu2@windriver.com>
9405
9406 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9407 Don't check DSP register number if HAVE_DSP is not set.
9408
30e8ee25
AM
94092013-02-19 Alan Modra <amodra@gmail.com>
9410
9411 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9412 throughout file instead.
9413 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9414 Don't xmalloc return value.
9415 (build_id_verify): Similarly. Don't xfree.
9416 (build_id_to_debug_filename): Update.
9417 (find_separate_debug_file_by_buildid): Update, don't xfree.
9418
4c9ad8c2
TT
94192013-02-18 Tom Tromey <tromey@redhat.com>
9420
9421 PR gdb/15102:
9422 * dwarf2read.c (read_subrange_type): Use result of
9423 'check_typedef'.
9424
983dc440
YQ
94252013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9426
9427 * frame.c: Remove one extra white space after #include
9428 directive.
9429
7fb2b84a
JK
94302013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9431
9432 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9433
edceb2a9
JK
94342013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9435
9436 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9437 and dir commands into an if block.
9438
e81b7af8
TT
94392013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9440
9441 * python/py-breakpoint (struct pybp_code): Use int instead of
9442 enum type_code.
9443
f5911ea1
HAQ
94442013-02-15 Pedro Alves <pedro@codesourcery.com>
9445 Hafiz Abid Qadeer <abidh@codesourcery.com>
9446
9447 * NEWS: Mention new field "trace-file".
9448 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9449 (tfile_open): Record the trace file's filename in the trace
9450 status.
9451 (tfile_files_info): Mention the name of the trace file.
9452 Check the "filename" field explicitely.
9453 (trace_status_command): Explicitely check "filename" field.
9454 (trace_find_command): Ditto.
9455 (trace_find_pc_command): Ditto.
9456 (trace_find_tracepoint_command): Ditto.
9457 (trace_find_line_command): Ditto.
9458 (trace_find_range_command): Ditto.
9459 (trace_find_outside_command): Ditto.
9460 * tracepoint.h (struct trace_status) <from_file>: Rename it
9461 to "filename" and make it hold the trace file's filename
9462 instead of a boolean.
9463 * remote.c (remote_get_trace_status): Initialize "filename"
9464 field with NULL instead of 0.
9465
796cb314
YQ
94662013-02-15 Yao Qi <yao@codesourcery.com>
9467
9468 * remote.c: Fix a typo.
9469
42e79b1d
PM
94702013-02-14 Pierre Muller <muller@sourceware.org>
9471
9472 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9473
baea0dae
PA
94742013-02-14 Pedro Alves <palves@redhat.com>
9475
9476 * utils.c (savestring): Don't #undef it. Move function to
9477 common/common-utils.c.
9478 * common/common-utils.c: Include gdb_string.h.
9479 (savestring): Move here from utils.c.
9480 * common/common-utils.h (savestring): Declare.
9481
57c3b6ed
PA
94822013-02-14 Pedro Alves <palves@redhat.com>
9483
9484 * utils.c (savestring): Rename parameter 'size' to 'len'.
9485
d6c44983
YZ
94862013-02-14 Pedro Alves <palves@redhat.com>
9487 Yufeng Zhang <yufeng.zhang@arm.com>
9488
9489 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9490 (aarch64_inferior_data, struct aarch64_inferior_data):
9491 Delete.
9492 (struct aarch64_process_info): New.
9493 (aarch64_process_list): New global.
9494 (aarch64_find_process_pid, aarch64_add_process)
9495 (aarch64_process_info_get): New functions.
9496 (aarch64_inferior_data_get): Delete.
9497 (aarch64_process_info_get): New function.
9498 (aarch64_forget_process): New function.
9499 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9500 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9501 aarch64_get_debug_reg_state.
9502 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9503 instead of linux_nat_iterate_watchpoint_lwps.
9504 (aarch64_linux_new_fork): New function.
9505 (aarch64_linux_child_post_startup_inferior): Use
9506 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9507 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9508 (aarch64_linux_remove_hw_breakpoint)
9509 (aarch64_handle_aligned_watchpoint)
9510 (aarch64_handle_unaligned_watchpoint)
9511 (aarch64_linux_insert_watchpoint)
9512 (aarch64_linux_remove_watchpoint)
9513 (aarch64_linux_stopped_data_address): Adjust to pass the current
9514 process id to aarch64_debug_reg_state.
9515 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9516 linux_nat_new_fork hook, and aarch64_forget_process as
9517 linux_nat_forget_process hook; remove the call to
9518 register_inferior_data_with_cleanup.
9519
4819b3f8
PA
95202013-02-14 Pedro Alves <palves@redhat.com>
9521
9522 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9523 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9524 lval_memory.
9525
1773c82c
HAQ
95262013-02-14 Pedro Alves <pedro@codesourcery.com>
9527 Hafiz Abid Qadeer <abidh@codesourcery.com>
9528
9529 * tracepoint.h (validate_trace_state_variable_name): Declare.
9530 * tracepoint.c (validate_trace_state_variable_name): New.
9531 (trace_variable_command): Parse the trace state variable's name
9532 without using parse_expression. Do several validations.
9533 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9534 trace state variable's name with parse_expression. Validate it.
9535
53778a97
YQ
95362013-02-14 Yao Qi <yao@codesourcery.com>
9537
9538 * infcmd.c (breakpoint_proceeded): Remove it.
9539
7b3ae3a6
YQ
95402013-02-14 Yao Qi <yao@codesourcery.com>
9541
9542 * tracepoint.c (end_actions_pseudocommand): Make it static.
9543 (while_stepping_pseudocommand): Likewise.
9544 * tracepoint.h (end_actions_pseudocommand): Remove the
9545 declaration.
9546 (while_stepping_pseudocommand): Likewise.
9547
64580925
YQ
95482013-02-14 Yao Qi <yao@codesourcery.com>
9549
9550 * cli/cli-decode.c (help_cmd): Remove the declaration of
9551 "cmdlist".
9552 (help_all): Likewise.
9553
26cb8b7c
PA
95542013-02-13 Pedro Alves <palves@redhat.com>
9555
9556 * amd64-linux-nat.c (update_debug_registers_callback):
9557 Update comment.
9558 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9559 iterate_over_lwps.
9560 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9561 i386_debug_reg_state.
9562 (amd64_linux_new_fork): New function.
9563 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9564 linux_nat_new_fork hook, and i386_forget_process as
9565 linux_nat_forget_process hook.
9566 * i386-linux-nat.c (update_debug_registers_callback):
9567 Update comment.
a8256ea1 9568 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9569 iterate_over_lwps.
9570 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9571 i386_debug_reg_state.
9572 (i386_linux_new_fork): New function.
9573 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9574 linux_nat_new_fork hook, and i386_forget_process as
9575 linux_nat_forget_process hook.
9576 * i386-nat.c (i386_init_dregs): Delete.
9577 (i386_inferior_data, struct i386_inferior_data):
9578 Delete.
9579 (struct i386_process_info): New.
9580 (i386_process_list): New global.
9581 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9582 New functions.
9583 (i386_inferior_data_get): Delete.
9584 (i386_process_info_get): New function.
9585 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9586 (i386_forget_process): New function.
9587 (i386_cleanup_dregs): Rewrite.
9588 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9589 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9590 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9591 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9592 to i386_debug_reg_state.
9593 (i386_use_watchpoints): Don't register inferior data.
9594 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9595 adjust comment.
9596 (i386_forget_process): Declare.
9597 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9598 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9599 New static globals.
9600 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9601 (add_initial_lwp): New, factored out from ...
9602 (add_lwp): ... this. Don't check the number of lwps before
9603 calling linux_nat_new_thread.
9604 (linux_nat_iterate_watchpoint_lwps): Delete.
9605 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9606 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9607 forks and vforks.
9608 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9609 initial lwp.
9610 (linux_nat_kill, linux_nat_mourn_inferior): Call
9611 linux_nat_forget_process.
9612 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9613 (linux_nat_forget_process): New functions.
9614 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9615 type.
9616 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9617 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9618 types.
9619 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9620 (linux_nat_forget_process): New declarations.
9621
9622 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9623 (amd64fbsd_mourn_inferior): New function.
9624 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9625 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9626
5befea72
MS
96272013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9628
55015247
YQ
9629 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9630 Adding _().
5befea72 9631
1d3ffd6b
MS
96322013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9633
9634 * aarch64-linux-nat.c (debug_reg_change_callback)
9635 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9636 %s and phex().
9637
6eb04473
MS
96382013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9639
9640 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9641 with LONGEST.
9642
a016fc87
HAQ
96432013-02-13 Pedro Alves <palves@redhat.com>
9644 Hafiz Abid Qadeer <abidh@codesourcery.com>
9645
9646 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9647
e234dfaf
TT
96482013-02-12 Tom Tromey <tromey@redhat.com>
9649
9650 PR symtab/11464:
9651 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9652 NAME return.
9653 (classify_inner_name): Remove 'first_name' argument, add
9654 'context'. Remove unused variable.
9655 (yylex): Explicitly maintain the context type. Exit loop earlier
9656 if NAME result is seen.
9657
0b1afbb3
PA
96582013-02-12 Pedro Alves <palves@redhat.com>
9659
9660 * amd64-darwin-tdep.c: Add (C) after Copyright.
9661 * cli/cli-cmds.h: Ditto.
9662 * cli/cli-decode.c: Ditto.
9663 * cli/cli-decode.h: Ditto.
9664 * cli/cli-dump.c: Ditto.
9665 * cli/cli-dump.h: Ditto.
9666 * cli/cli-interp.c: Ditto.
9667 * cli/cli-logging.c: Ditto.
9668 * cli/cli-script.c: Ditto.
9669 * cli/cli-script.h: Ditto.
9670 * cli/cli-setshow.c: Ditto.
9671 * cli/cli-setshow.h: Ditto.
9672 * cli/cli-utils.c: Ditto.
9673 * cli/cli-utils.h: Ditto.
9674 * config/alpha/nm-osf3.h: Ditto.
9675 * config/djgpp/djconfig.sh: Ditto.
9676 * config/i386/nm-fbsd.h: Ditto.
9677 * config/i386/nm-i386gnu.h: Ditto.
9678 * config/nm-linux.h: Ditto.
9679 * config/nm-nto.h: Ditto.
9680 * config/rs6000/nm-rs6000.h: Ditto.
9681 * config/sparc/nm-sol2.h: Ditto.
9682 * darwin-nat-info.c: Ditto.
9683 * dfp.c: Ditto.
9684 * dfp.h: Ditto.
9685 * gdb-demangle.h: Ditto.
9686 * i386-darwin-nat.c: Ditto.
9687 * i386-darwin-tdep.c: Ditto.
9688 * linux-fork.h: Ditto.
9689 * m32c-tdep.c: Ditto.
9690 * microblaze-linux-tdep.c: Ditto.
9691 * microblaze-rom.c: Ditto.
9692 * microblaze-tdep.c: Ditto.
9693 * microblaze-tdep.h: Ditto.
9694 * mips-linux-tdep.h: Ditto.
9695 * ppc-ravenscar-thread.c: Ditto.
9696 * ppc-ravenscar-thread.h: Ditto.
9697 * prologue-value.c: Ditto.
9698 * prologue-value.h: Ditto.
9699 * ravenscar-thread.c: Ditto.
9700 * ravenscar-thread.h: Ditto.
9701 * sparc-ravenscar-thread.c: Ditto.
9702 * sparc-ravenscar-thread.h: Ditto.
9703 * tilegx-linux-tdep.c: Ditto.
9704 * unwind_stop_reasons.def: Ditto.
9705 * windows-nat.h: Ditto.
9706 * xtensa-linux-tdep.c: Ditto.
9707 * xtensa-xtregs.c: Ditto.
9708 * regformats/regdat.sh: Ditto.
9709 * regformats/regdef.h: Ditto.
9710
6c01dd94
PA
97112013-02-12 Pedro Alves <palves@redhat.com>
9712
9713 * break-catch-sig.c: Update copyright years.
9714
b65a2bd9
SCR
97152013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9716
9717 Add support for a destructor for ui_out data and use it to
9718 provide a ui_out destructor.
9719 * ui-out.h: Declare the new ui_out destructor.
9720 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9721 * ui-out.c (default_data_destroy): Add a default data destructor
9722 which does nothing.
9723 (default_ui_out_impl): Set the new data_destroy field to
9724 default_data_destroy
9725 (uo_data_destroy): Local function which invokes the data
9726 destructor if present.
9727 (clear_table): Local function which clears the table data of a
9728 ui_out object.
9729 (ui_out_destroy): Public function which frees a ui_out object.
9730 (ui_out_table_end): Use the new clear_table function.
9731 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9732 NULL.
9733 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9734 to NULL.
9735
c2792f5a
DE
97362013-02-11 Doug Evans <dje@google.com>
9737
9738 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9739 (printf_decfloat): New function. Broken out from ui_printf.
9740 Remove unnecessary code to shift the entire format string down.
9741 (printf_pointer): New function.
9742 (ui_printf): Code to print C strings, wide C strings, decfloats,
9743 and pointers moved to separate functions.
9744
d9e98382
SDJ
97452013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9746
9747 * valops.c (value_assign): Handling bitfield offset in
9748 `lval_internalvar_component' case.
9749
4ff3ce77
DE
97502013-02-08 Doug Evans <dje@google.com>
9751
9752 * common/format.c (parse_format_string): Fix whitespace.
9753
901900c4
MGD
97542013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9755
9756 * stack.c (return_command): Work around uninitialized variable
9757 warning.
9758
b5dbc8d4
YZ
97592013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9760
9761 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9762 number of the registers from 36 to 34.
9763
51d66578
MS
97642013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9765
9766 * NEWS: Mention new AArch64 native and target support.
9767
176b1c95
MS
97682013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9769
9770 * MAINTAINERS (Write After Approval): Add myself.
9771
9d19df75
MS
97722013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9773 Marcus Shawcroft <marcus.shawcroft@arm.com>
9774 Nigel Stephens <nigel.stephens@arm.com>
9775 Yufeng Zhang <yufeng.zhang@arm.com>
9776
9777 * aarch64-linux-nat.c: New file.
9778 * config/aarch64/linux.mh: New file.
9779 * configure.host: Add AArch64.
9780 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9781
7e1e0340
DE
97822013-02-07 Doug Evans <dje@google.com>
9783
9784 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9785 disassemble command.
9786
45e25a36
MS
97872013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9788
9789 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9790 set_gdbarch_fetch_tls_load_module_address.
9791
bbfdfe1c
DM
97922013-02-06 David S. Miller <davem@davemloft.net>
9793
9794 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9795 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9796 * value.c (struct_return_convention): New function.
9797 (using_struct_return): Implement in terms of struct_return_convention.
9798 * value.h (struct_return_convention): Declare.
9799 * stack.c (return_command): Allow successful overriding of the return
9800 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9801
bc9abe4a
TT
98022013-02-06 Tom Tromey <tromey@redhat.com>
9803
9804 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9805 outside of TRY_CATCH.
9806
134a2066
YQ
98072013-02-06 Yao Qi <yao@codesourcery.com>
9808
9809 * mi/mi-interp.c: Include "tracepoint.h".
9810 (mi_tsv_modified): Declare.
9811 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9812 (mi_interpreter_init): Call observer_attach_tsv_modified.
9813 (mi_tsv_modified): New.
9814 (mi_tsv_created, mi_tsv_deleted): Update.
9815 * tracepoint.c (trace_variable_command): Call
9816 observer_notify_tsv_modified if the initial value of tsv is
9817 changed.
9818 (delete_trace_state_variable): Call
9819 observer_notify_tsv_deleted earlier.
9820 (trace_variable_command): Caller update.
9821 (create_tsv_from_upload): Likewise.
9822 * observer.sh: Declare "struct trace_state_variable".
9823
9824 * NEWS: Mention the new MI notification "=tsv-modified".
9825
59be2b6a
DE
98262013-02-05 Doug Evans <dje@google.com>
9827
9828 * completer.c (location_completer): Fix typo in comment.
9829
d30113d4
JK
98302013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9831
9832 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9833 ADDRESS sorted.
9834
14ac654f
MS
98352013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9836
9837 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9838 Refactor if statement to avoid trailing || operator.
9839
543bf33d
AT
98402013-02-05 Andreas Tobler <andreast@fgznet.ch>
9841
9842 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9843
dc18f110
AT
98442013-02-04 Andreas Tobler <andreast@fgznet.ch>
9845
9846 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9847 * configure.host: Add powerpc*-*-freebsd* target.
9848 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9849 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9850 * config/powerpc/fbsd.mh: New file.
9851
b3ac9c77
SDJ
98522013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9853 Denys Vlasenko <dvlasenk@redhat.com>
9854 Pedro Alves <palves@redhat.com>
9855
9856 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9857 (struct elf_internal_linux_prpsinfo): Forward declare.
9858 * gdbarch.h, gdbarch.c: Regenerate.
9859 * linux-tdep.c: Include `cli/cli-utils.h'.
9860 (linux_fill_prpsinfo): New function.
9861 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9862 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9863 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9864 depending on gdbarch pointer bitness.
9865 * ppc-linux-tdep.c: Include elf-bfd.h.
9866 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9867 on 32-bit.
9868
176eb98c
MS
98692013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9870 Marcus Shawcroft <marcus.shawcroft@arm.com>
9871 Nigel Stephens <nigel.stephens@arm.com>
9872 Yufeng Zhang <yufeng.zhang@arm.com>
9873
9874 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9875
cf0dbd6f
MS
98762013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9877 Marcus Shawcroft <marcus.shawcroft@arm.com>
9878 Nigel Stephens <nigel.stephens@arm.com>
9879 Yufeng Zhang <yufeng.zhang@arm.com>
9880
9881 * aarch64-newlib-tdep.c: New file.
9882 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9883 aarch64*-*-elf.
9884 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9885 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9886 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9887 * osabi.c (gdb_osabi_names): Add "Newlib".
9888
1ae3db19
MS
98892013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9890 Marcus Shawcroft <marcus.shawcroft@arm.com>
9891 Nigel Stephens <nigel.stephens@arm.com>
9892 Yufeng Zhang <yufeng.zhang@arm.com>
9893
9894 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9895 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9896 * aarch64-linux-tdep.c: New file.
9897 * aarch64-linux-tdep.h: New file.
9898 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9899 * configure.tgt: Add aarch64-none-linux-gnu.
9900
07b287a0
MS
99012013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9902 Marcus Shawcroft <marcus.shawcroft@arm.com>
9903 Nigel Stephens <nigel.stephens@arm.com>
9904 Yufeng Zhang <yufeng.zhang@arm.com>
9905
9906 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9907 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9908 (ALLDEPFILES): Add aarch64-tdep.c.
9909 * aarch64-tdep.c: New file.
9910 * aarch64-tdep.h: New file.
9911 * configure.tgt: Add AArch64.
9912 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9913 (aarch64-expedite): New definition.
9914 * features/aarch64-core.xml: New file.
9915 * features/aarch64-fpu.xml: New file.
9916 * features/aarch64-without-fpu.c: New file (generated).
9917 * features/aarch64-without-fpu.xml: New file.
9918 * features/aarch64.c: New file (generated).
9919 * features/aarch64.xml: New file.
9920 * regformats/aarch64-without-fpu.dat: New file (generated).
9921 * regformats/aarch64.dat: New file (generated).
9922
0f1b18ab
JK
99232013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9924
9925 * contrib/expect-read1.c: New file.
9926 * contrib/expect-read1.sh: New file.
9927
233d95b5
JK
99282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9929
9930 * dwarf2read.c (file_file_name): New function with code from
9931 file_full_name.
9932 (file_full_name): Move most of the code to file_file_name.
9933 (macro_start_file): Rename variable full_name to file_name and use
9934 file_file_name for it. Add comp_dir parameter to new_macro_table.
9935 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9936 macro_source_file->filename access by macro_source_fullname call.
9937 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9938 caller.
9939 * macrotab.c (struct macro_table): New field comp_dir.
9940 (macro_include): New variables link_fullname and source_fullname.
9941 Replace any macro_source_file->filename access by macro_source_fullname
9942 call.
9943 (macro_lookup_inclusion): Remove the partial filenames checking code.
9944 (check_for_redefinition): New variables source_fullname and
9945 found_key_fullname. Replace any macro_source_file->filename access by
9946 macro_source_fullname call.
9947 (macro_undef): New variables source_fullname and key_fullname. Replace
9948 any macro_source_file->filename access by macro_source_fullname call.
9949 (macro_lookup_definition): New variables retval and source_fullname.
9950 Replace any macro_source_file->filename access by macro_source_fullname
9951 call.
9952 (foreach_macro): New variable key_fullname. Replace any
9953 macro_source_file->filename access by macro_source_fullname call.
9954 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9955 macro_source_file->filename access by macro_source_fullname call.
9956 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9957 (macro_source_fullname): New function.
9958 * macrotab.h (struct macro_source_file): Extent the filename field
9959 comment.
9960 (new_macro_table): New parameter comp_dir, add a comment for it.
9961 (macro_source_fullname): new declaration.
9962
da235a7c
JK
99632013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9964
9965 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9966 this_real_name to outer block. Use it also for
9967 compare_filenames_for_search.
9968 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9969 with dw2_get_real_path for file_matcher, considering also
9970 BASENAMES_MAY_DIFFER.
9971 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9972
fbd9ab74
JK
99732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9974
9975 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9976 to the file_matcher parameter. Pass 0 to it.
9977 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9978 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9979 NULL psymtab_to_fullname result.
9980 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9981 an expected filename instead.
9982 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9983 file_matcher parameter. Call also psymtab_to_fullname, after newly
9984 considering BASENAMES_MAY_DIFFER.
9985 * source.c (rewrite_source_path): Remove static.
9986 * source.h (rewrite_source_path): New declaration.
9987 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9988 the expand_symtabs_matching field. Comment it.
9989 * symtab.c (file_matches): New function comment. Add parameter
9990 basenames, implement it.
9991 (search_symbols_file_matches): Add basenames parameter. Update the
9992 file_matches caller.
9993 (search_symbols): Match FILES also against symtab_to_fullname.
9994 Optimize it for BASENAMES_MAY_DIFFER.
9995
56d397a3
JK
99962013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9997
9998 * source.c (print_source_lines_base): Print for TUI also "fullname".
9999 * tui/tui-data.c (init_content_element): Change tui_locator_element
10000 field to full_name.
10001 * tui/tui-data.h (struct tui_locator_element): Likewise.
10002 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10003 tui_update_locator_filename calls to tui_update_locator_fullname.
10004 Replace symtab->filename refererence by symtab_to_fullname call.
10005 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10006 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10007 field to full_name. Replace symtab->filename refererence by
10008 symtab_to_fullname call.
10009 (tui_show_symtab_source): Rename parameter to fullname. Change
10010 tui_locator_element field to full_name.
10011 * tui/tui-stack.c: Include source.h.
10012 (tui_set_locator_filename): Rename the declaration to ...
10013 (tui_set_locator_fullname): ... here. Rename its parameter to
10014 fullname, updates its comment.
10015 (tui_set_locator_info): Rename its parameter to fullname.
10016 (tui_set_locator_filename): Rename the definition to ...
10017 (tui_set_locator_fullname): ... here. Rename its parameter to
10018 fullname, updates its comment. Change tui_locator_element field to
10019 full_name.
10020 (tui_set_locator_info): Rename its parameter to fullname.
10021 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10022 (tui_update_locator_filename): Rename to ...
10023 (tui_update_locator_fullname): ... here. Rename callee to
10024 tui_set_locator_fullname.
10025 (tui_show_frame_info): Replace symtab->filename refererence by
10026 symtab_to_fullname call.
10027 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10028 (tui_update_locator_fullname): ... here.
10029 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10030 tui_update_locator_fullname. Replace symtab->filename refererence by
10031 symtab_to_fullname call.
10032 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10033 Rename the callee to tui_update_locator_fullname.
10034 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10035
05cba821
JK
100362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10037
10038 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10039 by symtab_to_filename_for_display calls.
10040 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10041 (clear_command): New variable sal_fullname, initialize it. Replace
10042 compare_filenames_for_search by filename_cmp with sal_fullname.
10043 (say_where, update_static_tracepoint): Replace symtab->filename
10044 refererences by symtab_to_filename_for_display calls.
10045 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10046 Likewise.
10047 * dwarf2read.c: Include source.h.
10048 (fixup_go_packaging): Replace symtab->filename refererences by
10049 symtab_to_filename_for_display calls.
10050 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10051 Replace symtab->filename refererences by symtab_to_filename_for_display
10052 calls.
10053 (create_sals_line_offset, convert_linespec_to_sals): New variable
10054 fullname, initialize it, replace symtab->filename reference by the
10055 variable.
10056 * linux-fork.c: Include source.h.
10057 (info_checkpoints_command): Replace symtab->filename refererences by
10058 symtab_to_filename_for_display calls.
10059 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10060 by symtab_to_filename_for_display calls.
10061 * mdebugread.c: Include source.h.
10062 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10063 symtab_to_filename_for_display calls.
10064 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10065 (mi_cmd_file_list_exec_source_files): Likewise.
10066 * printcmd.c: Include source.h.
10067 (build_address_symbolic): Replace symtab->filename refererences by
10068 symtab_to_filename_for_display calls.
10069 * psymtab.c (partial_map_symtabs_matching_filename)
10070 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10071 with psymtab_to_fullname.
10072 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10073 by symtab_to_filename_for_display calls.
10074 (stpy_get_filename): New variable filename, initialize it, use instead
10075 of symtab->filename refererences.
10076 (salpy_str): Make variable filename const char *. Replace
10077 symtab->filename refererences by symtab_to_filename_for_display calls.
10078 * skip.c: Include source.h and filenames.h.
10079 (skip_file_command): Remove const from the symtab variable. Replace
10080 symtab->filename refererences by symtab_to_fullname call.
10081 (function_name_is_marked_for_skip): New variables searched_for_fullname
10082 and fullname. Use them to search also with symtab's fullname.
10083 * source.c (find_source_lines): Replace symtab->filename refererences
10084 by symtab_to_filename_for_display calls.
10085 (print_source_lines_base): New variable filename, use it instead of
10086 symtab->filename. Replace symtab->filename refererences by
10087 symtab_to_filename_for_display calls.
10088 (line_info, forward_search_command): Replace symtab->filename
10089 refererences by symtab_to_filename_for_display calls.
10090 (reverse_search_command): Replace symtab->filename refererences by
10091 symtab_to_filename_for_display calls. New variable filename for it.
10092 * stack.c (frame_info): Likewise.
10093 * symmisc.c: Include source.h.
10094 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10095 (maintenance_info_symtabs): Replace symtab->filename refererences by
10096 symtab_to_filename_for_display calls.
10097 * symtab.c (iterate_over_some_symtabs): Call
10098 compare_filenames_for_search also with symtab_to_fullname.
10099 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10100 symtab->filename refererences by symtab_to_filename_for_display calls.
10101 (find_line_symtab): Replace symtab->filename refererences by
10102 symtab_to_filename_for_display calls.
10103 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10104 (print_symbol_info): Make the last parameter const char *. New
10105 variable s_filename. Use it in the function.
10106 (symtab_symbol_info): Make the last_filename variable const char *.
10107 Replace symtab->filename refererences by symtab_to_filename_for_display
10108 calls.
10109 (rbreak_command): New variable fullname. Use it. Replace
10110 symtab->filename refererence by symtab_to_filename_for_display call.
10111 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10112 (print_one_static_tracepoint_marker): Replace symtab->filename
10113 refererences by symtab_to_filename_for_display calls.
10114 * tui/tui-source.c (tui_set_source_content): New variables filename and
10115 s_filename. Replace symtab->filename refererences by this variable.
10116 Replace other symtab->filename refererences by
10117 symtab_to_filename_for_display calls.
10118
1b56eb55
JK
101192013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10120 Jan Kratochvil <jan.kratochvil@redhat.com>
10121
10122 Add a new variable that controls a way in which filenames are
10123 displayed.
10124 * NEWS (set filename-display): New entry.
10125 * source.c (filename_display_basename, filename_display_relative)
10126 (filename_display_absolute, filename_display_kind_names)
10127 (filename_display_string, show_filename_display_string)
10128 (symtab_to_filename_for_display): New.
10129 (_initialize_source): Added initialization of 'filename-display'
10130 variable.
10131 * source.h (symtab_to_filename_for_display): Added declaration.
10132 * stack.c (print_frame): Added new variable and calling of a new
10133 function and condition with this variable. Changed third argument of
10134 calling of a function.
10135
aa079c93
JK
101362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10137
10138 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10139 Rename field reference filename to fullname.
10140 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10141 fullname. New comment for it.
10142 * tui/tui-source.c (tui_set_source_content): Rename field reference
10143 filename to fullname. Initialize field by symtab_to_fullname now.
10144 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10145 reference filename to fullname. Use symtab_to_fullname during
10146 comparison.
10147
652a8996
JK
101482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10149
10150 Code cleanup.
10151 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10152 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10153 filename to fullname. Rename variable this_name to this_fullname.
10154 Lowercase FILENAME_CMP call.
10155 (dw2_find_symbol_file): New comment for the returned string.
10156 (dwarf2_gdb_index_functions): Rename the function to
10157 dw2_expand_symtabs_with_fullname.
10158 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10159 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10160 fullname.
10161 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10162 * symfile.h (struct quick_symbol_functions): Rename field
10163 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10164 parameter filename to fullname. Document returned string meaning for
10165 find_symbol_file.
10166 * symtab.c (find_line_symtab): Rename the called function to
10167 expand_symtabs_with_fullname.
10168
af529f8f
JK
101692013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10170
10171 Code cleanup.
10172 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10173 call of filename_cmp with compare_filenames_for_search.
10174 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10175 is_abs, unify the call of FILENAME_CMP with
10176 compare_filenames_for_search. New gdb_asserts for real_path and name.
10177 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10178 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10179 * symfile.h (struct quick_symbol_functions): Extend the comment for
10180 map_symtabs_matching_filename.
10181 * symtab.c (compare_filenames_for_search): Remove the function comment
10182 relative path requirement. Handle absolute filenames, with a comment.
10183 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10184 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10185 real_path and name. Unify the call of compare_filenames_for_search
10186 with FILENAME_CMP.
10187 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10188
2f202fde
JK
101892013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10190
10191 Code cleanup.
10192 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10193 source_file references by symtab field references. Remove variables
10194 sal and fullname.
10195 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10196 (clear_command, say_where): Replace bp_location field source_file
10197 references by symtab field references.
10198 (bp_location_dtor): Remove the source_file reference.
10199 (update_static_tracepoint): Replace bp_location field source_file
10200 references by symtab field references.
10201 (breakpoint_free_objfile): New function.
10202 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10203 Replace the field source_file by field symtab, extend its comment.
10204 (breakpoint_free_objfile): New declaration.
10205 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10206 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10207 field source_file references by symtab field references.
10208
f5b95b50
JK
102092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10210
10211 Replace xfullpath calls by gdb_realpath calls.
10212 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10213 function comment.
10214 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10215 Remove it from the iterate_over_some_symtabs call.
10216 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10217 Remove it from the dw2_map_expand_apply calls, remove a block handling
10218 it.
10219 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10220 Remove it from the iterate_over_some_symtabs call.
10221 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10222 Remove it from the partial_map_expand_apply calls, remove a block
10223 handling it. Drop gdb_realpath call and cleanups from the real_path
10224 handling.
10225 * source.c (openp): Drop the comment part about xfullpath. Replace
10226 xfullpath calls by gdb_realpath calls.
10227 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10228 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10229 from method map_symtabs_matching_filename and its comment.
10230 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10231 gdb_realpath call.
10232 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10233 remove it also from the function comment, remove a block handling it.
10234 Drop gdb_realpath call and cleanups from the real_path handling.
10235 (iterate_over_symtabs): Drop variable full_path and its use.
10236 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10237 * utils.c (xfullpath): Remove.
10238 * utils.h (xfullpath): Remove.
10239
d78489bf
AT
102402013-02-01 Andreas Tobler <andreast@fgznet.ch>
10241
10242 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10243 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10244 (ALLDEPFILES): Add ppc64-tdep.c.
10245 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10246 ppc64-tdep.o to gdb_target_obs.
10247 * ppc64-tdep.h: New file.
10248 * ppc64-tdep.c: New file.
10249 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10250 ppc-linux-tdep.c to here.
10251 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10252 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10253 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10254 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10255 from ppc-linux-tdep.c to here.
10256 (ppc64_convert_from_func_ptr_addr): Rename from
10257 ppc64_linux_convert_from_func_ptr_addr to
10258 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10259 here.
10260 * rs6000-tdep.c:
10261 (read_insn): Move from ppc-linux-tdep.c to here.
10262 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10263 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10264 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10265 Removed above functions.
10266 (ppc_linux_init_abi): Adjust.
10267
8db60374
AR
102682013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10269
10270 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10271
f2e5f4ce
AR
102722013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10273
10274 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10275
c1f7d745
PA
102762013-02-01 Pedro Alves <palves@redhat.com>
10277
10278 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10279 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10280
8a92335b
JK
102812013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10282
10283 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10284 files with no separate debug info.
10285 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10286 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10287 only for files with no separate debug info.
10288
8eacb197
TT
102892013-01-31 Tom Tromey <tromey@redhat.com>
10290
10291 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10292 change type.
10293 (struct jit_program_space_data): Rename from jit_inferior_data.
10294 Update comments.
10295 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10296 Change return type. Attach data to program space.
10297 (jit_program_space_data_cleanup): Rename from
10298 jit_inferior_data_cleanup; change argument type.
10299 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10300 change type.
10301 (jit_register_code): Update.
10302 (jit_update_inferior_cache): Remove.
10303 (jit_breakpoint_deleted): Get jit data from the location's program
10304 space.
10305 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10306 'ps_data', change type.
10307 (jit_inferior_init, jit_breakpoint_re_set_internal)
10308 (jit_event_handler): Update.
10309 (free_objfile_data): Get data from objfile's program space.
10310 (_initialize_jit): Update.
10311
f25c0135
TT
103122013-01-31 Tom Tromey <tromey@redhat.com>
10313
10314 PR gdb/13987:
10315 * jit.c (struct jit_inferior_data) <cached_code_address,
10316 jit_breakpoint>: New fields.
10317 (jit_breakpoint_re_set_internal): Fix logging. Only create
10318 breakpoint if cached address has changed.
10319 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10320 functions.
10321 (_initialize_jit): Register breakpoint deleted observer.
10322
974a734b
AR
103232013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10324
10325 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10326 (save_infcall_suspend_state): Ifdef out unused inf.
10327 (restore_infcall_suspend_state): Ifdef out unused inf.
10328 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10329 (jit_frame_sniffer): Remove unused inf_data.
10330
df54f8eb
AR
103312013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10332
10333 * c-exp.y (classify_inner_name): Remove unused type.
10334 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10335 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10336 need_escape.
10337 (c_get_string): Remove unused kind.
10338 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10339
5799c0b9
AR
103402013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10341
10342 * charset.c (intermediate_encoding): Remove unused i.
10343 * completer.c (signal_completer): Remove unused i.
10344 * continuations.c (discard_my_continuations_1): Remove unused
10345 continuation_ptr.
10346 * corelow.c (core_close): Remove unuseD name.
10347 (get_core_siginfo): Remove unused pid.
10348 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10349 i, cps.
10350 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10351 (loclist_describe_location): Remove unused first.
10352 * event-top.c (command_line_handler): Remove unused got_eof.
10353 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10354 (resize_section_table): Remove unused old_value.
10355 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10356 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10357 * i386-tdep.c (i386_process_record): Remove unused rex.
10358 * infcmd.c (get_return_value): Remove unused uiout.
10359 * jv-lang.c (type_from_class): Remove unused is_array.
10360 * jv-valprint.c (java_val_print): Remove unused i.
10361 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10362 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10363 * m2-typeprint.c (m2_print_type): Remove unused code.
10364 * macroexp.c (get_character_constant): Remove unused body_start.
10365 (macro_stringify): Remove unused result.
10366 * objc-lang.c (find_methods): Remove unused gdbarch.
10367 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10368 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10369 * stack.c (print_frame_args): Remove unused summary.
10370 * thread.c (thread_apply_command): Remove unused p.
10371 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10372 * valops.c (search_struct_method): Remove unused skip.
10373 * valprint.c (generic_val_print): Remove unused byte_order.
10374 * varobj.c (varobj_update): Remove unused changed.
10375 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10376 (alias_command): Remove unused c.
10377 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10378 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10379 format.
10380 (mi_cmd_data_write_memory): Remove unused word_format.
10381 (mi_cmd_data_write_memory_bytes): Remove unused r.
10382 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10383 p_start, p_end.
10384 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10385 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10386 line_width.
10387
c656bca5
AR
103882013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10389
10390 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10391 * symtab.c (iterate_over_symtabs): Remove unused s.
10392 (find_pc_sect_symtab): Remove unused pspAce.
10393 (find_pc_sect_line): Remove unused alt_symtab.
10394 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10395 (completion_list_add_name): Remove unused newsize.
10396
7078baeb
TT
103972013-01-31 Tom Tromey <tromey@redhat.com>
10398
10399 PR c++/14998:
10400 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10401 TYPE_CODE_FUNC.
10402
c2e8b827
AR
104032013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10404
10405 * target.c (target_read_string): Remove unused origlen.
10406
0e43993a
AR
104072013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10408
10409 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10410 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10411 * ax-general.c (ax_print): Remove unused is_float.
10412 * blockframe.c (block_innermost_frame): Remove unused start, end.
10413 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10414
765a97ab
AR
104152013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10416
10417 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10418 (svr4_read_so_list): Remove unused lmo.
10419 * solib-target.c (solib_target_relocate_section_addresses): Remove
10420 unused flags.
10421
a99dad3d
TT
104222013-01-30 Tom Tromey <tromey@redhat.com>
10423
10424 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10425
3bff1ecd
TT
104262013-01-30 Tom Tromey <tromey@redhat.com>
10427
10428 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10429 * utils.c (gnu_debuglink_crc32): Remove.
10430 * utils.h (gnu_debuglink_crc32): Don't declare.
10431
7d455152
TT
104322013-01-30 Tom Tromey <tromey@redhat.com>
10433
10434 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10435 (read_structure_type, read_enumeration_type): Remove cast.
10436
abee88f2
TT
104372013-01-30 Tom Tromey <tromey@redhat.com>
10438
10439 * dwarf2read.c (read_namespace_type): Remove cast.
10440 (read_typedef): Likewise.
10441
8d9878a4
TT
104422013-01-29 Tom Tromey <tromey@redhat.com>
10443
10444 * dwarf2read.c (free_dwo_file): Remove assert.
10445
a543d2a9
TT
104462013-01-29 Tom Tromey <tromey@redhat.com>
10447
10448 * value.c (deprecated_set_value_modifiable): Remove.
10449 * value.h (deprecated_set_value_modifiable): Remove.
10450
bed911e5
DE
104512013-01-28 Doug Evans <dje@google.com>
10452
10453 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10454 to addresses from dwo files.
10455
28c64fc2
SCR
104562013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10457
10458 * valops.c (find_overload_match): Remove unused argument 'lax'.
10459 * value.h: Remove unused argument 'lax' from the declaration of
10460 find_overload_match.
10461 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10462 to find_overload_match.
10463 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10464 argument to find_overload_match.
10465
4d4ec4e5
TT
104662013-01-25 Tom Tromey <tromey@redhat.com>
10467
10468 * dwarf2read.c (processing_has_namespace_info): Remove.
10469 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10470 (process_die, read_func_scope, dwarf2_start_symtab)
10471 (new_symbol_full): Update.
10472
195a3f6c
TT
104732013-01-25 Tom Tromey <tromey@redhat.com>
10474
10475 * cp-namespace.c (cp_set_block_scope): Remove.
10476 * cp-support.h (cp_set_block_scope): Remove.
10477 * dbxread.c: Include block.h.
10478 (cp_set_block_scope): New function.
10479 (process_one_symbol): Update.
10480 * dwarf2read.c (read_func_scope): Use block_set_scope.
10481
8ba0730a
PA
104822013-01-25 Pedro Alves <palves@redhat.com>
10483
10484 * remote.c (add_current_inferior_and_thread): Tweak comment.
10485
12aaed36
TT
104862013-01-25 Tom Tromey <tromey@redhat.com>
10487
10488 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10489 (cp_add_using_directive): Add 'copy_names' argument.
10490 * cp-support.h (cp_add_using_directive): Update.
10491 (struct using_direct) <import_src, import_dest, alias,
10492 declaration>: Now const.
10493 * dwarf2read.c (read_import_statement): Use obconcat.
10494 Don't copy names passed to cp_add_using_directive.
10495
7fc75ca7
TT
104962013-01-25 Tom Tromey <tromey@redhat.com>
10497
10498 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10499
3405876a
PA
105002013-01-25 Pedro Alves <palves@redhat.com>
10501
10502 * remote.c (stop_reply_extract_thread): New.
10503 (add_current_inferior_and_thread): New parameter 'wait_status'.
10504 Handle it.
10505 (remote_start_remote): Pass wait status to
10506 add_current_inferior_and_thread.
10507 (extended_remote_run): Update comment.
10508 (extended_remote_create_inferior_1): Pass wait status to
10509 add_current_inferior_and_thread.
10510
8954db33
AB
105112013-01-25 Andrew Burgess <aburgess@broadcom.com>
10512 Ulrich Weigand <uweigand@de.ibm.com>
10513
10514 * valarith.c (value_vector_widen): New function for replicating a
10515 scalar into a vector.
10516 (value_binop): Use value_vector_widen to widen scalar to vector
10517 rather than casting, this better matches gcc C behaviour.
10518 * valops.c (value_casst): Update logic for casting between vector
10519 types, and for casting from scalar to vector, try to match gcc C
10520 behaviour.
10521 * value.h (value_vector_widen): Declare.
10522 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10523 function, handle special case for casting scalar to vector.
10524 (opencl_relop): Use opencl_value_cast.
10525 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10526 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10527 in order to use opencl_value_cast.
10528
843b20dc
YQ
105292013-01-25 Yao Qi <yao@codesourcery.com>
10530
10531 * event-loop.c: Include "queue.h".
10532 (gdb_event_p): New typedef.
10533 (DECLARE_QUEUE_P): Use.
10534 (DEFINE_QUEUE_P): Use.
10535 (async_queue_event): Remove.
10536 (gdb_event_xfree): New.
10537 (initialize_event_loop): New.
10538 (process_event): Use QUEUE macros.
10539 (event_queue): Remove.
10540 (gdb_wait_for_event): Caller update.
10541 (check_async_event_handlers): Likewise.
10542 (poll_timers): Likewise.
10543 * event-loop.h (initialize_event_loop): Declare.
10544 * event-loop.c (gdb_event_xfree): New.
10545 * top.c (gdb_init): Call initialize_event_loop.
10546
20ad8856
YQ
105472013-01-25 Yao Qi <yao@codesourcery.com>
10548
10549 * event-loop.c (async_queue_event): Remove one parameter
10550 'position'. Remove code handling 'position' == TAIL.
10551 (gdb_wait_for_event): Caller update.
10552 (check_async_event_handlers): Caller update.
10553 (poll_timers): Caller update.
10554 * event-loop.h (enum queue_position): Remove.
10555
3bbbe775
MK
105562013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10557
10558 * MAINTAINERS: Update my email.
10559
a87d9ac4
YQ
105602013-01-25 Yao Qi <yao@codesourcery.com>
10561
10562 * main.c (print_gdb_help): Remove "--epoch" from the help
10563 message.
10564
2077afdd
TD
105652013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10566
10567 * symtab.c (skip_prologue_using_sal): Consider a file
10568 change the same as an increased line number
10569
63da4037
TD
105702013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10571
30e8ee25 10572 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10573
45e6c716
TT
105742013-01-24 Tom Tromey <tromey@redhat.com>
10575
10576 * ada-lang.h (ada_decode_symbol): Make return type const.
10577 * ada-lang.c (ada_decode_symbol): Likewise.
10578
b1ae631a
DE
105792013-01-23 Doug Evans <dje@google.com>
10580
10581 * linespec.c (find_linespec_symbols): Make static.
10582
55a78401
SDJ
105832013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10584
10585 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10586 type on float conversion for complex type.
10587
bea883fd
SCR
105882013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10589
10590 Add a new class gdb.Architecture which exposes GDB's
10591 internal representation of architecture via GDB Python API.
10592 * Makefile.in: Add entries corresponding to the new file
10593 python/py-arch.c.
10594 * NEWS (Python Scripting): Add entries for the new class
10595 gdb.Architecture and the new method gdb.Frame.architecture.
10596 * python/py-arch.c: Implement gdb.Architecture class.
10597 * python/py-frame.c (frapy_arch): Implement the method
10598 gdb.Frame.architecture().
10599 (frame_object_methods): Add 'architecture' to the method table.
10600 * python/python-internal.h: Add declarations of new utility
10601 functions.
10602 * python/python.c (_initialize_python): Initialize
10603 gdb.Architecture class.
10604
796a7ff8
DE
106052013-01-23 Doug Evans <dje@google.com>
10606
10607 Work around binutils/15021.
10608 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10609 type_unit_group out of union s. All uses updated.
10610 (read_index_from_section): Watch for index version 8.
10611 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10612 an imported symtab.
10613 (write_psymtabs_to_index): Increment version number to 8.
10614
0928e93d
PA
106152013-01-22 Pedro Alves <palves@redhat.com>
10616
10617 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10618 user-visible.
10619
9c97429f
PA
106202013-01-22 Pedro Alves <palves@redhat.com>
10621
10622 * annotate.c (annotate_breakpoints_changed): Rename to ...
10623 (annotate_breakpoints_invalid): ... this. Make static.
10624 (breakpoint_changed): Adjust.
10625 (_initialize_annotate): Always install the observers. Install a
10626 "breakpoint_created" observer.
10627 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10628 * breakpoint.c (set_breakpoint_condition)
10629 (breakpoint_set_commands, do_map_commands_command)
10630 (init_raw_breakpoint, clear_command, set_ignore_count)
10631 (enable_breakpoint_disp): No longer call
10632 annotate_breakpoints_changed.
10633
bd00c694
PA
106342013-01-22 Pedro Alves <palves@redhat.com>
10635
10636 * annotate.c: Include "inferior.h".
10637 (frames_invalid_emitted)
10638 (breakpoints_invalid_emitted): New globals.
10639 (async_background_execution_p): New function.
10640 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10641 emitting the annotation if it has already been emitted.
10642 (annotate_display_prompt): New function.
10643 * annotate.h (annotate_display_prompt): New declaration.
10644 * event-top.c: Include annotate.h.
10645 (display_gdb_prompt): Call annotate_display_prompt.
10646
187d10dd
PA
106472013-01-22 Pedro Alves <palves@redhat.com>
10648
10649 * annotate.c (ignore_count_changed): Delete.
10650 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10651 (annotate_ignore_count_change): Delete.
10652 (annotate_stopped): Don't emit a delayed breakpoints-changed
10653 annotation.
10654 * annotate.h (annotate_ignore_count_change): Delete.
10655 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10656 annotate_ignore_count_change.
10657
d84cf7eb
TT
106582013-01-22 Tom Tromey <tromey@redhat.com>
10659
10660 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10661 require_rvalue for a register location.
10662
8f1d5693
MK
106632013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10664
10665 * breakpoint.c (print_one_breakpoint_location): Add MI
10666 field 'thread-groups' when printing a breakpoint.
10667 (output_thread_groups): New function.
10668
aa6199c6
SCR
106692013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10670
10671 * python/lib/gdb/commands/explore.py
10672 (CompoundExplorer.explore_expr): Correct the name of a method
10673 being invoked.
10674 (ExploreTypeCommand.invoke): Add a missing 'return'.
10675
d2afef13
TT
106762013-01-21 Tom Tromey <tromey@redhat.com>
10677
10678 * gdb_obstack.h (obconcat): Move declaration here, from...
10679 * symfile.h (obconcat): ... here.
10680 * gdb_obstack.c: New file.
10681 (obconcat): Move from...
10682 * symfile.c (obconcat): ... here.
10683 * Makefile.in (SFILES): Add gdb_obstack.c.
10684 (COMMON_OBS): Add gdb_obstack.o.
10685
10f0c4bb
TT
106862013-01-21 Tom Tromey <tromey@redhat.com>
10687
10688 * symfile.h (obsavestring): Don't declare.
10689 * symfile.c (obsavestring): Remove.
10690 * ada-exp.y: Use obstack_copy0, not obsavestring.
10691 * ada-lang.c: Use obstack_copy0, not obsavestring.
10692 * coffread.c: Use obstack_copy0, not obsavestring.
10693 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10694 * dbxread.c: Use obstack_copy0, not obsavestring.
10695 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10696 * jit.c: Use obstack_copy0, not obsavestring.
10697 * mdebugread.c: Use obstack_copy0, not obsavestring.
10698 * psymtab.c: Use obstack_copy0, not obsavestring.
10699 * stabsread.c: Use obstack_copy0, not obsavestring.
10700 * xcoffread.c: Use obstack_copy0, not obsavestring.
10701
86f62fd7
TT
107022013-01-21 Tom Tromey <tromey@redhat.com>
10703
10704 * dwarf2read.c (fixup_go_packaging): Save package name
10705 on objfile obstack.
10706 * gdbtypes.c (init_type): Don't copy name.
10707
15d034d0
TT
107082013-01-21 Tom Tromey <tromey@redhat.com>
10709
10710 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10711 const.
10712 (struct attribute) <u.str>: Now const.
10713 (struct fnfieldlist) <name>: Now const.
10714 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10715 (partial_die_parent_scope): Make return type const.
10716 (partial_die_full_name, add_partial_symbol): Update.
10717 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10718 'name' const.
10719 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10720 (read_file_scope, read_func_scope, dwarf2_add_field)
10721 (dwarf2_add_member_fn, read_structure_type)
10722 (process_enumeration_scope, read_array_type, read_module_type)
10723 (read_base_type, read_subrange_type): Update.
10724 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10725 (new_symbol_full, guess_full_die_structure_name): Update.
10726 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10727 (dwarf2_name): Return const type.
10728 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10729 const.
10730
748e18ae
TT
107312013-01-21 Tom Tromey <tromey@redhat.com>
10732
10733 * gdbtypes.c (init_type): Make 'name' const.
10734 * gdbtypes.h (init_type): Update.
10735
46212e0b
TT
107362013-01-21 Tom Tromey <tromey@redhat.com>
10737
10738 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10739 (start_symtab): Make 'name' and 'dirname' const. Use
10740 set_last_source_file.
10741 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10742 (last_source_file): Define. Now static.
10743 (set_last_source_file, get_last_source_file): New functions.
10744 * buildsym.h (last_source_file): Don't declare.
10745 (start_symtab): Update.
10746 (set_last_source_file, get_last_source_file): Declare.
10747 * coffread.c (complete_symtab): Use set_last_source_file.
10748 (coff_end_symtab): Likewise.
10749 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10750 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10751 set_last_source_file.
10752 (process_one_symbol): Use get_last_source_file.
10753 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10754 (psymtab_to_symtab_1): Use get_last_source_file.
10755 * xcoffread.c (process_linenos): Use get_last_source_file.
10756 (complete_symtab): Use set_last_source_file.
10757 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10758 (scan_xcoff_symtab): Use set_last_source_file.
10759
9d2ceabe
TT
107602013-01-21 Tom Tromey <tromey@redhat.com>
10761
10762 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10763 (symbol_set_names): Remove casts. Handle field const-ness.
10764
cfc594ee
TT
107652013-01-21 Tom Tromey <tromey@redhat.com>
10766
10767 * dwarf2read.c (new_symbol_full): Remove cast.
10768 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10769 * symtab.h (symbol_set_demangled_name): Update.
10770
5484b13a
TT
107712013-01-21 Tom Tromey <tromey@redhat.com>
10772
10773 * main.c (captured_main): Call bfd_init.
10774
1605ef26
TT
107752013-01-21 Tom Tromey <tromey@redhat.com>
10776
10777 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10778 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10779 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10780 * NEWS: Update.
10781
3b74cdc3
JK
107822013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10783
10784 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10785
5a352474
JK
107862013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10787
10788 Fix gdb.fortran/common-block.exp crash in PIE mode.
10789 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10790 LOC_COMMON_BLOCK.
10791 * f-valprint.c (info_common_command_for_block): Expect
10792 LOC_COMMON_BLOCK in gdb_assert.
10793 * symtab.h (struct general_symbol_info): Update comment for the
10794 common_block member.
10795 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10796 (enum address_class): New member LOC_COMMON_BLOCK.
10797
c60797fd
DB
107982013-01-18 David Blaikie <dblaikie@gmail.com>
10799
10800 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10801
46f35228
TT
108022013-01-18 Tom Tromey <tromey@redhat.com>
10803
10804 PR c++/14999:
10805 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10806 Call require_rvalue.
10807
257e7a09
YQ
108082013-01-18 Yao Qi <yao@codesourcery.com>
10809
10810 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10811 (dbx_read_symtab): New declaration.
10812 (dbx_psymtab_to_symtab): Delete.
10813 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10814 Rename parameter PST to SELF. Exchanged two parameters.
10815 (start_psymtab): Caller update.
10816 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10817 (dwarf2_read_symtab): New declaration.
10818 (dwarf2_psymtab_to_symtab): Delete.
10819 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10820 Rename parameter PST to SELF. Exchanged two parameters.
10821 (create_partial_symtab): Caller update.
10822 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10823 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10824 Rename parameter PST to SELF. Exchanged two parameters.
10825 (parse_partial_symbols, new_psymtab): Caller update.
10826 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10827 two parameters.
10828 * psymtab.c (psymtab_to_symtab): Caller update.
10829 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10830 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10831 Rename parameter PST to SELF. Exchanged two parameters.
10832 (xcoff_start_psymtab): Caller update.
10833
0de5618e
YQ
108342013-01-18 Yao Qi <yao@codesourcery.com>
10835
10836 * infrun.c (proceed): Rename local variable 'oneproc' to
10837 'force_step'.
10838
5c04624b
DE
108392013-01-17 Doug Evans <dje@google.com>
10840
848e3e78
DE
10841 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10842 (dw2_build_type_unit_groups): Delete. All uses updated.
10843
5c04624b
DE
10844 * symtab.h (struct symbol_search): Add comment.
10845
d84fca2c
JK
108462013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 * symtab.c (compare_filenames_for_search): New comment for
10849 HAS_DRIVE_SPEC.
10850
6108433d
TT
108512013-01-17 Tom Tromey <tromey@redhat.com>
10852
10853 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10854
c89ffd86
JK
108552013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10856
10857 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10858 initialize it by existing make_cleanup. Call new do_cleanups.
10859
db2b2972
TT
108602013-01-17 Tom Tromey <tromey@redhat.com>
10861
10862 * cp-abi.c (cp_abi_completer): New function.
10863 (_initialize_cp_abi): Set completer for "set cp-abi".
10864
be7d37a2
TT
108652013-01-17 Tom Tromey <tromey@redhat.com>
10866
10867 * mem-break.c: Remove obsolete comment.
10868 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10869
c9fb1240
SD
108702012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10871
10872 * jit.c (jit_reader_load_command): Interpret the jit reader name
10873 as an absolute path if it begins with a forward slash.
10874
db334a01
SD
108752012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10876
10877 PR gdb/14550
10878
10879 * jit.c (finalize_symtab): Ensure that only the global block has a
10880 NULL superblock.
10881
7d928dac
PA
108822013-01-17 Pedro Alves <palves@redhat.com>
10883
10884 * acinclude.m4: Include ../config/plugins.m4,
10885 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10886 * Makefile.in (aclocal_m4_deps): Update.
10887 * aclocal.m4: Renegerate.
10888
fb8cf7c5
DE
108892013-01-16 Doug Evans <dje@google.com>
10890
10891 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10892
ab04a2af
TT
108932013-01-16 Pedro Alves <palves@redhat.com>
10894 Tom Tromey <tromey@redhat.com>
10895
10896 PR cli/7221:
10897 * NEWS: Add "catch signal".
10898 * breakpoint.c (base_breakpoint_ops): No longer static.
10899 (bpstat_explains_signal): New function.
10900 (init_catchpoint): No longer static.
10901 (base_breakpoint_explains_signal): New function.
10902 (base_breakpoint_ops): Initialize new field.
10903 * breakpoint.h (enum bpstat_signal_value): New.
10904 (struct breakpoint_ops) <explains_signal>: New field.
10905 (bpstat_explains_signal): Remove macro, declare as function.
10906 (base_breakpoint_ops, init_catchpoint): Declare.
10907 * break-catch-sig.c: New file.
10908 * inferior.h (signal_catch_update): Declare.
10909 * infrun.c (signal_catch): New global.
10910 (handle_syscall_event): Update for change to
10911 bpstat_explains_signal.
10912 (handle_inferior_event): Likewise. Always handle random signals
10913 via bpstats.
10914 (signal_cache_update): Check signal_catch.
10915 (signal_catch_update): New function.
10916 (_initialize_infrun): Initialize signal_catch.
10917 * Makefile.in (SFILES): Add break-catch-sig.c.
10918 (COMMON_OBS): Add break-catch-sig.o.
10919
8ac3646f
TT
109202013-01-16 Tom Tromey <tromey@redhat.com>
10921
10922 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10923 (print_one_catch_solib, print_one_catch_syscall)
10924 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10925 "catch-type".
10926
5a18e302
YQ
109272013-01-16 Yao Qi <yao@codesourcery.com>
10928
10929 * printcmd.c (current_display_number): Make it static.
10930
3f01d0d0
YQ
109312013-01-16 Yao Qi <yao@codesourcery.com>
10932
10933 * infcmd.c (step_once): Don't check '!single_inst' as it was
10934 checked before.
10935
1ed59174
JK
109362013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10937
10938 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10939
44478ab3
TT
109402013-01-14 Tom Tromey <tromey@redhat.com>
10941
10942 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10943 set command.
10944 * command.h (add_setshow_string_noescape_cmd): Update.
10945 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10946 (complete_set_gnutarget): New function.
10947 (_initialize_core): Set the "set gnutarget" completer.
10948
06d66ee9
TT
109492013-01-14 Tom Tromey <tromey@redhat.com>
10950
10951 PR symtab/14442:
10952 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10953 (c_type_print_modifier): Likewise.
10954 * dwarf2read.c (read_tag_restrict_type): New function.
10955 (read_type_die_1): Handle DW_TAG_restrict_type.
10956 * gdbtypes.c (make_restrict_type): New function.
10957 (recursive_dump_type): Handle TYPE_RESTRICT.
10958 * gdbtypes.h (enum type_flag_values): Renumber.
10959 (enum type_instance_flag_value): Add
10960 TYPE_INSTANCE_FLAG_RESTRICT.
10961 (TYPE_RESTRICT): New macro.
10962 (make_restrict_type): Declare.
10963
c9bf0622
TT
109642013-01-14 Tom Tromey <tromey@redhat.com>
10965
10966 PR symtab/14931:
10967 * psymtab.c (struct psymtab_state): New.
10968 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10969 functions.
10970 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10971 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10972
44d594fd
PA
109732013-01-14 Richard Sharman <richard_sharman@mitel.com>
10974 Pedro Alves <palves@redhat.com>
10975
10976 PR remote/14786
10977
10978 * remote.c (remote_threads_info): Make a copy of the reply from
10979 qfThreadInfo and use that instead of rs->buf.
10980
442e4d9c
YQ
109812013-01-14 Yao Qi <yao@codesourcery.com>
10982
10983 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10984 (dbx_psymtab_to_symtab): Likewise.
10985 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10986 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10987 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10988
5b12a61c
JK
109892013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10990
10991 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10992 make_cleanup_restore_current_language. Call set_language. Move
10993 OLD_CHAIN and INNER_CHAIN cleanups.
10994 * utils.c (do_restore_current_language)
10995 (make_cleanup_restore_current_language): New functions.
10996 * utils.h (make_cleanup_restore_current_language): New declaration.
10997
f0a4b570
JK
109982013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10999
11000 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11001 non-existing files.
11002
57b3c00c
JK
11003 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11004 non-existing files if FILENAME is already absolute.
11005
daefa854
JK
110062013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11007
11008 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11009 fputs_filtered. Append trailing newline.
11010
ca9c6ee2
YQ
110112013-01-11 Yao Qi <yao@codesourcery.com>
11012 Stan Shebs <stan@codesourcery.com>
11013
11014 * psymtab.c (init_psymbol_list): Clarify the comment.
11015
f28045c2
YQ
110162013-01-11 Yao Qi <yao@codesourcery.com>
11017
11018 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11019 (update_dprintf_command_list): Assert that 'printf_line' is
11020 non-null. Remove condition check.
11021
da5132d3
JK
110222013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11023
11024 Code cleanup.
11025 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11026 type const char *.
11027 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11028 const char *.
11029 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11030
843e694d
AG
110312013-01-09 Anthony Green <green@moxielogic.com>
11032
11033 * cp-abi.c (cplus_print_vtable): Don't return value from void
11034 function.
11035 * ada-lang.c (re_set_catch_assert): Ditto.
11036
da51c347
DE
110372013-01-09 Doug Evans <dje@google.com>
11038
11039 * symfile.h (quick_symbol_functions): Delete member
11040 pre_expand_symtabs_matching. All uses removed.
11041 * dwarf2read.c (dw2_lookup_symbol): Implement.
11042 (dw2_do_expand_symtabs_matching): Delete.
11043 (dw2_pre_expand_symtabs_matching): Delete.
11044 (struct dw2_symtab_iterator): New type.
11045 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11046 (dw2_expand_symtabs_for_function): Rewrite.
11047 (dwarf2_gdb_index_functions): Update.
11048 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11049 (psym_functions): Update.
11050
b2259038
TT
110512013-01-09 Tom Tromey <tromey@redhat.com>
11052
11053 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11054 * configure: Rebuild.
11055 * configure.ac: Add somread.o to the build if BFD has SOM
11056 support.
11057 * somread.c: Include som/aout.h, not syms.h.
11058 (som_symtab_read): Use som_external_symbol_dictionary_record.
11059 Unpack records manually.
11060 (_initialize_somread): Declare.
11061
bdad4180
MF
110622012-01-08 Mike Frysinger <vapier@gentoo.org>
11063
11064 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11065 Cast return_address to 64bits.
11066
03cdf680
HZ
110672013-01-08 Hui Zhu <hui_zhu@mentor.com>
11068
11069 * printcmd.c: Remove define of function output_command.
11070 * tracepoint.c: Remove extern of function output_command.
11071 * valprint.h: (output_command): New extern.
11072
8a808554
TT
110732013-01-07 Tom Tromey <tromey@redhat.com>
11074
11075 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11076 Remove.
11077 (objc_language_defn): Use c_printchar, c_printstr,
11078 c_emit_char.
11079
e93a8774
TT
110802013-01-07 Tom Tromey <tromey@redhat.com>
11081
11082 PR cli/7719:
11083 * NEWS: Update.
11084 * ada-valprint.c (printstr, print_field_values): Remove
11085 "inspect_it" code.
11086 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11087 code.
11088 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11089 code.
11090 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11091 * main.c (captured_main): Remove "epoch" argument.
11092 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11093 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11094 * p-valprint.c (pascal_object_print_value_fields): Remove
11095 "inspect_it" code.
11096 * printcmd.c (print_command_1): Remove 'inspect' argument.
11097 (print_command, call_command): Update.
11098 (inspect_command): Remove.
11099 (_initialize_printcmd): Make "inspect" an alias for "print".
11100 * top.c (epoch_interface): Remove.
11101 * top.h (epoch_interface): Remove.
11102 * valprint.c (user_print_options): Update.
11103 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11104 * valprint.h (struct value_print_options) <inspect_it>: Remove
11105 field.
11106
111072013-01-04 Tom Tromey <tromey@redhat.com>
11108
11109 * valprint.h (read_string): Add 'extern'.
11110
b967eb24
JB
111112013-01-07 Joel Brobecker <brobecker@adacore.com>
11112
11113 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11114 used to decide whether to define darwin_read_dyld_info or not.
11115
78a8b30e
PM
111162013-01-03 Pierre Muller <muller@sourceware.org>
11117
11118 * main.c (relocate_gdb_directory): Avoid calling stat function
11119 if DIR is empty.
11120
50da2f25
YQ
111212013-01-03 Yao Qi <yao@codesourcery.com>
11122
11123 * psymtab.c (fixup_psymbol_section): Update declaration.
11124 (fixup_psymbol_section): Remove code returning value.
11125
e7e8980f
YQ
111262013-01-03 Yao Qi <yao@codesourcery.com>
11127
11128 * symtab.h: Remove some out of date comments.
11129 (enum exception_event_kind): Move it ...
11130 * breakpoint.c: ... here.
11131
569283d4
MF
111322013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11133
9f9d9a96 11134 PR gdb/14405
569283d4
MF
11135 * darwin-nat.c (darwin_read_dyld_info): Only build if
11136 TASK_DYLD_INFO_COUNT is defined.
11137 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11138 TASK_DYLD_INFO_COUNT is defined.
11139
2e36fbea
TT
111402013-01-02 Tom Tromey <tromey@redhat.com>
11141
11142 * symfile.h (struct ecoff_debug_hack): Remove.
11143 * objfiles.c: Don't include mdebugread.h.
11144
4f05add4
TT
111452013-01-02 Tom Tromey <tromey@redhat.com>
11146
11147 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11148 * configure.ac: Check for Mach-O support in BFD. Update
11149 CONFIG_OBS.
11150 * configure: Rebuild.
11151
def63ff0
TT
111522013-01-02 Tom Tromey <tromey@redhat.com>
11153
11154 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11155 * configure.ac: Use GDB_AC_CHECK_BFD.
11156 * configure: Rebuild.
11157
60c5dd93
MK
111582013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11159
11160 * MAINTAINERS: Update my email.
11161
6e58437e
JB
111622013-01-01 Joel Brobecker <brobecker@adacore.com>
11163
11164 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11165
627fe805
JB
111662013-01-01 Joel Brobecker <brobecker@adacore.com>
11167
11168 * rs6000-nat.c (bss_data_overlap): New function.
11169 (vmap_symtab): Use it to adjust the .bss section's offset.
11170
28e7fd62
JB
111712013-01-01 Joel Brobecker <brobecker@adacore.com>
11172
11173 Update year range in copyright notice of all files.
11174
e93a8774 111752013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11176
11177 * top.c (print_gdb_version): Update copyright year.
11178
72b20e9c 11179For older changes see ChangeLog-2012.
c906108c
SS
11180\f
11181Local Variables:
11182mode: change-log
11183left-margin: 8
11184fill-column: 74
11185version-control: never
57da7796 11186coding: utf-8
c906108c 11187End:
This page took 2.139339 seconds and 4 git commands to generate.